<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Hi spyridon,</div><div>I solved my problem. Yes, you are right. One node was not connected </div><div>Thank you so much</div><div>Best regards</div><div>Zeinab</div><div><br>On 4 May 2020, at 18:47, Spyridon Mastorakis <<a href="mailto:smastorakis@unomaha.edu">smastorakis@unomaha.edu</a>> wrote:<br><br></div><blockquote type="cite"><div>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


Hi,
<div class=""><br class="">
</div>
<div class="">Most probably you are trying to apply the helper to a node that does not exist. I guess somehow the range of nodes gets out of bounds. Did you try to use the debugger and see what is going on through the debug trace?</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Spyridon (Spyros) Mastorakis<br class="">
Assistant Professor<br class="">
Computer Science Department<br class="">
University of Nebraska, Omaha<br class="">
Peter Kiewit Institute Room 175A<br class="">
<a href="https://sites.google.com/site/spyridonmastorakis" class="">https://sites.google.com/site/spyridonmastorakis</a><br class="">
</div>
</div>
</div>
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Apr 25, 2020, at 7:57 AM, Zeinab Rezaeifar via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" class="">ndnsim@lists.cs.ucla.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi there,
<div class="">when I use the Globalrouting instead of default route in the following scenario I will receive this error:</div>
<div class="">“ <span style="font-family: Menlo; font-size: 11px;" class="">assert failed. cond="n < m_nodes.size ()", msg="Node index 4294967295 is out of range (only have 19 nodes).", file=../src/network/model/<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__node-2Dlist.cc_&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=ZcApI5ZnVlTLZf_wVSfW4MriXPn1GxSjY0u6RyzF0Ks&s=SLkkKzqSZdDjSXRNa8xqWiUinPybc_qpS8WGHe9AcV8&e=" class="">node-list.cc</a>,
 line=209</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">libc++abi.dylib: terminating</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><font color="#b42419" face="Menlo" class=""><span style="font-size: 11px;" class="">Command ['/Users/zrf/ndnSIM/ns-3/build/scratch/xc']
 terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args></span><span style="caret-color: rgb(180, 36, 25); font-size: 11px;" class="">”</span><span style="font-size: 11px;" class="">). </span></font></b></span><font color="#b42419" face="Menlo" class=""><span style="caret-color: rgb(180, 36, 25); font-size: 11px;" class=""><b class="">“</b></span></font></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><b class=""><font color="#b42419" face="Menlo" class=""><span style="font-size: 11px;" class=""><br class="">
</span></font></b></span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Menlo" class=""><span style="caret-color: rgb(180, 36, 25); font-size: 11px;" class=""><b class="">the scenario that I run :</b></span></font></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Menlo" class=""><span style="caret-color: rgb(180, 36, 25); font-size: 11px;" class=""><b class=""><br class="">
</b></span></font></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font face="Menlo" class=""><span style="caret-color: rgb(180, 36, 25); font-size: 11px;" class=""><b class="">
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">// ndn-simple.cpp</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">#include "ns3/core-module.h"</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">#include "ns3/network-module.h"</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">#include "ns3/point-to-point-module.h"</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">#include "ns3/ndnSIM-module.h"</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">#include "ns3/ndnSIM/utils/trie/lru-policy.hpp"</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">#include "ns3/ndnSIM/utils/trie/multi-policy.hpp"</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">namespace ns3 {</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">int</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">main(int argc, char* argv[])</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">{</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // setting default parameters for PointToPoint links and channels</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  Config::SetDefault ("ns3::PointToPointNetDevice::DataRate", StringValue ("10Mbps"));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  Config::SetDefault ("ns3::PointToPointChannel::Delay", StringValue ("1ms"));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""> // Config::SetDefault ("ns3::DropTailQueue::MaxPackets", StringValue ("20p"));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">      Config::SetDefault("ns3::QueueBase::MaxSize", StringValue("10p"));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // Read optional command-line parameters (e.g., enable visualizer with ./waf --run=<> --visualize</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  CommandLine cmd;</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  cmd.Parse(argc, argv);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // Creating nodes</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""> NodeContainer routerNodes;</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  <span class="Apple-tab-span" style="white-space:pre">
</span>NodeContainer producerNodes;</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  <span class="Apple-tab-span" style="white-space:pre">
</span>NodeContainer consumerNodes;</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    NodeContainer attackerNodes;</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">//producerNodes.Create(3);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">consumerNodes.Create(9);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">routerNodes.Create(9);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">attackerNodes.Create(1);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // Connecting nodes using two links</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  PointToPointHelper p2p;</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   //Router 0</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(0), routerNodes.Get(1));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(0), routerNodes.Get(2));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(0), routerNodes.Get(3));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(0), routerNodes.Get(6));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   //Router 1</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(1), routerNodes.Get(2));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(1), routerNodes.Get(4));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(1), routerNodes.Get(7));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   //Router 2</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(2), routerNodes.Get(5));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(2), routerNodes.Get(8));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   //Router 3</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   //Router 4</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   //Router 5</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   //Router 6</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   //Router 7</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   //Router 8</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   //Producers</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(3), consumerNodes.Get(6));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(4), consumerNodes.Get(7));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(routerNodes.Get(5), consumerNodes.Get(8));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   //Consumers</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(consumerNodes.Get(0), routerNodes.Get(6));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(consumerNodes.Get(1), routerNodes.Get(7));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(consumerNodes.Get(2), routerNodes.Get(8));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(consumerNodes.Get(3), routerNodes.Get(3));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(consumerNodes.Get(4), routerNodes.Get(4));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>   p2p.Install(consumerNodes.Get(5), routerNodes.Get(5));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // Install NDN stack on all nodes</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  ndn::StackHelper ndnHelper;</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">//ndnHelper.SetDefaultRoutes(true);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru", "MaxSize", "0");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">      ndnHelper.InstallAll();</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">///ndnHelper.Install(routerNodes);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">//ndnHelper.SetOldContentStore("ns3::ndn::cs::Nocache");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">///ndnHelper.Install(consumerNodes);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">//  ndnHelper.InstallAll();</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // Choosing forwarding strategy</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  //ndn::StrategyChoiceHelper::InstallAll("/prefix", "/localhost/nfd/strategy/multicast");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">// ndn::StrategyChoiceHelper::InstallAll("/prefix", "/localhost/nfd/strategy/ncc");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">ndn::StrategyChoiceHelper::InstallAll("/", "/localhost/nfd/strategy/best-route");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">     // Installing global routing interface on all nodes</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""> ndn::GlobalRoutingHelper ndnGlobalRoutingHelper;</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  ndnGlobalRoutingHelper.InstallAll ();</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // Installing applications</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">//NodeContainer consumerNodes;</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">//  consumerNodes.Add (nodes.Get(0));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">// consumerNodes.Add (nodes.Get(4));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // Consumer</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""> std::string prefix= "/prefix";</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    std::string prefix2 = "/fake";</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    Ptr<Node> producer=consumerNodes.Get(1);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  ndn::AppHelper consumerHelper("ns3::ndn::ConsumerZipfMandelbrot");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerCbr");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  consumerHelper.SetPrefix(prefix);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  consumerHelper.SetAttribute("Frequency", StringValue("100"));        // 100 interests a second</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  consumerHelper.SetAttribute("NumberOfContents", StringValue("100")); // 10 different contents</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">consumerHelper.SetAttribute("s", StringValue("0.9"));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""> consumerHelper.Install(consumerNodes.Get(3));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">consumerHelper.Install(consumerNodes.Get(5));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">consumerHelper.Install(consumerNodes.Get(7));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">consumerHelper.SetAttribute("Frequency", StringValue("50"));        // 100 interests a second</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">consumerHelper.Install(consumerNodes.Get(0));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">consumerHelper.Install(consumerNodes.Get(2));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">consumerHelper.Install(consumerNodes.Get(4));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">consumerHelper.Install(consumerNodes.Get(6));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">consumerHelper.Install(consumerNodes.Get(8));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    //*************</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    ndn::AppHelper consumerHelper2("ns3::ndn::ConsumerZipfMandelbrot");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerCbr");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  consumerHelper2.SetPrefix("/fake");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  consumerHelper2.SetAttribute("Frequency", StringValue("200"));        // 100 interests a second</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  consumerHelper2.SetAttribute("NumberOfContents", StringValue("100")); // 10 different contents</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">consumerHelper2.SetAttribute("s", StringValue("0.9"));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""> //consumerHelper2.Install(attackNodes.Get(0));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">     auto apps2 = consumerHelper2.Install(attackerNodes.Get(0));                        // first node</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    apps2.Start(Seconds(0.1)); </div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // Producer</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  ndn::AppHelper producerHelper("ns3::ndn::Producer");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // Producer will reply to all requests starting with /prefix</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  producerHelper.SetPrefix("/prefix");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  producerHelper.SetAttribute("PayloadSize", StringValue("1024"));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  producerHelper.Install(consumerNodes.Get(1)); // last node</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // ndnGlobalRoutingHelper.AddOrigins (prefix, producer);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    </div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    ndn::AppHelper producerHelper2("ns3::ndn::Producer");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  // Producer will reply to all requests starting with /prefix</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  producerHelper2.SetPrefix("/fake");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  producerHelper2.SetAttribute("PayloadSize", StringValue("1024"));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  producerHelper2.Install(consumerNodes.Get(1)); // last node</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">    ndnGlobalRoutingHelper.AddOrigins (prefix2, producer);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">// Calculate and install FIBs</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""> ndnGlobalRoutingHelper.CalculateRoutes ();</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  Simulator::Stop(Seconds(20.0));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">///ndn::AppDelayTracer::InstallAll("app-delays-trace.txt");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""> ///AsciiTraceHelper ascii;</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  ///p2p.EnableAsciiAll (ascii.CreateFileStream ("<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__ndn-2Dsimple.tr_&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=ZcApI5ZnVlTLZf_wVSfW4MriXPn1GxSjY0u6RyzF0Ks&s=_ZyrTiS6JlNcctc2ptn-UOxkYx28qp6sOc_ZJq0W8z4&e=" class="">ndn-simple.tr</a>"));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""> ///p2p.EnablePcapAll ("ndn-simple");</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">ndn::CsTracer::InstallAll("cs-trace.txt", Seconds(1));</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  Simulator::Run();</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  Simulator::Destroy();</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  return 0;</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">}</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">} // namespace ns3</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">int</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">main(int argc, char* argv[])</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">{</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">  return ns3::main(argc, argv);</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">}</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">I do not understand what mistakes I am doing. I will appreciate your help</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">Kind regards</div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">Zeinab</div>
</b></span></font></div>
</div>
</div>
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>


</div></blockquote></body></html>