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

Re: [ns] Queue monitoring in a lan




hi again,
excuse the naive question, being new to ns doesnt help.
  how can I record the simulation time from inside the mac_802_3.cc file
before a particular event? can  I straightaway get a handle to the timer
(how) and use some of its method?

thanks
Neeraj


On Sun, 17 Sep 2000, Alefiya Hussain wrote:

> 
> If i understand correctly what you want to measure is the time spent by
> the packet at the mac layer. 
> 
> If you dont want to generate tracefiles what you could do is
> insert some code in the mac-802_3.cc file. 
> Record when the mac layers sends it down and when it enters the resume
> function defined in the mac_802_3.cc file. 
> 
> The difference between the two will give you the time spent at the mac
> layer
> 
> -alefiya
> 
> On Sun, 17 Sep 2000, Neeraj - Khandelwal wrote:
> 
> > 
> > that was what I was going to do initially. then I thought of automating it
> > using some object, as the file runs into megabytes with lots of nodes
> > around. guess will have to write a script to do that .. ( which I am not
> > vwery good at :-(
> > 
> > Neeraj
> > 
> > 
> > 
> > 
> > On Sun, 17 Sep 2000, Lloyd Wood wrote:
> > 
> > > On Sun, 17 Sep 2000, Neeraj - Khandelwal wrote:
> > > 
> > > > yes, but what I want to measure is the queue delays for each packet, ie
> > > > the difference in time of enqueing and dequeing and not the queue size in
> > > > packets.
> > > 
> > > that's going to be in the tracefile. Just compare + and - events.
> > > 
> > > L.
> > > 
> > > <[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>
> > > 
> > > 
> > 
> 
> 
>