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"

-----Original Message-----
From: Jarno Rajahalme [mailto:[email protected]] 
Sent: Wednesday, March 1, 2017 3:02 AM
To: Han Zhou <[email protected]>
Cc: Yang, Yi Y <[email protected]>; [email protected]
Subject: Re: [ovs-dev] Can we use ovs to implement load balancer by openflow?


> On Feb 27, 2017, at 10:42 PM, Han Zhou <[email protected]> wrote:
> 
> On Mon, Feb 27, 2017 at 7:42 PM, Yang, Yi Y <[email protected]> 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.

  Jarno

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to