From owner-freebsd-net Thu Apr 1 2: 0:16 1999 Delivered-To: freebsd-net@freebsd.org Received: from widefw.csl.sony.co.jp (widefw.csl.sony.co.jp [133.138.1.1]) by hub.freebsd.org (Postfix) with ESMTP id AB80014D7F for ; Thu, 1 Apr 1999 02:00:13 -0800 (PST) (envelope-from kjc@csl.sony.co.jp) Received: from hotaka.csl.sony.co.jp (root@hotaka.csl.sony.co.jp [43.27.98.57]) by widefw.csl.sony.co.jp (8.8.8/3.6W) with ESMTP id SAA25753; Thu, 1 Apr 1999 18:59:53 +0900 (JST) Received: from localhost (kjc@[127.0.0.1]) by hotaka.csl.sony.co.jp (8.8.8/3.6W/hotaka/98122515) with ESMTP id SAA25421; Thu, 1 Apr 1999 18:59:52 +0900 (JST) Message-Id: <199904010959.SAA25421@hotaka.csl.sony.co.jp> To: "Martin Dvorak" Cc: freebsd-net@FreeBSD.org Subject: Re: dynamic intelligent traffic shaping In-reply-to: Your message of "Thu, 01 Apr 1999 03:26:46 +0200." <000901be7bde$b5285cb0$5c1971c3@uvulium> Date: Thu, 01 Apr 1999 18:59:52 +0900 From: Kenjiro Cho Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Martin Dvorak said: >> I've carefully read all messages about shaping the traffic on FreeBSD system >> on this mailing list and have two questions: >> 1. What is the best solution (dummynet or altq or something else) in the >> following situation: FreeBSD system on Internet server (on T1), each >> customer has its own IP address(es), each customer's monthly traffic has to >> be kept at some level (probably by using some clever algorithm (in a script >> probably), which dynamically (I suppose every hour) changes the traffic >> limit on customer's IP address(es) to reach as close as possible to monthly >> limit set by administrator)? That means I need to change shaping speed for >> each IP address quite often but also need the system to be stable as much as >> possible. Monthly quota doesn't make sense to me. Are you saying that, if a customer uses up his quota on the first day, he is not allowed to use the network for the rest of the month even when there is no load on the net? You should think about the contract between a customer and the service provider. (it is called "service level specification" in the IETF diffserv workinggroup.) >> 2. What is the best solution (dummynet or altq or something else) in the >> following situation: large Internet intranet (I do not know how it is called >> officialy but I mean an intranet with only one link to Internet (512kb or >> more) but each computer on this intranet has its own worldwide >> (non-intranet) IP address and normal (non-limited) access to Internet) with >> thousands computers on this intranet, a bridge/router on the link between >> the intranet and Internet. This bridge/router works like this: every >> intranet packet routes in the intranet with no traffic shaping (of course), >> but as for packets comming to/from Internet it should shape the traffic of >> each IP to give every computer on the intranet the same speed to/from >> Internet. That is the algorithm for shaping the speed of each IP address has >> to be much more clever than in the first case, it has to be able to change >> to shaping speed much more frequently (I guess every 5 minutes or even >> fewer) while changing the speed of much more IP addresses. If not talking >> about the algorithm (I will describe my idea shortly on the end of this >> message), I don't even know if it is possible to do it on some acceptable >> hardware configuration because I guess that only the changing of speed on >> each IP address so frequently would put very high load on the system, or >> not? Sounds like WFQ rather than shaping. Note that, to control the incoming traffic, you have to have WFQ at the other end of the Internet link. --Kenjiro To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message