<div dir="ltr"><div><div>also my experiments codes are:<br></div>for blue points:<br><br><br>from ndn.experiments.experiment import Experiment<br>from ndn.nlsr import Nlsr<br><br>import time<br><br>class pingallreg(Experiment):<br><br>    def __init__(self, args):<br>        args["nPings"] = 200000<br>        Experiment.__init__(self, args)<br><br>    def run(self):<br>        self.startPctPings()<br>        time.sleep(200)<br><br>Experiment.register("wofail", pingallreg)<br><br></div>and for red points which involve failure:<br><br>from ndn.experiments.experiment import Experiment<br>from ndn.nlsr import Nlsr<br><br>import time<br><br>class fail(Experiment):<br><br>    def __init__(self, args):<br>        args["nPings"] = 140000<br>        Experiment.__init__(self, args)<br><br>        self.PING_COLLECTION_TIME_BEFORE_FAILURE = 60<br>        self.PING_COLLECTION_TIME_AFTER_RECOVERY = 20<br><br>    def run(self):<br>        self.startPctPings()<br><br>        # After the pings are scheduled, collect pings for 1 minute<br>        time.sleep(self.PING_COLLECTION_TIME_BEFORE_FAILURE)<br><br>        # Bring down CSU<br>        for host in self.net.hosts:<br>            if <a href="http://host.name">host.name</a> == "node4":<br>                self.failNode(host)<br>                break<br><br>        # CSU is down for 2 minutes<br>        time.sleep(120)<br><br>        # Bring CSU back up<br>        for host in self.net.hosts:<br>            if <a href="http://host.name">host.name</a> == "node4":<br>                self.recoverNode(host)<br><br>                for other in self.net.hosts:<br>                    if <a href="http://host.name">host.name</a> != <a href="http://other.name">other.name</a>:<br>                        self.ping(host, other, self.PING_COLLECTION_TIME_AFTER_RECOVERY)<br><br>        # Collect pings for more seconds after CSU is up<br>        time.sleep(self.PING_COLLECTION_TIME_AFTER_RECOVERY)<br><br>Experiment.register("failone", fail)<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 24, 2016 at 1:31 AM, sepehr abdous <span dir="ltr"><<a href="mailto:sepehrabdous1375@gmail.com" target="_blank">sepehrabdous1375@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello all,<br></div>I'm new to mini-ndn and I'm trying to implement the following topology<br><span style="color:rgb(0,0,255)"></span><br><div><div><div><div class="m_4757294222532849767gmail_signature"><div dir="ltr"><div><img alt="Inline image 2" src="cid:ii_158932da9c2d60d3" width="440" height="156"><br></div><div>I implemented it with the following information:<br><img alt="Inline image 3" src="cid:ii_158932ed452ab46e" width="411" height="273"><br></div><div>and based on the paper the expected results on ping is :<br><img alt="Inline image 4" src="cid:ii_158932f69cd7cd68" width="411" height="263"><br></div><div>but when I implement it I get the following image<br><br><img alt="Inline image 5" src="cid:ii_1589330c32fb3f4d" width="411" height="231"><br></div><div>and as you can see there are some problems:<br></div><div>(1) the values on the y-axis is much higher than in the paper, I figured out that It's caused by the delay, I set the delay for every link to 20ms so the values are around 80ms but when I set the delay to 0ms the values are around 10ms but the swing of values become more and values are not united like when the delay is 20ms<br></div><div>(2) as you can see when node4 fails we have some values that shows something happened:<br><img alt="Inline image 6" src="cid:ii_15893345029ab5d2" width="304" height="234"><br></div><div>but this values doesn't exist in my figure.<br></div><div>(3) the density of red points in my figure isn't the same in all aspects.<br></div><div>can you please help me with this problems.<br></div><div>Thank you<br></div></div></div>
</div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><span style="color:rgb(0,0,255)">Sepehr Abdous<br></span></div><span style="color:rgb(0,0,255)">Faculty: <a href="mailto:abdous@ce.sharif.edu" target="_blank">abdous@ce.sharif.edu</a><br></span></div><div><span style="color:rgb(0,0,255)">Yahoo mail: <a href="mailto:sepehrabdous@yahoo.com" target="_blank">sepehrabdous@yahoo.com</a><br></span></div><div><span style="color:rgb(0,0,255)">Cellphone:+989194030591<br></span></div><div><span style="color:rgb(0,0,255)">School of computer engineering<br></span></div><div><span style="color:rgb(0,0,255)">Sharif University of Technology<br></span></div><div><span style="color:rgb(0,0,255)">Tehran, Iran</span><br></div></div></div>
</div>