inter-autonomous-system routing: border gateway protocol · 2017-12-15 · the border gateway...

77
Inter-Autonomous-System Routing: Border Gateway Protocol Antonio Carzaniga Faculty of Informatics Università della Svizzera italiana December 15, 2017

Upload: others

Post on 26-May-2020

15 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-Autonomous-System Routing:

Border Gateway Protocol

Antonio Carzaniga

Faculty of InformaticsUniversità della Svizzera italiana

December 15, 2017

Page 2: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Outline

Hierarchical routing

BGP

Page 3: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Routing

Page 4: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Routing

Goal: each router umust be able to compute, for each other router v, thenext-hop neighbor x that is on the least-cost path from u to v

Page 5: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Routing

Goal: each router umust be able to compute, for each other router v, thenext-hop neighbor x that is on the least-cost path from u to v

u

v

x1x2

x3

x4

Page 6: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Network Model

Page 7: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Network Model

So far we have studied routing over a “flat” network model

Page 8: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Network Model

So far we have studied routing over a “flat” network model

a b c

d e f

g h j

Page 9: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Network Model

So far we have studied routing over a “flat” network model

a b c

d e f

g h j

3 4

3 9

211 1 1

1 1 24

14

Also, our objective has been to find the least-cost paths between sources anddestinations

Page 10: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

More Realistic Topologies

Page 11: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

More Realistic Topologies

Page 12: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Even More Realistic

Page 13: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Even More Realistic

©2001StephenCoast

Page 14: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

An Internet Map

©1999 Lucent Technologies

Page 15: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Higher-Level Objectives

Page 16: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Higher-Level Objectives

Scalability

◮ hundreds of millions of hosts in today’s Internet

Page 17: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Higher-Level Objectives

Scalability

◮ hundreds of millions of hosts in today’s Internet

◮ transmitting routing information (e.g., LSAs) would be too expensive

Page 18: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Higher-Level Objectives

Scalability

◮ hundreds of millions of hosts in today’s Internet

◮ transmitting routing information (e.g., LSAs) would be too expensive

◮ forwarding would also be too expensive

Page 19: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Higher-Level Objectives

Scalability

◮ hundreds of millions of hosts in today’s Internet

◮ transmitting routing information (e.g., LSAs) would be too expensive

◮ forwarding would also be too expensive

Administrative autonomy

Page 20: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Higher-Level Objectives

Scalability

◮ hundreds of millions of hosts in today’s Internet

◮ transmitting routing information (e.g., LSAs) would be too expensive

◮ forwarding would also be too expensive

Administrative autonomy

◮ one organization might want to run a distance-vector routing protocol, whileanother might want to run a link-state protocol

Page 21: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Higher-Level Objectives

Scalability

◮ hundreds of millions of hosts in today’s Internet

◮ transmitting routing information (e.g., LSAs) would be too expensive

◮ forwarding would also be too expensive

Administrative autonomy

◮ one organization might want to run a distance-vector routing protocol, whileanother might want to run a link-state protocol

◮ an organization might not want to expose its internal network structure

Page 22: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Structure

Today’s Internet is organized in autonomous systems (ASs)

◮ independent administrative domains

Page 23: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Structure

Today’s Internet is organized in autonomous systems (ASs)

◮ independent administrative domains

Gateway routers connect an autonomous system with other autonomoussystems

Page 24: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Structure

Today’s Internet is organized in autonomous systems (ASs)

◮ independent administrative domains

Gateway routers connect an autonomous system with other autonomoussystems

An intra-autonomous system routing protocol runs within an autonomous system(e.g., OSPF)

◮ this protocol determines internal routes

◮ internal router↔ internal router

◮ internal router↔ gateway router

◮ gateway router↔ gateway router

Page 25: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Structure

AS1

AS2

AS3

AS4

Page 26: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Structure

11

1213

14 AS1

21

22

23

2425

AS2

31

32

33

34

35

AS3

41

42

43AS4

Page 27: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Structure

11

1213

14 AS1

21

22

23

2425

AS2

31

32

33

34

35

AS3

41

42

43AS4

Page 28: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing

An inter-autonomous system routing protocol determines routing at theautonomous-system level

Page 29: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing

An inter-autonomous system routing protocol determines routing at theautonomous-system level

AS1

AS2

AS3

AS4

At AS3:AS1→

Page 30: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing

An inter-autonomous system routing protocol determines routing at theautonomous-system level

AS1

AS2

AS3

AS4

At AS3:AS1→ AS1;

Page 31: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing

An inter-autonomous system routing protocol determines routing at theautonomous-system level

AS1

AS2

AS3

AS4

At AS3:AS1→ AS1; AS2→

Page 32: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing

An inter-autonomous system routing protocol determines routing at theautonomous-system level

AS1

AS2

AS3

AS4

At AS3:AS1→ AS1; AS2→ AS2;

Page 33: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing

An inter-autonomous system routing protocol determines routing at theautonomous-system level

AS1

AS2

AS3

AS4

At AS3:AS1→ AS1; AS2→ AS2; AS4→

Page 34: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing

An inter-autonomous system routing protocol determines routing at theautonomous-system level

AS1

AS2

AS3

AS4

At AS3:AS1→ AS1; AS2→ AS2; AS4→ AS1.

Page 35: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Routing

All routers within an AS compute their intra-AS routing information

◮ using an intra-doman routing protocol

Page 36: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Routing

All routers within an AS compute their intra-AS routing information

◮ using an intra-doman routing protocol

Gateway routers figure out inter-AS routing information

◮ using an inter-domain routing protocol

Page 37: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Routing

All routers within an AS compute their intra-AS routing information

◮ using an intra-doman routing protocol

Gateway routers figure out inter-AS routing information

◮ using an inter-domain routing protocol

inter-AS routing information is propagated within an AS

◮ using an appropriate protocol

Page 38: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Routing

All routers within an AS compute their intra-AS routing information

◮ using an intra-doman routing protocol

Gateway routers figure out inter-AS routing information

◮ using an inter-domain routing protocol

inter-AS routing information is propagated within an AS

◮ using an appropriate protocol

Both inter-AS and intra-AS routing information is used to compile the forwardingtables

Page 39: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Routing (2)

Destinations within the same autonomous system are reached as usual

Page 40: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Routing (2)

Destinations within the same autonomous system are reached as usual

What about a destination x outside the autonomous system?

Page 41: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Routing (2)

Destinations within the same autonomous system are reached as usual

What about a destination x outside the autonomous system?

◮ inter-AS information is used to figure out that x is reachable through gateway Gx

Page 42: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Routing (2)

Destinations within the same autonomous system are reached as usual

What about a destination x outside the autonomous system?

◮ inter-AS information is used to figure out that x is reachable through gateway Gx

◮ intra-AS information is used to figure out how to reach Gx within the AS

Page 43: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Routing (2)

Destinations within the same autonomous system are reached as usual

What about a destination x outside the autonomous system?

◮ inter-AS information is used to figure out that x is reachable through gateway Gx

◮ intra-AS information is used to figure out how to reach Gx within the AS

◮ what if x is reachable through multiple gateway routers Gx, G′

x, . . .?

Page 44: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Hierarchical Routing (2)

Destinations within the same autonomous system are reached as usual

What about a destination x outside the autonomous system?

◮ inter-AS information is used to figure out that x is reachable through gateway Gx

◮ intra-AS information is used to figure out how to reach Gx within the AS

◮ what if x is reachable through multiple gateway routers Gx, G′

x, . . .?

◮ use intra-AS routing information to determine the costs of the (least-cost) paths toGx, G

x, . . .

◮ “hot-potato” routing: send it through the closest gateway

Page 45: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Benefits of Hierarchical Routing

Administrative autonomy

Page 46: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Benefits of Hierarchical Routing

Administrative autonomy

◮ each autonomous system decides what intra-AS routing to use

Page 47: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Benefits of Hierarchical Routing

Administrative autonomy

◮ each autonomous system decides what intra-AS routing to use

◮ an autonomous system needs to expose only minimal information about theinternal structure of its network

◮ essentially only (sub)net addresses

Page 48: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Benefits of Hierarchical Routing

Administrative autonomy

◮ each autonomous system decides what intra-AS routing to use

◮ an autonomous system needs to expose only minimal information about theinternal structure of its network

◮ essentially only (sub)net addresses

Scalability

Page 49: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Benefits of Hierarchical Routing

Administrative autonomy

◮ each autonomous system decides what intra-AS routing to use

◮ an autonomous system needs to expose only minimal information about theinternal structure of its network

◮ essentially only (sub)net addresses

Scalability

◮ routers within an autonomous system need to know very little about the internalstructure of other autonomous systems

Page 50: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Benefits of Hierarchical Routing

Administrative autonomy

◮ each autonomous system decides what intra-AS routing to use

◮ an autonomous system needs to expose only minimal information about theinternal structure of its network

◮ essentially only (sub)net addresses

Scalability

◮ routers within an autonomous system need to know very little about the internalstructure of other autonomous systems

◮ essentially only (sub)net addresses

Page 51: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Benefits of Hierarchical Routing

Administrative autonomy

◮ each autonomous system decides what intra-AS routing to use

◮ an autonomous system needs to expose only minimal information about theinternal structure of its network

◮ essentially only (sub)net addresses

Scalability

◮ routers within an autonomous system need to know very little about the internalstructure of other autonomous systems

◮ essentially only (sub)net addresses

External subnet addresses are likely to “aggregate” in groups that admitcompact representations

◮ this process is called supernetting

Page 52: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing in the Internet

Page 53: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing in the Internet

The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’sInternet

Page 54: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing in the Internet

The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’sInternet

◮ provides reachability information from neighbor ASs

Page 55: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing in the Internet

The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’sInternet

◮ provides reachability information from neighbor ASs

◮ transmits reachability information to all internal routers within an AS

Page 56: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing in the Internet

The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’sInternet

◮ provides reachability information from neighbor ASs

◮ transmits reachability information to all internal routers within an AS

◮ determines good routes to all outside subnets

Page 57: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing in the Internet

The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’sInternet

◮ provides reachability information from neighbor ASs

◮ transmits reachability information to all internal routers within an AS

◮ determines good routes to all outside subnets

◮ based on reachability information

Page 58: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing in the Internet

The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’sInternet

◮ provides reachability information from neighbor ASs

◮ transmits reachability information to all internal routers within an AS

◮ determines good routes to all outside subnets

◮ based on reachability information

◮ based on policies

Page 59: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Inter-AS Routing in the Internet

The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’sInternet

◮ provides reachability information from neighbor ASs

◮ transmits reachability information to all internal routers within an AS

◮ determines good routes to all outside subnets

◮ based on reachability information

◮ based on policies

◮ BGP is a path-vector protocol

Page 60: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology

BGP session: a semi-permanent connection between two routers

Page 61: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology

BGP session: a semi-permanent connection between two routers

BGP peers: two routers engaged in a BGP session

◮ BGP sessions are established over TCP

Page 62: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology

BGP session: a semi-permanent connection between two routers

BGP peers: two routers engaged in a BGP session

◮ BGP sessions are established over TCP

BGP external session (eBGP): a session across two autonomous systems

Page 63: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology

BGP session: a semi-permanent connection between two routers

BGP peers: two routers engaged in a BGP session

◮ BGP sessions are established over TCP

BGP external session (eBGP): a session across two autonomous systems

BGP internal session (iBGP): a session within an autonomous system

◮ note that internal sessions carry inter-AS information

◮ intra-AS routing uses a separate protocol (e.g., OSPF)

Page 64: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Gateway Routers and eBGP

11

1213

14 AS1

21

22

23

2425

AS2

31

32

33

34

35

AS3

41

42

43AS4

Page 65: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology (2)

BGP advertisement: a router advertises routes to networks, much like an entryin a distance-vector

◮ destinations are denoted by address prefixes

Page 66: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology (2)

BGP advertisement: a router advertises routes to networks, much like an entryin a distance-vector

◮ destinations are denoted by address prefixes

◮ an AS may or may not forward an advertisement for a foreign network; doing someans being willing to carry traffic for that network

Page 67: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology (2)

BGP advertisement: a router advertises routes to networks, much like an entryin a distance-vector

◮ destinations are denoted by address prefixes

◮ an AS may or may not forward an advertisement for a foreign network; doing someans being willing to carry traffic for that network

◮ this is where a router may aggregate prefixes (a.k.a., “supernetting”)E.g.,

128.138.242.0/24128.138.243.0/24

}

→ 128.138.242.0/23

Page 68: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology (2)

BGP advertisement: a router advertises routes to networks, much like an entryin a distance-vector

◮ destinations are denoted by address prefixes

◮ an AS may or may not forward an advertisement for a foreign network; doing someans being willing to carry traffic for that network

◮ this is where a router may aggregate prefixes (a.k.a., “supernetting”)E.g.,

128.138.242.0/24128.138.243.0/24

}

→ 128.138.242.0/23

191.224.128.0/22191.224.136.0/21191.224.132.0/22

Page 69: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology (2)

BGP advertisement: a router advertises routes to networks, much like an entryin a distance-vector

◮ destinations are denoted by address prefixes

◮ an AS may or may not forward an advertisement for a foreign network; doing someans being willing to carry traffic for that network

◮ this is where a router may aggregate prefixes (a.k.a., “supernetting”)E.g.,

128.138.242.0/24128.138.243.0/24

}

→ 128.138.242.0/23

191.224.128.0/22191.224.136.0/21191.224.132.0/22

→ 191.224.128.0/20

Page 70: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology (3)

Autonomous system number (ASN): a unique identifier for each AS (with morethan one gateway)

Page 71: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology (3)

Autonomous system number (ASN): a unique identifier for each AS (with morethan one gateway)

BGP attributes: a route advertisement includes a number of attributes

◮ AS-PATH: sequence of ASNs through which the advertisement has been sent

Page 72: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology (3)

Autonomous system number (ASN): a unique identifier for each AS (with morethan one gateway)

BGP attributes: a route advertisement includes a number of attributes

◮ AS-PATH: sequence of ASNs through which the advertisement has been sent

◮ NEXT-HOP: specifies the interface (IP address) to use to forward packets towardsthe advertised destination◮ used to resolve ambiguous cases where an AS can be reached through multiplegateways (interfaces)

Page 73: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

BGP Architecture and Terminology (3)

Autonomous system number (ASN): a unique identifier for each AS (with morethan one gateway)

BGP attributes: a route advertisement includes a number of attributes

◮ AS-PATH: sequence of ASNs through which the advertisement has been sent

◮ NEXT-HOP: specifies the interface (IP address) to use to forward packets towardsthe advertised destination◮ used to resolve ambiguous cases where an AS can be reached through multiplegateways (interfaces)

BGP import policy: used to decide whether to accept or reject the routeadvertisement

◮ e.g., a router may not want to send its traffic through one of the AS listed inAS-PATH

Page 74: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Route Selection

1. Router preference: routes are ranked according to a preference value

◮ configured at the router

◮ or learned from another router within the same AS

◮ essentially a configuration parameter for the AS

Page 75: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Route Selection

1. Router preference: routes are ranked according to a preference value

◮ configured at the router

◮ or learned from another router within the same AS

◮ essentially a configuration parameter for the AS

2. Shortest AS-PATH

Page 76: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Route Selection

1. Router preference: routes are ranked according to a preference value

◮ configured at the router

◮ or learned from another router within the same AS

◮ essentially a configuration parameter for the AS

2. Shortest AS-PATH

3. Closest NEXT-HOP router

Page 77: Inter-Autonomous-System Routing: Border Gateway Protocol · 2017-12-15 · The Border Gateway Protocol (BGP) is the inter-AS routing protocol in today’s Internet provides reachability

Route Selection

1. Router preference: routes are ranked according to a preference value

◮ configured at the router

◮ or learned from another router within the same AS

◮ essentially a configuration parameter for the AS

2. Shortest AS-PATH

3. Closest NEXT-HOP router

4. . . .