redistribution communities for interdomain traffic engineering · ripe ris [ris02] route views...

31
0.5 setgray0 0.5 setgray1 Redistribution Communities for Interdomain Traffic Engineering B. Quoitin [email protected] Infonet Group, University of Namur, Belgium http://www.infonet.fundp.ac.be INF NET This work was supported by the European Commission within the IST ATRIUM project NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 1/27

Upload: others

Post on 13-Oct-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

0.5setgray0

0.5setgray1

Redistribution Communities forInter domain Traffic Engineering

B. Quoitin

[email protected]

Infonet Group, University of Namur, Belgium

http://www.infonet.fundp.ac.be

INF NET

This work was supported by the European Commission within the IST ATRIUM project

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 1/27

Page 2: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Tableof Contents

Introduction

BGP Communities attribute

Community-based Traffic Engineering

How does it work ?

How often is it used ?

Drawbacks

Solution: Redistribution communities

Conclusion

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 2/27

Page 3: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Communities

BGP Communities attribute

RFC1997 in 1996

list of 32 bits values

Transitive

Used to

mark routes which share a common property

signal routes which must undergo a given treatment

Allow more scalable configurations

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 3/27

Page 4: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Communities

Standardized values:

NO EXPORT, NO ADVERTISE, NO EXPORT SUBCONFED

0x00000000-0x0000FFFF and 0xFFFF0000-0xFFFFFFFF are

reserved

Useable space:

Usually structured as AS-number 0-65535

Unclear for private AS numbers (64512-65534) !

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 4/27

Page 5: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

RFC1998

RFC1998 recommends the use of communities formulti-homed/linked networks

set the LOCAL-PREF according to community values

attachCOMM. 1:50COMM. 1:100

attach

AS1

AS10

PRIMARY BACKUP

COMM.=1:X=>LOCAL−PREF=X

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 5/27

Page 6: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Community-based TE

Communities now appear in the global Internet

Used to request a particular treatment of routes announced to

a peer:

do not announce to specified peers;

prepend n times the as-path announced to specified

peers;

set the local-pref of the route.

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 6/27

Page 7: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Community-based TE

How does it work ?

eBGP eBGPBA CRECEIVING

BGPSPEAKER

SENDINGBGP

SPEAKER

TARGETBGP

SPEAKER

update update ?

3. configure communities to attach to routes

1. Configure actions to take whena route has a given community

2. Publish correspondance betweencommunity values and action/target

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 7/27

Page 8: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Selective announcements

upstream peers

privatepeering

138.48.0/23

AS1

AS10

AS2

AS20

PREFIX=138.48.0/23AS−PATH=AS10 AS20

PREFIX=138.48.0/23AS−PATH=AS20

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 8/27

Page 9: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Selective announcements

upstream peers

privatepeering

138.48.0/23

AS1

AS10

AS2

AS20

Routes withCOMMUNITY 10:1

are not redistributedby AS10

PREFIX=138.48.0/23AS−PATH=AS20COMMUNITIES=10:1

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 8/27

Page 10: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Prepending

Traffic from A

S3

138.48.0/23

PREFIX=138.48.0/23AS−PATH=20 30 10

AS3 AS1

AS20

AS30AS10

AS4

T

raff

ic fr

om AS4

PREFIX=138.48.0/23AS−PATH=1 10

PREFIX=138.48.0/23AS−PATH=10

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 9/27

Page 11: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Prepending

Traffic from A

S3

138.48.0/23

PREFIX=138.48.0/23AS−PATH=20 30 10

AS3 AS1

AS20

AS30AS10

AS4

PREFIX=138.48.0/23AS−PATH=10COMM.=1:2004

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 9/27

Page 12: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Prepending

Traffic from A

S3

138.48.0/23

PREFIX=138.48.0/23AS−PATH=20 30 10

AS3 AS1

AS20

AS30AS10

AS4

PREFIX=138.48.0/23AS−PATH=10COMM.=1:2004 Traffic from AS4

PREFIX=138.48.0/23AS−PATH=COMM.=1:2004

1 1 1 10PREFIX=138.48.0/23AS−PATH=1 10COMM.=1:2004

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 9/27

Page 13: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Analysis of BGP tables

Are these communities often used ?Analysis of BGP tables

RIPE RIS [RIS02]

Route Views [Mey02]

during the period January 2001 - April 2002

in conjunction with

whois databases

ISPs web sites

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 10/27

Page 14: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Percentageof routeswith communities

0

10

20

30

40

50

60

70

01/01/2001 01/05/2001 01/09/2001 01/01/2002 01/05/2002

Per

cent

age

of r

oute

s w

ith c

omm

uniti

es

RIPE NCCRoute-Views

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 11/27

Page 15: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Number of distinct community values

0

500

1000

1500

2000

2500

01/01/2001 01/05/2001 01/09/2001 01/01/2002 01/05/2002

Num

ber

of d

iffer

ent c

omm

uniti

es

RIPE NCCRoute-Views

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 12/27

Page 16: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Community-basedpollution

40 communities attached to a single route !

TABLE DUMP|1019465346|B|64.200.199.3|7911|57.249.147.0/24| 7911 3561

5511 3215|INCOMPLETE|64.200.199.3|0|0| 3215:101 3215:204 3215:500

3215:589 3215:903 3215:1001 3215:2001 3215:7503 3215:50000 3561:11840

3561:30010 3561:30020 3561:30030 3561:30040 3561:30050 3561:30060

3561:30070 3561:30080 3561:30090 3561:30100 3561:30110 3561:30120

3561:30130 3561:30140 3561:30150 3561:30160 3561:30170 3561:30180

3561:30190 3561:30200 3561:30410 3561:30420 3561:30430 3561:30440

3561:30450 3561:30460 5511:500 5511:502 5511:999 7911:999|NAG||

AS3215 (France Telecom)

AS3561 (Cable & Wireless)

AS5511 (OpenTransit)

Is it useful to keep all these communities in routingtables ?

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 13/27

Page 17: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Publishedcommunities

How do ASes publish/define their communities ?Information from

whois database (remarks in RPSL)

ISPs web sites

defined in peering contract ?

short summary (51 ASes observed)

target

actiondo-not-announce prepending

specified AS 63 % 53 %

specified IX 49 % 37 %

specific peers 38 % 29 %

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 14/27

Page 18: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Selective announcements

Example of communities

Value Meaning

1755:1000 Do not announce to US upstreams/peers

1755:1101 Do not announce to Sprintlink(US)/AS1239

1755:1102 Do not announce to UUNET(US)/AS701

1755:1103 Do not announce to Abovenet(US)/AS6461

. . .

1755:2000 No announcement to european peers

. . .

Community values published by Ebone (AS1755).

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 15/27

Page 19: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Structured values

Smart design

3561:30PPN PP is the peer code

examples: 00=All Peers, 01=Genuity,

02=Sprint, 03=PSINet, 04=Qwest, ...

N = 0, do not export to anyone

= 1, prepend once to PP

= 2, prepend twice to PP

= 3, prepend three times to PP

Community values published by Cable & Wireless (AS3561).

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 16/27

Page 20: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

A possiblesolution ?

Reuse unallocated community values

Value Meaning

65000:X do not announce on peerings to AS X

64970:X do not announce on Asian/Pacific peerings to AS X

64980:X do not announce on European peerings to AS X

64990:X do not announce on North American peerings to AS X

Community values published by Level3 (AS9057).

Can every AS behave as Level3 ?

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 17/27

Page 21: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Community-based TE

DrawbacksSemantic of community values must be published,

Limited size of communities

Unstructured values.

Manual configuration

Error-prone configuration

Risk of errors

Transitivity.

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 18/27

Page 22: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Redistribution Communities

How to improve the mechanism ?Redistribution Communities are the solution !

Internet draft

draft-ietf-ptomaine-bgp-redistribution-00.txt

new type of extended-communities

Non-transitive => no pollution !

Larger size: 8 bytes

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 19/27

Page 23: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Redistribution Communities

Action

Prepend

Attach NO EXPORT

Do not announce

Filter

AS

CIDR prefix

(1 byte) (1 byte) (6 bytes)

01TBDTBD Action Filter

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 20/27

Page 24: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Redistribution Communities

Is it implementable ? YES

Zebra

Routing software

Implementation

1. Extension of the command-line interface (CLI)

2. Modification of the redistribution code

3. < 2000 lines of code

Your favorite router vendorcould easily do it as well !

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 21/27

Page 25: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Redistribution Communities

Configuration required

eBGP eBGPBA CRECEIVING

BGPSPEAKER

SENDINGBGP

SPEAKER

TARGETBGP

SPEAKER

update update ?

3. configure communities to attach to routes

1. Configure actions to take whena route has a given community

2. Publish correspondance betweencommunity values and action/target

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 22/27

Page 26: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Redistribution Communities

Configuration required

eBGP eBGPBA CRECEIVING

BGPSPEAKER

SENDINGBGP

SPEAKER

TARGETBGP

SPEAKER

update update ?

2. Configure actions to apply to routes

communities1. Enable the support of redistribution

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 22/27

Page 27: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Redistribution Communities

AS20 requests that AS10 do not re-announce itsroutes to AS1 and AS2.

router bgp 20

neighbor x.x.x.x remote-as 10

neighbor x.x.x.x route-map config-community out

neighbor x.x.x.x send-community

!

route-map config-community permit 10

match ip address any

set extcommunity red ignore:as(1) ignore:as(2)

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 23/27

Page 28: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Redistribution Communities

AS10 requests that AS1 prepend 2 times whenre-announcing to AS4 only.

router bgp 10

neighbor x.x.x.x remote-as 1

neighbor x.x.x.x route-map config-community out

neighbor x.x.x.x send-community

!

route-map config-community permit 10

match ip address any

set extcommunity red prepend(2):as(4)

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 24/27

Page 29: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Conclusion

Advantages of the redistribution communitiesStandardized and structured => reduces risk of

misconfiguration,

Not transitive => reduces table growth and pollution,

Simple to implement and easy to configure,

Could also be used toreduce the impact of denial of service attacks;

with route optimization tools ...

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 25/27

Page 30: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

Thank you for your attention

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 26/27

Page 31: Redistribution Communities for Interdomain Traffic Engineering · RIPE RIS [RIS02] Route Views [Mey02] during the period January 2001 -April 2002 in conjunction with whois databases

References

[BCH+02] O. Bonaventure et al. Controlling the redistribution of BGP routes. Internetdraft, http://www.ietf.org/internet-drafts/draft-ietf-ptomaine-bgp-redistribution-00.txt.

[Mey02] Route-Views project. http://archive.routeviews.org.

[QB02] B. Quoitin and O. Bonaventure. A survey of the utilization of the BGPcommunity attribute. Internet draft,http://www.ietf.org/internet-drafts/draft-quoitin-bgp-comm-survey-00.pdf.

[RIS02] RIPE RIS project. http://data.ris.ripe.net.

[UB02] A study of the macroscopic behavior of Internet traffic. S. Uhlig and O.Bonaventure. Under submission. Available from http://www.infonet.fundp.ac.be/doc/tr.

NANOG25 (June 9-11, 2002), (c) B. Quoitin – p. 27/27