From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-x22c.google.com (mail-wr0-x22c.google.com [IPv6:2a00:1450:400c:c0c::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 66D173B2A4 for ; Thu, 6 Apr 2017 09:30:04 -0400 (EDT) Received: by mail-wr0-x22c.google.com with SMTP id o21so34293452wrb.2 for ; Thu, 06 Apr 2017 06:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=ibmWNquDclByMXA7xDFTC6AKiLEa47sdCBH94KRsZYc=; b=P6kmhiH0AC+Ya+HxJipsIIBZpL5MMEjdTcMNAA5lYKWvdmEBcRdsKTSzeOKYkzGFW2 qYCu+nx9+XRM4J1do+9HdJpPa+L3nKAyjV0kpPKVlV1MO3+fkURgSGOKl9whSb5BGEjQ t5ZVEXsScIHf1UgJMTl+a9NrcVnex2GtCbA0GaP9Yvy05hB9N/gd/Atq2e7BdYSNwJIT 1U/QJDvgPnzoEDwSuAJxut3n1dhACMUckILn9BqX0KmIxpMzHZRLVSCZBs6A8eLQPnSv jKpnhig2vLN276CvTBaxivILM3N2IMBnaINXk2nwKJwxoUaaenZOla2EZbvnZAU/beg7 vhpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=ibmWNquDclByMXA7xDFTC6AKiLEa47sdCBH94KRsZYc=; b=FGWn7h0DKHtVfDnLGLivBOO58xaBKGYZ69FXEBdNUG+R9lFX1uCTywcVx2zgDVZooX m3ZxvuFJjZJNF5Tj+YPmIYKnQOzJiD5Ya1sdU5WTsGi1NHh2MimNvOwSNsZgBaeWcE+C 1UmTfWsEbcpN0HMbho64TRB+msP2qXwsdqH/7C6ZULkUvP3ma15o2gWqdCSOU7C4x9JW uGDnwYInZbajTfVjU4zNWt5T0GXcBz/Xb0uq5yc+vTOJuNIpYMQrTBvUMR2RhQKciWlE fXIcGuqS+0hFYuFYRaNzUVBfoZ+TOZE/8PNNmY2l1ddVzlLfyeLRX+SX1qBvFCI1vEQe eK/g== X-Gm-Message-State: AN3rC/5Acx2tmOn3W2cTPKMO2JFV0MlgACWlj0NyQ8VA+Dae4JHq7voq5rZ+5qFwjwo6+w== X-Received: by 10.223.154.129 with SMTP id a1mr1001883wrc.5.1491485403207; Thu, 06 Apr 2017 06:30:03 -0700 (PDT) Received: from [10.72.0.130] (h-1169.lbcfree.net. [185.99.119.68]) by smtp.gmail.com with ESMTPSA id 46sm2171748wru.37.2017.04.06.06.30.02 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Apr 2017 06:30:02 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_23C0E70C-B4F0-4F59-91D6-7C5EAF364E74" Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Pete Heist In-Reply-To: <87mvbtu419.fsf@alrua-kau> Date: Thu, 6 Apr 2017 15:30:00 +0200 Cc: cake@lists.bufferbloat.net Message-Id: <94AF2A61-6D02-4F68-B4B4-688EED722A0B@gmail.com> References: <2FD59D30-3102-4A3E-A38E-050E438DABF0@gmail.com> <87ziftubgy.fsf@alrua-kau> <8E96329F-A57D-49C7-A7EE-60BD165B4D5C@gmail.com> <87r315u7xe.fsf@alrua-kau> <87mvbtu419.fsf@alrua-kau> To: =?utf-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= X-Mailer: Apple Mail (2.3124) Subject: Re: [Cake] flow isolation for ISPs X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2017 13:30:04 -0000 --Apple-Mail=_23C0E70C-B4F0-4F59-91D6-7C5EAF364E74 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 6, 2017, at 2:14 PM, Toke H=C3=B8iland-J=C3=B8rgensen = wrote: >=20 >> Pete Heist writes: >> but I=E2=80=99m still a little confused. Is fq_codel actually a = classful >> qdisc? >=20 > Yup. The hash buckets are the classes, basically. You can get per-flow > stats by doing `tc -s class show dev eth0` (only works when a flow has > built a queue). I see now, never knew that=E2=80=A6 :) >> I get the part about matching with tc-filter and the u32 selector (as >> intuitive as that is :), but am not sure of the action the filter >> needs to take. However, I do see the example towards the bottom of = the >> tc-u32 man page where a hash table is created and filters move = packets >> into the right buckets. Perhaps it will be eventually decipherable >> from this=E2=80=A6 :) >=20 > The filter classifies a packet into a class. The 'minor number' of = this > is the queue number (so needs to be less than the number of flows you > configured for fq_codel - 1024 by default). It=E2=80=99s clearer to me now how to split traffic by member (using = their MAC addresses- and by clear I mean not totally clear yet but = should become clear :) but to get both per-member and per-flow hashing = together isn=E2=80=99t as clear yet (which I think is what Cake=E2=80=99s = dual-srchost does). Maybe a separate table per-member could be created. = =E2=80=98u32=E2=80=99 looks arcane, but flexible...= --Apple-Mail=_23C0E70C-B4F0-4F59-91D6-7C5EAF364E74 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Apr 6, 2017, at 2:14 PM, Toke H=C3=B8iland-J=C3=B8rgensen = <toke@toke.dk> = wrote:

Pete Heist <peteheist@gmail.com>= writes:
but I=E2=80=99m still a = little confused. Is fq_codel actually a classful
qdisc?

Yup. The hash buckets are the classes, = basically. You can get per-flow
stats by doing `tc -s class show dev = eth0` (only works when a flow has
built a queue).

I see now, never = knew that=E2=80=A6 :)

I get the part about = matching with tc-filter and the u32 selector (as
intuitive = as that is :), but am not sure of the action the filter
needs to take. However, I do see the example towards the = bottom of the
tc-u32 man page where a hash table is = created and filters move packets
into the right buckets. = Perhaps it will be eventually decipherable
from this=E2=80=A6= :)

The filter classifies a packet into a = class. The 'minor number' of this
is the queue number (so needs to be less = than the number of flows you
configured for fq_codel - 1024 by = default).

It=E2=80= =99s clearer to me now how to split traffic by member (using their MAC = addresses- and by clear I mean not totally clear yet but should become = clear :) but to get both per-member and per-flow hashing together = isn=E2=80=99t as clear yet (which I think is what Cake=E2=80=99s = dual-srchost does). Maybe a separate table per-member could be created. = =E2=80=98u32=E2=80=99 looks arcane, but flexible...
= --Apple-Mail=_23C0E70C-B4F0-4F59-91D6-7C5EAF364E74--