Please see inline below...

George Schuler wrote:
> Hello,
> 
> My simulation consists of both wireless and wired nodes. I have come
> up with a new header format for the wireless nodes.
> 
> 
> The NS manual says that whatever headers have to be removed is to be
> specified before the beginning of simulation. Therefore, when I ask NS
> to remove tcp and ip headers from the packet, it does that for the
> whole simulation. So eventually I can't route packets on the wired
> part of my network using traditional routing.
I am not sure if my comment is of any help to you, but as far as I
understood removal of headers only results less RAM needed to run your
simulation. If you carry the (unused) extra headers or not has no affect
on your actual simulation results since this data is only present in the
simulator, it is not simulated.
This said, unless you run an extremely long simulation with an enormous
amount of packets and you run out of memory on your system, there is no
need to remove the unused headers.
(Again: as far as I understood section 12.1.2 in the manual, but I could
very well be wrong... Anybody?)

Also, you can remove all headers and then simply add the headers needed
for your wired routing. This would result in some memory savings, even
though you carry some overhead on your "wireless packets".


> 
> 
> Is it possible that for some packets I am able to include only tcp and
> ip headers ONLY and for the rest of the packets, my newly defined
> header?
> 
> 
> Thanks!
> George Schuler
> 

Good Luck,

Claus

PS: In case you find something that could be helpful for other ns2 users
as well, please go ahead and update the ns2 wiki at
http://nsnam.isi.edu/nsnam/index.php/Main_Page.

-- 
Claus Christmann
Graduate Research Assistant

Georgia Institute of Technology
270 Ferst Drive
Atlanta, GA 30332-0150

http://uav.ae.gatech.edu

Reply via email to