


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Physical
Data Link
Network
Transport
Session
Presentation
Application
How the source gets the packet to the destination:
if source is on same network (LAN) as destination, source sends packet
directly to destination host
else source sends data to a router on the same network as the source
router will forward packet to a router on the next network over
and so on…
until packet arrives at router on same network as destination; then,
router sends packet directly to destination host
Requirements
every host needs to know IP address of the router on its LAN
every router needs a routing table to tell it which neighboring network
to forward a given packet on
D
G
A
F
E
B
C
Next
Hop
Dest
D
G
A
F
E
B
C
Each router maintains a vector of costs to all destinations as
well as routing table
Initialize neighbors with known cost, others with infinity
Periodically send copy of distance vector to neighbors
On reception of a vector, if neighbors path to a destination
plus neighbor cost is better, then switch to better path
Assuming no changes, will converge to shortest paths
But what happens if there are changes?
D
G
A
F
E
B
C
Dest Cost Next