Documente Academic
Documente Profesional
Documente Cultură
Part 4/5
Olivier Bonaventure
Department of Computing Science and Engineering
Universit catholique de Louvain (UCL)
Place Sainte-Barbe, 2, B-1348, Louvain-la-Neuve (Belgium)
URL : http://www.info.ucl.ac.be/people/OBO
BGP basics
Case study
Pre-CIDR
rapid growth
Increase in multi-homing
UPDATE UPDATE
Prefix:194.100.0.0/23, Prefix:194.100.0.0/ 16
NextHop:194.100.0.1 NextHop:194.100.0.2
ASPath: AS65000 ASPath: AS123
AS65000 194.100.0.2
R2
194.100.0.0/30
R1 194.100.0.1
194.100.10.0/23 194.100.0.0/ 16
AS123
its provider
No impact on BGP routing table size
BGP/2003.4.5 O. Bonaventure, 2003
Evolution of typical stub AS (2)
Advantage
200.0.0.2
UPDATE UPDATE
R3 Prefix:194.100.10.0/23 Prefix:200.00.0.0/23,
NextHop:200.0.0.2 NextHop:200.0.0.2
ASPath: AS789:AS4567 ASPath: AS789
200.0.0.0/ 16
AS789
BGP/2003.4.8 O. Bonaventure, 2003
A dual-homed stub ISP (2)
UPDATE UPDATE
Prefix:194.100.0.0/ 16 Prefix: 194.100.10.0/23
ASPath: R ASPath: ASW:ASZ:AS789:AS4567
ASX:ASY:{AS123,AS4567}
AS9999
Routing table
194.100.10.0/ 23 Path:ASW:ASZ:AS789:AS4567
Consequences
BGP basics
Case study
quality of routes
Not always a good indicator R0
R1
RA
R2
RB R3
RC R4
Consequence
Internet paths tend to be short, 3-5 AS hops
AS1
R6's routing table R8
1/8:AS2 via R2 (eBGP,best) C= 50 R7's routing table
1/ 8:AS2 via R3 (iBGP) C= 1 1/ 8:AS2 via R2 (iBGP)
1/8:AS2 via R3 (eBGP, best)
R6 R7
UPDATE UPDATE
Prefix:1.0.0.0/8 Prefix:1.0.0.0/8
ASPath: AS2 ASPath: AS2
NextHop: R3
NextHop: R2 C= 1 C= 98
R2 R0 R3 Flow of IP packets
towards 1.0.0.0/ 8
1.0.0.0/ 8 AS2
R6 R7
UPDATE UPDATE
Prefix:1.0.0.0/8 Prefix:1.0.0.0/8
ASPath: AS2 ASPath: AS2
NextHop: R2 NextHop: R3
C= 1 C= 98
R2 R0 R3
BGP/2003.4.15
1.0.0.0/ 8 AS2 O. Bonaventure, 2003
The lowest MED step in
the BGP decision process
Motivation : cold potato routing
In a multi-connected AS, indicate which entry
C= 50 C= 1
AS1
R6 R7
UPDATE
UPDATE
Prefix:1.0.0.0/8
Prefix:1.0.0.0/8
ASPath: AS2
ASPath: AS2
NextHop: R3
NextHop: R2 C= 1 C= 98 MED: 98
MED : 1 R2 R0 R3
AS1
R0
1.0.0.0/ 8
AS2 R2 R3 AS3
UPDATE UPDATE
Prefix:1.0.0.0/8 Prefix:1.0.0.0/8
ASPath: AS2:AS1 R1 ASPath: AS3:AS1
Consequence
A router with a low IP address will be preferred
Flow of IP packets
R8
AS1
C= 50 C= 1
C= 1
C= 50
R6 R6b R7b R7
C= 1
R0:AS2:AS0, MED=0 R4 R3
R0:AS2:AS0, MED=9
AS3
C= 9
R2 R5
AS2
AS0
BGP/2003.4.19 R0 O. Bonaventure, 2003
Route oscillations with MED
C=1
eBGP session RR1 RR3
iBGP session
C=1
Physical link C=2 C=4
R1 R2 R3
RX RZ
R0
R1 R2 R3
RX RZ
BGP/2003.4.21 R0 O. Bonaventure, 2003
Route oscillations with MED (3)
RR1's best path selection
R1 R2 R3
RX RZ
R0
BGP/2003.4.22 O. Bonaventure, 2003
Other problems with Route Reflectors
RR2
RX RY RZ
Ra, Rb, and Rc will all prefer their direct eBGP path
RR1, RR2 and RR3 will never reach an agreement
BGP/2003.4.23 O. Bonaventure, 2003
Forwarding problems with Route Reflectors
Physical link
RX RY
BGP basics
Case study
Optimize performance
Principle
rely on SNMP statistics maintained by each
frequently
Advantages
Simple to use and to deploy
collection/ presentation
Rough information about network load
Drawbacks
No addressing information
congestion
BGP/2003.4.28 O. Bonaventure, 2003
Flow-level traffic capture
R2
R1
R3 R4
Principle
Advantages
provides detailed information on the traffic
Drawbacks
flow information needs to be exported to
monitoring station
information about one flow is 30 - 50 bytes
average size of HTTP flow is 15 TCP packets
CPU load on high speed on routers
monitoring workstation
Netflow v8
Economical criteria
Cost of link
Cost of traffic
provider
Number of routes announced by provider
Length of the routes announced by provider
providers
12 large providers peering with routeviews
providers
P1
ISP
P2
100000
80000
non-deterministic choice
60000
40000
20000
0
AS 3257
AS 1239
AS 2914
AS 7911
AS 1668
AS 3561
AS 7018
AS 5511
AS 3356
AS 3549
AS 293
AS 1
AS peer
BGP/2003.4.37 O. Bonaventure, 2003
Tuning BGP to ...
control the outgoing traffic
Principle
To control its outgoing traffic, a domain must tune
local-pref
usual method of enforcing economical relationships
MED
Principle
Allow a BGP router to install several paths
AS3
AS1 AS2
Issues AS0
Which AS Path will be advertised by AS0
Physical link
RA C=1 RB
RX RZ RY
Consequences
Border router receiving only eBGP routes
AS3 AS4
R31
R32
10/7:AS1 R41
10/7:AS1 4.0.0.0/ 8
R22
R11
10/7:AS1
R12
10.0.0.0/ 8
R31
AS3 AS4
R32
10/8:AS1 R41
4.0.0.0/ 8
11/8:AS1
R22
R11
11/8:AS1
R12 10/8:AS1 AS2
10.0.0.0/ 8
AS1 11.0.0.0/ 8
Drawbacks
splitting a prefix increases size of all BGP routing tables
Limited redundancy in case of link failure
BGP/2003.4.44 O. Bonaventure, 2003
Control of the incoming traffic
More specific prefixes
Objective
Announce a large prefix on all links for
Remember
When forwarding an IP packet, a router will always
Principle
advertise different overlapping routes on all links
R22
R11
Principle
Attach special community value to request
Drawbacks of community-based TE
Requires error-prone manual configurations
Proposed solution
Utilize extended communities to encode TE
AS3
R31 10/7:AS3:AS1 AS4
R32
10/7:AS1 R41
10/7:AS2:AS1
10/7:AS1 4.0.0.0/ 8
R22
R11
10/7:AS1
R12 R21 NOT_Announce(AS4)
10.0.0.0/ 8 10/7:AS1
NOT_Announce(AS4)
AS1 11.0.0.0/ 8 AS2
AS3
R31 10/7:AS3:AS1 AS4
R32
10/7:AS1 R41
10/7:AS2:AS1
10/7:AS1 4.0.0.0/ 8
10/7:AS2:AS2:AS2:AS1
R22
R11
10/7:AS1
R12 R21 Prepend(2,AS4)
10/7:AS1
10.0.0.0/ 8 Prepend(2,AS4)
Useful for backup link, but besides that, the only method
to find the amount of prepending is trial and error...
Communities/ redistribution communities
BGP basics
Case study
R
AS2111
BGP/2003.4.54 O. Bonaventure, 2003
Measurements with AS-Path prepending
Without prepending
68 % received via Belnet, 32% received via BISP
to another
Level3 Communities Telia Communities
65000:0 1299:2009
announce to customers but not to Do not annouce EU peers
peers 1299:5009
65000:XXX Do not annouce US peers
do not announce to peer ASXXX 1299:2609
65001:0 Do not anounce to Concert
prepend once to all peers 1299:2601
65001:XXX Prepend once to Concert
prepend once to peer ASXXX