Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp605805ybg; Wed, 23 Oct 2019 03:05:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6QFBhK78dRCrQQZ3O6y5fwMQREDx7gz1p+m6oe2EWZ9oLjOaiFQSptRJovWPCzA6SLHEv X-Received: by 2002:a17:906:e82:: with SMTP id p2mr31555391ejf.237.1571825142994; Wed, 23 Oct 2019 03:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571825142; cv=none; d=google.com; s=arc-20160816; b=uuh+t3EUlAryppIgFIBSgSNGm0VV2hQVavVWSde3DesTjnGpVU3H2BgyJ9f311BuJt idvYVSAhiaI5XywvvRg3bywLr75PjRhZa4eDzFSGEtKvz6tja3LO+l2e1OhIFm6aoUwO /FiiprjzrsT9CCoDVFPt6b94Sz1Sxb/c0A/zJl2ArZ9z6IOOrKY9AR6cWETyMJB2liiM nD9ah7YuFeXtb94PRLmeg9Pwsc03t7+LDuE3Jo+LPiHafVJNURL23g4uNnFRa7lMTUCP j3vitEs+9DWBg/jGjEXIIC9fyHoEPulNNXLv7R+FxfjGbdB6rK/FeeXW8NxVQUqlMDCI 1/sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5emlzdBcyQKRWblamuH9LkuU6rz1TF+chv1k3FvAKlk=; b=eXpq9eWF0VaCCmga/MgqAg/AqfM97tU+6ywJt3MjBX37kstRubRsE213H+I0+7bLMt VzBpyHDzBSCpLjfGoGaAW6Lw7fHApw+S42MQHth6T8L0LDpAr3XxdblXb+6WSHVYk5Ej grpgmQO6rxVF2PAg6LAq3rUoWE4sU4iDHxspseTM5DBBNkAg26SuNluCSfFX1KNZ8JI3 00awznVY1rdMRky2w8BTWbgeiJYl4jR79QAUeQc2DwC0wLxpEHytQPOAuFILL06WYv+r v2ejkCvQLwWZdgarV02jpdk5Zud9yMUuH2TFcBb9As8q7re4+DhtwjEl6nJEo7KSh3KP 92VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b="qZG6MBc/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si1169692ejk.376.2019.10.23.03.05.18; Wed, 23 Oct 2019 03:05:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b="qZG6MBc/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404187AbfJWKBk (ORCPT + 99 others); Wed, 23 Oct 2019 06:01:40 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:37403 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403810AbfJWKBj (ORCPT ); Wed, 23 Oct 2019 06:01:39 -0400 Received: by mail-ed1-f65.google.com with SMTP id r4so15294917edy.4 for ; Wed, 23 Oct 2019 03:01:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5emlzdBcyQKRWblamuH9LkuU6rz1TF+chv1k3FvAKlk=; b=qZG6MBc/wMQBruGKlUudZ16Cy3/0u1rYy9yPr4J8lmbHSVjI7U3DwofG4OG50HL0l6 joV4svx4AWbdEiKn+VTlvf5xCMAF4mnBgR4xRY6yegpME8eLp1JxPJx2mXQnXuhm+bBu I9vnea61du2YbZZfi4HYX6xiLdy1Rnfemt8WOTu2o7z//ypGoruF50FdbllXhUUi5yyr o6Ly1WBFcoXw4jJAIBbsegJkuLjUl1qVQ87bJ2+djojwE1Va6ACuK1bhzAk7RxY2wBCT i7SI82iaSPdh0AwMlwhhe15b+SShSxOX3/AsrGFqWdVyoRb/3N5c1Ar/kfz1ppMDYvUi FulQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5emlzdBcyQKRWblamuH9LkuU6rz1TF+chv1k3FvAKlk=; b=Ef1HRLRxuGUjn3ZOAcYPX1+wSLIeI+F7/iICR6QIijlT0WqRobjByTOJcUT4HNrgL8 UrcMN4Fl/rIb54kGoD9jfoJPuLdVZHglkX7fkza6q64oGs2POutDplT1k2CgtUjcL3hJ W591DA5V8fD2xjNVxf9oy7fUgRiGqE1wC7S5/NsTG9K3iC28URrduKD13y69g/cCjrFZ CQK8XVRPwVUsKye6jo5pRiFyU6yv30WgRdR5CIfR+V91D/hxgV2PPqfuo3hmLP0ajg67 T7TVqCTSBQuDRIJmmVPq7oiYCH9ZbIPBGIgtz7tZ5QZj5Qh2twT/nEsCbtLQsCvZso6L 4wRQ== X-Gm-Message-State: APjAAAVgbAbHRoiHdhDff9cmhi4/lMiH4awPmEC9vUg35C7l/USfnA3W 6ju0tQyrOj8OcaMlYA3KoNi+VQ== X-Received: by 2002:a17:906:4d4f:: with SMTP id b15mr8904707ejv.81.1571824897561; Wed, 23 Oct 2019 03:01:37 -0700 (PDT) Received: from netronome.com ([62.119.166.9]) by smtp.gmail.com with ESMTPSA id a22sm426052edv.7.2019.10.23.03.01.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 03:01:37 -0700 (PDT) Date: Wed, 23 Oct 2019 12:01:32 +0200 From: Simon Horman To: Matteo Croce Cc: netdev@vger.kernel.org, Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , "David S . Miller " , Stanislav Fomichev , Daniel Borkmann , Song Liu , Alexei Starovoitov , Paul Blakey , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 4/4] bonding: balance ICMP echoes in layer3+4 mode Message-ID: <20191023100132.GD8732@netronome.com> References: <20191021200948.23775-1-mcroce@redhat.com> <20191021200948.23775-5-mcroce@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191021200948.23775-5-mcroce@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 21, 2019 at 10:09:48PM +0200, Matteo Croce wrote: > The bonding uses the L4 ports to balance flows between slaves. > As the ICMP protocol has no ports, those packets are sent all to the > same device: > > # tcpdump -qltnni veth0 ip |sed 's/^/0: /' & > # tcpdump -qltnni veth1 ip |sed 's/^/1: /' & > # ping -qc1 192.168.0.2 > 1: IP 192.168.0.1 > 192.168.0.2: ICMP echo request, id 315, seq 1, length 64 > 1: IP 192.168.0.2 > 192.168.0.1: ICMP echo reply, id 315, seq 1, length 64 > # ping -qc1 192.168.0.2 > 1: IP 192.168.0.1 > 192.168.0.2: ICMP echo request, id 316, seq 1, length 64 > 1: IP 192.168.0.2 > 192.168.0.1: ICMP echo reply, id 316, seq 1, length 64 > # ping -qc1 192.168.0.2 > 1: IP 192.168.0.1 > 192.168.0.2: ICMP echo request, id 317, seq 1, length 64 > 1: IP 192.168.0.2 > 192.168.0.1: ICMP echo reply, id 317, seq 1, length 64 > > But some ICMP packets have an Identifier field which is > used to match packets within sessions, let's use this value in the hash > function to balance these packets between bond slaves: > > # ping -qc1 192.168.0.2 > 0: IP 192.168.0.1 > 192.168.0.2: ICMP echo request, id 303, seq 1, length 64 > 0: IP 192.168.0.2 > 192.168.0.1: ICMP echo reply, id 303, seq 1, length 64 > # ping -qc1 192.168.0.2 > 1: IP 192.168.0.1 > 192.168.0.2: ICMP echo request, id 304, seq 1, length 64 > 1: IP 192.168.0.2 > 192.168.0.1: ICMP echo reply, id 304, seq 1, length 64 > > Signed-off-by: Matteo Croce I see where this patch is going but it is unclear to me what problem it is solving. I would expect ICMP traffic to be low volume and thus able to be handled by a single lower-device of a bond. ...