[ns] How to check Link Bandwith

2015-05-25 Thread Zakaria Derder
Hi,I want to to do a condition in my TCL script to check if the incoming traffic rate is higher than the link bandwidth in order to detect a possible congestion. I don't know how to that condition line. Can anybody help?

[ns] Link Bandwith

2015-05-25 Thread Zakaria Derder
Hi, I'm struggling in making a condition in TCL script in witch i have to verify if the number of packets in a link queue has reached a certain threshold so i can prevent a congestion in that link. Can someone provide me with the code for that? Thanks.