Académique Documents
Professionnel Documents
Culture Documents
Confederations
Problème
Pour iBGP le full mesh est exigé :
Nombre de sessions iBGP = n(n-1)/2
Solution
Pour réduire la complexité il y a 2 solutions:
2. Les Confédérations
4
1-Routes Reflectors
RR-RR :
RF iBGP
ou
Un client de l’autre
RF
Avec 10 routeurs :
• 0 RR : 45 sessions iBGP
• 1 RR : 9 sessions iBGP
• 2 RR : 17 sessions iBGP 5
RR : Configuration
AS 100
R1
RR
105.3.7.1/32
R1 105.3.7.99/32
router bgp 100
neighbor 105.3.7.99 remote-as 100
neighbor 105.3.7.99 update-source loopback0
RR
router bgp 100
neighbor 105.3.7.1 remote-as 100
neighbor 105.3.7.1 update-source loopback0
neighbor 105.3.7.1 route-reflector-client
RR : Configuration
RR2
105.3.7.100/32
AS 100
R1
RR
R1 105.3.7.1/32 1
router bgp 100 105.3.7.99/32
neighbor 105.3.7.99 remote-as 100
neighbor 105.3.7.99 update-source loopback0
neighbor 105.3.7.100 remote-as 100
neighbor 105.3.7.100 update-source loopback0
RR1
router bgp 100
neighbor 105.3.7.1 remote-as 100
neighbor 105.3.7.1 update-source loopback0
neighbor 105.3.7.1 route-reflector-client
neighbor 105.3.7.100 remote-as 100
neighbor 105.3.7.100 update-source loopback0
Route Reflector
1. Etabli des sessions iBGP avec les clients et non
clients
4. Règles :
• Une route apprise d’un voisin eBGP peut être envoyée aux autres
voisions eBGP, aux Client et Non-client.
• Une route apprise d’un Client peut être envoyé aux autres voision
eBGP, aux Clients et Non-clients.
• Une route apprise d’un Non-client peut être envoyé aux autres
voision eBGP et aux Clients, mais jamais aux Non-clients. 8
Route Reflector : Loop prevention
2 attributs sont ajoutés par les RR pour éviter les
boucles (RFC4456) :
1. Originator ID :
• Ajouté par un RR reflectant une route.
• Cet attribut transporte l’Identificateur BGP du routeur qui a
généré la route dans l’AS local
• Un routeur qui reconnait son Originator ID attribut dans une route
doit l’ignorer.
2. Cluster_List :
• Un RR qui reflecte une route doit ajouter dans la liste CLUSTER_LIST son
CLUSTER_ID
• Si le CLUSTER_ID local figure dans la CLUSTER_LIST l’annonce doit
être ignorée.
9
RR : Annonces
RF
RRC RRC
RRC
1
0
2-Confederations
AS100
AS20
AS30
Avec 10 routeurs :
• 1 AS : 45 sessions iBGP
• 2 Sub-AS : 20 sessions iBGP + 2 eBGP 1
1
2-Confederations (Example)
AS100 AS500
AS20
R4
R50
R5
R2
R3 AS700
R7
R70
AS30 R6
1
2
2-Confederations (Example)
2-Confederations (Example)
R50 R5
router bgp 500 router bgp 20
network 10.50.0.0 mask 255.255.0.0 network 10.100.0.0 mask 255.255.128.0
neighbor 192.168.55.5 remote-as 100 bgp confederation identifier 100
bgp confederation peers 30
neighbor 192.168.55.50 remote-as 500
neighbor 10.100.126.2 remote-as 20
neighbor 10.100.126.2 update-source Loopback0
neighbor 10.100.126.2 next-hop-self
neighbor 10.100.126.4 remote-as 20
neighbor 10.100.126.4 update-source Loopback0
neighbor 10.100.126.4 next-hop-self!
2-Confederations (Example)
R4 R5
router bgp 20 router bgp 20
bgp confederation identifier 100 network 10.100.0.0 mask 255.255.128.0
bgp confederation peers 30 bgp confederation identifier 100
neighbor 10.100.126.2 remote-as 20 bgp confederation peers 30
neighbor 10.100.126.2 update-source Loopback0 neighbor 192.168.55.50 remote-as 500
neighbor 10.100.126.2 next-hop-self neighbor 10.100.126.2 remote-as 20
neighbor 10.100.126.5 remote-as 20 neighbor 10.100.126.2 update-source Loopback
neighbor 10.100.126.5 update-source Loopback0 neighbor 10.100.126.2 next-hop-self
neighbor 10.100.126.5 next-hop-self neighbor 10.100.126.4 remote-as 20
neighbor 10.100.126.4 update-source Loopback
neighbor 10.100.126.4 next-hop-self!
2-Confederations (Example)
R2 router bgp 20
bgp confederation identifier 100
bgp confederation peers 30
neighbor 10.100.126.4 remote-as 20
neighbor 10.100.126.4 update-source Loopback0
neighbor 10.100.126.4 next-hop-self
neighbor 10.100.126.5 remote-as 20
neighbor 10.100.126.5 update-source Loopback0
neighbor 10.100.126.5 next-hop-self
neighbor 192.168.100.30 remote-as 30
neighbor 192.168.100.30 next-hop-self
R3 router bgp 30
bgp confederation identifier 100
bgp confederation peers 20
neighbor 10.100.254.6 remote-as 30
neighbor 10.100.254.6 update-source Loopback0
neighbor 10.100.254.6 next-hop-self
neighbor 10.100.254.7 remote-as 30
neighbor 10.100.254.7 update-source Loopback0
neighbor 10.100.254.7 next-hop-self
neighbor 192.168.100.20 remote-as 20
neighbor 192.168.100.20 next-hop-self
2-Confederations (Example)
R5 R5#sh ip bgp
BGP table version is 5, local router ID is 10.100.126.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.50.0.0/16 192.168.55.50 0 0 500 i
*>i10.70.0.0/16 10.100.126.2 0 100 0 (30) 700 i
*> 10.100.0.0/17 0.0.0.0 0 32768 i
*>i10.100.128.0/17 10.100.126.2 0 100 0 (30) i
R50 R50#sh ip bgp
BGP table version is 5, local router ID is 10.50.50.50
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
2-Confederations (Example)
R5 R5#sh ip bgp
BGP table version is 5, local router ID is 10.100.126.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.50.0.0/16 192.168.55.50 0 0 500 i
*>i10.70.0.0/16 10.100.126.2 0 100 0 (30) 700 i
*> 10.100.0.0/17 0.0.0.0 0 32768 i
*>i10.100.128.0/17 10.100.126.2 0 100 0 (30) i
R50 R50#sh ip bgp
BGP table version is 5, local router ID is 10.50.50.50
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete