Re: [ovs-discuss] open vSwitch port input buffer capacity

2016-04-14 Thread Ben Pfaff
OK, so you're asking how many packets does OVS buffer on an OpenFlow connection? That was not clear from the question. It is documented in ovs-vswitchd(8): Packet buffering. The OpenFlow specification, version 1.2, says: Switches that implement buffering are expecte

Re: [ovs-discuss] open vSwitch port input buffer capacity

2016-04-14 Thread Ali Volkan Atli
Hi Ben No doubt you are a legend but you are wrong in this question or I'm totally screwed :) I think you did not understand the question correctly. OvS has a buffer mechanism for each controller. While trying to add a flow_mod with max_length is not OFPCML_NO_BUFFER, the packets are stored in

Re: [ovs-discuss] Error compiling kernel module for OVS 2.5.0

2016-04-14 Thread Luca Prete
Nice, Thanks! Luca On Thu, Apr 14, 2016 at 8:13 PM, Jesse Gross wrote: > Future releases of OVS - both 2.5.x and follow on major releases - > will include this patch. Once that happens, there will be no need to > manually patch the source. > > On Thu, Apr 14, 2016 at 2:01 PM, Luca Prete wrote:

Re: [ovs-discuss] Error compiling kernel module for OVS 2.5.0

2016-04-14 Thread Jesse Gross
Future releases of OVS - both 2.5.x and follow on major releases - will include this patch. Once that happens, there will be no need to manually patch the source. On Thu, Apr 14, 2016 at 2:01 PM, Luca Prete wrote: > Joe, > > It worked out perfectly! Do you think would be possible to create a patc

Re: [ovs-discuss] Datapath implementation query

2016-04-14 Thread Jesse Gross
On Thu, Apr 14, 2016 at 6:19 PM, Prathap T wrote: > Hi Jesse: > > "Imagine a 1 bit long flow. The flow in the table has the value 0 and > the mask is 1 (significant). There is also another mask with the value > 0 (not significant). If a packet came in with the header value of 1 > and it tried th

Re: [ovs-discuss] Datapath implementation query

2016-04-14 Thread Prathap T
Hi Jesse: "Imagine a 1 bit long flow. The flow in the table has the value 0 and the mask is 1 (significant). There is also another mask with the value 0 (not significant). If a packet came in with the header value of 1 and it tried the second mask first then the value would become 0, matching th

Re: [ovs-discuss] Error compiling kernel module for OVS 2.5.0

2016-04-14 Thread Luca Prete
Joe, It worked out perfectly! Do you think would be possible to create a patch - depending on the kernel version - so that people won't have to modify this in the future? Thanks, Luca On Wed, Apr 13, 2016 at 6:09 PM, Luca Prete wrote: > Cool! > > I'll give it a try and I'll let you know how i

Re: [ovs-discuss] Datapath implementation query

2016-04-14 Thread Jesse Gross
On Thu, Apr 14, 2016 at 11:09 AM, Prathap T wrote: > Hi OVS-Team: > > We are porting OVS onto one of our hardware and I had a question in the > kernel datapath implementation. > > In the function - masked_flow_lookup > > ovs_flow_mask_key(&masked_key, unmasked, mask); > hash = flow_hash(&mas

Re: [ovs-discuss] patch port(router) seems missing for IPv6 subnet in OVN in networking-ovn environment

2016-04-14 Thread Justin Pettit
> On Apr 14, 2016, at 12:38 AM, Zong Kai YL Li wrote: > > Can someone help fixing this issue, or is IPv6 in OVN is not complete yet and > this is one in wish-list or to-do list? IPv6 logical routers are not supported yet. I'm working on support, but it will be at least a few weeks before I s

[ovs-discuss] Datapath implementation query

2016-04-14 Thread Prathap T
Hi OVS-Team: We are porting OVS onto one of our hardware and I had a question in the kernel datapath implementation. In the function - *masked_flow_lookup* ovs_flow_mask_key(&masked_key, unmasked, mask); hash = flow_hash(&masked_key, &mask->range); head = find_bucket(ti, hash); (*n

Re: [ovs-discuss] Disable MAC learning on certain ports

2016-04-14 Thread Ben Pfaff
On Thu, Apr 14, 2016 at 05:30:20PM +, Farhad Sunavala wrote: > Hi, > I am aware that the MAC address gets learnt only when the packet passes > through a flow with NORMAL action.This is fine and works for some cases. > However, it seems a little too restrictive. > I am working on service funct

Re: [ovs-discuss] Error with ovs-vsctl

2016-04-14 Thread Ben Pfaff
On Thu, Apr 14, 2016 at 07:17:47PM +0200, sreepriya wrote: > ​Hi Ben, > > It's reporting that there's an error in your configuration. As long as > > your configuration continues to have an error (that is, a port with a > > bad name), it will report that there is one. > > > > Ok. Deleting the bri

[ovs-discuss] Disable MAC learning on certain ports

2016-04-14 Thread Farhad Sunavala
Hi, I am aware that the MAC address gets learnt only when the packet passes through  a flow with NORMAL action.This is fine and works for some cases. However, it seems a little too restrictive. I am working on service function chaining and there are several network functionsthat are implemented a

Re: [ovs-discuss] Error with ovs-vsctl

2016-04-14 Thread sreepriya
​Hi Ben, It's reporting that there's an error in your configuration. As long as > your configuration continues to have an error (that is, a port with a > bad name), it will report that there is one. > Ok. Deleting the bridge using ovs-del bridge is not removing the error. Even restarting ovs doe

Re: [ovs-discuss] Error with ovs-vsctl

2016-04-14 Thread Ben Pfaff
On Thu, Apr 14, 2016 at 06:30:24PM +0200, sreepriya wrote: > Ok. But do you have any idea on why the error occur when I try to add a > bridge/port with a proper name (<15 bytes) later? It's reporting that there's an error in your configuration. As long as your configuration continues to have an e

Re: [ovs-discuss] Error with ovs-vsctl

2016-04-14 Thread sreepriya
Ok. But do you have any idea on why the error occur when I try to add a bridge/port with a proper name (<15 bytes) later? This doesn't happen when optimisation is disabled. (CFLAGS="O1" is not given during build. ) Also, even if the port/bridge is not created, it gets listed when I try $ sudo ovs-

Re: [ovs-discuss] Problem compiling ovs-2.3.2 with some extensions.

2016-04-14 Thread Ben Pfaff
On Thu, Apr 14, 2016 at 04:19:24PM +0800, Haosen Wen wrote: > Hi all, > > I made some modifications in modules mostly concerning about flowmods and > actions, and when I ran "make", I got the following error message: > > *include/openflow/nicira-ext.h:142: error at "/": parse error* > *make[2]: *

Re: [ovs-discuss] How can I monitor the length of a queue in ovs port?

2016-04-14 Thread Ben Pfaff
On Thu, Apr 14, 2016 at 05:51:28PM +0800, 鲁西 wrote: > I have set two queues in a port .I want to know how many packets are > waiting in the queues .Now I can only get the tx_packets of a queue > ,can I get rx_packets of a queue? OVS doesn't provide that information. I don't know whether the kerne

[ovs-discuss] How can I monitor the length of a queue in ovs port?

2016-04-14 Thread 鲁西
Hello, I have set two queues in a port .I want to know how many packets are waiting in the queues .Now I can only get the tx_packets of a queue ,can I get rx_packets of a queue? Do I need to modify the source code of ovs? I'm looking forward to your reply. Lucy ___

Re: [ovs-discuss] Implicit causes of rx packet drops

2016-04-14 Thread Damiaan Twelker
Thanks, Joe. Turns out that the model switch used (P-3290) does not support the mod_ip_dst action in hardware, and therefore forwards all packets matching the flow from asic to CPU, causing a “packet-list overflow” as logged in /tmp/log/messages. Kind regards, Damiaan Twelker > On 14 Apr 2016

[ovs-discuss] patch port(router) seems missing for IPv6 subnet in OVN in networking-ovn environment

2016-04-14 Thread Zong Kai YL Li
Hi, all.   Recently, when I'm investigating networking-ovn, I found an issue about router interface creation in OVN.   As we known, in an networking-ovn enabled environment, for IPv4, when a subnet is attached to a router as interface, there will be a pair of patch ports created by OVN, one for swi

Re: [ovs-discuss] Error with ovs-vsctl

2016-04-14 Thread Ben Pfaff
It's reporting that there's a port that can't be created. On Thu, Apr 14, 2016 at 05:06:21PM +0200, sreepriya wrote: > Once I got the previous error and if I try to add a bridge: > sudo ovs-vsctl add-br br1 > > Then I get the error: > ovs-vsctl: Error detected while setting up 'br1'. See ovs-vswi

Re: [ovs-discuss] open vSwitch port input buffer capacity

2016-04-14 Thread Ben Pfaff
On Thu, Apr 14, 2016 at 01:52:31PM +, ‪Majid Taleqani‬ ‪ wrote: > i am writing a DDOS mitigation for openflow networks using pox > controller and open vSwitch version 1.9. as DDOS attacks aim at > Flooding flow tables and input buffers, i wonder what is the maximum > capacity of each switch por

Re: [ovs-discuss] Error with ovs-vsctl

2016-04-14 Thread Rajasekaran, Monica
Try by setting the datapath_type to netdev ovs-vsctl add-br br1 -- set bridge br1 datapath_type=netdev Thanks, Monica From: discuss [mailto:discuss-boun...@openvswitch.org] On Behalf Of sreepriya Sent: Thursday, April 14, 2016 10:06 AM To: Ben Pfaff Cc: b...@openvswitch.org Subject: Re: [ovs-di

Re: [ovs-discuss] Error with ovs-vsctl

2016-04-14 Thread sreepriya
Once I got the previous error and if I try to add a bridge: sudo ovs-vsctl add-br br1 Then I get the error: ovs-vsctl: Error detected while setting up 'br1'. See ovs-vswitchd log for details. Thanks, Priya ​ On Thu, Apr 14, 2016 at 4:58 PM, Ben Pfaff wrote: > On Thu, Apr 14, 2016 at 04:36:51PM

Re: [ovs-discuss] Error with ovs-vsctl

2016-04-14 Thread Ben Pfaff
On Thu, Apr 14, 2016 at 04:36:51PM +0200, sreepriya wrote: > I need some help in understanding the following log message better. > I am working on doing some security tests for ovs. > I am getting this error once I tried to add a port with a very long name > (ovs-vsctl add-port) (more than 15 bytes

Re: [ovs-discuss] Error with ovs-vsctl

2016-04-14 Thread Guru Shetty
On 14 April 2016 at 07:36, sreepriya wrote: > Hello, > > I need some help in understanding the following log message better. > I am working on doing some security tests for ovs. > I am getting this error once I tried to add a port with a very long name > (ovs-vsctl add-port) (more than 15 bytes.)

[ovs-discuss] Error with ovs-vsctl

2016-04-14 Thread sreepriya
Hello, I need some help in understanding the following log message better. I am working on doing some security tests for ovs. I am getting this error once I tried to add a port with a very long name (ovs-vsctl add-port) (more than 15 bytes.). There is similar log if I try to add a switch with a sm

Re: [ovs-discuss] table_id becomes zero in PACKET_IN when using write_action(group) instead of group

2016-04-14 Thread Zoltán Balogh
Hi Ben, I see your point. The table lookup is far removed from output. But let's replace write_action with apply_action and see your explanation again. In this latter case the output would be caused by a group, which would be caused by goto_table action that was found by a table_lookup and tab

[ovs-discuss] open vSwitch port input buffer capacity

2016-04-14 Thread ‪Majid Taleqani‬ ‪
hello i am writing a DDOS mitigation for openflow networks using pox controller and open vSwitch version 1.9. as DDOS attacks aim at Flooding flow tables and input buffers, i wonder what is the maximum capacity of each switch port input buffer. i know after the switch input buffer overflows the

Re: [ovs-discuss] OVS 2.4 and 2.4 Flow deletion issue

2016-04-14 Thread Maurya, Alok Kumar (HP Networking)
I have tried the fix on master , it solved the problem . Thanks & Regards, Alok -Original Message- From: Jarno Rajahalme [mailto:ja...@ovn.org] Sent: Thursday, April 14, 2016 7:43 AM To: Maurya, Alok Kumar (HP Networking) Cc: Ben Pfaff ; discuss@openvswitch.org Subject: Re: [ovs-

[ovs-discuss] Problem compiling ovs-2.3.2 with some extensions.

2016-04-14 Thread Haosen Wen
Hi all, I made some modifications in modules mostly concerning about flowmods and actions, and when I ran "make", I got the following error message: *include/openflow/nicira-ext.h:142: error at "/": parse error* *make[2]: *** [include/openflow/nicira-ext.hstamp] Error 1* *make[1]: *** [all-recurs

[ovs-discuss] Test result is not same as the ovn-tutorial for ovn/env3/packet2.sh

2016-04-14 Thread Mars Ma
Hi, This is my test result: $ ovn/env3/packet2.sh + ovs-appctl ofproto/trace br-int in_port=3,dl_src=00:00:00:00:00:03,dl_dst=00:00:00:00:00:01,tun_id=1,tun_metadata0=196609 -generate Bridge: br-int Flow: tun_id=0x1,in_port=3,vlan_tci=0x,dl_src=00:00:00:00:00:03,dl_dst=00:00:00:00:00:01,dl_ty