From owner-freebsd-net@FreeBSD.ORG Tue May 2 17:20:51 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 784E916A405 for ; Tue, 2 May 2006 17:20:51 +0000 (UTC) (envelope-from tpeixoto@widesoft.com.br) Received: from smtp-gw.widesoft.com.br (carbono.widesoft.com.br [200.246.206.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8959F43D5A for ; Tue, 2 May 2006 17:20:46 +0000 (GMT) (envelope-from tpeixoto@widesoft.com.br) Received: from www.widemail.com.br (grants.widesoft.com.br [172.26.100.1]) by smtp-gw.widesoft.com.br (Postfix) with ESMTP id 731F744BAA; Tue, 2 May 2006 14:08:22 -0300 (BRT) Received: from 200.230.201.250 (SquirrelMail authenticated user tpeixoto) by www.widemail.com.br with HTTP; Tue, 2 May 2006 14:19:14 -0300 (BRT) Message-ID: <55494.200.230.201.250.1146590354.squirrel@www.widemail.com.br> In-Reply-To: <20060502040911.GG11342@gargantuan.com> References: <49594.200.230.201.250.1146063341.squirrel@www.widemail.com.br> <444F8E89.2050905@wildcard.net.uk> <56286.200.230.201.250.1146067775.squirrel@www.widemail.com.br> <1146073590.1089.80.camel@sky.mediasat.ro> <59615.200.230.201.250.1146083577.squirrel@www.widemail.com.br> <44506D87.1020808@jku.at> <4456B1E0.9040408@widesoft.com.br> <20060502040911.GG11342@gargantuan.com> Date: Tue, 2 May 2006 14:19:14 -0300 (BRT) From: tpeixoto@widesoft.com.br To: tpeixoto@widesoft.com.br, ferdinand.goldmann@jku.at, freebsd-net@freebsd.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Subject: Re: Packet loss with traffic shaper and routing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 May 2006 17:20:52 -0000 I see that. But if I got this right, I cannot set up speeds individually. We have different speeds for each host. Thanks for your time. > On 2006-05-01T22:12:00-0300, tpeixoto@widesoft.com.br wrote: >> Please, take a look in my previous post. >> I guess the problem lies with IPFW and dummynet. >> How do you shape your clients? >> >> Here we have (for each client): >> >> ipfw pipe 1 config bw 512Kbit/s >> ipfw pipe 2 config bw 512Kbit/s >> ipfw add pipe 1 ip from any to any mac any 00:11:22:33:44:55 in >> ipfw add pipe 2 ip from any to any mac 00:11:22:33:44:55 any out > > I am no ipfw or dummynet expert, but I read some of your other posts and > noticed that you are using 3200 rules and 3200 pipes, and are matching > the mac address. Do you have to match the mac, or can you do this by IP > address? According to the IPFW man page, if you specify a mask with > your pipe configuration, you can match on every bit which would > dynamically create the pipes based on the size of the parent pipe. I > think it would be something like... > > ipfw pipe 1 config bw 512kbit/s mask src-ip 0xffffffff > ipfw pipe 2 config bw 512kbit/s mask dst-ip 0xffffffff > ipfw add pipe 1 ip from any to any in > ipfw add pipe 2 ip from any to any out > > Like I said, I am no expert, but figured I would spew this to the list > anyway. > > -- > Mike Oliver, KI4OFU > [see complete headers for contact information] >