6.888 lecture 6: network performance isolaon · 6.888 lecture 6: network performance isolaon...

31
6.888 Lecture 6: Network Performance Isola8on Mohammad Alizadeh Spring 2016 1

Upload: others

Post on 13-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

6.888Lecture6:

NetworkPerformanceIsola8on

MohammadAlizadeh

Spring2016

1

Page 2: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

Mul8-tenantCloudDataCenters

Sharedinfrastructurebetweenmul8pletenants/apps

Page 3: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

LackofPerformancePredictability

Unpredictableperformance,esp.atthetail

GAE memcache read 100 values

3

Page 4: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

Conges8onKillsPredictability

4Apr2013 4NSDI2013

Page 5: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

5

?

Page 6: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

SharingtheNetwork

6

Alice’sSwitch

VM1 VM2 VMnVM3…

Bob’sSwitch

VM1 VM2 VMiVM3…

CustomerspecifiescapacityofthevirtualNIC.Notrafficmatrix.

…HoseModel

(Duffieldetal.,SIGCOMM’99)

2GhzVCPU15GBmemory1Gb/snetwork

Page 7: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

SharingtheNetwork

Tenantselectsbandwidthguarantees.Models:Hose,VOC,TAG

PlaceVMs,ensuringallguaranteescanbemet

Enforcebandwidthguarantees&Providework-conserva8on

VMsetup

Run8me

Oktopus[SIGCOMM’10]Hadrian[NSDI’13]CloudMirror[SIGCOMM’14]

Seawall[NSDI’10]FairCloud[SIGCOMM’12]EyeQ[NSDI’13]Elas8cSwitch[SIGCOMM’13]

….²  AdaptedfromslidebyLucianPopa

Page 8: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

ExampleRun8meSystem:EyeQ(NSDI’13)

8

Page 9: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

Shim

Shim

Shim

Shim

DistributedRateAlloca8on

VM

VMVM

VM

VM

VM

2Gb/s

8Gb/s

2Gb/s

2Gb/s

8Gb/s 8Gb/sShim

10Gb/spipe(min)RateGuarantees

EyeQShimLayerInthetrusted

Domain(Hypervisor/NIC)

Page 10: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

DistributedRateAlloca8on

VM

VMVM

VM

VM

VM

2Gb/s

8Gb/s

2Gb/s

2Gb/s

8Gb/s 8Gb/s

5Gb/s

5Gb/s

10Gb/spipe(min)RateGuarantees

Page 11: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

RXModule

DistributedRateAlloca8on

VM

VMVM

VM

VM

VM

2Gb/s

8Gb/s

2Gb/s

2Gb/s

8Gb/s 8Gb/s

5Gb/s

5Gb/s

Page 12: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

DistributedRateAlloca8on

VM

VMVM

VM

VM

VM

2Gb/s

8Gb/s

2Gb/s

2Gb/s

8Gb/s 8Gb/s

1Gb/s

1Gb/s

8Gb/s

Page 13: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

VM

VMVM

VM

VM

VM

2Gb/s

8Gb/s

2Gb/s

2Gb/s

8Gb/s 8Gb/s

1Gb/s

1Gb/s

8Gb/s

5Gb/s

DistributedRateAlloca8on

Page 14: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

RXModule

DistributedRateAlloca8on

VM

VMVM

VM

VM

VM

2Gb/s

8Gb/s

2Gb/s

2Gb/s

8Gb/s 8Gb/s

1Gb/s

1Gb/s

5Gb/s

5Gb/s

Sparecapacity

Page 15: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

DistributedRateAlloca8on

VM

VMVM

VM

VM

VM

2Gb/s

8Gb/s

2Gb/s

2Gb/s

8Gb/s 8Gb/s

2.5Gb/s

2.5Gb/s

5Gb/s

5Gb/s

Page 16: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

Transmit/ReceiveModules

VM

VMVM

VM

VM

VM

2Gb/s

2Gb/s

8Gb/s 8Gb/s

1Gb/s

1Gb/s

Conges8ondetectorsRatelimit.

Ratelimit.

Ratelimit.

RCP:Ratefeedback(R)every10kB(noper-sourcestateneeded)

Per-des8na8onratelimiters:onlyifdest.iscongested…bypassotherwise

FeedbackpktRate:1Gb/s 2Gb/s

8Gb/s

Page 17: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

SharingtheNetwork

Tenantselectsbandwidthguarantees.Models:Hose,VOC,TAG

PlaceVMs,ensuringallguaranteescanbemet

Enforcebandwidthguarantees&Providework-conserva8on

VMsetup

Run8me

²  AdaptedfromslidebyLucianPopa

CloudMirror

UsesElas8cSwitch[SIGCOMM’13]

Page 18: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

CloudMirror

18

² Slidesbasedonpresenta8onbyJKLee(HP)

Page 19: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

Mo8va8on

Cloudapplica8onsarediverse&complex

Bandwidthmodelslikepipeandhosenotagoodfit

19[Bing.com traffic pattern, Sigcomm’12]

web

DB

cache

web

logic

Page 20: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

Hosemodelisunfit

HoseaggregatesBWtowardsdifferentcomponents

–  Toocoarse-grained–  Preventsaccurateandefficientguaranteesoninfrastructure

intra-component (self-edge) inter-component

Page 21: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

Hoseistoocoarse-grained

web logic DB

Web

… …

Logic DB

400 100

300

200

500

800

TCP-like fair allocation would yield 300:200

3-tier web example Hose model

congestion

Page 22: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

w w

2B

web (N)

B

… L L

… D D …

logic (N) DB (N)

2B

Hoseover-provisionsphysicallinkbandwidth

Hosemodelreserva8onatL2:2B·N

N: # VMs in each tier B: per-VM per-edge bandwidth

Physical deployment example

2X overprovision by Hose Model

2 B N

logic - DB demand = B · N

web (N)

logic (N)

DB (N)

B B

B

web + logic DB

L1 L2

w w …

L L …

D D …

Page 23: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

Contribu8ons

1.  TenantApplica8onGraph(TAG)-  Accurateforcomplexapps-  Flexibletoelas8cscaling-  Intui8ve

2.  VMPlacementAlgorithm-  Guaranteebandwidthandhighavailability-  Efficientfornetworkandcomputeresources

23

Page 24: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

TenantApplica8onGraph(TAG)1.Aggregatepipes(likeHose)-  Modelsimplicity-  Mul8plexinggain

2.Preserveinter-componentstructure(likePipe)-  Accuratelycaptureapplica8ondemands-  Efficientlyu8lizenetworkresources

DB

mem

web

logic

DB

mem

web

logic

DB

mem

web

logic

Component-level graph

Page 25: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

TenantApplica8onGraph(TAG)

web(Nw)

DB(ND)

BsndBrcv

Bin

web

DB

BsndBrcv

TAG model

Bsnd=per-VMsendingbandwidth(VM-to-componentaggrega8on)Brcv=per-VMreceivingbandwidth(component-to-VMaggrega8on)

Whatdoself-edgesmean?

Page 26: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

AbstractmodelsinTAGSelf-edge↔HoseDirec8onaledge↔direc8onalHose,VirtualTrunk

Total guarantee of virtual trunk = min(Bsnd·Nw, Brcv·ND)

Brcv

web(Nw)

Bsnd

… …

DB(ND)

Bin

Virtual Switch Virtual Trunk

web (Nw)

DB (ND)

Bsnd Brcv

Bin

TAG model

Page 27: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

Ques8ons

HowareTAGsconstructed?Howtopredictbandwidthdemands?WhatismissingfortheTAGmodel?

Page 28: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

CloudMirroropera8on

VM placement BW reservation

Admission control

TAG spec Network topology & BW reservation state

Available VM slots

host1 10 host2 50 host3 25

Web (N)

DB (N)

B B

Page 29: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

Discussion

29

Page 30: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

NextTime:CentralizedArbitra8on

30

Page 31: 6.888 Lecture 6: Network Performance Isolaon · 6.888 Lecture 6: Network Performance Isolaon Mohammad Alizadeh Spring 2016 1 Mul8-tenant Cloud Data Centers Shared infrastructure between

31