<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Dec 18, 2013, at 10:01 PM, Tun Tun Oo <<a href="mailto:htunhtunu@gmail.com">htunhtunu@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div>Dear Alex,<br></div><br>Thanks you so much for your advice for nack extension and correction for print queue length. Both are very helpful for me.<br></div><br>For your question of receiving nack function, I checked only nack vailidty using DidReceiveValidNack. I should check it firstly at the OnNack as your advice. In case if I couldn't receive it at OnNack, what could be the problem?<br>
<br>

</div><div>I have one more question, if I want to send node information ( queue length, link capacity) as a feedback using the NACK packet, how should I do?<br><br>Now I am studying the guide from <a href="http://www.nsnam.org/support/faq/miscellaneous/" target="_blank">http://www.nsnam.org/support/faq/miscellaneous/</a>. to implement it. Is there any nddSIM specific method?I realized that in the nack packet format, there is a payload field. How can I use payload field to send data?<br></div></div></blockquote><div><br></div><div>Sure.  You can do that.  You can also do another hack using NS-3's packet tags, but it is has the same complexity and may not be the right way to go for you.</div><div><br></div><div>---</div><div>Alex</div><br><blockquote type="cite"><div dir="ltr"><div>Sincerely yours<br></div><div>TUN<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 19, 2013 at 6:28 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tun,<br>
<br>
When you saying that "it doesn't receive", where are you expecting to receive it?  I mean, which function?<br>
<br>
Depending on which strategy class you're modifying, this could be in different places.  If you're modifying directly <a href="http://ndn-forwarding-strategy.cc">ndn-forwarding-strategy.cc</a>, then the packet will arrive in OnInterest() call.<br>
<br>
If you are modifying anything that inherited from fw::Nacks class, then it will be in OnNack() method.  You can check the implementation of OnInterest in fw::Nacks class to the get idea how this happens.<br>
<br>
--<br>
Alex<br>
<div><div class="h5"><br>
On Dec 11, 2013, at 10:56 PM, Tun Tun Oo <<a href="mailto:htunhtunu@gmail.com">htunhtunu@gmail.com</a>> wrote:<br>
<br>
> Dear Alex,<br>
><br>
> I would like to try an idea for responding whenever Data packet received as in the scenario.<br>
><br>
> Data Packet flow ::Consumer <-------R1<-----------R2<--------------Producer<br>
> ACK-Data ::           Consumer ------->R1----------->R2-------------->Producer<br>
><br>
> For this purpose, I need to create a new packet, just a name, ACK-Data.<br>
> As my understanding, it is similar like nack and I try to implement this packet as an extension of nack.<br>
> Firstly, I prepared it as nack type and then I tried with following code<br>
><br>
> OnData (Ptr<Face>face,<br>
>                 Ptr<Data>data)<br>
> {<br>
>          Ptr<Name> name = Create<Name>(data->GetName ());<br>
><br>
>         Ptr<Interest> ack= Create <Interest>();<br>
><br>
>         ack->SetNack (Interest::ACK_Data);<br>
><br>
>         ack->SetName (name);<br>
><br>
>         face->SendInterest (ack);<br>
> }<br>
><br>
> When running, it  doesn't receive the reply packet.<br>
> I am not confidence about the coding and could you give me a kindly guidance?<br>
> Thanks you<br>
><br>
> Sincerely yours<br>
> TUN<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> ndnSIM mailing list<br>
> <a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br>
</blockquote></div><br></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></body></html>