43
Advanced Computer Networks - Mice and Elepha nts Paper 1 The War Between Mice The War Between Mice and Elephants and Elephants Liang Guo and Ibrahim Matta Liang Guo and Ibrahim Matta Computer Science Department Computer Science Department Boston University Boston University 9th IEEE International Conference on Network Protocols 9th IEEE International Conference on Network Protocols (ICNP) (ICNP) , Riverside, CA, , Riverside, CA, November 2001. November 2001. Presented by Bob Kinicki Presented by Bob Kinicki

Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

  • View
    217

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 1

The War Between Mice The War Between Mice and Elephantsand Elephants

Liang Guo and Ibrahim MattaLiang Guo and Ibrahim Matta

Computer Science DepartmentComputer Science Department

Boston UniversityBoston University9th IEEE International Conference on Network 9th IEEE International Conference on Network

Protocols (ICNP)Protocols (ICNP), Riverside, CA,, Riverside, CA,

November 2001. November 2001.

Presented by Bob KinickiPresented by Bob Kinicki

Page 2: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 2

AcknowledgementsAcknowledgements

Figures in this presentation are Figures in this presentation are taken from a class presentation by taken from a class presentation by Matt Hartling and Sumit Kumbhar Matt Hartling and Sumit Kumbhar in CS577 Advanced Computer in CS577 Advanced Computer Networks in Spring 2002.Networks in Spring 2002.

Page 3: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 3

OutlineOutline• Introduction and MotivationIntroduction and Motivation• Performance MetricsPerformance Metrics• Active Queue ManagementActive Queue Management

– Drop Tail, RED and RIO Routers– DiffServ: Core versus Edge Routers

• Preliminary AnalysisPreliminary Analysis• Proposed RIO-PS ArchitectureProposed RIO-PS Architecture• Analysis via ns-2 simulationAnalysis via ns-2 simulation• DiscussionDiscussion• ConclusionsConclusions

Page 4: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 4

IntroductionIntroduction

• 80% of the traffic is due to a small 80% of the traffic is due to a small number of flows number of flows {elephants}{elephants} ..

• The remaining traffic volume is due to The remaining traffic volume is due to many short-lived flows many short-lived flows {mice} {mice} ..

• With TCP congestion control With TCP congestion control mechanisms, these short flows receive mechanisms, these short flows receive lessless than their fair share when they than their fair share when they compete for the bottleneck compete for the bottleneck bandwidth.bandwidth.

Page 5: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 5

IntroductionIntroduction

The research goalThe research goal

• Provide long-lived flows with Provide long-lived flows with expected data rate.expected data rate.

• Provide better-than-best-effort Provide better-than-best-effort service for short TCP flows service for short TCP flows {Web {Web traffic}traffic} . .

Page 6: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 6

IntroductionIntroduction

What did the authors do?What did the authors do?

• Proposed a new Proposed a new DiffServ DiffServ style style architecture designed to be fairer to architecture designed to be fairer to short flows.short flows.

• Ran extensive simulations to Ran extensive simulations to demonstrate the value of the proposed demonstrate the value of the proposed scheme.scheme.

Page 7: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 7

Performance MetricsPerformance Metrics

• Object response time – Object response time – the time to the time to download an object in a Web page.download an object in a Web page.

• Transmission time Transmission time – the time to – the time to transmit a page.transmit a page.

• goodputgoodput (Mbps) - the rate at which (Mbps) - the rate at which packets arrive at the receiver. packets arrive at the receiver. Goodput differs from throughput in Goodput differs from throughput in that retransmissions are that retransmissions are excludedexcluded from goodput.from goodput.

Page 8: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 8

Performance MetricsPerformance Metrics

n

iixn

1

2

2

1

n

iix

• Jain’s fairnessJain’s fairness

– For any given set of user throughputs (For any given set of user throughputs (x1, x2, …, xn), ), the fairness index to the set is defined:the fairness index to the set is defined:

f (xf (x1, 1, xx22, …, x, …, xnn)) = =

• Instantaneous queue size – provides a measure Instantaneous queue size – provides a measure of the delay.of the delay.

• Packet drop/mark rate – rate at which packets Packet drop/mark rate – rate at which packets are dropped at bottleneck router.are dropped at bottleneck router.

Page 9: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 9

Active Queue Active Queue ManagementManagement

• TCP sources interact with routers to TCP sources interact with routers to deal with congestion caused by an deal with congestion caused by an internal bottlenecked link.internal bottlenecked link.

• Drop Tail :: FIFO queuing Drop Tail :: FIFO queuing mechanism.mechanism.

• RED :: Random Early DetectionRED :: Random Early Detection• RIO :: RED with In and OutRIO :: RED with In and Out

Page 10: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 10

Drop Tail RouterDrop Tail Router

• FIFO queueing mechanism that drops packets when the queue overflows.

• Introduces global synchronization when packets are dropped from several connections.

Page 11: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 11

RED RouterRED Router

• Random Early Detection (RED) detects Random Early Detection (RED) detects congestion “early” by maintaining an congestion “early” by maintaining an exponentially-weighted average queue exponentially-weighted average queue size.size.

• RED probabilistically drops packets before RED probabilistically drops packets before the queue overflows to signal congestion the queue overflows to signal congestion to TCP sources.to TCP sources.

• RED attempts to avoid global RED attempts to avoid global synchronization and bursty packet drops.synchronization and bursty packet drops.

Page 12: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 12

REDRED

packet

minminththmaxmaxthth

minminthth :::: average queue length threshold for average queue length threshold for triggering probabilistic drops/markstriggering probabilistic drops/marks..

maxmaxth th :::: average queue length threshold for average queue length threshold for triggering forced drops.triggering forced drops.

Page 13: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 13

RED ParametersRED Parameters

qqavgavg :: average queue size:: average queue size

qqavgavg = (1-w = (1-wqq) * ) * qqavgavg + w + wqq* instantaneous queue size * instantaneous queue size

wwqq :::: weighting factor weighting factor 0.001 <= w0.001 <= wqq <= 0.004<= 0.004

maxmaxpp :: maximum dropping/marking probability:: maximum dropping/marking probability ppbb = max = maxpp * ( * (qavg – min – minthth) / (max) / (maxthth – min – minthth))

ppaa= p= pbb / (1 – count * p / (1 – count * pbb))

buffer_size buffer_size :::: the size of the router queue in packets.the size of the router queue in packets.

Page 14: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 14

RED Router MechanismRED Router Mechanism

1

0Min-threshold Max-threshold

Dropping/Marking Probability

Queue Size

maxp

Average Queue Length (avgq)

GentileGentile

REDRED

Page 15: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 15

RIORIO• RED with two flow classes (short and RED with two flow classes (short and

long flows)long flows)• There are two separate sets of RED There are two separate sets of RED

parameters for each flow class.parameters for each flow class.• Only one real queue exists to avoid Only one real queue exists to avoid

packet reordering.packet reordering.• For long flows, average queue size of For long flows, average queue size of

total queue is used (Qtotal queue is used (Qtotaltotal).).

• Note – “gentile” variant of RED is used.Note – “gentile” variant of RED is used.

Page 16: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 16

RIO-PSRIO-PS

Page 17: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 17

DiffServ PhilosophyDiffServ Philosophy

• Routers divided into edge and core Routers divided into edge and core routers.routers.

• Intelligence pushed out to edge (ingress Intelligence pushed out to edge (ingress and egress) and core routers are to be and egress) and core routers are to be “simple”.“simple”.

• Edge router ‘classifies’ flows and tags Edge router ‘classifies’ flows and tags packet with classification (e.g., short or packet with classification (e.g., short or long).long).

• The tag is used by RIO in core router to The tag is used by RIO in core router to yield RIO-PS yield RIO-PS {Preferential treatment for {Preferential treatment for Short flows} Short flows} ..

Page 18: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 18

RIO-PSRIO-PS

Page 19: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 19

Analytic Sensitivity Analytic Sensitivity AnalysisAnalysis

RTT = 0.1 sec.RTT = 0.1 sec.

average RTO = 4 x RTTaverage RTO = 4 x RTT

ITO = 3 sec.ITO = 3 sec.

Page 20: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 20

Fig 1a. Average Transmission Fig 1a. Average Transmission TimeTime

Page 21: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 21

Ns-2 SimulationsNs-2 Simulations

TCP NewRenoTCP NewReno

Page 22: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 22

Fig 1b. Transmission Time Fig 1b. Transmission Time VarianceVariance

Conclusion: Reducing the lossConclusion: Reducing the loss

probability is more critical toprobability is more critical to

helping the short flows.helping the short flows.

Page 23: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 23

Figure 2: Comparison of Drop Figure 2: Comparison of Drop Tail, RED, RIO-PSTail, RED, RIO-PS

Page 24: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 24

Table I GoodputTable I Goodput

Page 25: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 25

Proposed ArchitectureProposed Architecture

Page 26: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 26

Proposed ArchitectureProposed Architecture• Edge router classifies flows as belonging Edge router classifies flows as belonging

to short flow class or long flow class and to short flow class or long flow class and places tag into packet.places tag into packet.

• The edge router uses a threshold The edge router uses a threshold LLtt and and a per flow counter. This per-flow state a per flow counter. This per-flow state information is “softly” maintained at the information is “softly” maintained at the edge router and every edge router and every TTuu seconds idle seconds idle flows are deleted from hash table.flows are deleted from hash table.

• Once the counter exceeds the Once the counter exceeds the threshold, the flow is considered a threshold, the flow is considered a Long Long flow. The first flow. The first LLtt packets are classified packets are classified as part of a as part of a Short Short flow.flow.

Page 27: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 27

Proposed ArchitectureProposed Architecture

• The threshold can be static or The threshold can be static or dynamic.dynamic.

• Dynamic version can be controlled Dynamic version can be controlled by a desired SLR (Short-to-Long by a desired SLR (Short-to-Long Ratio) that is periodically adjusted Ratio) that is periodically adjusted every every TTcc seconds.seconds.

• Core routers give preferential Core routers give preferential treatment to short flows treatment to short flows (e.g. in (e.g. in Table III pTable III pmax_smax_s = 0.05) = 0.05)..

Page 28: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 28

Web Traffic CharacterizationWeb Traffic Characterization

• Used Feldman’s model in ns-2 Used Feldman’s model in ns-2 simulations:simulations:– HTTP 1.0– Exponential inter-page arrivals– Exponential inter-object arrivals– Uniform distribution of objects per page with

min 2 and max 7– Object size; bounded Pareto distribution

with minimum 4 bytes, maximum 200KB, shape =1.2

Page 29: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 29

Simulation TopologySimulation Topology

……

20 ms.20 ms.

100 Mbps100 Mbps15 ms.15 ms.

100 Mbps100 Mbps33 00

11

22

15 ms.15 ms.

x Mbpsx Mbps

15 ms.15 ms.

y Mbpsy Mbps

……

Client Pool 2Client Pool 2

Client Pool 1Client Pool 1

Server Pool Server Pool

Page 30: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 30

Page 31: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 31

Simulation DetailsSimulation Details

• Experiments run 4000 seconds Experiments run 4000 seconds with a 2000 second warm-up with a 2000 second warm-up period.period.

• Why??Why??• SLR = 3SLR = 3• RED is really ECN!RED is really ECN!

Page 32: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 32

Figure 6a. Relative Response Figure 6a. Relative Response

TimeTime [RIO = 3 sec.][RIO = 3 sec.]

Page 33: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 33

Figure 6b. Relative Response Figure 6b. Relative Response

TimeTime [RIO = 1 sec.][RIO = 1 sec.]

Page 34: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 34

Figure 7a. Instantaneous Queue Figure 7a. Instantaneous Queue SizeSize

Page 35: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 35

Figure 7b. Instantaneous Drop/Mark RateFigure 7b. Instantaneous Drop/Mark Rate

Conclusion: PreferentialConclusion: Preferential

treatment to short flowstreatment to short flows

does not hurt.does not hurt.

Page 36: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 36

Foreground Traffic StudyForeground Traffic Study

• Periodically injected 10 short flows Periodically injected 10 short flows (every 25 seconds) and 10 long (every 25 seconds) and 10 long flows (every 125 seconds) as flows (every 125 seconds) as foreground TCP connections and foreground TCP connections and recorded the response time for irecorded the response time for ithth connection.connection.

Page 37: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 37

Figure 8a. Jain’s Fairness – Short Figure 8a. Jain’s Fairness – Short ConnectionsConnections

Page 38: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 38

Figure 8b. Jain’s Fairness – Long Figure 8b. Jain’s Fairness – Long ConnectionsConnections

Page 39: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 39

Figure 9a. Transmission Time Figure 9a. Transmission Time – Short Connections– Short Connections

RED flows experienceRED flows experience

timeouts and do not marktimeouts and do not mark

SYN packets!SYN packets!

Page 40: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 40

Figure 9b. Transmission Time Figure 9b. Transmission Time – Long Connections– Long Connections

Long flowsLong flows

benefit frombenefit from

RIO-PS too!RIO-PS too!

Page 41: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 41

Network GoodputNetwork Goodputover the Last 2000 secs.over the Last 2000 secs.

Page 42: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 42

DiscussionDiscussion

• Only did one-way traffic. The Only did one-way traffic. The authors claim two-way would be authors claim two-way would be even better for RIO-PS.even better for RIO-PS.

• Argument: Others have shown that Argument: Others have shown that edge routers do not significantly edge routers do not significantly impact performance.impact performance.

• Edge router takes care of malicious Edge router takes care of malicious sender.sender.

Page 43: Advanced Computer Networks - Mice and Elephants Paper1 The War Between Mice and Elephants Liang Guo and Ibrahim Matta Computer Science Department Boston

Advanced Computer Networks - Mice and Elephants Paper 43

ConclusionsConclusions

• Proposed architecture with edge routers Proposed architecture with edge routers classifying flows and core routers classifying flows and core routers implementing RIO-PS.implementing RIO-PS.

• This scheme shown to improve response This scheme shown to improve response time and fairness for short flows.time and fairness for short flows.

• The performance of long flows is also The performance of long flows is also enhanced.enhanced.

• Overall goodput is improved Overall goodput is improved {a weak {a weak claim}claim}..

• Authors call their approach “size-aware” Authors call their approach “size-aware” traffic management.traffic management.