interdomain routing streams - university of michigan

2
Interdomain Routing Streams Timothy G. Griffin * Zhuoqing Morley Mao Abstract Dynamic routing in the global Internet is currently performed by the Border Gateway Protocol (BGP). Initialization of a BGP session results in a full routing table being exchanged — currently about 130,000 routes. After initialization, BGP speakers send only deltas to their neighbors. Once timestamps are added to a stream of BGP deltas, it can be thought of as an append-only relation. Many queries useful in network mon- itoring can then be expressed as continuous queries over this data stream. In this abstract we briefly describe these streams as well as several public sources of data. 1 BGP and Network Monitoring The Border Gateway Protocol (BGP) [7, 3] is the only dy- namic routing protocol used to maintain reachability between autonomously administered networks on the global Internet. Initialization of a BGP session results in a full routing table being exchanged — currently about 130,000 routes. After ini- tialization, BGP speakers send only deltas to their neighbors. BGP routing streams are designed to allow BGP speaking routers to maintain timely information about the reachability of IP address ranges. However, tapping into this stream of data has proved very valuable to network operators, engineers, and researchers interested in monitoring the global dynamics of the IP routing system. In particular, an Internet Service Provider (ISP) may want to monitor its customer routes and its own address space very carefully. Applications of this kind need to process streams of BGP messages arriving from dozens of BGP speakers in a network in near real-time. In this abstract we will refer to the publicly available BGP data archived at Route Views [1] and RIPE [6]. However, the reader should keep in mind that the network management ap- plications we are most interested in are driven by near real- time data available inside large ISP networks. Typically, ISPs consider such data to be proprietary, since it contains customer and infrastructure information that is filtered out before being sent to external BGP neighbors, and to BGP archive sites such as Route Views and RIPE. The Route Views BGP monitor collects update streams from 25 BGP speaking neighbors. Typically, Route Views collects five to six million updates per day. This is approximately * AT&T Labs – Research, Florham Park, NJ, USA. E-mail: grif- [email protected]. Computer Science Division, University of California at Berkeley, USA. E-mail: [email protected]. the same order of magnitude of updates that might be col- lected inside a large ISP with BGP streams arriving from 25 large metropolitan regions. Figure 1 shows four updates sent to Route Views from AT&T on March 26, 2003. A type of “A” represents and announcement, while a “W” represents a withdrawal. The prefix, such as 217.12.112.0/20, represents a range of IP addresses. The AS path is a BGP attribute that records the Autonomous Systems that an announcement has traversed. (BGP records actually contain more attributes used to implement policy-based routing, but for simplicity we ig- nore them here.) The timestamp has a granularity of one sec- ond, and these updates arrived within the same timestamp. BGP Streams can be thought of as an append-only relation, and many queries useful in network monitoring can then be expressed as continuous queries over this data stream [8, 4, 2]. Update rate. The simplest type of continuous query is a count of the number of updates received during some win- dow of time. For example, Figure 2 shows the BGP update count per second from Route Views during the “SQL Slammer Worm” attack of January 25, 2003. Note that there is a sudden sharp increase in the number of BGP updates. The reason that a worm might impact BGP routing is a bit involved, but it is primarily due to saturation of links at the edge of the network resulting in dropped BGP messages, which in turn causes BGP sessions to reset and BGP speaking routers to withdraw routes. In general, ISPs are very interested in monitoring the stability of routes sent from their customers. 0 1000 2000 3000 4000 5000 6000 7000 8000 9000 00:00 06:00 12:00 18:00 00:00 06:00 BGP update count Time (GMT) BGP Impact of SQL Worm, 1/25/2003 (Route Views data) total updates per second Figure 2: Update counts during SQL Slammer worm Aggregate stability measures. A more sophisticated mea- sure of route instability can be based on the route penalty metric associated with BGP’s route flap damping mecha- nism [9, 5]. Each route is associated with a penalty that is increased each time the route changes. This penalty decays ex- 1

Upload: others

Post on 03-Feb-2022

3 views

Category:

Documents


0 download

TRANSCRIPT

Interdomain Routing Streams

Timothy G. Griffin∗ Zhuoqing Morley Mao†

Abstract

Dynamic routing in the global Internet is currently performedby the Border Gateway Protocol (BGP). Initialization of aBGP session results in a full routing table being exchanged— currently about 130,000 routes. After initialization, BGPspeakers send only deltas to their neighbors. Once timestampsare added to a stream of BGP deltas, it can be thought of as anappend-only relation. Many queries useful in network mon-itoring can then be expressed as continuous queries over thisdata stream. In this abstract we briefly describe these streamsas well as several public sources of data.

1 BGP and Network Monitoring

The Border Gateway Protocol (BGP) [7, 3] is the only dy-namic routing protocol used to maintain reachability betweenautonomously administered networks on the global Internet.Initialization of a BGP session results in a full routing tablebeing exchanged — currently about 130,000 routes. After ini-tialization, BGP speakers send only deltas to their neighbors.

BGP routing streams are designed to allow BGP speakingrouters to maintain timely information about the reachabilityof IP address ranges. However, tapping into this stream of datahas proved very valuable to network operators, engineers, andresearchers interested in monitoring the global dynamics of theIP routing system. In particular, an Internet Service Provider(ISP) may want to monitor its customer routes and its ownaddress space very carefully. Applications of this kind needto process streams of BGP messages arriving from dozens ofBGP speakers in a network in near real-time.

In this abstract we will refer to the publicly available BGPdata archived at Route Views [1] and RIPE [6]. However, thereader should keep in mind that the network management ap-plications we are most interested in are driven by near real-time data available inside large ISP networks. Typically, ISPsconsider such data to be proprietary, since it contains customerand infrastructure information that is filtered out before beingsent to external BGP neighbors, and to BGP archive sites suchas Route Views and RIPE.

The Route Views BGP monitor collects update streams from25 BGP speaking neighbors. Typically, Route Views collectsfive to six million updates per day. This is approximately

∗AT&T Labs – Research, Florham Park, NJ, USA. E-mail: [email protected].

†Computer Science Division, University of California at Berkeley, USA.E-mail: [email protected].

the same order of magnitude of updates that might be col-lected inside a large ISP with BGP streams arriving from 25large metropolitan regions. Figure 1 shows four updates sentto Route Views from AT&T on March 26, 2003. A type of“A” represents and announcement, while a “W” represents awithdrawal. The prefix, such as 217.12.112.0/20, representsa range of IP addresses. The AS path is a BGP attribute thatrecords the Autonomous Systems that an announcement hastraversed. (BGP records actually contain more attributes usedto implement policy-based routing, but for simplicity we ig-nore them here.) The timestamp has a granularity of one sec-ond, and these updates arrived within the same timestamp.

BGP Streams can be thought of as an append-only relation,and many queries useful in network monitoring can then beexpressed as continuous queries over this data stream [8, 4, 2].

Update rate. The simplest type of continuous query is acount of the number of updates received during some win-dow of time. For example, Figure 2 shows the BGP updatecount per second from Route Views during the “SQL SlammerWorm” attack of January 25, 2003. Note that there is a suddensharp increase in the number of BGP updates. The reason thata worm might impact BGP routing is a bit involved, but it isprimarily due to saturation of links at the edge of the networkresulting in dropped BGP messages, which in turn causes BGPsessions to reset and BGP speaking routers to withdraw routes.In general, ISPs are very interested in monitoring the stabilityof routes sent from their customers.

0

1000

2000

3000

4000

5000

6000

7000

8000

9000

00:00 06:00 12:00 18:00 00:00 06:00

BG

P u

pdat

e co

unt

Time (GMT)

BGP Impact of SQL Worm, 1/25/2003 (Route Views data)

total updates per second

Figure 2: Update counts during SQL Slammer worm

Aggregate stability measures. A more sophisticated mea-sure of route instability can be based on the route penaltymetric associated with BGP’s route flap damping mecha-nism [9, 5]. Each route is associated with a penalty that isincreased each time the route changes. This penalty decays ex-

1

timestamp type prefix AS path

1048665376 A 217.12.112.0/20 7018 3356 8220 12878 5606 15471 254541048665376 W 212.49.85.0/241048665376 A 12.27.216.0/24 7018 1239 14793 268091048665376 A 12.27.217.0/24 7018 1239 14793 26809

Figure 1: Sample updates from Route Views.

ponentially. Figure 3 shows aggregated penalty values duringthe “SQL Slammer Worm” attack. Note that there is a sharpincrease in the aggregate penalty value around 06:00 GMT onJanuary 25, 2003, when the attack just started. Such changecan be used as an alarm to help network operators quickly rec-ognize the problem.

00:00 06:00 12:00 18:00 00:00 06:00

0.5

1

1.5

2

2.5

3

3.5

4

4.5

5x 10

8

Time (GMT)

Agg

rega

te r

oute

pen

alty

BGP Impact of SQL Worm, 1/25/2003 (Route Views data)

Figure 3: RFD Penalty during SQL Slammer worm

BGP table. The BGP table contains “best routes” to allof the destinations it has learned. Given a continuous BGPstream, starting at some time t in the past, sent from neighbor-ing router R, we can construct that portion of R’s BGP tablethat has changed since time t. If a BGP session reset has oc-curred since t, then we can reconstruct the entire BGP table(since a router must send its entire table when a sessions isreestablished after a reset). This table can be thought of asa materialized view of the BGP update stream. One simplequery over this view is the number of routes in the table. Fig-ure 4 shows BGP table size for several Route Views neighborsduring the “SQL Slammer Worm” attack. Note that there is asudden sharp drop in the number of routes in these BGP tables.Since this is seen across a large number of sources, it can beinterpreted as a global disruption in the global routing systemand could be seen as an early warning sign of trouble on theInternet.

References

[1] University of Oregon Route Views Archive Project.www.routeviews.org.

111000

112000

113000

114000

115000

116000

117000

118000

119000

120000

00:00 06:00 12:00 18:00 00:00 06:00

BG

P r

oute

cou

nt

Time (GMT)

BGP Impact of SQL Worm, 1/25/2003 (Route Views data)

Genuity (AS 1)Telstra (AS 1221)

Global Crossing (AS 3549)Level 3 (AS 3356)

Cable & Wireless (AS 3561)Sprint (AS 1239)AT&T (AS 7018)

Figure 4: Table size during SQL Slammer worm

[2] Brian Babcock, Shivnath Babu, Mayur Datar, Rajeev Motwani,and Jennifer Widom. Models and issues in data stream systems.In Proceedings of Symposium on Principles of Database Systems(PODS 2002).

[3] B. Halabi. Internet Routing Architectures. Cisco Press, 1997.

[4] Ling Liu, Calton Pu, and Wei Tang. Continual queries for internetscale event-driven information delivery. Knowledge and DataEngineering, 11(4):610–628, 1999.

[5] Zhuoqing Morley Mao, Ramesh Govindan, George Varghese,and Randy H. Katz. Route flap damping exacerbates internetrouting convergence. In Proceedings of ACM SIGCOMM 2002.

[6] Ripe NCC. Routing Information Service Raw Data.http://abcoude.ripe.net/ris/rawdata/.

[7] Y. Rekhter and T. Li. A border gateway protocol. RFC 1771(BGP version 4), 1995.

[8] Douglas Terry, David Goldberg, David Nichols, and Brian Oki.Continuous queries over append-only databases. In Proceedingsof ACM SIGMOD 1992.

[9] C. Villamizar, R. Chandra, and R. Govindan. BGP Route FlapDamping. RFC 2439, 1998.

2