Professional Documents
Culture Documents
05 BGP
05 BGP
05 BGP
RouterLab
BGP - Border Gateway Protocol
(RFC 4271)
Miscellaneous
Anything that needs discussion?
BGP
Miscellaneous
Anything that needs discussion?
SUBMIT YOUR CONFIG
FILES, TRACES, COMMAND
DUMP!!!
BGP
Internet Routing
There is no single....
-
Routing Protocol
Routing Configuration
Routing State,
Routing Management
Internet Routing
Distance Vector
-
BGP
Link State
-
I announce to everyone
about my links and the
addresses I originate on
each link and listen to
everyones
announcement.
Build full topology
E.g. OSPF
Internet Routing
The Routing Architecture uses a 2-level
EGPs
BGP
OSPF
RIP/OSPF
RIP/OSPF
AS1
AS666
RIP/OSPF
AS3
OSPF
AS2
OSPF
AS7
RIP
BGP
EGP
IGP
IS-IS
AS69
7
Why BGP?
!
!
!
!
!
Source: http://www.ietf.org/proceedings/07dec/slides/IDRTut-0.pdf
BGP
Why BGP?
!
!
!
!
!
Source: http://www.ietf.org/proceedings/07dec/slides/IDRTut-0.pdf
BGP
Why BGP?
!
!
!
!
!
Source: http://www.ietf.org/proceedings/07dec/slides/IDRTut-0.pdf
BGP
Why BGP?
!
!
!
!
!
Source: http://www.ietf.org/proceedings/07dec/slides/IDRTut-0.pdf
BGP
Why BGP?
!
!
!
!
!
Source: http://www.ietf.org/proceedings/07dec/slides/IDRTut-0.pdf
BGP
Why BGP?
!
!
!
!
!
Source: http://www.ietf.org/proceedings/07dec/slides/IDRTut-0.pdf
BGP
BGP Basics
BGP obtains route to prefixes from neighboring
ASes
OSPF
RIP/OSPF
RIP/OSPF
Prefix Announcements
AS1
AS666
AS3
AS2
AS7
10.0.0.0/8
BGP
AS69
10
OSPF
RIP/OSPF
RIP/OSPF
Prefix Announcements
AS1
AS666
AS3
AS2
10.0.0.0/8
AS7
BGP
AS7
10.0.0.0/8
10.0.0.0/8
AS7
AS69
10
OSPF
RIP/OSPF
RIP/OSPF
Prefix Announcements
10.0.0.0/8
AS2 AS7
AS1
10.0.0.0/8
AS2 AS7
AS3
AS666
10.0.0.0/8
AS3 AS7
AS2
10.0.0.0/8
AS7
BGP
AS7
10.0.0.0/8
10.0.0.0/8
AS7
AS69
10
OSPF
RIP/OSPF
RIP/OSPF
Prefix Announcements
10.0.0.0/8
AS1 AS2 AS7
10.0.0.0/8
AS2 AS7
AS1
10.0.0.0/8
AS2 AS7
AS3
AS666
10.0.0.0/8
AS3 AS7
AS2
10.0.0.0/8
AS7
BGP
AS7
10.0.0.0/8
10.0.0.0/8
AS7
AS69
10
OSPF
RIP/OSPF
RIP/OSPF
Prefix Announcements
10.0.0.0/8
AS1 AS2 AS7
10.0.0.0/8
AS2 AS7
AS1
AS666
Prefix
AS Path
* 10.0.0.0/8 AS3 AS7
10.0.0.0/8 AS1 AS2 AS7
10.0.0.0/8
AS2 AS7
AS3
10.0.0.0/8
AS3 AS7
AS2
10.0.0.0/8
AS7
BGP
AS7
10.0.0.0/8
10.0.0.0/8
AS7
AS69
10
BGP = DV Protocol
Maintains a collection of local best paths for all
advertised prefixes
11
BGP Messages
Peers exchange messages over TCP sessions
-
Port:179
Can span several physical links
OPEN
UPDATE
BGP
12
BGP Messages
KEEPALIVE
-
NOTIFICATION
ROUTE_REFRESH
-
BGP
13
BGP
14
How this route was injected into BGP in the first place
Next_hop
Multi-Exit-Discriminator
Local-Pref
-
15
ID of proxy aggregator
Aggregator
Community
Destination-Pref
BGP
16
OSPF
RIP/OSPF
RIP/OSPF
Local_Pref
AS1
AS666
Prefix
AS Path
* 10.0.0.0/8 AS3 AS7
10.0.0.0/8 AS1 AS2 AS7
AS3
AS2
AS7
10.0.0.0/8
BGP
AS69
17
OSPF
RIP/OSPF
RIP/OSPF
Local_Pref
AS1
AS666
Prefix
ASAS
Path
Prefix
Path
AS3AS3
AS7AS7
* 10.0.0.0/8
10.0.0.0/8
* 10.0.0.0/8 AS1 AS2 AS7
LP
10
20
AS3
AS2
AS7
10.0.0.0/8
BGP
AS69
17
OSPF
RIP/OSPF
RIP/OSPF
$$
$$
AS666
=
$$
Prefix
AS Path
10.0.0.0/8 AS3 AS7
* 10.0.0.0/8 AS1 AS2 AS7
LP
10
20
AS3
AS2
$$
$$
AS7
10.0.0.0/8
BGP
18
OSPF
RIP/OSPF
RIP/OSPF
MED Example
10.0.0.0/8 MED 10
11.0.0.0/8 MED 20
AS2
10.0.0.0/8
11.0.0.0/8
10.0.0.0/8 MED 20
11.0.0.0/8 MED 10
AS2
AS1
Text
AS666
AS3
AS2
AS7
AS69
BGP
19
20
iBGP
eBGP
iBGP
BGP
21
iBGP
eBGP
iBGP
BGP
21
iBGP + RR
Route-Reflector
eBGP
iBGP
BGP
22
Anything Missing?
BGP
23
1.
2.
3.
4.
5.
6.
24
Worksheet 5
Use New VLANs topology
Target: Configure BGP and learn to use policies
Readings:
Cisco BGP
Juniper BGP
RFC 4271
BGP
25
BGP
26