<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
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 class=""><br class="">
</div>
<div class="">Nick: could you repeat the experiment and investigate what might be the problem?  Thanks.<br class="">
<div class="">
<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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<span class="Apple-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; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<div class=""><br class="Apple-interchange-newline">
Lan</div>
</div>
</span></div>
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Nov 28, 2016, at 6:14 PM, sepehr abdous <<a href="mailto:sepehrabdous1375@gmail.com" class="">sepehrabdous1375@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Hello all,<br class="">
</div>
I'm trying to implement the following topology with the information bellow:<span class="gmail-im"><br class="">
<span id="cid:ii_158ad655138befc9"><Screenshot from 2016-11-08 03-29-33.png></span><br class="">
</span>
<div class="">
<div class=""><span id="cid:ii_158ad65939223660"><2.png></span><br class="">
</div>
<div class="">and the expected result is:<br class="">
<span id="cid:ii_158ad68956a28393"><Untitled.png></span><br class="">
</div>
<div class="">but when I used the experiment which will be added bellow I got the following result:<br class="">
<span id="cid:ii_158ad6b901639f9b"><image(2).png></span><br class="">
</div>
<div class="">and I have 2 questions:<br class="">
</div>
<div class="">(1) why the convergence takes 20 pings while it's expected to take 60 pings while I set ctime=60?<br class="">
</div>
<div class="">(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 class="">
<br class="">
</div>
<div class="">the experiment that caused the figure above is:<br class="">
<br class="">
<span class="gmail-im"><br class="">
class test(CustomExperiment):<br class="">
<br class="">
    def __init__(self, args):<br class="">
        self.pctTraffic = float(args["pctTraffic"])<br class="">
        print "Using %f traffic" % self.pctTraffic<br class="">
        self.nFaces = int(input())<br class="">
        print "number of faces is %f" %self.nFaces<br class="">
        if self.nFaces==0:<br class="">
</span>            args["nPings"] = 1000<br class="">
        if self.nFaces==1:<br class="">
            args["nPings"] = 700<br class="">
        self.strategy = args["strategy"]<br class="">
        print self.strategy<span class="gmail-im"><br class="">
        CustomExperiment.__init__(<wbr class="">self, args)<br class="">
<br class="">
    def run(self):<br class="">
        self.startPctPings("node2","<wbr class="">node6")<br class="">
<br class="">
        time.sleep(60)<br class="">
<br class="">
        for host in self.net.hosts:<br class="">
            if <a target="_blank" href="http://host.name/" class="">host.name</a> == "node4":<br class="">
                self.failNode(host)<br class="">
                break<br class="">
<br class="">
        if self.nFaces==1:<br class="">
            print "Waiting " + str(self.convergenceTime) + " seconds for convergence..."<br class="">
            time.sleep(self.<wbr class="">convergenceTime)<br class="">
            print "...done"<br class="">
<br class="">
            # To check whether all the nodes of NLSR have converged<br class="">
            didNlsrConverge = True<br class="">
<br class="">
            # Checking for convergence<br class="">
            for host in self.net.hosts:<br class="">
                if <a target="_blank" href="http://host.name/" class="">host.name</a>=="node2":<br class="">
                    statusRouter = host.cmd("nfd-status -b | grep /ndn/edu/%C1.Router/cs/")<br class="">
                    statusPrefix = host.cmd("nfd-status -b | grep /ndn/edu/")<br class="">
                    didNodeConverge = True<br class="">
                    for node in self.nodes.split(","):<br class="">
</span>                        # print node<br class="">
                        if node!="node4":<span class="gmail-im"><br class="">
                            if ("/ndn/edu/%C1.Router/cs/" + node) not in statusRouter:<br class="">
</span>                              <wbr class="">  print "fuck"<span class="gmail-im"><br class="">
                              <wbr class="">  didNodeConverge = False<br class="">
                              <wbr class="">  didNlsrConverge = False<br class="">
                            if str(host) != node and ("/ndn/edu/" + node) not in statusPrefix:<br class="">
</span>                              <wbr class="">  print"fuck2"<span class="gmail-im"><br class="">
                              <wbr class="">  didNodeConverge = False<br class="">
                              <wbr class="">  didNlsrConverge = False<br class="">
<br class="">
                    host.cmd("echo " + str(didNodeConverge) + " > convergence-result &")<br class="">
<br class="">
            if didNlsrConverge:<br class="">
                print("NLSR has successfully converged.")<br class="">
            else:<br class="">
                print("NLSR has not converged. Exiting...")<br class="">
                self.net.stop()<br class="">
</span>                self.sys.exit(1)<br class="">
            time.sleep(60)<br class="">
<br class="">
            # time.sleep(120)<span class="gmail-im"><br class="">
<br class="">
        else:<br class="">
            time.sleep(120)<br class="">
<br class="">
        for host in self.net.hosts:<br class="">
            if <a target="_blank" href="http://host.name/" class="">host.name</a> == "node4":<br class="">
                self.recoverNode(host)<br class="">
<br class="">
        time.sleep(20)<br class="">
<br class="">
CustomExperiment.register("<wbr class="">test", test)<br class="">
<br class="">
</span></div>
<div class=""><span class="gmail-im">Thank you<br class="">
</span></div>
<div class="">-- <br class="">
<div class="gmail_signature">
<div dir="ltr" class=""><br class="">
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
Mini-NDN mailing list<br class="">
<a href="mailto:Mini-NDN@lists.cs.ucla.edu" class="">Mini-NDN@lists.cs.ucla.edu</a><br class="">
http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>