Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

29
Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009

Transcript of Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

Page 1: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

Modeling and Throughput Analysis for SMAC

Ou Yang4-29-2009

Page 2: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

2

Outline

Motivation and Background Methodology

- 1-D Markov Model for SMAC without retx- 2-D Markov Model for SMAC with retx

Throughput Analysis- 1-D Markov Model for SMAC without retx- 2-D Markov Model for SMAC with retx

Model Validation Conclusions

Page 3: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

3

Motivation

Good to know the performance of SMAC- sleep at MAC layer or not?- which duty cycle should be chosen?

No analytical model for SMAC- quantitative estimation of throughput- throughput under different scenarios

Page 4: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

4

Background – SMAC Protocol Duty-cycled MAC to reduce idle listening

- fixed active period in a cycle

- variable sleep period in a cycle

- duty cycle = active period / cycle length

Page 5: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

5

Background – SMAC Protocol

Synchronization- SYNC pkt carries sleep-awake schedule- broadcast SYNC pkt

Medium access- RTS/CTS/DATA/ACK- carrier sensing ( virtual + physical )- fixed contention window size

Page 6: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

6

Background – SMAC Protocol

Reasons of packet loss (ideal channel)- SMAC without retx: RTS failed- SMAC with retx: retx over limit- queue overflow

Page 7: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

7

Methodology Assumptions

- packet arrive independently- finite FIFO queue at each node- channel is ideal

no hidden terminalsno capture effectsno channel fading

Page 8: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

8

Methodology 1-D Markov Model for SMAC without retx

0 pkts in the queue1 pkts in the queue2 pkts in the queue Maximum Q pkts in the queue

Page 9: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

9

Methodology

1-D Markov Model for SMAC without retx

Page 10: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

10

Methodology

Example of the 1-D Markov Model

00,0 AP

0 1 2

11,0 AP 22,0 AP

00,1 ApP 011,1 )1( ApApP 122,1 )1( ApApP

00,2 P 01,2 ApP 012,2 )1( ApApP

cycle ain arrivalspkt ofy probabilit theis iAi

cycle ain arrivalspkt than less no ofy probabilit theis iA i

contention the winningofy probabilit theis p

Transition Matrix P

known

unknown

Page 11: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

11

Methodology 2-D Markov Model

for SMAC with retx

Retx stage 0

Retx stage 1

Retx stage R

1 pkt in the queue Q pkts in the queue

Page 12: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

12

Methodology Example of the 2-D Markov Model

0)00,00( AP

0,0 0,1 0,2

1,1 1,2

2,1 2,21)01,00( AP 2)02,00( AP

0)00,01( ApP s 01)01,01( )1( ApApP s 12)02,01( )1( ApApP s

0)01,02( ApP s 01)02,02( )1( ApApP s

0)11,01( ApP f 1)12,01( ApP f

0)12,02( ApP f

0,0

0,1

0,2

cycle ain arrivalspkt ofy probabilit theis iAi

cycle ain arrivalspkt than less no ofy probabilit theis iA i

packetDATA a y txingsucessfull ofy probabilit theis sp

packetDATA a of failure tx ofy probabilit theis fp

fs pppp ,contention the winningofy probabilit theis

Page 13: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

13

Methodology

Example of the 2-D Markov Model

1)22,11( ApP f

0,0 0,1 0,2

1,1 1,2

2,1 2,2

0)00,11( ApP s 1)01,11( ApP s 2)02,11( ApP s

0)11,11( )1( ApP 1)12,11( )1( ApP

0)21,11( ApP f

1,1

1,2

0)22,11( ApP f

0)01,12( ApP s 1)02,12( ApP s

0)12,12( )1( ApP

Page 14: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

14

Methodology Example of the

2-D Markov Model

0,0 0,1 0,2

1,1 1,2

2,1 2,22,1

1)22,21( )1( ApP

0)00,21( ApP 1)01,21( ApP 2)02,21( ApP

0)21,21( )1( ApP

2,2

0)22,22( )1( ApP

0)01,22( ApP 1)02,22( ApP

Page 15: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

15

Throughput Analysis

Definition of throughput

cycle a oflength theis

sizepacket DATA layer MAC the theis

packetDATA a ly txingsuccessful ofy probabilit theis

state queueempty theofy probabilit stationary theis

odneighborho in the nodes ofnumber theis

/)1(

T

S

p

N

TSpNTHR

s

emptyQ

semptyQsys

Solve

2 variables!

Page 16: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

16

Throughput Analysis – 1-D Markov Model

According to the Markov Model- stationary distribution: - is the only unknown variable in- curve

Assume each node behaves independently- prob. of to contend the media in a cycle- randomly select a backoff window in [0,W-1] - curve

P

)(0 pfemptyQ p P

01

)( 0gp

Page 17: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

17

Throughput Analysis – 1-D Markov Model

0

p

Page 18: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

18

Throughput Analysis – 1-D Markov Model

Intersections of and-- is obtained

To solve similar to Assume each node behaves independently

- prob. of to contend the media in a cycle- randomly select a backoff window in [0,W-1]--

)(0 pf),( 0

p)( 0gp

0

sp )( 0gp

)( 0hp s

01

)( 0 hp s

Page 19: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

19

Throughput Analysis – 2-D Markov Model

According to the Markov Model- stationary distribution: - and are unknown variables in- surface

Assume each node behaves independently- prob. of to contend the media in a cycle- randomly select a backoff window in [0,W-1] - curve

P

),()0,0( fsemptyQ ppFsp P

)0,0(1

)())()(),((),( )0,0()0,0()0,0()0,0( Hhghpp fs

fp

Page 20: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

20

Throughput Analysis – 2-D Markov Model

),,( )0,0( fs pp

is obtained!

Page 21: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

21

Model Validation Varying the number of nodes

Page 22: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

22

Model Validation Varying the queue capacity

Page 23: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

23

Model Validation Varying the contention window size

Page 24: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

24

Model Validation Varying the data arrival rate

Page 25: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

25

Discussions

Effects of retransmissions- not obvious difference in throughput- extra traffic at the head of the queue

Reasons- saturation: no improvement- far from saturation: trivial improvement- close to saturation: some improvement

Page 26: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

26

Conclusion

1-D Markov Model to describe the behavior of SMAC without retx

2-D Markov Model to describe the behavior of SMAC with retx

Models well estimate the throughput of SMAC Application

- estimate throughput- optimize the parameters of SMAC- trade off throughput and lifetime

Page 27: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

27

Thank you

Q & A

Page 28: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

28

Methodology

Example of the 1-D Markov Model

00,0 AP

0 1 2

11,0 AP 22,0 AP

00,1 ApP 011,1 )1( ApApP 122,1 )1( ApApP

00,2 P 01,2 ApP 012,2 )1( ApApP

cycle ain arrivalspkt ofy probabilit theis iAi

cycle ain arrivalspkt than less no ofy probabilit theis iA i

contention the winningofy probabilit theis p

Transition Matrix P

known

unknown

Page 29: Modeling and Throughput Analysis for SMAC Ou Yang 4-29-2009.

29

Background – Markov Model Markov model of IEEE 802.11