1 / 27

Module 6: BGP

Module 6: BGP. Contents. 6.5 Selecting a BGP Path. Characteristics of BGP Attributes. The update messages : contain one or more routes and a set of BGP metrics ( path attributes ) attached to the routes . Path attributes categories: Well-known mandatory Well-known discretionary

bevan
Download Presentation

Module 6: BGP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Module 6: BGP

  2. Contents

  3. 6.5 Selecting a BGP Path

  4. Characteristics of BGP Attributes • The update messages : contain one or more routes and a set of BGP metrics (path attributes) attached to the routes. • Path attributes categories: • Well-known mandatory • Well-known discretionary • Optional transitive • Optional nontransitive

  5. BGP Attributes • Well-known mandatory attributes • Autonomous system path • Next hop • Origin • Well-known discretionary attributes • Local preference • Atomic aggregate • Optional transitive attribute • Aggregator • Optional nontransitive attribute • Multi-exit discriminator (MED) • Cisco weight • configured locally on a router and is not propagated to any other BGP routers.

  6. AS Path Attribute • The list of autonomous system numbers that a route has traversed to reach a destination

  7. Next-Hop Attribute

  8. Origin Attribute

  9. Local Preference Attribute

  10. MED Attribute • is an indication to EBGP neighbors about the preferred path into an autonomous system • exchanged between autonomous systems. • but do not pass it on to the next autonomous system. • MEDinfluences inbound traffic to an autonomous system, and local preferenceinfluences outbound traffic. • A chooses Bas the best next hop because its MED of 150 is less than C.

  11. Weight Attribute • configured locally on a router and is not propagated to any other routers. • applies when using one router with multiple exit points in autonomous system. • (Ref) the local preference : used when two or more routers provide multiple exit points. • Value • 0 to 65535. • originates = 32768 • other paths = 0.

  12. Determining the BGP Path Selection

  13. Selecting a BGP Path

  14. Path Selection with Multihomed Connection

  15. 6.6 Manipulating BGP Path Selection with Route Maps

  16. Setting Local Preference with Route Maps • if the load averages 60 percent and has temporary bursts above 100 percent of the bandwidth, this situation causes lost packets, higher latency, and higher CPU usage

  17. Setting Local Preference with Route Maps Example • Assume 35 percent of all traffic from AS 65001 has been going to www.cisco.com. • 관리자 : Reverse Domain Name System (DNS) lookup 혹은 www.arin.net에서 Cisco의AS number 혹은 네트워크정보를 얻는다. • Cisco networks에 대하여, router B에서 최고의 local preference 값을 선언. 그래서 Cisco로가는 모든 트래픽은 라우터 B를 통하여 AS 65001를 나간다.결과적으로 B에서 유출되는 트래픽의 부하는 20%에서 더 많이 증가시키고 A의 부하를 60% 이하로 줄였다. • 부하 균형유지

  18. Setting Local Preference with Route Maps Example • 가정: AS 65001에서 유입 트래픽의 55%가 라우트 A의 192.168.25.0/24 서브 네트워크로 간다. • 그런데 라우트 A에서 입력 채널은 10%만 활용되고 있고, 75%는 B를 활용하고 있다. • 만약 AS 65004로 부터 A를 통하여 들어오는 경로의 MED를 낮게 설정하여 AS 65004에 알려줌으로써 부하를 분산시킬 수 있다. • 트랙픽은 링크의 50%를 넘지 않는 것이 좋다. 순간적 과부하가 flapping 초래

  19. Changing the BGP Local Preference for All Routes

  20. BGP Local Preference Example • The best path to network 172.16.0.0 in AS 65003 from router C in AS 65001 ? • Steps 1 and 2 look at weight and local preference and use the default settings of weight equaling 0 and local preference equaling 100 for all routes that are learned from the IBGP neighbors of A and B. • Step 3 does not help decide the best path because the three AS routes are not owned or originated by AS 65001. (originator?) • Step 4 prefers the shortest autonomous system path. The options are two autonomous systems (65002, 65003) through router A or three autonomous systems through IBGP neighbor router B (65005, 65004, 65003). Thus, the shortest autonomous system path from router C to AS 65003 is through router A.

  21. BGP Local Preference Example (continued) 10% 50% • A traffic analysis for AS 65001 • via B to 172.20.50.1: heavy(50%), via A to 192.168.28.1 : hardly used at all(10%). • 3 largest volume destination networks: 172.30.0.0, 172.24.0.0, and 172.16.0.0. • 30% to 172.24.0.0 (via B); 20 % to 172.30.0.0 (via B); 10 % : 172.16.0.0 (via A).other 40 % : to other destinations • divert traffic to network 172.30.0.0 and send it out router A to the next hop of 192.168.28.1, loading balancing, A and B : 30%.

  22. BGP Local Preference Example (continued)

  23. Setting the MED with Route Maps

  24. BGP Using Route Maps and the MED Example

  25. BGP Using Route Maps and the MED Example (continued)

  26. BGP Using Route Maps and the MED Example (continued)

  27. Implementing BGP in the Enterprise • The enterprise routers connected to the ISPs run EBGP with the ISP routers and IBGP between themselves (A & B); thus all routers in the transit path within the enterprise autonomous system run IBGP. • These routers pass default routes to the other routers in the enterprise rather than redistributing BGP into the interior routing protocol

More Related