<div dir="ltr">Hi,<br><br>

<p class="MsoNormal"><span lang="EN-US">Actually, the whole procedure of transporting an interest packet is like this:</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">A concrete consumer application, which is a
subclass of ndn::Consumer (apps/ndn-consumer.cpp), implements <span class="gmail-pl-en">ScheduleNextPacket to decide when to send a packet.</span></span></p>

<p class="MsoNormal"><span class="gmail-pl-en"><span lang="EN-US">The function SendPacket
of </span></span><span lang="EN-US">Consumer generates a sequence number and makes
up the interest packet by specified name. And it posts the packet to a face of
AppLinkService (model/ndn-app-link-service.cpp) and NullTransport by calling <span class="gmail-pl-c1">onReceiveInterest method.</span></span></p>

<p class="MsoNormal"><span class="gmail-pl-c1"><span lang="EN-US">After </span></span><span lang="EN-US">AppLinkService received the packet, the NFD module decides how to forward
it. Often it will be sent to faces connecting current node to another node,
which is made of nfd::face::GenericLinkService and NetDeviceTransport.</span></p>

<p class="MsoNormal"><span lang="EN-US">When the producer node received the packet,
AppLinkService::doSendInterest will be called. A call to App::OnInterest (apps/ndn-app.cpp)
will be scheduled there.</span></p>

<p class="MsoNormal"><span lang="EN-US">A producer application, derived from
ndn::App, overrides OnInterest and deals with the interest packet.</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">I think those are all what ndnSim does
during the transportation of an interest packet.</span></p>

<p class="MsoNormal"><span lang="EN-US">I hope it will help.</span></p><p class="MsoNormal"><span lang="EN-US"><br></span></p><p class="MsoNormal"><span lang="EN-US">Xinyu, Ma.<br></span></p>

<div><div><div class="gmail_extra"><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<br>
<br>
I am looking for the exact file and line of code which creates interest and<br>
sends it on network. I need to look at the code and make changes according<br>
to my research. Please let me know the name of file and function.<br><br></blockquote></div></div></div></div></div>