[ovs-discuss] [External] Re: About the hash of the group
jiacheng at bytedance.com
Tue Dec 17 02:56:12 UTC 2019
Thanks for your reply. I mean, if there is two group. One group use the ip_src and tcp_src as the fields of the hash,
and the other group use the ip_dst and tcp_dst as the fields of the hash. If the ip_src == ip dst , and tcp_src == tcp_dst,
Then will it is hashed to the same bucket id ?
ovs-ofctl add-group br-int "group_id=1001, type=select, selection_method=hash, fields(tcp_src,ip_src), bucket=bucket_id=1, actions=resubmit(,65), bucket_id, actions=resubmit(, 75)”
ovs-ofctl add-group br-int "group_id=1002, type=select, selection_method=hash, fields(tcp_dst,ip_dst), bucket=bucket_id=1, actions=resubmit(,65), bucket_id, actions=resubmit(, 75)”
> 在 2019年12月17日，05:32，Ben Pfaff <blp at ovn.org> 写道：
> On Mon, Dec 16, 2019 at 06:49:47PM +0800, 贾乘 wrote:
>> I have one question about the hash of the group. From the doc,
>> The hash is symmetric. Is it the same key , when I used the src ip and
>> src port , and used the dst ip and dst port if the src ip == dst ip,
>> src port == dst port. Thanks.
> OVS makes hashes symmetric by using XOR to combine source and
> destination fields. I don't know whether this answers your question
> (because I don't understand the question).
More information about the discuss