From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (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 36EA43B2A4 for ; Sun, 26 Feb 2017 08:41:36 -0500 (EST) Received: by mail-wm0-x232.google.com with SMTP id v186so44435389wmd.0 for ; Sun, 26 Feb 2017 05:41:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=APzYyNS9hREsQmOLLULXBvlJzOqamnUIIaZmHEf9vmE=; b=E7zcV12q/9xqwGoYekL7iT9BBEv5Hb1RIvJNQEQBNsc8pqLDsJxI8TVmkMbKMHAjfn p1Y0fbCbOds74ZIu4I+79uqpHtJPTHfshCa7oJvnoUzPHNitxG2xm2VYlrrI9VhFGGLQ MzVewNhYvFNiz8dwEYW5JiJe3MB5CkMdu06ivF8ktHgbG6Bw9uAE3DtpdulToWavCAYl BQaBM84v3gn+kxGqTsOTeuvgrci/9G+JLhPCKQtFz1zHyuOAsiOz6HB44fep3YrpAZyX rtV6v9m7oS21VBU7On8fvdFqxTYQQ6q09HEiENzPGpMn1laHHkvzEOqYHcXoytZNk8vk 81uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=APzYyNS9hREsQmOLLULXBvlJzOqamnUIIaZmHEf9vmE=; b=LoMBuIgLAR4U71IcLrjkn1MSsL+WuveZ/vhNexP8YkC9k8CvXp3bBthR4a4A2feQ2y 5BOHnA93zCoCzedfkPumOtZlcJsl0gGzO0/LREEPdDWdZhpgGE9xvB0MzBFatN3BDvre 2ee+v7O9G8EVg77QhPBZjvy01BZcOjFaKbIV3IFRCPI3sCfvivvp0WQ/YieXQ57+pCIR vxPsFnIaVrVaDWUymhYZmMd2C5t5CvF1vEjfZPcWqtMPIOOn4Fse9ae9Lj1HpQog8fLs duFdxsGr5zLwcfjRiVzx10Mi6uLy2D/fc0sVuZFPktTXqmKBRp5L7MmO00Cpgp1U8Clr QaiA== X-Gm-Message-State: AMke39mo6A4Nvunlhu1HwUDz+bOujLXMEdWLUEjox47sv3bUJqddDGY1dFhsxqg10r/Gxg== X-Received: by 10.28.107.84 with SMTP id g81mr9993038wmc.123.1488116494910; Sun, 26 Feb 2017 05:41:34 -0800 (PST) Received: from [192.168.0.3] (53.218.125.91.dyn.plus.net. [91.125.218.53]) by smtp.gmail.com with ESMTPSA id k10sm4229430wmg.10.2017.02.26.05.41.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Feb 2017 05:41:34 -0800 (PST) To: cake@lists.bufferbloat.net From: Andy Furniss Message-ID: Date: Sun, 26 Feb 2017 13:41:33 +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 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [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: Sun, 26 Feb 2017 13:41:36 -0000 I am well rusty with linux qos and have never tried dsmark before. I am likely doing something stupid here :-) So the test: I want to set dsmark on ingress traffic so I can control which cake tin it goes to - test just marking icmp as ef. ingress qdisc is added to ppp0 and redirected to ifb0, on which I do - tc qdisc add dev ifb0 handle 1:0 root dsmark indices 64 tc filter add dev ifb0 parent 1:0 protocol ip prio 1 u32 match ip protocol 1 0xff classid 1:1 tc class change dev ifb0 classid 1:1 dsmark mask 0x3 value 0xb8 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. tc qdisc add dev ifb0 handle 2:0 parent 1:0 cake bandwidth 60mbit raw overhead 34 diffserv4 tc -s -d qdisc ls dev ifb0 qdisc dsmark 1: root refcnt 2 indices 0x0040 Sent 60259205 bytes 71562 pkt (dropped 8, overlimits 0 requeues 0) backlog 0b 0p requeues 0 qdisc cake 2: parent 1: bandwidth 60Mbit diffserv4 triple-isolate rtt 100.0ms noatm overhead 48 via-ethernet Sent 60254313 bytes 71495 pkt (dropped 8, overlimits 67924 requeues 0) backlog 0b 0p requeues 0 memory used: 160448b of 4Mb capacity estimate: 60Mbit Bulk Best Effort Video Voice thresh 3750Kbit 60Mbit 30Mbit 15Mbit target 5.0ms 5.0ms 5.0ms 5.0ms interval 100.0ms 100.0ms 100.0ms 100.0ms pk_delay 4us 311us 87us 7us av_delay 0us 214us 4us 0us sp_delay 0us 6us 4us 0us pkts 3 71367 95 38 bytes 124 60246264 18265 1554 way_inds 0 182 0 0 way_miss 3 7043 77 7 way_cols 0 0 0 0 drops 0 8 0 0 marks 0 0 0 0 sp_flows 0 1 0 0 bk_flows 0 0 0 0 un_flows 0 0 0 0 max_len 44 1500 1151 78 The packets showing as voice are AFAIKT ntp. pinging from lan still shows 0xb8 but the counters show that they are going through Best Effort. Anyone see what's wrong? TIA.