Download Spanning Tree - Networking - Lecture Slides and more Slides Computer Networks in PDF only on Docsity!
Spanning Tree and
Datacenters
Last time: Self- Learning in Ethernet
Approach:
- Flood first packet to node you are trying to reach
- Avoids loop by restricting flooding to spanning tree
- Flooding allows packet to reach destination
- And in the process switches learn how to reach source of flood
A convenient spanning tree
- Shortest paths to (or from) a node form a tree
- Covers all nodes in the graph
- No shortest path can have a cycle
Algorithm Has Two Aspects
- Pick a root:
- Pick the one with the smallest identifier (MAC addr.)
- This will be the destination to which shortest paths go
- Compute shortest paths to the root
- Only keep the links on shortest-paths
- Break ties by picking the lowest neighbor switch addr
- Ethernet’s spanning tree construction does both with a single algorithm
Steps in Spanning Tree Algorithm
- Initially, each switch proposes itself as the root
- Example: switch X announces (X, 0, X)
- Switches update their view of the root
- Upon receiving message (Y, d, Z) from Z, check Y’s id
- If Y’s id < current root: set root = Y
- Switches compute their distance from the root
- Add 1 to the shortest distance received from a neighbor
- If root or shortest distance to it changed, “flood” updated message (Y, d+1, X)
Example (root, dist, from) 1 2 3 4 5 6 7 (1,0,1) (2,0,2) (3,0,3) (4,0,4) (5,0,5) (7,0,7)^ (6,0,6) 1 2 3 4 5 6 7 (1,0,1) (2,0,2) (1,1,3) (2,1,4) (1,1,5) (1,1,6) (2,1,7) 1 2 3 4 5 6 7 (1,0,1) (1,2,3) (1,1,3) (2,1,4) (1,1,5) (2,1,7) (1,1,6) 1 2 3 4 5 6 7 (1,0,1) (1,2,3) (1,1,3) (1,3,2) (1,1,5) (1,3,2) (1,1,6)
Problems with Spanning Tree?
- Delay in reestablishing spanning tree
- Network is “down” until spanning tree rebuilt
- Much of the network bandwidth goes unused
- Forwarding is only over the spanning tree
- A real problem for datacenter networks…
Datacenters
Disclaimer
- Material is emerging (not established) wisdom
- Material is incomplete
- many details on how and why datacenter networks operate aren’t public
What goes into a datacenter (network)?
- Servers organized in racks
What goes into a datacenter (network)?
- Servers organized in racks
- Each rack has a `Top of Rack’ (ToR) switch
- An `aggregation fabric’ interconnects ToR switches
What goes into a datacenter (network)?
- Servers organized in racks
- Each rack has a `Top of Rack’ (ToR) switch
- An `aggregation fabric’ interconnects ToR switches
- Connected to the outside via `core’ switches
- note: blurry line between aggregation and core
- With network redundancy of ~2x for robustness
CR CR AR AR AR AR
... S S Internet S S … S S … ... ~ 40 - 80 servers/rack
Example 2
Cisco reference design
Observations on DC architecture
- Regular, well-defined arrangement
- Hierarchical structure with rack/aggr/core layers
- Mostly homogenous within a layer
- Supports communication between servers and between servers and the external world Contrast: ad-hoc structure, heterogeneity of WANs