cs 3700
play

CS 3700 Networks and Distributed Systems Inter Domain Routing (Its - PowerPoint PPT Presentation

CS 3700 Networks and Distributed Systems Inter Domain Routing (Its all about the Money) Revised 10/03/19 Network Layer, Control Plane 2 Function: Set up routes between networks Data Plane Key challenges: Application


  1. CS 3700 
 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 10/03/19

  2. Network Layer, Control Plane 2 � Function: � Set up routes between networks Data Plane � Key challenges: Application � Implementing provider policies Presentation � Creating stable paths Session Transport Network Control Plane RIP OSPF BGP Data Link Physical

  3. ASs, Revisited 3 AS-1 AS-3 Interior Routers AS-2 BGP Routers

  4. AS Numbers 4 � Each AS identified by an ASN number � Originally 16-bit values, expanded to 32 bits in 2006 � 1023 are reserved for local/private use, 3 reserved for special use � Currently, there are ~ 65539 advertised ASNs 
 http://www.potaroo.net/tools/asn32/ � AT&T: 5074, 6341, 7018, … � Sprint: 1239, 1240, 6211, 6242, … � Northeastern: 156 � North America ASs � ftp://ftp.arin.net/info/asn.txt

  5. Inter-Domain Routing 5 � Global connectivity is at stake! � Thus, all ASs must use the same protocol � Contrast with intra-domain routing

  6. Inter-Domain Routing 5 � Global connectivity is at stake! � Thus, all ASs must use the same protocol � Contrast with intra-domain routing � What are the requirements? � Scalability � Flexibility in choosing routes ■ Cost ■ Routing around failures

  7. Inter-Domain Routing 5 � Global connectivity is at stake! � Thus, all ASs must use the same protocol � Contrast with intra-domain routing � What are the requirements? � Scalability � Flexibility in choosing routes ■ Cost ■ Routing around failures � Question: link state or distance vector?

  8. Inter-Domain Routing 5 � Global connectivity is at stake! � Thus, all ASs must use the same protocol � Contrast with intra-domain routing � What are the requirements? � Scalability � Flexibility in choosing routes ■ Cost ■ Routing around failures � Question: link state or distance vector? � Trick question: BGP is a path vector protocol

  9. BGP 6 � Border Gateway Protocol � De facto inter-domain protocol of the Internet � Policy based routing protocol � Uses a Bellman-Ford path vector protocol

  10. BGP 6 � Border Gateway Protocol � De facto inter-domain protocol of the Internet � Policy based routing protocol � Uses a Bellman-Ford path vector protocol � Relatively simple protocol, but… � Complex, manual configuration

  11. BGP 6 � Border Gateway Protocol � De facto inter-domain protocol of the Internet � Policy based routing protocol � Uses a Bellman-Ford path vector protocol � Relatively simple protocol, but… � Complex, manual configuration � Entire world sees advertisements ■ Errors can screw up traffic globally

  12. BGP 6 � Border Gateway Protocol � De facto inter-domain protocol of the Internet � Policy based routing protocol � Uses a Bellman-Ford path vector protocol � Relatively simple protocol, but… � Complex, manual configuration � Entire world sees advertisements ■ Errors can screw up traffic globally � Policies driven by economics ■ How much $$$ does it cost to route along a given path? ■ Not by performance (e.g. shortest paths)

  13. BGP Relationships 7

  14. BGP Relationships 7 Provider Customer pays provider Customer

  15. BGP Relationships 7 Provider Customer pays provider Customer

  16. BGP Relationships 7

  17. BGP Relationships 7 Peers do not pay each other Peer 2 Peer 3 Peer 1

  18. BGP Relationships 7 Peer 2 Peer 3 Peer 1

  19. BGP Relationships 7 Peer 2 Peer 3 Peer 1

  20. BGP Relationships 7 Peer 2 has no incentive to route 1 � 3 Peer 2 Peer 3 Peer 1

  21. BGP Relationships 7 Provider Customer Customer

  22. BGP Relationships 7 Provider Customer Customer

  23. Tier-1 ISP Peering 8 NTT Centurylink Deutsche Telekom AT&T Sprint Orange Verizon Enterprise

  24. Peering Wars 10 Peer Don’t Peer � Reduce upstream costs � You would rather have customers � Improve end-to-end � Peers are often performance competitors � May be the only way to � Peering agreements connect to parts of the Internet require periodic renegotiation

  25. Peering Wars 10 Peer Don’t Peer � Reduce upstream costs � You would rather have customers � Improve end-to-end � Peers are often performance competitors � May be the only way to � Peering agreements connect to parts of the Internet require periodic renegotiation Peering struggles in the ISP world are extremely contentions, agreements are usually confidential

  26. Two Types of BGP Neighbors 11

  27. Two Types of BGP Neighbors 11 Exterior routers also speak IGP IGP

  28. Two Types of BGP Neighbors 11 eBGP eBGP

  29. Two Types of BGP Neighbors 11 eBGP eBGP iBGP iBGP

  30. Full iBGP Meshes 12

  31. Full iBGP Meshes 12 eBGP iBGP

  32. Full iBGP Meshes 12 � Question: why do we need eBGP iBGP? � OSPF does not include BGP iBGP policy info � Prevents routing loops within the AS

  33. Full iBGP Meshes 12 � Question: why do we need eBGP iBGP? � OSPF does not include BGP iBGP policy info � Prevents routing loops within the AS � iBGP updates do not trigger announcements

  34. Path Vector Protocol 13 � AS-path: sequence of ASs a route traverses � Similar to distance vector, but sends the entire path � Used for loop detection and to apply policy AS 4 � If you see your own ID in an advertisement, discard it 120.10.0.0/16 � Default choice: route with fewest # of ASs AS 3 130.10.0.0/16 AS 5 AS 2 110.10.0.0/16 120.10.0.0/16: AS 2 � AS 3 � AS 4 AS 1 130.10.0.0/16: AS 2 � AS 3 110.10.0.0/16: AS 2 � AS 5

  35. BGP Operations (Simplified) 14 Establish session on TCP port 179 AS-1 Exchange active routes BGP Session AS-2 Exchange incremental updates

  36. Four Types of BGP Messages 15 � Open: Establish a peering session. � Keep Alive: Handshake at regular intervals. � Notification: Shuts down a peering session. � Update: Announce new routes or withdraw previously announced routes.

  37. Four Types of BGP Messages 15 � Open: Establish a peering session. � Keep Alive: Handshake at regular intervals. � Notification: Shuts down a peering session. � Update: Announce new routes or withdraw previously announced routes. announcement = IP prefix + attributes values

  38. BGP Attributes 16 � Some attributes used to select “best” path � LocalPREF ■ Local preference policy to choose most preferred route ■ Overrides default fewest AS behavior � Multi-exit Discriminator (MED) ■ Chooses peering point for your network ■ Specifies path for external traffic destined for an internal network

  39. BGP Attributes 16 � Some attributes used to select “best” path � LocalPREF ■ Local preference policy to choose most preferred route ■ Overrides default fewest AS behavior � Multi-exit Discriminator (MED) ■ Chooses peering point for your network ■ Specifies path for external traffic destined for an internal network � Other attributes control how routes are shared with others � Import Rules ■ What route advertisements do I accept? � Export Rules ■ Which routes do I forward to whom?

  40. Route Selection Summary 17 17

  41. Route Selection Summary 17 17 Highest Local Preference Enforce relationships

  42. Route Selection Summary 17 17 Highest Local Preference Enforce relationships Shortest AS Path Lowest MED Traffic engineering Lowest IGP Cost to BGP Egress

  43. Route Selection Summary 17 17 Highest Local Preference Enforce relationships Shortest AS Path Lowest MED Traffic engineering Lowest IGP Cost to BGP Egress When all else fails, Lowest Router ID break ties

  44. Shortest AS Path != Shortest Path 18 Source Destination

  45. Shortest AS Path != Shortest Path 18 Source ? ? Destination

  46. Shortest AS Path != Shortest Path 18 4 hops Source 4 ASs ? ? Destination

  47. Shortest AS Path != Shortest Path 18 9 hops 4 hops Source 2 ASs 4 ASs ? ? Destination

  48. Shortest AS Path != Shortest Path 18 9 hops 4 hops Source 2 ASs 4 ASs ? ? Destination

  49. Hot Potato Routing 19 Source Destination

  50. Hot Potato Routing 19 Source ? ? Destination

  51. Hot Potato Routing 19 Source 3 hops total, 3 hops cost ? ? Destination

  52. Hot Potato Routing 19 5 hops total, 2 Source 3 hops total, hops cost 3 hops cost ? ? Destination

  53. Hot Potato Routing 19 5 hops total, 2 Source 3 hops total, hops cost 3 hops cost ? ? Destination

  54. Importing Routes 20

  55. Importing Routes 20 ISP Routes

  56. Importing Routes 20 ISP Routes From Customer

  57. Importing Routes 20 ISP Routes From From Peer Peer From Customer

  58. Importing Routes 20 ISP From Provider Routes From From Peer Peer From Customer

  59. Exporting Routes 21

  60. Exporting Routes 21 To Customer Customers get all routes

  61. Exporting Routes 21 Customer and ISP routes only To Peer To Peer To Customer Customers get all routes

  62. Exporting Routes 21 Customer and ISP routes only To Provider To Peer To Peer To Customer Customers get all routes

  63. Exporting Routes 21 $$$ generating Customer and ISP routes routes only To Provider To Peer To Peer To Customer Customers get all routes

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend