Obtaining metrics

Packet-level trace helpers

  • ndn::L3RateTracer
    javascript:void(null)跟踪NDN节点转发的Interest/Data包的以字节为单位的速率和包的数量
    以下示例跟踪所有节点:
// the following should be put just before calling Simulator::Run in the scenario

L3RateTracer::InstallAll("rate-trace.txt", Seconds(1.0));

Simulator::Run();

...

输出文件格式是制表符分隔值,第一行指定列的名称。 有关列的说明,请参阅下表:


  • L2Tracer
    这个跟踪器在本质上类似于ndn :: L3RateTracer,但是它当前只跟踪第2层上的数据包丢弃(例如,由于传输队列溢出)。
// the following should be put just before calling Simulator::Run in the scenario

L2RateTracer::InstallAll("drop-trace.txt", Seconds(0.5));

Simulator::Run();

...

Content store trace helper

NOTE: This tracer works ONLY when the OldContentStore structure is used!

Application-level trace helper

  • ndn::AppDelayTracer
    通过使用ndn :: AppDelayTracer,可以获得有关发送Interest和接收相应数据包之间的延迟的数据。
// the following should be put just before calling Simulator::Run in the scenario

AppDelayTracer::InstallAll("app-delays-trace.txt");

Simulator::Run();

...
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,850评论 19 139
  • 背景 一年多以前我在知乎上答了有关LeetCode的问题, 分享了一些自己做题目的经验。 张土汪:刷leetcod...
    土汪阅读 14,356评论 0 33
  • ns3-manual.pdf 1.14节 上面的章节中介绍了ns3的一些重要的编程的概念。例如,保存引用计数方便内...
    shawn168阅读 6,430评论 0 1
  • 简介 用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者...
    保川阅读 11,178评论 1 13
  • 雨还在空中飘荡,飘过山间,轻轻来到我的眉梢上。蒙蒙细雨,在不停地下着,思念的愁绪似乎随着山间小雨一同流入庐山之堤....
    匿名居士阅读 2,713评论 0 0

友情链接更多精彩内容