ssh 与 telnet) 或只服务小量数据的封包优先处理。
tc 命令 (由 iproute 软件包提供) 设置 QoS 参数。因为其接口较为复杂,建议使用高端的工具。
wondershaper (在同名的软件包中) 的主要目的是最小化独立网络负载的延迟。经由限制整体流量的值缩短链接的饱和值。
wondershaper interface download_rate upload_rate命令,设置流量控制。可以是 eth0 或 ppp0 接口,两者的速度均以每秒千位为单位。wondershaper remove interface 命令可以在特定接口停用流量控制。
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. For example:
例 10.9. Changes in the /etc/network/interfaces file
iface eth0 inet dhcp
up /sbin/wondershaper eth0 500 100
down /sbin/wondershaper remove eth0
wondershaper in /etc/ppp/ip-up.d/ will enable traffic control as soon as the connection is up.
pfifo_fast queue scheduler, which provides a few interesting features by itself. The priority of each processed IP packet is based on the ToS field (Type of Service) of this packet; modifying this field is enough to take advantage of the scheduling features. There are five possible values:
iptables -t mangle -A PREROUTING -p tcp --sport ssh -j TOS --set-tos Minimize-Delay iptables -t mangle -A PREROUTING -p tcp --dport ssh -j TOS --set-tos Minimize-Delay