186d7f5d3SJohn Marino.\" 286d7f5d3SJohn Marino.\" Copyright (c) 2004 Max Laier <mlaier@FreeBSD.org> 386d7f5d3SJohn Marino.\" All rights reserved. 486d7f5d3SJohn Marino.\" 586d7f5d3SJohn Marino.\" Redistribution and use in source and binary forms, with or without 686d7f5d3SJohn Marino.\" modification, are permitted provided that the following conditions 786d7f5d3SJohn Marino.\" are met: 886d7f5d3SJohn Marino.\" 1. Redistributions of source code must retain the above copyright 986d7f5d3SJohn Marino.\" notice, this list of conditions and the following disclaimer. 1086d7f5d3SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright 1186d7f5d3SJohn Marino.\" notice, this list of conditions and the following disclaimer in the 1286d7f5d3SJohn Marino.\" documentation and/or other materials provided with the distribution. 1386d7f5d3SJohn Marino.\" 1486d7f5d3SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1586d7f5d3SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1686d7f5d3SJohn Marino.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1786d7f5d3SJohn Marino.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1886d7f5d3SJohn Marino.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1986d7f5d3SJohn Marino.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2086d7f5d3SJohn Marino.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2186d7f5d3SJohn Marino.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2286d7f5d3SJohn Marino.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2386d7f5d3SJohn Marino.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2486d7f5d3SJohn Marino.\" SUCH DAMAGE. 2586d7f5d3SJohn Marino.\" 2686d7f5d3SJohn Marino.\" $FreeBSD: src/share/man/man4/altq.4,v 1.16 2006/03/02 19:45:59 thompsa Exp $ 2786d7f5d3SJohn Marino.\" $DragonFly: src/share/man/man4/altq.4,v 1.5 2008/04/06 19:29:47 swildner Exp $ 2886d7f5d3SJohn Marino.\" 2986d7f5d3SJohn Marino.Dd April 6, 2008 3086d7f5d3SJohn Marino.Dt ALTQ 4 3186d7f5d3SJohn Marino.Os 3286d7f5d3SJohn Marino.Sh NAME 3386d7f5d3SJohn Marino.Nm ALTQ 3486d7f5d3SJohn Marino.Nd "alternate queuing of network packets" 3586d7f5d3SJohn Marino.Sh SYNOPSIS 3686d7f5d3SJohn Marino.Cd options ALTQ 3786d7f5d3SJohn Marino.Pp 3886d7f5d3SJohn Marino.Cd options ALTQ_CBQ 3986d7f5d3SJohn Marino.Cd options ALTQ_RED 4086d7f5d3SJohn Marino.Cd options ALTQ_RIO 4186d7f5d3SJohn Marino.Cd options ALTQ_HFSC 4286d7f5d3SJohn Marino.\".Cd options ALTQ_CDNR 4386d7f5d3SJohn Marino.Cd options ALTQ_PRIQ 4486d7f5d3SJohn Marino.Cd options ALTQ_FAIRQ 4586d7f5d3SJohn Marino.Cd options ALTQ_NOPCC 4686d7f5d3SJohn Marino.Cd options ALTQ_DEBUG 4786d7f5d3SJohn Marino.Sh DESCRIPTION 4886d7f5d3SJohn MarinoThe 4986d7f5d3SJohn Marino.Nm 5086d7f5d3SJohn Marinoframework provides several disciplines for queuing outgoing network packets. 5186d7f5d3SJohn MarinoThis is done by modifications to the interface packet queues. 5286d7f5d3SJohn MarinoSee 5386d7f5d3SJohn Marino.Xr altq 9 5486d7f5d3SJohn Marinofor details. 5586d7f5d3SJohn Marino.Pp 5686d7f5d3SJohn MarinoThe user interface for 5786d7f5d3SJohn Marino.Nm 5886d7f5d3SJohn Marinois implemented by the 5986d7f5d3SJohn Marino.Xr pfctl 8 6086d7f5d3SJohn Marinoutility, so please refer to the 6186d7f5d3SJohn Marino.Xr pfctl 8 6286d7f5d3SJohn Marinoand the 6386d7f5d3SJohn Marino.Xr pf.conf 5 6486d7f5d3SJohn Marinomanpages for a complete description of the 6586d7f5d3SJohn Marino.Nm 6686d7f5d3SJohn Marinocapabilities and how to use it. 6786d7f5d3SJohn Marino.Ss Kernel Options 6886d7f5d3SJohn MarinoThe following options in the kernel configuration file are related to 6986d7f5d3SJohn Marino.Nm 7086d7f5d3SJohn Marinooperation: 7186d7f5d3SJohn Marino.Pp 7286d7f5d3SJohn Marino.Bl -tag -width ".Dv ALTQ_DEBUG" -compact 7386d7f5d3SJohn Marino.It Dv ALTQ 7486d7f5d3SJohn MarinoEnable 7586d7f5d3SJohn Marino.Nm . 7686d7f5d3SJohn Marino.It Dv ALTQ_CBQ 7786d7f5d3SJohn MarinoBuild the 7886d7f5d3SJohn Marino.Dq "Class Based Queuing" 7986d7f5d3SJohn Marinodiscipline. 8086d7f5d3SJohn Marino.It Dv ALTQ_RED 8186d7f5d3SJohn MarinoBuild the 8286d7f5d3SJohn Marino.Dq "Random Early Detection" 8386d7f5d3SJohn Marinoextension. 8486d7f5d3SJohn Marino.It Dv ALTQ_RIO 8586d7f5d3SJohn MarinoBuild 8686d7f5d3SJohn Marino.Dq "Random Early Drop" 8786d7f5d3SJohn Marinofor input and output. 8886d7f5d3SJohn Marino.It Dv ALTQ_HFSC 8986d7f5d3SJohn MarinoBuild the 9086d7f5d3SJohn Marino.Dq "Hierarchical Packet Scheduler" 9186d7f5d3SJohn Marinodiscipline. 9286d7f5d3SJohn Marino.\".It Dv ALTQ_CDNR 9386d7f5d3SJohn Marino.\"Build the traffic conditioner. 9486d7f5d3SJohn Marino.\"This option is meaningless at the moment as the conditioner is not used by 9586d7f5d3SJohn Marino.\"any of the available disciplines or consumers. 9686d7f5d3SJohn Marino.It Dv ALTQ_PRIQ 9786d7f5d3SJohn MarinoBuild the 9886d7f5d3SJohn Marino.Dq "Priority Queuing" 9986d7f5d3SJohn Marinodiscipline. 10086d7f5d3SJohn Marino.It Dv ALTQ_FAIRQ 10186d7f5d3SJohn MarinoBuild the 10286d7f5d3SJohn Marino.Dq "Fair Queuing" 10386d7f5d3SJohn Marinodiscipline. 10486d7f5d3SJohn Marino.It Dv ALTQ_NOPCC 10586d7f5d3SJohn MarinoRequired if the TSC is unusable. 10686d7f5d3SJohn Marino.It Dv ALTQ_DEBUG 10786d7f5d3SJohn MarinoEnable additional debugging facilities. 10886d7f5d3SJohn Marino.El 10986d7f5d3SJohn Marino.Pp 11086d7f5d3SJohn MarinoNote that 11186d7f5d3SJohn Marino.Nm Ns -disciplines 11286d7f5d3SJohn Marinocannot be loaded as kernel modules. 11386d7f5d3SJohn MarinoIn order to use a certain discipline you have to build it into a custom 11486d7f5d3SJohn Marinokernel. 11586d7f5d3SJohn MarinoThe 11686d7f5d3SJohn Marino.Xr pf 4 11786d7f5d3SJohn Marinointerface, that is required for the configuration process of 11886d7f5d3SJohn Marino.Nm 11986d7f5d3SJohn Marinocan be loaded as a module. 12086d7f5d3SJohn Marino.Sh SEE ALSO 12186d7f5d3SJohn Marino.Xr pf 4 , 12286d7f5d3SJohn Marino.Xr pf.conf 5 , 12386d7f5d3SJohn Marino.Xr ipfw 8 , 12486d7f5d3SJohn Marino.Xr pfctl 8 , 12586d7f5d3SJohn Marino.Xr altq 9 126