I have  a question 

How I can introduce loss in a lan simulation, I difine my lan as:
set lan [$ns newLan "$n0 $n1" 0.5Mb 40ms LL Queue/DropTail Mac/Csma/Cd
Channel]

and the loss as:

set loss_module  [new ErrorModel]
 $loss_module set rate_ 0.0
 $loss_module ranvar [new RandomVariable/Uniform]
 $loss_module drop-target [new Agent/Null]
 # $ns lossmodel $loss_module lan

But it does not work
What can I do?

THanks in advanced

EDWIN CRUZ 
CINVESTAV AREA DE COMUNICACIONES

Reply via email to