[Ns-developers] Reproducing Broch AODV Performance Numbers
Nicola Baldo
nbaldo at cttc.es
Thu Apr 15 02:44:25 PDT 2010
> Is is possible to make a simple change to ns-3 such that it
> receives based on received signal strength like ns-2 in order to
> rule this out or in? Just a temporary toggle to check if this
> could explain the differences in performance?
As a quick hack, you can modify YansWifiPhy::EndReceive as follows:
- if (m_random.GetValue () > snrPer.per)
+ if (event->GetRxPowerW () > RxPowerThresholdW)
this bypasses the interference model of YansWifiPhy, and allows you to
use a simple threshold, as ns-2 does.
As for the value of the CS threshold in the Broch paper, you should sett
the EnergyDetectionThreshold attribute in YansWifiPhy to an equivalent
value.
As for capture... that's not trivial. Maybe just neglect it for the
moment and see what results you get.
Finally, let me say that if anybody wants to develop a new WifiPhy
implementation that uses a simple protocol interference model (i.e., a
threshold model like the one in ns-2), I would support merging that.
But I think it should be separate from YansWifiPhy.
Nicola
More information about the Ns-developers
mailing list