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

[ns] Is it possible ?!!!



hi ns experts,
Sorry for repeating this question.
It is most urgent to complete my simulation.
I am doing little research by using ns-2.1b7a on Linux machine.
I tried to build Error Model in wireless simulation but it gave me error.
The following are the model and the error
 
I would appreciate your help very much
Thanks
 
THE BASIC MODEL:
 
source ns-errmodel.tcl
set emm [new ErrorModel ]
$emm unit pkt
$emm set rate_ 0.2
$emm ranvar [new RandomVariable/Uniform]
 
$emm drop-target [new Agent/Null]
$ns_ lossmodel $emm $node_(6) $node_(7)
   
 
THE ERROR:
 
invalid command name ""
    while executing
"$link errormodule $lossobj"
    (procedure "_o4" line 3)
    (Simulator lossmodel line 3)
    invoked from within
"$ns_ lossmodel $emm $node_(6) $node_(7)"