[ovs-discuss] OvS flow setup time.

2017-06-14 Thread nickcooper-zhangtonghao
We use the ovs_lock/ovs_unlock when we new a flow(ovs_flow_cmd_new)
in the kernel datapath. May this affect the flow setup time ? 
because there may be multiple upcall handler threads. Another question,
how can I test the flow setup time. The ovs-benchmark has been removed.


Thanks.
Nick

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


Re: [ovs-discuss] in mininet

2017-03-23 Thread nickcooper-zhangtonghao
Hi,
You can install mininet without OvS and install OvS from git or tar.gz

1. install mininet without OvS
mininet/util/install.sh -nf

2. install OvS
http://docs.openvswitch.org/en/latest/intro/install/ 



You should remove the old OvS from your system and install them again as 
described above.

Thanks.
Nick

> On Mar 24, 2017, at 12:22 AM, Guang Yang  wrote:
> 
> I am trying to use OXM to add match fields in the flows. Like I have 
> attribute values from each package, and want to use them to manage the 
> network.

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


Re: [ovs-discuss] [openvswitch 2.7.90] testsuite: 2180 failed

2017-03-20 Thread nickcooper-zhangtonghao
Yes, thanks for your report. I try to find what might cause this.

Thanks.
Nick

> On Mar 21, 2017, at 7:12 AM, Joe Stringer  wrote:
> 
> Hi Nick,
> 
> Looks like there's another report of trouble with this test below.
> Would you be able to take a look?

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


Re: [ovs-discuss] Bonding switches using Mininet

2017-02-16 Thread nickcooper-zhangtonghao

> On Feb 16, 2017, at 11:42 PM, Ronaldo Resende <ronaldor...@gmail.com> wrote:
> 
> Okay, I'm a little confused. I'm trying to create a bond of 4 interfaces 
> between 2 switches in an virtual environment using Mininet.
> This is my topology:
> 
> 
> 8 hosts <- 8 links of 100mbps, 1 per host --> switch_1 <--- 4 
> links of 100mbps > switch_2 <- 4 links of 100mbps, 1 per host 
> --> 4 hosts
> 
> 
> What is the right way to configure a bond switch_1 and switch_2?
> 
> On 13 February 2017 at 06:24, nickcooper-zhangtonghao <n...@opencloud.tech 
> <mailto:n...@opencloud.tech>> wrote:
> 
>> On Feb 12, 2017, at 11:26 PM, Ronaldo Resende <ronaldor...@gmail.com 
>> <mailto:ronaldor...@gmail.com>> wrote:
>> 
>> ronaldo@localhost:~$ sudo ovs-vsctl add-bond s1 bond0 s1-eth9 s1-eth10
>> ovs-vsctl: cannot create an interface named s1-eth9 because a port named 
>> s1-eth9 already exists on bridge s1
>> 
>> Any other thoughts?
> 
> The s1-eth9 and s1-eth10 have been added to OvS bridge. So you can’t add them 
> to bridge again.
> You can del them from OvS bridge and bond them.
> 
> Thanks.
> Nick
> 
> 


If you want to bond links together using ovs-vsctl, you will need to consult
the OVS documentation. I’m not sure whether it is compatible with running
the switch in OpenFlow mode with Mininet.

And you can write and add code to  controller (e.g. floodlight, RYU or ODL)to
support link aggregation, you should probably consult the the controller
documentation as well as the OpenFlow specification(s).


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


Re: [ovs-discuss] Bonding switches using Mininet

2017-02-13 Thread nickcooper-zhangtonghao

> On Feb 12, 2017, at 11:26 PM, Ronaldo Resende  wrote:
> 
> ronaldo@localhost:~$ sudo ovs-vsctl add-bond s1 bond0 s1-eth9 s1-eth10
> ovs-vsctl: cannot create an interface named s1-eth9 because a port named 
> s1-eth9 already exists on bridge s1
> 
> Any other thoughts?

The s1-eth9 and s1-eth10 have been added to OvS bridge. So you can’t add them 
to bridge again.
You can del them from OvS bridge and bond them.

Thanks.
Nick

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


Re: [ovs-discuss] Bonding slave disabled

2017-02-13 Thread nickcooper-zhangtonghao


> On Feb 12, 2017, at 1:05 PM, nickcooper-zhangtonghao <n...@opencloud.tech> 
> wrote:
> 
> If you use the virtual ethernet driver, you should set the type of net 
> device. If not, the “system” will be used.
> 
> For example, tap device
> 
> ovs-vsctl add-br br0
> ifconfig tap1 up
> ifconfig tap2 up
> ovs-vsctl add-bond br0 bond0 tap1 tap2 bond_mode=active-backup
> ovs-vsctl set interface tap1 type=tap
> ovs-vsctl set interface tap2 type=tap
> ovs-appctl bond/show bond0
> 
> Thanks.
> Nick
> 
>> On Feb 11, 2017, at 2:02 PM, Neelakantam Gaddam <neelugad...@gmail.com 
>> <mailto:neelugad...@gmail.com>> wrote:
>> 
>> Hi,
>> When one interface is down, the interface showing may_enable to false. But 
>> the up interface becoming active slave and is enabled.
>> 
>> I am using virtual ethernet driver which doesn't have mii tool support. The 
>> carrier link is up always , but still may_enable set to false. Is there any 
>> other criteria for may_enable becoming false.
>> 
>> Thanks
>> Neelakantam



Hi,
The example I given, should be described as below:

ovs-vsctl add-br br0
ovs-vsctl add-bond br0 bond0 tap1 tap2 bond_mode=active-backup
ovs-vsctl set interface tap1 type=tap
ovs-vsctl set interface tap2 type=tap
ovs-appctl bond/show bond0

More information about tap on OvS:
https://github.com/openvswitch/ovs/blob/c431227e33503421d3412bd33415750b6010730d/Documentation/faq/issues.rst
 
<https://github.com/openvswitch/ovs/blob/c431227e33503421d3412bd33415750b6010730d/Documentation/faq/issues.rst>

Section: “I created a tap device tap0, configured an IP address on it, and 
added it to a bridge”.


It is not you case, sorry. I don’t really understand your case yesterday. But I 
may try to explain it for you again. If you want to bond the net devices. You 
should make sure that at least one bonded interface is IFF_RUNNING. For example:

ip link add name  vm1-lpeer2 type veth peer name  vm1-rpeer2
ip link add name  vm2-lpeer2 type veth peer name  vm2-rpeer2

ifconfig vm1-lpeer up
ifconfig vm2-lpeer up
ovs-vsctl add-bond br0 bond2 vm1-lpeer vm2-lpeer bond_mode=active-backup


You should set the vm1-rpeer2 and vm2-rpeer2 UP using ifconfig command(if you 
don’t do that, vm1-lpeer andvm2-lpeer are IFF_UP not IFF_RUNNING).

ovs-appctl bond/show bond2
 bond2 
bond_mode: active-backup
bond may use recirculation: no, Recirc-ID : -1
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
lacp_status: off
active slave mac: c6:42:c6:6d:9a:93(vm1-lpeer)

slave vm1-lpeer: enabled
active slave
may_enable: true

slave vm2-lpeer: enabled
may_enable: true



I don’t know about the difference between 2.4 and 2.6 because I submitted 
patches from 2.5. I hope the tips above can help you. 
 



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


Re: [ovs-discuss] Bonding slave disabled

2017-02-11 Thread nickcooper-zhangtonghao
If you use the virtual ethernet driver, you should set the type of net device. 
If not, the “system” will be used.

For example, tap device

ovs-vsctl add-br br0
ifconfig tap1 up
ifconfig tap2 up
ovs-vsctl add-bond br0 bond0 tap1 tap2 bond_mode=active-backup
ovs-vsctl set interface tap1 type=tap
ovs-vsctl set interface tap2 type=tap
ovs-appctl bond/show bond0


Thanks.
Nick

> On Feb 11, 2017, at 2:02 PM, Neelakantam Gaddam  wrote:
> 
> Hi,
> When one interface is down, the interface showing may_enable to false. But 
> the up interface becoming active slave and is enabled.
> 
> I am using virtual ethernet driver which doesn't have mii tool support. The 
> carrier link is up always , but still may_enable set to false. Is there any 
> other criteria for may_enable becoming false.
> 
> Thanks
> Neelakantam

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


Re: [ovs-discuss] how many queues in openvswitch?

2017-01-12 Thread nickcooper-zhangtonghao
No, the queues of netdev(e.g tap, internal, system) are part of linux, but you 
can only set the queues num for dpdk.

More info, see manpage.

Thanks.
Nick

> On Jan 13, 2017, at 9:27 AM, 杨润垲 <16125...@bjtu.edu.cn> wrote:
> 
> yes ,i know, that is an example. Is there any queues in ovs like rx dma in 
> linux?
> 
> 在2017-01-13 01:59:48,杨润垲<16125...@bjtu.edu.cn 
> >写道:

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


Re: [ovs-discuss] MTU on ovs bridge

2016-12-15 Thread nickcooper-zhangtonghao
Hi Vijay,
The section “How can I configure the bridge internal interface MTU? “ and the 
ovs-vswitchd manpage may help you.
https://github.com/openvswitch/ovs/blob/master/Documentation/faq/issues.rst 



Thanks.
Nick

> On Dec 15, 2016, at 7:31 AM, Vijay Sampath via discuss 
>  wrote:
> 
> I have read articles online that an OVS bridge defaults to the MTU of the 
> port that has the lowest configured MTU value. I wanted to confirm if this is 
> in fact true. Is it not possible that the bridge has ports belonging to 
> different segments (say segmented by vlan) and is not then possible that 
> ports in each of these segments have a different configured MTU value?
> 
> Thanks,
> 
> Vijay
> 

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