Beruflich Dokumente
Kultur Dokumente
1
Routing in the Internet Hierarchical Routing
Administrative Autonomy Routers in same AS run gateway routers
Internet = network of networks routing protocol special routers in AS
Each network controls routing in its own network chosen by run intra-AS routing
Global routing system to route between Autonomous Systems administrators of that protocol with all other
(AS) domain routers in AS
Two-level routing: intra-AS routing also responsible for
Intra-AS: administrator is responsible for choice protocol routing to destinations
outside AS
Inter-AS: unique standard routers in different AS
run inter-AS routing
can run different intra-
AS routing protocol protocol with other
gateway routers
network layer
inter-AS, intra-AS link layer
routing in
gateway A.c physical layer
2
Intra-AS Routing RIP ( Routing Information Protocol)
RIP Table example: netstat -rn OSPF (Open Shortest Path First)
3
OSPF advanced features (not in RIP) Hierarchical OSPF: Mini Internet
Many have nothing to do with link-state vs distance Within each area, border router
responsible for routing outside
vector!!
the area
Security: all OSPF messages authenticated (to Exactly one area
is backbone area
prevent malicious intrusion); TCP connections used
Multiple same-cost paths can be used at once (single
path need not be chosen as in RIP)
For each link, multiple cost metrics for different
TOS (eg, high BW, high delay satellite link cost may
set low for best effort; high for real time)
Integrated uni- and multicast support:
Multicast OSPF (MOSPF) uses same topology data base as
OSPF
Hierarchical OSPF in large domains
Backbone area contains all area border routers and possibly others
Full broadcast in each sub domain only 4: Network Layer 4a-19 4: Network Layer 4a-20
4
Internet inter-AS routing: BGP Internet inter-AS routing: BGP
BGP (Border Gateway Protocol): the de facto Suppose: gateway X send its path to peer gateway W
standard W may or may not select path offered by X
Path Vector protocol: cost, policy (dont route via competitors AS!), loop
similar to Distance Vector protocol prevention reasons.
Avoids count-to-infinity problem by identifying If W selects path advertised by X, then:
yourself in a path advertised to you Path (W,Z) = w, Path (X,Z)
each Border Gateway broadcast to neighbors Note: X can control incoming traffic by controlling its
(peers) entire path (I.e, sequence of ASs) to route advertisements to peers:
destination e.g., dont want to route traffic to Z -> dont
E.g., Gateway X may send its path to dest. Z: advertise any routes to Z
5
NSF Networking Architecture
Network Access Point
of Late 1990s
NSFNET Backbone Project successfully Allows Internet Service Providers (ISPs),
transitioned to a new networking government, research, and educational
architecture in 1995. organizations to interconnect and exchange
vBNS ( very high speed Backbone Network information
Services) - NSF funded, provided by MCI ISPs connect their networks to the NAP
4 original Network Access Points (NSF for the purpose of exchanging traffic with
awarded)
other ISPs
NSF funded Routing Arbiter project
Such exchange of Internet traffic is often
Network Service Providers (not NSF funded)
referred to as "peering"
Location (longitude)
Economics of Internet
Roadmap
Connectivity
Upstream ISPs charge downstream ISPs Mechanics of Routing
for connectivity (transit traffic) Sending datagram to destination on same
6
Getting a datagram from source to dest. Destination on same network as source
routing table in A
Dest. Net. next router Nhops misc Dest. Net. next router Nhops
data
fields 223.1.1.1 223.1.1.3
223.1.1 1 223.1.1 1
223.1.2 223.1.1.4 2 223.1.2 223.1.1.4 2
IP datagram: Starting at A, given IP
223.1.3 223.1.1.4 2 223.1.3 223.1.1.4 2
misc source dest
datagram addressed to B:
data look up net. address of B
fields IP addr IP addr A 223.1.1.1 A 223.1.1.1
find B is on same net. as A
datagram remains 223.1.2.1 223.1.2.1
unchanged, as it travels 223.1.1.2 link layer will send datagram 223.1.1.2
source to destination 223.1.1.4 223.1.2.9 directly to B inside link-layer 223.1.1.4 223.1.2.9
B frame B
addr fields of interest 223.1.2.2 223.1.2.2
223.1.1.3 223.1.3.27 E B and A are directly 223.1.1.3 223.1.3.27 E
here
connected
223.1.3.1 223.1.3.2 223.1.3.1 223.1.3.2
Physical layer:
bit-level reception
Data link layer: Decentralized switching:
e.g., Ethernet given datagram dest., lookup output port
using routing table in input port memory
goal: complete input port processing at
line speed
queuing: if datagrams arrive faster than
forwarding rate into switch fabric
7
Input Port Queuing Three types of switching fabrics
Fabric slower that input ports combined -> queueing
may occur at input queues
Head-of-the-Line (HOL) blocking: queued datagram
at front of queue prevents others in queue from
moving forward
queueing delay and loss due to input buffer overflow!
Output Ports
Switching Via An Interconnection Network
8
Output port queueing Router Hardware
link aol.com
Pac.Bell
Division A FDDI
9
CAIDA: Layout showing Major
Why different Intra- and Inter-AS routing ?
ISPs
Policy:
Inter-AS: admin wants control over how its traffic
routed, who routes through its net.
Intra-AS: single admin, so no policy decisions needed
Scale:
hierarchical routing saves table size, reduced update
traffic
Performance:
Intra-AS: can focus on performance
Inter-AS: policy may dominate over performance
10