Virtual Network Monitoring (sFlow + Mininet)

645 views
Skip to first unread message

Abhishek Dwaraki

unread,
Feb 13, 2016, 10:37:41 AM2/13/16
to sFlow
Hi,
    I am new to sFlow and was investigating if I could use it for some SDN work that I am doing. I will try and detail my setup and requirements as much as possible. Any advice is much appreciated. Currently, I do not have access to hardware and hence much of my setup is built on Mininet and ONOS as a controller. I do not even have multiple machines to manage a multi-machine OVS setup.

1. I was to do some network monitoring for the purpose of NFV service chaining. My requirements are that I be able to weight the network topology graph in some way, which means collecting a workable metric live of some sort. Delay or link latency is what I need for now, but link utilization can also be considered if available.

2. I see that sFlow has the capability to retrieve CPU load/utilization metrics. Does this work in an environment like Mininet? I know that Mininet runs on a single instance of OVS and am not quite sure if sFlow can capture individual switch loads? If it can, could someone please point me to some documentation that I can use? 

3. With regards to #2, if sFlow can capture CPU utilization, is it restricted to network devices or can it query loads for hosts in Mininet too? If it is possible, any links to documentation please?

Hope I can find some answers here. Thanks in advance.

Regards,
Abhishek.

Peter Phaal

unread,
Feb 13, 2016, 11:25:25 AM2/13/16
to sFlow
sFlow's packet sampling mechanism gives you a real-time view of link utilization. Measuring delay / queueing with sFlow requires instrumentation in the datapath, something that is starting to appear in physical switches, e.g.


However, while delay information is extremely useful, utilization is a better control metric for SDN/NFV:

http://sflow.org/sFlowQoS/

In a Mininet setup, there is one instance of Open vSwitch no matter how many logical switches are being emulated. You need to map the Open vSwitch ports to the logical ports in your Mininet setup. If you look at the leafspine.py script in the following example, you can see how this is accomplished:


The above example uses the sFlow-RT real-time analytics software. sFlow-RT is being used in a number of SDN/NFV projects and you might want to consider using it in your project:


If you have questions about the example, or would like to connect to other researchers, you should ask them on the sFlow-RT group:


It is possible that the Host sFlow agent might be able to give you cpu/memory/IO stats for the Mininet containers used to emulate switches and hosts:


You will probably need to make some modifications to the code since only Docker APIs are currently supported. If you have any questions about Host sFlow, you should ask them on the Host sFlow mailing list:

Abhishek Dwaraki

unread,
Feb 13, 2016, 2:38:58 PM2/13/16
to sFlow
Many thanks Peter. The help is much appreciated. I will look into the appropriate modules and get back if I have any other questions. Thanks once again.

Abhishek.

Abhishek Dwaraki

unread,
Feb 16, 2016, 3:58:19 PM2/16/16
to sFlow
Hi Peter,
              I was trying to execute the leafandspine example in the hybrid networking link that you provided. The ecmp.js file imports a json2.js file from extras. I do not find this file in the downloaded tar for sflow-rt. Any pointers about where this file can be found?

Regards,
Abhishek.

On Saturday, February 13, 2016 at 10:37:41 AM UTC-5, Abhishek Dwaraki wrote:

Peter Phaal

unread,
Feb 16, 2016, 4:14:54 PM2/16/16
to sFlow
You can remove the include line, you don't need the file. JSON
encoding / decoding is built in.

Could you please direct future questions about sFlow-RT to the
sFlow-RT mailing list, http://sflow-rt.com/community.php

Peter
> --
> You received this message because you are subscribed to the Google Groups
> "sFlow" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sflow+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages