tag:blogger.com,1999:blog-1978652979840829013.post4088409086579611939..comments2024-02-13T07:05:41.069-08:00Comments on sFlow: Mininet flow analyticsPeterhttp://www.blogger.com/profile/00856599914190257147noreply@blogger.comBlogger57125tag:blogger.com,1999:blog-1978652979840829013.post-32486898828147376652021-04-20T23:29:29.441-07:002021-04-20T23:29:29.441-07:00I am sorry I don't have an answer. You might t...I am sorry I don't have an answer. You might try the Mininet mailing list.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-44467724812232003582021-04-20T20:02:12.454-07:002021-04-20T20:02:12.454-07:00Hi...I am doing a simple academic project on sdn w...Hi...I am doing a simple academic project on sdn wherein i have built a simple tree topology using mininet. I am performing DDOS ICMP flood attack and want to measure cpu and memory stats for individual hosts. How can it be done ?Anonymoushttps://www.blogger.com/profile/17395445653582269354noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-62546358441254731532020-11-12T09:55:49.195-08:002020-11-12T09:55:49.195-08:00Hi peter
how to generate a continuous requests to...Hi peter <br />how to generate a continuous requests to the server in mininet and Ryu controller in order to measure server response time please??عبدوhttps://www.blogger.com/profile/08942225068852260178noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-70489008566263799052020-08-22T21:14:04.996-07:002020-08-22T21:14:04.996-07:00Try the following to upgrade the SSL certicates:
...Try the following to upgrade the SSL certicates: <br />pip2.7 install --upgrade httplib2Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-59430602349938327352020-08-22T14:48:33.887-07:002020-08-22T14:48:33.887-07:00Hi Peter,
pip install --index-url=https://pypi.or...Hi Peter,<br /><br />pip install --index-url=https://pypi.org/simple/ requests --upgrade<br />Downloading/unpacking requests from https://files.pythonhosted.org/packages/45/1e/0c169c6a5381e241ba7404532c16a21d86ab872c9bed8bdcd4c423954103/requests-2.24.0-py2.py3-none-any.whl#sha256=fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898<br />Cleaning up...<br />Exception:<br />Traceback (most recent call last):<br /> File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main<br /> status = self.run(options, args)<br /> File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run<br /> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)<br /> File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1198, in prepare_files<br /> do_download,<br /> File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1376, in unpack_url<br /> self.session,<br /> File "/usr/lib/python2.7/dist-packages/pip/download.py", line 546, in unpack_http_url<br /> resp = session.get(target_url, stream=True)<br /> File "/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl/requests/sessions.py", line 479, in get<br /> return self.request('GET', url, **kwargs)<br /> File "/usr/lib/python2.7/dist-packages/pip/download.py", line 237, in request<br /> return super(PipSession, self).request(method, url, *args, **kwargs)<br /> File "/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl/requests/sessions.py", line 467, in request<br /> resp = self.send(prep, **send_kwargs)<br /> File "/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl/requests/sessions.py", line 570, in send<br /> r = adapter.send(request, **kwargs)<br /> File "/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl/requests/adapters.py", line 385, in send<br /> raise SSLError(e)<br />SSLError: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed<br /><br />Storing debug log for failure in /root/.pip/pip.log<br />Anonymoushttps://www.blogger.com/profile/09120896238889750613noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-72371819293938389812020-08-22T14:47:06.697-07:002020-08-22T14:47:06.697-07:00Cannot fetch index base URL https://pypi.python.or...Cannot fetch index base URL https://pypi.python.org/simple/<br />Could not find any downloads that satisfy the requirement requests in /usr/lib/python2.7/dist-packages<br />Downloading/unpacking requests<br />Cleaning up...<br />No distributions at all found for requests in /usr/lib/python2.7/dist-packages<br />Storing debug log for failure in /root/.pip/pip.log<br />Anonymoushttps://www.blogger.com/profile/09120896238889750613noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-4377960544828073642020-08-22T14:02:58.220-07:002020-08-22T14:02:58.220-07:00pip install requests --upgradepip install requests --upgradePeterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-46353060873596779432020-08-22T12:24:53.883-07:002020-08-22T12:24:53.883-07:00Hi Peter,
pip --version
pip 1.5.4 from /usr/lib/py...Hi Peter,<br />pip --version<br />pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)<br /><br />How to update python requests library?Anonymoushttps://www.blogger.com/profile/09120896238889750613noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-54555319929763100822020-08-20T08:36:28.316-07:002020-08-20T08:36:28.316-07:00What version of the requests module are you using?...What version of the requests module are you using? It needs to be 2.4.2 or later.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-42392907020609570672020-08-20T07:37:00.124-07:002020-08-20T07:37:00.124-07:00Hi Peter,
Python 2.7.6, 14.04.1-Ubuntu, Mininet 2...Hi Peter, <br />Python 2.7.6, 14.04.1-Ubuntu, Mininet 2.2.1.. Still facing same issue. What else I'm missing?<br />Anonymoushttps://www.blogger.com/profile/09120896238889750613noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-73187348939055053182020-07-28T11:12:14.132-07:002020-07-28T11:12:14.132-07:00Ryu measurement based control provides an example....<a href="https://blog.sflow.com/2018/10/ryu-measurement-based-control.html" rel="nofollow">Ryu measurement based control</a> provides an example.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-54242427573928618912020-07-28T11:01:42.143-07:002020-07-28T11:01:42.143-07:00Thanks that worked for me, also can you guide me h...Thanks that worked for me, also can you guide me how can i perform actions like dropping data in case of threshold s crossed instead of only print the flow key Phoenixhttps://www.blogger.com/profile/16961951078059053617noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-13485033261772615202020-07-22T09:04:25.434-07:002020-07-22T09:04:25.434-07:00The value property is the threshold. In this case ...The value property is the threshold. In this case the value is in bytes per second, so 1000000/8 is 1Mbit/s converted to bytes/second. The Mininet link speed is set to 10Mbit/s, so this is the 10% threshold. A 50% threshold would be 5000000/8. <br /><br />The timeout value is the hysteresis for the threshold (in seconds). This means that the value needs to drop below the threshold for 5 seconds before it can re-trigger.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-11091884130032254802020-07-22T05:48:47.574-07:002020-07-22T05:48:47.574-07:00How to edit ./elephant.py, so that threshold is se...How to edit ./elephant.py, so that threshold is set 40% or 50% instead of 10%. Currently i have edit the script as follows:<br />threshold = {'metric':'pair','value':1000000/8,'byFlow':True,'timeout':5}<br />However, changing the value from 1 to 5 is not working for me. <br /><br />PS. Thanks for such great forum. I started from scratch and was able to successfully plot traffic on Mininet dashboard along with detecting flows that exceed 1 mb.Phoenixhttps://www.blogger.com/profile/16961951078059053617noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-54014529128042909272020-05-13T12:30:37.813-07:002020-05-13T12:30:37.813-07:00The sFlow from Open vSwitch includes key performan...The sFlow from Open vSwitch includes key performance statistics, <a href="https://blog.sflow.com/2015/01/open-vswitch-performance-monitoring.html" rel="nofollow">Open vSwitch performance monitoring</a>. I don't know what instrumentation the ryu controller provides.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-91111754830586108612020-05-13T12:26:08.037-07:002020-05-13T12:26:08.037-07:00Does this tools will support to test memory usage ...Does this tools will support to test memory usage of ryu controller. If anyone has knowledge, whether any tools is available to find the memory consumption of openflow switches which store the flow rule.Anonymoushttps://www.blogger.com/profile/10573514715495529381noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-28766762883397805632019-08-19T06:53:41.679-07:002019-08-19T06:53:41.679-07:00The /metric/ALL/pair/html page was removed in sFlo...The /metric/ALL/pair/html page was removed in sFlow-RT 3.0. You can use the browse-metrics app instead, see <a href="https://blog.sflow.com/2019/08/sflow-rt-30-released.html" rel="nofollow">sFlow-RT 3.0 released</a>.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-90483633321028822292019-08-19T02:49:46.891-07:002019-08-19T02:49:46.891-07:00@peter i follow the steps but when i go to localho...@peter i follow the steps but when i go to localhost:8008/metric i got http error 404, Anonymoushttps://www.blogger.com/profile/10107423151450580942noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-43255421283467495102019-08-02T07:54:15.825-07:002019-08-02T07:54:15.825-07:00You need to update the Python requests library to ...You need to update the Python requests library to version 2.4.2 or later.<br /><br />pip install requests --upgradePeterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-14153448797173760152019-08-02T07:36:39.301-07:002019-08-02T07:36:39.301-07:00Hi Peter, I also met same issue, could you give us...Hi Peter, I also met same issue, could you give us a hand.<br /><br />*** Enabling sFlow:<br />s1 s2 s3<br />*** Sending topology<br />--------------------------------------------------------------------------------<br />Caught exception. Cleaning up...<br /><br />TypeError: request() got an unexpected keyword argument 'json'<br />Anonymoushttps://www.blogger.com/profile/06280089420179189697noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-11552631246691164302019-06-09T12:56:35.691-07:002019-06-09T12:56:35.691-07:00I would recommend putting the elephant.py script i...I would recommend putting the elephant.py script in your home directory, i.e. ~/elephant.py, but you can put it wherever you want, it is not an integrated sFlow-RT applications so it doesn't need to be in the sflow-rt/app directory.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-70877441223803472922019-06-09T09:27:06.629-07:002019-06-09T09:27:06.629-07:00@peter i follow the steps but the elephant.py scri...@peter i follow the steps but the elephant.py scripts i put it in the sflow-rt/app/mininet-dashboard not in the sflow-rt/app is that right?rarehttps://www.blogger.com/profile/12385527140287224189noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-4101055340576709312019-06-09T07:41:42.101-07:002019-06-09T07:41:42.101-07:00Yes, the elephant.py script should work if you use...Yes, the elephant.py script should work if you use the Ryu controller. <a href="https://blog.sflow.com/2018/10/ryu-measurement-based-control.html" rel="nofollow">Ryu measurement based control</a> provides an example using Ryu, Mininet, and sFlow-RT.Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-2590620351573797902019-06-09T07:38:24.313-07:002019-06-09T07:38:24.313-07:00Normally, the sflow-rt/app/ directory is used for ...Normally, the sflow-rt/app/ directory is used for embedded applications, see <a href="https://sflow-rt.com/writing_applications.php" rel="nofollow">Writing Applications</a>. Starting sflow-rt is not going to automatically start elephant.py. <br /><br />The steps you have, seem fine. In the following order, and in separate terminals:<br />1. start sflow-rt<br />2. start mininet<br />3. start elephant.py<br /><br />Peterhttps://www.blogger.com/profile/00856599914190257147noreply@blogger.comtag:blogger.com,1999:blog-1978652979840829013.post-1750854026230474262019-06-09T06:01:28.640-07:002019-06-09T06:01:28.640-07:00@ can i use the ryu controller application instead...@ can i use the ryu controller application instead of default ovs switch controller with elephant.py script?rarehttps://www.blogger.com/profile/12385527140287224189noreply@blogger.com