[Mini-NDN] custom strategy

sepehr abdous sepehrabdous1375 at gmail.com
Sun Nov 4 00:49:25 PDT 2018


Hello.
Problem solved.
Thank you very much

On Sat, Nov 3, 2018 at 7:25 PM Muktadir R Chowdhury (mrchwdhr) <
mrchwdhr at memphis.edu> wrote:

> Try ./waf distclean then ./waf configure; ./waf; ./waf install.
>
> Btw, Have you changed this line: NFD_REGISTER_STRATEGY(BestRouteStrategy);
>
> In the cpp file of the copied strategy. Make sure to give it a different
> name, otherwise it will conflict with the original one.
>
> %FD%03 is the version number. Quoting from NFD Dev guide: version number
> component is required. The version number should be incremented whenever
> there is a non-trivial change to the strategy behavior.
>
> -Alvy
>
>
>
>
>
>
> From: sepehr abdous
> Sent: Saturday, November 3, 3:00 AM
> Subject: Re: [Mini-NDN] custom strategy
> To: Ashlesh Gawande (agawande)
> Cc: mini-ndn at lists.cs.ucla.edu
>
>
> Hello,
> What is exactly the %FD%03 for?
> I copied the exact same code of best-route-strategy(both hpp and cpp) to
> another file named power-of-two-strategy
> and changed the best-route names in the code to power-of-two-strategy.
>
> But when I want to use ./waf install I encounter the following error:
> [image: image.png]
>
> Best,
> Sepehr
>
> On Thu, Nov 1, 2018 at 7:08 PM Ashlesh Gawande (agawande) <
> agawande at memphis.edu> wrote:
>
> Compile and install NFD again using waf under NFD folder. Outside of
> Mini-NDN, run NFD and try setting the strategy on a name prefix: nfdc
> strategy set /prefix strategy <strategy-name> The <strategy-name> is the
> one you set in getStrategyName in your strategy. For example, ASF:
> /localhost/nfd/strategy/asf/%FD%03
> https://github.com/named-data/NFD/blob/f48d0809f085b32670b4163328ce88c6cad0291d/daemon/fw/asf-strategy.cpp#L67
> If the nfdc command is successful, in Mini-NDN you can call this function
> with appropriate parameters:
> https://github.com/named-data/mini-ndn/blob/6f7a64fc75065191035141e3a8c33e149bef27f9/ndn/apps/nfdc.py#L66
> Ashlesh
> On 11/1/18 7:10 AM, sepehr abdous wrote:
>
> Hello all,
>
> I defined a custom strategy in the mini-ndn/NFD/daemon/fw/ directory.
> How can I add my strategy to NFD so that I can use it by nfdc in my
> mini-ndn experiments?
>
> Best,
> Sepehr
>
> _______________________________________________ Mini-NDN mailing list
> Mini-NDN at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn
>
>
>
> --
> Sepehr Abdous
> Faculty: abdous at ce.sharif.edu
> Yahoo mail: sepehrabdous at yahoo.com
> Cellphone:+989129751873
> School of computer engineering
> Sharif University of Technology
> Tehran, Iran
>
>
>

-- 
Sepehr Abdous
Faculty: abdous at ce.sharif.edu
Yahoo mail: sepehrabdous at yahoo.com
Cellphone:+989129751873
School of computer engineering
Sharif University of Technology
Tehran, Iran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20181104/c1beea2d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 81778 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20181104/c1beea2d/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 81778 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20181104/c1beea2d/attachment-0003.png>


More information about the Mini-NDN mailing list