Accuracy Enhancements of the 802.11 Model and EDCA QoS Extensions in - - PowerPoint PPT Presentation

accuracy enhancements of the 802 11 model and edca qos
SMART_READER_LITE
LIVE PREVIEW

Accuracy Enhancements of the 802.11 Model and EDCA QoS Extensions in - - PowerPoint PPT Presentation

Accuracy Enhancements of the 802.11 Model and EDCA QoS Extensions in ns-3 Timo Bingmann Decentralized Systems and Network Services Research Group Institute of Telematics, University of Karlsruhe February 6, 2009 Roadmap 1 ns-3 Basics


slide-1
SLIDE 1

Accuracy Enhancements of the 802.11 Model and EDCA QoS Extensions in ns-3

Timo Bingmann

Decentralized Systems and Network Services Research Group Institute of Telematics, University of Karlsruhe

February 6, 2009

slide-2
SLIDE 2

Roadmap

1 ns-3 Basics

Introduction Showcase: Design Patterns Current State

2 Wifi in ns-3

State of 802.11 PHY Layer Signals, Noise and Interference Short Recapitulation of DCF QoS with EDCA

3 Conclusion

slide-3
SLIDE 3

1 ns-3 Basics 1.1 Introduction

ns-3 Introduction

ns-3 is a discrete-event network simulator. intended to replace ns-2. not backwards compatible to ns-2.

802.11 Enhancements in ns-3 Timo Bingmann - 3/44 University of Karlsruhe

slide-4
SLIDE 4

1 ns-3 Basics 1.1 Introduction

ns-3 Introduction

ns-3 Goals Create tools aligned with needs of modern networking research. Work as open-source project with active community participation. Improve repeatability of results in research papers.

802.11 Enhancements in ns-3 Timo Bingmann - 4/44 University of Karlsruhe

slide-5
SLIDE 5

1 ns-3 Basics 1.1 Introduction

ns-3 and ns-2

ns-3 is not based on ns-2: drop ns-2’s historic burdens. ns-3 is fully C++ . Leverage up-to-date features of C++ . Create optional language bindings like Python for interpreter frontends.

802.11 Enhancements in ns-3 Timo Bingmann - 5/44 University of Karlsruhe

slide-6
SLIDE 6

1 ns-3 Basics 1.2 Showcase: Design Patterns

Design Patterns

Utilize modern design patterns in C++ : Object and attribute system. Smart Ptr<> automatic memory management. Callbacks to decouple modules. COM-like object aggregation and interface querying. Decouple trace sources from sinks. Requires advanced C++ knowledge.

802.11 Enhancements in ns-3 Timo Bingmann - 6/44 University of Karlsruhe

slide-7
SLIDE 7

1 ns-3 Basics 1.2 Showcase: Design Patterns

Design Pattern: Tracing

Tracing needs vary greatly in different simulations. ns-2:

Send Trace Recv

Trace objects inserted as network elements. Fixed trace file format for further statistical processing. Not easily customizable to own experiment. Also available: queue monitors.

802.11 Enhancements in ns-3 Timo Bingmann - 7/44 University of Karlsruhe

slide-8
SLIDE 8

1 ns-3 Basics 1.2 Showcase: Design Patterns

Design Pattern: Tracing

ns-3:

Callback TraceSink pcap Writer TraceSource

Models export TraceSources.

Examples: Node packet reception, 802.11 PHY state changes, TCP congestion window values.

TraceSources can be connected to own callback functions

  • r to predefined trace files generators for
  • utput in pcap/tcpdump format or ascii text.

802.11 Enhancements in ns-3 Timo Bingmann - 8/44 University of Karlsruhe

slide-9
SLIDE 9

1 ns-3 Basics 1.3 Current State

Existing core ns-2 models Existing ns-3 Applications ping, vat, telnet, FTP, HTTP, probabilistic and trace-driven traffic generators, webcache OnOffApplication, asynchronous socket API, packet sockets Transport layer TCP (many variants), UDP, SCTP, XCP, TFRC, RAP Multicast: PGM, SRM, RLM UDP, TCP Network layer Unicast: IP, MobileIP, generic distance vector and link state, IPinIP, source routing MANET: AODV, DSR, DSDV, TORA, IMEP Unicast: IPv4, global static routing Multicast: static routing MANET: OLSR Link layer ARP, HDLC, GAF, MPLS, LDP, Diffserv MACs: CSMA, 802.11b, 802.15.4 (WPAN), satellite Aloha. PointToPoint, CSMA, 802.11 MAC low, high and rate control algorithms Physical layer TwoWayGround, Shadowing, OmniAntennas, EnergyModel, Satellite Repeater 802.11a, Friis propagation loss, log distance loss, basic wired (loss, delay) Core Support RNGs, tracing monitors, mathematical support, test suite, animation (nam) RNGs, unit tests, logging, callbacks, mobility visualizer

slide-10
SLIDE 10

1 ns-3 Basics 1.3 Current State

SLOC of ns-2.33 and ns-3.3

ns-2.33 C/C++ 162,208 58% Tcl 103,419 37% Other 13,341 5% Total 278,968 ns-3.3 C/C++ 77,270 96% Python1 2,906 4% Other 58 0% Total 80,234

1 excludes automatically generated code

Statistics generated using David A. Wheeler’s ’SLOCCount’.

802.11 Enhancements in ns-3 Timo Bingmann - 10/44 University of Karlsruhe

slide-11
SLIDE 11

1 ns-3 Basics 1.3 Current State

SLOC of ns-2.33 and ns-3.3

ns-2.33 C/C++ 162,208 58% Tcl 103,419 37% Other 13,341 5% Total 278,968 802.11 6,067 2% ns-3.3 C/C++ 77,270 96% Python1 2,906 4% Other 58 0% Total 80,234 802.11 13,573 17%

1 excludes automatically generated code

Statistics generated using David A. Wheeler’s ’SLOCCount’.

802.11 Enhancements in ns-3 Timo Bingmann - 10/44 University of Karlsruhe

slide-12
SLIDE 12

2 Wifi in ns-3 2.1 State of 802.11

UML of ns-2’s Wifi Classes

802.11 Enhancements in ns-3 Timo Bingmann - 11/44 University of Karlsruhe

slide-13
SLIDE 13

2 Wifi in ns-3 2.1 State of 802.11

UML of ns-3’s Wifi Classes

802.11 Enhancements in ns-3 Timo Bingmann - 12/44 University of Karlsruhe

slide-14
SLIDE 14

2 Wifi in ns-3 2.1 State of 802.11

Thesis Goals

Goals ns-3 wireless simulations give equal or accountably different results like equivalent ns-2 simulations. Extend ns-3 with EDCA for 802.11e QoS.

802.11 Enhancements in ns-3 Timo Bingmann - 13/44 University of Karlsruhe

slide-15
SLIDE 15

2 Wifi in ns-3 2.1 State of 802.11

Modelling 802.11 in ns-3

Medium WifiChannel PropagationLossModel PHY WifiPhy InterferenceHelper ErrorRateModel MAC MacHigh DcaTxop Queue DcfManager StationManager MacRxMiddle MacLow

802.11 Enhancements in ns-3 Timo Bingmann - 14/44 University of Karlsruhe

slide-16
SLIDE 16

2 Wifi in ns-3 2.2 PHY Layer

State of 802.11 in ns-3

PHY layer: − Currently only 802.11a rates supported. − No simulation of capture effect. − No Nakagami propagation loss model. + BER/PER reception criterion.

802.11 Enhancements in ns-3 Timo Bingmann - 15/44 University of Karlsruhe

slide-17
SLIDE 17

2 Wifi in ns-3 2.2 PHY Layer

PHY Layer

Goal: compatibility with ns-2 WirelessPhyExt. Required components PowerMonitor for cumulative noise SINR reception criterion Capture effect Nakagami propagation loss model

802.11 Enhancements in ns-3 Timo Bingmann - 16/44 University of Karlsruhe

slide-18
SLIDE 18

2 Wifi in ns-3 2.3 Signals, Noise and Interference

Signals, Noise and Interference

Time Power Power Time

802.11 Enhancements in ns-3 Timo Bingmann - 17/44 University of Karlsruhe

slide-19
SLIDE 19

2 Wifi in ns-3 2.3 Signals, Noise and Interference

Signals, Noise and Interference

Time Power Time Power

802.11 Enhancements in ns-3 Timo Bingmann - 18/44 University of Karlsruhe

slide-20
SLIDE 20

2 Wifi in ns-3 2.3 Signals, Noise and Interference

Signals, Noise and Interference

Time Power (dBm)

  • 100
  • 80

+

  • 90

Time Power (dBm)

  • 100

Power (dBm)

  • 100
  • 90
  • 80

Time

802.11 Enhancements in ns-3 Timo Bingmann - 19/44 University of Karlsruhe

slide-21
SLIDE 21

2 Wifi in ns-3 2.3 Signals, Noise and Interference

Signals, Noise and Interference

Power (dBm)

  • 100
  • 90
  • 80

Time

10 20

  • 10

Time SINR (dB) SINR=

Signal Noise + Interference

802.11 Enhancements in ns-3 Timo Bingmann - 20/44 University of Karlsruhe

slide-22
SLIDE 22

2 Wifi in ns-3 2.3 Signals, Noise and Interference

SINR Threshold

Time

20 10

SINR (dB)

802.11 Enhancements in ns-3 Timo Bingmann - 21/44 University of Karlsruhe

slide-23
SLIDE 23

2 Wifi in ns-3 2.3 Signals, Noise and Interference

SINR Threshold

PAYLOAD Time

20 10

H SINR (dB)

BPSK 5dB QAM-16 15dB QPSK 8dB QAM-64 25dB

802.11 Enhancements in ns-3 Timo Bingmann - 21/44 University of Karlsruhe

slide-24
SLIDE 24

2 Wifi in ns-3 2.3 Signals, Noise and Interference

BER/PER Criterion

PAYLOAD Time SINR (dB)

20 10

H t0 t1 t2 t3 tn

BERBPSK

Eb

N0

  • = Q

 

  • 2Eb

N0

 

802.11 Enhancements in ns-3 Timo Bingmann - 22/44 University of Karlsruhe

slide-25
SLIDE 25

2 Wifi in ns-3 2.3 Signals, Noise and Interference

Capture Effect

  • 90

Time Power (dBm)

  • 100

+

Time Power (dBm)

  • 100
  • 80

Power (dBm)

  • 100
  • 90
  • 80

Time

802.11 Enhancements in ns-3 Timo Bingmann - 23/44 University of Karlsruhe

slide-26
SLIDE 26

2 Wifi in ns-3 2.3 Signals, Noise and Interference

Capture Effect

Power (dBm)

  • 100
  • 90
  • 80

Time

10 20

  • 10

SINR (dB) Time

802.11 Enhancements in ns-3 Timo Bingmann - 24/44 University of Karlsruhe

slide-27
SLIDE 27

2 Wifi in ns-3 2.3 Signals, Noise and Interference

Without Capture Effect

10 20

  • 10

SINR (dB) Time IDLE RX BUSY IDLE Receiver RxError

802.11 Enhancements in ns-3 Timo Bingmann - 25/44 University of Karlsruhe

slide-28
SLIDE 28

2 Wifi in ns-3 2.3 Signals, Noise and Interference

With Capture Effect

10 20

  • 10

SINR (dB) Time IDLE RX IDLE Receiver RxError RxOk RX

802.11 Enhancements in ns-3 Timo Bingmann - 26/44 University of Karlsruhe

slide-29
SLIDE 29

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

Thesis Goals

Goals ns-3 wireless simulations give equal or accountably different results like equivalent ns-2 simulations. Extend ns-3 with EDCA for 802.11e QoS.

802.11 Enhancements in ns-3 Timo Bingmann - 27/44 University of Karlsruhe

slide-30
SLIDE 30

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

Modelling 802.11 in ns-3

Medium WifiChannel PropagationLossModel PHY WifiPhy InterferenceHelper ErrorRateModel MAC MacHigh DcaTxop Queue DcfManager StationManager MacRxMiddle MacLow

802.11 Enhancements in ns-3 Timo Bingmann - 28/44 University of Karlsruhe

slide-31
SLIDE 31

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

Short Recapitulation of DCF

Radio transmission using CSMA/CA: Carrier sense multiple access with collision avoidance 802.11 has two carrier sense mechansims: physical - CCA_BUSY virtual - NAV (network allocation vector)

802.11 Enhancements in ns-3 Timo Bingmann - 29/44 University of Karlsruhe

slide-32
SLIDE 32

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

Physical Carrier Sense

Stations always listen to the radio channel. CCA_BUSY indication is raised if radio energy level is above a CS threshold.

802.11 Enhancements in ns-3 Timo Bingmann - 30/44 University of Karlsruhe

slide-33
SLIDE 33

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

Virtual Carrier Sense

Stations hear and decode all packet headers on the radio channel. Header contains a duration field. Reserves channel for time after packet by updating NAV.

Time

802.11 Enhancements in ns-3 Timo Bingmann - 31/44 University of Karlsruhe

slide-34
SLIDE 34

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

RTS/CTS using NAV

A

SIFS

DATA B

SIFS SIFS

ACK CTS NAV (RTS) NAV(CTS) RTS Other

802.11 Enhancements in ns-3 Timo Bingmann - 32/44 University of Karlsruhe

slide-35
SLIDE 35

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

RTS/CTS using NAV

A

SIFS

DATA B

SIFS SIFS

ACK CTS NAV (RTS) NAV(CTS) RTS Other ?

802.11 Enhancements in ns-3 Timo Bingmann - 32/44 University of Karlsruhe

slide-36
SLIDE 36

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

IFS - Interframe Spaces

Short IFS for direct answers to frame sequences. PCF IFS for Point Coordination Function Extended IFS for error backoff. Arbitration IFS for QoS. SIFS PIFS DIFS EIFS Coordination Function DCF IFS for Distributed AIFS[i] BUSY

802.11 Enhancements in ns-3 Timo Bingmann - 33/44 University of Karlsruhe

slide-37
SLIDE 37

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

Backoff Procedure

DIFS backoff=8 backoff=5 backoff=9

802.11 Enhancements in ns-3 Timo Bingmann - 34/44 University of Karlsruhe

slide-38
SLIDE 38

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

Backoff Procedure

DIFS backoff=8 DIFS backoff=5 backoff=9 backoff=4

802.11 Enhancements in ns-3 Timo Bingmann - 34/44 University of Karlsruhe

slide-39
SLIDE 39

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

Backoff Procedure

DIFS backoff=8 DIFS backoff=5 backoff=9 backoff=4

802.11 Enhancements in ns-3 Timo Bingmann - 34/44 University of Karlsruhe

slide-40
SLIDE 40

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

Backoff Procedure

DIFS

  • ff=8

DIFS

  • ff=5

backoff=9 backoff=4

802.11 Enhancements in ns-3 Timo Bingmann - 34/44 University of Karlsruhe

slide-41
SLIDE 41

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

Backoff Procedure

  • ff=8
  • ff=5

DIFS backoff=9 backoff=4 DIFS DIFS

802.11 Enhancements in ns-3 Timo Bingmann - 34/44 University of Karlsruhe

slide-42
SLIDE 42

2 Wifi in ns-3 2.4 Short Recapitulation of DCF

Contention Window

.. DIFS ......... ......... [0..15] [0..31] Initial attempt 1st retransmission 2nd retransmission aSlotTime = 9µs (802.11a) [0..63] Backoff is uniform random integer from [0. . .CW].

802.11 Enhancements in ns-3 Timo Bingmann - 35/44 University of Karlsruhe

slide-43
SLIDE 43

2 Wifi in ns-3 2.5 QoS with EDCA

Problems of DCF for QoS

DCF is not good for time-critical traffic: Any STA may transmit arbitrarily large frames. All traffic stored in one queue. PCF does not handles these issues: Contention-free period may be delayed.

802.11 Enhancements in ns-3 Timo Bingmann - 36/44 University of Karlsruhe

slide-44
SLIDE 44

2 Wifi in ns-3 2.5 QoS with EDCA

EDCA Access Categories

AC_VI AIFS[VI] CW[VI] AC_BE AIFS[BE] CW[BE] AC_VO AIFS[VO] CW[VO] Internal Collision Resolution Transmit AIFS[BK] AC_BK CW[BK]

802.11 Enhancements in ns-3 Timo Bingmann - 37/44 University of Karlsruhe

slide-45
SLIDE 45

2 Wifi in ns-3 2.5 QoS with EDCA

Default EDCA Parameters

802.11p (Draft 4.02)

VO VI BE BK DFS CWmin 3 3 7 15 15 CWmax 7 7 15 1023 1023 AIFSN 2 3 6 9 2 AIFS 34µs 43µs 70µs 97µs 34µs

802.11 Enhancements in ns-3 Timo Bingmann - 38/44 University of Karlsruhe

slide-46
SLIDE 46

2 Wifi in ns-3 2.5 QoS with EDCA

DCF Backoff Probability

SIFS

PIFS

DIFS

VO VI BE BK DCF

802.11 Enhancements in ns-3 Timo Bingmann - 39/44 University of Karlsruhe

slide-47
SLIDE 47

2 Wifi in ns-3 2.5 QoS with EDCA

Default EDCA Parameters of 802.11p

SIFS

PIFS

DIFS

VO VI BE BK DCF

802.11 Enhancements in ns-3 Timo Bingmann - 40/44 University of Karlsruhe

slide-48
SLIDE 48

3 Conclusion

Work Status

Already finished: Ported NakagamiPropagationLossModel including dependencies. Implemented Ns2ExtWifiPhy for SINR reception and capture effect.

802.11 Enhancements in ns-3 Timo Bingmann - 41/44 University of Karlsruhe

slide-49
SLIDE 49

3 Conclusion

Outlook

Further Plans: Backport capture to BER/PER model. Implement and verify 802.11e EDCA QoS. Compilation and speed improvements with icc. Theoretical discussion of parallel or distributed 802.11 simulation.

802.11 Enhancements in ns-3 Timo Bingmann - 42/44 University of Karlsruhe

slide-50
SLIDE 50

3 Conclusion

End

Thank you for your attention.

802.11 Enhancements in ns-3 Timo Bingmann - 43/44 University of Karlsruhe

slide-51
SLIDE 51

3 Conclusion

Bibliography

[1] Thomas R. Henderson, Sumit Roy, Sally Floyd, and George F. Riley. ns-3 project goals. In WNS2 ’06: Proceeding from the 2006 Workshop on ns-2: the IP network simulator, page 13, New York, NY, USA, 2006. ACM. [2] Thomas R. Henderson. ns-3 overview, December 2008. http://www.nsnam.org/docs/ns-3-overview.pdf.

802.11 Enhancements in ns-3 Timo Bingmann - 44/44 University of Karlsruhe