dtaht / sch_cake

Out of tree build for the new cake qdisc
100 stars 35 forks source link

Asking ethernet overhead 14. #144

Closed yutayu closed 4 years ago

yutayu commented 4 years ago

I have 2 PC's with cake. 1st is a router and behind of modem and mtu is 1478. 2nd is a client and behind of 1st and mtu is 1500. see min/max network layer size difference.

1st pi@raspberrypi:~/Documents $ tc -st qdisc show dev eth0 qdisc cake 8035: root refcnt 2 bandwidth 831Kbit besteffort dual-srchost nonat nowash ack-filter split-gso rtt 30.0ms atm overhead 10 Sent 6676875 bytes 20443 pkt (dropped 329, overlimits 12301 requeues 0) backlog 0b 0p requeues 0 memory used: 53760b of 4Mb capacity estimate: 831Kbit min/max network layer size: 28 / 1478 min/max overhead-adjusted size: 53 / 1643 average network hdr offset: 14

              Tin 0

thresh 831Kbit target 22.0ms interval 50.5ms pk_delay 2.0ms av_delay 81us sp_delay 10us backlog 0b pkts 20774 bytes 6729908 way_inds 28 way_miss 218 way_cols 0 drops 23 marks 2648 ack_drop 306 sp_flows 2 bk_flows 1 un_flows 0 max_len 1492 quantum 300

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

2nd ippan@ippan-Express5800-S70-N8100-9023:~$ tc -s qdisc show dev eno1 qdisc cake 802f: root refcnt 2 bandwidth 99500Kbit besteffort triple-isolate nonat nowash ack-filter split-gso rtt 1.0ms raw overhead 0 mpu 64 Sent 4280431 bytes 18623 pkt (dropped 0, overlimits 273 requeues 0) backlog 0b 0p requeues 0 memory used: 13530b of 4Mb capacity estimate: 99500Kbit min/max network layer size: 42 / 1492 min/max overhead-adjusted size: 64 / 1492 average network hdr offset: 14

              Tin 0

thresh 99500Kbit target 182us interval 1.1ms pk_delay 7us av_delay 2us sp_delay 1us backlog 0b pkts 18623 bytes 4280431 way_inds 58 way_miss 3302 way_cols 0 drops 0 marks 0 ack_drop 0 sp_flows 0 bk_flows 1 un_flows 0 max_len 2984 quantum 1514

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

2nd is added 14. confusing.

yutayu commented 4 years ago

I should think more , I will close lol

yutayu commented 4 years ago

https://man7.org/linux/man-pages/man8/tc-cake.8.html

   raw (default)
        Turns off all overhead compensation in CAKE.  The packet size
   reported by Linux will be used directly.

        Other overhead keywords may be added after "raw".  The effect of
   this is to make the overhead compensation operate relative to the
   reported packet size, not the underlying IP packet size.

I should read these lines. Excuse me.