tutorial on bridges routers switches oh my
play

Tutorial on Bridges, Routers, Switches, Oh My! Radia Perlman - PowerPoint PPT Presentation

Tutorial on Bridges, Routers, Switches, Oh My! Radia Perlman (radia.perlman@sun.com) 1 Why? Demystify this portion of networking, so people dont drown in the alphabet soup Think about these things critically N-party protocols


  1. MPLS (multiprotocol label switching) • Connectionless, like MPLS, but arbitrary sized packets • Add 32-bit hdr on top of IP pkt – 20 bit “label” – Hop count (hooray!) 52

  2. Hierarchical connections (stacks of MPLS labels) D8 D2 S1 S2 D1 S8 D2 D9 S4 S6 R1 D3 S9 S3 R2 D4 D5 S5 Routers in backbone only need to know about one flow: R1-R2 53

  3. MPLS • Originally for faster forwarding than parsing IP header • later “traffic engineering” • classify pkts based on more than destination address 54

  4. Connectionless Network Layers • Destination, source, hop count • Maybe other stuff – fragmentation – options (e.g., source routing) – error reports – special service requests (priority, custom routes) – congestion indication • Real diff: size of addresses 55

  5. Addresses • 802 address “flat”, though assigned with OUI/rest. No topological significance • layer 3 addresses: locator/node : topologically hierarchical address • interesting difference: – IPv4, IPv6, IPX, AppleTalk: locator specific to a link – CLNP, DECnet: locator “area”, whole campus 56

  6. Hierarchy within Locator • Assume addresses assigned so that within a circle everything shares a prefix • Can summarize lots of circles with a shorter prefix 2428* 2* 27* 23* 279* 272* 57

  7. New topic: Routing Algorithms 58

  8. Distributed Routing Protocols • Rtrs exchange control info • Use it to calculate forwarding table • Two basic types – distance vector – link state 59

  9. Distance Vector • Know – your own ID – how many cables hanging off your box – cost, for each cable, of getting to nbr cost 2 cost 3 j m I am “4” cost 7 cost 2 k n 60

  10. cost 2 cost 3 j m I am “4” cost 7 cost 2 k n distance vector rcv’d from cable j cost 3 12 3 15 3 12 5 3 18 0 7 15 distance vector rcv’d from cable k cost 2 5 8 3 2 10 7 4 20 5 0 15 distance vector rcv’d from cable m cost 2 0 5 3 2 19 9 5 22 2 4 7 distance vector rcv’d from cable n cost 7 6 2 0 7 8 5 8 12 11 3 2 your own calculated distance vector 2 6 5 0 12 8 6 19 3 ? ? your own calculated forwarding table m j m 0 k j k/j n j ? ? 61

  11. cost 2 cost 3 j m I am “4” cost 7 cost 2 k n distance vector rcv’d from cable j cost 3 12 3 15 3 12 5 3 18 0 7 15 distance vector rcv’d from cable k cost 2 5 8 3 2 10 7 4 20 5 0 15 distance vector rcv’d from cable m cost 2 0 5 3 2 19 9 5 22 2 4 7 distance vector rcv’d from cable n cost 7 6 2 0 7 8 5 8 12 11 3 2 your own calculated distance vector 2 6 5 0 12 8 6 19 3 ? ? your own calculated forwarding table m j m 0 k j k/j n j ? ? 62

  12. cost 2 cost 3 j m I am “4” cost 7 cost 2 k n distance vector rcv’d from cable j cost 3 12 3 15 3 12 5 3 18 0 7 15 distance vector rcv’d from cable k cost 2 5 8 3 2 10 7 4 20 5 0 15 distance vector rcv’d from cable m cost 2 0 5 3 2 19 9 5 22 2 4 7 distance vector rcv’d from cable n cost 7 6 2 0 7 8 5 8 12 11 3 2 your own calculated distance vector 2 6 5 0 12 8 6 19 3 ? ? your own calculated forwarding table m j m 0 k j k/j n j ? ? 63

  13. cost 2 cost 3 j m I am “4” cost 7 cost 2 k n distance vector rcv’d from cable j cost 3 12 3 15 3 12 5 3 18 0 7 15 distance vector rcv’d from cable k cost 2 5 8 3 2 10 7 4 20 5 0 15 distance vector rcv’d from cable m cost 2 0 5 3 2 19 9 5 22 2 4 7 distance vector rcv’d from cable n cost 7 6 2 0 7 8 5 8 12 11 3 2 your own calculated distance vector 2 6 5 0 12 8 6 19 3 ? ? your own calculated forwarding table m j m 0 k j k/j n j ? ? 64

  14. cost 2 cost 3 j m I am “4” cost 7 cost 2 k n distance vector rcv’d from cable j cost 3 12 3 15 3 12 5 3 18 0 7 15 distance vector rcv’d from cable k cost 2 5 8 3 2 10 7 4 20 5 0 15 distance vector rcv’d from cable m cost 2 0 5 3 2 19 9 5 22 2 4 7 distance vector rcv’d from cable n cost 7 6 2 0 7 8 5 8 12 11 3 2 your own calculated distance vector 2 6 5 0 12 8 6 19 3 ? ? your own calculated forwarding table m j m 0 k j k/j n j ? ? 65

  15. cost 2 cost 3 j m I am “4” cost 7 cost 2 k n distance vector rcv’d from cable j cost 3 12 3 15 3 12 5 3 18 0 7 15 distance vector rcv’d from cable k cost 2 5 8 3 2 10 7 4 20 5 0 15 distance vector rcv’d from cable m cost 2 0 5 3 2 19 9 5 22 2 4 7 distance vector rcv’d from cable n cost 7 6 2 0 7 8 5 8 12 11 3 2 your own calculated distance vector 2 6 5 0 12 8 6 19 3 ? ? your own calculated forwarding table m j m 0 k j k/j n j ? ? 66

  16. Looping Problem A B C 67

  17. Looping Problem A B C Cost to C 0 2 1 68

  18. Looping Problem direction direction towards C towards C A B C Cost to C 0 2 1 69

  19. Looping Problem A B C Cost to C 0 2 1 What is B’s cost to C now? 70

  20. Looping Problem A B C Cost to C 0 2 1 3 71

  21. Looping Problem direction direction towards C towards C A B C Cost to C 0 2 1 3 72

  22. Looping Problem direction direction towards C towards C A B C Cost to C 0 2 1 4 3 73

  23. Looping Problem direction direction towards C towards C A B C Cost to C 0 2 1 4 3 5 74

  24. Looping Problem worse with high connectivity Q Z B A C N M V H 75

  25. Split Horizon: one of several optimizations Don’t tell neighbor N you can reach D if you’d forward to D through N A B C A B C D 76

  26. Link State Routing • meet nbrs • Construct Link State Packet (LSP) – who you are – list of (nbr, cost) pairs • Broadcast LSPs to all rtrs (“a miracle occurs”) • Store latest LSP from each rtr • Compute Routes (breadth first, i.e., “shortest path” first—well known and efficient algorithm) 77

  27. 6 2 A B C 5 2 2 1 G 2 4 D E F 1 A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 78

  28. Computing Routes • Edsgar Dijkstra’s algorithm: – calculate tree of shortest paths from self to each – also calculate cost from self to each – Algorithm: • step 0: put (SELF, 0) on tree • step 1: look at LSP of node (N,c) just put on tree. If for any nbr K, this is best path so far to K, put (K, c+dist(N,K)) on tree, child of N, with dotted line • step 2: make dotted line with smallest cost solid, go to step 1 79

  29. Look at LSP of new tree node A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) G(5) F(2) 80

  30. Make shortest TENT solid A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) G(5) F(2) 81

  31. Look at LSP of newest tree node A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) G(5) F(2) E(4) G(3) 82

  32. Make shortest TENT solid A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) F(2) E(4) G(3) 83

  33. Look at LSP of newest tree node A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) F(2) A(8) E(3) G(3) 84

  34. Make shortest TENT solid A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) F(2) A(8) E(3) G(3) 85

  35. Look at LSP of newest tree node A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) F(2) A(8) E(3) G(3) D(5) 86

  36. Make shortest TENT solid A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) F(2) A(8) E(3) G(3) D(5) 87

  37. Look at newest tree node’s LSP A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) F(2) A(8) E(3) G(3) D(5) 88

  38. Make shortest TENT solid A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) F(2) A(8) E(3) G(3) D(5) 89

  39. Look at newest node’s LSP A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) F(2) A(8) E(3) G(3) D(5) A(7) 90

  40. Make shortest TENT solid A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) F(2) E(3) G(3) D(5) A(7) 91

  41. We’re done! A B C D E F G B/6 A/6 B/2 A/2 B/1 C/2 C/5 D/2 C/2 F/2 E/2 D/2 E/4 F/1 E/1 G/5 F/4 G/1 C(0) B(2) F(2) E(3) G(3) D(5) A(7) 92

  42. “A miracle occurs” • First link state protocol: ARPANET • I wanted to do something similar for DECnet • My manager said “Only if you can prove it’s stable” • Given a choice between a proof and a counterexample… 93

  43. Routing Robustness • This failure mode actually occurred in the ARPANET • I designed “self-stabilizing” link state protocol…but only after sick/evil node gone • IS-IS and OSPF do it self-stabilizing • My thesis: robust even if some of the routers are evil. More than securing the routing protocol : it deals with packet delivery 94

  44. Distance vector vs link state • Memory: distance vector wins (but memory is cheap) • Computation: debatable • Simplicity of coding: simple distance vector wins. Complex new-fangled distance vector, no • Convergence speed: link state • Functionality: link state; custom routes, mapping the net, troubleshooting, sabotage-proof routing 95

  45. Specific Routing Protocols • Interdomain vs Intradomain • Intradomain: – link state (OSPF, IS-IS) – distance vector (RIP) • Interdomain – BGP 96

  46. BGP (Border Gateway Protocol) • “Policies”, not just minimize path • “Path vector”: given reported paths to D from each nbr, and configured preferences, choose your path to D – don’t ever route through domain X, or not to D, or only as last resort • Other policies: don’t tell nbr about D, or lie to nbr about D making path look worse 97

  47. Path vector/Distance vector • Distance vector – Each router reports to its neighbors {(D,cost)} – Each router chooses best path based on min (reported cost to D+link cost to nbr) • Path vector – Each rtr R reports {(D,list of AS’s in R’s chosen path to D)…} – Each rtr chooses best path based on configured policies 98

  48. BGP Configuration • path preference rules • which nbr to tell about which destinations • how to “edit” the path when telling nbr N about prefix P (add fake hops to discourage N from using you to get to P) 99

  49. RBridges • TRILL WG – Do link state routing – Encapsulate with “safe hdr” (include TTL) – Still learn like bridges – But forward like routers – Zero configuration like bridges 100

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