On 04/25/2016 07:05 PM, Sab NT wrote:
> Hi everyone,
>
> I am trying to explore the Laa -wifi coexistence in default and Lbt
> cases. I am able to sun laa-wifi-simple.cc. However I want to control
> the Wifi backoff CW based on some patterns of the traffic but not sure
> how to do it efficiently.
> I went through the laa-wifi-coexistence code and found that
> scenario-helper.cc has a function "ConfigureWifiCwCallback()" which
> calls traceback functions for CW change but this code is commented out
> in the code. Is there any problem/bug with the code or it is just
> commented out as not required for the use-case?
Hmm, it seems that is dead code now, replaced by the code controlled by
the 'logCwChanges' global value.
Do you suggest if I can
> use the function for dynamic reconfiguring Wifi backoff CW
No, that is just tracing the outcome of Cw backoff.
or could you
> please suggest any other way I can do this.
The parameters for CWmin/max are set in:
void
WifiMac::ConfigureDcf (Ptr<Dcf> dcf, uint32_t cwmin, uint32_t cwmax,
enum AcIndex ac)
There are no user-accessible ways to change those from the standard
values, during run-time, that I can recall.
If you want to instead dynamically modify the current backoff value
during run-time (if that is what you are instead asking), again, I am
not aware of any API to allow users to do that, so you would have to
modify the code to access somehow the DcfState object that holds the
backoff and call DcfState::UpdateBackoffSlotsNow () method.
Hope this helps,
Tom
>
> Many thanks in advance.
>
>
>
> --
> Posting to this group should follow these guidelines
>
https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> ---
> You received this message because you are subscribed to the Google
> Groups "ns-3-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
ns-3-users+...@googlegroups.com
> <mailto:
ns-3-users+...@googlegroups.com>.
> To post to this group, send email to
ns-3-...@googlegroups.com
> <mailto:
ns-3-...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/ns-3-users.
> For more options, visit
https://groups.google.com/d/optout.