Professional Documents
Culture Documents
IP
datagram
Version number
Header length (20 bytes)
Type of service
Datagram length (16 bits)
identifier, flags, fragmentation offset
time-to-live
upper layer protocol
header checksum
source and dest IP addr
options
payload
20 bytes header
distributed
each node notify neighbor when it change
neighbor then notify their neighbor if need
each node:
wait for change from neighbor
recompute estimate
if distance vector to any dest change, notify neighbor
Compare Link-State and Distance Vecotr:
Message Complexity:
LS: with n nodes, E links -> O(nE) message send
DV: exchange between neighbor only (convergence time var
y)
Speed of Convergence:
LS: O(n^2) require O(nE) messages
DV: vary (routing loop, count-to-inf problem)
Robustness
LS: node can advertise incorrect link cost
each node computes only its own tabnle
DV: DV can advertise incorrect path cost
each node table used by others
Hierarchical Routing:
scale: with 200 million dest
can't store all in routing table
administrative autonomy
each network admin may want to control routing in its ow
n network
aggregate router into regions: autonomous system (AS)
router in same AS run same routing protocol
intra-AS routing protocol
forwarding table configured by both intra and inter AS routing a
lgorithm
intra AS set entry for internal dest
inter AS and intra AS set entry for external dest
Intra AS routing:
IGP: Interior Gateway Protocol
RIP: Routing Information Protocol
OSPF: Open Shortest Path First
IGRP: Interior Gateway Routing Protocol (Cisco proprietary)
RIP: distance vector algorithm
distance vector: exchange among neighbor every 30 sec via Respon
se message (advertisment)
if no advertisment heard after 180sec
neighbor/link declare dead
routes via neighbor invalidate
new ads sent to neighbors
neighbor sed new ads (if table change)
link failure info quickly propagate to entire net
poison reverse use to prevent ping pong loop
manage by application-level called route-d (daemon)
ads sent in UDP packet, periodically repeat