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