Merge branch 'vendor/OPENRESOLV' with the following changes:
[dragonfly.git] / share / examples / pf / queue4
1 # $OpenBSD: queue4,v 1.2 2003/08/22 21:50:34 david Exp $
2 # $DragonFly: src/share/examples/pf/queue4,v 1.1 2005/12/13 01:58:27 corecode 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
14 altq on dc0 bandwidth 16Mb hfsc queue { eng law art }
15 queue eng bandwidth 10Mb { cs ee ie }
16 queue  cs hfsc( default linkshare 50% ) 
17 queue  ee hfsc( linkshare 30% ) 
18 queue  ie hfsc( linkshare 20% )
19 queue law bandwidth 3Mb
20 queue art bandwidth 3Mb