[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Collecting Congestion Statistics



On Wed, 18 Apr 2001, Shekhar Kshirsagar wrote:

> Can somebody please provide me easiest possible way to collect congestion
> statistics within ns?
> 
> I want to be able to get what percentage of packets are being dropped at
> each node and how many hops the packet had already travelled from the source
> before being dropped.

There's an awk script off my ns page that gives delay statistics per
packet. Modifying it to count hops is trivial; modifying it to only
track packets not reaching the destination is feasible, and then the
stats you want are straighforward. Although I used it for a 
single flow, since packet_id is a unique index, it should run through
any tracefile.

http://www.ee.surrey.ac.uk/Personal/L.Wood/ns/
  
L.

<L.Wood@surrey.ac.uk>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>