wireless lan simulation

10
Wireless LAN Wireless LAN Simulation Simulation - IEEE 802.11 MAC Protocol - IEEE 802.11 MAC Protocol Pavan Pant Pavan Pant Thomas Thomas Castelli Castelli

Upload: kumararguru

Post on 18-Nov-2014

105 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Wireless LAN Simulation

Wireless LAN SimulationWireless LAN Simulation- IEEE 802.11 MAC Protocol- IEEE 802.11 MAC Protocol

Pavan PantPavan Pant Thomas CastelliThomas Castelli

Page 2: Wireless LAN Simulation

4 Dec, 20024 Dec, 2002 Simulation of a Wireless LANSimulation of a Wireless LAN

OutlineOutline

• Project DescriptionProject Description

• IEEE 802.11 MAC IEEE 802.11 MAC ProtocolProtocol

• SimulationSimulation

• Performance AnalysisPerformance Analysis

Page 3: Wireless LAN Simulation

4 Dec, 20024 Dec, 2002 Simulation of a Wireless LANSimulation of a Wireless LAN

Project GoalsProject Goals

• MATLAB simulationMATLAB simulation - DCF (Distributed Coordination - DCF (Distributed Coordination Function)Function)

- No Propagation Delay- No Propagation Delay

• Performance AnalysisPerformance Analysis- - Number of NodesNumber of Nodes

- Range - Range - Packet Size- Packet Size

- RTS/CTS- RTS/CTS

Page 4: Wireless LAN Simulation

4 Dec, 20024 Dec, 2002 Simulation of a Wireless LANSimulation of a Wireless LAN

DCFDCF

• DCFDCF- - CSMA/CA is a DCF

• Salient featuresSalient features

- Medium sharing through CSMA/CA- Medium sharing through CSMA/CA

- Allows one STA to use the medium- Allows one STA to use the medium

- Random Back off interval before - Random Back off interval before retransmissionretransmission

- Refinement – RTS/CTS packets- Refinement – RTS/CTS packets

Page 5: Wireless LAN Simulation

4 Dec, 20024 Dec, 2002 Simulation of a Wireless LANSimulation of a Wireless LAN

IEEE 802.11 MAC Protocol IEEE 802.11 MAC Protocol • Also known as Also known as CSMA/CACSMA/CA

• 802.11 CSMA802.11 CSMA (no collision detection) (no collision detection)

Sender Sender

If the channel is idle for DIFS secondsIf the channel is idle for DIFS seconds

- Transmit DATA packet- Transmit DATA packet

If the channel is busy If the channel is busy

- Backoff - Backoff

Receiver Receiver

If DATA packet received If DATA packet received

- Return ACK after SIFS seconds - Return ACK after SIFS seconds

Source

DestinationDIFS

DATA

SIFSACK

Page 6: Wireless LAN Simulation

4 Dec, 20024 Dec, 2002 Simulation of a Wireless LANSimulation of a Wireless LAN

IEEE 802.11 MAC ProtocolIEEE 802.11 MAC Protocol

Source

DestinationDIFS

SIFS

RTS

CTSDATA

SIFSACK

CSMA/CA (Collision Avoidance) - RTS/CTS Implementation• Sender transmits an RTS packet

• Receiver responds with a CTS packet

• Purpose of CTS packet

- Reserves channel for sender

- Notify other stationsGoal – Avoid “Hidden Node” collisionsGoal – Avoid “Hidden Node” collisions

SIFS

Page 7: Wireless LAN Simulation

4 Dec, 20024 Dec, 2002 Simulation of a Wireless LANSimulation of a Wireless LAN

MATLAB SimulationMATLAB Simulation

• Old SimulationOld Simulation

- Implemented CSMA (No RTS/CTS)- Implemented CSMA (No RTS/CTS)

• New SimulationNew Simulation- Includes RTS/CTS exchange- Includes RTS/CTS exchange

- Simulates CSMA/CA- Simulates CSMA/CA

Page 8: Wireless LAN Simulation

4 Dec, 20024 Dec, 2002 Simulation of a Wireless LANSimulation of a Wireless LAN

AnalysisAnalysis

Page 9: Wireless LAN Simulation

4 Dec, 20024 Dec, 2002 Simulation of a Wireless LANSimulation of a Wireless LAN

Strengths/WeaknessesStrengths/Weaknesses• StrengthsStrengths

- - Fairly accurate simulation of CSMA/CAFairly accurate simulation of CSMA/CA

- Fewer packet collisions and more - Fewer packet collisions and more successfulsuccessful

transmissions evidenttransmissions evident

• Drawbacks of our simulationDrawbacks of our simulation- Cluttered simulation window - Cluttered simulation window

- Deadlocks increase with more nodes- Deadlocks increase with more nodes

Page 10: Wireless LAN Simulation

4 Dec, 20024 Dec, 2002 Simulation of a Wireless LANSimulation of a Wireless LAN

Any Questions?Any Questions?