Re: [ovs-discuss] Regarding openvswitch group, type=select, hashing

2017-04-25 Thread Ben Pfaff
On Tue, Apr 25, 2017 at 10:47:47PM +0530, Ahmed Khan wrote: > 1) "group_best_live_bucket()" function - Is this function traversed in > control path everytime when the data path flows inside kernel expire? When they expire, yes. > 2) In this method, if a new bucket is added with higher weight, th

Re: [ovs-discuss] Regarding openvswitch group, type=select, hashing

2017-04-25 Thread Ahmed Khan
Ben, Thanks for the response. Have few follow-up questions, am using ovs 2.5. 1) "group_best_live_bucket()" function - Is this function traversed in control path everytime when the data path flows inside kernel expire? 2) In this method, if a new bucket is added with higher weight, there is a go

Re: [ovs-discuss] Regarding openvswitch group, type=select, hashing

2017-04-24 Thread Ben Pfaff
No, select buckets don't use mod-n to select a bucket. Instead, for each live bucket, OVS hashes flow data with the bucket ID and multiplies by the bucket weight to obtain a "score", and then selects the bucket with the highest score. On Mon, Apr 24, 2017 at 12:27:16AM +0530, Ahmed Khan wrote: >

Re: [ovs-discuss] Regarding openvswitch group, type=select, hashing

2017-04-23 Thread Ahmed Khan
Hi ben, Let me rephrase. Does hashing involve mod on number of buckets in a group ? If a new bucket is added/deleted in a group, would it result in different hash value and hence a selection of different bucket for the same 5 tuple ? Also, how many buckets per group does ovs support ? And how man

Re: [ovs-discuss] Regarding openvswitch group, type=select, hashing

2017-04-21 Thread Ben Pfaff
On Thu, Apr 20, 2017 at 04:12:20PM +0530, Ahmed Khan wrote: > I understand that, > > *"""* > > *Open vSwitch 2.4 and later by default hashes the source and > **destination Ethernet address, VLAN ID, Ethernet type, IPv4/v6 > **source and destination address and protocol, and for TCP and SCTP > **o

[ovs-discuss] Regarding openvswitch group, type=select, hashing

2017-04-20 Thread Ahmed Khan
I understand that, *"""* *Open vSwitch 2.4 and later by default hashes the source and **destination Ethernet address, VLAN ID, Ethernet type, IPv4/v6 **source and destination address and protocol, and for TCP and SCTP **only, the source and destination ports. The hash is "symmetric", **meaning t