Ingress Traffic:
1 ip tuntap add dev tap123 mode tap 2 ovs-vsctl add-br br-int 3 ovs-vsctl add-port br-int tap123 4 ovs-vsctl set interface tap123 ingress_policing_burst 110 5 ovs-vsctl set interface tap123 ingress_policing_rate=100
Egress Traffic:
1 ovs-vsctl add-br br0 2 ovs-vsctl add-port br0 eth0 3 ovs-vsctl set port eth2 qos=@newqos -- --id=@newqos create qos type=linux-htb 4 other-config:max-rate=1000000000 5 queues:123=@5m 6 queues:234=@100m -- 7 --id=@5m create queue other-config:max-rate=5000000 -- 8 --id=@100m create queue other-config:max-rate=100000000 9 10 ovs-ofctl add-flow br0 in_port=5,actions=set_queue:123,normal 11 ovs-ofctl add-flow br0 in_port=6,actions=set_queue:234,normal 12 ovs-vsctl -- --all destroy QoS -- --all destroy Queue