[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] [Urgently Help Required] Error Model in Wireless Scenario




Hello friends ,
  
I am using ns2 to study the performance of algorithms in mobile ad hoc networks and i want to introduce the packet losses and error model in to the network.

For this I have gone through the Ns Manual Chapter No 13 ,18 and 19. I have inserted the following code for inducing error in wireless network through packet losses.

proc UniformErr { } {
set loss_module [New ErrorModel]
$loss_module set rate_ 0.1
$loss_module unit pkt
$loss_module ranvar [New RandomVariable/Uniform]
$loss_module drop-target [New Agent/Null]
}

// it was called through

$ns_ node-config -errProc UniformErr\
                 -agentTrace ON\
                 -routerTrace ON\
                 -macTrace ON\ 

Adding this model does not work as there is no change in number of packets dropped after or before adding this model.
 
Could Any body suggest how Error model has to be written into the script.

thanks
Sriram