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

DJEMAA Adel a_djemaa at esi.dz
Thu Dec 3 12:53:23 PST 2020


Hi,
I guess that the "[INFO ] NACK received for: /prefix1/%FE%09, reason:
NoRoute" message is received from producer 1, which is logic since it
doesn't have a route (FIB Entry) for Interests packets with "\prefix1", and
no routing protocol has been used in your scenario.
As described below, your consumer sends Interests with "\prefix1" and thus
will receive Data packets only from Producer 2, and Nack packets from
Producer 1.
Hope this helps.
Sincerely.


Le lun. 30 nov. 2020 à 16:46, Shuai Dong <sdong7 at crimson.ua.edu> a écrit :

> Hi,
>
> I am using the "ndn-simple-wifi.cc" and modify the number of nodes from 2
> to 3 (1 Consumer, 2 Producers).  And try to install two different prefixes
> on two producers. Thus, what I am trying to do is to let the consumer get
> the data according to the specific prefix from one of the producers.
>
>
> Sincerely,
> Shuai
>
> On Mon, Nov 30, 2020 at 12:27 AM Shuai Dong <sdong7 at crimson.ua.edu> wrote:
>
>> Hi,
>>
>> I am using the "ndn-simple-wifi.cc" and modify the number of nodes from 2
>> to 3 (1 Consumer, 2 Producers).  And try to install two different prefixes
>> on two producers. Thus, what I am trying to do is to let the consumer get
>> the data according to the specific prefix from one of the producers.
>>
>>
>> Sincerely,
>> Shuai
>>
>>
>>
>> On Mon, Nov 30, 2020 at 12:08 AM DJEMAA Adel <a_djemaa at esi.dz> wrote:
>>
>>> Hi,
>>> Please give more detail about the topology used with your three nodes
>>> (point to point or other).
>>> Sincerely.
>>>
>>> Le lun. 30 nov. 2020 à 05:33, Shuai Dong via ndnSIM <
>>> ndnsim at lists.cs.ucla.edu> a écrit :
>>>
>>>> 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
>>>>
>>>>
>>>> _______________________________________________
>>>> ndnSIM mailing list
>>>> ndnSIM at lists.cs.ucla.edu
>>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>>>
>>>
>>>
>>> --
>>> Mr DJAMA Adel
>>> Phd student
>>> Ecole Militaire Polytechnique
>>> Algiers 16046, ALGERIA
>>>
>>

-- 
Mr DJAMA Adel
Phd student
Ecole Militaire Polytechnique
Algiers 16046, ALGERIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201203/0b27c0d7/attachment.html>


More information about the ndnSIM mailing list