From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 977633BA8E for ; Tue, 28 Feb 2017 09:11:46 -0500 (EST) Received: by mail-wm0-x233.google.com with SMTP id v77so86067202wmv.1 for ; Tue, 28 Feb 2017 06:11:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=RSzX+q7eXjnC6RVqsMri8mLKFF8VjmvmojGmAn2ktE4=; b=P0NmWE7qOpHrdtIYXUGfWvemB/WBhcg4VPTLorWEEQmAa9tOyKvM5D0Cyp3BMUKksu E7wI3Vpmi/x1QML7ZDIM0AP1emy1u9hbISs2cqZE4fZALyxeOLLkHIwTldmXnXX/nWfY sS91zygbOvuEztMr8hMMZn8R1sGZvoxTASf8HgIXmC0E7Xsy5084ozNwYGF5/VcEzGEh nfF+dXfvCb9fyten0IijAlrG4/vZLqFL2rtoFdbxOBiCkQQYygO8qL4xdeP684N4MFvH Ps9dKZPCg3wbzIb/TW6hEfm3ipy3/F9SuXg3D+HdWL+7WmLO4u4WLjJtn8Fa/a/ahFrD 3QEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=RSzX+q7eXjnC6RVqsMri8mLKFF8VjmvmojGmAn2ktE4=; b=iCR62hGvrStRuKUBxc+bsANK/Cci/6M2tWxk/zEafxiMrZTgTV9F6X+bF0CmGj0FBH PYA8TZji9YOnqJEVUcoFov/p0xKCQIGTYDdk2l/G9N09dkJ33Xdaxo1ckNu5/s5DSKhW xbvGN1DY+KxNE2Drdhe6GEu7r5bR9aqSEJBxpo406aXyDg2QpG5XxTsyAdxylSLFQ7g+ lWpHt31UDifoV+A9FNMAnIn9KEEO8peTgXupFGZcImPMpW0Zvu75bQAqbLG9/1mAPaih whlg+bgZiygJkwec+DNXoUtZ8OlZQKv3je8rznaIyMBEFwYDlGRI5/7Lvi5DHgHuh3ct 1toQ== X-Gm-Message-State: AMke39l35SUjtO29iATDMUGwJ/6FjP7+owXOyL1RGN4Gvivm38ZBHD1gg1bL2pysYuXnBg== X-Received: by 10.28.4.10 with SMTP id 10mr19193168wme.142.1488291105702; Tue, 28 Feb 2017 06:11:45 -0800 (PST) Received: from [192.168.0.3] (81.218.125.91.dyn.plus.net. [91.125.218.81]) by smtp.gmail.com with ESMTPSA id e71sm2871620wma.8.2017.02.28.06.11.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Feb 2017 06:11:45 -0800 (PST) To: Jonathan Morton Cc: cake@lists.bufferbloat.net References: <5E17AA80-FF83-4CEA-A1C8-BF12B0031CBD@gmail.com> From: Andy Furniss Message-ID: <5c6be902-a9a4-87d1-3b09-35da09be5c59@gmail.com> Date: Tue, 28 Feb 2017 14:11:43 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Cake] Putting cake under dsmark on ingress ifb 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, 28 Feb 2017 14:11:46 -0000 Andy Furniss wrote: > Jonathan Morton wrote: >> >>> On 26 Feb, 2017, at 15:41, Andy Furniss wrote: >>> >>> This works in the sense that I can now get tcpdump on a PC on the >>> lan to show incoming icmp with tos 0xb8. >>> >>> So I try to add cake under dsmark ini the hope that it sees icmp as ef >>> but it doesn't, icmp goes to best effort. >> >> I suspect packets are queuing in cake first and only then going >> through dsmark. What happens if you reverse the nesting? > > tc qdisc add dev ifb0 handle 1:0 root cake bandwidth 60mbit raw overhead > 34 diffserv4 > > tc qdisc add dev ifb0 handle 2:0 parent 1:0 dsmark indices 64 > RTNETLINK answers: Operation not supported > > Going to be AFK till this evening - will try more random stuff later. I couldn't get anything to work with dsmark so went for plan B = Use tc pedit which has a selector for dscp. Turned out to be useless though, it looked like it overwrote the whole tos byte, but worse I ended up with packets that failed csum so got dropped. Plan C worked :-) = use action ipt, which is now action xt (ugh). tc filter add dev ppp0 parent ffff: prio 1 protocol ip u32 match ip protocol 1 0xff action xt -j DSCP --set-dscp-class ef action mirred egress redirect dev ifb0 ...other filters ... TODO see if it's possible with actions to set dscp when using connmark to choose the flow.