[ns] [bug] add loss models to both directions of a link causes all packets dropped

2009-10-21 Thread Steve Chen
[Bug Report] - Category: Installation Failure Package: ns 2.34 OS:Redhat Enterprise 3.5 Environment Variables: LD_LIBRARY_PATH= TCL_LIBRARY= TK_LIBRARY= - Description: Happens every time. Script: # A linear network n(0)--n(1)

[ns] link loss bug?

2009-10-21 Thread Steve Chen
I have a script that has six linearly connected nodes n(0)--n(1)--n(2)--n(3)--n(4)--n(5). I have one exponential source at n(0) and a sink at n(5). I have injected a loss model at the link from n(1) to n(2). Everything worked according to expectation. Then, in addition, I added the same loss mod

[ns] ErrorModel unit bit not working?

2009-09-04 Thread Steve Chen
All- I have used the following code directly from ns manual, it works just fine. But when I change the unit to bit there was no discarded packets. Anyone has a fix? set loss_module [new ErrorModel} $loss_module set rate_ 0.01 $loss_module unit pkt $loss_module ranvar [new RandomVariable/Uniform]

[ns] Error while diffserv with DV

2009-08-27 Thread Steve Chen
All - In 2002 the same error was posted but surfing the web I did not find a credible response. I have a script that combines diffserv and multipath using rtproto DV and ns2 complained with an error message: "No policy entry found for source ..." Not trusting my script I copied ds-cbr-tb.tcl fro