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

Re: [ns] Wireless + Exponential/Pareto Traffic Generator doubt



On Monday 02 July 2001 09:07, you wrote:

> (null)- invalid packet type (exp).

A quick search turned up cmu-trace.cc as the home for this particular 
message.  It would seem that the exponential traffic generator is 
setting the packet type to exp (probably a defined constant of 
PT_EXP, but I didn't look that hard :).  When method format gets the 
packet, it uses the packet type in a switch-case construct.  There is 
no case that matches "exp", so it defaults to printing out "invalid 
packet type".

This begs a larger question:  why are traffic generators changing the 
types of the packets?

> I am getting the same error with Pareto as well.

I'm guessing that Pareto changes the packet type to something that 
the trace functions don't understand.

> The same thing works fine if I change the agent to
> CBR...

The trace functions have a case for CBR type packets.  So CBR should 
cause no problems.  I still don't know why we care if the packets 
were generated from a CBR source.

> Please tell me do I need to make some changes during
> the configuration of the ndoe itself ?

You would have to change the source to something that the trace 
functions understand; or you could change the source code for the 
trace functions to make them understand the exp packet type.

-- 
Brian Lee Bowers	|	RADIANT Team (Summer Intern)
bowersb@lanl.gov	|	Los Alamos National Laboratory