opps, I missed your first email.
> Would src/devices/wifi/dca-txop.cc:457 (in correspondence to "MY_DEBUG
> ("collision")") be a good idea?
Well, it really depends on what you define as being a collision but this
debug statement will be triggered when the user has just requested
access to the medium, that the backoff count has reached zero and that
the medium is busy.
regards,
Mathieu
> > Well, it really depends on what you define as being a collision but this
> > debug statement will be triggered when the user has just requested
> > access to the medium, that the backoff count has reached zero and that
> > the medium is busy.
>
> I am just interested in an indication that "the medium is becoming
> crowdy", so I guess that that debug statement would be enough.
A decent indicator of this is the percentage of busy time on the medium
which you could calculate from the PHY trace events. I remember seeing
papers which inferred stuff from that busy/idle ratio. Don't ask me
which.
Mathieu
> Btw, which is the trace-path of DcaTxop? It is not stated in the
There is none because m_dca is not declared as an attribute in
nqap-wifi-mac.cc, nqsta-wifi-mac.cc and adhoc-wifi-mac.cc
You need something like this (untested):
.AddAttribute ("DcaTxop", "XXX",
PointerValue (),
MakePointerAccessor (&NqstaWifiMac::DoGetDcaTxop),
MakePointerChecker<DcaTxop> ())
regards,
Mathieu