[ns] NAM trace file -e option
Faisal Siddiqui
fms0989 at gmail.com
Tue Apr 25 08:47:59 PDT 2006
Hi,
I am a bit confused with the -e option in the NAM trace file. I believe it
means the size of the packet. The wording "size of the packet" is throwing
me off. Does it means the size of the packet header that we are using in our
script or is it something else. For instance, when I simulate my script with
the RTP agents, it tells me the size of the rtp packet header is 210 bytes.
But when I look in the code and count the number of bytes that the packet
reserves, it is as follows:
########################
struct hdr_rtp {
u_int32_t srcid_; // 4 bytes
int seqno_; // 4 bytes
u_int16_t flags_; // 2 bytes
static int offset_; // 4 bytes
inline static int& offset() {} // 4 bytes
inline static hdr_rtp* access() {} // 4 bytes
u_int32_t& srcid() {} // 4 bytes
int& seqno() {} // 4 bytes
u_int16_t& flags() {} // 4 bytes
};
########################
So from here, the size of the RTP packet header is only 34 bytes.
Why does in the trace file with -e option, we get the size of the packet as
210 bytes?
Any help is highly appreciated.
Thanks,
- Faisal
More information about the Ns-users
mailing list