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 available bandwidth on the link? I don't know it's doable though. Can anybody help me to detect congestion in UDP?