From owner-freebsd-net Tue May 21 20:42:58 2002 Delivered-To: freebsd-net@freebsd.org Received: from loquat.bbn.com (crodrigues.bbn.com [128.89.72.49]) by hub.freebsd.org (Postfix) with ESMTP id 71DE637B409 for ; Tue, 21 May 2002 20:42:54 -0700 (PDT) Received: (from crodrigu@localhost) by loquat.bbn.com (8.11.2/8.11.2) id g4M3gmu13223 for freebsd-net@freebsd.org; Tue, 21 May 2002 23:42:48 -0400 Date: Tue, 21 May 2002 23:42:48 -0400 From: Craig Rodrigues To: freebsd-net@freebsd.org Subject: Question about Dummynet and Diffserv Message-ID: <20020521234248.B13074@bbn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 Hi, I am trying to set up a network testbed where I can offer different levels of service to different streams of traffic marked with different Diffserv codepoints. I have two FreeBSD routers (4.6 RC1) in my testbed, compiled with Dummynet, ALTQ, and IPFIREWALL. Dummynet works great for changing characteristics such as delay, packet loss rate, and bandwidth. I have used the ipfw command to set up rules like: "Set the delay to 800ms for packets with source address foo and destination address bar." However, ipfw support setting up filter rules based on the IP TOS field (Diffserv byte). The ipfw command seems to only support the capability for creating firewall rules based on the following IP options: ssrr (strict source route), lsrr (loose source route), rr (record packet route) and ts (timestamp). It doesn't let you create a filter rule based on the TOS field. Now, on the other hand, with ALTQ, it is possible to set up filter rules which can deal with IP TOS. However, ALTQ seems to be separate from ipfw/Dummynet, and doesn't have the nice features of being able to specify delay and packet loss rates. Does anybody know how I can resolve this? I basically want to use ipfw/Dummynet, but set the filter rule based on the TOS field. Thanks. -- Craig Rodrigues Distributed Systems and Logistics, Office 6/304 crodrigu@bbn.com BBN Technologies, a Verizon company (617) 873-4725 Cambridge, MA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message