Re: [ovs-discuss] NSH rules

2018-07-11 Thread Yang, Yi Y
Are you using Opendaylight in your all-in-one deployment? I suggest you ask 
your question in networking-sfc mailing list, I can guide you to get the right 
contact person if you can provide more details.

From: ovs-discuss-boun...@openvswitch.org 
[mailto:ovs-discuss-boun...@openvswitch.org] On Behalf Of ???
Sent: Friday, July 6, 2018 8:13 PM
To: ovs-discuss@openvswitch.org
Subject: [ovs-discuss] NSH rules


Dear experts,
I am trying the networking-sfc with NSH support in the all-in-one Openstack 
deploying from devstack. But in my environment, the OVS always can not accept 
the NSH related flow rules from SFC driver. The following are the corresponding 
flows and the received error.

For table 5, I got:
"hard_timeout=0,idle_timeout=0,priority=0,cookie=18389747003163845,table=5,dl_dst=fa:16:3e:d3:ad:66,eth_type=2048,actions=encap(hdr=nsh,prop(class=nsh,type=md_type,val=1)),set_field:0x1->nsh_spi,set_field:0xff->nsh_si,encap(hdr=ethernet),mod_vlan_vid:16,,resubmit(,10)"
  -O openflow13
We got Encap header nsh not support

For table 10, I got:
 
hard_timeout=0,idle_timeout=0,priority=1,cookie=1291058868797254279,nsh_spi=1,nsh_mdtype=1,eth_type=35151,table=10,dl_dst=fa:16:3e:c8:ed:35,dl_vlan=17,nsh_si=255,actions=strip_vlan,move:NXM_OF_ETH_DST->OXM_OF_PKT_REG[0..47],decap(),decap(),move:OXM_OF_PKT_REG[0..47]->NXM_OF_ETH_DST,output:40;
 Stdout: ; Stderr: ovs-ofctl: -:1: OXM_OF_PKT_REG[0..47]: unknown field 
`OXM_OF_PKT_REG'

I saw the bug log of https://bugs.launchpad.net/networking-sfc/+bug/1753349. 
All of the corresponding rules can be well inserted. I have tried the OVS from 
2.8.1 to 2.9.0 by installing via apt-get or building from source. The result is 
the same. I would lie to ask if any further configuration need to set on my 
OVS? Thanks in advance.

Blessings

Alan JW Chang


___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] dpdk installation failed with OVS

2018-07-11 Thread Ian Stokes

On 7/10/2018 10:30 PM, Sandeep Adapala wrote:

Hello,

I am very new to OvS and DPDK but somehow after following the document 
http://docs.openvswitch.org/en/latest/intro/install/dpdk/ I went through 
till ovs service start step but the problem I get is when I run 
ovs-vsctl get Open_vSwitch . dpdk_initialized I don't get TRUE. I 
exactly did the same thing as mentioned in the doc but not sure why it 
is not running.




Hi Sandeep,

can you provide more details as regards the installation?

What OS are you using?
What version of OVS and DPDK are you using?

Are you compiling from source or using repos?

Thanks
Ian



Regards,
Sandeep



___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss



___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] OVS rules addition time

2018-07-11 Thread alp.arslan
Hi everyone, is there a way to ensure that an OVS rule is added in a certain
fixed amount of time? 


I am using ovs-ofctl to add/delete rules from OVS-DPDK (v2.9.0). Under a
high load case (more than 100,000 rules already in the dpctl ) the time to
add rules goes up to seconds. The only reason I can see is that it takes a
lot of time to revalidate these rules, once new are added. I have set the
number of revalidators to 4, and even run them on dedicated cores, this
works fine when the rules are not added frequently, but as soon as the rate
of rule addition/deletion goes up (rules are added one after the other with
a delay of 10ms), the time starts shooting up. 

 

I would really appreciate some help in this matter. Increasing the number of
revalidators even more is not possible in my scenario as I am out of cores.
Is there any settings that can ensure that rules gets added really fast. 

 

Regards,

 

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] OVN - MTU path discovery

2018-07-11 Thread Daniel Alvarez Sanchez
On Wed, Jul 11, 2018 at 12:55 PM Daniel Alvarez Sanchez 
wrote:

> Hi all,
>
> Miguel Angel Ajo and I have been trying to setup Jumbo frames in OpenStack
> using OVN as a backend.
>
> The external network has an MTU of 1900 while we have created two tenant
> networks (Logical Switches) with an MTU of 8942.
>

s/1900/1500

>
> When pinging from one instance in one of the networks to the other
> instance on the other network, the routing takes place locally and
> everything is fine. We can ping with -s 3000 and with tcpdump we verify
> that the packets are not fragmented at all.
>
> However, when trying to reach the external network, we see that the
> packets are not tried to be fragmented and the traffic doesn't go through.
>
> In the ML2/OVS case (reference implementation for OpenStack networking),
> this works as we're seeing the following when attempting to reach a network
> with a lower MTU:
>

Just to clarify, in the reference implementation (ML2/OVS) the routing
takes place with iptables rules so we assume that it's the kernel
processing those ICMP packets.

>
> 10:38:03.807695 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: ICMP echo
> request, id 30977, seq 0, length 3008
>
> 10:38:03.807723 IP overcloud-controller-0 > 192.168.20.14: ICMP
> dell-virt-lab-01.mgmt.com unreachable - need to frag (mtu 1500), length
> 556
>
> As you can see, the router (overcloud-controller-0) is responding to the
> instance with an ICMP need to frag and after this, subsequent packets are
> going fragmented (while replies are not):
>
> 0:38:34.630437 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: ICMP echo
> request, id 31233, seq 0, length 1480
>
> 10:38:34.630458 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: icmp
>
> 10:38:34.630462 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: icmp
>
> 10:38:34.631334 IP dell-virt-lab-01.mgmt.com > 192.168.20.14: ICMP echo
> reply, id 31233, seq 0, length 3008
>
>
>
> Are we missing some configuration or we lack support for this in OVN?
>
> Any pointers are highly appreciated :)
>
>
> Thanks a lot.
>
> Daniel Alvarez
>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] OVN - MTU path discovery

2018-07-11 Thread Daniel Alvarez Sanchez
Hi all,

Miguel Angel Ajo and I have been trying to setup Jumbo frames in OpenStack
using OVN as a backend.

The external network has an MTU of 1900 while we have created two tenant
networks (Logical Switches) with an MTU of 8942.

When pinging from one instance in one of the networks to the other instance
on the other network, the routing takes place locally and everything is
fine. We can ping with -s 3000 and with tcpdump we verify that the packets
are not fragmented at all.

However, when trying to reach the external network, we see that the packets
are not tried to be fragmented and the traffic doesn't go through.

In the ML2/OVS case (reference implementation for OpenStack networking),
this works as we're seeing the following when attempting to reach a network
with a lower MTU:

10:38:03.807695 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: ICMP echo
request, id 30977, seq 0, length 3008

10:38:03.807723 IP overcloud-controller-0 > 192.168.20.14: ICMP
dell-virt-lab-01.mgmt.com unreachable - need to frag (mtu 1500), length 556

As you can see, the router (overcloud-controller-0) is responding to the
instance with an ICMP need to frag and after this, subsequent packets are
going fragmented (while replies are not):

0:38:34.630437 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: ICMP echo
request, id 31233, seq 0, length 1480

10:38:34.630458 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: icmp

10:38:34.630462 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: icmp

10:38:34.631334 IP dell-virt-lab-01.mgmt.com > 192.168.20.14: ICMP echo
reply, id 31233, seq 0, length 3008



Are we missing some configuration or we lack support for this in OVN?

Any pointers are highly appreciated :)


Thanks a lot.

Daniel Alvarez
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss