Amazing technological breakthrough possible @S-Logix

Office Address

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

Social List

How to set transmission range of the nodes in NS2?

  • Threshold.exe file is located in following directory.


  • 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
    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