[Ns-developers] Metric calculation in 802.11s

kirillano kirillano at yandex.ru
Wed Apr 1 08:46:58 PDT 2009


Hi all,

my current work is aimed to calculate link metric in 802.11s.
For metric calculation I would like to know data rate of a transmitted packet and retry counter.
To get this parameters I want to use TxOk callback.
So I want to propose the following changes:
1. TxOk callback should be changed:
-  typedef Callback <void, WifiMacHeader const&> TxOk;
+  typedef Callback <void, WifiMacHeader const&, uint8_t, WifiMode> TxOk;
and it will be able to pass:
    - retry counter (uint8_t)
    - mode of transmitted packet (WifiMode)

This way allows MacHigh to collect statistics as it wish, rather than hardcoding statistics code inside RemoteStationManager.

On this way I see the following problems:
1. The problem of retry counter.
   Only RemoteStationManager knows about retry counter, but DcaTxop class has unused variable m_currentRetry.
   And I have no idea how to pass retry counter from station manager to dca txop.
2. Problem of transmission rate of ACK.
   When DcaTxop receives information about successfully transmitted packet through method DcaTxop::GotAck (double snr, WifiMode txMode), it gets txMode, which is transmission mode of ACK, rather than of a packet.
   How can I get a packet's data mode?

If this idea seems reasonable to you, probably it's worth adding some more parameters (like SNR) to TxOk callback.
I would like to know your comments on these proposed changes.


Regards,
Kirill


More information about the Ns-developers mailing list