[ns] UDP congestion control

2015-06-07 Thread Zakaria Derder
Hello, I have a wired sensor network topology in NS2 and i'm using UDP protocol. Is there anyway to detect congestion on the network links so i can slow the rate of UDP packets sent? I'm thinking measuring the number of packets in a link queue or maybe measure incoming traffic rate with the ava

[ns] problem in generating xgraph its urgent

2015-06-07 Thread alok kumar
sir, I am using below tcl code to generate xgraph but it give the following error: "can't read "n0": no such variable while executing "$ns attach-agent $n0 $udp0" (procedure "attach-expoo-traffic" line 6) invoked from within "attach-expoo-traffic $n4 $Sink0 200 2s 1s 100k"