On Monday 06 March 2006 09:26, [EMAIL PROTECTED] wrote:
> Could anyone please tell me how to configure error models with a wireless
> channel in ns2.28. Actually I tried it as mentioned in the manual like
> this:
I use the following code and it works:
proc UniformErr {} {
set err [new ErrorModel]
$err unit packet
$err set rate_ 0.005 # 0.5%
$err ranvar [new RandomVariable/Uniform]
$err drop-target [new Agent/Null]
return $err
}
$ns node-config -IncomingErrProc UniformErr
Daniel.
--
Dipl.-Inf. Daniel Mahrenholz, University of Magdeburg, Germany
Homepage: http://ivs.cs.uni-magdeburg.de/~mahrenho