From owner-freebsd-net Wed May 22 14:44: 0 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by hub.freebsd.org (Postfix) with ESMTP id 8D50F37B40F for ; Wed, 22 May 2002 14:43:23 -0700 (PDT) Received: (qmail 11247 invoked from network); 22 May 2002 21:43:22 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail15.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 22 May 2002 21:43:22 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g4MLhLF01436 for ; Wed, 22 May 2002 17:43:21 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 22 May 2002 17:42:56 -0400 (EDT) From: John Baldwin To: net@FreeBSD.org Subject: Lossless bandwidth limiter on an interface Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I'm curious: what would be the best method of implementing a bandwith limiter on an interface that is lossless? I'm having to limit UDP with no back channel, so I can't reply on TCP retransmits to make up for packets being dropped. DUMMYNET drops packets that overflow it's queue size so it doesn't seem to work out of the box. Ideally, I would like applications sending packets to the interface to block when the outgoing queue is full. One idea I thought about is trying to use netgraph to implement a network interface that does this limiting and then hands the data off to a real network interface that it is attached to, but I also don't want to have to add netgraph support to a bunch of network drivers to get this to work either. Suggestions? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message