xref: /freebsd/share/examples/pf/queue4 (revision 57718be8fa0bd5edc11ab9a72e68cc71982939a6)
1# $FreeBSD$
2# $OpenBSD: queue4,v 1.2 2003/08/22 21:50:34 david Exp $
3#
4# Hierarchical queueing for a university.
5# Three faculties; engineering, law and art are defined.
6# Departments under the engineering faculty are defined as child queues.
7# The total bandwidth for engineering faculty is shared between three
8# departments. CS department gets the half of the bandwidth, EE and IE
9# departments get the thirty percent and twenty percent of bandwidth
10# respectively. These sibling departments can use more than their linkshare
11# whenever there is no backlogged sibling queue but when a queue gets
12# backlogged, it is guaranteed that the queue gets its linkshare.
13
14altq on dc0 bandwidth 16Mb hfsc queue { eng law art }
15queue eng bandwidth 10Mb { cs ee ie }
16queue  cs hfsc( default linkshare 50% )
17queue  ee hfsc( linkshare 30% )
18queue  ie hfsc( linkshare 20% )
19queue law bandwidth 3Mb
20queue art bandwidth 3Mb
21