Routing Protocols
Routing Protocols
1
McGraw-Hill © The McGraw-Hill Companies, Inc., 2000
Recap…..
Layers of TCP/IP Model
Functionalites of Network Layer
IP Addressing
Subnetting
Routing
Routers
Routing Table
22.2
Introduction
An internet is a combination of networks connected
by routers
Autonomous
Systems
22.12
Initialization
At the beginning
Each node can know only the distance
between itself and its immediate neighbors
22.14
Sharing
Idea of distance vector routing
Sharing of information between neighbors
In distance vector routing, each node shares
its routing table with its immediate
neighbors periodically and when there is a
change
How much of the table must be shared ?
Send the entire table but contains only the
first two columns
The third column must be changed
Updating
Receipt: a two-column table from a neighbor
Add the cost between itself and the sending node
to each value in the second column
Repeat the following steps for each
advertised destination
If (destination not in the routing table)
Add the advertised information to the table
Else
If (next-hop field is the same)
Replace retry in the table with the new
advertised one
Else
If (advertised hop count smaller than one in the
table)
Replace entry in the
routing table
Updating in Distance
Vector Routing
Reach A via
C
Note
In distance vector routing, each node shares its routing table with its
immediate neighbors periodically and when there is a change.
22.18
Figure 22.19 Example of a domain using RIP
22.19
Figure 22.22 Dijkstra algorithm
22.20
Figure 22.23 Example of formation of shortest path tree
22.21
Table 22.2 Routing table for node A
22.22