Monitoring mininet

Hi all,

I need to use a tool to monitor the entire Mininet flow and to display the flow flowing through each switch port, but it seems that this tool only supports OvS now. And probably because the P4 and OvS bridges are different, the tool is not adapted to P4.

I would like to know what is the way to modify the P4 bridge to make it compatible with OvS, or a good tool to monitor the entire Mininet flow and cut it to fit well with P4.


I thought about the in-band telemetry approach, but the in-band telemetry manual is too complicated, and I would like to know what is an easy way to get started with in-band telemetry, and I would be grateful for some tutorials.

Hi caiboyu,

  1. You can find here an implementatio of INT In-band Network Telemetry (INT) with ONOS and P4 - ONOS - Wiki. Moreover the implemnetation of the INT should be done in your p4 pipeline. In addition to that you have to deploy a script capable to parse the INT data and plot the data in grafana of a similar tool.

  2. if you don’t need to do telemetry, but you need to have a view of what’s going on in the network. You could control the P4 switches with ONOS, in this way you have an overview of flow rules installed in the devices, how many packets match them, etc. But even in this case you have to write some code, more in detail an ONOS applocation for managing an controlling your P4 pipeline.

Hi DavideS,

Thank you very much for your answer!

For some reasons, I can’t use ONOS, but write a simple controller using Mininet’s API. Can I complete in-band telemetry without using ONOS?

Hi caiboyu,

You can deploy the INT in you P4 program, morover you have to extend it with tables,actions,etc for providing and handling the INT. The link that I shared with you provide an overall overview but here you can find an example of INT that could also help you to undestand the documentations avaiable on onos/int.p4 at master · opennetworkinglab/onos · GitHub