<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20140518131543406166 { word-wrap: break-word; -webkit-line-break: after-white-space; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span></div><blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div class="FoxDiv20140518131543406166"><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><br></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">I'm not clear about how the RegisterProtocolHandlers </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">method</span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"> work</span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">.  </span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">After [Face]m_upstreamInterestHandler (this, interest);, is there some function calling m_face-> <span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">RegisterProtocolHandlers? </span></span></div><div><br></div><div>[ForwardingStrategy] onInterest, ..., PropagateInterest -></div><div>[specific strategy, such as BestRoute] DoPropagateInterest -></div><div>[ForwardingStrategy] TrySendOutInterest -></div><div>[Face] sendInterest -></div><div>I see.</div><div><br></div><div>[NetDeviceFace] (virtual call) Send -></div><div>2. How does <span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">virtual call work?</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">bool ok = m_netDevice->Send (packet, m_netDevice->GetBroadcast (),
<br>                               L3Protocol::ETHERNET_FRAME_TYPE);</span></div><div>The <span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">Send (packet, m_netDevice->GetBroadcast (),</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;">L3Protocol::ETHERNET_FRAME_TYPE)  funciton should be a NS3 function right?</span></div><div><br></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><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">Receive (p);</span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">The Receive funciton is also from NS3?</span></div><div><br></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">[Face] Receive -> </span></div><div>[Face] ReceiveInterest -></div><div><div>[Face]     (registeredCallback)(Interest)    </div><div>            * registered callback is set from Forwarder via RegisterProtocolHandlers method</div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">[ForwardingStrategy] onInterest, ..., PropagateInterest -></span></div></div><div><blockquote type="cite" style="margin-top: 0px;"><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 style="font-family: ''; font-size: 10.5pt; line-height: 1.5;"><br></span></div><div><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5;">Thanks you very much!</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></div></blockquote>
</body></html>