[ndnSIM] Help Custom Forwarding

Klaus Schneider klaus at cs.arizona.edu
Tue Jul 16 12:46:02 PDT 2019


Looks like you got the strategy name mixed up. Compare:

> ndn::StrategyChoiceHelper::InstallAll("/", "/localhost/nfd/fw/HashStrategy");

with

>       static Name strategyName("/localhost/nfd/strategy/HashStrategy/%FD%00");

I suggest using the templated version of 
StrategyChoiceHelper::InstallAll(), so this can't happen:

> ndn::StrategyChoiceHelper::InstallAll<nfd::fw::BestRouteStrategy2>("/");


Best regards,
Klaus



On 7/16/19 12:17 PM, bouchrit leila wrote:
> thank you very much Klaus Schneider for the answer,
> 
> Here are the different files:/
> */Test file using the strategy:
> https://drive.google.com/drive/folders/1DgNXvyRz4Xdd6BVPv5-Sexb-d1V1NtAS
> * /The Custom Strategy files:
> https://drive.google.com/drive/folders/1DgNXvyRz4Xdd6BVPv5-Sexb-d1V1NtAS
> https://drive.google.com/open?id=1HLzBq8Mcq6Dwd48BPfm5Z4dHCdiA3j8Y
> 
> ///
> 
> when i run with ndn.Producer it shows me this:
> https://drive.google.com/open?id=1RTyVdOgORVIZuK6MNMyosMeraRRM7pLL
> 
> but when i put my custom producer:
> https://drive.google.com/open?id=11hqpr04710H_LR_7t0RZFPYQL3YRGaM8
> 
> he displays this message:
> https://drive.google.com/open?id=1oqvns-4L5JLliHjZtDH7ss_ueEvET_6G
> 
> besides I try to debug my strategy it does not show anything, can you 
> help me to solve it. thank you very much for your time and listen.
> 
> 
> Le mar. 16 juil. 2019 à 00:32, Klaus Schneider <klaus at cs.arizona.edu 
> <mailto:klaus at cs.arizona.edu>> a écrit :
> 
>     Dear Bouchrit,
> 
>     Maybe if you can post your strategy file and simulation script, people
>     will be able to help.
> 
>     It may also help to enable debug logging
>     (https://www.nsnam.org/docs/manual/html/logging.html) and post the
>     output.
> 
> 
>     Best regards,
>     Klaus
> 
> 
> 
>     On 7/15/19 12:33 AM, bouchrit leila via ndnSIM wrote:
>      > Hi all,
>      >
>      > Hi, can anyone answer to this question please? I'm still unable
>     to solve it.
>      >
>      >
>      > Le dim. 7 juil. 2019 à 12:08, bouchrit leila
>     <bouchritleila at gmail.com <mailto:bouchritleila at gmail.com>
>      > <mailto:bouchritleila at gmail.com
>     <mailto:bouchritleila at gmail.com>>> a écrit :
>      >
>      >     Hi all,
>      >
>      >     I tried to implement my new custom strategy, I followed the
>      >     instructions  mentionned in the  below link:
>      >
>     https://github.com/named-data-ndnSIM/NFD/blob/38111cde9bab698f6eaf1a9d430130c2cbb3eca4/daemon/fw/multicast-strategy.cpp#L32-L33
>      >
>      >     It compiled but the problem is always in the execution step, so I
>      >     think that the question is how to link my strategy in such
>     scenario?
>      >     I used this instruction
>      >     "ndn::StrategyChoiceHelper::InstallAll("/prefix",
>      >     "/localhost/nfd/strategy/HashStrategy");" but  without result.
>      >
>      >     Please, I need your help, would you please send me all details to
>      >     get the solution?
>      >
>      >     Thank you in advance,
>      >     Best regards,
>      >
>      >
>      > _______________________________________________
>      > ndnSIM mailing list
>      > ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
>      > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>      >
> 


More information about the ndnSIM mailing list