[ovs-dev] Can we use ovs to implement load balancer by openflow?
Yang, Yi Y
yi.y.yang at intel.com
Wed Mar 1 00:39:08 UTC 2017
Han and Jarno, thank you all, I tried the below cmds, they can work.
sudo ovs-ofctl -Oopenflow13 add-group br-sfc "group_id=100 type=select selection_method=dp_hash bucket=output:1 bucket=output:2"
sudo ovs-ofctl -Oopenflow13 add-flow br-sfc "table=0,ip,nw_src=192.168.2.0/24,actions=group:100"
From: Jarno Rajahalme [mailto:jarno at ovn.org]
Sent: Wednesday, March 1, 2017 3:02 AM
To: Han Zhou <zhouhan at gmail.com>
Cc: Yang, Yi Y <yi.y.yang at intel.com>; ovs-dev at openvswitch.org
Subject: Re: [ovs-dev] Can we use ovs to implement load balancer by openflow?
> On Feb 27, 2017, at 10:42 PM, Han Zhou <zhouhan at gmail.com> wrote:
> On Mon, Feb 27, 2017 at 7:42 PM, Yang, Yi Y <yi.y.yang at intel.com> wrote:
>> Hi, all
>> Can we use ovs to implement load balancer? Our target is to let ovs
> distribute the traffic to different service VMs based on 5 tuple (src
> ip, dst ip, src port, dst port, transport protocol).
> Yes. Try: man ovs-ofctl, look for keyword "group" for details.
I would add that you’d want to use the “selection_method=dp_hash” option for the select group for performance reasons.
More information about the dev