I think I've understood a few mor things since my previous mail...
I think that ns2 take into account the header, but doesn't register it in
nam file, that's why it is not viewable in nam. But now my question is, how
to write header length into nam file ?
I've tried to write variable hdrlen_ but this variable is equal to 10128 and
it's surprising because I've removed all headers exepts comon and IP, so the
size of my header shoulb be less than 10128.
My second question will be, how to use this stored header length into nam...

I browsed the forum and saw that only a few messages got response...
Hope mine get one.



Aguilla wrote:
> 
> 
> Hi,
> I'm a new user of ns2.32 and I'm wondering about Packet Header and
> encapsulation.
> I've read that ns2 automatically add all available headers to each packet.
> But, in my first simulation I've sent a packet of 500b and when I look at
> the packet in nam. 
> It is only 500b. Sould not it be 500b + some header bits ?
> If not, what do I have to add to my tcl script to have a header added to
> my packet ?
> Maybe it's just nam which does not show headers ? I don't know...
> 
> 
> I've tried to find answer by myself on the web but I found nothing.
> 
> Thanks for any help
> 
> Guillaume
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Packet-Header-and-Encapsulation---tp16273885p16324312.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to