xref: /netbsd-src/usr.sbin/altq/altqd/altq.conf.samples/cbq.diffedge (revision 09dce659bfa03fc946412c98c9bb32bf3fc01013)
1*09dce659Sthorpej#
2*09dce659Sthorpej# sample diffedge configuration using CBQ
3*09dce659Sthorpej#
4*09dce659Sthorpej
5*09dce659Sthorpej#
6*09dce659Sthorpej# input interface
7*09dce659Sthorpej#
8*09dce659Sthorpejinterface pvc1
9*09dce659Sthorpej#
10*09dce659Sthorpej# EF conditioner
11*09dce659Sthorpej#
12*09dce659Sthorpejconditioner pvc1 ef_cdnr <tbmeter 6M 64K <mark 0xb8><drop>>
13*09dce659Sthorpej	filter pvc1 ef_cdnr 0 0 172.16.4.174 0 0
14*09dce659Sthorpej#
15*09dce659Sthorpej# AF conditioners
16*09dce659Sthorpej#
17*09dce659Sthorpejconditioner pvc1 af1x_cdnr \
18*09dce659Sthorpej	<trtcm 3M 32K 10M 64K <mark 0x28><mark 0x30><mark 0x38> colorblind>
19*09dce659Sthorpejconditioner pvc1 af2x_cdnr \
20*09dce659Sthorpej	<trtcm 3M 32K 10M 64K <mark 0x48><mark 0x50><mark 0x58> colorblind>
21*09dce659Sthorpejconditioner pvc1 af3x_cdnr \
22*09dce659Sthorpej	<trtcm 3M 32K 10M 64K <mark 0x68><mark 0x70><mark 0x78> colorblind>
23*09dce659Sthorpej# tswtcm
24*09dce659Sthorpejconditioner pvc1 af4x_cdnr \
25*09dce659Sthorpej	<tswtcm 3M 10M 500 <mark 0x88><mark 0x90><mark 0x98>>
26*09dce659Sthorpej
27*09dce659Sthorpej	filter pvc1 af1x_cdnr 0 0 172.16.4.176 0 0
28*09dce659Sthorpej	filter pvc1 af2x_cdnr 0 0 172.16.4.177 0 0
29*09dce659Sthorpej	filter pvc1 af3x_cdnr 0 0 172.16.4.178 0 0
30*09dce659Sthorpej	filter pvc1 af4x_cdnr 0 0 172.16.4.179 0 0
31*09dce659Sthorpej
32*09dce659Sthorpej#
33*09dce659Sthorpej# output interface
34*09dce659Sthorpej#
35*09dce659Sthorpejinterface pvc0 bandwidth 45M cbq
36*09dce659Sthorpejclass cbq pvc0 root_class NULL pbandwidth 100
37*09dce659Sthorpejclass cbq pvc0 def_class root_class borrow pbandwidth 86 default
38*09dce659Sthorpej#
39*09dce659Sthorpej# EF class
40*09dce659Sthorpej#
41*09dce659Sthorpejclass cbq pvc0 ef_class root_class pbandwidth 14 priority 5
42*09dce659Sthorpej	filter pvc0 ef_class 0 0 0 0 0 tos 0xb8 tosmask 0xfc
43*09dce659Sthorpej#
44*09dce659Sthorpej# AF classes
45*09dce659Sthorpej#
46*09dce659Sthorpej# rio threshold values
47*09dce659Sthorpejrio 40 50 10 20 30 10 5 15 10
48*09dce659Sthorpej#
49*09dce659Sthorpejclass cbq pvc0 af1x_class def_class borrow pbandwidth 20 rio
50*09dce659Sthorpejclass cbq pvc0 af2x_class def_class borrow pbandwidth 20 rio
51*09dce659Sthorpejclass cbq pvc0 af3x_class def_class borrow pbandwidth 20 rio cleardscp
52*09dce659Sthorpejclass cbq pvc0 af4x_class def_class borrow pbandwidth 20 rio
53*09dce659Sthorpej
54*09dce659Sthorpej	filter pvc0 af1x_class 0 0 0 0 0 tos 0x20 tosmask 0xe4
55*09dce659Sthorpej	filter pvc0 af2x_class 0 0 0 0 0 tos 0x40 tosmask 0xe4
56*09dce659Sthorpej	filter pvc0 af3x_class 0 0 0 0 0 tos 0x60 tosmask 0xe4
57*09dce659Sthorpej	filter pvc0 af4x_class 0 0 0 0 0 tos 0x80 tosmask 0xe4
58