<div dir="ltr">Hi,<br><div><br>It's my first time using NDNsim and I tried to create a 
hijacker scenario. Everytime I run the program, packet interest that's 
been sent always pass through the nodes that affected by hijack(R3-H), 
although in the topology that I made there are other path that aren't 
affected by hijack(R2). Could you tell me how to make the packet 
interest choose another path that aren't affect by the hijacker(change 
to R2 when first attempt was hijacked by R3-H)? Is it possible to do 
that?<br><br>This is my topology<br><div>#                                /----\<br>#                             +=>| R2 |<=+<br>#                            /   \----/   \<br>#                           /              \<br>#                          /                \<br>#   /---\         /----\<=+                  +=>/----\         /---\<br>#   | C |<------->| R1 |                        | R4 |<------->| P |<br>#   \---/         \----/<=+                  +=>\----/         \---/<br>#                          \                /<br>#                           \              /<br>#                            \   /----\   /<br>#                             +=>| R3 |<=+<br>#                                \----/<br><br></div><div>#-------y code : ------#<br>  AnnotatedTopologyReader topologyReader("", 100);<br>  topologyReader.SetFileName("src/ndnSIM/examples/topologies/topo-custom-hijack.txt");<br>  topologyReader.Read();<br>  <br>  // Install NDN stack on all nodes<br>  ndn::StackHelper ndnHelper;<br>  ndnHelper.SetDefaultRoutes (false);<br>  <br>  // Getting containers for the consumer/producer<br>  Ptr<Node> producer = Names::Find<Node>("P");<br>  Ptr<Node> h1 = Names::Find<Node>("R3");<br>  Ptr<Node> consumer=Names::Find<Node>("C");<br><br>  ndnHelper.InstallAll();<br>  <br>  // Installing global routing interface on all nodes<br>  ndn::GlobalRoutingHelper ndnGlobalRoutingHelper;<br>  ndnGlobalRoutingHelper.InstallAll();<br>  <br>  // Install NDN applications<br>  std::string prefix = "/prefix/sub";<br>  <br>  ndn::StrategyChoiceHelper::InstallAll("/prefix/sub", "ndn:/localhost/nfd/strategy/best-route");<br><br>  ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");<br>  consumerHelper.SetPrefix(prefix);<br>  consumerHelper.SetAttribute("Frequency", StringValue("1")); // 100 interests a second<br>  consumerHelper.Install(consumer);<br><br>  ndn::AppHelper producerHelper("ns3::ndn::Producer");<br>  producerHelper.SetPrefix(prefix);<br>  producerHelper.Install(producer);<br><br>  ndn::AppHelper Hijackers("Hijacker");<br>  Hijackers.Install(h1);<br>  <br>  // Add /prefix origins to ndn::GlobalRouter<br>  ndnGlobalRoutingHelper.AddOrigins(prefix, producer);<br><br>  // Calculate and install FIBs<br>  ndn::GlobalRoutingHelper::CalculateRoutes();<br><br>  Simulator::Stop(Seconds(30.0));<br>  Simulator::Run();<br>  Simulator::Destroy();<br><br></div><br>Thank you<br clear="all"><br clear="all"><div>Kind Regards,<br><br></div>Prasetyo</div></div>