lecture 7: data center networkscseweb.ucsd.edu/classes/wi18/cse222a-a/lectures/222a-wi18-l7.pdf ·...

20
CSE 222A: Computer Communication Networks Alex C. Snoeren Lecture 7: Data Center Networks Thanks: Nick Feamster

Upload: others

Post on 06-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

CSE 222A: Computer Communication NetworksAlex C. Snoeren

Lecture 7:Data Center Networks

Thanks: Nick Feamster

Page 2: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Lecture 7 Overview● Project discussion

● Data Centers overview

● “Fat Tree” paper discussion

2CSE 222A – Lecture 7: Data Center Networks

Page 3: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Traditional DC TopologyInternet

Servers

Layer-2 switchAccess

Data Center

Layer-2/3 switchAggregation

Layer-3 routerCore

CSE 222A – Lecture 7: Data Center Networks 3

Page 4: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

DC Network Requirements● Scalability

u Incremental build out?● Reliability

u Loop free forwarding● VM migration

● Reasonable management burdenu Humans in the loop?

CSE 222A – Lecture 7: Data Center Networks 4

Page 5: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

● Over subscription of links higher up in the topology

● Tradeoff between cost and provisioning

● Single point of failure

Traditional Topologies

CSE 222A – Lecture 7: Data Center Networks 5

Page 6: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Capacity Bottlenecks

CR CR

AR AR AR AR

SS

SS

A AA …

SS

A AA …

. . .

SS

SS

A AA …

SS

A AA …

~ 5:1

~ 40:1

~ 200:1

CSE 222A – Lecture 7: Data Center Networks 6

Page 7: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Management: L2 vs. L3● Ethernet switching (layer 2)

u Cheaper switch equipmentu Fixed addresses and auto-configurationu Seamless mobility, migration, and failover

● IP routing (layer 3)u Scalability through hierarchical addressingu Efficiency through shortest-path routingu Multipath routing through equal-cost multipath

● Data centers often connect layer-2 islands by IP routers

CSE 222A – Lecture 7: Data Center Networks 7

Page 8: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Advantages of Layer 2● Certain monitoring apps require server with same role

to be on the same VLAN

● Using same IP on dual homed servers

● Allows organic growth of server farms

● VM migration is easier

CSE 222A – Lecture 7: Data Center Networks 8

Page 9: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Layer 2 Pods w/L3 Backbone

CR CR

AR AR AR AR. . .

SS

DC-Layer 3

Internet

SS

A AA …

SS

A AA …

. . .

DC-Layer 2

Key• CR = Core Router (L3)• AR = Access Router (L3)• S = Ethernet Switch (L2)• A = Rack of app. servers

~ 1,000 servers/pod == IP subnet

S S S S

SS

CSE 222A – Lecture 7: Data Center Networks 9

Page 10: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

FAT Tree-Based Solution● An all Layer-3 solution

● Connect end-host together using a “fat-tree” topology u Infrastructure consist of cheap devices

» Each port supports same speed as endhostu All devices can transmit at line speed if packets are distributed

along existing pathsu A k-port fat tree can support k3/4 hosts

CSE 222A – Lecture 7: Data Center Networks 10

Page 11: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

“Fat-Tree” Topology

CSE 222A – Lecture 7: Data Center Networks 11

Page 12: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Fat-Tree Challenges● Layer 3 will only use one of the existing equal cost

paths● Packet re-ordering occurs if layer 3 blindly takes

advantage of path diversityu E.g., ECMP

CSE 222A – Lecture 7: Data Center Networks 12

Page 13: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Modified Fat Tree● Enforce special addressing scheme in DC

u Allows host attached to same switch to route only through switch

u Allows inter-pod traffic to stay within podu unused.PodNumber.switchnumber.Endhost

● Use two level look-ups to distribute traffic and maintain packet ordering.

CSE 222A – Lecture 7: Data Center Networks 13

Page 14: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Two-Level Lookups● First level is prefix lookup

u Used to route down the topology to endhost● Second level is a suffix lookup

u Used to route up towards coreu Diffuses and spreads out trafficu Maintains packet ordering by using the same ports for the

same endhost

CSE 222A – Lecture 7: Data Center Networks 14

Page 15: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Diffusion Optimizations● Flow classification

u Eliminates local congestionu Assign to traffic to ports on a per-flow basis instead of a per-

host basis

● Flow schedulingu Eliminates global congestionu Prevent long lived flows from sharing the same linksu Assign long lived flows to different links

CSE 222A – Lecture 7: Data Center Networks 15

Page 16: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Discussion● VM mobility

● Data center build out

● Internet connectivity

● Address space allocationu Doing flow placement anyway?

CSE 222A – Lecture 7: Data Center Networks 16

Page 17: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

● Flat addressing and self-learning enablesplug-and-play networking

● Permanent and location independent addresses also simplifyu Host mobilityu Access-control policiesu Network troubleshooting

The Beauty of Ethernet

17CSE 222A – Lecture 7: Data Center Networks

Page 18: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

● Flooding-based deliveryu Frames to unknown destinations are flooded

● Broadcasting for basic serviceu Bootstrapping relies on broadcasting

u Vulnerable to resource exhaustion attacks

● Inefficient forwarding pathsu Loops are fatal due to broadcast storms; uses STPu Forwarding along a single tree leads to

inefficiency and lower utilization

Ethernet Scaling Challenges

18CSE 222A – Lecture 7: Data Center Networks

Page 19: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

Enterprise networks comprised of Ethernet-based IP subnets interconnected by routers

R

R

R

R

Ethernet Bridging- Flat addressing- Self-learning- Flooding- Forwarding along a tree

IP Routing (e.g., OSPF)- Hierarchical addressing- Subnet configuration- Host configuration- Forwarding along shortest paths

R

Broadcast Domain(LAN or VLAN)

Traditional L2/L3 Model

19CSE 222A – Lecture 7: Data Center Networks

Page 20: Lecture 7: Data Center Networkscseweb.ucsd.edu/classes/wi18/cse222A-a/lectures/222A-wi18-l7.pdf · CSE 222A –Lecture 7: Data Center Networks 8. Layer 2 Pods w/L3 Backbone CR CR

For Next Class…

● Read and review PortLand paper

● Work on project proposalsu Details available on the course Web page

20CSE 222A – Lecture 7: Data Center Networks