Set14 CH 5 Routing Algorithms
Set14 CH 5 Routing Algorithms
• Routing algorithms
– Shortest Path Routing
– Flooding
– Distance Vector Routing
– Link State Routing
– Hierarchical Routing
– Broadcast Routing
– Multicast Routing
C.b
B.a gateway routers
• special routers in AS
A.a • run intra-AS routing
b A.c c protocol with all other
a C a
routers in AS
b • also responsible for routing
a B to destinations outside AS
– run inter-AS routing
d c protocol with other
b
gateway routers
A
network layer
inter-AS, intra-AS link layer
routing in
gateway A.c physical layer
Inter-AS
C.b routing
between B.a
A.a A and B Host
b A.c c h2
a C a
b
a B
Host d c Intra-AS routing
h1 b
A within AS B
Intra-AS routing
within AS A
• Advantage: Each router only needs to know the next hop along its least cost path to
sender.
Reverse path forwarding. (a) A subnet. (b) a Sink tree. (c) The tree built by reverse path forwarding.
Network multicast
• Routers actively participate in multicast,
making copies of packets as needed
and forwarding towards multicast
receivers
Multicast
routers (red) duplicate and
forward multicast datagrams
11/2/23 Computer Networks AP 14-12
Multicast: one sender to many receivers
Application-layer multicast
• end systems involved in multicast copy
and forward unicast datagrams among
themselves
(a) A network. (b) A spanning tree for the leftmost router. (c) A “pruned” multicast tree for group 1. (d) A
“pruned” multicast tree for group 2.