Skip to content

Application ShowScannedStationsStatistics

Jose Saldana edited this page Jul 31, 2017 · 6 revisions

The code is here.

An AP uses its secondary interface to scan all the channels, and obtains all the frames heard, and their statistics. This information can then be used for different purposes e.g. before running a channel assignment algorithm.

This is done with the auxiliary wireless interface.

In order to distinguish between the APs and the STAs, we use the DS status flag of the Frame Control Field of the 802.11 header. By using it, we can know if each of the MAC addresses corresponds to a STA or an AP. We can also use the information we have about the associated devices, in order to know if the STA is associated to a Wi-5 AP, or if it is an AP that does not belong to the Wi-5 network (see the Code information in the example below). The output by the screen is like this (three agents scanning in channel 1):

[ShowScannedStationsStatistics] External Monitoring Table
[ShowScannedStationsStatistics] ================
[ShowScannedStationsStatistics]
[ShowScannedStationsStatistics] Scanning channel 1
[ShowScannedStationsStatistics] Request for scanning during the interval of  5000 ms in SSID *
[ShowScannedStationsStatistics] Agent: /192.168.1.13
[ShowScannedStationsStatistics]
[ShowScannedStationsStatistics] Agent: /192.168.1.13 in channel 1

	Station MAC: 00:1B:B3:05:9B:A0
		num packets: 553
		avg rate: 54000 kbps
		avg signal: -40 dBm
		avg length: 65.4611211573 bytes
		air time: 5.36296296296 ms
		init time: 1501053420.417960557 sec
		end time: 1501053426.419703544 sec
		AP of client: /192.168.1.14
		Channel of AP: 6
		Code: Wi-5 LVAP
(...)
	Station MAC: 40:A5:EF:05:9B:A0
		num packets: 5
		avg rate: 24000 kbps
		avg signal: -70 dBm
		avg length: 116 bytes
		air time: 0.219111111111 ms
		init time: 1501053420.460779354 sec
		end time: 1501053425.467050619 sec
		AP of client: /192.168.1.14
		Channel of AP: 6
		Code: Wi-5 STA
(...)
	Station MAC: 00:1B:B3:61:54:2A
		num packets: 1
		avg rate: 54000 kbps
		avg signal: -40 dBm
		avg length: 65 bytes
		air time: 0.00962962962963 ms
		init time: 1501053423.455033875 sec
		end time: 1501053423.455171990 sec
		AP of client: unknown
		Channel of AP: unknown
		Code: non-Wi-5 STA
(...)
	Station MAC: 54:A2:74:1D:58:60
		num packets: 147
		avg rate: 8755.10204082 kbps
		avg signal: -80.1902323731 dBm
		avg length: 153.693877551 bytes
		air time: 68.9476363636 ms
		init time: 1501053420.515692089 sec
		end time: 1501053426.363289051 sec
		AP of client: unknown
		Channel of AP: unknown
		Code: non-Wi-5 AP

In the poolfile you can specify a filename, and a file will be created with the same content:

[ShowScannedStationsStatistics] External Monitoring Table
[ShowScannedStationsStatistics] ================
[ShowScannedStationsStatistics]
[ShowScannedStationsStatistics] Scanning channel 1
[ShowScannedStationsStatistics] Request for scanning during the interval of  5000 ms in SSID *
[ShowScannedStationsStatistics] Agent: /192.168.1.13
[ShowScannedStationsStatistics]
[ShowScannedStationsStatistics] Agent: /192.168.1.13 in channel 1

	Station MAC: 00:1B:B3:05:9B:A0
		num packets: 553
		avg rate: 54000 kbps
		avg signal: -40 dBm
		avg length: 65.4611211573 bytes
		air time: 5.36296296296 ms
		init time: 1501053420.417960557 sec
		end time: 1501053426.419703544 sec
		AP of client: /192.168.1.14
		Channel of AP: 6
		Code: Wi-5 LVAP
(...)
	Station MAC: 40:A5:EF:05:9B:A0
		num packets: 5
		avg rate: 24000 kbps
		avg signal: -70 dBm
		avg length: 116 bytes
		air time: 0.219111111111 ms
		init time: 1501053420.460779354 sec
		end time: 1501053425.467050619 sec
		AP of client: /192.168.1.14
		Channel of AP: 6
		Code: Wi-5 STA
(...)
	Station MAC: 00:1B:B3:61:54:2A
		num packets: 1
		avg rate: 54000 kbps
		avg signal: -40 dBm
		avg length: 65 bytes
		air time: 0.00962962962963 ms
		init time: 1501053423.455033875 sec
		end time: 1501053423.455171990 sec
		AP of client: unknown
		Channel of AP: unknown
		Code: non-Wi-5 STA
(...)
	Station MAC: 54:A2:74:1D:58:60
		num packets: 147
		avg rate: 8755.10204082 kbps
		avg signal: -80.1902323731 dBm
		avg length: 153.693877551 bytes
		air time: 68.9476363636 ms
		init time: 1501053420.515692089 sec
		end time: 1501053426.363289051 sec
		AP of client: unknown
		Channel of AP: unknown
		Code: non-Wi-5 AP