[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] multiple flows
Apu Kapadia wrote:
> Hi, I am already doing that. However, when I try to work on 201 flows for
> example, it throws an exception at flow 199.
>
> Regards,
> Apu
>
> > I don't think you cannot access a flow monitor object using list operators
> > such as lindex. You need to obtain a list of flows first with:
> >
> > set flowlist [$flowmon flows]
> >
> > and then you will be able to work with the list in the way you wanted:
> >
> > set flowmon_id [lindex $flowlist $i]
> > puts $dropfile "[$flowmon_id set pdrops_]
> >
> > -- Felix Hernandez
> >
Are your stats per flow correct now?
The exception sounds like an overflow. Check flowmon.cc, where you will find
this code:
char*
FlowMon::flow_list()
{
...
fprintf(stderr, "FlowMon:: flow list exceeded working buffer\n");
fprintf(stderr, "\t recompile ns with larger FlowMon::wrk_[] array\n");
...
}
and also
char wrk_[2048]; // big enough to hold flow list
You can try to increase the buffer size.
-- Felix Hernandez