+ All Categories
Home > Documents > A Model of BGP Routing for Network Engineering

A Model of BGP Routing for Network Engineering

Date post: 16-Oct-2021
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
28
A Model of BGP Routing for Network Engineering Nick Feamster, MIT Jared Winick, Lockheed Martin Jennifer Rexford, AT&T Labs--Research
Transcript
Page 1: A Model of BGP Routing for Network Engineering

A Model of BGP Routing for Network Engineering

Nick Feamster, MITJared Winick, Lockheed Martin

Jennifer Rexford, AT&T Labs--Research

Page 2: A Model of BGP Routing for Network Engineering

Problem: Network operators must tune routing protocols to provide good performace in the face of changing conditions.

Today: Tweak configuration and pray. Our Solution: Compute how a configuration

change will affect traffic flow before deployment.

Page 3: A Model of BGP Routing for Network Engineering

Overview

Internet composed of autonomous systems (ASes) Multiple connections between ASes

Page 4: A Model of BGP Routing for Network Engineering

Network Operators Must Respond to Events

Changes in Traffic Volume

Congestion!

Page 5: A Model of BGP Routing for Network Engineering

Network Operators Must Respond to Events

Changes in Traffic Volume

Note: The network does not adapt automatically!

Policy Change!

Page 6: A Model of BGP Routing for Network Engineering

Network Operators Must Respond to Events

Changes in Link Capacity

Increased Capacity

Page 7: A Model of BGP Routing for Network Engineering

Network Operators Must Respond to Events

Changes in Link Capacity

Increased CapacityPolicyChange

Page 8: A Model of BGP Routing for Network Engineering

Predicting Traffic Flow: Many Requirements

Knowledge about traffic volumes Information about available routes Prediction of paths between routers within the AS

Our contribution: Modeling how each router within one autonomous system (AS)

will select routes to external destinations.

Implemented in a accurate and fast tool that has been evaluated and tested on the AT&T IP backbone.

Page 9: A Model of BGP Routing for Network Engineering

Strawman #1: Simulation

Observation: If a routing system converges to a unique outcome, the

outcome is independent of the order that routers exchange messages and select paths.

Advantages Time ordering of messages does not affect outcome. Simulation will arrive at correct answer. Disadvantages Operators must know outcomes, not dynamics. Many possible message orderings: potentially slow.

Simulation: Accurate, but slow.

Page 10: A Model of BGP Routing for Network Engineering

Strawman #2: Rank Routes, Pick the Best One

Problem Incorrect answer! Two Artifacts of Border Gateway Protocol (BGP) Impossible to impose a complete ranking of routes

at a single router. Ranking between two routes can depend on presence (or absence)

of other routes.

All routes may not be visible at every router. Set of routes learned at one router depend on route selection at

other routers.

Note: These "artifacts" provide flexibility and scalability!

Page 11: A Model of BGP Routing for Network Engineering

Instead: Model a Certain Message Ordering

Step 1: Egress routers compute best routes. Outcome: A set of egress routers for each destination.

"Egress"Routers

Step 2: Egress routers propagate these routes to other routers within the AS.

Outcome: Each router in the AS selects a egress router.

Page 12: A Model of BGP Routing for Network Engineering

Instead: Model a Certain Message Ordering

Step 1: Egress routers compute best routes. Outcome: A set of egress routers for each destination.

Operators adjust BGP policiesat egress routers to affect this set.

Step 2: Egress routers propagate these routes to other routers within the AS.

Outcome: Each router in the AS selects a egress router.

Operators adjust internal routingto affect exit point selection.

Page 13: A Model of BGP Routing for Network Engineering

Step 1: Egress Routers Compute Best Routes

Problem: Ranking of routes at one router can depend on

routes learned at other routers.

GreenBlueGreen

>>Red

>BlueGreenRed >When green present:

>RedBlueWhen green not present:

MED=10MED=20

A B

Solution: Compute best local routes where possible, and propagate the effects.

Page 14: A Model of BGP Routing for Network Engineering

Step 1: Egress Routers Compute Best Routes

Algorithm: 1. Consider locally-best route at one router. 2. Eliminate routes as follows: If the route is worse than the locally-best route at another router,

eliminate it.

Else, select it, and eliminate all other routes at that router.

Green

BlueGreen>>Red

>BlueGreenRed >When green present:

>RedBlueWhen green not present:

MED=10MED=20

A B

Page 15: A Model of BGP Routing for Network Engineering

Step 1: Egress Routers Compute Best Routes

Algorithm: 1. Consider locally-best route at one router. 2. Eliminate routes as follows: If the route is worse than the locally-best route at another router,

eliminate it.

Else, select it, and eliminate all other routes at that router.

Green

BlueGreen>>Red

>BlueGreenRed >When green present:

>RedBlueWhen green not present:

MED=10MED=20

A B

Page 16: A Model of BGP Routing for Network Engineering

Model a Certain Message Ordering

Step 1: Egress routers compute best routes. Outcome: Each egress router has a route to the destination.

Step 2: Egress routers propagate these routes to other routers within the AS.

Outcome: Each router in the AS selects a egress router.

Page 17: A Model of BGP Routing for Network Engineering

Step 2: Choosing the Best Egress Router

Problem: Route at closest egress may not be visible.

RR1 RR2

CA B

Page 18: A Model of BGP Routing for Network Engineering

Step 2: Choosing the Best Egress Router

Problem: Route at closest egress may not be visible.

3 1

32

2

RR1 RR2

CA B

Page 19: A Model of BGP Routing for Network Engineering

Step 2: Choosing the Best Egress Router

Problem: Route at closest egress may not be visible.

3 1

32

2

RR1 RR2

C

Closest Egress

A B

Page 20: A Model of BGP Routing for Network Engineering

Step 2: Choosing the Best Egress Router

Problem: Route at closest egress may not be visible.

3 1

32

2

Closest Egress

RR1 RR2

CA BRR1’s closestegress is A.

RR2 and C select A.

Solution: First, compute routes at routers for which available

routes are known. Propagate effects.

Page 21: A Model of BGP Routing for Network Engineering

Step 2: Choosing the Best Egress Router

Algorithm (Graph Walk): 1. Assign routes to egress routers. (done in Step 1) 2. Assign routes to the parents of these routers. Once at top level of the hierarchy, proceed down.

3 1

32

2

RR1 RR2

CA B

Page 22: A Model of BGP Routing for Network Engineering

Step 2: Choosing the Best Egress Router

Algorithm (Graph Walk): 1. Assign routes to egress routers. (done in Step 1) 2. Assign routes to the parents of these routers. Once at top level of the hierarchy, proceed down.

3 1

32

2

RR1 RR2

CA B

Page 23: A Model of BGP Routing for Network Engineering

Step 2: Choosing the Best Egress Router

Algorithm (Graph Walk): 1. Assign routes to egress routers. (done in Step 1) 2. Assign routes to the parents of these routers. Once at top level of the hierarchy, proceed down.

3 1

32

2

RR1 RR2

CA B

Page 24: A Model of BGP Routing for Network Engineering

Step 2: Choosing the Best Egress Router

Constraints: 1. No partitions in the internal BGP graph. 2. Routers are "closer" to clients than non-clients. 3. No cycles in the internal BGP graph.

These constraints can be checked with static analysis.

Page 25: A Model of BGP Routing for Network Engineering

Summary: Model of BGP Route Selection

Step 1: Egress routers compute best routes. Outcome: Each egress router has a route to the destination.

r2 r3r1 r4

(r1, r2, r3, r4)

Output:

Input:

(r1, r4)

Step 2: Intra-AS propagation. Outcome: Each router in the AS selects a egress router.

Output:

Input:(r1, r4)

A −> r1B −> r4C −> r4

r1 r4

A B

C

Page 26: A Model of BGP Routing for Network Engineering

Summary: Model of BGP Route Selection

Step 1: Egress routers compute best routes. Outcome: Each egress router has a route to the destination.

r2 r3r1 r4

(r1, r2, r3, r4)

Output:

Input:

(r1, r4)

Step 2: Intra-AS propagation. Outcome: Each router in the AS selects a egress router.

Output:

Input:(r1, r4)

A −> r1B −> r4C −> r4

r1 r4

A B

C

Page 27: A Model of BGP Routing for Network Engineering

Implementation is Efficient and Accurate

< 1 second to compute effects of a policy change on

AT&T network. (100s of routers, ~ 90k destinations) Could be used as the "inner loop" for optimization. Model is accurate in more than 99% of all cases.

Router # Predictions Total Errors

RR1 89,343 554 (0.620%)

RR2 88,647 394 (0.444%)

AR1 88,649 391 (0.441%)

AR2 76,733 511 (0.666%)

Page 28: A Model of BGP Routing for Network Engineering

Conclusion

Operators must tune routing protocols as network

conditions change. Unfortunately, predicting the effects of these changes is difficult. We present a model of BGP routing. Useful for offline computation Fast and accurate Two artifacts complicate modeling BGP No total ordering (MED attribute) Limited route visibility (route reflection)

In the future, we should design distributed routing protocols in ways that facilitate modeling.


Recommended