bgp-slides
bgp-slides
Michael Silvin
Fredrik Söderquist
Contents
• Background • GigaSunet
• Mechanics • Security
• ASN • Interconnecting
• iBGP • Politics
• Route Reflection • Policies
• Confederation • Filtering
• RR vs Confederation • Learning more
• Potato Routing
Background
● BGP first became an Internet standard in 1989
● Originally defined in RFC 1105
● The current version, BGP-4, was adopted in 1995
and is defined in RFC 1771
● BGP-4 supports Classless Inter Domain Routing
(CIDR)
● Is the routing protocol that people use in today to
route between autonomous systems.
Quick look at the mechanics
● Uses TCP to establish a reliable connection
between two BGP speakers on port 179.
● Path vector protocol, stores routing information
as a combination of a destination and attributes of
the path to that destination.
● BGP runs in two modes: eBGP and iBGP
● Five message types are used:
BGP Message Header
non-clients
RR
clients
Hierarchical Route Reflection
● Several levels of RRs level 2
● No limit on the
number of levels clients
Confederation (1/4)
● RFC 3065
● Splits an AS into a number of smaller AS:es
– Member AS:es/Sub AS:es
● eBGP used among sub AS:es (intraconfederation
eBGP sessions)
● Full mesh within sub AS
– Route Reflection can be used inside a sub AS
Confederation (2/4)
● Intraconfederation eBGP sessions follow iBGP
rules in some cases and eBGP rules in some cases
– AS_PATH is updated when sending updates
● Three different types of peering
– External (from confederation to external)
– Confederation external (between sub AS:es)
– Internal (within sub AS)
Confederation (3/4)
● The following applies to the different session
types (for AS_PATH)
– External: Sub ASN removed, Confed. ASN
prepended
– Confederation external: Sub ASN prepended
– Internal: Not modified
● Any range of ASNs can be used in a
confederation since these ASNs are not exported.
Confederation (4/4)
(sub)AS 65100
AS 100
(sub)AS 65102
(sub)AS 65101
AS 300
AS 200
Confederation vs. Route Reflection
● Hierarchies allowed for both (using Route
Reflection sub AS:es in Confederation case)
● Route Reflection requires minor changes when
implementing – Confederation requires major
changes in configuration and architecture
● Route Reflection requires router support –
Confederation requires router support for
AS_PATH elements
● Single IGP inside AS for Route Reflection –
Single and separate IGP possible in
Confederation
Hot/Cold Potato Routing
● Hot
– Let the traffic take the shortest path out of the
network (get rid of the ”hot potato”)
– Cheaper
● Cold
– Keep the traffic as long as possible
– Good for QoS
GigaSunet RR Layout
• Original layout of
GigaSunet (2002)
• 2 RRs per ring
• Cisco did not think
their equipment could
handle full mesh…
GigaSunet RR Layout (peerings)
GigaSunet Layout
● RR to Full mesh in the summer 2003
● Allows for ”hot potato routing”
BGP Security
● Infrastructure attacks
– Resetting of sessions
● Malicious advertisements
– Graded route flap dampening
– Peer/route filtering
– Public peering
● DDoS countermeasures
– Dynamic Black Hole Routing
Resetting sessions
● Possible to reset BGP session by guessing TCP
session parameters
● Use MD5 signatures (a TCP option) to make this
more difficult
Route Flapping
● Routing change that causes a change in the BGP
tables (e.g. link goes up/down)
● Problem reduced by using Route Flap Dampening
Route Flap Dampening
● Maintain history for routes/prefixes
● Several parameters control the dampening
– State (damp, history)
– Penalty
– Suppress limit (and maximum suppress limit)
– Half life
– Reuse limit
Graded Route Flap Dampening
● All prefixes are equal... not...
● More hosts in /8 than in /24, so shorter
suppression time for /8:s
● For essential services such as DNS no graded
dampening should be performed.
Public Peering
● Pointing default
– Point default route into ISP via NAP router
– Full BGP routes should not be carried by NAP router
● Third-party Next-Hop
– Redirect peering traffic elsewhere
– Full BGP routes should not be carried by NAP router
Dynamic Black Hole Routing
● Advertise BGP prefix with next-hop to a null
route
● Victim of DDoS will have its prefix advertised
with next-hop set to null route
● Prefix advertised to edge of network
● Traffic can also be redirected for analysis (sink
router)
● What if we black hole a customers entire prefix?
Interconnecting to other networks
(1/2)
● Transit
– customer allowed to transit the network to reach its
destination
● Peering
– reachability between ISPs (and their direct customers)
– public peering (Network Access Points (NAPs),
Internet eXchange Points (IXPs) and Metropolitan
Area Exchanges (MAEs))
– private peering (ISP to ISP)
Interconnecting to other networks
(2/2)
● ISP Tier
– Level 1, peering only
– Level 2, peering and transit
– Level 3, mostly transit, may have peering
Zen of the Day