measurement-based models enable predictable wireless behavior

28
Measurement-based models enable predictable wireless behavior Ratul Mahajan Microsoft Research Collaborators: Yi Li, Lili Qiu, Charles Reis, Maya Rodrig, Eric Rozner, David Wetherall, John Zahorjan, Yin Zhang,

Upload: roden

Post on 23-Feb-2016

96 views

Category:

Documents


0 download

DESCRIPTION

Measurement-based models enable predictable wireless behavior. Ratul Mahajan Microsoft Research Collaborators: Yi Li, Lili Qiu, Charles Reis, Maya Rodrig, Eric Rozner, David Wetherall, John Zahorjan, Yin Zhang, . Wireless Mesh Networks. Can enable ubiquitous and cheap broadband access - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Measurement-based models enable predictable wireless behavior

Measurement-based models enable predictable wireless behavior

Ratul Mahajan Microsoft Research

Collaborators: Yi Li, Lili Qiu, Charles Reis, Maya Rodrig, Eric Rozner, David Wetherall, John Zahorjan, Yin Zhang,

Page 2: Measurement-based models enable predictable wireless behavior

2

Wireless Mesh Networks

Can enable ubiquitous and cheap broadband accessWitnessing significant research and deploymentBut early performance reports are disappointing

ratul | kaist | june '09

Page 3: Measurement-based models enable predictable wireless behavior

3

Wireless performance is unpredictable

Even basic questions are hard to answer

Arguably the most frustrating aspect of wireless• Mysteriously inconsistent performance• Makes it almost impossible to plan and manage

ratul | kaist | june '09

Wireless Wired

How much traffic can be supported?

What if a node fails?

Optimize for a given objective

Page 4: Measurement-based models enable predictable wireless behavior

4

An example of performance weirdness

ratul | kaist | june '09

Source Relay SinkGood Bad

Source Relay SinkBad Good

UDP

thro

ughp

ut (K

bps)

Loss rate on the bad link

good-bad

bad-good

Testbed

Loss rate on the bad link

UDP

thro

ughp

ut (K

bps)

good-bad

bad-good

2x

Simulationbad-good

good-bad

Source rate (Kbps)

UDP

thro

ughp

ut (K

bps)

Page 5: Measurement-based models enable predictable wireless behavior

5

Predictable performance optimization

Given a (multi-hop) wireless network:1. Can its performance for a given traffic pattern be

predicted?

2. Can it be systematically optimized per a desired objective such as fairness or throughput?

Yes, and Yes, at least in the context of WiFi

ratul | kaist | june '09

Page 6: Measurement-based models enable predictable wireless behavior

6

Predictability needs models

To predict if specific nodes interfere and what happens when a set of nodes send together

Without models, we must measure each possibility separately

ratul | kaist | june '09

S1 S2

R1 R2

Success of failure?

Page 7: Measurement-based models enable predictable wireless behavior

7

Traditional wireless models

Typical assumptions• Transmission range is circular• Interference range is twice the transmission range

Then predict the result of various sending configurations

ratul | kaist | june '09

S1 S2

Page 8: Measurement-based models enable predictable wireless behavior

8

Shortcomings of traditional models

RF propagation is a very complex, esp. indoors• The assumptions almost always do not hold in practice

Great for asymptotic behavior characterization• E.g., expected max throughput as a function of

number of nodes

Pretty much useless for predicting behavior in a specific wireless network

ratul | kaist | june '09

Page 9: Measurement-based models enable predictable wireless behavior

9

A move towards experimentation

Instead of relying on models, test performance of new protocols on testbeds

Hard to say if results generalize

The lack of predictability remains• Unless all possible configurations are tested

ratul | kaist | june '09

Page 10: Measurement-based models enable predictable wireless behavior

10

Measurement-based models

Can offer the best of traditional modeling and experimentation worlds

ratul | kaist | june '09

Capture the “RF profile” of the network by measuring

simple configurations

Use modeling to predict the behavior under more complex configurations

Page 11: Measurement-based models enable predictable wireless behavior

11

Lessons learned

Simple measurements on off-the-shelf hardware can provide usable RF profile [SIGCOMM2006]

It is possible to model interference, MAC, and traffic in a way that balances fidelity and tractability [MobiCom2007]

Holistically controlling source rates is key to achieving desired outcomes [HotNets2007, SIGCOMM2008]

ratul | kaist | june '09

Page 12: Measurement-based models enable predictable wireless behavior

12

Measurement-based modeling and optimization

ratul | kaist | june '09

Measure the RF profile of the network

Constraints on sending rate and loss rate of each link

Find compliant source rates that meet the objective

Page 13: Measurement-based models enable predictable wireless behavior

13

Measurements

One or two nodes broadcast at a time– O(n2) measurements

Other nodes listen and log received packets

Yields information on loss and carrier sense probabilities

ratul | kaist | june '09

Measure the RF profile of the network

Constraints on sending rate and loss rate of each link

Find compliant source rates that meet the objective

S1 S2

R

Page 14: Measurement-based models enable predictable wireless behavior

14

Modeling

ratul | kaist | june '09

Constraints on sending rate and loss rate of each link

Find compliant source rates that meet the objective

Makes no assumptions about topology, traffic, or MAC

Lightweight yet realistic

O(# active links) constraints capture the feasible operating region

1. Throughput constraints2. Loss rate constraints3. Sending rate constraints

Measure the RF profile of the network

Page 15: Measurement-based models enable predictable wireless behavior

15

Throughput constraints• Divide time into variable-length slot (VLS)

– 3 types of slots: idle, transmission, deferral

j ijjjijiislotj

iiii TDTT

pEPg

)1(

)1(

Expected payloadtransmission time

Probability of starting transmission in a slot

Success probability

Expected slot duration

ratul | kaist | june '09

Page 16: Measurement-based models enable predictable wireless behavior

16

Loss rate constraints

Inherent and collision loss are independent Inherent loss is directly measuredCollision loss

Synchronous loss• Two senders can carrier sense each other• Occur when two transmissions start at the same time

Asynchronous loss• At least one sender cannot carrier sense the other• Occur when two transmissions overlap

ratul | kaist | june '09

Page 17: Measurement-based models enable predictable wireless behavior

17

Sending rate feasibility constraints

2/)(110

ipCWi

802.11 unicast– Random backoff interval uniformly chosen [0,CW]– CW doubles after a failed transmission until CWmax, and

restores to CWmin after a successful transmission

DIFS Data TransmissionRandomBackoff

ACKTransmission

SIFS

Expected contention window size under loss rate pi

ratul | kaist | june '09

Page 18: Measurement-based models enable predictable wireless behavior

18

Extensions to the basic modelRTS/CTS

– Add RTS and CTS delay to VLS duration– Add RTS and CTS related loss to loss rate constraints

Multi-hop traffic demands– Link load routing matrix e2e demand– Routing matrix gives the fraction of each e2e demand that

traverses each link

TCP traffic– Update the routing matrix:

where reflects the size & frequency of TCP ACKsackdataTCP RRR

ratul | kaist | june '09

Page 19: Measurement-based models enable predictable wireless behavior

19

Optimization

ratul | kaist | june '09

Constraints on sending rate and loss rate of each link

Find compliant source rates that meet the objective

Inputs: • Traffic matrix• Routing matrix• Optimization objective

– Total throughput, fairness, …

Output: • Per-flow source rate

Predictable: output rates are actually achievable

Measure the RF profile of the network

Page 20: Measurement-based models enable predictable wireless behavior

20

Flow throughput feasibility testing

• Building block for optimization

• Uses an iterative procedure

Initialize τ= 0 and p = pinherent

Check feasibility

constraintsConverged?

noyes

Estimate τ from throughput and p

Estimate p from throughput andτ

Output:feasible/infeasible

Input: throughput

ratul | kaist | june '09

Page 21: Measurement-based models enable predictable wireless behavior

21

Fair rate allocationInitialization: add all demands to unsatSet

Scale up all demands in unsatSet until some demand is saturated or scale1

Output X

Move saturated demands from unsatSet to X

If unsatSet≠

if (scale 1)yes

no

yes

no

ratul | kaist | june '09

Page 22: Measurement-based models enable predictable wireless behavior

22

Total throughput maximization

*0

2/)(110

)1()1(..

max

d

i

xx

pCW

TDTpEPxRts

x

d

i

jjjijslot

jj

iii

ddid

dd

Formulate a non-linear optimization problem (NLP)Solve NLP using iterative linear programming

Sending rate is feasibleE2e throughput is bounded by demand

Link load is bounded bythroughput constraints

Maximize total txput

ratul | kaist | june '09

Page 23: Measurement-based models enable predictable wireless behavior

23

The network is capable of achieving its model-predicted throughput

ratul | kaist | june '09

0 1 2 3 4 5 6 7 8 9

10

0 1 2 3 4 5 6 7 8 9 10Actua

l thro

ughp

ut (M

bps)

Estimated throughput (Mbps)

0 1 2 3 4 5 6 7 8

0 1 2 3 4 5 6 7 8Actua

l thro

ughp

ut (M

bps)

Estimated throughput (Mbps)

UDP TCPResults for a 19-node testbed

Page 24: Measurement-based models enable predictable wireless behavior

24

The network cannot achieve higher than model-predicted throughput

ratul | kaist | june '09

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9

1

0 0.2 0.4 0.6 0.8 1

Frac

tions

of r

uns

Ratios between actual and estimated throughput

scale=1.0scale=1.1scale=1.2scale=1.5

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9

1

0 0.2 0.4 0.6 0.8 1Fr

actio

ns o

f run

sRatios between actual and estimated throughput

scale=1.0scale=1.1scale=1.2scale=1.5

UDP TCP

Page 25: Measurement-based models enable predictable wireless behavior

25

Measurement-based models enable fair throughput distribution (predictably)

ratul | kaist | june '09

0 4 8 12 160

0.10.20.30.40.50.60.70.80.9

1

Model based opt.Default

Number of flows

Jain

fairn

ess i

ndex

0 4 8 12 160

0.10.20.30.40.50.60.70.80.9

1

Model based opt.Default

Number of flowsJa

in fa

irnes

s ind

ex

UDP TCP

Page 26: Measurement-based models enable predictable wireless behavior

26

Measurement-based models boost network throughput (predictably)

ratul | kaist | june '09

UDP TCP

0 4 8 12 160

1

2

3

4

5

6Model based opt.Default

Number of flows

Thro

ughp

ut (M

bps)

0 4 8 12 160

1

2

3

4

5

6Model based opt.Default

Number of flowsTh

roug

hput

(Mbp

s)

Page 27: Measurement-based models enable predictable wireless behavior

27

Future work: Making it real

Online measurement of RF profile

Decentralized computation of source rates

Joint optimization of routing and source rates

ratul | kaist | june '09

Page 28: Measurement-based models enable predictable wireless behavior

28

Conclusions

Wireless behavior is unpredictable • Complex RF propagation• Interactions between MAC, traffic, and interference

Measurement-based models: a new approach to obtain predictable behavior• Measure the RF profile and model the rest

Promising results in our experiments on real test beds• Enables predictable optimization

ratul | kaist | june '09