<div dir="ltr"><div>My setup is as follows</div><div><br></div><div>vdsl2 modem doing pppoe itself and nat to 10.x.x.x -> lede master eth0.2 (wan static ip in modem's DMZ) eth0.1 (lan) doing nat to 192.168.1.x</div><div><br></div><div>Here is my current SQM config</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>config queue 'eth1'</div><div>        option debug_logging '0'</div><div>        option verbosity '5'</div><div>        option qdisc 'cake'</div><div>        option qdisc_advanced '1'</div><div>        option ingress_ecn 'ECN'</div><div>        option egress_ecn 'NOECN'</div><div>        option qdisc_really_really_advanced '1'</div><div>        option script 'layer_cake.qos'</div><div>        option interface 'eth0.2'</div><div>        option enabled '1'</div><div>        option eqdisc_opts 'nat rtt 50000 bridged-ptm dual-srchost diffserv4'</div><div>        option upload '2400'</div><div>        option linklayer 'ethernet'</div><div>        option overhead '8'</div><div>        option squash_dscp '1'</div><div>        option squash_ingress '1'</div><div>        option iqdisc_opts 'nat rtt 50000 bridged-ptm dual-dsthost'</div><div>        option download '0'</div><div><br></div><div>config queue</div><div>        option debug_logging '0'</div><div>        option verbosity '5'</div><div>        option download '0'</div><div>        option qdisc 'cake'</div><div>        option script 'layer_cake.qos'</div><div>        option qdisc_advanced '1'</div><div>        option squash_dscp '0'</div><div>        option squash_ingress '0'</div><div>        option ingress_ecn 'ECN'</div><div>        option qdisc_really_really_advanced '1'</div><div>        option egress_ecn 'ECN'</div><div>        option interface 'eth0.1'</div><div>        option enabled '1'</div><div>        option eqdisc_opts 'nat rtt 50000 bridged-ptm dual-dsthost diffserv4'</div><div>        option upload '30000'</div><div>        option linklayer 'ethernet'</div><div>        option overhead '8'</div></blockquote><div><br></div><div>Is the overhead correct? should i use the bridged-ptm keyword (or should i use <span style="background-color:rgb(240,255,244);color:rgb(34,134,58);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">pppoe-ptm)</span>. I tried using ATM_overhead_detector and get the following output</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>869001 lines parsed...</div><div>Found 144921 ping packets in /home/mark/src/ATM_overhead_detector/ping_sweep__20171217_075202.txt</div><div>Elapsed time is 972.739 seconds.</div><div>Minimum size of ping payload used: 16 bytes.</div><div>warning: division by zero</div><div>warning: called from</div><div>    ATM_overhead_detector at line 201 column 15</div><div>warning: legend: ignoring extra labels</div><div>Unknown or ambiguous terminal name 'wxt'</div><div>Unknown or ambiguous terminal name 'wxt'</div><div>Saved figure (5) to: /home/mark/src/ATM_overhead_detector/ping_sweep__20171217_075202_data.png</div><div>lower bound estimate for one ATM cell RTT based of specified up and downlink is 0.052419 ms.</div><div>estimate for one ATM cell RTT based on linear fit of the ping sweep data is 0.052419 ms.</div><div>Starting brute-force search for optimal stair fit, might take a while...</div><div>Unknown or ambiguous terminal name 'wxt'</div><div>Unknown or ambiguous terminal name 'wxt'</div><div>Best staircase fit cumulative difference is: 2.6952</div><div>Best linear fit cumulative difference is: 2.7314</div><div>Quantized ATM carrier LIKELY (cummulative residual: stair fit 2.6952 linear fit 2.7314</div><div>remaining ATM cell length after ICMP header is 5 bytes.</div><div>ICMP RTT of a single ATM cell is 0.05871 ms.</div><div><br></div><div>Estimated overhead preceding the IP header: 48 bytes</div><div>Saved figure (6) to: /home/mark/src/ATM_overhead_detector/ping_sweep__20171217_075202_results.png</div><div><br></div><div>According to <a href="http://ace-host.stuart.id.au/russell/files/tc/tc-atm/">http://ace-host.stuart.id.au/russell/files/tc/tc-atm/</a></div><div>48 bytes overhead indicate</div><div>Overhead of 0 bytes is not possible so assume 1 full packet (48 bytes) overhead...</div><div>Connection: Bridged, LLC/SNAP+FCS RFC-1483/2684 + VLAN tag terminated at modem</div><div>Protocol (bytes): Ethernet Header (14), VLAN tag (4), Ethernet PAD [8] (0), Ethernet Checksum (4), ATM LLC (3), ATM SNAP (5), ATM pad (2), ATM AAL5 SAR (8) : Total 36</div><div><br></div><div>Add the following to both the egress root qdisc:</div><div>A) Assuming the router connects over ethernet to the DSL-modem:</div><div>stab mtu 2048 tsize 128 overhead 48 linklayer atm</div><div><br></div><div>Add the following to both the ingress root qdisc:</div><div><br></div><div>A) Assuming the router connects over ethernet to the DSL-modem:</div><div>stab mtu 2048 tsize 128 overhead 48 linklayer atm</div><div><br></div><div>Elapsed time is 1042.06 seconds.</div><div>Done...</div><div>ans = [](0x0)</div></blockquote><div><br></div><div><br></div><div>Could my VDSL2 be using ATM? so i have the wrong overhead set?</div><div><br></div><div>here is my tc -s qdisc output</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>root@OpenWrt-Mi3G:~# tc -s qdisc</div></div><div><div>qdisc noqueue 0: dev lo root refcnt 2</div></div><div><div> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)</div></div><div><div>qdisc fq_codel 0: dev eth0 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn</div></div><div><div> Sent 3460986864 bytes 3651814 pkts (dropped 0, overlimits 0)</div></div><div><div>  maxpacket 17032 drop_overlimit 0 new_flow_count 29673 ecn_mark 0</div></div><div><div>  new_flows_len 0 old_flows_len 0</div></div><div><div>qdisc noqueue 0: dev br-lan root refcnt 2</div></div><div><div> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)</div></div><div><div>qdisc cake 8055: dev eth0.1 root refcnt 2 bandwidth 30Mbit diffserv4 dual-dsthost nat rtt 50.0ms ptm overhead 22 via-ethernet total_overhead 22 hard_header_len 14</div></div><div><div> Sent 20012069 bytes 35472 pkt (dropped 10, overlimits 7587 requeues 0)</div></div><div><div> backlog 0b 0p requeues 0</div></div><div><div> memory used: 36684b of 4Mb</div></div><div><div> capacity estimate: 30Mbit</div></div><div><div>                   Bulk  Best Effort        Video        Voice</div></div><div><div>  thresh       1875Kbit       30Mbit       15Mbit     7500Kbit</div></div><div><div>  target          9.7ms        2.5ms        2.5ms        2.5ms</div></div><div><div>  interval       57.2ms       50.0ms       50.0ms       50.0ms</div></div><div><div>  pk_delay          0us        5.6ms        855us         15us</div></div><div><div>  av_delay          0us        436us         28us         10us</div></div><div><div>  sp_delay          0us         27us          8us          6us</div></div><div><div>  pkts                0        33679          457         1346</div></div><div><div>  bytes               0     19869595        80517        69940</div></div><div><div>  way_inds            0          249            0            0</div></div><div><div>  way_miss            0         3099           19            7</div></div><div><div>  way_cols            0            0            0            0</div></div><div><div>  drops               0           10            0            0</div></div><div><div>  marks               0            0            0            0</div></div><div><div>  ack_drop            0            0            0            0</div></div><div><div>  sp_flows            0            1            1            0</div></div><div><div>  bk_flows            0            1            0            0</div></div><div><div>  un_flows            0            0            0            0</div></div><div><div>  max_len             0         7064         2982          350</div></div><div><div><br></div></div><div><div>qdisc cake 8053: dev eth0.2 root refcnt 2 bandwidth 2400Kbit diffserv4 dual-srchost nat rtt 50.0ms ptm overhead 22 via-ethernet total_overhead 22 hard_header_len 14</div></div><div><div> Sent 23218772 bytes 35904 pkt (dropped 205, overlimits 27550 requeues 0)</div></div><div><div> backlog 0b 0p requeues 0</div></div><div><div> memory used: 94752b of 4Mb</div></div><div><div> capacity estimate: 2400Kbit</div></div><div><div>                   Bulk  Best Effort        Video        Voice</div></div><div><div>  thresh        150Kbit     2400Kbit     1200Kbit      600Kbit</div></div><div><div>  target        121.1ms        7.6ms       15.1ms       30.3ms</div></div><div><div>  interval      242.2ms       55.1ms       62.6ms       77.8ms</div></div><div><div>  pk_delay          0us       29.5ms         19us        4.4ms</div></div><div><div>  av_delay          0us        3.8ms          1us        2.3ms</div></div><div><div>  sp_delay          0us         50us          1us          9us</div></div><div><div>  pkts                0        34979           31         1099</div></div><div><div>  bytes               0     23342354         2930       162457</div></div><div><div>  way_inds            0          177            0            0</div></div><div><div>  way_miss            0         2003           27           16</div></div><div><div>  way_cols            0            0            0            0</div></div><div><div>  drops               0          205            0            0</div></div><div><div>  marks               0            0            0            0</div></div><div><div>  ack_drop            0            0            0            0</div></div><div><div>  sp_flows            0            1            0            0</div></div><div><div>  bk_flows            0            1            0            0</div></div><div><div>  un_flows            0            0            0            0</div></div><div><div>  max_len             0         8342           98          598</div></div><div><div><br></div></div><div><div>qdisc noqueue 0: dev wlan1 root refcnt 2</div></div><div><div> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)</div></div><div><div>qdisc noqueue 0: dev wlan0 root refcnt 2</div></div><div><div> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)</div></div><div><div>qdisc fq_codel 0: dev tun0 root refcnt 2 limit 10240p flows 1024 quantum 1500 target 5.0ms interval 100.0ms memory_limit 4Mb ecn</div></div><div><div> Sent 304 bytes 4 pkts (dropped 0, overlimits 0)</div></div><div><div>  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0</div></div><div><div>  new_flows_len 0 old_flows_len 0</div></div></blockquote><div><br></div><div>Thanks,</div><div>Mark</div></div>