Candela Technologies Logo
Network Testing and Emulation Solutions

Diagnostic script for WiFi packet capture files.

Goal: Use a diagnostic script to parse a WiFi packet capture file and generate histograms, packet loss stats, and other helpful information for diagnosing WiFi behaviour.

LANforge will be used to create a WiFi capture file, and then we will run the diagnostic script to help understand the on-air behaviour.

  1. Create capture file.
    1. If you already have your own capture file or know how to create them, then skip this section.
    2. Packet captures are created using WiFi Monitor interfaces. LANforge can automatically create and manage these for you. The simplest way to create a capture is to use the Port-Mgr tab in the LANforge GUI. screenshot
    3. Select WiFi radio that you wish to use and double-click it to bring up the modify window. Set the frequency to match the channel you wish to sniff and click OK to submit the changes and close the window. screenshot
    4. Make sure the radio is still selected, and click the 'Sniff Packets' button on the Port Mgr tab. You normally need to be connectedto the LANforge system using remote-desktop or VNC for this to work properly. After you click 'Sniff Packets', a monitor interface will be created and Wireshark will start. When your capture is complete, stop the capture in Wireshark and save the capture file. screenshot
  2. Use the do_wifi_diag.bash script to diagnose the capture file.
    1. The LANforge scripts package is normally installed in /home/lanforge/scripts You can also clone the repository from github using this link: Assuming it is in the standard location, change to the wifi_diag directory: cd /home/lanfore/scripts/wifi_diag. The ./do_wifi_diag.bash script will be used to launch the wifi-diag script. screenshot
    2. Run the do_wifi_diag.bash script with appropriate arguments to match your device-under-test (DUT) and pcap file. The diagnostic script can process around 300 packets per second on a fast machine, so it can take a while to process a big file. screenshot
    3. When the test is complete, you can open the [test]/index.html file to view the results, print to PDF, etc. screenshot
    4. You can find the full report from this example here: examples/wifi-diag-report/index.html You can also view the report in PDF format: examples/wifi-diag-report.pdf

Candela  Technologies, 2417 Main Street, Suite 201, Ferndale, WA 98248, USA | | +1.360.380.1618
Google+ | Facebook | LinkedIn | Blog