1 / 31

6.829 Computer Networks

6.829 Computer Networks. Why is the Internet so Complicated? Manya Ghobadi Fall 2019. Based on slides from Vyas Sekar , Srini Seshan , Tim Griffin, Aditya Akella. A. Autonomous Systems ( ASes ). Collection of networks with same policy Single routing protocol

florencer
Download Presentation

6.829 Computer Networks

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. 6.829Computer Networks Why is the Internet so Complicated? Manya Ghobadi Fall 2019 Based on slides from Vyas Sekar, SriniSeshan, Tim Griffin, Aditya Akella

  2. A Autonomous Systems (ASes) • Collection of networks with same policy • Single routing protocol • Usually under single administrative control • Have a unique 16 bit ASN AS 3

  3. Autonomous Systems (ASes) • Examples: • MIT: 3, CMU: 9 • AT&T: 7018, 6341, 5074, … • UUNET: 701, 702, 284, 12199, … • Sprint: 1239, 1240, 6211, 6242, … • How do ASes interconnect to provide global connectivity? • How does routing information get exchanged?

  4. IP traffic Nontransit vs. Transit ASes ISP 2 ISP 1 NET A Nontransit AS might be a corporate or campus network. Could be a “content provider” Traffic NEVER flows from ISP 1 through NET A to ISP 2 (At least not intentionally!)

  5. provider customer IP traffic Customers and Providers provider customer Customer pays provider for access to the Internet

  6. peer peer provider customer The Peering Relationship A C B Peers provide transit between their respective customers Peers do not provide transit between peers Peers (often) do not exchange $$$ traffic allowed traffic NOT allowed

  7. May be the only way to connect your customers to some part of the Internet (“Tier 1”) You would rather have customers Peers are usually your competition Peering Wars Peer Don’t Peer Peering struggles are by far the most contentious issues in the ISP world! Peering agreements are often confidential.

  8. BGP-4 • BGP = Border Gateway Protocol • Is a Policy-Based routing protocol • Relatively simple protocol, but configuration is complex and the entire world can see, and be impacted by, your mistakes. • 1989 : BGP-1 [RFC 1105] • 1990 : BGP-2 [RFC 1163] • 1991 : BGP-3 [RFC 1267] • 1995 : BGP-4 [RFC 1771] • Support for Classless Interdomain Routing (CIDR)

  9. BGP Operations (Simplified) Establish session on TCP port 179 AS1 BGP session Exchange all active routes AS2 While connection is ALIVE exchange route UPDATE messages Exchange incremental updates

  10. Interconnecting BGP Peers • BGP uses TCP to connect peers • Advantages: • Simplifies BGP • No need for periodic refresh - routes are valid until withdrawn, or the connection is lost • Incremental updates • Disadvantages • Congestion control on a routing protocol? • Inherits TCP vulnerabilities! • Poor interaction during high load

  11. Four Types of BGP Messages • Open : Establish a peering session. • Keep Alive : Handshake at regular intervals. • Notification : Shuts down a peering session. • Update : Announcing new routes or withdrawing previously announced routes. announcement = prefix + attributes values

  12. Policy with BGP • BGP provides capability for enforcing various policies • Policies are not part of BGP: they are provided to BGP as configuration information • BGP enforces policies by choosing paths from multiple alternatives and controlling advertisement to other AS’s

  13. Import and Export policies • Import policy • What to do with routes learned from neighbors? • Selecting best path • Export policy • What routes to announce to neighbors? • Depends on relationship with neighbor

  14. Export Policy • An AS exports only best paths to its neighbors • Guarantees that once the route is announced the AS is willing to transit traffic on that route • To Customers • Announce all routes learned from peers, providers and customers, and self-origin routes • To Providers • Announce routes learned from customers and self-origin routes • To Peers • Announce routes learned from customers and self-origin routes

  15. provider route peer route customer route ISP route Import Routes (routes learned from neighbors) From provider From provider From peer From peer From customer From customer

  16. provider route peer route customer route ISP route Import Routes (routes learned from neighbors) From provider From provider From peer From peer From customer From customer

  17. Export Routes: routes to announce to neighbors provider route peer route customer route ISP route To provider To provider To peer To peer To customer To customer

  18. filters block Export Routes: routes to announce to neighbors provider route peer route customer route ISP route To provider To provider To peer To peer To customer To customer

  19. BGP UPDATE Message • List of withdrawn routes • Network layer reachability information • List of reachable prefixes • Path attributes • Origin • Path • Metrics • All prefixes advertised in message have same path attributes

  20. Path Selection Criteria • Information based on path attributes • Attributes + external (policy) information • Examples: • Hop count • Policy considerations • Preference for AS • Presence or absence of certain AS • Path origin • Link dynamics

  21. Important BGP Attributes • Local Preference • AS-Path • Multi-Exit Discriminator (MED) • Next hop

  22. LOCAL PREF • Local (within an AS) mechanism to provide relative priority among BGP routers R5 R1 R2 AS 200 AS 100 AS 300 R3 R4 Local Pref = 500 Local Pref =800 I-BGP AS 256

  23. LOCAL PREF – Common Uses • Handle routes advertised to multi-homed transit customers • Should use direct connection (multihoming typically has a primary/backup arrangement) • In general, customer > peer > provider • Use LOCAL PREF to ensure this

  24. AS_PATH • List of traversed AS’s • Useful for loop checking and for path-based route selection (length, regexp) AS 200 AS 100 170.10.0.0/16 180.10.0.0/16 AS 300 180.10.0.0/16 300 200 100 170.10.0.0/16 300 200 AS 500

  25. Multi-Exit Discriminator (MED) • Hint to external neighbors about the preferred path into an AS • Non-transitive attribute • Different AS choose different scales • Used when two AS’s connect to each other in more than one place

  26. MED • Typically used when two ASes peer at multiple locations • Hint to R1 to use R3 over R4 link • Cannot compare AS40’s values to AS30’s 180.10.0.0 MED = 50 R1 R2 AS 10 AS 40 180.10.0.0 MED = 120 180.10.0.0 MED = 200 R3 R4 AS 30

  27. Other Attributes • ORIGIN • Source of route (IGP, EGP, other) • NEXT_HOP • Address of next hop router to use • Check out http://www.cisco.com for full explanation

  28. Route Selection Process Highest Local Preference Enforce relationships Shortest ASPATH traffic engineering Lowest MED Throw up hands and break ties Lowest router ID

  29. BGP Complexity • BGP is a very complicated protocol • Too many knobs • Need to accommodate (sub-optimal) ISP policies • Requires complex, human configuration • For all its complexity, BGP offers no guarantees • Performance?? • Reliability?? • Correctness?? • Reachability?? Headache!

  30. BGP Pitfalls and Problems • Pitfalls and problems • Misconfiguration • Convergence • Performance • Reliability • Stability • Security • And the list goes on…

  31. Favorite Scapegoat! Networkingcommunity BGP

More Related