| 1 | {{{#!comment |
| 2 | [[Include(wiki:802.11/beta-note)]] |
| 3 | }}} |
| 4 | |
| 5 | [[TracNav(802.11/TOC)]] |
| 6 | |
| 7 | = 802.11 Reference Design: Aggregate Throughput Example = |
| 8 | |
| 9 | This example of the Experiments Framework uses two WARP v3 nodes, one configured as an AP, the other as a STA. |
| 10 | |
| 11 | The flow of the script is: |
| 12 | 1. Initialize two WARP v3 nodes |
| 13 | 1. Ensure nodes are configured as one AP, one STA and that the STA is associated with AP |
| 14 | 1. Start a fully-backlogged locally generated traffic (LTG) flow from AP -> STA |
| 15 | 1. For each WLAN rate: |
| 16 | 1. Read current Tx/Rx packet counts at STA |
| 17 | 1. Wait 10 seconds |
| 18 | 1. Read current Tx/Rx packet counts at STA again |
| 19 | 1. Calculate throughput for 10 second window |
| 20 | 1. Stop the traffic flow |
| 21 | 1. Print the results |
| 22 | |
| 23 | To run this example: |
| 24 | * Setup wlan_exp (see [wiki:../../GettingStarted Getting Started] for details) |
| 25 | * Configure two WARP v3 nodes with the 802.11 Reference Design bitstream- one AP, one STA |
| 26 | * Open a Python shell |
| 27 | * CD to the '''Python_Reference/Examples''' directory from the expanded 802.11 Reference design archive |
| 28 | * Run {{{python throughput_two_nodes.py}}} |
| 29 | |
| 30 | The script will run for ~80 seconds, then display its results: |
| 31 | {{{ |
| 32 | RESULS GO HERE |
| 33 | }}} |
| 34 | |
| 35 | ---- |
| 36 | '''Source:''' the script is included in the 802.11 Reference Design archive at '''Python_Reference/examples/throughput_two_nodes.py'''. |
| 37 | |
| 38 | The [source:/ReferenceDesigns/w3_802.11/python/examples/throughput_two_nodes.py latest version of the throughput_two_nodes.py script] is also shown below. |
| 39 | |
| 40 | [[Include(source:/ReferenceDesigns/w3_802.11/python/examples/throughput_two_nodes.py)]] |
| 41 | |