1. 程式人生 > >(others)RIP協議的路由環路及解決辦法

(others)RIP協議的路由環路及解決辦法

RIP路由協議具有“壞訊息傳播的慢”的特點。由於每臺路由器不能同時或接近同時地完成路由表的更新,有可能產生“路由環路”。解決辦法包括如下方面:

一:定義最大跳計數。任何經過16跳可達的網路都被認為是不可達的。最大跳計數可以控制一個路由表項在達到多大的值後會變為無效。所以如果一個router1中有一個路由表項"192.168.10.0/24[120/15]",那麼當這個表項傳給它的鄰居router2,其router2就會認為無法經過router1到達192.168.10.0/24。

二:水平分割(Split horizen)限制router不能將資訊發生回接受資訊的方向。

三:路由中毒(route poisoning)路由資訊在路由表中失效的時候,把該表項的的度量值(metric)設為無窮大(16),而不是馬上從路由表中刪掉這條路由資訊。(這句話要理解,如RIP 協議中,其度量值變為16,意味著路由不可達)再將其資訊釋出出去,這樣相鄰的路由器就得知這條路由己無效了。

四:中毒反轉(poison reverse)它是指收到路由中毒訊息的路由器,不遵守水平分割原則將中毒訊息轉發給所有的相鄰路由器,也包括髮送中毒資訊的源路由器,也就是通告相鄰路由器這條路由資訊己失效了。主要目的是達到快速收斂的目的。

五: holddowns:
A holddown prevents regular update messages from reinstating a route that is going up and
down (called flapping). Typically, this happens on a serial link that’s losing connectivity and then
coming back up. If there wasn’t a way to stabilize this, the network would never converge and
that one flapping interface could bring the entire network down!
Holddowns prevent routes from changing too rapidly by allowing time for either the downed
route to come back up or the network to stabilize somewhat before changing to the next best
route.