wiki:802.11/wlan_exp/examples

Version 6 (modified by murphpo, 10 years ago) (diff)

--

802.11 Reference Design: Experiment Examples

AP-to-STA Throughput

This example uses two WARP v3 nodes running the 802.11 Reference Design. One node is configured as an AP, the other as a station. The station node is associates with the AP at boot.

This script uses the txrx_stats data in the reference design to calculate through in a unidirectional flow. The AP generates a fully backlogged flow of packets addressed to the station. The station counts how many bytes it has received from the AP. The Python script polls the station twice over a period of 10 seconds, recording the txrx_stats reports before and after. It then computes the number of new bytes received and the time span between reports. The script uses the timestamps reported by the node in the txrx_stats report to calculate the time span. This removes any dependence on the PC-nodes link in computing the denominator for the throughput calculation.

The Python source code is shown below. The source file is in the repository: ReferenceDesigns/w3_802.11/python/warpnet_example_wlan_throughput.py

Error: Macro Include(source:/ReferenceDesigns/w3_802.11/python/warpnet_example_wlan_throughput.py) failed
No node ReferenceDesigns/w3_802.11/python/warpnet_example_wlan_throughput.py at revision 6325

2-Node WLAN Log

This example exercises the logging subsystem of the wlan_exp framework. Two nodes (one AP, one STA) exchange traffic for a short period. Both nodes write log entries for every Tx and Rx event. The Python controller then retrieves these logs and writes them to files.

A second Python script then loads these files and parses them into arrays indexed by log entry type. The script then calculates some basic statistics about the log entries.

The two Python scripts are: