From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (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 0DFA53CB35 for ; Fri, 4 Jan 2019 04:20:00 -0500 (EST) Received: by mail-wm1-x343.google.com with SMTP id m22so578831wml.3 for ; Fri, 04 Jan 2019 01:20:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heistp.net; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8RGfBzMT0AWHyv7zF7eCBQvcjnHwp1XjKzGBN2JJSA4=; b=Nl7Iwu5BKuhWUd94GMPkBlHm3ZSzeKtL1RSRC10vNdmWugVuQsEFeQ8nl/QAmprzTT tL2we46uLPIR4asGRfsx/BUviDCJLCAIhOCS8LqH7GxGGFvkmbWyLBQJpmO4hy941xd5 eiyqDsLNGnL8duN59f/Z0pJ72TkDTKtz0FxprURfv5tfSQZCFoiP39Q6N+o6OaHBm/Wx qPyd8QfkMWf6i8OteCV/h17dVTXJkn9/Y/vm7HqvaofuF+urghT7BQfnN1aiSCgnmt3Z t1DpJBUqOsc9PalgHVflY7zw/VIW2AT55u4suyG4BYaw5Qvtw6A0R4dV+mC6OGG+V1m9 FoMA== 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 :content-transfer-encoding:message-id:references:to; bh=8RGfBzMT0AWHyv7zF7eCBQvcjnHwp1XjKzGBN2JJSA4=; b=CRP8bgKMzRFk53p0LOWxklPllPkNQirby6esPth4X+pnkZj67nJEeAjkDr82BJYCzH oF4KF5Z0vWxl76/Sw8j53PUeXjyS922gzK8zA+4zunMakz8JoczSKcwONyqK7CM4vBGN Smw9MHsjQKtXHMDo6hlSla2szClqDZZAYosT9l0JVo2961dNrkFq4iE5DgszOCUkgAcE oeWxM7lSW18KZMsQUvpVCK8anRn2TirP9kcJG3kDZYzXIXl+IsKCMpt2/WadV72lxsB2 k/HfWncV2+m3tkS9rxkQNfp8KW0d30OyccSqGBCpL+DUWtHq8Qgt5/35qGAEEvEq8r4V dlLQ== X-Gm-Message-State: AJcUukeEBHfolJu0xXHMnkYBE0nlfRNVD5lXFvM15fW3hcrP3hSkKP3J hEfQcSS9F2Qzg1IMRm6GOmkPl5eHVHo= X-Google-Smtp-Source: ALg8bN6YpmxpGZJS+9p/1/zAlWtpg5ggDwqonwhlP3xBFFbAn2mycZKI11r+ap1JTl3l3dDZXhGWaQ== X-Received: by 2002:a1c:96ce:: with SMTP id y197mr773551wmd.36.1546593600031; Fri, 04 Jan 2019 01:20:00 -0800 (PST) Received: from tron.luk.heistp.net (h-1169.lbcfree.net. [185.193.85.130]) by smtp.gmail.com with ESMTPSA id x81sm584910wmg.17.2019.01.04.01.19.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jan 2019 01:19:59 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) From: Pete Heist In-Reply-To: Date: Fri, 4 Jan 2019 10:19:57 +0100 Cc: bloat Content-Transfer-Encoding: quoted-printable Message-Id: References: <9B37BCD5-9ADE-4E7D-8B5C-82830051831B@logicalwebhost.com> <87d0pdy5ik.fsf@toke.dk> To: Dev X-Mailer: Apple Mail (2.3445.9.1) Subject: Re: [Bloat] fq_codel on bridge multiple subnets? X-BeenThere: bloat@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: General list for discussing Bufferbloat List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2019 09:20:01 -0000 It=E2=80=99s a little different for me in that I=E2=80=99m rate limiting = on one of the physical interfaces, but otherwise, your setup should = reduce latency under load when the Ethernet devices are being used at = line rate. If your WAN interface is enp8s0 and goes out to the Internet, you may = want to shape there (htb+fq_codel or cake) depending on what upstream = device is in use. If enp7s6 and enp9s2 are only carrying LAN traffic, and not traffic that = goes out to the Internet, fq_codel=E2=80=99s target and interval could = be reduced. > On Jan 4, 2019, at 6:22 AM, Dev wrote: >=20 > Okay, so this is what I have for /etc/network/interfaces (replaced = eth0-2 with what Debian Buster actually calls them): >=20 > auto lo br0 > iface lo inet loopback >=20 > allow-hotplug enp8s0 > iface enp8s0 inet static > address 192.168.10.200 > netmask 255.255.255.0 > gateway 192.168.10.1 > dns-nameservers 8.8.8.8 >=20 > iface enp7s6 inet manual > tc qdisc add dev enp7s6 root fq_codel >=20 > iface enp9s2 inet manual > tc qdisc add dev enp9s2 root fq_codel >=20 > # Bridge setup > iface br0 inet static > bridge_ports enp7s6 enp9s2 > #bridge_stp on > address 192.168.3.50 > broadcast 192.168.3.255 > netmask 255.255.255.0 > gateway 192.168.3.1 > dns-nameservers 8.8.8.8 >=20 > so my bridge interfaces now show: >=20 >> : tc -s qdisc show dev enp7s6 > qdisc fq_codel 0: root refcnt 2 limit 10240p flows 1024 quantum 1514 = target 5.0ms interval 100.0ms memory_limit 32Mb ecn > Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) > backlog 0b 0p requeues 0 > maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0 > new_flows_len 0 old_flows_len 0 >=20 > and=20 >=20 >> : tc -s qdisc show dev enp9s2 > qdisc fq_codel 0: root refcnt 2 limit 10240p flows 1024 quantum 1514 = target 5.0ms interval 100.0ms memory_limit 32Mb ecn > Sent 12212 bytes 80 pkt (dropped 0, overlimits 0 requeues 0) > backlog 0b 0p requeues 0 > maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0 > new_flows_len 0 old_flows_len 0 >=20 > with my bridge like: >=20 > ip a=20 >=20 > 5: br0: mtu 1500 qdisc noqueue state = UP group default qlen 1000 > link/ether 00:04:5a:86:a2:84 brd ff:ff:ff:ff:ff:ff > inet 192.168.3.50/24 brd 192.168.3.255 scope global br0 > valid_lft forever preferred_lft forever > inet6 fe80::204:5aff:fe86:a284/64 scope link > valid_lft forever preferred_lft forever >=20 > So do I have it configured right or should I change something? I = haven=E2=80=99t gotten a chance to stress test it yet, but will try = tomorrow. >=20 > - Dev >=20 >> On Jan 3, 2019, at 10:54 AM, Pete Heist wrote: >>=20 >>=20 >>> On Jan 3, 2019, at 7:12 PM, Toke H=C3=B8iland-J=C3=B8rgensen = wrote: >>>=20 >>> Dev writes: >>>=20 >>>> I=E2=80=99m trying to create a bridge on eth1 and eth2, with a = management >>>> interface on eth0, then enable fq_codel on the bridge. My bridge >>>> interface looks like: >>>=20 >>> You'll probably want to put FQ-CoDel on the underlying physical >>> interfaces, as those are the ones actually queueing the traffic... >>=20 >> I can confirm that. I'm currently using a bridge on my home router. = eth3 and eth4 are bridged, eth4 is connected to the CPE device which = goes out to the Internet, eth4 is where queue management is applied, and = this works. It does not work to add this to br0=E2=80=A6 >>=20 >=20