Radio propagation models Settings in TCL

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