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();

...

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


Obtaining metrics_第1张图片
  • 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();

...
Obtaining metrics_第2张图片

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();

...
Obtaining metrics_第3张图片

你可能感兴趣的:(Obtaining metrics)