From 9aa555ab1e51001f260c44442ede85ec61aabf39 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Sat, 3 Aug 2019 05:34:23 +0900 Subject: [PATCH 01/22] Update supershaper.init Added stab line --- supershaper.init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/supershaper.init b/supershaper.init index e496d05..662f41a 100755 --- a/supershaper.init +++ b/supershaper.init @@ -108,6 +108,9 @@ TC=tc # Where to store flow labels, accessible for other tools FLOWS_FILENAME="/run/tc-flows.csv" +# Stab setting + + ############################################################################## ######## Nothing to change below this line unless you're adventurous ######### ############################################################################## @@ -147,7 +150,7 @@ function start_me { ################### FLOW DEFINITIONS ################### # Add root qdisc - $TC qdisc add dev $DEV root handle 1: hfsc default 50 + $TC qdisc add dev $DEV root handle 1: stab linklayer $linklayer overhead $overhead mpu $mpu $tsize hfsc default 50 # Add main class, setting interface rate limit (your upstream max bandwidth) $TC class add dev $DEV parent 1: classid 1:1 hfsc ls m2 "${UPLINK}kbit" ul m2 "${UPLINK}kbit" From b6493b8f8ccc97694b3aa90c85dd096533c32a41 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Sat, 3 Aug 2019 05:36:11 +0900 Subject: [PATCH 02/22] Update supershaper.init --- supershaper.init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/supershaper.init b/supershaper.init index 662f41a..9649444 100755 --- a/supershaper.init +++ b/supershaper.init @@ -109,7 +109,10 @@ TC=tc FLOWS_FILENAME="/run/tc-flows.csv" # Stab setting - +linklayer=ethernet +overhead=-14 +tsize=2048 +mpu=0-64 ############################################################################## ######## Nothing to change below this line unless you're adventurous ######### From 8c0e9080492e3810678db1c8b29e0ba24636feed Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Sat, 3 Aug 2019 05:36:42 +0900 Subject: [PATCH 03/22] Update supershaper.init --- supershaper.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supershaper.init b/supershaper.init index 9649444..10f9381 100755 --- a/supershaper.init +++ b/supershaper.init @@ -111,7 +111,7 @@ FLOWS_FILENAME="/run/tc-flows.csv" # Stab setting linklayer=ethernet overhead=-14 -tsize=2048 +tsize=2047 mpu=0-64 ############################################################################## From 693acd56cce33a9dcc0f024a23ca1ceb8dddf92c Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Sat, 3 Aug 2019 05:39:19 +0900 Subject: [PATCH 04/22] Update supershaper.init --- supershaper.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supershaper.init b/supershaper.init index 10f9381..2addaa0 100755 --- a/supershaper.init +++ b/supershaper.init @@ -153,7 +153,7 @@ function start_me { ################### FLOW DEFINITIONS ################### # Add root qdisc - $TC qdisc add dev $DEV root handle 1: stab linklayer $linklayer overhead $overhead mpu $mpu $tsize hfsc default 50 + $TC qdisc add dev $DEV root handle 1: (stab linklayer $linklayer overhead $overhead mpu $mpu $tsize) hfsc default 50 # Add main class, setting interface rate limit (your upstream max bandwidth) $TC class add dev $DEV parent 1: classid 1:1 hfsc ls m2 "${UPLINK}kbit" ul m2 "${UPLINK}kbit" From 061a788763d8c6e2e5212c2edb3ebd9bc01eeaf5 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Sat, 3 Aug 2019 06:16:26 +0900 Subject: [PATCH 05/22] Update supershaper.init --- supershaper.init | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/supershaper.init b/supershaper.init index 2addaa0..0e8f494 100755 --- a/supershaper.init +++ b/supershaper.init @@ -109,8 +109,9 @@ TC=tc FLOWS_FILENAME="/run/tc-flows.csv" # Stab setting -linklayer=ethernet -overhead=-14 +stab="linklayer ethernet overhead -14 mpu 0 tsize 512" +linklayer=ethernet,atm +overhead=it depends on connection kind. tsize=2047 mpu=0-64 @@ -153,7 +154,7 @@ function start_me { ################### FLOW DEFINITIONS ################### # Add root qdisc - $TC qdisc add dev $DEV root handle 1: (stab linklayer $linklayer overhead $overhead mpu $mpu $tsize) hfsc default 50 + $TC qdisc add dev $DEV root handle 1: $stab hfsc default 50 # Add main class, setting interface rate limit (your upstream max bandwidth) $TC class add dev $DEV parent 1: classid 1:1 hfsc ls m2 "${UPLINK}kbit" ul m2 "${UPLINK}kbit" From 7003b475b494ea35dcb55c510b7d9f7e6ef185ec Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Sun, 4 Aug 2019 15:50:50 +0900 Subject: [PATCH 06/22] Update supershaper.init --- supershaper.init | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/supershaper.init b/supershaper.init index 0e8f494..e61a045 100755 --- a/supershaper.init +++ b/supershaper.init @@ -109,7 +109,9 @@ TC=tc FLOWS_FILENAME="/run/tc-flows.csv" # Stab setting -stab="linklayer ethernet overhead -14 mpu 0 tsize 512" +#stab="linklayer ethernet overhead -14 mpu 0 tsize 512" +stab="stab linklayer atm overhead -4" + linklayer=ethernet,atm overhead=it depends on connection kind. tsize=2047 @@ -125,7 +127,7 @@ UPLINK=$((UPLINK_PERCENT*UPLINK_BW/100)) # Which qdisc to use for HFSC leaves # Turns out that the old sfq seems to work better than fq_codel in # conjunction with HFSC Try out both and decide for yourself -LEAF_QDISC="sfq divisor 65536 headdrop" +LEAF_QDISC="sfq divisor 65536 headdrop quantum 1643" #LEAF_QDISC="fq_codel noecn" filter_prio=1 From 32d4e254ed8d773da648b37e395be4fa9a8178d5 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 04:57:33 +0900 Subject: [PATCH 07/22] Update supershaper.init --- supershaper.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supershaper.init b/supershaper.init index e61a045..fd3f9a0 100755 --- a/supershaper.init +++ b/supershaper.init @@ -73,7 +73,7 @@ UPLINK_BW=3422 # 3.4Mbps, measured 2017-08-31 # calculated bandwidth (see UPLINK below) you modem is probably still # queuing packets. This can only be set by trial an error, but 90% is # probably a good ballpark number. -UPLINK_PERCENT=90 +UPLINK_PERCENT=95 # Skype normally uses a random UDP/TCP port, but specify it manually to be # able to control it better From 704909d3fd1de806b9d5dea522cf4788e2901fe2 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 06:41:21 +0900 Subject: [PATCH 08/22] Update supershaper.init --- supershaper.init | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/supershaper.init b/supershaper.init index fd3f9a0..af8635c 100755 --- a/supershaper.init +++ b/supershaper.init @@ -109,13 +109,13 @@ TC=tc FLOWS_FILENAME="/run/tc-flows.csv" # Stab setting -#stab="linklayer ethernet overhead -14 mpu 0 tsize 512" -stab="stab linklayer atm overhead -4" +# PPPoE ADSL/VDSL over ATM +STAB="stab linklayer ethernet overhead 40" +# PPPoA ADSL/VDSL over ATM +#STAB="stab linklayer atm overhead 10" +# +#http://linuxcommandlibrary.com/man/tc-stab.html -linklayer=ethernet,atm -overhead=it depends on connection kind. -tsize=2047 -mpu=0-64 ############################################################################## ######## Nothing to change below this line unless you're adventurous ######### @@ -156,7 +156,7 @@ function start_me { ################### FLOW DEFINITIONS ################### # Add root qdisc - $TC qdisc add dev $DEV root handle 1: $stab hfsc default 50 + $TC qdisc add dev $DEV root handle 1: $STAB hfsc default 50 # Add main class, setting interface rate limit (your upstream max bandwidth) $TC class add dev $DEV parent 1: classid 1:1 hfsc ls m2 "${UPLINK}kbit" ul m2 "${UPLINK}kbit" From c4b46cb5466d6d10ab64ca58480a23fa36d6a2c2 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 06:43:10 +0900 Subject: [PATCH 09/22] Update supershaper.init --- supershaper.init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/supershaper.init b/supershaper.init index af8635c..ecd3bc1 100755 --- a/supershaper.init +++ b/supershaper.init @@ -110,9 +110,9 @@ FLOWS_FILENAME="/run/tc-flows.csv" # Stab setting # PPPoE ADSL/VDSL over ATM -STAB="stab linklayer ethernet overhead 40" +STAB="linklayer ethernet overhead 40" # PPPoA ADSL/VDSL over ATM -#STAB="stab linklayer atm overhead 10" +#STAB="linklayer atm overhead 10" # #http://linuxcommandlibrary.com/man/tc-stab.html @@ -156,7 +156,7 @@ function start_me { ################### FLOW DEFINITIONS ################### # Add root qdisc - $TC qdisc add dev $DEV root handle 1: $STAB hfsc default 50 + $TC qdisc add dev $DEV root handle 1: stab $STAB hfsc default 50 # Add main class, setting interface rate limit (your upstream max bandwidth) $TC class add dev $DEV parent 1: classid 1:1 hfsc ls m2 "${UPLINK}kbit" ul m2 "${UPLINK}kbit" From c522b03fa06dd235436b5ce83417313ca6b827da Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 06:47:14 +0900 Subject: [PATCH 10/22] Update supershaper.init --- supershaper.init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supershaper.init b/supershaper.init index ecd3bc1..149d752 100755 --- a/supershaper.init +++ b/supershaper.init @@ -127,7 +127,8 @@ UPLINK=$((UPLINK_PERCENT*UPLINK_BW/100)) # Which qdisc to use for HFSC leaves # Turns out that the old sfq seems to work better than fq_codel in # conjunction with HFSC Try out both and decide for yourself -LEAF_QDISC="sfq divisor 65536 headdrop quantum 1643" +# Quantum number depends on MTU of internet. This is for MTU 1500. +LEAF_QDISC="sfq divisor 65536 headdrop quantum 1696" #LEAF_QDISC="fq_codel noecn" filter_prio=1 From f07de5f7b0f02c4930c6cddd4b3cb540be8dac53 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 07:26:31 +0900 Subject: [PATCH 11/22] Update supershaper.init --- supershaper.init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supershaper.init b/supershaper.init index 149d752..cb15063 100755 --- a/supershaper.init +++ b/supershaper.init @@ -128,7 +128,8 @@ UPLINK=$((UPLINK_PERCENT*UPLINK_BW/100)) # Turns out that the old sfq seems to work better than fq_codel in # conjunction with HFSC Try out both and decide for yourself # Quantum number depends on MTU of internet. This is for MTU 1500. -LEAF_QDISC="sfq divisor 65536 headdrop quantum 1696" +# 1500 + 40 < 48 * 33 = 1584 , 33 * ( 48 + 5 ) = 1749 +LEAF_QDISC="sfq divisor 65536 headdrop quantum 1749" #LEAF_QDISC="fq_codel noecn" filter_prio=1 From 43b56db395bd772cc1ccf4198e98994f9b6edb31 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 07:37:00 +0900 Subject: [PATCH 12/22] Update supershaper.init --- supershaper.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supershaper.init b/supershaper.init index cb15063..a74376f 100755 --- a/supershaper.init +++ b/supershaper.init @@ -128,7 +128,7 @@ UPLINK=$((UPLINK_PERCENT*UPLINK_BW/100)) # Turns out that the old sfq seems to work better than fq_codel in # conjunction with HFSC Try out both and decide for yourself # Quantum number depends on MTU of internet. This is for MTU 1500. -# 1500 + 40 < 48 * 33 = 1584 , 33 * ( 48 + 5 ) = 1749 +# 1500 + 40 < 48 * 33 = 1584 , 33 * ( 48 + 5 ) = 1749. LEAF_QDISC="sfq divisor 65536 headdrop quantum 1749" #LEAF_QDISC="fq_codel noecn" From 6c8be954c4a0cd88313093df3cec557cf64563de Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 07:38:11 +0900 Subject: [PATCH 13/22] Update supershaper.init --- supershaper.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supershaper.init b/supershaper.init index a74376f..b2df468 100755 --- a/supershaper.init +++ b/supershaper.init @@ -112,7 +112,7 @@ FLOWS_FILENAME="/run/tc-flows.csv" # PPPoE ADSL/VDSL over ATM STAB="linklayer ethernet overhead 40" # PPPoA ADSL/VDSL over ATM -#STAB="linklayer atm overhead 10" +# STAB="linklayer atm overhead 10" # #http://linuxcommandlibrary.com/man/tc-stab.html From 3c261c2b9fd2e36154b164ef9dd624e3b9b1e722 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 07:39:10 +0900 Subject: [PATCH 14/22] Update supershaper.init --- supershaper.init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/supershaper.init b/supershaper.init index b2df468..bd09833 100755 --- a/supershaper.init +++ b/supershaper.init @@ -110,9 +110,9 @@ FLOWS_FILENAME="/run/tc-flows.csv" # Stab setting # PPPoE ADSL/VDSL over ATM -STAB="linklayer ethernet overhead 40" +STAB="stab linklayer ethernet overhead 40" # PPPoA ADSL/VDSL over ATM -# STAB="linklayer atm overhead 10" +# STAB="stab linklayer atm overhead 10" # #http://linuxcommandlibrary.com/man/tc-stab.html @@ -158,7 +158,7 @@ function start_me { ################### FLOW DEFINITIONS ################### # Add root qdisc - $TC qdisc add dev $DEV root handle 1: stab $STAB hfsc default 50 + $TC qdisc add dev $DEV root handle 1: $STAB hfsc default 50 # Add main class, setting interface rate limit (your upstream max bandwidth) $TC class add dev $DEV parent 1: classid 1:1 hfsc ls m2 "${UPLINK}kbit" ul m2 "${UPLINK}kbit" From 31cb101001afb34e447f44c5ccc25dba834f5d52 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 07:46:44 +0900 Subject: [PATCH 15/22] Update supershaper.init --- supershaper.init | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/supershaper.init b/supershaper.init index bd09833..a4acdae 100755 --- a/supershaper.init +++ b/supershaper.init @@ -113,8 +113,8 @@ FLOWS_FILENAME="/run/tc-flows.csv" STAB="stab linklayer ethernet overhead 40" # PPPoA ADSL/VDSL over ATM # STAB="stab linklayer atm overhead 10" -# -#http://linuxcommandlibrary.com/man/tc-stab.html +# If you use LAN to internet , it should set -14 plus ip overehad. +# According to http://linuxcommandlibrary.com/man/tc-stab.html ############################################################################## @@ -127,8 +127,8 @@ UPLINK=$((UPLINK_PERCENT*UPLINK_BW/100)) # Which qdisc to use for HFSC leaves # Turns out that the old sfq seems to work better than fq_codel in # conjunction with HFSC Try out both and decide for yourself -# Quantum number depends on MTU of internet. This is for MTU 1500. -# 1500 + 40 < 48 * 33 = 1584 , 33 * ( 48 + 5 ) = 1749. +# Quantum should be MTU size. And also , under ATM connection , Qutantum number is power of ( 48 + 5 ). +# If MTU = 1500 , 1500 + 40 < 48 * 33 = 1584 , 33 * ( 48 + 5 ) = 1749. LEAF_QDISC="sfq divisor 65536 headdrop quantum 1749" #LEAF_QDISC="fq_codel noecn" From 6c36bdc0512ff9104391821c0944c7468716196a Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 07:52:13 +0900 Subject: [PATCH 16/22] Update supershaper.init --- supershaper.init | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/supershaper.init b/supershaper.init index a4acdae..517f050 100755 --- a/supershaper.init +++ b/supershaper.init @@ -114,8 +114,7 @@ STAB="stab linklayer ethernet overhead 40" # PPPoA ADSL/VDSL over ATM # STAB="stab linklayer atm overhead 10" # If you use LAN to internet , it should set -14 plus ip overehad. -# According to http://linuxcommandlibrary.com/man/tc-stab.html - +# Additinal options are there,according to http://linuxcommandlibrary.com/man/tc-stab.html ############################################################################## ######## Nothing to change below this line unless you're adventurous ######### From bd5f92ccd4ac4bd7c0ee0906461477df60b07b63 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 08:02:03 +0900 Subject: [PATCH 17/22] Update supershaper.init --- supershaper.init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/supershaper.init b/supershaper.init index 517f050..ad5c895 100755 --- a/supershaper.init +++ b/supershaper.init @@ -113,8 +113,8 @@ FLOWS_FILENAME="/run/tc-flows.csv" STAB="stab linklayer ethernet overhead 40" # PPPoA ADSL/VDSL over ATM # STAB="stab linklayer atm overhead 10" -# If you use LAN to internet , it should set -14 plus ip overehad. -# Additinal options are there,according to http://linuxcommandlibrary.com/man/tc-stab.html +# If you configure it within the LAN, you need to subtract 14 from the overhead. +# If you are using any other line, refer to the following. http://linuxcommandlibrary.com/man/tc-stab.html ############################################################################## ######## Nothing to change below this line unless you're adventurous ######### @@ -126,7 +126,7 @@ UPLINK=$((UPLINK_PERCENT*UPLINK_BW/100)) # Which qdisc to use for HFSC leaves # Turns out that the old sfq seems to work better than fq_codel in # conjunction with HFSC Try out both and decide for yourself -# Quantum should be MTU size. And also , under ATM connection , Qutantum number is power of ( 48 + 5 ). +# Quantum must be greater than or equal to MTU. Also, on ATM lines, Quantum should be a multiple of (48 + 5) = 53. # If MTU = 1500 , 1500 + 40 < 48 * 33 = 1584 , 33 * ( 48 + 5 ) = 1749. LEAF_QDISC="sfq divisor 65536 headdrop quantum 1749" #LEAF_QDISC="fq_codel noecn" From c760dcec3a9aa7bd0212e9248ee4d8a08c4ba55a Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Mon, 5 Aug 2019 08:11:08 +0900 Subject: [PATCH 18/22] Update supershaper.init an initial proposal. --- supershaper.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supershaper.init b/supershaper.init index ad5c895..cf8d994 100755 --- a/supershaper.init +++ b/supershaper.init @@ -73,7 +73,7 @@ UPLINK_BW=3422 # 3.4Mbps, measured 2017-08-31 # calculated bandwidth (see UPLINK below) you modem is probably still # queuing packets. This can only be set by trial an error, but 90% is # probably a good ballpark number. -UPLINK_PERCENT=95 +UPLINK_PERCENT=98 # Skype normally uses a random UDP/TCP port, but specify it manually to be # able to control it better @@ -109,11 +109,11 @@ TC=tc FLOWS_FILENAME="/run/tc-flows.csv" # Stab setting +# Configure a stab to calculate a more accurate queue size and avoid wasting bandwidth. # PPPoE ADSL/VDSL over ATM STAB="stab linklayer ethernet overhead 40" # PPPoA ADSL/VDSL over ATM # STAB="stab linklayer atm overhead 10" -# If you configure it within the LAN, you need to subtract 14 from the overhead. # If you are using any other line, refer to the following. http://linuxcommandlibrary.com/man/tc-stab.html ############################################################################## From 02e3fca9c3ce4a778151822f20ec447a205896d9 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Tue, 6 Aug 2019 04:55:46 +0900 Subject: [PATCH 19/22] Update supershaper.init --- supershaper.init | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/supershaper.init b/supershaper.init index cf8d994..f594114 100755 --- a/supershaper.init +++ b/supershaper.init @@ -110,11 +110,19 @@ FLOWS_FILENAME="/run/tc-flows.csv" # Stab setting # Configure a stab to calculate a more accurate queue size and avoid wasting bandwidth. +# Adds overhead to the generated packet size to fit the bandwidth, eliminating computational dead space. The actual packet is not changed. # PPPoE ADSL/VDSL over ATM -STAB="stab linklayer ethernet overhead 40" +# PPPoE overhead - 32+ (PPPoE - 8, ATM - 10, ethernet - 14) +STAB="stab linklayer ethernet overhead 32" # PPPoA ADSL/VDSL over ATM # STAB="stab linklayer atm overhead 10" +# PPPoA overhead - 10+ (PPP - 2, ATM - 8) +# Quantum must be greater than or equal to MTU. Also, on ATM lines, Quantum should be a multiple of (48 + 5) = 53. +# If the MTU is 1500 bytes, the minimum required bandwidth is 1696 bytes combined with overhead. +# # On an ATM line, all data must use multiples of 48 bytes of bandwidth, and each must account for 5 bytes of overhead. +# 31 < (1500 + 32) / 48 < 32 , 32 * ( 48 + 5 ) = 1696. # If you are using any other line, refer to the following. http://linuxcommandlibrary.com/man/tc-stab.html +QUANTUM="1696" ############################################################################## ######## Nothing to change below this line unless you're adventurous ######### @@ -126,9 +134,8 @@ UPLINK=$((UPLINK_PERCENT*UPLINK_BW/100)) # Which qdisc to use for HFSC leaves # Turns out that the old sfq seems to work better than fq_codel in # conjunction with HFSC Try out both and decide for yourself -# Quantum must be greater than or equal to MTU. Also, on ATM lines, Quantum should be a multiple of (48 + 5) = 53. -# If MTU = 1500 , 1500 + 40 < 48 * 33 = 1584 , 33 * ( 48 + 5 ) = 1749. -LEAF_QDISC="sfq divisor 65536 headdrop quantum 1749" + +LEAF_QDISC="sfq divisor 65536 headdrop $QUANTUM" #LEAF_QDISC="fq_codel noecn" filter_prio=1 From 096f9e5e2a6dfa68a00eff4f20faa42f979705a3 Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Tue, 6 Aug 2019 05:12:28 +0900 Subject: [PATCH 20/22] Update supershaper.init --- supershaper.init | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/supershaper.init b/supershaper.init index f594114..7923196 100755 --- a/supershaper.init +++ b/supershaper.init @@ -73,7 +73,7 @@ UPLINK_BW=3422 # 3.4Mbps, measured 2017-08-31 # calculated bandwidth (see UPLINK below) you modem is probably still # queuing packets. This can only be set by trial an error, but 90% is # probably a good ballpark number. -UPLINK_PERCENT=98 +UPLINK_PERCENT=95 # Skype normally uses a random UDP/TCP port, but specify it manually to be # able to control it better @@ -111,15 +111,19 @@ FLOWS_FILENAME="/run/tc-flows.csv" # Stab setting # Configure a stab to calculate a more accurate queue size and avoid wasting bandwidth. # Adds overhead to the generated packet size to fit the bandwidth, eliminating computational dead space. The actual packet is not changed. + +# Calculate the overhead per IP packet. # PPPoE ADSL/VDSL over ATM # PPPoE overhead - 32+ (PPPoE - 8, ATM - 10, ethernet - 14) STAB="stab linklayer ethernet overhead 32" # PPPoA ADSL/VDSL over ATM # STAB="stab linklayer atm overhead 10" # PPPoA overhead - 10+ (PPP - 2, ATM - 8) -# Quantum must be greater than or equal to MTU. Also, on ATM lines, Quantum should be a multiple of (48 + 5) = 53. + +# Calculate the overhead per ATM cell. +# In ATM circuits, IP packets with overhead are divided into 48 byte cells at a lower layer, and fractions are padded automatically. +# Also, each cell consumes 5 bytes of overhead. # If the MTU is 1500 bytes, the minimum required bandwidth is 1696 bytes combined with overhead. -# # On an ATM line, all data must use multiples of 48 bytes of bandwidth, and each must account for 5 bytes of overhead. # 31 < (1500 + 32) / 48 < 32 , 32 * ( 48 + 5 ) = 1696. # If you are using any other line, refer to the following. http://linuxcommandlibrary.com/man/tc-stab.html QUANTUM="1696" From 2ab7fcc54c73b3689bf8babd2c8886306225ebbe Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Tue, 6 Aug 2019 05:28:03 +0900 Subject: [PATCH 21/22] Update supershaper.init --- supershaper.init | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/supershaper.init b/supershaper.init index 7923196..a94c414 100755 --- a/supershaper.init +++ b/supershaper.init @@ -114,19 +114,20 @@ FLOWS_FILENAME="/run/tc-flows.csv" # Calculate the overhead per IP packet. # PPPoE ADSL/VDSL over ATM -# PPPoE overhead - 32+ (PPPoE - 8, ATM - 10, ethernet - 14) +# PPPoE overhead = 32+ (PPPoE = 8, ATM = 10, ethernet = 14) STAB="stab linklayer ethernet overhead 32" # PPPoA ADSL/VDSL over ATM # STAB="stab linklayer atm overhead 10" -# PPPoA overhead - 10+ (PPP - 2, ATM - 8) +# PPPoA overhead = 10+ (PPP = 2, ATM = 8) # Calculate the overhead per ATM cell. # In ATM circuits, IP packets with overhead are divided into 48 byte cells at a lower layer, and fractions are padded automatically. # Also, each cell consumes 5 bytes of overhead. # If the MTU is 1500 bytes, the minimum required bandwidth is 1696 bytes combined with overhead. -# 31 < (1500 + 32) / 48 < 32 , 32 * ( 48 + 5 ) = 1696. -# If you are using any other line, refer to the following. http://linuxcommandlibrary.com/man/tc-stab.html +# 31 < (1500 + 32) / 48 < 32. 32 cells are needed to send 1 packet. +# 32 * ( 48 + 5 ) = 1696. 32 cells are 1696 bytes. QUANTUM="1696" +# If you are using any other line, refer to the following. http://linuxcommandlibrary.com/man/tc-stab.html ############################################################################## ######## Nothing to change below this line unless you're adventurous ######### From 9015c9b40186b5bc97138acc258456c8459be2be Mon Sep 17 00:00:00 2001 From: yutayu <44407536+yutayu@users.noreply.github.com> Date: Tue, 6 Aug 2019 05:29:50 +0900 Subject: [PATCH 22/22] Update supershaper.init --- supershaper.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supershaper.init b/supershaper.init index a94c414..fb8f146 100755 --- a/supershaper.init +++ b/supershaper.init @@ -123,7 +123,7 @@ STAB="stab linklayer ethernet overhead 32" # Calculate the overhead per ATM cell. # In ATM circuits, IP packets with overhead are divided into 48 byte cells at a lower layer, and fractions are padded automatically. # Also, each cell consumes 5 bytes of overhead. -# If the MTU is 1500 bytes, the minimum required bandwidth is 1696 bytes combined with overhead. +# If the MTU is 1500 bytes, # 31 < (1500 + 32) / 48 < 32. 32 cells are needed to send 1 packet. # 32 * ( 48 + 5 ) = 1696. 32 cells are 1696 bytes. QUANTUM="1696"