NS3系列—9———NS3 IP首部校验和
http://www.cnblogs.com/lovemo1314/archive/2012/03/13/2393303.html
NS3 IP首部校验和
未作整理。。。
NS3中的包IP首部校验和功能是默认关闭的,需要主动设置才行。。
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));
On 6月25日, 下午11时10分, Qingqing <y.qing...@gmail.com> wrote: