• No results found

WAVE Media Access Control Layer

N/A
N/A
Protected

Academic year: 2021

Share "WAVE Media Access Control Layer"

Copied!
17
0
0

Loading.... (view fulltext now)

Full text

(1)

WAVE Media Access Control

Layer

(2)

WAVE Physical Layer

7.1 MAC Layer Operations

7.2 MAC Layer Amendments

(3)

MAC Layer

IEEE 802.11 defines MAC layer in DSRC

It is channel access with Carrier

Sensing Multiple Access with Collision

Avoidance (CSMA/CA)

Uses back off timer to reduce frame

collision

MAC filters out frames not meant for

(4)

CSMA/CA

802.11 sender

1 Initially: it senses channel idle

for short DIFS

(Distributed Inter-Frame Space) time

then

- transmit entire frame

2 Otherwise,

choose random backoff time, timer

counts down while channel idle and is frozen if

channel is busy.

3 When timer reaches zero (if channel is sensed

idle), transmit entire frame

sender

receiver

DIFS

data

Transmitter must sense the medium before making a decision to

send a frame

If the medium is busy transmitter waits

Transmitter only send a frame if the medium is continuously idle

for some time.

This waiting time is the sum of Distributed coordination function

InterFrame Space (DIFS) + randomly calculated back-off time

(5)

CSMA/CA

Does not require coordination among nodes

It is simple to implement

Offers good performance over moderately

loaded channels

IEEE 802.11 adopts enhanced distributed

channel access (EDCA)

Four different priority classes achieved by

picking different values of Arbitration

InterFrame Spacing (AIFS)

(6)

CSMA/CA Example

Busy

Idle

Transmit request from upper layer

Back-off timer is loaded with a random

value (0-CW) e.g. 6 AIFS Wait for AIFS

time Decrement back-off

timer Back-off timer is zero, start transmitting

Busy

TX2

TX1

Time Time Transmitter 1 Transmitter 2 (AIFS=4) 6 5 4 3 2 1 0 Transmit request from upper layer

Back-off timer is loaded with a random

value (0-CW) e.g. 5

AIFS Wait for AIFS

time

Decrement back-off

timer

Back-off timer is zero, start transmitting Time Transmitter 3 (AIFS=8) 5 4 3 2 1 0

Idle

TX3

Defer counting down

(7)

Hidden Terminal Effect

B hears A and C, but A and C do not

hear each other

Messages from A and C can collide over

the air

A

B

(8)

WiFi addresses Hidden Terminal with RTS/CTS messages

V2V DSRC is a broadcast and there is not RTS/CTS

(9)

Basic Service Set

In IEEE 802.11 (WiFi) standard

BSS is a group of radios configured to talk to

each other over the air

All other communication is filtered out

Infrastructure BSS contains a station acting

as Access Point (AP)

48 bit BSSID is the MAC address of the AP

Ad Hoc mode does not require Access Point,

Independent BSS (IBSS)

(10)

Basic Service Set

Internet

Access

Point

BSS

BSSID: AP MAC

Ad Hoc

IBSS

IBSSID:

0xFFFFFFFFFFFF

(11)

Outside of the Context of a BSS

802.11p (MAC layer amendment) for DSRC: ability

to send Outside of a Context of a BSS (OCB)

Vehicles can immediately communicate with each

other and with road side equipment with out any

additional overhead

(12)

Exercise

Busy

Transmit request from upper layer

Back-off timer is loaded with 5 AIFS

TX2

TX1

Time Time Transmitter 1 Transmitter 2 (AIFS=4) 5 4 3 2 1 0 Transmit request from upper layer

Back-off timer is loaded with 8 Time Transmitter 3 (AIFS=6) Medium State 8 AIFS 7 6 5

Idle

Busy

4 3 2 1 0

TX3

Idle

Busy

defered

Complete

(13)

MAC Layer Modeling in ns-2

Transmission Coordination Transmission Reception Coordination Reception Channel State Manager Back-Off Manager

Upper Layers

PHY State Manager Power Monitor

MAC

PHY

RF Model

Mobile

Node

(14)

Channel State Manager SM

IFS – Inter Frame Space

Cs1 – Carrier Sensing (physical) indicating medium is busy

Cs0 – Carrier Sensing (physical) indicating medium is idle

Nav1 – Network Allocation Vector (virtual) indicating medium is busy

Nav0 – Network Allocation Vector (virtual) indicating medium is idle

CS_IDLE, CS_BUSY – signals to the Back-Off Manager

Cs0Nav0 Cs0Nav1 Cs1Nav0 Cs1Nav1 Wait IFS CS_BUSY CS_BUSY Start new NAV Timer CS_IDLE CS_BUSY NAV timer expired Start new NAV timer NAV received NAV timer expired

CS_IDLE CS_BUSY Update NAV timer Update NAV timer CS_IDLE

(15)

Back-Off Manager SM

No Back-Off Back-Off Running Back-Off Paused Initialize Back-off counter (CS_BUSY)

Signal “back-off zero” to TC Initialize Back-off counter (CS_IDLE) CSM signals CS_BUSY CSM signals CS_IDLE

CSM - Channel State

Manager

TC – Transmission

Coordination

Transmission

Reception

(16)

Transmission Coordination SM

TC_IDLE Data queued? Wait for CTS Wait SIFS Transmit RTS RTS Pending Data Pending Transmit Data Back-off needed RTS needed Retry Limit Reached Back-off needed Yes No No No No Back-off zero Yes Yes Yes

Frame transmission request from upper layers

CTS timer expired

Start Back-off counter RTS – Request To Send

CTS – Clear To Send SIFS – Short IFS

(17)

Reception Coordinator SM

RC Idle

Wait TX Wait SIFS

No NAV or Unicast data

frame received Transmission complete

References

Related documents

Abstract: A Monte Carlo algorithm for solving the transport equation of the neutron noise in the frequency domain has been newly implemented into a production-level continuous

This can be ensured, as stated above, by entering into separate agreements, or the franchisor can lay down provisions in the agreement regarding various different rights

This paper focuses specifically on the applicability of a shrinkage strategy in the Canadian municipalities of Chatham-Kent, Ontario and Cape Breton Regional Municipality (CBRM), Nova

Live plants may need two or more light tubes to aid their growth, and some marine corals are demanding of very bright light so use T5 or metal halide lighting for them!.

3-way repeated measures ANOVA at the 0.05 significance level testing the interaction between trees, pollen germination media and the repeated pollen measurements see Table

In order to incorporate this geometry into SACS, we must understand how structural members are analyzed within AISC 316 (ASD) In order to add the special member to SACS, we need

We present fault slip rate estimates for Southern California based on Global Positioning System (GPS) velocity data from the University NAVSTAR Consortium (UNAVCO), the

Ipswitch lets business and IT managers govern data transfers and file sharing with confidence and enable compliance by balancing the need for end user simplicity with the