<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></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>Wire::FromInterest/toInterest do not directly related to the transmission path (these are just to construct actual wire format).</div><div><br></div><div>The processing is something like this:</div><div><br></div><div>[Consumer/Face] ReceiveInterest(interest) -></div><div>[Face]     (registeredCallback)(Interest)    </div><div>            * registered callback is set from Forwarder via RegisterProtocolHandlers method</div><div>[ForwardingStrategy] onInterest, ..., PropagateInterest -></div><div>[specific strategy, such as BestRoute] DoPropagateInterest -></div><div>[ForwardingStrategy] TrySendOutInterest -></div><div>[Face] sendInterest -></div><div>[NetDeviceFace] (virtual call) Send -></div><div>...</div><div>"actual" transmission through NS'3 NetDevice (NetDevice -> Channel -> NetDevice)</div><div>...</div><div>[NetDeviceFace] ReceiveFromNetDevice (registered callback to NetDevice) -></div><div>[Face] Receive -> </div><div>[Face] ReceiveInterest -></div><div><div>[Face]     (registeredCallback)(Interest)    </div><div>            * registered callback is set from Forwarder via RegisterProtocolHandlers method</div><div>[ForwardingStrategy] onInterest, ..., PropagateInterest -></div></div><div>...</div><div><br></div><div>---</div><div>Alex</div><div><br></div><br><div><div>On May 17, 2014, at 5:00 AM, <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-size: 14px; font-family: 'Microsoft YaHei UI'; 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;"><div><span></span>Hi, Alex</div><div><br></div><div>I'm confused about how the packet is transmitted in ndnSIM. Take the forwarder as example. When sending the interest, the forwader calls the function [<span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">outFace->SendInterest (interest);] in<span class="Apple-converted-space"> </span><a href="http://forwardingstrategy.cc/">forwardingstrategy.cc</a>, which then calls the funtion [</span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">Send (Wire::FromInterest (interest));] in<span class="Apple-converted-space"> </span><a href="http://face.cc/">face.cc</a>. However, </span><span style="background-color: window; font-family: ''; font-size: 10.5pt; line-height: 1.5;"> </span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">[</span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">Send (Wire::FromInterest (interest));] seems only to re-construct the packet. I wonder how the packet is sent from the fowarder to another. I feel that there shoud be some functions which call m_fowardingStrategy->Oninterest so that the packet call be sent to the next forwarder, but I did not find it.</span></div><div>The same question also is for the counsumer and producers. <span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">Take the forwarder as example.</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"> </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"> </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">When sending the interest, the consumer calls the [</span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">m_face->ReceiveInterest (interest);] and then, how the interest is sent to the forwarder?</span></div><div><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">Thanks in advance!</span></div><div><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">  </span></div><hr size="1" align="left" style="width: 210px; height: 1px;"><div><span><div style="margin: 10px; font-family: verdana; font-size: 10pt;">Aaron</div></span></div></div></blockquote></div><br></body></html>