22
BGP, where are we now? John Scudder and David Ward May 2007

Moderate BGP

Embed Size (px)

Citation preview

Page 1: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 1/22

BGP, where are wenow?

John Scudder and David WardMay 2007

Page 2: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 2/22

Agenda

• Trivia

• Dynamic behavior

• Convergence properties and problems

• Convergence/stability work items

Page 3: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 3/22

Goals and Priorities

• BGP Goal: Maximize connectivity ofInternet

• Convergence and stability are

subsidiary to this• Implication: Priorities

• First: fastest service restoration• Second: minimize peak load on control

plane

Page 4: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 4/22

Focus• This talk focuses on performance and

stability• There are other very important aspectsof BGP

• Services

• Operations

• Weird behaviors (wedgies, etc)• Security

• Policy modeling

• …

• But we don’t have all day

Page 5: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 5/22

Shalt Not’s

• BGP uses ASes for loop suppression —and nothing else!

• Speaking of “overloading things”… ASes are not locators . No topological significance.

• Auto-aggregation appears to be a non-starter

• Even proxy aggregation is tricky, but that’san operational consideration

Page 6: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 6/22

MP-BGP

• BGP carries data for multiple addressfamilies (AFs)

•Plain old IP (v4, v6)

• VPNv4

• Other things

• Not all AFs need to be present on allrouters!

Page 7: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 7/22

VPNs

•Often observed that VPN tables largerthan Internet table

• True, in aggregate

• But, not true of any single VPN table

• Inherently parallelizable

• No single PE or RR holds all VPN tables• Operational challenges to managing

• Some tools to do this, e.g. rt-constrain

Page 8: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 8/22

BGP dynamic

behavior

• Confusion even among routing experts

• Of course, surprising emergentbehaviors are possible

• … but important to understandbounding conditions

Page 9: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 9/22

BGP and TCP

• BGP runs over TCP

• Flow control: important implications fordynamics

•Intuition about TCP is usually wrong…

Page 10: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 10/22

BGP under load

• When uncongested, BGP will passupdates as fast as they are received

•Modulo MRAI, dampening

• Degradation mode under (CPU)congestion: state compression

• “Adaptive low-pass filter” behavior emerges

• Things slow down, they typically do not melt

Page 11: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 11/22

BGP under load [2]• BGP adapts to speed of peer

• Slow peer gets routes as slow as it wants (withstate compression)

•Fast peer gets routes as fast as it wants

• Implication: One slow peer does not hinderoverall convergence

• Update packing• Low prefix/update ratios when not congested…

but that’s fine!

• High ratios emerge under congestion… whichis when needed

Page 12: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 12/22

BGP convergence• At least O(n) in the size of the DFZtable

• Fundamental to how BGP transports routes

• But full convergences don’t happen

often!• At startup (“initial convergence”)

• On rare occasions otherwise

• Hard to “fix” completely — but is itbroke?

• “BGP’s biggest, yet least important,problem.”

Page 13: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 13/22

BGP convergence [2]• Techniques to avoid full convergences

• Graceful Restart

• Nonstop Routing

• … or to cover them up

• Different flavors of fast reroute

• … or to pre-converge by advertisingextra routes

• Best-external, multi-path and similar

Page 14: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 14/22

Route Reflection

• RRs hide backup paths• Reduce RIB sizes (but less than you think)

•Bad for convergence

• Convergence:

• State reduction/data hiding

• Faster convergence

• Pick one

Page 15: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 15/22

Known Algorithmic

Deficiencies

•Path hunting

• Nonconverging policies

• At least O(n) in DFZ size

Page 16: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 16/22

Path Hunting

• Well-known amplification effect

• Approaches to reduce

• Root cause notification

• Propagation of backup paths

Page 17: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 17/22

Propagation of

Backup Paths

• Transit ASes seldom fully partition fromeach other

• However, when a single AS-AS linkgoes down, border router temporarilyloses routes

• Due to aggressive data hiding by less-preferred border routers and RRs

Page 18: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 18/22

Propagation ofBackup Paths [2]

• Speculation: many “path disturbance”events caused by this effect

• Intra-domain backup propagation

feasible today• Cost: some additional RIB state within

AS

• Benefit: faster internal convergence and global stability

Page 19: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 19/22

Some Possible Tools**** = under discussion

• As-pathlimit ****

• Aggregate withdraw ****

• Best-external ****

• Better instrumentationreusing WRD infra

• BGP free core (pick yourencap) ****

• Dampening (with better

parameters) ****

• Multi-path ****

• Root cause notification

• BGP - Fast Re-Route ****

• Better UPDATE packingalgorithms/techniques

Page 20: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 20/22

Moving Forward• Narrow down (or expand!) “possible tools”

list

• Align costs and benefits

• Those who pay, must benefit, or solution willnever be deployed

• Many examples of existing technically-excellent“solutions” to current problems… but problems

still exist. Example: BCP-38

• Deployment trumps all considerations!

• Focus on behavior under load (or makingload go away!)

Page 21: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 21/22

Dampening• Misused in past (we were wrong aboutdefault parameters)

• Heavy contribution of few sites to GHdata suggests very generous

parameters which only penalizeegregious flappers

• Study needed to validate what constitutes

“egregious”• Given parameters, can be turned on

today

• Lower-than-low hanging fruit

• Ali ns costs and benefits

Page 22: Moderate BGP

8/3/2019 Moderate BGP

http://slidepdf.com/reader/full/moderate-bgp 22/22

Punch Line• BGP not in danger of falling over

• Lots of runway

• IDR• Near-term improvements

• Most cause increased use of router resources

• RRG

• Fundamental changes, e.g. new routing and addressingarchitectures

• GROW (recharter)

• Analysis of routing system

• BMWG, IPPM

• Define metrics