10.1. General diagram
Below is a general diagram of the relationships of the components of a classful queuing discipline (HTB pictured). A larger version of the diagram is available.
Example 11. An example HTB tcng Configuration
/* * Possible mock up of diagram shown at * http://linux-ip.net/traffic-control/htb-class.png * */$m _web = TRTCM ( CIR Kbps,/* commited information rate */CBS Ten KB,/* Burst for CIR */ PIR 1024x768,/* Peak Information Rate */PBS KB/* Burst for PIR */);d E V eth0 {egress {class (< $web >) if Tcp_dport = = Port_http && __trtcm_green ($m _web); Class (< $bulk >) if Tcp_dport = = Port_http && __trtcm_yellow ($m _web); Drop if __trtcm_red ($m _web); Class (< $bulk >) if tcp_dport = = Port_ssh; HTB () {/* Root Qdisc */class (Rate 1544kbps, ceil 1544kbps) {/* Root class */$web = CL (Rate 512kbps, Ceil 512kbps) {sfq;}; $bulk = Class (Rate 512kbps, Ceil 1544kbps) {sfq;}; } } }} |
http://tldp.org/HOWTO/Traffic-Control-HOWTO/
Trafic control large block Diagram (HTB)