Professional Documents
Culture Documents
Wifi
Wifi
• Exposed terminals
– B sends to A, C wants to send to another terminal (not
A or B)
– C senses carrier, finds medium in use and has to wait
– A is outside the radio range of C, therefore waiting is
not necessary
– C is “exposed” to B
What is IEEE 802.11?
• IEEE 802.11-2012
– Family of standards set forth by the IEEE to
define the specifications for wireless LANs
– Defines:
• Medium Access Control (MAC)
• Physical Layer (PHY) Specifications
IEEE 802.11 and the ISO stack
What is IEEE 802.11?
Data Frame
The IEEE 802.11 Frame Structure ...
• Frame Control field is a very important & includes several
subfields. These fields are used for differentiating various frame
types, to define the meaning of address fields depending on whether
infrastructure or ad hoc modes are used or an AP or a station is
sending the frame.
• Sequence Control field is used to number the sequence number of
frames/fragment frame number being transmitted.
•
The IEEE 802.11 Frame Structure ...
• There are four address fields:
• Address 1 contains the MAC address of the wireless station that is the recipient of the
frame.
• Address 2 contains the MAC address of the station/AP that transmits the frame.
• Address 3 is used in internetworking the BSS with a wired LAN, and hence this address
is inserted as the MAC address of the interface in routing.
• Address 4 is used in ad hoc network mode and not in the infrastructure mode.
• Sequence Control field consists of two subfields: Sequence
Number (12 bits) and Fragment Number (4 bits)., sequence number
subfield indicates the sequence number of each MAC frame. A
frame can also be fragmented, for which the fragment number
subfield indicates the number of the fragmented frames of a frame.
Both fields are initialized to zero.
• CRC field calculates frame check sequence for the entire MAC
header and frame payload.
• Every AP in IEEE 802.11 is assigned one Service Set Identifier
(SSID).
Frame Formats
Data Frame
IEEE 802.11 Management Services
Distribution Services
• Association
• Disassociation
• Reassociation
• Distribution
• Integration
IEEE 802.11 Services
Intracell Services
• Authentication
• Deauthentication
• Privacy
• Data Delivery
Management Frames
• Authentication frame: IEEE 802.11 authentication begins with the
WNIC sending an authentication frame to AP containing its
identity.
• Association request frame: Sent from a STA it enables the AP to
allocate resources and synchronize. Frame carries information
about the WNIC including supported data rates and the SSID of
the network the STA wishes to associate with. If the request is
accepted, the AP reserves memory and establishes an association
ID for the WNIC.
• Association response frame: Sent from an AP to a STA containing
the acceptance or rejection to an association request. On
acceptance, the frame will contain information such an association
ID and supported data rates.
Management Frames (Contd.)
• Beacon frame: Sent periodically from an AP to announce its
presence and provide the SSID, and other parameters for WNICs
within range.
• Deauthentication frame: Sent from a station wishing to terminate
connection from another station.
• Disassociation frame: Sent from a station wishing to terminate
connection. It's an elegant way to allow the access point to
relinquish memory allocation and remove the WNIC from the
association table.
Management Frames (Contd.)
• Probe request frame: Sent from a STA when it requires
information from another STA.
• Probe response frame: Sent from an AP containing capability
information, supported data rates, etc., after receiving a probe
request frame.
• Reassociation request frame: A WNIC sends a reassociation
request when it drops from range of the currently associated AP
and finds another AP with a stronger signal. The new AP
coordinates the forwarding of any information that may still be
contained in the buffer of the previous AP.
• Reassociation response frame: Sent from an access point
containing the acceptance or rejection to a WNIC reassociation
request frame. The frame includes information required for
association such as the association ID and supported data rates.
Basic CSMA-CA operation
DIFS Contention
Window
PIFS
Free access when medium
is free longer than DIFS
SIFS
DIFS
Busy Medium Next Frame
Wait for
Time
Defer Access
reattempt time
(Channel should remain free after this time)
Inter-Frame Spacing (IFS) for Prioritized
Access to Channel
• IFS is the time interval during which each node has to wait before
transmitting any packet and is used to provide a prioritized access
to the channel
• Short Inter-Frame Space (SIFS): It separates transmissions belonging
to a single dialog and is the smallest IFS. It has the highest priority over
all stations. Its value is fixed per PHY.
• Point Coordination IFS (PIFS): It is used by the PC in PCF mode to
gain access to the medium before any other station. Its value is SIFS
plus a slot time. Using PIFS, the AP issues polling requests to the
stations for data transmissions.
• Extended IFS (EIFS): It is longer IFS used by a station that has
received a frame but could not understand it but wants to prevent
collision.
• DCF IFS (DIFS) is larger than SIFS and is used when initiating a data transfer
– When RTS/CTS is used, the RTS packet can be transmitted after waiting for DIFS
duration of time
– All other frames (CTS, DATA, and ACK) use SIFS before attempting to transmit
Inter Frame Spaces
• All stations receiving this frame set their NAV. NAV stands for
Network Allocation Vector that specifies the earliest time when the
station is allowed to attempt frame transmission. If station B receives
the RTS frame, then after waiting for SIFS the station B issues a
clear-to-send (CTS) control frame.
60
Security in IEEE 802.11
• Wireless LAN suffers from a problem called eavesdropping, which
may be defined as the ability to capture the Wireless LAN traffic.
61