Each LANforge system has Python scripts installed at /home/lanforge/scripts. You can find test_l4.py at /home/lanforge/scripts/py-script/test_l4.py The script test_l4.py will:
The test type attribute is configurable:
The monitored Layer 4-7 attribute statistics are recorded at the end of each polling interval. Test_l4.py will monitor the urls/s, bytes-rd, or bytes-wr attribute of the layer 4-7 endpoints. These attributes can be tested over FTP using a --ftp flag. If the monitored value does not continually increase, this test will not pass. The script cleans up the stations and connections at the end of the test. An HTML and PDF report of the results will be generated and placed in the /home/lanforge/html-reports directory. |
|
./test_l4.py --lfmgr localhost \
--upstream_port 1.1.eth1 \
--radio 1.1.wiphy0 \
--num_stations 2 \
--ssid AP_SSID \
--security wpa2 \
--passwd password \
--test_duration 1m \
--url "dl http://upstream_port_ip /dev/null" \
--test_type bytes-rd \
--requests_per_ten 600 \
--test_rig CT_LAB_L4 \
--test_tag Layer_4_Example \
--dut_model_num RT-AX88U \
--dut_hw_version A1.1 \
--dut_sw_version 3.0.0.4.384 \
--dut_serial_num M1IAHP000003
./test_l4.py --lfmgr localhost \
--upstream_port 1.1.eth1 \
--radio 1.1.wiphy0 \
--num_stations 2 \
--ssid AP_SSID \
--security wpa2 \
--passwd password \
--test_duration 1m \
--url "dl http://upstream_port_ip /dev/null" \
--test_type urls \
--requests_per_ten 600 \
--test_rig CT_LAB_L4 \
--test_tag Layer_4_Example \
--dut_model_num RT-AX88U \
--dut_hw_version A1.1 \
--dut_sw_version 3.0.0.4.384 \
--dut_serial_num M1IAHP000003