<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div>Hello everyone,</div><div><br></div><div>I tried a hijacker scenario with the topology and the code below, i can see that the hijacker is working fine because the consumer node is sending interests and it doesn't receive anything and the hijacker (R3) is receiving but it doesn't send anything and the interest aren't reaching the producer, but why the best-route forwarding strategy isn't changing the path to a node that is not affected by hijack (R2) ? isn't it what it is supposed to do <span>inherently </span>? i've tried other strategies (multicast, ncc, ...) but none of them changes the path as well. Can anyone, please tell me how can i do that ? Thank you in advance.</div><div><div><pre style="white-space: pre-wrap; color: rgb(0, 0, 0);">     
                             +=>| R2 |<=+
                            /   \----/   \
                           /              \
                          /                \
   /---\         /----\<=+                  +=>/----\         /---\
   | C |<------->| R1 |                        | R4 |<------->| P |
   \---/         \----/<=+                  +=>\----/         \---/
                          \                /
                           \              /
                            \   /----\   /
                             +=>| R3 |<=+
                                \----/</pre><pre style="white-space: pre-wrap; color: rgb(0, 0, 0);"><br></pre><pre style="white-space: pre-wrap; color: rgb(0, 0, 0);"><div><div>AnnotatedTopologyReader topologyReader("", 6);</div><div>  topologyReader.SetFileName("src/ndnSIM/examples/topologies/topohijack.txt");</div><div>  topologyReader.Read();</div><div><br></div><div><br></div><div>  </div><div>   // Install NDN stack on all nodes</div><div>   ndn::StackHelper ndnHelper;</div><div>   ndnHelper.SetDefaultRoutes (true);</div><div> </div><div>   // Getting containers for the consumer/producer</div><div>   Ptr<Node> producer = Names::Find<Node>("Node5");</div><div>   Ptr<Node> h1 = Names::Find<Node>("Node3");</div><div>   Ptr<Node> consumer=Names::Find<Node>("Node0");</div><div> </div><div>   ndnHelper.InstallAll();</div><div> </div><div>   // Installing global routing interface on all nodes</div><div>   ndn::GlobalRoutingHelper ndnGlobalRoutingHelper;</div><div>   ndnGlobalRoutingHelper.InstallAll();</div><div> </div><div>   // Install NDN applications</div><div>   std::string prefix = "/prefix";</div><div> </div><div>   ndn::StrategyChoiceHelper::InstallAll("/prefix", "ndn:/localhost/nfd/strategy/best-route");</div><div> </div><div>   ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");</div><div>   consumerHelper.SetPrefix(prefix);</div><div>   consumerHelper.SetAttribute("Frequency", StringValue("1")); // 100 interests a second</div><div>   consumerHelper.Install(consumer);</div><div> </div><div>   ndn::AppHelper producerHelper("ns3::ndn::Producer");</div><div>   producerHelper.SetPrefix(prefix);</div><div>   producerHelper.Install(producer);</div><div> </div><div>   ndn::AppHelper Hijackers("Hijacker");</div><div>   Hijackers.Install(h1);</div><div> </div><div>   // Add /prefix origins to ndn::GlobalRouter</div><div>   ndnGlobalRoutingHelper.AddOrigins(prefix, producer);</div><div> </div><div>   // Calculate and install FIBs</div><div>   ndn::GlobalRoutingHelper::CalculateRoutes();</div><div> </div><div>   Simulator::Stop(Seconds(30.0));</div><div>   Simulator::Run();</div><div>   Simulator::Destroy();</div><div><br></div><div>  return 0;</div></div><br></pre><pre style="white-space: pre-wrap; color: rgb(0, 0, 0);"><br></pre></div>Kind Regards.</div><div><br></div></div></body></html>