[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Connecting LossMonitor to ErrorModel - success
hi there,
i found out that you have to link the drop-target AFTER you linked the
target like in the example below:
---snip---
set n2 [$ns node]
set n3 [$ns node]
$ns simplex-link $n2 $n3 1000k 50ms DropTail
set lm0 [new Agent/LossMonitor]
$ns attach-agent $n2 $lm0
set loss_mod [new ErrorModel]
$loss_mod set rate_ 0.01
$loss_mod unit pkt
$ns link-lossmodel $loss_mod $n2 $n3
$loss_mod drop-target $lm0
---snip---
if you change the order of the last two lines, you wount get any packet
running into the LossMonitor.
after linking the LossMonitor to the drop-target, you wount get the lossed
packages displayed in nam animation - unfortunately. maybe i have to link
something to the LossMonitor.
od
--
Oliver Dawid * [email protected] * http://www.fet.uni-hannover.de/~od/