0% found this document useful (0 votes)
6 views

Exterior Routing Protocol - Path Vector Protocol

Routers use routing protocols to exchange information and make decisions about packet forwarding. Interior routing protocols distribute information within an autonomous system (AS), while exterior protocols share reachability information between ASes. The two main approaches are distance-vector, where each router shares its routing table, and link-state, where routers flood link information. The Border Gateway Protocol (BGP) is the primary exterior protocol and uses path-vector routing to distribute routes between ASes while preventing routing loops.

Uploaded by

omarkhanfar2
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Exterior Routing Protocol - Path Vector Protocol

Routers use routing protocols to exchange information and make decisions about packet forwarding. Interior routing protocols distribute information within an autonomous system (AS), while exterior protocols share reachability information between ASes. The two main approaches are distance-vector, where each router shares its routing table, and link-state, where routers flood link information. The Border Gateway Protocol (BGP) is the primary exterior protocol and uses path-vector routing to distribute routes between ASes while preventing routing loops.

Uploaded by

omarkhanfar2
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 32

1

ROUTING ON THE
INTERNET
Jan 21, 2024 COSC 6590
Routing Protocols
2

 routers receive and forward packets


 make decisions based on knowledge of topology
and traffic/delay conditions
 use dynamic routing algorithm
 distinguish between:
 routing information - about topology & delays
 routing algorithm - that makes routing decisions based
on information
Performance Criteria
3

 used for selection of route


 simplest is “minimum hop”
 can be generalized as “least cost”
Example Packet Switched Network
4
Autonomous Systems (AS)
5

 is a group of routers and networks managed by


single organization
 which exchange information via a common routing
protocol
 form a connected network
 at least one path between any pair of nodes
 except in times of failure
Interior and Exterior Router Protocols
6

 interior router protocol (IRP)


 passes routing information between routers within AS
 can be tailored to specific applications
 needs detailed model of network to function
 may have more than one AS in internet
 routing algorithms & tables may differ between them
 routers need info on networks outside own AS
 use an exterior router protocol (ERP) for this
 supports summary information on AS reachability
Application of IRP and ERP
7
Approaches to Routing –
8
Distance-vector
 each node (router or host) exchange information with
neighboring nodes
 first generation routing algorithm for ARPANET
 eg. used by Routing Information Protocol (RIP)
 each node maintains vector of link costs for each
directly attached network and distance and next-hop
vectors for each destination
 requires transmission of much info by routers
 distance vector & estimated path costs
 changes take long time to propagate
Approaches to Routing –
9
Link-state
 designed to overcome drawbacks of distance-vector
 each router determines link cost on each interface
 advertises set of link costs to all other routers in topology
 if link costs change, router advertises new values
 each router constructs topology of entire configuration
 can calculate shortest path to each dest
 use to construct routing table with first hop to each dest
 do not use distributed routing algorithm, but any suitable alg to
determine shortest paths, eg. Dijkstra's algorithm
 Open Shortest Path First (OSPF) is a link-state protocol
What Exterior Routing Protocols are
10
not
 link-state and distance-vector not effective for
exterior router protocol
 distance-vector
 assumes routers share common distance metric
 but different ASs may have different priorities & needs
 but have no info on AS’s visited along route
 link-state
 different ASs may use different metrics and have different
restrictions
 flooding of link state information to all routers
unmanageable
Exterior Router Protocols –
11
Path-vector
 alternative path-vector routing protocol
 provides info about which networks can be reached by a
given router and ASs crossed to get there
 does not include distance or cost estimate
 hence dispenses with concept of routing metrics
 have list of all ASs visited on a route
 enables router to perform policy routing
 eg. avoid path to avoid transiting particular AS
 eg. link speed, capacity, tendency to become congested, and
overall quality of operation, security
 eg. minimizing number of transit ASs
Border Gateway Protocol (BGP)
12

 developed for use with TCP/IP internets


 is preferred EGP of the Internet
 uses messages sent over TCP connection
 current version is BGP-4 (RFC1771)
 functional procedures
 neighbor acquisition - when agree to exchange info
 neighbor reachability - to maintain relationship
 network reachability - to update database of routes
13
14
15
16
17
18
19
BGP
Messages
20

 Open
 Update
 Keep alive
 Notification
21
Message Types -
22
Open & KeepAlive
 router makes TCP connection to neighbor
 Open message
 sent by connection initiator
 includes proposed hold time
 receiver uses minimum of own/sent hold time
 max time between Keepalive and/or Update
 Keep Alive message
 To tell other routers that this router is still here
23
Message Types - Update
24

 Update message conveys two info types:


 Info about single routes through internet
 List of routes being withdrawn
 info on a route uses 3 fields:
 Network Layer Reachability Information (NLRI)
 Total Path Attributes Length
 Path Attributes
 withdraw route identified by dest IP address
25
26
27
Message Types – Update (2)
28

 Origin - IGP or EGP


 AS_Path - list of AS traversed
 Next_hop - IP address of border router
 Multi_Exit_Disc - info on routers internal to AS
 Local_pref - inform routers in AS of route pref
 Atomic_Aggregate, Aggregator - implement route
aggregation to reduce amount of info
AS_Path and Next_Hop Use
29

 AS_Path
 used to implement routing policies
 eg. to avoid a particular AS, security, performance, quality,
number of AS crossed
 Next_Hop
 only a few routers implement BGP
 responsible for informing outside routers of routes to
other networks in AS
Notification Message
30

 sent when some error condition detected:


 Message header error
 Open message error
 Update message error
 Hold time expired
 Finite state machine error
 Cease
BGP Routing Information
31
Exchange
 within AS a router builds topology picture using
IGP
 router issues Update message to other routers
outside AS using BGP
 these routers exchange info with other routers in
other AS
 AS_Path field used to prevent loops
 routers must then decide best routes
32

You might also like