<div dir="ltr"><div><div><div><div>Thank you very much for your help<br></div>I changed the time to 280 seconds and now the red points at the end become is OK<br><img alt="Inline image 1" src="cid:ii_158b44d867c6b180" height="265" width="471"><br></div>but I still have got problem with convergence time in red points.<br></div>as you can see in the paper it is about 60 pings but for my experiment it's 20.<br></div>what can cause this problem?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 30, 2016 at 12:24 AM, Lan Wang (lanwang) <span dir="ltr"><<a href="mailto:lanwang@memphis.edu" target="_blank">lanwang@memphis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
The original experiment was done with our first NLSR implementation on CCND.  The codebase has been completely changed for NLSR, NFD and ndn-cxx so it’s difficult to know exactly what part contributed to the difference.  One suggestion I have is to run the
 experiment longer to see if there’s any switching back to the lower cost path.  My suspicion is something in the best-route strategy that’s preventing the switching back in a timely manner.
<div><br>
</div>
<div>Nick: could you repeat the experiment and investigate what might be the problem?  Thanks.<br>
<div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<span class="m_-2258062909805216102Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<div><br class="m_-2258062909805216102Apple-interchange-newline">
Lan</div>
</div>
</span></div>
</div>
</div>
<br>
<div>
<blockquote type="cite"><span class="">
<div>On Nov 28, 2016, at 6:14 PM, sepehr abdous <<a href="mailto:sepehrabdous1375@gmail.com" target="_blank">sepehrabdous1375@gmail.com</a>> wrote:</div>
<br class="m_-2258062909805216102Apple-interchange-newline">
</span><div>
<div dir="ltr"><span class="">
<div>Hello all,<br>
</div>
I'm trying to implement the following topology with the information bellow:</span><span class="m_-2258062909805216102gmail-im"><br>
<span id="m_-2258062909805216102cid:ii_158ad655138befc9"><Screenshot from 2016-11-08 03-29-33.png></span><br>
</span>
<div>
<div><span id="m_-2258062909805216102cid:ii_158ad65939223660"><2.png></span><br>
</div>
<div><span class="">and the expected result is:<br>
</span><span id="m_-2258062909805216102cid:ii_158ad68956a28393"><Untitled.png></span><br>
</div>
<div><span class="">but when I used the experiment which will be added bellow I got the following result:<br>
</span><span id="m_-2258062909805216102cid:ii_158ad6b901639f9b"><image(2).png></span><br>
</div><div><div class="h5">
<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="m_-2258062909805216102gmail-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="m_-2258062909805216102gmail-im"><br>
        CustomExperiment.__init__(self<wbr>, args)<br>
<br>
    def run(self):<br>
        self.startPctPings("node2","no<wbr>de6")<br>
<br>
        time.sleep(60)<br>
<br>
        for host in self.net.hosts:<br>
            if <a href="http://host.name/" target="_blank">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.convergenceTim<wbr>e)<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 href="http://host.name/" target="_blank">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="m_-2258062909805216102gmail-im"><br>
                            if ("/ndn/edu/%C1.Router/cs/" + node) not in statusRouter:<br>
</span>                              <wbr>  print "fuck"<span class="m_-2258062909805216102gmail-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="m_-2258062909805216102gmail-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="m_-2258062909805216102gmail-im"><br>
<br>
        else:<br>
            time.sleep(120)<br>
<br>
        for host in self.net.hosts:<br>
            if <a href="http://host.name/" target="_blank">host.name</a> == "node4":<br>
                self.recoverNode(host)<br>
<br>
        time.sleep(20)<br>
<br>
CustomExperiment.register("tes<wbr>t", test)<br>
<br>
</span></div>
<div><span class="m_-2258062909805216102gmail-im">Thank you<br>
</span></div>
<div>-- <br>
<div class="m_-2258062909805216102gmail_signature">
<div dir="ltr"><br>
</div>
</div>
</div>
</div></div></div>
</div>
______________________________<wbr>_________________<br>
Mini-NDN mailing list<br>
<a href="mailto:Mini-NDN@lists.cs.ucla.edu" target="_blank">Mini-NDN@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/mini-ndn</a><br>
</div>
</blockquote>
</div>
<br>
</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>