Hi, I'm the beginner of NS2.
I'm using the error model to simlatue the packet error in wireless system.
But since I set the error rate to 1, the simulation can still work. It seem that the error model could not raise the mac layer retransmission, and the wireless system did not crash.
The error model code I used:
set loss_module [new ErrorModel]
$loss_module set rate_ 0.01
$loss_module unit pkt
$loss_module ranvar [new RandomVariable/Uniform]
$loss_module drop-target [new Agent/Null]
$ns node-config -IncomingErrProc
$loss_module -OutgoingErrProc $loss_module
So can you provide some example can simulate the above scenario.