From owner-freebsd-ipfw@FreeBSD.ORG Sat Sep 6 13:05:48 2003 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77FF616A4BF for ; Sat, 6 Sep 2003 13:05:48 -0700 (PDT) Received: from spf13.us4.outblaze.com (205-158-62-67.outblaze.com [205.158.62.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25FE043FBD for ; Sat, 6 Sep 2003 13:05:45 -0700 (PDT) (envelope-from ivo@bsdmail.org) Received: from 205-158-62-68.outblaze.com (205-158-62-68.outblaze.com [205.158.62.68]) by spf13.us4.outblaze.com (Postfix) with QMQP id BB81D1801347 for ; Sat, 6 Sep 2003 20:05:44 +0000 (GMT) Received: (qmail 20789 invoked from network); 6 Sep 2003 20:05:42 -0000 Received: from unknown (HELO ws5-6.us4.outblaze.com) (205.158.62.148) by 205-158-62-153.outblaze.com with SMTP; 6 Sep 2003 20:05:42 -0000 Received: (qmail 10412 invoked by uid 1001); 6 Sep 2003 20:06:59 -0000 Message-ID: <20030906200659.10411.qmail@bsdmail.com> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [193.68.7.67] by ws5-6.us4.outblaze.com with http for ivo@bsdmail.org; Sat, 06 Sep 2003 22:06:58 +0200 From: "Ivo Vachkov" To: freebsd-ipfw@freebsd.org Date: Sat, 06 Sep 2003 22:06:58 +0200 X-Originating-Ip: 193.68.7.67 X-Originating-Server: ws5-6.us4.outblaze.com Subject: Re: Burst X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2003 20:05:48 -0000 Obviously I've understood terms wrong. When I said "burst" I was thinking of limitting the speed of active connection when some conditions apply. Example: ISP has 10Mbps connection to internet and every user/client has 1Mbps pipe to Internet. So every user has fast browsing, mail, news, ICQ/AIM/etc. But when a user tries to download a big file (.ISO/.AVI/.MPG) the connection, even active, is limitted to 64kbps whithout limitting other connections. So his download keeps running at low speed, while browsing/mail/etc is still fast. The software applies limits when some numbers of bytes passed throught the connection. NB!!! Other connections are NOT shaped until they reach the predefined condition. They became shaped only after that. My "workaround" is as follows: ipfw add divert 8670 ip from any to $CLIENT_IP + a daemon called *burstd* which binds to diverted port 8670, conunts the bytes for every connection to that IP and apply the limits when predefinied byte count is exceeded. It's far away from perfect, although quite accurate, so I was asking for another way to implement a solution to this situation. Ivo Vachkov -- _______________________________________________ Get your free email from http://mymail.bsdmail.com Powered by Outblaze