<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Best route strategy doesn’t adapt using forwarding plane information.  It’s purely based on routing ranking.  You can try the ASF strategy but first you need to make sure that R1 has both faces (one to R2 and one to $3) in its FIB entry for the name prefix
 P is using.<br class="">
<div class=""><br class="Apple-interchange-newline">
<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none;" class="">Lan</span>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On May 11, 2019, at 6:41 AM, Farhi Nassima via Ndn-interest <<a href="mailto:ndn-interest@lists.cs.ucla.edu" class="">ndn-interest@lists.cs.ucla.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;">
<div class="">Hello everyone,</div>
<div class=""><br class="">
</div>
<div class="">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 class="">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 class="">
<div class="">
<pre style="white-space: pre-wrap;" class="">     
                             +=>| R2 |<=+
                            /   \----/   \
                           /              \
                          /                \
   /---\         /----\<=+                  +=>/----\         /---\
   | C |<------->| R1 |                        | R4 |<------->| P |
   \---/         \----/<=+                  +=>\----/         \---/
                          \                /
                           \              /
                            \   /----\   /
                             +=>| R3 |<=+
                                \----/</pre>
<pre style="white-space: pre-wrap;" class=""><br class=""></pre>
<pre style="white-space: pre-wrap;" class=""><div class=""><div class="">AnnotatedTopologyReader topologyReader("", 6);</div><div class="">  topologyReader.SetFileName("src/ndnSIM/examples/topologies/topohijack.txt");</div><div class="">  topologyReader.Read();</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">  </div><div class="">   // Install NDN stack on all nodes</div><div class="">   ndn::StackHelper ndnHelper;</div><div class="">   ndnHelper.SetDefaultRoutes (true);</div><div class=""> </div><div class="">   // Getting containers for the consumer/producer</div><div class="">   Ptr<Node> producer = Names::Find<Node>("Node5");</div><div class="">   Ptr<Node> h1 = Names::Find<Node>("Node3");</div><div class="">   Ptr<Node> consumer=Names::Find<Node>("Node0");</div><div class=""> </div><div class="">   ndnHelper.InstallAll();</div><div class=""> </div><div class="">   // Installing global routing interface on all nodes</div><div class="">   ndn::GlobalRoutingHelper ndnGlobalRoutingHelper;</div><div class="">   ndnGlobalRoutingHelper.InstallAll();</div><div class=""> </div><div class="">   // Install NDN applications</div><div class="">   std::string prefix = "/prefix";</div><div class=""> </div><div class="">   ndn::StrategyChoiceHelper::InstallAll("/prefix", "ndn:/localhost/nfd/strategy/best-route");</div><div class=""> </div><div class="">   ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");</div><div class="">   consumerHelper.SetPrefix(prefix);</div><div class="">   consumerHelper.SetAttribute("Frequency", StringValue("1")); // 100 interests a second</div><div class="">   consumerHelper.Install(consumer);</div><div class=""> </div><div class="">   ndn::AppHelper producerHelper("ns3::ndn::Producer");</div><div class="">   producerHelper.SetPrefix(prefix);</div><div class="">   producerHelper.Install(producer);</div><div class=""> </div><div class="">   ndn::AppHelper Hijackers("Hijacker");</div><div class="">   Hijackers.Install(h1);</div><div class=""> </div><div class="">   // Add /prefix origins to ndn::GlobalRouter</div><div class="">   ndnGlobalRoutingHelper.AddOrigins(prefix, producer);</div><div class=""> </div><div class="">   // Calculate and install FIBs</div><div class="">   ndn::GlobalRoutingHelper::CalculateRoutes();</div><div class=""> </div><div class="">   Simulator::Stop(Seconds(30.0));</div><div class="">   Simulator::Run();</div><div class="">   Simulator::Destroy();</div><div class=""><br class=""></div><div class="">  return 0;</div></div><br class=""></pre>
<pre style="white-space: pre-wrap;" class=""><br class=""></pre>
</div>
Kind Regards.</div>
<div class=""><br class="">
</div>
</div>
</div>
_______________________________________________<br class="">
Ndn-interest mailing list<br class="">
<a href="mailto:Ndn-interest@lists.cs.ucla.edu" class="">Ndn-interest@lists.cs.ucla.edu</a><br class="">
http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest<br class="">
</div>
</blockquote>
</div>
<br class="">
</body>
</html>