[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] problem in ErrorModeling.......
hi seniors,
i'm new to ns. Currnetly i'm dealing with erroneous network in
which i have to insert artificial errors. I went thro' ErrorModel in NS. I
wrote the following code to generate errors....
************************
set em [new ErrorModel]
$em unit pkt
$em set rate_ 0.6
$em ranvar [new RandomVariable/Uniform]
$em drop-target [new Agent/Null]
$ns link-lossmodel $em $n2 $n3
***************************
the problem is... the packet is dropped after the queue(deque) of the
(errorneous) link. What i expected is eventhough the packet got currupted
it will traverse upto the destination and there it is checked for errors
(as tcp is end-to-end). How can i acheive this?
thanks in advance,
mahesh.