Skip to content

Application ShowStatistics

Jose Saldana edited this page Jul 19, 2017 · 4 revisions

The code is here.

It gets the statistics from the APs, and periodically shows them by the screen of the controller.

Radio statistics are sent from the agents to the controller under its request to be used by the radio resource management algorithms. The next example shows the output of this application, when it is gathering statistics from two APs (namely 192.168.101.9 and 192.168.101.10). The first AP has an STA associated (192.168.1.200).

[ShowStatistics] 1/192.168.101.9
        Uplink station MAC: 40:F3:08:88:66:C0 IP: 192.168.101.200
                num packets: 14
                avg rate: 23714.2857143 kbps
                avg signal: -34.4715803134 dBm
                avg length: 49.7142857143 bytes
                air time: 1.61066666667 ms
                init time: 1472547242.307101602 sec
                end time: 1472547251.279112125 sec

        Downlink station MAC: 40:F3:08:88:66:C0 IP: 192.168.101.200
                num packets: 18
                avg rate: 12000 kbps
                avg signal: -25 dBm
                avg length: 86.8333333333 bytes
                air time: 1.042 ms
                init time: 1472547242.361167266 sec
                end time: 1472547251.709062530 sec

[ShowStatistics] Agent: /192.168.101.10
[ShowStatistics] Last ping heard from agent /192.168.101.10 1472547344335

As it can be observed, the parameters previously gathered by the agent are now shown in the controller:

  • the number of packets sent or received during the period;
  • the average rate
  • the signal level
  • the average length
  • the air time usage
  • the initial and final timestamps of the interval.

As every agent sends regular keep alive messages to the controller (every second by default), the application also shows the timestamp of the last ping heard from the agent.