Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott...

26
Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker

Transcript of Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott...

Page 1: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Michael SchapiraYale and UC Berkeley

Joint work with P. Brighten Godfrey,

Aviv Zohar and Scott Shenker

Page 2: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Incentives and Protocolsfor Congestion Control

Our Model

Convergence Results

Incentive Compatibility Results

Conclusions and Open Questions

Page 3: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Congestion collapseSometimes several orders of magnitude lower!

Observed in the mid-1980’s

The solution:TCPAdditive Increase Multiplicative Decrease (AIMD)

time

transmission rate

Page 4: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Routers use FIFO queuing.2 TCP connections

Ce=1

S1 T1

S2 T2

edge e

Page 5: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Can this really happen?

Yes!Why not?

Manipulation observed in other protocols (e.g., P2P).

Tweaking browsers to open more connections.

Download accelerators/patches: commercial and free software that promises to speed up downloads.

Page 6: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

In a distributed environment, protocols are just a suggestion.

Participants will not follow the protocol if they can gain by deviating.

Economic mechanism design: Use Game Theory and Economics to analyze and design incentives.Algorithmic mechanism design [Nisan-Ronen 99]

Page 7: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Incentive compatibility and convergence often go hand in handBoth are standard requirements (e.g., the Border

Gateway Protocol)

Easier to talk about an “outcome” when things converge

Similar phenomena.

We analyze convergence first, then incentives.

Page 8: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

We present a simple model for congestion control.

Simplistic!constant number of connections…unchanging demands…fluid model…

… but captures interplay: end-host protocols and queuing

policiesasynchronous interactionsconvergence properties in complex topologies

incentives

Page 9: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

The network is a directed graph G(V,E).V = routersE = links

Each edge e has capacity c(e).

23

21

14

3

Page 10: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Connection Ci is the source-target pair (si,ti) and a fixed route between them.

Each connection Ci has a maximum transmission rate i and wishes to maximize its throughput.

23

21

14

3

S1

T2S2

T1

Page 11: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Connection Ci‘s flow on edge e is

If the flow entering an edge e exceeds its capacity, then traffic is dropped according the edge’s queuing policy

9

2

7

Ce =9

???

Rief

eQ

)ˆ,,ˆ(),,( 11 kke ffffQ

ii ffi ˆ

ej

j cf ˆ

edge e

Page 12: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

FIFO:

Strict PriorityQueuing (SPQ):

9

2

7

Ce =9

3.54.51

9

2

7

Ce =9

720

e

jj

ii c

f

ff

ˆ

Page 13: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Weighted Fair Queueing (WFQ): Connection Ci has weight wi and gets capacity share

Unused capacity is redistributed similarly

9

2

7

Ce =9

3.5

3.5

2

w1 =1

w2 =1

w3 =1

e

jj

i cw

w

Page 14: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Infinite sequence of discrete time steps t=1,2,…

At each time step, an adversarial “scheduler” activates some subset of the connections and edges.An activated connection uses a congestion control protocol to adjust transmission rate.

An activated edge adjusts the flow rates according to its queuing policy.

No connection or edge is starved indefinitely.

Page 15: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

S1

T2S2

T1

S3

T3

6

*all edge capacities = 6

*all routers use FIFO Queuing

6

6

6 66

006

3

3

24

2

Page 16: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

When do the network dynamics converge to a stable flow pattern?for what combinations of congestion control

protocols and queuing policies?

When are connections incentivized to follow the protocol?for what combinations of congestion control

protocols and queuing policies?

Page 17: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Bad news: If weights/priorities are not consistent across routers, Weighted Fair Queuing (WFQ) and Strict Priority Queuing (SPQ) might not converge even for fixed senders!

3

4

2

1

>>*capacities = transmission rates = 1

*uncoordinated priorities

*infinitely many equilibrium points

*oscillation!

Page 18: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Bad news: If weights/priorities are not consistent across routers, Weighted Fair Queuing (WFQ) and Strict Priority Queuing (SPQ) might not converge even for fixed senders!

*capacities = transmission rates = 100mbps

Page 19: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Bad news: If weights/priorities are not consistent across routers, Weighted Fair Queuing (WFQ) and Strict Priority Queuing (SPQ) might not converge even for fixed senders!

*capacities = transmission rates = 1

*uncoordinated priorities

*a single equilibrium points

*oscillations almost from all initial states!

3

2

1

>

>

>

Page 20: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Thm: If all routers use WFQ or SPQ with consistent weights/priorities then, for fixed senders, convergence is guaranteed.

Thm: If all routers use FIFO, there is always an equilibrium flow pattern for fixed senders.

Shown using a fixed-point argument.

Open questions: (1) Is this equilibrium unique?(2) Is convergence guaranteed?

We give partial answers. Still wide open.

Page 21: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

A family of congestion control protocols

Increase transmission rate, until experiencing a small amount of packet loss.

If losing packets, lower transmission rate to match reported throughput rate.

Like TCP: Increase-DecreaseUnlike TCP: General increase. Specific

decrease

Page 22: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Thm: When all connections use PIED, and all routers use WFQ or SPQ with coordinated weights/priorities, then the flow pattern converges.

The equilibrium point is efficient:(1) capacity is not wasted; (2) packets are not dropped needlessly.

If routers use WFQ, with all weights equal (Fair Queuing), then the equilibrium point optimizes max-min fairness.

Open Question: What about FIFO?

Page 23: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

Thm: When all routers use WFQ or SPQ with coordinated weights/priorities, then PIED is incentive compatible.

That is, the end-host’s throughput at the stable state is as good as or better than anything it can get by not executing PIED.

In fact, even a coalition of end-hosts cannot gain by deviating from PIED!

Page 24: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

SPQ and WFQ are hard to implement in routers.Per-flow processing!

Defn: An edge’s queuing policy is called “local” if it does not distinguish between two flows that have the same incoming and outgoing links.

Thm: If all routers use local and efficient queuing policies then PIED is not incentive compatible.Generalization of our example for FIFO

Page 25: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.

New perspective on congestion control.

3 desiderata: convergence, efficiency and incentives.

FIFO!

Improve the model!coming and going connections…changing demands…traffic bursts…

Page 26: Michael Schapira Yale and UC Berkeley Joint work with P. Brighten Godfrey, Aviv Zohar and Scott Shenker.