[ovs-discuss] How can I change OpenVSwitch

Raymond Burkholder ray at oneunified.net
Fri Jun 9 16:04:56 UTC 2017


> 
> On 9 Jun 2017, at 11:41, Simone Aglianò <simoagliano at gmail.com> wrote:
> 
> I was looking for the cheapest and easiest way to have an OpenFlow switch to run my experiment with Floodlight and Flowvisor. I think that the easiest and cheapest way is run Open vSwitch on Linux operating system having an adapter usb to multiple ethernet ports, isn´t it? I think to run it in linux virtual machine what do you think about it?
> 

If you want hardware, the zodiac is probably cheapest.

For cheapest, as in free, run openvswitch on linux box, or in a linux virtual machine, and do the following to get openvswitch to talk to a controller (no usb stuff, no physical ethernet ports, … required, everything can be virtualized):

ip link set dev ova-system up  # I do this whether I need to or not
ovs-vsctl --may-exist add-br sw1
ip link set dev sw1 up
ovs-vsctl set bridge sw1 protocols=OpenFlow13
ovs-vsctl set-fail-mode sw1 secure
ovs-vsctl set-controller sw1 tcp:127.0.0.1:6653  # if controller is elsewhere, change the address to suit

Then to create test environment (creates namespace, creates veth pair, puts one end in a namespace, turns it up and assigns an ip address, and puts into a vlan [with ..n. is near, ..f. is far]):

ip netns add ns1
ip link add veth1n type veth peer name veth1f
ip link set up dev veth1n
ip link set veth1f netns ns1
ip netns exec ns1 ip addr add dev veth1f 10.0.0.1/24
ip netns exec ns1 ip link set dev veth1f up
ovs-vsctl --may-exist add-port sw1 veth1n tag=10
	
ip netns add ns2
ip link add veth2n type veth peer name veth2f
ip link set up dev veth2n
ip link set veth2f netns ns2
ip netns exec ns2 ip addr add dev veth2f 10.0.0.2/24
ip netns exec ns2 ip link set dev veth2f up
ovs-vsctl --may-exist add-port sw1 veth2n tag=10

Then to generate a packets through the switch:

ip netns exec ns1 ping 10.0.0.2

If you want to get extravagant, you can use mininet to create interesting virtual topologies for testing your controller.

http://mininet.org


> BTW, thank you for having referenced me OpenWrt projects.
> 
> On Fri, Jun 9, 2017 at 3:18 PM, Raymond Burkholder <ray at oneunified.net <mailto:ray at oneunified.net>> wrote:
> 
>> On 9 Jun 2017, at 08:26, Simone Aglianò <simoagliano at gmail.com <mailto:simoagliano at gmail.com>> wrote:
>> 
>> I m interested also in a desktop switch with just 4 ports
>> 
>> On Fri, Jun 9, 2017 at 1:23 PM, Simone Aglianò <simoagliano at gmail.com <mailto:simoagliano at gmail.com>> wrote:
>> Does anyone know which is the cheapest switch with OpenFlow enabled or on which I can update the firmware or a Linux-based switch on which I can install OpenVSwitch?
> 
> I think at this point, you are actually asking two or more different questions.  What is it that you are really looking for?  a) openvswitch switching?  b) open flow based switching?  c) hardware accelerated openvswitch?  d) openvswitch to handle open flow hardware acceleration? e) hardware accelerated open flow?
> 
> Someone mentioned the Zodiac.  I believe that is an OpenFlow-only switch — you don’t get to run openvswitch or linux on it.  You need to run a separate controller to control the Zodiac.
> 
> If you want to run OpenvSwitch on something, you can use almost anything.  I use devices from http://www.lannerinc.com <http://www.lannerinc.com/> (no personal affiliation) to install Linux and run OpenvSwitch.  Forwarding speeds are amazing, even if they are not hardware accelerated.
> 
> OpenvSwitch is a special animal:  it can be used to process-based switch packets between ports.  And it can be used as an software based OpenFlow switch.  it can run on anything you run linux and has multiple network ports.
> 
> You can take a look at the LEDE/openwrt projects — I think they use openvswitch in some form for some of their routing/switching/security elements.  That would get you a really inexpensive four port switch, running linux, and some version of openvswitch.  Again, it depends, for what combination of openvswitch/openflow/hardware acceleration are you looking?
> 
> If you can wait a bit more, the Mellanox guys are working through an interesting concept of hardware accelerating Openvswitch through the linux tc flower mechanism.  At that point, with mellanox hardware, you can then get Openvswitch/openflow/hardware acceleration, all under one roof.
> 
> 
> 
>> 
>> Best regards,
>> Simone
>> 
>> On Fri, Jun 9, 2017 at 9:32 AM, Simone Aglianò <simoagliano at gmail.com <mailto:simoagliano at gmail.com>> wrote:
>> Thank you, but I didn't find it for Catalyst Switch 2960 24-TTL
>> 
>> On 8 Jun 2017 23:05, "Ian Pilcher" <arequipeno at gmail.com <mailto:arequipeno at gmail.com>> wrote:
>> On 06/07/2017 02:29 PM, Simone Aglianò wrote:
>> Yes you have caught my question
>> 
>> http://lmgtfy.com/?q=cisco+catalyst+openflow <http://lmgtfy.com/?q=cisco+catalyst+openflow>
>> 
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20170609/3163bf08/attachment-0001.html>


More information about the discuss mailing list