Sunday, October 4, 2009

Roting Protocol

Routing Protocol Concepts :

Remmmber these notes about :
  • Routing Protocol are some rules , messages and ? that help to ip -routing by route Routed protocol such as IP .
  • Routing Protocol functions :

  1. Learn routes
  2. Advertise learned route
  3. Pick the best route
  4. Replace the failed route with a new best route
  • there are 3 algorithms for routing protocol :
  1. Distance Vector
  2. Link State
  3. Balanced Hybrid (Enhanced Distance Vector )
  • Routing protocol : RIP , OSPF . IGRP , EIGRP
  • Routed protocol (Routable Protocol) : IP , IPX
  • AS(Autonomous System):Refers to a internet work under administrative control of single organization.
  • Classfull Routing protocol : If the routing updates doesn't contain the subnet mask along with their respective advertised network .
  • Classless Routing Protocols : If the subnet mask is tranmited alng with the network information ,, its charectrised as classless routing protocol.
  • classless routing protocols support discontigues networks , VLSM and route summarization .
  • IGP : (Interior Gateway Protocol ) Refers to routing protocols that they run in a specific network under a called AS (Autonomous System) management or etc . such as School Network , Provice or State network , company network or ....IGP protocols are : Rip , OSPf , EIGRP
  • EGP : (Exterior Gateway protocol) Refers to routing protocol that runs between more than one AS. onle one EGP protocol is there that BGP (Border Gate way protocol ). for example BGP can run between some ISP .
  • There are some differences between IGP routing protocols (Rip , OSPF and EIGRP ) . you can see them in below table :

Distance Vector in summary :
When using distance vector routing protocol , that is important to know how they are working.
lets look at to routing protocol functions again :
  1. Learning
  2. Advertising by sending routing table in routing protocol update.
  3. Pick the best route by looking the received routing table and each routing protocol metric.
  4. Replace failed route if congestion occurred.
those are most and specific function that routing protocols do .but to to them some rules need to enhanced the performance of routing protocol .these rules are :

  1. Split-Horizon : Means that each router to send routing update on each interface ,check the routing update table and omits the routes that received from that interface .
  2. Route - Poisoning : Refers to the practical of advertising a route but with a special metric value called infinity .Note that each distance vector routing protocol uses the concept of an actual metric value taht represents infinity . Rip defines infinity as 16
  3. Triggerd Update : when a route fails dont wait for periodic update but imediantly send the triggend updates
  4. Hold-Time : Prevent continuing loop in a redundant network .wait a time thats called holdtime and dont belive any oyher information about down route until ending holdtime.
  5. Poison-Reverse :
  6. Whena route failed suspend split-horizon rules and advertize a poisoned route.



  • to Infinity over a single link : 1-Bandwith consumed 2- take several minutes 3-


  • During periods of stability, routers send periodic full routing updates based on a shortupdate timer (the RIP default is 30 seconds). The updates list all known routes except the routes omitted because of split-horizon rules.
  • However information sent by neighbors that originally advertized the working route can be belived befor the holdtime expires .
■ When changes occur that cause a route to fail, the router that notices the failure reacts
by immediately sending triggered partial updates, listing only the newly poisoned
(failed) routes, with an infinite metric.
■ Other routers that hear the poisoned route also send triggered partial updates,
poisoning the failed route.
■ Routers suspend split-horizon rules for the failed route by sending a poison reverse
route back toward the router from which the poisoned route was learned.
■ All routers place the route in holddown state and start a holddown timer for that route
after learning that the route has failed. Each router ignores all new information about
this route until the holddown timer expires, unless that information comes from the
same router that originally advertised the good route to that subnet.


Link State :

LSA : Link State Advertise
LSDB : Link State Data Base
Flooding : Sending LSA by a router to its neighbors (Only and only)
  1. First it needs that each router creats a Router LSA for itself and a link LSA for each subnet.(LSA contains Router ID , IP address , state, cost)
  2. then Floods LSAs to other routers in routing updates messages .(Flooding )
  3. all router learn the same detailed information about routers and subnets in the internet work .
  4. the individual pieces of topology information are called LSA , all LSAs are stored in LSDB & RAM.
  5. The LSDB does'nt have routes but they has more detailed information that can be processed by Dijkstra SPF algorithm (For OSPF routing protocol ) to find best routes.
  6. each router runs SPF process to find all routers to each subnet and SPF process to find all routes to each subnet and SPF algorithm can pick the best route as quickly as possible.
  7. Link state protocol provides fast convergence with built-in loop avoidance.
  8. link state protocol consume much more RAM and CPU than Distance vector.
  9. Link state protocol inherenthly avoid loops .
  10. Link state need much more palning and designing offort .
  11. Routers flood LSA :
  • When they are created
  • On a regular time
  • imediently after convergence accurs.

No comments:

Post a Comment