From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 48DFA3CB36 for ; Thu, 27 Dec 2018 18:30:48 -0500 (EST) Received: by mail-wr1-x432.google.com with SMTP id r10so19572939wrs.10 for ; Thu, 27 Dec 2018 15:30:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heistp.net; s=google; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=S2v1pAGwxW0SzmrZjiKbdIrcNHXCgXm9Lm6UO4omV6A=; b=CaKVE6wC6JDvSkn/ZJM/b4Y8FjvrxD6isDT3nDl2LSkP3sCJgCXH+0aVy6ttAQfhYR mqOXJ6fq2Fdrvy3zXY0jCs0aargM2WyyHWNAe2eiemAZL18q1rwrMY/9ufTMWbGYgMQO tOUgWoahE96QK+lXwBzTM/Qj6VqTorcKpWctb//DxSVADD3msC1cM99qKZkyrz/jIksU wQ+zp1NosuA95UX2rZ0Mp8mD153WB/KK0KGkFsKHC/cYdEyjtdf+euH2Lf0IngF0NX+8 Pi6VJUuErBLlqdwgAxuTPGWzwSMsY/K2FvD3qAbaWSlCvaN/s8pvZcdZeM6zOibbL2AW iUXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=S2v1pAGwxW0SzmrZjiKbdIrcNHXCgXm9Lm6UO4omV6A=; b=rTwXd43Db026xDpsKg5XwZJl+OvNLg4HXljgBy/3s4f2vaOqzOk1RxLo07+kbux5dN anr5eA+FPoKSudaxPdBQOHj6NKpc0c9gFhcq79lp01tYgg9xKiPUVpaBSKLda26qqgTv dUHqn5tIzXzbaTKABqHNXqn5gpV1hJ5WG4UDfO/7UNDIhN+eyMmdpGNhdnH3sKNeauLV z5+pw0rCyfnwrE3xEGnJc2rL7cT4+8C0xSF83o2TG1nKqfKAUt2JuWmxWiBbjlVLbpjj 4zwmnn1rnLee22h5CfrB3YsFWCM4M8GhvvkWzA0H/WYblMW7Koe3npS1u9Ng0eu325vA 5yqA== X-Gm-Message-State: AJcUukcZ6NBiQGG9o8Ghukm6cbqMzynLLwclbgjfTBhCZz0J6AEHBuhq RYQZUkAGc1ysmY0WlxE6ixe0NL7SKbQ= X-Google-Smtp-Source: ALg8bN6fpAVFJ+iXhI+sez2tnUTtw4PuWlTMneCJaKVETY2peWnKn+RkeK5tnalAhX9lfSy6JxTfug== X-Received: by 2002:a5d:4a8e:: with SMTP id o14mr22537771wrq.159.1545953447125; Thu, 27 Dec 2018 15:30:47 -0800 (PST) Received: from tron.luk.heistp.net (h-1169.lbcfree.net. [185.193.85.130]) by smtp.gmail.com with ESMTPSA id e16sm30082072wrn.72.2018.12.27.15.30.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Dec 2018 15:30:46 -0800 (PST) From: Pete Heist Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Message-Id: Date: Fri, 28 Dec 2018 00:30:44 +0100 To: Cake List X-Mailer: Apple Mail (2.3445.9.1) Subject: [Cake] cake infinite loop(?) with hfsc on one-armed router 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, 27 Dec 2018 23:30:48 -0000 I=E2=80=99m seeing what I think it an infinite loop when cake is used in = a one-armed router configuration with hfsc as the rate limiter. Three = APUs are connected to the same switch and the =E2=80=9Cmiddle=E2=80=9D = APU (apu1a) routes between the default VLAN and a tagged VLAN. apu2a <=E2=80=94 default VLAN =E2=80=94> apu1a <=E2=80=94 VLAN = 3300 =E2=80=94> apu2b After qos is set up, ping from apu2a to apu2b still works fine. When = iperf3 is run from apu2a to apu2b it works fine, but when it goes in = reverse (apu2b to apu2a), all traffic stops flowing from apu1a on the = default VLAN. Traffic still flows from apu1a on VLAN 3300 however, with = very high RTT (mean 500ms), leading me to believe that the cake instance = on the default VLAN is in an infinite loop. It does not happen with hfsc+fq_codel, or with htb+cake in the same = configuration. Here are the commands that set up qos, and it only locks up when cake is = used as the instance at handle 20, not at handle 21: ----- tc qdisc add dev eth0 root handle 1: hfsc default 10 tc class add dev eth0 parent 1: classid 1:1 hfsc sc rate 200mbit ul rate = 200mbit tc class add dev eth0 parent 1:1 classid 1:10 hfsc sc rate 100mbit ul = rate 100mbit tc class add dev eth0 parent 1:1 classid 1:11 hfsc sc rate 100mbit ul = rate 100mbit tc filter add dev eth0 protocol ip parent 1:0 prio 1 \ basic match "meta(vlan mask 0xfff eq 0xce4)" flowid 1:11 tc qdisc add dev eth0 parent 1:10 handle 20: fq_codel # using cake here = locks up !!! tc qdisc add dev eth0 parent 1:11 handle 21: cake =E2=80=94=E2=80=94 I=E2=80=99m using sch_cake and tc-adv from the current HEAD, on kernel = 3.16.7 (yeah, I know). root@apu1a:~/qos# uname -a Linux apu1a 3.16.7-ckt9-voyage #1 SMP Thu Apr 23 11:10:44 HKT 2015 i686 = GNU/Linux Any ideas just from just this? Otherwise, I can only think to hook up = the serial cable and start with the printk=E2=80=99s=E2=80=A6