Bugzilla – Bug 2920
Default MaxSlrc and fragmentation threshold values differ from standard
Last modified: 2018-05-31 17:19:14 UTC
The WifiRemoteStationManager module uses 7 as the default value of MaxSlrc. According to the 802.11-2016 standard it should be 4 because: 1) MaxSlrc is mapped to dot11LongRetryLimit as stated in 802.11-2016 on page 1324: "The CW shall be reset to aCWmin after every successful attempt to transmit a frame containing all or part of an MSDU or MMPDU, when SLRC reaches dot11LongRetryLimit, or when SSRC reaches dot11ShortRetryLimit." 2) the default value of dot11LongRetryLimit is 4 as stated in 802.11-2016 on page 3087: dot11LongRetryLimit OBJECT-TYPE SYNTAX Unsigned32 (1..255) MAX-ACCESS read-write STATUS current DESCRIPTION "This is a control variable. It is written by an external management entity. Changes take effect as soon as practical in the implementation. This attribute indicates the maximum number of transmission attempts of a frame, in a PSDU of length that is greater than dot11RTSThreshold, that is made before a failure condition is indicated." DEFVAL { 4 } ::= { dot11OperationEntry 4 }
I will have a look at the standard. This default value of 7 is there for long time, I have no idea how it was chosen at the time.
You are correct, I will fix this and eventually have to need to adapt regression.
Created attachment 3098 [details] Patch to fix default MaxSlrc and default fragmentation threshold I fixed it and regression is updated, I noticed the default fragmentation threshold was also not set as per standard.
Do you mind to extend the patch to cover the following? - update CHANGES.html for changed behavior (and RELEASE_NOTES listing the bug) - in the examples/wireless directory (perhaps others), there are many statements such as the following; can they all be cleaned out? e.g. wifi-simple-adhoc.cc // disable fragmentation for frames below 2200 bytes Config::SetDefault ("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue ("2200"));
(In reply to Tom Henderson from comment #4) > Do you mind to extend the patch to cover the following? > > - update CHANGES.html for changed behavior (and RELEASE_NOTES listing the > bug) > - in the examples/wireless directory (perhaps others), there are many > statements such as the following; can they all be cleaned out? > > e.g. wifi-simple-adhoc.cc > > // disable fragmentation for frames below 2200 bytes > Config::SetDefault > ("ns3::WifiRemoteStationManager::FragmentationThreshold", StringValue > ("2200")); Tom, sure I will check those points.
Working on Tom's comment, then pushing.
Fixed in changeset 13609:9f6cce4ac842