[Cake] Fresh from the bakery

Kevin Darbyshire-Bryant kevin at darbyshire-bryant.me.uk
Thu Oct 15 07:55:29 EDT 2015


Hi list,

Jonathan has been slaving over the oven (again) and produced a fresh
batch of commits, this time for the iproute2/tc userland side of things
(announced in another email on this list)  This means that the cake
qdisc module & tc will talk to one another again with a few new whizzy
features (and sprinkles!)

I've just merged those changes into Dave's 'tc-adv' repo, compiled &
run(ning) then here on an Archer C7.  I've not *yet* updated the
ceropackages repo to point to the latest sch-cake & tc-adv so it's not
'openwrt' wide at this time.

Warning:  Since the ABI/API changed, you'll likely need to update both
the kernel module & userland tc - nothing should burst into flames but
'missing stats' output from tc is a sure sign that cake tray & tin are
not in alignment.


Note the new 'rtt' parameter:

# tc qdisc change cake help
Usage: ... cake [ bandwidth RATE | unlimited* ]
                [ rtt TIME | datacentre | lan | metro | regional |
internet* | oceanic | satellite | interplanetary ]
                [ besteffort | squash | precedence | diffserv8 |
diffserv4* ]
                [ flowblind | srchost | dsthost | hosts | flows* ]
                [ atm | noatm* ] [ overhead N | conservative | raw* ]
    (* marks defaults)


And the stats:

# tc -s qdisc show dev eth0
qdisc cake 800a: root refcnt 2 bandwidth 9800Kbit diffserv4 flows rtt
100.0ms noatm overhead 12
 Sent 1580471 bytes 15158 pkt (dropped 0, overlimits 627 requeues 0)
 backlog 0b 0p requeues 0
             Tin 0       Tin 1       Tin 2       Tin 3 
  thresh    9800Kbit    9187Kbit    7350Kbit    2450Kbit
  target       5.0ms       5.0ms       5.0ms       7.4ms
interval     100.0ms     100.0ms     100.0ms     102.4ms
Pk-delay         0us       381us         2us         1us
Av-delay         0us        10us         0us         0us
Sp-delay         0us         1us         0us         0us
  pkts             0       15053          66          39
  bytes            0     1565352        5940        9179
way-inds           0          43           0           0
way-miss           0         900          66          11
way-cols           0           0           0           0
  drops            0           0           0           0
  marks            0           0           0           0
Sp-flows           0           0           1           0
Bk-flows           0           2           0           2
last-len           0          82          90         225
max-len            0        1514          90         485

qdisc ingress ffff: parent ffff:fff1 ----------------
 Sent 12901461 bytes 20356 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0


Note how traffic is classified into Tins, not Classes or Bins :-)

Enjoy!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4816 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.bufferbloat.net/pipermail/cake/attachments/20151015/736086ed/attachment-0002.bin>


More information about the Cake mailing list