<div dir="ltr"><div>Hello all,<br></div>I'm trying to implement the following topology with the information bellow:<span class="gmail-im"><br><img src="cid:ii_158ad655138befc9" alt="Inline image 1" height="169" width="386"><br></span><div><div><img src="cid:ii_158ad65939223660" alt="Inline image 2" height="272" width="411"><br></div><div>and the expected result is:<br><img src="cid:ii_158ad68956a28393" alt="Inline image 3" height="279" width="411"><br></div><div>but when I used the experiment which will be added bellow I got the following result:<br><img src="cid:ii_158ad6b901639f9b" alt="Inline image 4" height="231" width="411"><br></div><div>and I have 2 questions:<br></div><div>(1) why the convergence takes 20 pings while it's expected to take 60 pings while I set ctime=60?<br></div><div>(2)why does the last 20 pings still about 60 ms while they're expected to be about 40 ms like the first 60 pings?<br><br></div><div>the experiment that caused the figure above is:<br><br><span class="gmail-im"><br>class test(CustomExperiment):<br><br>    def __init__(self, args):<br>        self.pctTraffic = float(args["pctTraffic"])<br>        print "Using %f traffic" % self.pctTraffic<br>        self.nFaces = int(input())<br>        print "number of faces is %f" %self.nFaces<br>        if self.nFaces==0:<br></span>            args["nPings"] = 1000<br>        if self.nFaces==1:<br>            args["nPings"] = 700<br>        self.strategy = args["strategy"]<br>        print self.strategy<span class="gmail-im"><br>        CustomExperiment.__init__(<wbr>self, args)<br><br>    def run(self):<br>        self.startPctPings("node2","<wbr>node6")<br><br>        time.sleep(60)<br><br>        for host in self.net.hosts:<br>            if <a target="_blank" href="http://host.name">host.name</a> == "node4":<br>                self.failNode(host)<br>                break<br><br>        if self.nFaces==1:<br>            print "Waiting " + str(self.convergenceTime) + " seconds for convergence..."<br>            time.sleep(self.<wbr>convergenceTime)<br>            print "...done"<br><br>            # To check whether all the nodes of NLSR have converged<br>            didNlsrConverge = True<br><br>            # Checking for convergence<br>            for host in self.net.hosts:<br>                if <a target="_blank" href="http://host.name">host.name</a>=="node2":<br>                    statusRouter = host.cmd("nfd-status -b | grep /ndn/edu/%C1.Router/cs/")<br>                    statusPrefix = host.cmd("nfd-status -b | grep /ndn/edu/")<br>                    didNodeConverge = True<br>                    for node in self.nodes.split(","):<br></span>                        # print node<br>                        if node!="node4":<span class="gmail-im"><br>                            if ("/ndn/edu/%C1.Router/cs/" + node) not in statusRouter:<br></span>                              <wbr>  print "fuck"<span class="gmail-im"><br>                              <wbr>  didNodeConverge = False<br>                              <wbr>  didNlsrConverge = False<br>                            if str(host) != node and ("/ndn/edu/" + node) not in statusPrefix:<br></span>                              <wbr>  print"fuck2"<span class="gmail-im"><br>                              <wbr>  didNodeConverge = False<br>                              <wbr>  didNlsrConverge = False<br><br>                    host.cmd("echo " + str(didNodeConverge) + " > convergence-result &")<br><br>            if didNlsrConverge:<br>                print("NLSR has successfully converged.")<br>            else:<br>                print("NLSR has not converged. Exiting...")<br>                self.net.stop()<br></span>                self.sys.exit(1)<br>            time.sleep(60)<br><br>            # time.sleep(120)<span class="gmail-im"><br><br>        else:<br>            time.sleep(120)<br><br>        for host in self.net.hosts:<br>            if <a target="_blank" href="http://host.name">host.name</a> == "node4":<br>                self.recoverNode(host)<br><br>        time.sleep(20)<br><br>CustomExperiment.register("<wbr>test", test)<br><br></span></div><div><span class="gmail-im">Thank you<br></span></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><br></div></div>
</div></div></div>