[ndnSIM] applications

Hafsteinn Hjartarson hafsteinn.hjartarson at gmail.com
Sat Nov 14 09:58:07 PST 2020


Thank you very much for the reply Spyridon,

I enabled ndn-cxx.nfd.forwarder and saw that I was indeed receiving
*onOutgoingNack
.... - NoRoute*

This is my code in the simulation scenario (ndn-custom-apps.cpp)

   // Creating nodes
  NodeContainer nodes;
  nodes.Create(3);

  // Connecting nodes using two links
  PointToPointHelper p2p;
  p2p.Install(nodes.Get(0), nodes.Get(1));
  p2p.Install(nodes.Get(1), nodes.Get(2));

  // Install NDN stack on all nodes
  ndn::StackHelper ndnHelper;
  ndnHelper.SetDefaultRoutes(true);
  ndnHelper.InstallAll();

  // Choosing forwarding strategy
  ndn::StrategyChoiceHelper::InstallAll("/prefix/sub",
"/localhost/nfd/strategy/multicast");

  //Create and Install primary application
  ndn::AppHelper app1("PrimaryNode");
  app1.Install(nodes.Get(0));

  //Create a backup applications
  ndn::AppHelper app2("ConsumerApp");
  app2.Install(nodes.Get(2));

And in both PrimaryNode and ConsumerApp I have:

  // Add entry to FIB for `/prefix/sub`
  ndn::FibHelper::AddRoute(GetNode(), "/prefix/sub", m_face, 0);


Why can't the simulated network not resolve this?

Best regards,
Hafsteinn

On Fri, Nov 13, 2020 at 2:39 AM Spyridon Mastorakis <smastorakis at unomaha.edu>
wrote:

> Hi,
>
> I would suggest that you enable the nfd.Forwarder logging component to see
> what is going on at the NFD level.
>
> Thanks,
>
> Spyridon (Spyros) Mastorakis
> Assistant Professor
> Computer Science Department
> University of Nebraska, Omaha
> Peter Kiewit Institute Room 175A
> https://sites.google.com/site/spyridonmastorakis
>
> On Nov 12, 2020, at 6:06 AM, Hafsteinn Hjartarson via ndnSIM <
> ndnsim at lists.cs.ucla.edu> wrote:
>
> Hi Everyone,
>
> When using the custom applications provided with the examples (
> https://ndnsim.net/2.4/applications.html#customer-example
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__ndnsim.net_2.4_applications.html-23customer-2Dexample&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=gdQsxKp731SqsqYuSGCbIaKzilhsxAFCuRNVHgmFvf0&s=Fkw05yospMkOzR9bi_AHRLLMKCeQSJZYBwvFnyvy2iE&e=>),
> both CustomApp and Hijacker are installed on the same node (why does that
> even work?).
>
> Is it not possible to create a topology like:
>
> "CustomApp" <---> "ndn_router_1" <---> "Hijacker"
>
> I have tried using the "Simple Scenario" from
> https://ndnsim.net/current/examples.html
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__ndnsim.net_current_examples.html&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=gdQsxKp731SqsqYuSGCbIaKzilhsxAFCuRNVHgmFvf0&s=q-AlCSkUC2IobLd7PVwz2d4gUNB7DawFb7MxmKZkal8&e=>
> to create three nodes with p2p links between them and then installing
> "CustomApp" on node_0 and "Hijacker" on node_2 but they cannot communicate.
>
> Can anyone help me with this?
>
> Best regards,
> Hafsteinn
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201114/24510b37/attachment.html>


More information about the ndnSIM mailing list