[ndnSIM] FaceIterator

Alex Afanasyev alexander.afanasyev at ucla.edu
Sat Mar 9 15:15:56 PST 2013

Hi Natalya,

NACKs would be generated if DoPropagateInterest return false.  TrySendOutInterest method makes an attempt to send out interest over the face and in your code I see that attempt to try next face would be aborted if m_drop_cause is not equal to 1 (e.g., if it is 1, only one face should be tried in most of the cases).   Is this m_drop_cause a configuration parameter or something that is set for each attempt? 

Another side question.  Are you intentionally not using metric to rank faces (fib::i_nth instead of fib::i_metric)?


On Mar 9, 2013, at 1:47 PM, Natalya Rozhnova <natalya.rozhnova at lip6.fr> wrote:

> Hi Alex,
> I want to re-send an Interest to next available face if the current one is unavailable because of any special reason. I trace the second face and see that it receives rerouted Interests but sometimes I see that the node generates a NACK rather than resend the Interest to the next face (it even doesn't try to choose the next face and just exits from DoPropagateInterest function ). So, there is something wrong in my implementation or in manually generated FIB... Could you tell me please, do I use a correct way for changing faces?
> I rewrite DoPropagateInterest function and choose the interface as follows:
> BOOST_FOREACH (const fib::FaceMetric &metricFace, pitEntry->GetFibEntry ()->m_faces.get<fib::i_nth> ())
>       {
>           if (!TrySendOutInterest (inFace, metricFace.m_face, header, origPacket, pitEntry))
>           {
>               if(m_drop_cause == 1)
>                  continue;             
>               else break;
>           }
>       propagatedCount++;
>       break;
>    }
>       return propagatedCount > 0;
> Is it correct and the problem should not come from this piece?
> Thanks,
> Natalya
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130309/93f136b2/attachment.html>

More information about the ndnSIM mailing list