#5, First Floor, 4th Street , Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to set transmission range in ns2?
  • Threshold.exe file is located in following directory.

    \home\ns-allinone-2.30\ns-2.30\indep-utils\propagation

  • Execute the following commands to set the various transmission ranges.

    ./threshold –m TwoRayGround 250
    Phy/WirelessPhy set CPThresh_ 10.0
    Phy/WirelessPhy set CSThresh_ 3.65262e-10 ;#250m
    Phy/WirelessPhy set RXThresh_ 3.65262e-10 ;#250m
    Phy/WirelessPhy set Rb_ 2*1e6
    Phy/WirelessPhy set Pt_ 0.2818
    Phy/WirelessPhy set freq_ 914e+6
    Phy/WirelessPhy set L_ 1.0
    Where,
    TwoRayGround → Radio Propagation Model
    250 → Distance in meters
    CPThresh → Capture Threshold
    CSThresh → Carrier Sense Threshold
    RxThresh → Receiver Sensitivity Threshold
    Pt → Transmission Power
    freq → frequency
    L →System Loss