[Mini-NDN] bringing out a node

Matteo Bertolino Matteo.Bertolino at eurecom.fr
Mon Nov 14 15:23:05 PST 2016


Hi,

I think that you can just running the node4 program and write manually  
in the mini consolle "node4 nfd-stop".
Probably you've to stop also nlsr instance in order to do a clean  
failure simulation, but nfd is enough. I get refer about nfd-start and  
nfd-stop command that I read here:  
http://named-data.net/doc/NFD/current/INSTALL.html

A little better, you can just simulate this running a timer on the  
program running in node4. When timer will expires, you can stop the  
forwarding daemon.
For example, in pseudo-code:

function timer:
     sleep(n seconds)
     system ("node4name nfd-stop")
     exit

main:
    thread t(function timer)
    t.start
    t.detach
    node.initilize
    node.run


Hope that works.
Matteo

Quoting sepehr abdous <sepehrabdous1375 at gmail.com>:

> Hello all,
> I'm trying to write an experiment for the topology below:
> [image: Inline image 1]
> and in this experiment I just want to bring out node4(like that node 4 has
> failed) is there anything I can do in the experiment code to do this?
> Thank you
>
> --
> Sepehr Abdous
> Faculty: abdous at ce.sharif.edu
> Yahoo mail: sepehrabdous at yahoo.com
> Cellphone:+989194030591
> School of computer engineering
> Sharif University of Technology
> Tehran, Iran
>



-------------------------------------------------------------------------------
This message was sent using EURECOM Webmail: http://webmail.eurecom.fr





More information about the Mini-NDN mailing list