[ndnSIM] How to ask consumer acquire the data through different prefix

Shuai Dong sdong7 at crimson.ua.edu
Sun Nov 29 20:32:45 PST 2020


Hi All,

I am trying to implement the following code, which is used to make a
consumer get the data it wants through a different prefix.

ndn::StrategyChoiceHelper::InstallAll("/","localhost/nfd/strategy/broadcast");

ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");
consumerHelper. SetPrefix ("/prefix1");
consumerHelpler. Install (node.get(0));

ndn::AppHelper producerHelper("ns3::ndn::Producer");
producerHelper.SetPrefix("/prefix0");
producerHelper.install(node.get(1));

ndn::AppHelper producerHelper1("ns3::ndn::Producer");
producerHelper1.SetPrefix("/prefix1");
producerHelper1.install(node. get(2));

Through the producer's log, the node 2 can respond to the data. However,
the consumer's log shows that "[INFO ] NACK received for: /prefix1/%FE%09,
reason: NoRoute"

I am wondering if it is because I did the wrong script?

Thanks!
Shuai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201129/64788653/attachment.html>


More information about the ndnSIM mailing list