Research breakthrough possible @S-Logix pro@slogix.in

Office Address

  • 2nd Floor, #7a, High School Road, Secretariat Colony Ambattur, Chennai-600053 (Landmark: SRM School) Tamil Nadu, India
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to set various radio propagation models in NS2?

  • Three signal propagation models available in ns2 are

    1. FreeSpace
    2. TwoRayGround
    3. Shadowing

  • #Propagation Model 1: FreeSpace

    set val(prop) Propagation/ FreeSpace ;# radio-propagation model
    # configure the nodes
    $ns node-config – propType $val(prop) \
    # Node Creation
    set node1 [$ns node]

  • #Propagation Model 2: TwoRayGround

    set val(prop) Propagation/TwoRayGround ;# radio-propagation model
    # configure the nodes
    $ns node-config – propType $val(prop) \
    # Node Creation
    set node1 [$ns node][$ns node]

  • #Propagation Model 3: Shadowing

    set val(prop) Propagation/ Shadowing ;# radio-propagation model
    # configure the nodes
    $ns node-config – propType $val(prop) \
    # Node Creation
    set node1 [$ns node][$ns node][$ns node]