From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 937F63B29E for ; Thu, 28 Jan 2021 12:19:48 -0500 (EST) Received: by mail-wm1-x32a.google.com with SMTP id i9so5209979wmq.1 for ; Thu, 28 Jan 2021 09:19:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:references:from:subject:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=vEAS3V7u05GxuVgw7rDzmUP3YbSHFZjMBk0craS23Qc=; b=A3gcM5jyENEufNQEWx9lp89b+ZRdh7W/8KCZiUtSO4Y6TIAjhx4HNWYZPx+mGGSkrf JYy3RWCCfDkf0ZJo26ns+gE+utHiIMbubgdyD9SDtWWwfmBy8O2oETIyJFYdsyy7Dj3j dOxkL3lZIr2JyYdAO6lM/x6GXYg/Zpjs4vvRIaSZ1BHIBQDtV9sL+A9EehWEgy9nHYDF nDbKy6RkCmTwzcstxGr4LeAnm9+YaHEBiDTVz5ET+kJCCjh6ChAic0nfkJ4HZxscsk35 ZfF5KKzj56aA9qsNQM+uEqWEpd2YmIPlhLLQhFSzagxU6bQY1dH7m5tXJn6tB4lGpCUM x2xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=vEAS3V7u05GxuVgw7rDzmUP3YbSHFZjMBk0craS23Qc=; b=Td+yN+IegiD6P2K4PcioGGgaEnUBgUjSID8YcnnyCiDTz35dEhyOhZ9iLf5t0asD9e G+hVQ7syaHfrWubKeYGOwIRIwce+KuNzQUWYZYZQMeOidJylmrGi+uQfICFbPsLrtYu7 qjSlE6lfv167iUp4nuIBQAZz0RAUfn3bbpCTEgNBw5+O38pt+31KlvT+Bclgo8+wFkQC 4cJfKbSm120NJzHy5bA9GHkw3hlRP9e7DeJZ/qI11qcSMfobVMB6p4EXvwf24A/WXBGv o1yB4JlYPEDLKUeEFeRJCW/FX5oaECaBJH52lCGskQIKPWcdujmkUioNWQw9uWW6RfAb RaFw== X-Gm-Message-State: AOAM531zZCpq/pNUiIgOuVO6ZREGuqgrmvNaObT49RLggdW8uL59htYI 2kmvkpH/WhEaGyKiEcnen/EpV5Rc6UI= X-Google-Smtp-Source: ABdhPJwyDXSfUzK2dr9v0k7gmhjl/b/zcKn9318gT3/Be4YEk+fkW6sZcbxn4Iy/hLJuGGvCKh1VZw== X-Received: by 2002:a05:600c:1457:: with SMTP id h23mr316170wmi.30.1611854387654; Thu, 28 Jan 2021 09:19:47 -0800 (PST) Received: from [192.168.1.116] (cpe90-146-174-71.liwest.at. [90.146.174.71]) by smtp.gmail.com with ESMTPSA id d16sm7583606wrr.59.2021.01.28.09.19.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jan 2021 09:19:47 -0800 (PST) To: Jeremy Marks Cc: Cake List References: From: xnor Message-ID: <556d6202-1719-297e-b950-38f7a66d04dd@gmail.com> Date: Thu, 28 Jan 2021 18:17:51 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Cake] Trouble getting decent performance with CAKE 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, 28 Jan 2021 17:19:48 -0000 > I think the redirect command (in that alternate code block that I=20 didn't use) is from older code, so it's no longer needed. >> 3. I set up CAKE with the following commands: >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo tc qdisc add dev eth0 = root handle 1:0 cake=20 bandwidth...[switches] >> >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo set interfaces input i= fb0 >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo set interfaces etherne= t eth0 redirect ifb0 >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo tc qdisc add dev ifb0 = root handle 2:0 cake=20 bandwidth...[switches] What is that supposed to do? What is "set"? Which package does "set"=20 come from? It seems very weird to have a command that is a shell built-in... >> 4. Regarding your suggestion: "the download setting up tc mirred I=20 assume you are doing with sqm? Do that." >> >>=C2=A0=C2=A0=C2=A0=C2=A0 This is outside my knowledge, and I have not = done anything like=20 that. >>=C2=A0=C2=A0=C2=A0=C2=A0 I have read an alternative (older?) way to se= t up CAKE for ingress: >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo ip link add name ifb4e= th0 type ifb >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo tc qdisc del dev eth0 = ingress >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo tc qdisc add dev eth0 = handle ffff: ingress >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo tc qdisc del dev ifb4e= th0 root >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo tc qdisc add dev ifb4e= th0 root cake bandwidth... >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo ifconfig ifb4eth1 up >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sudo tc filter add dev eth1= parent ffff: protocol all prio 10=20 u32 match u32 0 0 flowid 1:1 action mirred egress redirect dev ifb4eth1 No, this is the *proper* way, but there are mistakes in your example. It = adds the tc filter to eth1 instead of eth0. You probably also don't want = the flowid. > Do you think I can safely remove the imq0 interface? The stats (thank = you!) suggest to me that it's not being used. Removing may not be=20 necessary anyway. As I said before, imq has been obsolete for a couple of years. Iirc it=20 hasn't been shipped with the kernel for years. imq was used for QoS back in the day. It extended iptables to do the=20 redirection. ifb is the "modern" replacement and works at a lower level, hence the=20 need for the tc-mirred It looks to me like the linux distribution on your router is doing some=20 nonstandard things and possibly runs custom QoS scripts that could=20 conflict with your setup. If that is the case you should ask the=20 manufacturer for support.