BGP Overview Autonomous System Internet Service Provider BGP
BGP Overview Autonomous System Internet Service Provider • BGP used between autonomous systems (AS) • ISP BGP configuration can be complex
When Not to Use BGP Static A C B B Network number ISP runs BGP Advertise default network via IGP Use a static route to provide connectivity • Avoid BGP configuration by using default networks and static routes
Policy Drives BGP Requirements BGP AS 100 BB AS 200 C BGP A BGP D AS 300 Static Route F AS 400 E • Policy for AS 100: Always use AS 300 path to reach AS 400
Policy Drives BGP Requirements BGP AS 100 BB AS 200 C BGP A BGP D AS 300 Static Route F AS 400 E • Policy for AS 100: Always use AS 300 path to reach AS 400
BGP Sessions AS 2 AS 1 EBGP IBGP Service Provider IBGP • BGP traffic is carried by TCP connections • Two types of BGP sessions: External and internal
BGP Operation IGP Routing Protocol IP BGP Routing Protocol • BGP routes can be redistributed into the IP routing table
BGP Commands Router(config)# router bgp autonomous-system • Enables the BGP routing protocol Router(config-router)# network-number • Allows BGP to advertise an IGP route if it is already in the IP table • Does not activate the protocol on an interface
BGP Commands (cont. ) Router(config-router)# neighbor ip-address remote-as autonomous-system • Activates a BGP session Router# clear ip bgp { * | address } • Resets BGP connections • Use after changing BGP configuration
BGP Configuration Example 19. 0. 0. 0 15. 1. 1. 0 AS 100 AS 200 A 15. 1. 1. 1 Configuration for A router bgp 100 network 19. 0. 0. 0 neighbor 15. 1. 1. 2 remote-as 200 B 15. 1. 1. 2 Configuration for B router bgp 200 network 15. 0. 0. 0 neighbor 15. 1. 1. 1 remote-as 100 • Representative of most BGP configurations
Mājas darbs #2 Dotas globālās BGP maršrutizācijas tabulas no 2006. , 2004. , 2002. gadiem (Cisco “show ip bgp” formātā). Izmantojot šīs tabulas, kā arī lekciju slaidos minētos RIPE, ARIN, APNIC whois serverus, noskaidrojiet sekojošus jautājumus par globālo Internet: 1. Salīdzināt dažādu gadu BGP tabulu galvenos parametrus (tabulāri un grafiski): a) Izmantoto autonomo sistēmu (AS) skaits, b) Cik procenti no visiem A, B, C klases tīkliem reāli parādās BGP tabulā? (uzskatīt, ka A, B, C klases tīkls "paradādās", ja BGP tabula apraksta kaut vienu tā subnetu; ņemt vērā, ka, piemēram, viens ieraksts 204. 56. 128. 0/17 var aprakstīt veselas 128 dažādas C klases adreses). c) (neobligāti) Ievērojot līdzšinējos attīstības tempus, novērtējiet līdz kuram gadam vēl varētu pietikt IPv 4 adreses? Ņemiet vērā notiekošo A klases adrešu pārdalīšanu. 2. Kurš globālās BGP tabulas (2006. g) ieraksts apraksta maršrutu uz jūsu (majas vai darba vai universitates) datoru? Kurai AS pieder jūsu dators? 3. Atrast trīs AS, kurām pieder vislielākais maršrutēto subnetu skaits (neatkarīgi no maskas garuma). Kam šīs AS pieder? Lietot 2006. g. 4. Atrast trīs AS, kas ir sasniedzamas caur vislielāko tranzīta AS skaitu (skaitīt tikai atšķirīgos AS numurus iekš path). Kam šīs AS pieder? Lietot 2006. g. tabulu. 5. Izmantojot 2006. gada tabulu un whois serverus, grafiski uzzimejiet savienojumus starp sekojošām AS (norādot arī tranzīta AS, ieskaitot to numurus un vārdus): a) AS, kurai pieder jūsu dators, b) Trīs lielākās AS (skat. 3. punktu), c) Trīs tālākās AS (skat. 4. punktu), d) (neobligāti) iekļaujiet zīmējumā visas Latvijā reģistrētās AS.
- Slides: 10