Analyzing WLAN
In this exercise you will learn to use a frame analyzer in a 802.11b WLAN. We use a Cisco Aironet 350 Access Point and mostly WLAN adapters from Cisco and D-Link. We also use the Airopeek WLAN Analyzer for frame analyses.
Part I - WLAN 802.11b Analyses Examples
Protocol OverviewPhysical layer 802.11b MAC-Layer Beacon frame Authentication Association Probe Request Data frames
PROTOCOL OVERVIEW
This is the protocol layer architecture use in 802.11 Wireless LAN.
1) DATA FRAMING
DATA
MAC DATA FCS
PLCP MAC DATA FCS
The DATA frame from upper layers (Transport Layer and above) is encapsulated in MAC Layer 802.11.
Additional to the MAC framing the Physical Layer adds so named Physical Layer Convergence Protocol information.
2) MAC CONTROL FRAMING
MAC FCS
PLCP MAC FCS
The MAC Layer needs to do a lot of management and control activities. Several frame types with additional information are defined for these actions.
PHYSICAL LAYER
The Physical Layer of the WLAN 802.11b has also a lot of options which are influence and are managed in the MAC layer. We talkt about the Physical Layer Convergence Protocol (PLCP).
TYPE 1: LONG PLCP PREABMLE
3) Permit negotiation of transmission rates for each session 4) PLCP Frame format:
5) SYNC: Gain setting, energy detection, antenna selection, frequency offset compensation, 128 Bits long
6) SFD: Start Frame Delimiter 7) SIGNAL: 0x0A 1 mbps
0x14 2 mbps(Values in 100 kb/s quantities) 0x37 5,5 mbps
0x6E 11 mbps
8) SERVICE: indicated PSDU coding (CCK or PBCC, see next page) MPDU: MAC Protocol Data Unit, this is the rest of the frame
LENGTH: time in µsec it will take to transmit the PSDU
TYPE 2: SHORT PLCP PREAMBLE
9) SYNC: Gain setting, energy detection, antenna selection, frequency offset compensation, 56 Bits long
SERVICE
CHANNEL AGILITY (OPTIONAL) 10) Allows hopping through a set of channels
11) Two sets of channels are defined, depends on the country where it is used.
MAC FRAME HEADER
FRAME CONTROL
DLC: Frame Control Field #1 = 08
DLC: .... ..00 = 0x0 Protocol Version DLC: .... 10.. = 0x2 Data Frame
DLC: 0000 .... = 0x0 Data (Subtype) DLC: Frame Control Field #2 = 01
DLC: .... ...1 = To Distribution System
DLC: .... ..0. = Not from Distribution System DLC: .... .0.. = Last fragment
DLC: .... 0... = Not retry DLC: ...0 .... = Active Mode
DLC: ..0. .... = No more data
DLC: .0.. .... = Wired Equivalent Privacy is off DLC: 0... .... = Not ordered
DURATION ID
DLC: Duration = 117 (in microseconds)
ADDRESS 1
DLC: Basic Service Set ID = Station Airont584FEC
ADDRESS 2
DLC: Source Address = Station 0009B7F1171F
ADDRESS 3
DLC: Destination Address = Station Airont584FEC
SEQUENCE CONTROL
DLC: Sequence Control = 0x1E60 DLC: ...Sequence Number = 0x1E6 (486) DLC: ...Fragment Number = 0x0 (0)
12) The frame type is Data Frame.
13) This is he MAC header of a frame who is sent from the WLAN out to the Network (Distribution System DS). In This case, Address 1 holds the SSID which is the MAC address of the Access point.
14) Each frame that is sent has an unique identifier. It is important for retransmission.
BEACON FRAME
MAC HEADER
DLC: Signal level = 33 % DLC: Channel = 7
DLC: Data rate = 2 ( 1.0 Megabits per sec.) DLC:
DLC: Frame Control Field #1 = 80
DLC: .... ..00 = 0x0 Protocol Version DLC: .... 00.. = 0x0 Management Frame DLC: 1000 .... = 0x8 Beacon (Subtype) DLC: Frame Control Field #2 = 00
DLC: .... ...0 = Not to Distribution System DLC: .... ..0. = Not from Distribution System DLC: .... .0.. = Last fragment
DLC: .... 0... = Not retry DLC: ...0 .... = Active Mode DLC: ..0. .... = No more data
DLC: .0.. .... = Wired Equivalent Privacy is off DLC: 0... .... = Not ordered
DLC: Duration = 0 (in microseconds) DLC: Destination Address = BROADCAST FFFFFFFFFFFF, DLC: Source Address = Station Airont584FEC DLC: Basic Service Set ID = Airont584FEC
DLC: Sequence Control = 0x4CE0
DLC: ...Sequence Number = 0x4CE (1230) DLC: ...Fragment Number = 0x0 (0)
TIMESTAMP
DLC: Timestamp = 1991075533288 (in ms)
BEACON INTERVAL
DLC: Beacon Interval = 100
CAPABILITY INFORMATON
DLC: Capability information field #1 = 21
DLC: .... ...1 = Extended Service Set is on DLC: .... ..0. = Independent Basic Service Set
is off
DLC: .... 00.. = No point coordinator at AP DLC: ...0 .... = No privacy
DLC: ..1. .... = Short Preamble option is allwd DLC: .0.. .... = Packet Binary Convolutional Coding Modulation mode option is not allowed DLC: 0... .... = Channel agility is not in use DLC: Capability information field #2 = 00
DLC: 0000 0000 = Reserved
SSID
DLC: Element ID = 0 (Service Set Identifier) DLC: ...Length = 9 octet(s)
DLC: ...Service Set Identity = "vhbWLAN21"
SUPPORTED RATES
DLC: Element ID = 1 (Supported Rates) DLC: ...Length = 4 octet(s)
DLC: ...Supported Rates information field = 82
DLC: 1... .... = Basic Service Set Basic
Rate
DLC: .000 0010 = 1.0 Megabits per second DLC: ...Supported Rates information field = 84
DLC: 1... .... = Basic Service Set Basic
Rate
DLC: .000 0100 = 2.0 Megabits per second DLC: ...Supported Rates information field = 8B
DLC: 1... .... = Basic Service Set Basic
Rate
DLC: .000 1011 = 5.5 Megabits per second DLC: ...Supported Rates information field = 96
DLC: 1... .... = Basic Service Set Basic
Rate
DLC: .001 0110 = 11.0 Megabits per second
DS PARAMETER SET
DLC: Element ID = 3 (Direct Sequence Parameter set DLC: ...Length = 1 octet(s)
DLC: ...dot11CurrentChannelNumber = 7
TIM PARAMETER SET
DLC: Element ID = 5 (Traffic Indication Map) DLC: ...Length = 4 octet(s)
DLC: ...Delivery Traffic Indication Message Count = 1 DLC: ...Delivery Traffic Indication Message Period = 2 DLC: ...Bitmap control field = 00
DLC: .... ...0 = Traffic Indicator bit DLC: 0000 000. = 0 Bitmap offset
DLC: ...Partial Virtual Bitmap = 00
EXTENSION
DLC: Element ID = 133 (Unknown Information Field) DLC: ...Length = 30 octet(s)
DLC: ...[30 byte(s) of Unknown Information Field]
15) The Beacon frame is sent in fixed time intervals, usually 100 ms. It is needed to synchronize the clocks of the participants in the WLAN.
16) It also contains the name of the SSID in clear text.
17) The analyzer adds information about the signal strength and the used channel. It is not part of the MAC header specification.
AUTHENTICATION
There are two authentication systems possible:
• Open System Authentication (no check !!!)
• Shared Key Authentication Authentication Frames:
Authentication Request When a station wants to enter a BSS it sends an Authenticarion Request frame to the Access Point.
Authentication response The Accesss Point sends back an answer to the
authentication request.
Deauthentication This ends a current authentication in a BSS or IBSS
THE AUTENTICATION REQUEST IN DETAIL
MAC HEADER
DLC: Frame Control Field #1 = B0
DLC: .... ..00 = 0x0 Protocol Version DLC: .... 00.. = 0x0 Management Frame
DLC: 1011 .... = 0xB Authentication (Subtype)
• • •
AUTHENTICATION ALGORITHM NUMBER
DLC: Authentication algorithm number = 0 (Open System)
AUTHENTICATION TRANSACTION SEQUENCE NUMBER
DLC: Authentication transaction sequence number = 1
STATUS CODE
DLC: Status code = 0 (Reserved)
THE AUTENTICATION RESPONSE IN DETAIL
MAC HEADER
DLC: Frame Control Field #1 = B0
DLC: .... ..00 = 0x0 Protocol Version DLC: .... 00.. = 0x0 Management Frame
DLC: 1011 .... = 0xB Authentication (Subtype)
• • •
AUTHENTICATION ALGORITHM NUMBER
DLC: Authentication algorithm number = 0 (Open System)
AUTHENTICATION TRANSACTION SEQUENCE NUMBER
DLC: Authentication transaction sequence number = 2
STATUS CODE
DLC: Status code = 0 (Successful)
This is a frame used in an open system. No additional authentication information is used to join the WLAN (very insecure).
ASSOCIATION
THE ASSOCIATION REQUEST IN DETAIL
MAC HEADER
DLC: Frame Control Field #1 = 00
DLC: .... ..00 = 0x0 Protocol Version DLC: .... 00.. = 0x0 Management Frame
DLC: 0000 .... = 0x0 Association request (Subtype)
• • • CAPABILITY INFORMATION
DLC: Capability information field #1 = 21
DLC: .... ...1 = Extended Service Set is on DLC: .... ..0. = Independ Basic Service Set off DLC: .... 00.. = STA is not Cont. Free Pollable DLC: ...0 .... = No privacy
DLC: ..1. .... = Short Preamble option is
implemented
DLC: .0.. .... = Packet Binary Convolutional Coding Modulation mode option is not implemented DLC: 0... .... = Channel agility is not in use DLC: Capability information field #2 = 00
DLC: 0000 0000 = Reserved
LISTEN INTERVAL
DLC: Listen interval = 200
SSID
DLC: Element ID = 0 (Service Set Identifier) DLC: ...Length = 9 octet(s)
DLC: ...Service Set Identity = "room1b611"
SUPPORTED RATES
DLC: Element ID = 1 (Supported Rates) DLC: ...Length = 4 octet(s)
DLC: ...Supported Rates information field = 02
DLC: 0... .... = Not Basic Service Set
Basic Rate
DLC: .000 0010 = 1.0 Megabits per second DLC: ...Supported Rates information field = 04
DLC: 0... .... = Not Basic Service Set
Basic Rate
DLC: .000 0100 = 2.0 Megabits per second DLC: ...Supported Rates information field = 0B
DLC: 0... .... = Not Basic Service Set Basic Rate
DLC: .000 1011 = 5.5 Megabits per second DLC: ...Supported Rates information field = 16
DLC: 0... .... = Not B. S. S. Basic Rate DLC: .001 0110 = 11.0 Megabits per second
THE ASSOCIATION RESPONSE IN DETAIL
MAC HEADER
DLC: Frame Control Field #1 = 10
DLC: .... ..00 = 0x0 Protocol Version DLC: .... 00.. = 0x0 Management Frame
DLC: 0001 .... = 0x1 Association response (Subtype) DLC: Frame Control Field #2 = 00
• • • CAPABILITY INFORMATION
DLC: Capability information field #1 = 21
DLC: .... ...1 = Extended Service Set is on DLC: .... ..0. = Indepen. Basic Service Set off DLC: .... 00.. = No point coordinator at AP DLC: ...0 .... = No privacy
DLC: ..1. .... = Short Preamble option is
allowed
DLC: .0.. .... = Packet Binary Convolutional Coding Modulation mode option is not allowed DLC: 0... .... = Channel agility is not in use
DLC: Capability information field #2 = 00
DLC: 0000 0000 = Reserved
Status Code
DLC: Status code = 0 (Successful)
AID
DLC: Association ID = 29
SUPPORTED RATES
DLC: Element ID = 1 (Supported Rates) DLC: ...Length = 4 octet(s)
DLC: ...Supported Rates information field = 82
DLC: 1... .... = Basic Service Set Basic
Rate
DLC: .000 0010 = 1.0 Megabits per second DLC: ...Supported Rates information field = 84
DLC: 1... .... = Basic Service Set Basic
Rate
DLC: .000 0100 = 2.0 Megabits per second DLC: ...Supported Rates information field = 8B
DLC: 1... .... = Basic Service Set Basic
Rate
DLC: .000 1011 = 5.5 Megabits per second DLC: ...Supported Rates information field = 96
DLC: 1... .... = Basic Service Set Basic
Rate
DLC: .001 0110 = 11.0 Megabits per second
18) After a host was authenticated, it can associate into a WLAN (ESS or BSS).
19) When a station is mobile and is leaving the area on one WLAN it can be Re-associated into the next WLAN without loosing data connection on higher protocol layers.
PROBE REQUEST
The Probe Request frame is sent, when a node wants to know immediately which Access Points are in reach. It can ask for any AP or for a specific one, depending on the SSID information. This method is used in Roaming environment.
THE PROBE REQUEST IN DETAIL
MAC HEADER
DLC: Frame Control Field #1 = 40
DLC: .... ..00 = 0x0 Protocol Version DLC: .... 00.. = 0x0 Management Frame
DLC: 0100 .... = 0x4 Probe request (Subtype)
• • • SSID
DLC: Element ID = 0 (Service Set Identifier) DLC: ...Length = 0 octet(s)
DLC: ...Service Set Identity = Broadcast Service Set Identity
SUPPORTED RATES
DLC: Element ID = 1 (Supported Rates) DLC: ...Length = 4 octet(s)
DLC: ...Supported Rates information field = 02
DLC: 0... .... = Not Basic Service Set Basic Rate
DLC: .000 0010 = 1.0 Megabits per second DLC: ...Supported Rates information field = 04
DLC: 0... .... = Not Basic Service Set Basic Rate
DLC: .000 0100 = 2.0 Megabits per second DLC: ...Supported Rates information field = 0B
DLC: 0... .... = Not Basic Service Set Basic Rate
DLC: .000 1011 = 5.5 Megabits per second DLC: ...Supported Rates information field = 16
DLC: 0... .... = Not Basic Service Set Basic Rate
DLC: .001 0110 = 11.0 Megabits per second
THE PROBE RESPONSE IN DETAIL
MAC HEADER
DLC: Frame Control Field #1 = 50
DLC: .... ..00 = 0x0 Protocol Version DLC: .... 00.. = 0x0 Management Frame
DLC: 0101 .... = 0x5 Probe response (Subtype)
• • • TIMESTAMP
DLC: Timestamp = 3754509374
BEACON INTERVAL
DLC: Beacon Interval = 100
CAPABILITY INFORMATION
DLC: Capability information field #1 = 21
DLC: .... ...1 = Extended Service Set is on
DLC: .... ..0. = Independent Basic Service Set is off DLC: .... 00.. = No point coordinator at Access Point
DLC: ...0 .... = No privacy
DLC: ..1. .... = Short Preamble option is allowed DLC: .0.. .... = Packet Binary Convolutional Coding
Modulation mode option is not allowed
DLC: 0... .... = Channel agility is not in use DLC: Capability information field #2 = 00
DLC: 0000 0000 = Reserved
SSID
DLC: Element ID = 0 (Service Set Identifier) DLC: ...Length = 9 octet(s)
DLC: ...Service Set Identity = "rfhpci167"
SUPPORTED RATES
DLC: Element ID = 1 (Supported Rates) DLC: ...Length = 4 octet(s)
DLC: ...Supported Rates information field = 82
DLC: 1... .... = Basic Service Set Basic Rate DLC: .000 0010 = 1.0 Megabits per second DLC: ...Supported Rates information field = 84
DLC: 1... .... = Basic Service Set Basic Rate DLC: .000 0100 = 2.0 Megabits per second DLC: ...Supported Rates information field = 8B
• • •
The Probe Response is similar to a Beacon Frame.
DATA FRAME
A Data frame in detail MAC Header
Frame Control: 0x0208 (Normal) Version: 0
Type: Data frame (2) Subtype: 0
Flags: 0x2
DS status: Frame is exiting DS (To DS: 0 From DS: 1) (0x02) .... .0.. = More Fragments: This is the last fragment .... 0... = Retry: Frame is not being retransmitted ...0 .... = PWR MGT: STA will stay up
..0. .... = More Data: No data buffered .0.. .... = WEP flag: WEP is disabled
0... .... = Order flag: Not strictly ordered Duration: 117
Destination address: 00:0d:88:c0:a6:61 BSS Id: 00:40:96:58:4f:ec
Source address: 00:0d:56:d3:8d:87 Fragment number: 0
Sequence number: 1190
LLC
Logical-Link Control DSAP: SNAP (0xaa) IG Bit: Individual SSAP: SNAP (0xaa) CR Bit: Command
Control field: U, func=UI (0x03)
000. 00.. = Command: Unnumbered Information (0x00) .... ..11 = Frame type: Unnumbered frame (0x03) Organization Code: Encapsulated Ethernet (0x000000) Type: IP (0x0800)
Higher Layers
Internet Protocol, SrcAddr: 192.168.20.100, Dst Addr:
192.168.20.159 Internet Control Message Protocol
Part II - Analyzing Live Frames
IntroductionStarting the Analyzer
Setup the probe to scan all channels Scanning all channels
Capturing specific nodes Printing Frames
Further exercises Questioner