[Mini-NDN] Setting Link Bandwidth in minindn

Navdeep Uniyal Navdeep.Uniyal at neclab.eu
Fri Apr 29 01:41:17 PDT 2016


Hi Vince,

The bandwidth on the interface is getting changed and not getting round off. I tested with three values, 2Mb, 2.5Mb and 3Mb:

2Mb Bandwidth:
[cid:image001.png at 01D1A203.A83FCC50]

2.5Mb Bandwidth:
[cid:image002.png at 01D1A203.A83FCC50]

3Mb Bandwidth:
[cid:image003.png at 01D1A203.A83FCC50]

If we see the client bandwidth, it is getting changed to the nearest set value(2, 2.5 and 3Mb).


Best Regards,
Navdeep Uniyal

From: Vince Lehman (vslehman) [mailto:vslehman at memphis.edu]
Sent: Donnerstag, 28. April 2016 18:00
To: Navdeep Uniyal
Cc: mini-ndn at lists.cs.ucla.edu
Subject: Re: [Mini-NDN] Setting Link Bandwidth in minindn

Hi Navdeep,

I remember investigating this previously for another user, and I think the problem was that when the value is passed to Mininet, it will be interpreted as an integer. Although you can accept a floating point value, when the value is passed to Mininet’s traffic shaping command, it will round the bandwidth down.

Can you check the information for the interface to see if it has 2.5Mb bandwidth configured or if the value was rounded down to 2Mb?

--
Vince Lehman

On Apr 28, 2016, at 4:51 AM, Navdeep Uniyal <navdeep.uniyal at neclab.eu<mailto:navdeep.uniyal at neclab.eu>> wrote:

Hi Minindn team,

I was trying to set up the bandwidth of the link in minindn to be in decimal( e.g. 2.5Mb). It throws up an error as it does not accept the float values. I have modified the conf_parser.py file as below:

for arg in args:
            arg_name, arg_value = arg.split('=')
            key = arg_name
            value = arg_value
            if key in ['bw']:
                value = float(value)                        // Earlier it was int(value)
            if key in ['jitter','max_queue_size']:
                value = int(value)


It makes the system accept the float values.
I wanted to know if it is deliberately done to accept only integer values and will it have impact on some other functionality? If not, I guess it would be better to accept float values as bandwidth requirements may differ for experiments and will give more finer granularity.


Thank you,
Best Regards,
Navdeep Uniyal
_______________________________________________
Mini-NDN mailing list
Mini-NDN at lists.cs.ucla.edu<mailto:Mini-NDN at lists.cs.ucla.edu>
http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20160429/a10d12a3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 8379 bytes
Desc: image001.png
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20160429/a10d12a3/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 9155 bytes
Desc: image002.png
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20160429/a10d12a3/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 7693 bytes
Desc: image003.png
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20160429/a10d12a3/attachment-0002.png>


More information about the Mini-NDN mailing list