[ovs-discuss] qos policy

lanny wan choosewan at gmail.com
Mon Sep 3 19:16:51 UTC 2012


halo all, i hope you can help within my QoS configuration here :
my topology is based on
http://openvswitch.org/support/config-cookbooks/qos-rate-limiting/
on Client1: br0, within port : tap0, tap1,
Client 2 : as measurement host, Ubuntu 12.04; iperf
as example, in tap0 i want to limit rate 15Mb

Ingress Policing Configuration

1.) enable kernel module
    /usr/src/linux-headers-3.2.0-27-generic-pae/.config
CONFIG_BRIDGE=m
CONFIG_NET_SCH_INGRESS=m
CONFIG_NET_CLS_U32=m
CONFIG_NET_CLS_ACT=m
CONFIG_NET_CLS_BASIC=m
CONFIG_NET_ACT_POLICE=m

    output:
root at ubuntu:~/ovs# lsmod | grep cls_basic
cls_basic              12802  0
root at ubuntu:~/ovs# lsmod | grep sch_ingress
sch_ingress            12746  0
root at ubuntu:~/ovs# lsmod | grep act_police
act_police             12804  0
root at ubuntu:~/ovs#

2.) link to header
root at ubuntu:~/ovs# ls -ald /lib/modules/3.2.0-27-generic-pae/build
lrwxrwxrwx 1 root root 43 Jul  6 12:10
/lib/modules/3.2.0-27-generic-pae/build ->
/usr/src/linux-headers-3.2.0-27-generic-pae
root at ubuntu:~/ovs#

3.) ingress policy
     ovs-vsctl set Interface tap0 ingress_policing_rate=15000


4.) output OVS
root at ubuntu:~/ovs# ovs-vsctl list interface tap0
_uuid               : 1989a8ac-5993-4137-9295-a5008d08d2b8
admin_state         : up
cfm_fault           : []
cfm_fault_status    : []
cfm_mpid            : []
cfm_remote_mpids    : []
duplex              : full
external_ids        : {}
ingress_policing_burst: 0
ingress_policing_rate: 0
lacp_current        : []
link_resets         : 1
link_speed          : 10000000
link_state          : up
mac                 : []
mtu                 : 1500
name                : "tap0"
ofport              : 5
options             : {}
other_config        : {}
statistics          : {collisions=0, rx_bytes=611876, rx_crc_err=0,
rx_dropped=0, rx_errors=0, rx_frame_err=0, rx_over_err=0, rx_packets=2750,
tx_bytes=21715, tx_dropped=3948, tx_errors=0, tx_packets=142}
status              : {driver_name=tun, driver_version="1.6",
firmware_version="N/A"}
type                : ""
root at ubuntu:~/ovs#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20120904/575d5bf0/attachment.html>


More information about the discuss mailing list