fff-gateway: Add tc and bmon

Submitted by Fabian Blaese on Aug. 2, 2020, 5:54 p.m.

Details

Message ID 20200802175502.451663-1-fabian@blaese.de
State Superseded
Headers show

Commit Message

Fabian Blaese Aug. 2, 2020, 5:54 p.m.
Users might want to manually set up proper scheduling or qos using tc.
bmon can be used to monitor current throughput and packet rates.

Both are now included in layer3 variant.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
---
 buildscript                           | 2 +-
 src/packages/fff/fff-gateway/Makefile | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/buildscript b/buildscript
index 46bf314..3656761 100755
--- a/buildscript
+++ b/buildscript
@@ -24,7 +24,7 @@  PACKAGEURL="https://git.openwrt.org/feed/packages.git"
 OPENWRT=(openwrt
          $PACKAGEURL
          $PACKAGEREV)
-OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl micrond mtr"
+OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl micrond mtr bmon"
 
 ## Be careful: FFF uses COMPAT_VERSION 15 as default at the moment.
 ## See http://www.open-mesh.org/projects/batman-adv/wiki/Compatversion
diff --git a/src/packages/fff/fff-gateway/Makefile b/src/packages/fff/fff-gateway/Makefile
index 528a795..443a230 100644
--- a/src/packages/fff/fff-gateway/Makefile
+++ b/src/packages/fff/fff-gateway/Makefile
@@ -20,6 +20,7 @@  define Package/fff-gateway
 	         +fff-ra \
 	         +fff-wireguard \
 	         +arptables \
+	         +bmon \
 	         +ebtables \
 	         +ebtables-utils \
 	         +kmod-ebtables-ipv4 \
@@ -33,6 +34,7 @@  define Package/fff-gateway
 	         +iptables-mod-ipopt \
 	         +iptables-mod-conntrack-extra \
 	         +mtr \
+	         +tc
 	         +tcpdump \
 	         +vxlan
 endef

Comments

Christian Dresel Aug. 2, 2020, 6:24 p.m.
Reviewed-by: Christian Dresel <fff@chrisi01.de>

On 02.08.20 19:54, Fabian Bläse wrote:
> Users might want to manually set up proper scheduling or qos using tc.
> bmon can be used to monitor current throughput and packet rates.
> 
> Both are now included in layer3 variant.
> 
> Signed-off-by: Fabian Bläse <fabian@blaese.de>
> ---
>  buildscript                           | 2 +-
>  src/packages/fff/fff-gateway/Makefile | 2 ++
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/buildscript b/buildscript
> index 46bf314..3656761 100755
> --- a/buildscript
> +++ b/buildscript
> @@ -24,7 +24,7 @@ PACKAGEURL="https://git.openwrt.org/feed/packages.git"
>  OPENWRT=(openwrt
>           $PACKAGEURL
>           $PACKAGEREV)
> -OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl micrond mtr"
> +OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl micrond mtr bmon"
>  
>  ## Be careful: FFF uses COMPAT_VERSION 15 as default at the moment.
>  ## See http://www.open-mesh.org/projects/batman-adv/wiki/Compatversion
> diff --git a/src/packages/fff/fff-gateway/Makefile b/src/packages/fff/fff-gateway/Makefile
> index 528a795..443a230 100644
> --- a/src/packages/fff/fff-gateway/Makefile
> +++ b/src/packages/fff/fff-gateway/Makefile
> @@ -20,6 +20,7 @@ define Package/fff-gateway
>  	         +fff-ra \
>  	         +fff-wireguard \
>  	         +arptables \
> +	         +bmon \
>  	         +ebtables \
>  	         +ebtables-utils \
>  	         +kmod-ebtables-ipv4 \
> @@ -33,6 +34,7 @@ define Package/fff-gateway
>  	         +iptables-mod-ipopt \
>  	         +iptables-mod-conntrack-extra \
>  	         +mtr \
> +	         +tc
>  	         +tcpdump \
>  	         +vxlan
>  endef
>
SebaBe Aug. 3, 2020, 8:59 a.m.
Zum Verständnis, warum qos auf dem l3?
Das könnte ich als Aufsteller doch auf meinem  nicht-fff Router machen.
Habt ihr da schon was in der pipeline als use-case? 

Am 2. August 2020 19:54:58 MESZ schrieb "Fabian Bläse" <fabian@blaese.de>:
>Users might want to manually set up proper scheduling or qos using tc.
>bmon can be used to monitor current throughput and packet rates.
>
>Both are now included in layer3 variant.
>
>Signed-off-by: Fabian Bläse <fabian@blaese.de>
>---
> buildscript                           | 2 +-
> src/packages/fff/fff-gateway/Makefile | 2 ++
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
>diff --git a/buildscript b/buildscript
>index 46bf314..3656761 100755
>--- a/buildscript
>+++ b/buildscript
>@@ -24,7 +24,7 @@
>PACKAGEURL="https://git.openwrt.org/feed/packages.git"
> OPENWRT=(openwrt
>          $PACKAGEURL
>          $PACKAGEREV)
>-OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl micrond mtr"
>+OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl micrond mtr bmon"
> 
> ## Be careful: FFF uses COMPAT_VERSION 15 as default at the moment.
> ## See http://www.open-mesh.org/projects/batman-adv/wiki/Compatversion
>diff --git a/src/packages/fff/fff-gateway/Makefile
>b/src/packages/fff/fff-gateway/Makefile
>index 528a795..443a230 100644
>--- a/src/packages/fff/fff-gateway/Makefile
>+++ b/src/packages/fff/fff-gateway/Makefile
>@@ -20,6 +20,7 @@ define Package/fff-gateway
> 	         +fff-ra \
> 	         +fff-wireguard \
> 	         +arptables \
>+	         +bmon \
> 	         +ebtables \
> 	         +ebtables-utils \
> 	         +kmod-ebtables-ipv4 \
>@@ -33,6 +34,7 @@ define Package/fff-gateway
> 	         +iptables-mod-ipopt \
> 	         +iptables-mod-conntrack-extra \
> 	         +mtr \
>+	         +tc
> 	         +tcpdump \
> 	         +vxlan
> endef
>-- 
>2.28.0
Fabian Blaese Aug. 3, 2020, 9:03 a.m.
Hallo Sebabe,

das einzige was du mit QoS auf deinem Router, durch den der Tunnel geht, machen kannst, ist den kompletten Tunnel verschieden zu behandeln.
Es kann aber von Interesse sein, bestimmte Dinge innerhalb des Tunnels (z.B. babel messages) anders zu behandeln. Weiterhin ist es immer am besten, wenn das Shaping auch dort passiert, wo das Queueing stattfindet. So lässt sich besser kontrollieren, was wie durch die Leitung geht.

Konkreter Anwendungsfall: Ein Layer3 Router, bei dem das Netz aus noch ungeklärten Gründen (vermutlich schlechtes Queueing) total Mist wird, wenn der Uplink voll wird.
Lösung: Auf dem layer3 Router den Uplink auf ~80% der Leitungskapazität shapen und dann ordentliches Queueing machen.

Ich habe aktuell aber noch nichts geplant, was das ganze irgendwie "zugänglich" macht.
Aber damit man Dinge manuell machen kann, braucht man dieses Tool. :-)

Gruß
Fabian

On 03.08.20 10:59, SebaBe wrote:
> Zum Verständnis, warum qos auf dem l3?
> Das könnte ich als Aufsteller doch auf meinem nicht-fff Router machen.
> Habt ihr da schon was in der pipeline als use-case?
SebaBe Aug. 3, 2020, 10:32 a.m.
Verstehe, danke dir. 

Am 3. August 2020 11:03:30 MESZ schrieb "Fabian Bläse" <fabian@blaese.de>:
>Hallo Sebabe,
>
>das einzige was du mit QoS auf deinem Router, durch den der Tunnel
>geht, machen kannst, ist den kompletten Tunnel verschieden zu
>behandeln.
>Es kann aber von Interesse sein, bestimmte Dinge innerhalb des Tunnels
>(z.B. babel messages) anders zu behandeln. Weiterhin ist es immer am
>besten, wenn das Shaping auch dort passiert, wo das Queueing
>stattfindet. So lässt sich besser kontrollieren, was wie durch die
>Leitung geht.
>
>Konkreter Anwendungsfall: Ein Layer3 Router, bei dem das Netz aus noch
>ungeklärten Gründen (vermutlich schlechtes Queueing) total Mist wird,
>wenn der Uplink voll wird.
>Lösung: Auf dem layer3 Router den Uplink auf ~80% der Leitungskapazität
>shapen und dann ordentliches Queueing machen.
>
>Ich habe aktuell aber noch nichts geplant, was das ganze irgendwie
>"zugänglich" macht.
>Aber damit man Dinge manuell machen kann, braucht man dieses Tool. :-)
>
>Gruß
>Fabian
>
>On 03.08.20 10:59, SebaBe wrote:
>> Zum Verständnis, warum qos auf dem l3?
>> Das könnte ich als Aufsteller doch auf meinem nicht-fff Router
>machen.
>> Habt ihr da schon was in der pipeline als use-case?
Adrian Schmutzler Sept. 15, 2020, 10:56 a.m.
Merged.

> -----Original Message-----
> From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf
> Of Fabian Bläse
> Sent: Sonntag, 2. August 2020 19:55
> To: franken-dev@freifunk.net
> Subject: [PATCH] fff-gateway: Add tc and bmon
> 
> Users might want to manually set up proper scheduling or qos using tc.
> bmon can be used to monitor current throughput and packet rates.
> 
> Both are now included in layer3 variant.
> 
> Signed-off-by: Fabian Bläse <fabian@blaese.de>
> ---
>  buildscript                           | 2 +-
>  src/packages/fff/fff-gateway/Makefile | 2 ++
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/buildscript b/buildscript
> index 46bf314..3656761 100755
> --- a/buildscript
> +++ b/buildscript
> @@ -24,7 +24,7 @@
> PACKAGEURL="https://git.openwrt.org/feed/packages.git"
>  OPENWRT=(openwrt
>           $PACKAGEURL
>           $PACKAGEREV)
> -OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl micrond mtr"
> +OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl micrond mtr bmon"
> 
>  ## Be careful: FFF uses COMPAT_VERSION 15 as default at the moment.
>  ## See http://www.open-mesh.org/projects/batman-
> adv/wiki/Compatversion
> diff --git a/src/packages/fff/fff-gateway/Makefile b/src/packages/fff/fff-
> gateway/Makefile
> index 528a795..443a230 100644
> --- a/src/packages/fff/fff-gateway/Makefile
> +++ b/src/packages/fff/fff-gateway/Makefile
> @@ -20,6 +20,7 @@ define Package/fff-gateway
>  	         +fff-ra \
>  	         +fff-wireguard \
>  	         +arptables \
> +	         +bmon \
>  	         +ebtables \
>  	         +ebtables-utils \
>  	         +kmod-ebtables-ipv4 \
> @@ -33,6 +34,7 @@ define Package/fff-gateway
>  	         +iptables-mod-ipopt \
>  	         +iptables-mod-conntrack-extra \
>  	         +mtr \
> +	         +tc
>  	         +tcpdump \
>  	         +vxlan
>  endef
> --
> 2.28.0