[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
errormodel
Hi,
I have a (possibly silly) question about errormodel. I have the following
fragment of Tcl code:
==
set s [$ns node]
set d [$ns node]
set r [$ns node]
$ns duplex-link $s $r 10Mb 50ms DropTail
$ns queue-limit $s $r 1000
$ns duplex-link $r $d 10Mb 50ms DropTail
$ns queue-limit $r $d 1000
set lossylink [$ns link $r $d]
set errmodel [new ErrorModel/Periodic]
$errmodel unit pkt
$errmodel set period_ 10.0
$errmodel set offset_ 1.0
$errmodel drop-target [new Agent/Null]
set em [new ErrorModule Fid]
$lossylink errormodule $em
$em insert $errmodel
$em bind $errmodel 0
===
but I do not see any errors/drops in the simulation. I have already fixed
the bug that was posted on this list: incorrect initialization of errPkt_.
I am using version 2.1b2.
Any help would be greatly appreciated.
Thanks,
-- Jitu