[Ns-developers] NS-3 Wifi contributions

Federico Maguolo maguolof at dei.unipd.it
Fri Mar 21 08:26:41 PDT 2008


Hi Mathieu

>
> Since you seem to be in a great mood, I have another question about a
> previous patch of yours: I was looking at the
> WifiRemoteStation::GetMaxSsrc/GetMaxSlrc and it occured to me that this
> could be probably changed to be more consistent with the rest of the
> class methods such as WifiRemoteStation::NeedFragmentation. i.e., I
> think it might make sense to change GetMaxSsrc to be something like
> WifiRemoteStation::NeedRetransmission

I think that a better solution is to introduce two new methods in the 
WifiRemoteStation class:
-NeedRtsRetransmission
-NeedDataRetransmission
This two methods are used when a Rts frame or a data frame fail. If you agree 
with me I've already done a patch which modify the objects. You can find this 
patch at the usual link

http://www.dei.unipd.it/wdyn/index.php?IDsezione=5517

in the section "New retransmission interface for the WifiRemoteStation".

Moreover, dealing  with this modification I found a problem the default value 
of a WifiMode has to be set: When you do not specify an explicit value to the 
attribute, the default value could be set when an object is created. I 
discovered that it is not true for the DataMode and the CtlMode of the 
ConstantRateWifiManager. To understand what I mean I suggest to try to run 
this example:

http://www.dei.unipd.it/~maguolo/example.cc

In the section "Initatial value problem for WifiMode" at the address 
http://www.dei.unipd.it/wdyn/index.php?IDsezione=5517,  you could find a fix 
proposal, but I don't know if there are a better ways. Moreover, the patch 
that you find here integrates the bugfix on the WifiMode, because I saw that 
the AllocateUid method has the same problem.

Regards,
Federico


More information about the Ns-developers mailing list