Mike Freedman
COS 461: Computer Networks
Lectures: MW 10-10:50am in Architecture N101
http://www.cs.princeton.edu/courses/archive/spr13/cos461/
Enterprise
Backbone
Cellular
Wireless
Cloud Computing
Cloud Computing
Elastic resources
Expand and contract resources
Pay-per-use
Infrastructure on demand
Multi-tenancy
Multiple independent users
Security and resource isolation
Amortize the cost of the (shared) infrastructure
Platform as a Service
Provider offers platform for building applications
E.g., Googles App-Engine, Amazon S3 storage
Avoid worrying about scalability of platform
5
Multi-Tier Applications
Applications consist of tasks
Many separate components
Running on different machines
Commodity computers
Many general-purpose computers
Not one big mainframe
Easier scaling
8
Componentization leads to
different types of network traffic
North-South traffic
Traffic to/from external clients (outside of datacenter)
Handled by front-end (web) servers, mid-tier application
servers, and back-end databases
Traffic patterns fairly stable, though diurnal variations
East-West traffic
Traffic within data-parallel computations within datacenter
(e.g. Partition/Aggregate programs like Map Reduce)
Data in distributed storage, partitions transferred to compute
nodes, results joined at aggregation points, stored back into FS
Traffic may shift on small timescales (e.g., minutes)
9
North-South Traffic
Router
Front-End
Proxy
Web
Server
Data
Cache
Front-End
Proxy
Web
Server
Data
Cache
Web
Server
Database
Database
10
East-West Traffic
Distributed
Storage
Map
Tasks
Reduce
Tasks
Distributed
Storage
11
Datacenter Network
12
13
Top-of-Rack Architecture
Rack of servers
Commodity servers
And top-of-rack switch
Modular design
Preconfigured racks
Power, network, and
storage cabling
14
15
Many containers
16
AR
AR
~ 1,000 servers/pod
CR
...
AR
AR
...
Key
CR = Core Router
AR = Access Router
S = Ethernet Switch
A = Rack of app. servers
17
Capacity Mismatch?
CR
AR
AR
AR
AR
CR
...
Oversubscription: Demand/Supply
A.1 > 2 > 3
B.1 < 2 < 3
C.1 = 2 = 3
18
Capacity Mismatch!
CR
AR
AR
CR
~ 200:1
~ 40:1
~ S5:1 S
...
AR
AR
IP routing (layer 3)
Scalability through hierarchical addressing
Efficiency through shortest-path routing
Multipath routing through equal-cost multipath
20
Datacenter Routing
Internet
CR
DC-Layer 3
DC-Layer 2
AR
AR
SS
SS
SS
CR
...
SS
AR
AR
...
Key
CR = Core Router (L3)
AR = Access Router (L3)
S = Ethernet Switch (L2)
A = Rack of app. servers
21
Outstanding datacenter
networking problems remains
22
Network Incast
Web
Server
Data
Cache
Data
Cache
Data
Cache
Data
Cache
Network Incast
Web
Server
Data
Cache
Data
Cache
Data
Cache
Data
Cache
Load-aware routing
Centralized flow scheduling, end-host congestion feedback,
switch local algorithms
26
Conclusion
Cloud computing
Major trend in IT industry
Todays equivalent of factories
Datacenter networking
Regular topologies interconnecting VMs
Mix of Ethernet and IP networking
Load Balancing
28
Load Balancers
Spread load over server replicas
Present a single public address (VIP) for a service
Direct each request to a server replica
10.10.10.1
Virtual IP (VIP)
192.121.10.1
10.10.10.2
10.10.10.3
29
Wide-Area Network
Servers
Datacenters
Router
DNS
Server
DNS-based
site selection
Servers
Router
Internet
Clients
30
Datacenters
Router
Servers
Router
Proxy
Proxy
Clients
31