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