<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi Aaron, </div><div><br></div><div>Sorry for the confusion.  But here is the basic rule that I tried to explain in the docs, but apparently fail (you're not the first one who confused).</div><div><br></div><div>HopCount is increased any time "Send" is called from the forwarder side.  forwarder -> other node; forwarder -> applications.  It is never increased when application sends anything towards the forwarder, since it doesn't use "Send" method, it uses a different mechanism provided by AppFace/ApiFace.</div><div><br></div><div>So. Again.  <span style="font-family: Menlo-Regular;">When application sends out interest/data, hop count is not increased (send out is done via an appFace callback), when application receives interest/data, hop count **is** increased.</span></div><div><span style="font-family: Menlo-Regular;"><br></span></div><div><span style="font-family: Menlo-Regular;">Hop count cannot be zero.  If data is satisfied from local cache, hop count would be 1 (app->forwarder +0, forwarder->app +1).</span></div><div><br></div><div><font face="Menlo-Regular">Is it still confusing?</font></div><div><font face="Menlo-Regular"><br></font></div><div><font face="Menlo-Regular">---</font></div><div><font face="Menlo-Regular">Alex</font></div><div><br></div><br><div><div>On Mar 25, 2014, at 11:52 PM, Aaron <<a href="mailto:aaronishere@qq.com">aaronishere@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.5; font-family: Î¢ÈíÑźÚ; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 10px;"><div>Hi, Alex</div><div> </div><div>Why the HopCounts in the AppDelayTracer can be an odd hop counts? Since one interest matches one data, if the  hop counts combine the interest and data, it should be a even hop counts. What causes an odd hop counts? </div><div> </div><div>Another question is that, the hop counts can be zero if the consumer gets data from its access node, is that right? I'm not sure how the consumer as an application sends its interest to the access node in the code?</div><div> </div><div>void</div><div><div>Consumer::SendPacket ()</div><div>{</div><div>   ......</div><div>  m_transmittedInterests (interest, this, m_face);</div><div>  m_face->ReceiveInterest (interest);</div><div>  .....</div><div>}</div><div> </div><div> m_face->ReceiveInterest (interest); It seems to send the interest to the AppFace that is towards access node.</div><div> </div><div> </div><div><div>bool</div><div>Face::ReceiveInterest (Ptr<Interest> interest)</div><div>{</div><div>  if (!IsUp ())</div><div>    {</div><div>      // no tracing here. If we were off while receiving, we shouldn't even know that something was there</div><div>      return false;</div><div>    }</div><div> </div><div>  m_upstreamInterestHandler (this, interest);</div><div>  return true;</div><div>}</div>  </div></div><div>I'not sure which function will call the m_upstreamInterestHandler so that the interest is finally sent to the ForwardingStrategy::Oninterest()?</div><div> </div><div> </div><hr align="left" size="1" style="width: 210px; height: 1px;"><div><span>Aaron</span></div></div></blockquote></div><br></body></html>