Setting a constant wifi datarate

70 views
Skip to first unread message

Vito Fiorentino

unread,
Dec 10, 2009, 2:18:47 PM12/10/09
to ns-3-...@googlegroups.com
Hi all,

Im trying to change wifi channel bandwith on wifi simulations in order
to make them more realistic, i understand that as default theres a
dinamic datamode bandwith, but sometimes during simulations i see that
speed is too high and non realistic
mi target is to set different values for datarate during the simulations
for example if im using 802.11b change de datarate values between all
the possible values




Does anyone knows when would be best to fix or change the bandwidth of
the channel? and set it to constants?


With fixing a particular bandwith I mean:


Config::SetDefault ("ns3::WifiRemoteStationManager::NonUnicastMode",

StringValue ("wifib-1mbs"));

// Unicasts

mesh.SetRemoteStationManager ("ns3::ConstantRateWifiManager",

//tr unicast

"DataMode", StringValue ("wifib-1mbs"),

// Config data control tr

"ControlMode", StringValue ("wifib-1mbs"));

I want to apprecciate the effects of doing this, and compare it using
a constant datarate with using the dinamic classic method
So i know how to change that values but does anyone knows when is the
best for doing it?
Thanks!!


--
Vito Fiorentino

Mathieu Lacage

unread,
Dec 15, 2009, 6:31:42 AM12/15/09
to ns-3-...@googlegroups.com


If you want to change these values _during_ the simulation, you need something like this:

Ptr<WifiNetDevice> wifi = ...;
wifi->GetRemoteStationManager ()->SetAttribute ("DataMode", ...)
wifi->GetRemoteStationManager ()->SetAttribute ("ControlMode", ...)

Mathieu
--
Mathieu Lacage <mathieu...@gmail.com>
Reply all
Reply to author
Forward
0 new messages