|Network Testing and Emulation Solutions|
We will learn to use the some WiFi packet corruption features to emulate malfunctioning station equipment. This consists of enabling the corruption features and looking for errors when stations attempt to associate. Part of this will include capturing packets and inspecting them. This scenario requires LANforge version 5.3.6, and a two-radio LANforge system with one radio set in monitor mode.
We will begin with a basic open authentication test scenario with a single virtual station on a LANforge system connecting to an AP. (See Also: Generating Traffic for WLAN Testing) This test scenario also works for Captive Portal testing.
We will use the simplest form of corruption, ignored frames. Select the Port → Corruptions tab, and set Ignore RX Frames very high, like 75%. To limit this to association frames, select ASSOC.
Introducing corruptions is simple. Watching the effects takes some effort. With aggressive association corruptions, the basic effect will appear as if your station takes an unreasonably long time to associate. Let's set up Wireshark at different interfaces to understand better the kinds of traffic at play.
You will see the moni3000 port below. The channel number will not display.
With 75% ignore the chances of the station actually associating are very port. On our monitor interface, we see that there are multiple discover and request packets.
On our station interface (wlan1), we see a different number of DHCP requests.
At our AP, we see repeated attempts.
We will configure a station with WPA2 PSK encryption. We will also use Wireshark to decrypt the packets in order to see that they are corrupt.
Configure station with WPA2 (See aslo: Test WiFi station upload throughput)
On the Corruptions tab, you can set stations:
Highlight and activate the station:
We will not be able to inspect packets unless we configure Wireshark to decrypt the packets from this capture. Follow these steps:
Add the SSID and password to the list of Decryption Keys. Select wpa-pwd: and type in the string $SSID:$PSK to match your password from your AP:
Packets from moni3000 are filtered to show the station of interest using the display filter:
wlan.addr == 04:f0:21:2f:90:31
We can focus into the association by using a display filter:
wlan.addr == 04:f0:21:2f:90:31 && wlan.fc.subtype < 4
And the packets that form the association:
Notice how the AP only really gets the uncorrupted packets. What we hope will happen is that our WiFi drivers will discard corrupted packets before passing them up to userspace.
We did not need to decrypt packets from our AP (only possible if monitoring inside the AP) vap2100:
Configure station with WPA2 EAP (See aslo: )