This page discusses various implementation issues with the ns2 simulator. The purpose of this *informal* discussion is to collectively come up with the most effective means of implementing resilinet related projects in ns2.
Application Layer (Traffic generation, node mobility)
MAC Layer (802.11, SimpleMAC)
Q1. How do we change the buffer size in the 802.11 mac?
Q1. How do we change the default transmission range while using the 802.11 mac ?
The default transmission range is set at 250m. Most of the default values for various protocol layers are set in the file ~/ns-2.29/tcl/lib/ns-default.tcl. However, transmission range is not a direct variable in ns. In order to modify the transmission range there are a number of variable that have to be set.
Phy/WirelessPhy set CPThresh_ 10.0 : Sets the capture threshold.
Phy/WirelessPhy set CSThresh_ 1.559e-11 : Sets the Carrier sense threshold
Phy/WirelessPhy set RXThresh_ 3.652e-10 : Sets the Receiver sensitivity
Phy/WirelessPhy set bandwidth_ 2e6 : Sets the channel bandwidth
Phy/WirelessPhy set Pt_ 0.28183815 : Sets the power output (transmit power)
Phy/WirelessPhy set freq_ 914e+6 : Sets the channel frequency
Phy/WirelessPhy set L_ 1.0 : Sets the system loss