29 Acn
29 Acn
29 Acn
Routing Protocols
• Organizing routers into autonomous systems (ASs),
with each AS consisting of a group of routers that
are typically under the same administrative control
(e.g., operated by the same ISP or belonging to the
same company network).
z
w x y
A D B
C
routing table in router D
destination subnet next router # hops to dest
w A 2
y B 2
z B 7
x -- 1
…. …. ....
Network Layer 4-12
RIP: example
A-to-D advertisement
dest next hops
w - 1
x - 1
z C 4
…. … ... z
w x y
A D B
C
routing table in router D
destination subnet next router # hops to dest
w A 2
y B 2
A 5
z B 7
x -- 1
…. …. ....
Network Layer 4-13
RIP
• In RIP, routing updates are exchanged between
neighbors approximately every 30 seconds using a
RIP response message.
transport transprt
(UDP) (UDP)
network forwarding forwarding network
(IP) table table (IP)
link link
physical physical
4-16
RIP
• A router can also request information about its
neighbor’s cost to a given destination using RIP’s
request message.
backbone
area
border
routers
area 3
internal
area 1 routers
area 2
3c
BGP
3a message
3b
AS3 2c other
1c 2a networks
other 1a 2b
networks 1b AS2
AS1 1d
Network Layer 4-32
BGP basics: distributing path information
using eBGP session between 3a and 1c, AS3 sends prefix
reachability info to AS1.
1c can then use iBGP do distribute new prefix info to all routers in AS1
1b can then re-advertise new reachability info to AS2 over 1b-to-2a
eBGP session
when router learns of new prefix, it creates entry for prefix in its
forwarding table.
eBGP session
3a iBGP session
3b
AS3 2c other
1c 2a networks
other 1a 2b
networks 1b AS2
AS1 1d
Network Layer 4-33
Path attributes and BGP routes