zoukankan      html  css  js  c++  java
  • 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:

  • 相关阅读:
    HDU 1348 Wall
    HDU 2202 最大三角形
    HDU 2215 Maple trees
    HDU 1147 Pick-up sticks
    HDU 1392 Surround the Trees
    风语时光
    HDU 1115 Lifting the Stone
    HDU 1086 You can Solve a Geometry Problem too
    HDU 2108 Shape of HDU
    HDU 3360 National Treasures
  • 原文地址:https://www.cnblogs.com/lovemo1314/p/2393303.html
Copyright © 2011-2022 走看看