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

Re: ErrorModel in multicast



Hello Jaehee,

The following script can install an ErrorModel.

    set em [new ErrorModel]
    $em unit byte
    $em set rate_ 0.01
    $em drop-target [new Agent/Null]
    [$ns set link_([$node0 id]:[$node1 id])] install-error $em

It seems to me that you MUST specify a drop-target or ns won't drop the error
packets.

JY> Does anybody know how can I set the link loss for multicast?
JY> I set it for unicast, and it worked. However, when I set it to one of
JY> links in multicast,
JY> there were no packet loss.
JY> I wrote the codes as follows:

JY>     set lossylink_ [$ns link $n(1) $n(0)]
JY>     set em [new ErrorModule Fid]
JY>     set errmodel [new ErrorModel]
JY>     $errmodel unit pkt
JY>     $lossylink_ errormodule $em

JY> I appreciate any comments.
JY> Jaehee




Best regards,
 Huang                            mailto:[email protected]