2 # a simple test config for loopback
6 # interface bandwidth 300Mbps is arbitrary (it doesn't matter as long as
7 # it is bigger than the total guaranteed bandwidth)
9 interface lo0 bandwidth 300M hfsc
11 # 50% of the excess bandwidth goes to the default class
13 class hfsc lo0 def_class root pshare 50 default
15 # TCP 10Mbps guaranteed rate (no excess bandwidth assigned)
17 class hfsc lo0 tcp_class root grate 10M
18 filter lo0 tcp_class 0 0 0 0 6
20 # UDP 5Mbps guaranteed rate (no excess bandwidth assigned)
22 class hfsc lo0 udp_class root grate 5M
23 filter lo0 udp_class 0 0 0 0 17