<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>nfd-stop will stop all nodes as it kills all NFDs running on the system.</p>
<p><br>
</p>
<p>Take a look at the failure experiment:</p>
<p><a href="https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/failure_experiment.py#L47" class="x_OWAAutoLink" id="LPlnk523194">https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/failure_experiment.py#L47</a><br>
</p>
<p><br>
</p>
<p><a href="https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/experiment.py#L102" class="x_OWAAutoLink" id="LPlnk931488">https://github.com/named-data/mini-ndn/blob/master/ndn/experiments/experiment.py#L102</a><br>
</p>
<p><br>
</p>
<p>Ashlesh</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Mini-NDN <mini-ndn-bounces@lists.cs.ucla.edu> on behalf of Matteo Bertolino <Matteo.Bertolino@eurecom.fr><br>
<b>Sent:</b> Monday, November 14, 2016 5:23:05 PM<br>
<b>To:</b> sepehr abdous<br>
<b>Cc:</b> mini-ndn@lists.cs.ucla.edu<br>
<b>Subject:</b> Re: [Mini-NDN] bringing out a node</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi,<br>
<br>
I think that you can just running the node4 program and write manually  <br>
in the mini consolle "node4 nfd-stop".<br>
Probably you've to stop also nlsr instance in order to do a clean  <br>
failure simulation, but nfd is enough. I get refer about nfd-start and  <br>
nfd-stop command that I read here:  <br>
<a href="http://named-data.net/doc/NFD/current/INSTALL.html">http://named-data.net/doc/NFD/current/INSTALL.html</a><br>
<br>
A little better, you can just simulate this running a timer on the  <br>
program running in node4. When timer will expires, you can stop the  <br>
forwarding daemon.<br>
For example, in pseudo-code:<br>
<br>
function timer:<br>
     sleep(n seconds)<br>
     system ("node4name nfd-stop")<br>
     exit<br>
<br>
main:<br>
    thread t(function timer)<br>
    t.start<br>
    t.detach<br>
    node.initilize<br>
    node.run<br>
<br>
<br>
Hope that works.<br>
Matteo<br>
<br>
Quoting sepehr abdous <sepehrabdous1375@gmail.com>:<br>
<br>
> Hello all,<br>
> I'm trying to write an experiment for the topology below:<br>
> [image: Inline image 1]<br>
> and in this experiment I just want to bring out node4(like that node 4 has<br>
> failed) is there anything I can do in the experiment code to do this?<br>
> Thank you<br>
><br>
> --<br>
> Sepehr Abdous<br>
> Faculty: abdous@ce.sharif.edu<br>
> Yahoo mail: sepehrabdous@yahoo.com<br>
> Cellphone:+989194030591<br>
> School of computer engineering<br>
> Sharif University of Technology<br>
> Tehran, Iran<br>
><br>
<br>
<br>
<br>
-------------------------------------------------------------------------------<br>
This message was sent using EURECOM Webmail: <a href="http://webmail.eurecom.fr">
http://webmail.eurecom.fr</a><br>
<br>
<br>
_______________________________________________<br>
Mini-NDN mailing list<br>
Mini-NDN@lists.cs.ucla.edu<br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a><br>
</div>
</span></font>
</body>
</html>