udp packet

198 views
Skip to first unread message

Qingqing

unread,
Jun 25, 2010, 11:10:50 AM6/25/10
to ns-3-users
Hi all,

When I use UdpEchoSever/Client, every time it shows "Header checksum:
0x0000 [incorrect, should be 0x60cd]" or something like that in the
pcap files, even the example. How can I fix this problem?

Thanks.

qingmei yao

unread,
Jun 25, 2010, 11:20:37 AM6/25/10
to ns-3-users
And when you use wireshark to look at the pcap files. It refers "6    0.015837    10.1.1.2    10.1.1.1    UDP    Source port: discard  Destination port: 49153". So I wonder what is the normal one, since I have never seen.

sen

unread,
Jun 25, 2010, 10:15:22 PM6/25/10
to ns-3-users
Just because ns-3 disable the checksum, you can enable it by
GlobalValue::Bind ("ChecksumEnabled", BooleanValue (true));

in ns-3.8:
CalcChecksum attribute changes
Four IPv4 CalcChecksum attributes (which enable the computation of
checksums that are disabled by default) have been collapsed into one
global value in class Node. These four calls:

Config::SetDefault ("ns3::Ipv4L3Protocol::CalcChecksum", BooleanValue
(true));
Config::SetDefault ("ns3::Icmpv4L4Protocol::CalcChecksum",
BooleanValue (true));
Config::SetDefault ("ns3::TcpL4Protocol::CalcChecksum", BooleanValue
(true));
Config::SetDefault ("ns3::UdpL4Protocol::CalcChecksum", BooleanValue
(true));

are replaced by one call to:
GlobalValue::Bind ("ChecksumEnabled", BooleanValue (true));

qingmei yao

unread,
Jun 25, 2010, 10:30:22 PM6/25/10
to ns-3-...@googlegroups.com
Got it, thanks:).

2010/6/25 sen <guisen...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.


Reply all
Reply to author
Forward
0 new messages