On Fri, Apr 16, 2004 at 11:21:10PM +0200, Miroslav Kubik wrote: > > I would like to have new option in traffic shaping. I feel like restrict > connection speed according to connection persistence. > It could be very > useful because I would set for the first few seconds higher speed. So the > traffic shaping will caused only people who are used to downloading a big > amount of data. What do you think?
'hfsc' can do this. in pf.conf manpage, read part for HFSC's '<sc>' if you want a connection to have high bandwidth for first 2 seconds, then lower bandwidth after, you can use: hfsc( realtime( 20% 2000 5% ) upperlimit 100% ) % is relative to the bandwidth allocated to that queue in the hierarchy. upperlimit is an absolute maximum for the queue, even if no other queue is busy. linkshare is the proportion the queue can receive when there is bandwidth left over after all queues have received their realtime amount. realtime is the amount you want to guarantee to the queue no matter what. *please*, someone chime in and correct me if my "definitions" of upperlimit/ linkshare/realtime are not correct. ( or if anything else i say is wrong, i don't think i am wrong, but i do not insist i am right ) jared -- [ openbsd 3.5 GENERIC ( mar 26 ) // i386 ]
