Hi, One more information that Host1 & Host2 are connected directly with Ethernet Cable (eth1 <--->eth1, no switch in between). But I don't think, its make any difference as far as Vlan & Ingress Policing Concern.
Thanks On Tue, Dec 10, 2013 at 2:09 PM, Linux user <linuxuser...@gmail.com> wrote: > Hi, > > Could any one from openvswitch community help in understanding Vlan & > Ingress Policing Issue. > > Thanks > > > > > On Tue, Dec 10, 2013 at 11:28 AM, Linux user <linuxuser...@gmail.com>wrote: > >> Hi , >> >> I was to trying to control traffic from VM in our environment. >> Ingress rate limiting Policing work well (ingress applied at tun device >> vnet0). >> >> But as soon as Vlan tag used at VM (like eth0.2), Ingress rate limiting >> Policing not works ? Its allow more packets than desire (default packet >> rate depending on host interface speed). >> >> I am using following commands: >> ovs-vsctl set Interface vnet0 ingress_policing_rate=1000 >> ovs-vsctl set Interface vnet0 ingress_policing_burst=100 >> >> Also confirm that Ingress Policing is configure at vnet0: >> tc filter show dev vnet0 parent ffff:fff1 >> filter parent ffff: protocol ip pref 50 u32 >> filter parent ffff: protocol ip pref 50 u32 fh 800: ht divisor 1 >> filter parent ffff: protocol ip pref 50 u32 fh 800::800 order 2048 key ht >> 800 bkt 0 flowid :1 >> match 00000000/00000000 at 12 >> police 0x7 rate 1000Kbit burst 100Kb mtu 64Kb action drop overhead 0b >> ref 1 bind 1 >> >> At Host1 (with VM): >> [root@localhost etc]# ovs-vsctl show >> 86494214-302a-4889-bba0-ee7bd66c8b0b >> Bridge "ovsbr0" >> Port "eth1" >> Interface "eth1" >> Port "ovsbr0" >> Interface "ovsbr0" >> type: internal >> Port "vnet0" >> Interface "vnet0" >> ovs_version: "1.4.6" >> >> At VM: >> [root@CentOS-6 ~]# ifconfig >> eth0 Link encap:Ethernet HWaddr 52:54:00:DC:87:6E >> inet6 addr: fe80::5054:ff:fedc:876e/64 Scope:Link >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 >> RX packets:1216572 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:2437042 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:1000 >> RX bytes:83603230 (79.7 MiB) TX bytes:3682548484 (3.4 GiB) >> >> eth0.4093 Link encap:Ethernet HWaddr 52:54:00:DC:87:6E >> inet addr:192.168.200.11 Bcast:192.168.200.255 >> Mask:255.255.255.0 >> inet6 addr: fe80::5054:ff:fedc:876e/64 Scope:Link >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 >> RX packets:808841 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:1622423 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:0 >> RX bytes:45360666 (43.2 MiB) TX bytes:2449279050 (2.2 GiB) >> >> lo Link encap:Local Loopback >> inet addr:127.0.0.1 Mask:255.0.0.0 >> inet6 addr: ::1/128 Scope:Host >> UP LOOPBACK RUNNING MTU:16436 Metric:1 >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:0 >> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) >> >> [root@CentOS-6 ~]# >> >> At Host2 (another host): >> [root@localhost ~]# ovs-vsctl show >> d5c321fc-30ce-4278-a947-ec37d76a8f23 >> Bridge "ovsbr0" >> Port "ovsbr0.4093" >> tag: 4093 >> Interface "ovsbr0.4093" >> type: internal >> Port "eth1" >> Interface "eth1" >> Port "ovsbr0" >> Interface "ovsbr0" >> type: internal >> ovs_version: "1.4.6" >> >> >> >> Could any one please help me to understand what went wrong with Ingress >> rate limiting Policing when using VLAN ? >> >> Please let me know if any logs from system is needed. >> >> >> Thanks >> >> >> >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss