[Mini-NDN] topology result

sepehr abdous sepehrabdous1375 at gmail.com
Wed Nov 23 14:06:01 PST 2016


also my experiments codes are:
for blue points:


from ndn.experiments.experiment import Experiment
from ndn.nlsr import Nlsr

import time

class pingallreg(Experiment):

    def __init__(self, args):
        args["nPings"] = 200000
        Experiment.__init__(self, args)

    def run(self):
        self.startPctPings()
        time.sleep(200)

Experiment.register("wofail", pingallreg)

and for red points which involve failure:

from ndn.experiments.experiment import Experiment
from ndn.nlsr import Nlsr

import time

class fail(Experiment):

    def __init__(self, args):
        args["nPings"] = 140000
        Experiment.__init__(self, args)

        self.PING_COLLECTION_TIME_BEFORE_FAILURE = 60
        self.PING_COLLECTION_TIME_AFTER_RECOVERY = 20

    def run(self):
        self.startPctPings()

        # After the pings are scheduled, collect pings for 1 minute
        time.sleep(self.PING_COLLECTION_TIME_BEFORE_FAILURE)

        # Bring down CSU
        for host in self.net.hosts:
            if host.name == "node4":
                self.failNode(host)
                break

        # CSU is down for 2 minutes
        time.sleep(120)

        # Bring CSU back up
        for host in self.net.hosts:
            if host.name == "node4":
                self.recoverNode(host)

                for other in self.net.hosts:
                    if host.name != other.name:
                        self.ping(host, other,
self.PING_COLLECTION_TIME_AFTER_RECOVERY)

        # Collect pings for more seconds after CSU is up
        time.sleep(self.PING_COLLECTION_TIME_AFTER_RECOVERY)

Experiment.register("failone", fail)



On Thu, Nov 24, 2016 at 1:31 AM, sepehr abdous <sepehrabdous1375 at gmail.com>
wrote:

> Hello all,
> I'm new to mini-ndn and I'm trying to implement the following topology
>
> [image: Inline image 2]
> I implemented it with the following information:
> [image: Inline image 3]
> and based on the paper the expected results on ping is :
> [image: Inline image 4]
> but when I implement it I get the following image
>
> [image: Inline image 5]
> and as you can see there are some problems:
> (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
> (2) as you can see when node4 fails we have some values that shows
> something happened:
> [image: Inline image 6]
> but this values doesn't exist in my figure.
> (3) the density of red points in my figure isn't the same in all aspects.
> can you please help me with this problems.
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20161124/ecd44bf4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled(2).png
Type: image/png
Size: 29814 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20161124/ecd44bf4/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image(1).png
Type: image/png
Size: 42436 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20161124/ecd44bf4/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NLSR.jpg
Type: image/jpeg
Size: 24551 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20161124/ecd44bf4/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled(1).png
Type: image/png
Size: 72749 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20161124/ecd44bf4/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled.png
Type: image/png
Size: 11179 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20161124/ecd44bf4/attachment-0007.png>


More information about the Mini-NDN mailing list