20 InternetRouting 3
20 InternetRouting 3
Chapter 4
Network Layer 4.1 introduction
4.2 virtual circuit and
4.5 routing algorithms
link state
datagram networks distance vector
A note on the use of these ppt slides:
We’re making these slides freely available to all (faculty, students, readers). 4.3 what’s inside a router hierarchical routing
They’re in PowerPoint form so you see the animations; and can add, modify,
and delete slides (including this one) and slide content to suit your needs. 4.4 IP: Internet Protocol 4.6 routing in the Internet
They obviously represent a lot of work on our part. In return for use, we only
RIP
ask the following:
If you use these slides (e.g., in a class) that you mention their source
Computer datagram format
OSPF
IPv4 addressing
(after all, we’d like people to use our book!)
Networking: A Top BGP
If you post any slides on a www site, that you note that they are adapted
ICMP
from (or perhaps identical to) our slides, and note our copyright of this
material.
Down Approach IPv6 4.7 broadcast and multicast
6th edition
Thanks and enjoy! JFK/KWR Jim Kurose, Keith Ross routing
All material copyright 1996-2012 Addison-Wesley
J.F Kurose and K.W. Ross, All Rights Reserved March 2012
The course notes are adapted for Bucknell’s CSCI 363
Xiannong Meng
Spring 2016
Application Layer 2-1 Network Layer 4-2
1
RIP: link failure, recovery RIP table processing
if no advertisement heard after 180 sec -->
neighbor/link declared dead RIP routing tables managed by application-level
routes via neighbor invalidated
process called route-d (daemon)
new advertisements sent to neighbors advertisements sent in UDP packets, periodically
neighbors in turn send out new advertisements (if tables repeated
changed)
routed routed
link failure info quickly (?) propagates to entire net
poison reverse used to prevent ping-pong loops (infinite transport transprt
distance = 16 hops) (UDP) (UDP)
network forwarding forwarding network
(IP) table table (IP)
link link
physical physical
2
Hierarchical OSPF Internet inter-AS routing: BGP
BGP (Border Gateway Protocol): the de facto
two-level hierarchy: local area, backbone. inter-domain routing protocol
link-state advertisements only in area “glue that holds the Internet together”
each nodes has detailed area topology; only know BGP provides each AS a means to:
direction (shortest path) to nets in other areas. eBGP: obtain subnet reachability information from
area border routers: “summarize” distances to nets in neighboring ASs. (‘e’ for extended)
own area, advertise to other Area Border routers. iBGP: propagate reachability information to all AS-
backbone routers: run OSPF routing limited to internal routers. (‘i’ for internal)
backbone. determine “good” routes to other networks based on
reachability information and policy.
boundary routers: connect to other AS’s.
allows subnet to advertise its existence to rest of
Internet: “I am here”
BGP use TCP to communicate with each other
Network Layer 4-13 Network Layer 4-14
3c eBGP session
BGP
3a message 3a iBGP session
3b 3b
AS3 2c other AS3 2c other
1c 2a networks 1c 2a networks
other 1a 2b other 1a 2b
networks 1b AS2 networks 1b AS2
AS1 1d AS1 1d
3
BGP messages BGP routing policy
legend: provider
BGP messages exchanged between peers over TCP B network
connection X
BGP messages: W A
customer
OPEN: opens TCP connection to peer and authenticates C network:
sender Y
UPDATE: advertises new path (or withdraws old)
KEEPALIVE: keeps connection alive in absence of A,B,C are provider networks
UPDATES; also ACKs OPEN request X,W,Y are customer (of provider networks)
NOTIFICATION: reports errors in previous msg; also X is dual-homed: attached to two networks
used to close connection
X does not want to route from B via X to C
.. so X will not advertise to B a route to C