Re: [ovs-discuss] How to get 2 vms on 2 different physical hosts to communicate using openvswitch

2011-09-12 Thread Justin Pettit
On Sep 12, 2011, at 10:13 AM, Aishwarya wrote: > Thanks for all your suggestions till now. I was able to establish the gre > tunnel between 2 vms located on the same subnet on 2 different hosts. I am > not able to figure out the configuration steps to establish the gre tunnel > when the vms are

Re: [ovs-discuss] how to initialize openvswitch in listen mode

2011-09-12 Thread Ben Pfaff
A bridge and a switch are the same thing. I don't understand the distinction that you are attempting to match. There are various ways to make 2 bridges communicate, but it's usually better to just use a single bridge. On Mon, Sep 12, 2011 at 04:49:40PM -0700, Aishwarya wrote: > Hmmm.. ok.. but a

Re: [ovs-discuss] how to initialize openvswitch in listen mode

2011-09-12 Thread Aishwarya
Hmmm.. ok.. but a bridge in openvswitch can be assigned an ip address right, unlike a switch? Also, is there a way to get 2 bridges on the same machine to communicate to each other? Thanks, Aish On Mon, Sep 12, 2011 at 4:43 PM, Ben Pfaff wrote: > A bridge and a switch are the same thing. > > On

Re: [ovs-discuss] how to initialize openvswitch in listen mode

2011-09-12 Thread Ben Pfaff
A bridge and a switch are the same thing. On Mon, Sep 12, 2011 at 04:42:49PM -0700, Aishwarya wrote: > Hi ben, > > Thanks for your input. I was confused because as you said, the man page > suggests all the connection methods, but when i use for eg: > > ofctl show br0, it is connecting to a bridg

Re: [ovs-discuss] how to initialize openvswitch in listen mode

2011-09-12 Thread Aishwarya
Hi ben, Thanks for your input. I was confused because as you said, the man page suggests all the connection methods, but when i use for eg: ofctl show br0, it is connecting to a bridge right? A single openvswitch can also have more then one bridge, so in that case, if I want to connect to the swi

Re: [ovs-discuss] ofp_action_enqueue w/ OFPP_LOCAL

2011-09-12 Thread Vjekoslav Brajkovic
Great, I will look into it. Thanks four your help Ben! :) On Mon, Sep 12, 2011 at 04:04:56PM -0700, Ben Pfaff wrote: > This sounds like a pretty elaborate way to go about things. I don't > really understand the solution. Here's a simpler workaround: use the > NXAST_SET_QUEUE Nicira extension ac

Re: [ovs-discuss] ofp_action_enqueue w/ OFPP_LOCAL

2011-09-12 Thread Vjekoslav Brajkovic
We're doing some large-scale quality of service experiments on EC2 using OVS. Since we do not have access to the hypervisor, we are forced to run it within a virtual machine. Basically, we would reassign the IP address delegated to eth0, to OVS's internal interface. This works fine with ofp_a

Re: [ovs-discuss] ofp_action_enqueue w/ OFPP_LOCAL

2011-09-12 Thread Vjekoslav Brajkovic
On Mon, Sep 12, 2011 at 07:56:11AM -0700, Ben Pfaff wrote: > It's because OpenFlow 1.0 says that the port in ofp_action_enqueue > should "refer to a valid physical port (i.e. < OFPP_MAX) or > OFPP_IN_PORT." OFPP_LOCAL isn't either of those. In that case, I'll redirect my question to openflow-spec

Re: [ovs-discuss] ofp_action_enqueue w/ OFPP_LOCAL

2011-09-12 Thread Ben Pfaff
This sounds like a pretty elaborate way to go about things. I don't really understand the solution. Here's a simpler workaround: use the NXAST_SET_QUEUE Nicira extension action to set the queue, followed by OFPAT_OUTPUT to send the packet. On Mon, Sep 12, 2011 at 03:57:27PM -0700, Vjekoslav Braj

Re: [ovs-discuss] how to initialize openvswitch in listen mode

2011-09-12 Thread Ben Pfaff
Please read the ovs-ofctl manpage. It explains all the allowed forms at the very top. Of course a Unix socket doesn't work on another machine. Add a "ptcp:" controller to access OpenFlow over TCP from another machine. On Mon, Sep 12, 2011 at 03:43:25PM -0700, Aishwarya wrote: > Hi Ben, > > Tha

Re: [ovs-discuss] how to initialize openvswitch in listen mode

2011-09-12 Thread Aishwarya
Hi Ben, That is correct. Right now, I am doing it from the same machine running vswitchd. The ofctl doc says the argument should be show *switch* and the methos of connection seemed to me like I need to give the switch argument as unix:... or tcp: . Is my understanding wrong? (is it different

Re: [ovs-discuss] how to initialize openvswitch in listen mode

2011-09-12 Thread Ben Pfaff
It sounds like you want to use ovs-ofctl from the same machine running ovs-vswitchd. There's already a unix socket for that. Just give the name of the bridge, e.g. "ovs-ofctl show br0". On Mon, Sep 12, 2011 at 03:37:19PM -0700, Aishwarya wrote: > Hi Ben, > > Passive tcp socket should be fine. I

Re: [ovs-discuss] how to initialize openvswitch in listen mode

2011-09-12 Thread Aishwarya
Hi Ben, Passive tcp socket should be fine. I know the ptcp option lets you do this. But I am not sure which command to use it with. For eg: I use the unix socket option with ovsdb-server command so that vswitchd can connect to teh database server. Now, ofctl needs to connect to the switch. So, whi

Re: [ovs-discuss] how to initialize openvswitch in listen mode

2011-09-12 Thread Ben Pfaff
On Mon, Sep 12, 2011 at 03:29:38PM -0700, Aishwarya wrote: > The ovs-ofctl uses either a unix socket or tcp port to connect to the open > flow switch. When I start the openvswitch process, which command do i use to > set the switch in the listen mode so that ofctl can connect to it? Do you want to

[ovs-discuss] how to initialize openvswitch in listen mode

2011-09-12 Thread Aishwarya
Hi, The ovs-ofctl uses either a unix socket or tcp port to connect to the open flow switch. When I start the openvswitch process, which command do i use to set the switch in the listen mode so that ofctl can connect to it? Thanks, Aish ___ discuss maili

Re: [ovs-discuss] ofp_action_enqueue w/ OFPP_LOCAL

2011-09-12 Thread Ben Pfaff
On Mon, Sep 12, 2011 at 03:07:22PM -0700, Vjekoslav Brajkovic wrote: > On Mon, Sep 12, 2011 at 07:56:11AM -0700, Ben Pfaff wrote: > > It's because OpenFlow 1.0 says that the port in ofp_action_enqueue > > should "refer to a valid physical port (i.e. < OFPP_MAX) or > > OFPP_IN_PORT." OFPP_LOCAL isn

Re: [ovs-discuss] How to get 2 vms on 2 different physical hosts to communicate using openvswitch

2011-09-12 Thread Aishwarya
Hi Jesse and openvswitch team, Thanks for all your suggestions till now. I was able to establish the gre tunnel between 2 vms located on the same subnet on 2 different hosts. I am not able to figure out the configuration steps to establish the gre tunnel when the vms are located in different subne

Re: [ovs-discuss] Regarding the kernel space Table Vs User Space

2011-09-12 Thread Ben Pfaff
On Mon, Sep 12, 2011 at 02:57:01PM +0530, Ramana Reddy wrote: > 1. How many tables are there in OVS? There is one in the OVS 1.2 software switch. In the (not yet released) OVS 1.3 software switch, there will be 255. > 2. What is the main difference ( in terms of table structure) between kernel >

Re: [ovs-discuss] ofp_action_enqueue w/ OFPP_LOCAL

2011-09-12 Thread Ben Pfaff
On Sun, Sep 11, 2011 at 05:53:11PM -0700, Vjekoslav Brajkovic wrote: > ... which indicates that the output port is incorrect. > > Are there any specific reasons as to why it is not possible to enqueue > flows on the internal interfaces? I'm running a slight modification > of NOX's switch module

[ovs-discuss] Regarding the kernel space Table Vs User Space

2011-09-12 Thread Ramana Reddy
Hi All, I would be happy, if some one clear the following points. 1. How many tables are there in OVS? 2. What is the main difference ( in terms of table structure) between kernel space table Vs user space table? What are files some one will look at for user space table. 3. Why we need more

[ovs-discuss] ofp_action_enqueue w/ OFPP_LOCAL

2011-09-12 Thread Vjekoslav Brajkovic
Hello, I was wondering if someone could help me with a specific issue that I have ran into. I'm running a virtual switch with two interfaces: system@sw: lookups: frags:0, hit:296581, missed:355, lost:12 flows: 0 port 0: sw (internal) port 1: tap0 All I'm doing here is forwarding traffi