From owner-freebsd-questions Sun Mar 16 12:39: 7 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7D9337B401 for ; Sun, 16 Mar 2003 12:39:05 -0800 (PST) Received: from vms4.rit.edu (vms4.isc.rit.edu [129.21.3.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id D699943FBF for ; Sun, 16 Mar 2003 12:38:55 -0800 (PST) (envelope-from bjm1287@ritvax.isc.rit.edu) Received: from garfield ([129.21.129.47]) by ritvax.isc.rit.edu (PMDF V5.2-32 #30660) with ESMTPA id <01KTLIN59N8EV91JCL@ritvax.isc.rit.edu> for questions@freebsd.org; Sun, 16 Mar 2003 15:38:51 EST Date: Sun, 16 Mar 2003 15:40:48 -0500 From: Brian McCann Subject: RE: Intelligent Bandwidth Limiter? In-reply-to: <037801c2ebeb$38b7d990$0401a8c0@duronica> To: 'Tino Didriksen' , questions@freebsd.org Message-id: <000301c2ebfc$53c09090$2f811581@garfield> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Mailer: Microsoft Outlook, Build 10.0.2616 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I may be off, but look into dummynet. One of my friends told me that he is playing with it to do something similar. However, the bandwidth limit would probably be constant unless you wrote some fairly creative scripts :) . Hope I helped, --Brian -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Tino Didriksen Sent: Sunday, March 16, 2003 1:38 PM To: questions@freebsd.org Subject: Intelligent Bandwidth Limiter? (trying this again, since it didn't appear last time I sent it...) I have a dedicated server with 500GB monthly transfer limit, and I don't want to cross that limit. So, I want to impose an artificial maximum bandwidth, yet not until a certain threshold has been reached. Example: I have 500GB total max monthly transfer. I want a 400GB threshold before the limiter kicks in, which will impose a byte/second limit for the remaining 100GB, so that it never goes over 500GB for the month. But, from when the limiter has started till the end of the month, it should recalculate remaining GB every half hour and adjust the byte/second limit accordingly, since peak/idle hours are so varied. Reasoning: I don't want a simple flat byte/second limit for the whole 500GB/month, since that would be 202 kilobyte/second ((500*1024*1024*1024) / (60*60*24*30)), but peak and idle varies more than that. Realisticly, I doubt I'll even pass 100GB/month, but better safe than sorry... Anyways, this should be on an interface level (as in running on the same computer), not an external proxy. -- Tino Didriksen / Project JJ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message