<div dir="ltr">Hi.<div><br></div><div>Calculating the size of Interest/Data packet wire, L3 tracer is done using the wireEncode() API. </div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/tracers/ndn-l3-rate-tracer.cpp#L294">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/utils/tracers/ndn-l3-rate-tracer.cpp#L294</a></div><div><br></div>if (interest.hasWire()) {<br>    std::get<1>(m_stats[face.shared_from_this()]).m_outInterests +=<br>    interest.wireEncode().size();<br>}</blockquote><div></div><div><br></div><div>In the implementation of wireEncode() also, the same check is being done. </div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="https://github.com/named-data-ndnSIM/ndn-cxx/blob/36ec104e23ba5395a8b4df411b776cdbef9c5cd4/src/interest.cpp#L279">https://github.com/named-data-ndnSIM/ndn-cxx/blob/36ec104e23ba5395a8b4df411b776cdbef9c5cd4/src/interest.cpp#L279</a></div>const Block&<br>Interest::wireEncode() const<br>{<br>    if (m_wire.hasWire())<br>    return m_wire;<div>    ...</div><div>}</div></blockquote><div></div><div><br></div><div>Perhaps this is a redundant check inside L3 tracer. But, is this the only way to know the size of data being transferred over or received from the face?</div><div><br></div><div>/anil.</div><div><br></div></div>