Home | History | Annotate | Line # | Download | only in altq.conf.samples
      1 #
      2 # sample diffedge configuration using HFSC
      3 #
      4 
      5 # input interface
      6 #
      7 interface pvc1
      8 #
      9 # EF conditioner
     10 #
     11 conditioner pvc1 ef_cdnr <tbmeter 6M 64K <mark 0xb8><drop>>
     12 	filter pvc1 ef_cdnr 0 0 172.16.4.174 0 0
     13 #
     14 # AF conditioners
     15 #
     16 conditioner pvc1 af1x_cdnr \
     17 	<trtcm 3M 32K 10M 64K <mark 0x28><mark 0x30><mark 0x38> colorblind>
     18 conditioner pvc1 af2x_cdnr \
     19 	<trtcm 3M 32K 10M 64K <mark 0x48><mark 0x50><mark 0x58> colorblind>
     20 conditioner pvc1 af3x_cdnr \
     21 	<trtcm 3M 32K 10M 64K <mark 0x68><mark 0x70><mark 0x78> colorblind>
     22 # tswtcm
     23 conditioner pvc1 af4x_cdnr \
     24 	<tswtcm 3M 10M 500 <mark 0x88><mark 0x90><mark 0x98>>
     25 
     26 	filter pvc1 af1x_cdnr 0 0 172.16.4.176 0 0
     27 	filter pvc1 af2x_cdnr 0 0 172.16.4.177 0 0
     28 	filter pvc1 af3x_cdnr 0 0 172.16.4.178 0 0
     29 	filter pvc1 af4x_cdnr 0 0 172.16.4.179 0 0
     30 
     31 #
     32 # output interface
     33 #
     34 interface pvc0 bandwidth 45M hfsc
     35 class hfsc pvc0 def_class root pshare 10 default 
     36 #
     37 # EF class
     38 #	real-time: 6Mbps
     39 #	link-sharing: 0%
     40 #
     41 class hfsc pvc0 ef_class root grate 6M
     42 	filter pvc0 ef_class 0 0 0 0 0 tos 0xb8 tosmask 0xfc
     43 #
     44 # AF classes
     45 #	real-time: 3Mbps
     46 #	link-sharing: 10% (4.5Mbps)
     47 #
     48 # rio threshold values
     49 rio 40 50 10 20 30 10 5 15 10
     50 #
     51 class hfsc pvc0 af1x_class root grate 3M pshare 10 rio
     52 class hfsc pvc0 af2x_class root grate 3M pshare 10 rio
     53 class hfsc pvc0 af3x_class root grate 3M pshare 10 rio cleardscp
     54 class hfsc pvc0 af4x_class root grate 3M pshare 10 rio
     55 
     56 	filter pvc0 af1x_class 0 0 0 0 0 tos 0x20 tosmask 0xe4
     57 	filter pvc0 af2x_class 0 0 0 0 0 tos 0x40 tosmask 0xe4
     58 	filter pvc0 af3x_class 0 0 0 0 0 tos 0x60 tosmask 0xe4
     59 	filter pvc0 af4x_class 0 0 0 0 0 tos 0x80 tosmask 0xe4
     60