Thanks for the answer Marcus, I have been going through the sFlows tutorials and I have a question:
Do you know if with POX I can trigger an event from an external source like sFlow (it uses JSON)? Because using sFlow, when the traffic is over the boundary, the controller has to be warned somehow.
The other option is using flow_stats. The problem is that I want to measure the traffic with a specify destiny IP address that goes to the controller and, after checking some parameters, install a rule between the origin and the destiny. flow_stats just send you the data in the flow tables, and to controll that, I have to install a rule with that destiny IP address. I was thinking about this:
Install a rule that matches with the dst IP address "x", and the action would be send it to the controller. After check some parameters, install a rule (or not) between the source and "x". I would controll that with priorities, but my problem comes with the output function. The controller has the port 6633, so if I install a flow entrie with dcpl like:
dpctl add-flow tcp:127.0.0.1:6634 ip,nw_dst=10.0.0.2,priority=30000,actions=output:6633
it does not install any flow entrie (if a change the port number to any other it install it). Any suggestion?
Thanks, Alvaro. -------- Mensaje original -------- Asunto: [pox-dev] Traffic in the network Fecha: Tue, 20 May 2014 18:20:10 +0300 De: Alvaro García <alvaro.gar...@siinet.es> Para: pox-dev@lists.noxrepo.org Hi, I am working with Mininet and POX, and I what I want is controll the amount of traffic. Is there any way to, - Receive the number of packets or bytes per second flowing through the switch, - Receive the numner of packets or bytes per second sent to the Controller? My idea is if the traffic is over a bounday, trigger an event, is it possible? Thanks! Alvaro.