Loss Monitor in NS2

  • Loss Monitor is attached with receiver node.Loss Monitor objects trace out the lost packets, and received packets details.Packet Loss is measured by accessing the loss monitor object.

    set lm [new Agent/LossMonitor]
    $ns attach-agent $receiverNode $lm