I have to simulate the TCP RED congestion control. For this i have to retrieve the values of various queue parameters when certain events occur, like packet arrivals, packet departures etc, instead of just sampling at regular intervals. Can this be done in NS. bye