Obtaining|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 scenarioL3RateTracer::InstallAll("rate-trace.txt", Seconds(1.0)); Simulator::Run(); ...

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

Obtaining|Obtaining metrics
文章图片
  • L2Tracer
    这个跟踪器在本质上类似于ndn :: L3RateTracer,但是它当前只跟踪第2层上的数据包丢弃(例如,由于传输队列溢出)。
// the following should be put just before calling Simulator::Run in the scenarioL2RateTracer::InstallAll("drop-trace.txt", Seconds(0.5)); Simulator::Run(); ...

Obtaining|Obtaining metrics
文章图片
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 scenarioAppDelayTracer::InstallAll("app-delays-trace.txt"); Simulator::Run(); ...

Obtaining|Obtaining metrics
文章图片

    推荐阅读