|
Bugzilla – Full Text Bug Listing |
| Summary: | 802.11n/ac/ax maximum TXOP is not properly enforced | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
| Component: | wifi | Assignee: | sebastien.deronne |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | ns-bugs, selinis.g |
| Priority: | P3 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | patch | ||
|
Description
Tom Henderson
2017-06-19 23:05:25 UTC
Tom, you forgot to mention you also need to set the standard to 802.11ac:
- wifi.SetStandard (WIFI_PHY_STANDARD_80211n_5GHZ);
+ wifi.SetStandard (WIFI_PHY_STANDARD_80211ac);
I checked and indeed the condition should become:
- if (m_currentTxVector.GetMode ().GetModulationClass () == WIFI_MOD_CLASS_VHT)
+ if (m_stationManager->HasVhtSupported ())
{
aPPDUMaxTime = MicroSeconds (5484);
}
With this change I do not go over 5.484ms.
If fine for you, I will push the patch.
I also see you mention 802.11n in the description, this is only for 802.11ac IMO. Please confirm :-) I think that 11n should be also included. Based on IEEE-802.11ac (Table 8-13c) maximum aPPDUMaxTime duration for 11n/ac is 5484 microseconds, except if Greenfield for 11n is supported. In that case aPPDUMaxTime is 10000 microseconds. So, I guess it should be something like: - Time aPPDUMaxTime = MilliSeconds (10); + Time aPPDUMaxTime = MicroSeconds (5484); + if(m_phy->GetGreenfield ()) + aPPDUMaxTime = MilliSeconds(10); // 10 Milliseconds only for GF (IEEE-802.11ac (Table 8-13c)) (In reply to Ioannis from comment #3) > I think that 11n should be also included. Based on IEEE-802.11ac (Table > 8-13c) > maximum aPPDUMaxTime duration for 11n/ac is 5484 microseconds, except if > Greenfield for 11n is supported. In that case aPPDUMaxTime is 10000 > microseconds. > > So, I guess it should be something like: > > - Time aPPDUMaxTime = MilliSeconds (10); > + Time aPPDUMaxTime = MicroSeconds (5484); > > + if(m_phy->GetGreenfield ()) > + aPPDUMaxTime = MilliSeconds(10); // 10 Milliseconds only for GF > (IEEE-802.11ac (Table 8-13c)) I agree with Ioannis that 11n should be included. My only small suggestion is to change MilliSeconds (10) to MicroSeconds (10000), for future searchability of this value. OK, I had missed the 802.11n case in the provided link, I agree with the changes and I will prepare a final patch. Any idea what it should be for 802.11ax? (In reply to sebastien.deronne from comment #5) > OK, I had missed the 802.11n case in the provided link, I agree with the > changes and I will prepare a final patch. Any idea what it should be for > 802.11ax? Based on the latest draft, 11ax will use the same value as 11ac (5484 Microseconds) Created attachment 2872 [details]
patch
Here is the final patch, I will push it soon so that it can be part of the next release.
(In reply to sebastien.deronne from comment #7) > Created attachment 2872 [details] > patch > > Here is the final patch, I will push it soon so that it can be part of the > next release. Works for me. fixed in changeset 12943:05b8f847754d |