Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
Inter-domain Routing Basics Inter-domain Routing Basics
Stub AS: Multihomed Nontransit AS
► AS is multihomed if it has more than one exit
► An AS is considered “stub” when it reaches
point to outside
networks outside it domain via a single exit point
► AS can be multihomed to a single or multiple
► Stub AS is single-homed with respect to its providers
provider ► Nontransit AS does not allow transit traffic to go
2
Inter-domain Routing Basics Inter-domain Routing Basics
► BGP is a path vector protocol used to carry
routing information between ASs
► Path refers to a sequence of AS#s – indicating
the path traversed
► Two BGP routers forming a transport level
connection to exchange information is called
peers
3
Inter-domain Routing Basics Inter-domain Routing Basics
► OPEN message: ► NOTIFICATION message:
opens a connection between BGP peers – when an error is detected after a BGP
should be completed for successful BGP connection is established, a BGP peer sends
operation a NOTIFICATION message before closing the
exchanges the following information – AS# (2 peer connection
byte field), hold time (maximum amount of administrators need to examine the
time in seconds that can elapse between NOTIFICATION message to determine the
successive KEEPALIVE or UPDATE cause of the error
message), BGP identifier, optional
parameters, optional parameter length
4
Inter-domain Routing Basics Inter-domain Routing Basics
► BGP path attributes are used to keep track
of route specific information:
degree of preference
next hop value of a route
aggregation information
5
Building Peer Sessions Building Peer Sessions
► Synchronization within an AS ► Injecting BGP routes into AS is costly:
BGP must be synchronized with IGP such that distributing routes from BGP into IGP results
it waits until the IGP has propagated routing in major overhead on internal routers
information across AS before advertising carrying all external routes into an AS is
transit routes to other ASs unnecessary
if advertised before, the AS may receive traffic internal non-BGP routers can use default exit
that cannot be routed! BGP (border or transit) routers to leave AS –
when a router receives updates from an IBGP this may be suboptimal
peer it should verify the reachability using IGP
before advertising to other EBGP peers
6
Sources of Routing Updates BGP Routing Process
► Dynamic approach can lead to unstable ► Routing process involves the following:
routes pool of routes that the router receives from its
routedampening is used to reduce the peer
fluctuations input policy engine that filter routes or
manipulate their attributes
decision process that decides which routes
the router itself will use
output policy engine the can filter routes or
manipulate their attributes
pool of routes that are advertised to other
peers
7
BGP Routing Process
NEXT_HOP Attribute:
► For EBGP next hop is the IP address of
the neighbor announcing the route
► For IBGP sessions, for routes originated
inside the AS, the next hop is the IP
address of the neighbor that announced
the route
► Routes injected in AS via EBGP, next hop
is carried unaltered
8
BGP Routing Process BGP Routing Process
► If route is advertised to the AS that originated it (loop), ► Private ASs:
the AS_path attribute will contain the AS#, the AS will to conserve AS numbers, InterNIC, generally does
reject the route not assign a legal AS# to customers whose policies
are extensions of providers
9
BGP Routing Process BGP Routing Process
► AS_path can be manipulated to affect
interdomain routing behavior – BGP
prefers shorter path over larger ones
includedummy AS#s to increase path lengths
and influence the traffic
10
Path Vectors Path Vectors
► AS T manages two class C networks ► With route aggregation
197.8.0/24 and 197.8.1/24 -- this can be Path 1: reaches 197.8.0/22
represented by a 23-bit prefix 197.8.0/23 ► What is the path?
if there are two more ASs X and Y that use T
we cannot just list T, loop detection need the
as transit AS and they are allocated complete path
197.8.3/24 and 197.8.4/24 respectively
listing a complete path like T, X, Y is
► Withoutroute aggregation, AS T misleading -- implies a three hop path
announces 3 routes to its neighbor Z ► AS path attribute into two components:
Path 1: through T, reaches 197.8.0/23
ordered list -- AS sequence
Path 2: through T, X, reaches 197.8.2/24
unordered set -- AS set
Path 3: through T, Y, reaches 197.8.3/24
Path: (Sequence (T), Set (X, Y))
11
Path Vectors Path Vectors
► Can we use link state ideas? ► In distance vector protocol, all information about
by distributing to all external routers a complete map
the route to a destination is concentrated in the
“metric” value -- insufficient for fast loop
of the Internet (aggregated of course) resolution
let the routers compute the shortest paths
► BGP approach:
Inter Domain Policy Routing (IDPR) is based on this routing update carries a full list of ASs traversed
idea between source and dest -- a loop occurs if an AS is
listed twice in this list
a problem with this approach is updating the
loop prevention: external router checks whether it is
distributed maps already listed on a path -- if so refuses to use it
OSPF recommends 200 routers for an OSPF area listing the complete path (list of AS numbers) causes
and there are definitely more than 200 ASs the size of routing messages and memory needed for
running the protocol to increase
12
Internal and External Peers Border Gateway Protocol
► Maintaining a fully connected graph is a ► BGP runs over the TCP -- delegating error
very heavy requirement if the number of control to TCP makes BGP design simpler
external (border) routers is large ► Drawbacks of using TCP:
► Route reflectors are used to alleviate this susceptible to congestion related problems
problem – share the routes within the this in turn could make the congestion even
domain – need not have a full mesh. worse when BGP is carrying routing
information needed to cure congestion
could use “high” priority for such datagrams to
reduce this types of problems
13
Border Gateway Protocol Border Gateway Protocol
OPEN message is used to negotiate ► Hold time -- amount of time (in seconds) used by
association’s parameters the “keep alive” procedure
► Initialization could fail:
if the version is not supported by the peer
if the authentication fails
connection collision occurs when both BGP peers
attempt to set up a connection simultaneously
► Hold time defines the time that may elapse
► AS is set to the AS of the sending router between two consecutive KEEPALIVE or
► BGP identifier is one of the IP interface
UPDATE messages
addresses of the BGP router
14