Accuracy Enhancements of the 802.11 Model and EDCA QoS Extensions in ns-3
Completion Talk Timo Bingmann
Decentralized Systems and Network Services Research Group Institute of Telematics, University of Karlsruhe
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 Completion Talk Timo Bingmann Decentralized Systems and Network Services Research Group Institute of Telematics, University of Karlsruhe June 26, 2009 Roadmap 1 Thesis
Decentralized Systems and Network Services Research Group Institute of Telematics, University of Karlsruhe
802.11 Enhancements in ns-3 Timo Bingmann - 2/19 University of Karlsruhe
1 Thesis Objectives
802.11 Enhancements in ns-3 Timo Bingmann - 3/19 University of Karlsruhe
1 Thesis Objectives
802.11 Enhancements in ns-3 Timo Bingmann - 4/19 University of Karlsruhe
2 Enhancements
802.11 Enhancements in ns-3 Timo Bingmann - 5/19 University of Karlsruhe
2 Enhancements 2.1 Propagation Loss Models
ns-2 Nakagami (defaults) 500 1000 1500 2000 2500 Distance (m)
rxPower (dBm) 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 Probability
ThreeLogDistance + Nakagami (default m = 0.75) ThreeLogDistance 500 1000 1500 2000 2500 Distance (m)
rxPower (dBm) 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 Probability
802.11 Enhancements in ns-3 Timo Bingmann - 6/19 University of Karlsruhe
2 Enhancements 2.2 Reception Criteria
A B distance
0.2 0.4 0.6 0.8 1 500 1000 1500 2000 2500 Reception Probability Distance (m) FreeSpace TwoRayGround Nakagami (Log Only) Nakagami Defaults Nakagami-1 Nakagami-3 Nakagami-5
0.2 0.4 0.6 0.8 1 500 1000 1500 2000 2500 Reception probability Distance (m) Friis LogDistance (defaults) LogDistance (exponent = 2.2) ThreeLogDistance (defaults) ThreeLogDistance + Nakagami (defaults) ThreeLogDistance + Nakagami (m = 1.0) ThreeLogDistance + Nakagami (m = 3.0) ThreeLogDistance + Nakagami (m = 5.0)
802.11 Enhancements in ns-3 Timo Bingmann - 7/19 University of Karlsruhe
2 Enhancements 2.2 Reception Criteria
10−6 10−5 10−4 10−3 10−2 10−1 100 5 10 15 20 25 Probability of packet error Pper SINR per bit γb (dB) 6 Mb/s 9 Mb/s 12 Mb/s 18 Mb/s 24 Mb/s 36 Mb/s 48 Mb/s 54 Mb/s
0.2 0.4 0.6 0.8 1 500 1000 1500 2000 2500 Reception probability Distance (m) Ns2Ext at 6 or 9 Mb/s Yans at 6 Mb/s Yans at 9 Mb/s Ns2Ext at 12 or 18 Mb/s Yans at 12 Mb/s Yans at 18 Mb/s Ns2Ext at 24 or 36 Mb/s Yans at 24 Mb/s Yans at 36 Mb/s Ns2Ext at 48 or 54 Mb/s Yans at 48 Mb/s Yans at 54 Mb/s
802.11 Enhancements in ns-3 Timo Bingmann - 8/19 University of Karlsruhe
2 Enhancements 2.3 Frame Capture Effect
A B C fixed varying Time B A ∆t
50 100 150 200 250 300 350 400 450 500 500 1000 1500 2000 2500 Packet delay ∆t (µs) Distance between nodes C and A (m) Impossible due to CSMA/CA Received
50 100 150 200 250 300 350 400 450 500 500 1000 1500 2000 2500 Packet delay ∆t (µs) Distance between nodes C and A (m) Impossible due to CSMA/CA Received always Received with preamble capture Received with data capture
802.11 Enhancements in ns-3 Timo Bingmann - 9/19 University of Karlsruhe
2 Enhancements 2.3 Frame Capture Effect
A B C fixed varying Time B A ∆t
50 100 150 200 250 300 350 400 450 500 500 1000 1500 2000 2500 Packet delay ∆t (µs) Distance between nodes C and A (m) Impossible due to CSMA/CA Received
400 800 1200 1600 Distance between nodes C and A (m) 100 200 300 400 500 Packet delay ∆t (µs) 0.2 0.4 0.6 0.8 1
802.11 Enhancements in ns-3 Timo Bingmann - 9/19 University of Karlsruhe
2 Enhancements 2.4 EDCA Implementation
802.11 Enhancements in ns-3 Timo Bingmann - 10/19 University of Karlsruhe
2 Enhancements 2.4 EDCA Implementation
SIFS: Time SlotTime: Time
AIFSN: int Backoff: int AIFSN: int Backoff: int AIFSN: int Backoff: int AIFSN: int Backoff: int AC: int
CCA BUSY
NAV
802.11 Enhancements in ns-3 Timo Bingmann - 11/19 University of Karlsruhe
2 Enhancements 2.4 EDCA Implementation
DATA
AIFS CW
DATA
AIFS CW
Frame
Time
DATA
SIFS ACK AIFS CW
Frame
Time
With ACK
DATA
SIFS DATA AIFS CW
Frame ≤ TXOPLimit Superframe DATA
SIFS
DATA
SIFS Time
TXOP burst without ACKs
DATA
SIFS ACK AIFS CW
DATA
SIFS ACK SIFS
DATA
SIFS ACK SIFS
Superframe Frame ≤ TXOPLimit
Time
TXOP burst with ACKs
802.11 Enhancements in ns-3 Timo Bingmann - 12/19 University of Karlsruhe
2 Enhancements 2.4 EDCA Implementation
802.11p/D4.02
802.11p/D4.02
802.11 Enhancements in ns-3 Timo Bingmann - 13/19 University of Karlsruhe
2 Enhancements 2.4 EDCA Implementation
0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 5 10 15 20 25 30 Payload rate received at listener (Mb/s) Number of sending nodes AC VO AC VI AC BE AC BK
0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 5 10 15 20 25 30 Payload rate received at listener (Mb/s) Number of sending nodes AC VO AC VI AC BE AC BK
802.11 Enhancements in ns-3 Timo Bingmann - 14/19 University of Karlsruhe
3 Speed Comparison
802.11 Enhancements in ns-3 Timo Bingmann - 15/19 University of Karlsruhe
3 Speed Comparison
10 20 30 40 50 60 70 80 20 40 60 80 100 120 Packets sent (in thousands) Number of nodes 1 2 3 4 5 6 20 40 60 80 100 120 Packets received (in millions) Number of nodes
ns-2 unoptimized ns-2 optimized ns-2 icc optimized ns-3 debug ns-3 optimized ns-3 optimized static ns-3 icc optimized ns-3 icc optimized static ns-3 32-bit optimized ns-3 32-bit optimized static ns-2 nakagami optimized ns-3 nakagami optimized static
802.11 Enhancements in ns-3 Timo Bingmann - 16/19 University of Karlsruhe
3 Speed Comparison
50 100 150 200 250 300 350 20 40 60 80 100 120 Simulation run time (seconds) Number of nodes
ns-2 unoptimized ns-2 optimized ns-2 icc optimized ns-3 debug ns-3 optimized ns-3 optimized static ns-3 icc optimized ns-3 icc optimized static ns-3 32-bit optimized ns-3 32-bit optimized static ns-2 nakagami optimized ns-3 nakagami optimized static
802.11 Enhancements in ns-3 Timo Bingmann - 17/19 University of Karlsruhe
3 Speed Comparison
802.11 Enhancements in ns-3 Timo Bingmann - 18/19 University of Karlsruhe
4 Conclusion
802.11 Enhancements in ns-3 Timo Bingmann - 19/19 University of Karlsruhe
5 Enlarged Plots and Figures
802.11 Enhancements in ns-3 Timo Bingmann - 20/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.1 Propagation Loss Models
Object WifiChannel PropagationLossModel
CalcRxPower(txPowerDbm: double, a: Ptr<MobilityModel>, b: Ptr<MobilityModel>): double SetNext(next: Ptr<PropagationLossModel>): void DoCalcRxPower(txPowerDbm: double, a: Ptr<MobilityModel>, b: Ptr<MobilityModel>): double
FriisPropagationLossModel
m_lambda: double m_systemLoss: double DoCalcRxPower(txPowerDbm: double, a: Ptr<MobilityModel>, b: Ptr<MobilityModel>): double
RandomPropagationLossModel
m_variable: RandomVariable DoCalcRxPower(txPowerDbm: double, a: Ptr<MobilityModel>, b: Ptr<MobilityModel>): double
ThreeLogDistancePropagationLossModel
m_distance0: double m_distance1: double m_distance2: double m_exponent0: double m_exponent1: double m_exponent2: double m_referenceLoss: double DoCalcRxPower(txPowerDbm: double, a: Ptr<MobilityModel>, b: Ptr<MobilityModel>): double
NakagamiPropagationLossModel
m_distance1: double m_distance2: double m_m0: double m_m1: double m_m2: double m_erlangRandomVariable: ErlangVariable m_gammaRandomVariable: GammaVariable DoCalcRxPower(txPowerDbm: double, a: Ptr<MobilityModel>, b: Ptr<MobilityModel>): double m_next 802.11 Enhancements in ns-3 Timo Bingmann - 21/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.1 Propagation Loss Models
ns-2 Nakagami (defaults) 500 1000 1500 2000 2500 Distance (m)
rxPower (dBm) 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 Probability
802.11 Enhancements in ns-3 Timo Bingmann - 22/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.1 Propagation Loss Models
Nakagami (default m = 0.75) 500 1000 1500 2000 2500 Distance (m)
10 20 30 40 rxPower (dBm) 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 Probability
802.11 Enhancements in ns-3 Timo Bingmann - 23/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.1 Propagation Loss Models
ThreeLogDistance + Nakagami (default m = 0.75) ThreeLogDistance 500 1000 1500 2000 2500 Distance (m)
rxPower (dBm) 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 Probability
802.11 Enhancements in ns-3 Timo Bingmann - 24/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.2 Reception Criteria
10−6 10−5 10−4 10−3 10−2 10−1 100 5 10 15 20 25 Probability of packet error Pper SINR per bit γb (dB) 6 Mb/s 9 Mb/s 12 Mb/s 18 Mb/s 24 Mb/s 36 Mb/s 48 Mb/s 54 Mb/s
802.11 Enhancements in ns-3 Timo Bingmann - 25/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.2 Reception Criteria
A B distance
802.11 Enhancements in ns-3 Timo Bingmann - 26/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.2 Reception Criteria
0.2 0.4 0.6 0.8 1 500 1000 1500 2000 2500 Reception Probability Distance (m) FreeSpace TwoRayGround Nakagami (Log Only) Nakagami Defaults Nakagami-1 Nakagami-3 Nakagami-5
802.11 Enhancements in ns-3 Timo Bingmann - 27/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.2 Reception Criteria
0.2 0.4 0.6 0.8 1 500 1000 1500 2000 2500 Reception probability Distance (m) Friis LogDistance (defaults) LogDistance (exponent = 2.2) ThreeLogDistance (defaults) ThreeLogDistance + Nakagami (defaults) ThreeLogDistance + Nakagami (m = 1.0) ThreeLogDistance + Nakagami (m = 3.0) ThreeLogDistance + Nakagami (m = 5.0)
802.11 Enhancements in ns-3 Timo Bingmann - 28/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.2 Reception Criteria
0.2 0.4 0.6 0.8 1 500 1000 1500 2000 2500 Reception probability Distance (m) Ns2Ext at 6 or 9 Mb/s Yans at 6 Mb/s Yans at 9 Mb/s Ns2Ext at 12 or 18 Mb/s Yans at 12 Mb/s Yans at 18 Mb/s Ns2Ext at 24 or 36 Mb/s Yans at 24 Mb/s Yans at 36 Mb/s Ns2Ext at 48 or 54 Mb/s Yans at 48 Mb/s Yans at 54 Mb/s
802.11 Enhancements in ns-3 Timo Bingmann - 29/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.2 Reception Criteria
0.2 0.4 0.6 0.8 1 200 400 600 800 1000 1200 1400 Reception probability Distance (m) Ns2Ext at 6 or 9 Mb/s Yans at 6 Mb/s Yans at 9 Mb/s Ns2Ext at 12 or 18 Mb/s Yans at 12 Mb/s Yans at 18 Mb/s Ns2Ext at 24 or 36 Mb/s Yans at 24 Mb/s Yans at 36 Mb/s Ns2Ext at 48 or 54 Mb/s Yans at 48 Mb/s Yans at 54 Mb/s
802.11 Enhancements in ns-3 Timo Bingmann - 30/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.2 Reception Criteria
0.2 0.4 0.6 0.8 1 200 400 600 800 1000 1200 1400 Reception probability Distance (m) Ns2Ext at 6 or 9 Mb/s Yans at 6 Mb/s Yans at 9 Mb/s Ns2Ext at 12 or 18 Mb/s Yans at 12 Mb/s Yans at 18 Mb/s Ns2Ext at 24 or 36 Mb/s Yans at 24 Mb/s Yans at 36 Mb/s Ns2Ext at 48 or 54 Mb/s Yans at 48 Mb/s Yans at 54 Mb/s
802.11 Enhancements in ns-3 Timo Bingmann - 31/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.3 Frame Capture Effect
A B C fixed varying Time B A ∆t
802.11 Enhancements in ns-3 Timo Bingmann - 32/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.3 Frame Capture Effect
50 100 150 200 250 300 350 400 450 500 500 1000 1500 2000 2500 Packet delay ∆t (µs) Distance between nodes C and A (m) Impossible due to CSMA/CA Received
802.11 Enhancements in ns-3 Timo Bingmann - 33/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.3 Frame Capture Effect
50 100 150 200 250 300 350 400 450 500 500 1000 1500 2000 2500 Packet delay ∆t (µs) Distance between nodes C and A (m) Impossible due to CSMA/CA Received always Received with preamble capture Received with data capture
802.11 Enhancements in ns-3 Timo Bingmann - 34/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.3 Frame Capture Effect
400 800 1200 1600 Distance between nodes C and A (m) 100 200 300 400 500 Packet delay ∆t (µs) 0.2 0.4 0.6 0.8 1
802.11 Enhancements in ns-3 Timo Bingmann - 35/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.4 EDCA Implementation
802.11p/D4.02
802.11p/D4.02
802.11 Enhancements in ns-3 Timo Bingmann - 36/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.4 EDCA Implementation
0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 5 10 15 20 25 30 Payload rate received at listener (Mb/s) Number of sending nodes AC VO AC VI AC BE AC BK
802.11 Enhancements in ns-3 Timo Bingmann - 37/19 University of Karlsruhe
5 Enlarged Plots and Figures 5.4 EDCA Implementation
0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 5 10 15 20 25 30 Payload rate received at listener (Mb/s) Number of sending nodes AC VO AC VI AC BE AC BK
802.11 Enhancements in ns-3 Timo Bingmann - 38/19 University of Karlsruhe