Wireless networks are widely used today for internet connectivity in homes, offices, universities, and public environments. Unlike wired networks, WiFi communication occurs over radio frequencies and uses the IEEE 802.11 protocol family. Because the communication happens through the air, network packets can be captured and analyzed using specialized tools.
This blog explains WiFi communication fundamentals, important terminology, types of WiFi packets, device modes such as managed and monitor mode, and how tools like Wireshark, Airodump-ng, and Tcpdump can be used to capture and analyze wireless packets.
WiFi operates using the IEEE 802.11 standard. Devices communicate using radio signals through an access point (AP) or directly with other devices.
Communication happens through packets broadcast via radio signals and received by devices operating on the same channel.
SSID is the name of the wireless network visible when scanning WiFi networks.
Example: Home_Network
BSSID is the unique MAC address of an access point.
Multiple access points using the same SSID form an Extended Service Set.
Every wireless device has a unique hardware address.
WiFi communication uses IEEE 802.11 frames divided into three categories.
Management frames help devices discover and connect to networks.
Carry actual user data such as web traffic or file transfers.
Default mode where the device connects normally to an access point.
Allows the wireless adapter to capture all packets in the air, including packets not intended for the device.
Used when the device acts as an access point.
sudo apt update sudo apt install wireshark
sudo apt install aircrack-ng
sudo apt install tcpdump
wireshark --version airmon-ng tcpdump --version
iwconfig
iw listExample output:
Supported interface modes: * IBSS * managed * monitor * AP
If monitor appears in the list, your WiFi adapter supports monitor mode.
sudo airmon-ng start wlan0This creates a monitor interface:
wlan0mon
iwconfig
sudo airmon-ng stop wlan0mon
sudo airodump-ng wlan0monDisplays:
sudo airodump-ng --bssid <BSSID> -c <channel> -w capture wlan0mon
Probe requests are management frames sent by devices when searching for available WiFi networks.
sudo tcpdump -i wlan0mon -e -I 'type mgt subtype probe-req'
sudo tcpdump -i wlan0mon -e 'link[0] & 0x0c = 0x00 and link[0] & 0xf0 = 0x40'
sudo tcpdump -i wlan0mon -e 'link[0] & 0x0c = 0x00 and link[0] & 0xf0 = 0x40' -w probe_requests.pcap
wireshark capture.cap
wlan.fc.type == 0Probe Requests
wlan.fc.type_subtype == 0x04
Packet capturing should only be performed on networks where you have permission. Unauthorized monitoring of wireless traffic may violate privacy laws and organizational policies.
Understanding WiFi communication and packet structures is essential for network analysis, troubleshooting, and security research. Tools like Wireshark and Airodump-ng allow administrators and researchers to capture and analyze wireless packets to better understand network behavior.
Using monitor mode and packet capture tools makes it possible to observe management frames such as probe requests, beacon frames, and authentication processes, providing deeper insights into wireless network operations.