[ovs-dev] Unable to hit group table entry

Ning Wu nw276 at cornell.edu
Thu Apr 14 01:48:45 UTC 2016


Packets are supposed to be processed by one of the buckets for a select
type group with equal load sharing implemented. However, I am still not
able to get the equal load sharing. Only one bucket got executed. The
command of adding a select group with two buckets and the dump-groups
result are pasted below. The packets were all forwarded through the same
output port. Both output ports are alive. The OVS version being used is
2.3.1. Is there any potential reason for my issue?

sudo ovs-ofctl -O OpenFlow13 add-group s1 group_id=0,type=select
,bucket=mod_dl_src:00:00:00:00:01:80,mod_dl_dst:00:00:04:00:44:80
,output=3,bucket=mod_dl_src:00:00:00:00:01:80,mod_dl_dst:00:00:04:00:44:80
,output=4

group_id=0,type=select,bucket=actions=set_field:00:00:00:00:01:80
->eth_src,set_field:00:00:04:00:44:80
->eth_dst,output:3,bucket=actions=set_field:00:00:00:00:01:80
->eth_src,set_field:00:00:04:00:44:80->eth_dst,output:4

Thanks!
Ning
On Fri, Apr 8, 2016 at 3:26 PM, Jarno Rajahalme <jarno at ovn.org> wrote:

> You need to read the OpenFlow spec again and then take your questions to
> the ovs list.
>
>   Jarno
>
> On Apr 8, 2016, at 12:10 PM, Ning Wu <nw276 at cornell.edu> wrote:
>
> Sorry I was wrong, both select and indirect type works for me with single
> bucket after dec_mpls_ttl was removed. However the group stats never got
> updated, showing 0 for packet_count and byte_count all the time.
>
> My new issue is when adding multiple buckets in select type group (as is
> shown below), all packets were processed based on one same bucket. Did I
> miss anything for the group entry (e.g. weight)? My primary goal is to add
> the four buckets to be used equally.
>
>
> group_id=66,type=select,bucket=actions=set_field:00:00:00:00:01:80->eth_src,set_field:00:00:04:00:44:80->eth_dst,output:4,bucket=actions=set_field:00:00:00:00:01:80->eth_src,set_field:00:00:03:00:33:80->eth_dst,output:3,bucket=actions=set_field:00:00:00:00:01:80->eth_src,set_field:00:00:01:00:22:80->eth_dst,output:2,bucket=actions=set_field:00:00:00:00:01:80->eth_src,set_field:00:00:01:00:11:80->eth_dst,output:1
>
> I also tried with indirect type. In indirect mode, each bucket will be
> selected at equal chance, but it looks like every packet has been
> replicated and processed by all buckets. Because according to the flow
> stats, the traffic arrived at the receiving host was four times as much as
> sending host has sent.
>
> Thanks,
> Ning
>
> On Thu, Apr 7, 2016 at 6:40 PM, Jarno Rajahalme <jarno at ovn.org> wrote:
>
>> And do not drop the list,
>>
>>   Jarno
>>
>> On Apr 7, 2016, at 3:03 PM, Jarno Rajahalme <jarno at ovn.org> wrote:
>>
>> Try with group type indirect, with one bucket with only the output action
>> (to an existing port).
>>
>>   Jarno
>>
>> On Apr 7, 2016, at 2:28 PM, Ning Wu <nw276 at cornell.edu> wrote:
>>
>> Thanks for your reply.
>>
>> I tried to make the action in the group to be output:3 only, but the
>> packet_count for group entry shown in group stats is still 0.
>>
>> Ning
>>
>> On Fri, Apr 8, 2016 at 4:19 AM, Jarno Rajahalme <jarno at ovn.org> wrote:
>>
>>> Most likely due to having dec_mpls_ttl action in the group for a
>>> non-mpls packet. Try removing it and see what happens.
>>>
>>>   Jarno
>>>
>>>
>>> > On Apr 6, 2016, at 21:46, Ning Wu <nw276 at cornell.edu> wrote:
>>> >
>>> > the
>>>
>>>
>>
>>
>>
>
>



More information about the dev mailing list