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

Re: [ns] Bit Error Rate



I use this code and you can find more information 
in the ns manual.


set loss_module1 [new ErrorModel]
$loss_module1 set rate_ 1e-7
$loss_module1 unit byte
$loss_module1 ranvar [new RandomVariable/Uniform]
$loss_module1 drop-target [new Agent/Null]
$ns lossmodel $loss_module1 $acc1 $node1_tcp

but pay attention to the unit of the error: byte

Fusun


> X-Authentication-Warning: mash.CS.Berkeley.EDU: majrdomo set sender to 
[email protected] using -f
> From: Rohit Ramani <[email protected]>
> To: [email protected]
> Subject: [ns] Bit Error Rate 
> MIME-Version: 1.0
> 
> 
> 
> Can we set the value of bit error rate or something equivalent while 
> simulating the lossy link in the ns?
> 
> Thanx in advance
> 
> Rohit Ramani