【问题标题】:Using Content Store in NS-3在 NS-3 中使用内容存储
【发布时间】:2017-01-31 12:56:58
【问题描述】:

我是 ns-3 的新手,当我在 ns-3 中创建新场景时,我不知道如何使用内容存储参数。我一直在改变大小,但结果似乎没有太大变化。关于如何有效使用内容存储的任何想法?

 ndn::StackHelper ndnHelper;
  ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "100");
  ndnHelper.InstallAll()

【问题讨论】:

  • 实际上包含您的源代码将有助于找出问题可能是什么
  • 这里的实际 maxsize 是每个节点的“缓冲区”?

标签: c++ networking network-programming ns-3


【解决方案1】:

尝试更改 CS 大小

Config::Set ("/NodeList/0/$ns3::ndn::ContentStore/MaxSize", UintegerValue (1)); // number after nodeList is global ID of the node (= node->GetId ())
Config::Set ("/NodeList/1/$ns3::ndn::ContentStore/MaxSize", UintegerValue (2));
Config::Set ("/NodeList/2/$ns3::ndn::ContentStore/MaxSize", UintegerValue (200));

来源:http://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-February/000080.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-13
    • 2010-12-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-10
    • 2021-08-31
    相关资源
    最近更新 更多