LDP/LDP/howto/docbook/Traffic-Control-HOWTO/diagram.xml

99 lines
2.5 KiB
XML

<!-- start of file -->
<!-- This .xml file is part of the Traffic-Control-HOWTO document -->
<!--
The article was authored by Martin A. Brown <martin@linux-ip.net>
for the linux community, and has been released under the GNU Free
Documentation License (GFDL) through The Linux Documentation
Project (TLDP).
This HOWTO is likely available at the following address:
http://tldp.org/HOWTO/Traffic-Control-HOWTO/
-->
<!-- conventions used in this documentation....
- each section is a separate file
-->
<section id="diagram">
<title>Diagram</title>
<para>
</para>
<para>
</para>
<section id="d-general">
<title>General diagram</title>
<para>
Below is a general diagram of the relationships of the components of a
classful queuing discipline (&sch_htb; pictured). A larger version of
the diagram is
<ulink url="&diag-htb-class;">available</ulink>.
</para>
<para>
</para>
<example id="d-tcng-config">
<title>An example &sch_htb; &tcng; configuration</title>
<programlisting>
<![CDATA[/*
*
* possible mock up of diagram shown at
* http://linux-ip.net/traffic-control/htb-class.png
*
*/
$m_web = trTCM (
cir 512 kbps, /* commited information rate */
cbs 10 kB, /* burst for CIR */
pir 1024 kbps, /* peak information rate */
pbs 10 kB /* burst for PIR */
) ;
dev 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 = class ( rate 512kbps, ceil 512kbps ) { sfq ; } ;
$bulk = class ( rate 512kbps, ceil 1544kbps ) { sfq ; } ;
}
}
}
}]]>
</programlisting>
</example>
<mediaobject id="img-d-general">
<imageobject>
<imagedata fileref="images/htb-class.svg" format="SVG"/>
</imageobject>
<imageobject>
<imagedata fileref="images/htb-class.png" format="PNG"/>
</imageobject>
<imageobject>
<imagedata fileref="images/htb-class.jpg" format="JPG"/>
</imageobject>
</mediaobject>
<para>
</para>
</section>
</section>
<!-- end of file -->