From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (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 62A533B29E for ; Tue, 23 Feb 2021 15:52:15 -0500 (EST) Received: by mail-qk1-x735.google.com with SMTP id 81so102600qkf.4 for ; Tue, 23 Feb 2021 12:52:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-transfer-encoding:content-language:thread-index; bh=1FQPxjHJewoY4KmN60YYWGJ78f7evQhyZavycfeyPnQ=; b=LlyEhOAYXgp2/mpMhiTH5cq/W+yQPbtNC300cVHV8OrtpZE45CwAlLdFEjTWVERRou GlDtiSCuXStwFU6l6TALm9y9bAUU4RQ7+032EDnJA+jTQ/wSFVKLQjD9TNAdOJsKMFek 4AxqTOJvEwSCB5qCytFJj8OXqofhu63Eozq30dMJ9GaVQo9FOEC+cJfPRQnazpSQWqPG xiLj0NPhPQDCw3OsNeAQWTwd9CPHLXkF4+Y4P9TEFiSREaCsObRevsMx/wI7Etgi4pOC LmNa4hxgXzrkK1iBw4SwwV/2gUG7XYtSLEVrtr5/dZ9h/EVvIZjB5VgDv8Nk+GQqFV7R EeeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:content-language :thread-index; bh=1FQPxjHJewoY4KmN60YYWGJ78f7evQhyZavycfeyPnQ=; b=Y5mvFWf5D14pxk21m4MSlUutxv1iDZdIXSg6ZV1uxet3OMBEvvwhkLbL5iWRi/qxOF ErjBnZerWLy20Q5x6lfrEx2D4iIXuhaKth54eME3LrX2YhWCPbVYhTVtkrDNjwZKcInf KWej6eRD33T1Gn0J4eoQIzwGCTIueUFAmGOlKetqp2NDcp4ZRTqlEgmqkPxW7Nby+uNn Y6g8wHm9WJ0g0jmhT6VITd9iAY8pBezBYbUhObM1SsMOsLYx16HEcsLvQb8Cq+m/CU+Y iOtZiMoEQ1PhMknPtnVKBACDaClaoxrZmrwa8i6P7hVPtdCdDO6THQnbDrllR6ViZ40U poww== X-Gm-Message-State: AOAM533PwKB95vTsUxRfT1ewn4pVago1MjFO/2Q48OkgssfHOsM3Rbrm TIZ0J+oTPZ49vgyxyCjp5pfdoqRQaGXD6xNT X-Google-Smtp-Source: ABdhPJzufqCS24eAgG2VYd4b8pvnQL9Ft2R5kQzfR2KhX7Ktke7By7Q0sgfkorTB5fS1vUswY+Au0A== X-Received: by 2002:a05:620a:12f2:: with SMTP id f18mr28717558qkl.17.1614113534455; Tue, 23 Feb 2021 12:52:14 -0800 (PST) Received: from DESKTOPCIICUKU (bras-base-toroon0240w-grc-12-70-51-234-16.dsl.bell.ca. [70.51.234.16]) by smtp.gmail.com with ESMTPSA id a9sm7181148qtx.96.2021.02.23.12.52.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2021 12:52:13 -0800 (PST) From: "Jeremy Marks" To: "'Cake List'" References: <87mtw1kx9c.fsf@toke.dk> <87im6pkweq.fsf@toke.dk> <9a889d98-0fae-d1af-6dea-c534f0df854a@sager.me.uk> In-Reply-To: Date: Tue, 23 Feb 2021 15:52:12 -0500 Message-ID: <003101d70a25$c32357a0$496a06e0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: en-us Thread-Index: AQG9qMS4LtDx6E49v/2g8DNj85OmawJGv/gMAe+9JewB26Rj5wGPdpeiAPIeNF4Buhc2NAJIa6sIqjRH6YA= Subject: Re: [Cake] Enforcing video quality question 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: Tue, 23 Feb 2021 20:52:15 -0000 Thank you very much! ---Original Message----- From: Cake On Behalf Of John Sager Sent: Tuesday, February 23, 2021 6:15 AM To: cake@lists.bufferbloat.net Subject: Re: [Cake] Enforcing video quality question Here is the toy QoS solution for linux, which is a simplified version of = the one I uses successfully on my home network. It uses quite a few = scheduler modules - sch_htb, act_connmark, em_meta etc - that may not = load automatically, so they may need to be listed in /etc/modules. Toke, thanks for agreeing to let the attachment through. John On 19/02/2021 19:04, John Sager wrote: > Yes. The marks are set on egress so you can select on inside IP=20 > address, port, protocol - in fact many characteristics that iptables=20 > rules can test for. I'll put together a toy iptables rules file and a=20 > toy script with the necessary tc commands. It'll take me a few days=20 > though as I'm busy with other stuff currently. >=20 > PS does the cake list allow attachments? It will be a small zip file. >=20 > John >=20 > On 19/02/2021 15:02, Peter Lepeska wrote: >> Hi John >> >> Does this result in the ability to set per internal host max ingress=20 >> bandwidth? If so, any chance you can share a snippet of a script? I=20 >> will be trying to reproduce your setup. >> >> Thank you! >> >> Peter >> >> On Fri, Feb 19, 2021 at 7:16 AM John Sager > > wrote: >> >> That's basically what I do. I set marks on outgoing traffic in=20 >> the mangle >> table which are copied to connmark before egress. Then on ingress = >> the >> connmark is restored to the packet and punted to ifb0 using=20 >> 'action >> connmark >> action mirred egress redirect dev $IFB' as an ingress filter on=20 >> the >> incoming >> interface (ppp0 in my case). Then I have HTB classes on ifb0=20 >> which set rate >> limits for different traffic classes indicated by the marks. I=20 >> have only 6 >> traffic classes (I bundle all video into one class), but as marks = >> are 32 >> bits wide there is lots of scope for classes for individual IP = addresses. >> >> John >> >> On 18/02/2021 19:28, Toke H=C3=B8iland-J=C3=B8rgensen via Cake = wrote: >> > Peter Lepeska > > >> writes: >> > >> >> A user on the OpenWrt forum suggested hashlimit rules=20 >> supported by >> >> iptables. How does that idea sound to you? >> > >> > That will result in a cliff-edge policer (i.e., as soon as a=20 >> device goes >> > over its limits it will see every packet get dropped). This=20 >> doesn't >> > interact too well with the burstiness of TCP, so you'll likely = >> get >> > erratic behaviour of the traffic if you do that. Doing the=20 >> same thing >> > with HTB means the router will queue+shape each class (and=20 >> with FQ-CoDel >> > on the leaves, you'll get a nice AQM behaviour as well), so=20 >> that will be >> > smoother and less prone to bloat :) >> > >> > -Toke >> > _______________________________________________ >> > Cake mailing list >> > Cake@lists.bufferbloat.net >> > https://lists.bufferbloat.net/listinfo/cake >> > >> _______________________________________________ >> Cake mailing list >> Cake@lists.bufferbloat.net >> https://lists.bufferbloat.net/listinfo/cake >> > _______________________________________________ > Cake mailing list > Cake@lists.bufferbloat.net > https://lists.bufferbloat.net/listinfo/cake >=20