[Mini-NDN] Set a strategy in MiniNdn
Vince Lehman (vslehman)
vslehman at memphis.edu
Mon Mar 7 09:52:15 PST 2016
Hi Percy,
Currently, the best way to set the strategy for a namespace in Mini-NDN is to use the setStrategy method in the Nfd class.
For example:
host.nfd.setStrategy(“/name/prefix”, “strategy-name”)
where “strategy-name” is one of the strategy strings you listed: (e.g., “client-control”, “multicast”, “ncc”, etc.); and yes, all of the strategies supported by NFD are supported by Mini-NDN.
Changing the strategy option in experimentArgs will only set the specified strategy for the prefix “/ndn/edu” when you run an experiment. If you want to set the strategy for any other prefix or while not running an experiment, you should use the setStrategy method.
--
Vince Lehman
On Mar 7, 2016, at 8:30 AM, Percy Perez Aruni <pdpa at st-andrews.ac.uk<mailto:pdpa at st-andrews.ac.uk>> wrote:
Hi dear MiniNdn team
Sorry for this email but would you mind to confirm if the proper way to set a strategy in Minindn is by changing the "strategy" argument in "mini-ndn/bin/minindn" (line ~375)? and if MiniNdn supports all below strategies?
.....
experimentArgs = {
"net": net,
"nodes": nodes,
"ctime": options.ctime,
"nPings": options.nPings,
"strategy": "client-control",
# "strategy": "multicast",
# "strategy": "ncc",
# "strategy": "broadcast",
# "strategy": "access",
# "strategy": Nfd.STRATEGY_BEST_ROUTE_V3,
"pctTraffic": options.pctTraffic
} .....
Thank you in advance for your reply and comments.
Regards
Percy
_______________________________________________
Mini-NDN mailing list
Mini-NDN at lists.cs.ucla.edu<mailto:Mini-NDN at lists.cs.ucla.edu>
http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20160307/5b5c38ef/attachment.html>
More information about the Mini-NDN
mailing list