[ndnSIM] Green faces tried twice in best-route forwarding strategy (#32)

Alex Afanasyev alexander.afanasyev at ucla.edu
Fri Apr 12 10:45:33 PDT 2013

Hi Yaogong,

There is small redundancy, but it does not introduce any problems. If super::DoPropagateInterest() succeeded, then the processing will not happen in BestRoute at all. If it failed, the foreach loop will try and "skip" (if any exist) the green faces and attempt to send out over an available yellow face.

This is just a small inefficiency that was made for the sake of simplicity and generality.


On Apr 12, 2013, at 7:20 AM, Yaogong Wang <notifications at github.com> wrote:

> In BestRoute::DoPropagateInterest(), the green faces are first tried in the call to super::DoPropagateInterest() and tried again in the BOOST_FOREACH loop. The call to super::DoPropagateInterest() appears redundant to me.
>> Reply to this email directly or view it on GitHub.

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

More information about the ndnSIM mailing list