Docsity

Border Gateway Protocol (BGP) and Internet Routing, Slides of Computer Science

Partial preview of the text

Download Border Gateway Protocol (BGP) and Internet Routing and more Slides Computer Science in PDF only on Docsity!

Border Gateway Protocol

Outline

Techniques

 Flooding

 Distributed Bellman Ford Algorithm

 Dijkstra’s Shortest Path First Algorithm

Routing in the Internet

 Hierarchy and Autonomous Systems

 Interior Routing Protocols: RIP, OSPF

 Exterior Routing Protocol: BGP

Multicast Routing

Routing in the Internet

Stub AS Transit AS

e.g. backbone service provider

Stub AS

AS ‘A’ AS ‘B’^

AS ‘C’

Interior Gateway

Protocol

Interior Gateway

Protocol

Interior Gateway

Protocol

BGP BGP

Routing within a Stub AS

 There is only one exit point, so routers

within the AS can use default routing.

 Each router knows all Network IDs within AS.

 Packets destined to another AS are sent to the default

router.

 Default router is the border gateway to the next AS.

 Routing tables in Stub AS’s tend to be

small.

Exterior Routing Protocols

Problems:

 Topology: The Internet is a complex mesh of different

AS’s with very little structure.

 Autonomy of AS’s: Each AS defines link costs in

different ways, so not possible to find lowest cost paths.

 Trust: Some AS’s can’t trust others to advertise good

routes (e.g. two competing backbone providers), or to

protect the privacy of their traffic (e.g. two warring

nations).

 Policies: Different AS’s have different objectives (e.g.

route over fewest hops; use one provider rather than

another).

Border Gateway Protocol (BGP-4)

 BGP is not a link-state or distance-vector routing

protocol.

 Instead, BGP uses “Path vector”

 BGP advertises complete paths (a list of AS’s).

 Also called AS_PATH (this is the path vector)

 Example of path advertisement:

“The network 171.64/16 can be reached via the path {AS1, AS5, AS13}”.

 Paths with loops are detected locally and ignored.

 Local policies pick the preferred path among

options.

 When a link/router fails, the path is “withdrawn”.

Customer-Provider Hierarchy

provider customer IP traffic

The Peering Relationship

peer peer

provider customer

Peers provide transit between

their respective customers

Peers generally do not provide transit

between peers

A->C routing must occur through a provider

Peers (often) do not exchange $$$

traffic

allowed

traffic NOT

allowed

A

B C

 Open : Establish a BGP session.

 Keep Alive : Handshake at regular intervals.

 Notification : Shuts down a peering session.

 Update : Announcing new routes or withdrawing previously

announced routes.

 Attributes include: Next hop, AS Path, local preference, Multi-exit

discriminator (MED), …

 Used to select among multiple options for paths

 BGP messages exchanged using TCP

BGP announcement = network prefix + path attributes

BGP Messages

ASPATH Attribute

AS 7018

AS Path = 6341

AS 1239

Sprint

AS 1755

Ebone

AT&T

AS 3549

Global Crossing

AS Path = 7018 6341

AS Path = 3549 7018 6341

AS 6341

135.207.0.0/

AT&T Research

Prefix Originated

AS 12654

RIPE NCC

RIS project

AS 1129

Global Access

AS Path = 7018 6341

AS Path = 1239 7018 6341

AS Path = 1755 1239 7018 6341

AS Path = 1129 1755 1239 7018 6341

Pick shorter

AS path

Which route should

Frank pick to 13.13.0.0./16?

AS 1

AS 2

AS 4

AS 3

Frank’s

Internet Barn

peer peer

provider customer

So Many Choices…

Prompt> whois -h whois.apnic.net AS

 as-block: AS17408 - AS  descr: APNIC ASN block  remarks: These AS numbers are further assigned by APNIC  remarks: to APNIC members and end-users in the APNIC region  admin-c: HM20-AP  tech-c: HM20-AP  mnt-by: APNIC-HM  mnt-lower: APNIC-HM  changed: [email protected] 20060517  changed: [email protected] 20071219  source: APNIC

 aut-num: AS  as-name: PKTELECOM-AS-AP  descr: Pakistan Telecom  descr: ITI Region PTCL  country: PK  import: from AS  action pref=185;  accept ANY  import: from AS  action pref=185;  accept ANY  export: to AS  announce AS-SETPTCL  export: to AS  announce AS-SETPTCL  admin-c: MH49-AP  tech-c: AB242-AP  mnt-by: MAINT-PK-ARSHAD  mnt-routes: MAINT-PK-ARSHAD  changed: [email protected] 20060805  source: APNIC

person: Mansoor ul Hassan
nic-hdl: MH49-AP
e-mail: [email protected]
address: 2nd Floor, International Gateway Exchange
Building,
address: PTCL Complex, 7th Road, Satellite Town Rawalpindi
address: Pakistan
phone: +92- 51 - 4434470
fax-no: +92- 51 - 45 - 0647
country: PK
changed: [email protected] 20060806
mnt-by: MAINT-PK-ARSHAD
source: APNIC
person: Arshad Butt
nic-hdl: AB242-AP
e-mail: [email protected]
address: ITI Hall ,Telcom Complex
address: S/Town Exchange,7th road
address: Rawalpindi.
phone: +92- 51 - 4455467
fax-no: +92- 51 - 4456747
country: PK
mnt-by: MAINT-PK-ARSHAD
changed: [email protected] 20060805
source: APNIC

Who owns an address block?

prompt> whois 216.35.221.

OrgName: Savvis

OrgID: SAVVI- 2

Address: 3300 Regency

Parkway

City: Cary

StateProv: NC

PostalCode: 27511

Country: US

ReferralServer:

rwhois://rwhois.exodus.net:

NetRange: 216.32.0.0 - 216.35.255.

CIDR: 216.32.0.0/

NetName: SAVVIS

NetHandle: NET- 216 - 32 - 0 - 0 - 1

Parent: NET- 216 - 0 - 0 - 0 - 0

NetType: Direct Allocation

NameServer: DNS01.SAVVIS.NET

NameServer: DNS02.SAVVIS.NET

NameServer: DNS03.SAVVIS.NET

NameServer: DNS04.SAVVIS.NET

Comment:

RegDate: 1998 - 07 - 30

Updated: 2004 - 10 - 07

# ARIN WHOIS database, last updated

# Enter? for additional hints on

searching ARIN's WHOIS database.