Link Failure Creation in ns2

  • Link failure between node1 and node2 is created using the following command in tcl script

    $ns rtmodel-at 3.0 down $node1 $node2

  • Link failure recovery between node1 and node2 is created using the following command in tcl script

    $ns rtmodel-at 5.880511 up $Router3 $Router4

  • Link Failure in wireless network:

    Link failure between wireless nodes can be achieved by assigning mobility to the node in tcl script