<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">in your simulation scenario, use something like the following (this refers to the Start method, there is also a Stop method that you can use):</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/examples/ndn-tree-cs-tracers.cpp#L95" class="">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/examples/ndn-tree-cs-tracers.cpp#L95</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jan 24, 2017, at 1:28 AM, Junior DONGO <<a href="mailto:junior.dongo@lacl.fr" class="">junior.dongo@lacl.fr</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class=""><p class="">Hi Spyridon,</p><p class="">Thank you for your help.</p><p class="">I am trying what you suggest but when enabling the load balancing
      strategy using  ndn::StrategyChoiceHelper::InstallAll("/prefix",
      "/localhost/nfd/strategy/random-load-balancer"), the result is the
      same.</p><p class="">Also, how can I stop an application at runtime to simulate the
      node failure? I am trying something like this:
"Simulator::Schedule(Seconds(3),ns3::ndn::ConsumerCbr::StopApplication,nodes.Get(2));", 
      it doesn't work.</p><p class="">Thank you for your help.</p><p class="">Junior<br class="">
    </p>
    <div class="moz-cite-prefix">On 01/20/2017 06:03 PM, Spyridon
      (Spyros) Mastorakis wrote:<br class="">
    </div>
    <blockquote cite="mid:1F1F3869-44DA-4A8F-8E6D-C2A79F40B5ED@cs.ucla.edu" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" class="">
      Hi,
      <div class=""><br class="">
      </div>
      <div class="">my guess is that this is related to the forwarding
        strategy. Can you try to use the load balancing strategy?</div>
      <div class=""><br class="">
      </div>
      <div class="">I would say that you can simulate a node failure by
        stoping the application running on the node for some time and
        then start it again (or use the LinkControlHelper, like you did,
        if it is more convenient to control the link between 2 nodes).</div>
      <div class=""><br class="">
      </div>
      <div class="">Thanks,</div>
      <div class=""><br class="">
      </div>
      <div class="">
        <div class="">
          <div class="">
            <div class="">
              <div class=""><span class="" style="float: none; display:
                  inline !important;">Spyridon (Spyros) Mastorakis</span><br class="">
                <span class="" style="float: none; display: inline
                  !important;">Personal Website: </span><a class="moz-txt-link-freetext" href="http://cs.ucla.edu/%7Emastorakis/"></a><a class="moz-txt-link-freetext" href="http://cs.ucla.edu/~mastorakis/">http://cs.ucla.edu/~mastorakis/</a><br class="">
                <span class="" style="float: none; display: inline
                  !important;">Internet Research Laboratory</span><br class="">
                <span class="" style="float: none; display: inline
                  !important;">Computer Science Department</span><br class="">
                <span class="" style="float: none; display: inline
                  !important;">UCLA</span></div>
            </div>
          </div>
        </div>
        <br class="">
        <div class="">
          <blockquote type="cite" class="">
            <div class="">On Jan 20, 2017, at 3:21 AM, Junior DONGO <<a class="moz-txt-link-abbreviated" href="mailto:junior.dongo@lacl.fr"></a><a class="moz-txt-link-abbreviated" href="mailto:junior.dongo@lacl.fr">junior.dongo@lacl.fr</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div class="">Dear ndnSim users,<br class="">
                <br class="">
                Is there a way to simulate a node failure during
                simulation? Something like "kill the node" or deactivate
                the node.<br class="">
                <br class="">
                Also using "ndn::LinkControlHelper::FailLink", I observe
                something strange.<br class="">
                <br class="">
                In my scenario, I have something like this:<br class="">
                <br class="">
                node1:consumer<br class="">
                <br class="">
                node2:producer<br class="">
                <br class="">
                node4:producer<br class="">
                <br class="">
                node3: intermediate node<br class="">
                <br class="">
                <br class="">
                node1-----------node2<br class="">
                <br class="">
                |                        |<br class="">
                <br class="">
                |                        |<br class="">
                <br class="">
                |                        |<br class="">
                <br class="">
                node3---------node4<br class="">
                <br class="">
                I use "ndn::LinkControlHelper::FailLink" to fail the
                link between node1 and node2, the interests from node1
                timeout, which means that node1 tries to send the
                interests to node2 and not to node4 through node3.<br class="">
                <br class="">
                Any idea about this behavior? Is it related to the
                strategy(best route is used)?<br class="">
                <br class="">
                Thanks,<br class="">
                <br class="">
                Junior<br class="">
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
    </blockquote>
    <br class="">
  </div>

</div></blockquote></div><br class=""></div></body></html>