From owner-freebsd-net Sun Sep 27 10:53:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA21206 for freebsd-net-outgoing; Sun, 27 Sep 1998 10:53:21 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA21194 for ; Sun, 27 Sep 1998 10:53:16 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.1/8.9.1) id NAA04318; Sun, 27 Sep 1998 13:52:46 -0400 (EDT) (envelope-from wollman) Date: Sun, 27 Sep 1998 13:52:46 -0400 (EDT) From: Garrett Wollman Message-Id: <199809271752.NAA04318@khavrinen.lcs.mit.edu> To: "Allen Smith" Cc: ark@eltex.ru, luigi@labinfo.iet.unipi.it, kev@lab321.ru, mike@smith.net.au, net@FreeBSD.ORG Subject: Re: Packet/traffic shapper ? In-Reply-To: <9809260207.ZM14494@beatrice.rutgers.edu> References: <199809210951.NAA32644@paranoid.eltex.spb.ru> <9809260207.ZM14494@beatrice.rutgers.edu> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > Not to get back into the debate regarding ALTQ's "ugliness", the > primary thing I was looking at ALTQ for was the RED (Random Early > Detection) capability of ALTQ, so that I can get the lower-priority > TCP streams to drop back their bandwidth when they're getting too > much. I once did a RED implementation for FreeBSD, mostly aping the sample code in the original RED paper. It's not all that hard, but does involve a lot of fiddling to deal with all the code that thinks it knows how interfaces should operate better than you do. One of the particular difficulties -- if you want RED to work like it's supposed to -- is to squash the internal queueing that a lot of network interface drivers do. I didn't solve that problem (``left as an exercise...''), but it should be obvious that for correct operation, it's essential for RED to be able to determine the actual instantaneous length of the queue. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message