首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在NS-3中使用Content Store

在NS-3中使用Content Store
EN

Stack Overflow用户
提问于 2017-01-31 20:56:58
回答 1查看 157关注 0票数 0

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

代码语言:javascript
复制
 ndn::StackHelper ndnHelper;
  ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "100");
  ndnHelper.InstallAll()
EN

回答 1

Stack Overflow用户

发布于 2017-03-02 19:26:45

尝试使用以下命令更改CS大小

代码语言:javascript
复制
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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41958201

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档