ssh
y telnet
) o a servicios que sólo trabajan con bloques de datos pequeños.
tc
(provisto por el paquete iproute). Se recomienda utilizar herramientas de más alto nivel ya que su interfaz es bastante compleja.
wondershaper
(en el paquete con nombre similar) es minimizar las latencias independientemente de la carga en la red. Consigue esto limitando el tráfico total a un valor que está justo por debajo del valor de saturación del enlace.
wondershaper interfaz tasa_descarga tasa_subida
. La interfaz puede ser, por ejemplo, enp1s0
, eth0
o ppp0
siendo dichas tasas en kilobits por segundo. Ejecutar wondershaper remove interfaz
desactiva el control de tráfico en la interfaz especificada.
up
and down
directives to the /etc/network/interfaces
file allowing declared commands to be run, respectively, after the interface is configured and before it is deconfigured. Or in the PPP case, creating a script that calls wondershaper
in /etc/ppp/ip-up.d/
will enable traffic control as soon as the connection is up. Below is an example using this first method:
pfifo_fast
queue scheduler, which provides a few interesting features by itself. The priority of each processed IP packet is based on the DSCP field (Differentiated Services Code Point) of this packet; modifying this 6-bit field is enough to take advantage of the scheduling features. Refer to https://en.wikipedia.org/wiki/Differentiated_services#Class_Selector for more information.
nft add table ip mangle nft add rule ip mangle PREROUTING tcp sport 22 counter ip dscp set 0x04 nft add rule ip mangle PREROUTING tcp dport 22 counter ip dscp set 0x04