self-confidence,the source of all the power

导航

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:

posted on 2012-03-13 10:06  漩涡鸣人  阅读(643)  评论(0编辑  收藏  举报