[ovs-dev] [PATCH] ovs : Implementation to add meter in ovs flows

Joe Stringer joe at ovn.org
Tue Jul 19 00:03:27 UTC 2016


On 15 July 2016 at 00:32,  <deepanshu.saxena30 at gmail.com> wrote:
> From: Deepanshu Saxena <deepanshu.saxena1 at tcs.com>
>
> This commit implements ovs meters in kernel space using the traffic
> control (tc) module of Linux kernel. TC  is  used  to configure Traffic
> Control features like Policing, Shaping etc. Ovs meters are analogous to
> traffic control policing feature. The details from the meter command are
> fetched and mapped to the corresponding fields of tc qdisc,class,filter
> commands.
>
> In this commit only the "ovs-ofctl add-meter" command is translated to
> the respective commands of tc. In this only the drop meter band type is
> implemented.
>
> Tested the code using iperf3. Setup consist of ovs connected to VM using
> tap interface port and another host via hardware interface.
>
> Meter is a switch element that can measure and control the rate of packets. The
> meter triggers a meter band if the packet rate or byte rate passing through
> the meter exceeds a predefined threshold. If the meter band drops the
> packet, it is called a Rate Limiter.
>
> Signed-off-by: Deepanshu Saxena <deepanshu.saxena1 at tcs.com>
> Co-authored-by : Jarno Rajahalme <jrajahalme at nicira.com>

OVS includes netlink libraries for interacting with TC, you shouldn't
need to use popen().



More information about the dev mailing list