Bug 67 - separation of TCP and IP headers
separation of TCP and IP headers
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: internet
pre-release
PC Linux
: P5 enhancement
Assigned To: ns-bugs
: feature-request
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-07 10:48 UTC by Toby Moncaster
Modified: 2008-07-01 13:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toby Moncaster 2007-08-07 10:48:20 UTC
We have been working on writing NS2 models of network-layer congestion control protocols. One of the problems we have encountered is that NS2 doesn't properly separate the functionality of TCP and IP and in particular doesn't correctly separate their headers.

Can I just check whether there is the intention to do thiings differently in NS3? It would be far easier for our simulaiton models if we were able to directly manipulate the IP and TCP headers at the bit level. The nearest NS2 currently seems to get to this is the tcp_flags field in tcp.h It would be good if this approach could be repeated for all the header fields in both TCp and IP
Comment 1 Tom Henderson 2007-08-08 00:08:19 UTC
Toby,
If you want to follow up on this discussion, please send it to ns-developers list.

we do plan to have more faithful representation of transport and IP headers in ns-3.  the packet format is natively serialized for emulation, so you should have access to change whatever fields you want, but typically through a C++ class that provides access methods on the header fields.  Actually, the current code in ns-3-dev for Ipv4 and UDP should show an example of this.

Here is some more on the ns-3 packet design:
http://www.nsnam.org/docs/architecture/node25.html