[ndnSIM] Fwd: ndnSIM didn't receive packet

Muhammad Hosain Abdollahi Sabet mhasabet at gmail.com
Mon May 23 22:35:22 PDT 2016


qhsong,

I don't want to interrupt. But I had a similar problem recently. Interests
reach a node, but OnInterest method is not being called, right? Are you
using a cutom app? Are sure you have FIBs populated correctly?

Thanks,
Sabet

خندان باشید
با تشکر

On Tue, May 24, 2016 at 9:50 AM, qhsong <ndn at sqh.me> wrote:

>
> Hi JunXiao,
>
> First I TopologyReader like this:
>
>     AnnotatedTopologyReader topologyReader("", 25);
>     topologyReader.SetFileName("scratch/topo.txt");
>     topologyReader.Read();
>
> Then ,create some Nodes by this:
>    NodeContainer consumerNodes;
>    consumerNodes.Create(3);
>
> I connected then with p2pHelper:
>
> for(int i=0;i<3;i++) {
>       PointToPointHelper p2p;
>       p2p.Install(Names::Find<Node>("Node_in_Topo.txt"),
> consumerNodes.get(i));
> }
>
> Install ndnHelper one by one.
> for(int i=0;i<3;i++) {
>     ndn::helper ndnHelper;
>     //set content store size in different value
>     ndnHepler.Install(consumerNodes);
> }
>
> then Install ndnHelper in topo.txt node. Install consumer and producer in
> other node.
>
> That's what I do for ndnSIM.
> I also note that in --vis mode, the node I use NodeContainer.Create is
> gray, and other nodes is red.
>
> Is this wrong?After I switch all node generator by topo.txt, It works.
>
> Thanks,
> qhsong
>
>
> 2016-05-24 11:39 GMT+08:00 Junxiao Shi <shijunxiao at email.arizona.edu>:
>
>> Hi qhsong
>>
>> Can you post a code snippet that shows what you are doing, and indicate
>> what does not work?
>>
>> Yours, Junxiao
>>
>> On Mon, May 23, 2016 at 8:36 PM, qhsong <ndn at sqh.me> wrote:
>>
>>> Hi,
>>> Thanks for your help.  I first use AnnotatedTopologyReader and then use
>>> NodeContainer.Create() some node, I try to use p2p connection to connection
>>> them ,then use ndnHelper.Install().
>>> Then I change all node generator by AnnotatedTopologyReader, It works.
>>> Maybe AnnotatedTopologyReader not compatible with NodeContainer.
>>> Is this a bug?
>>>
>>> Thanks for your help.
>>> qhsong
>>>
>>
>
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160524/f646cd36/attachment.html>


More information about the ndnSIM mailing list