From owner-freebsd-questions Thu Oct 18 13:44:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from po3.wam.umd.edu (po3.wam.umd.edu [128.8.10.165]) by hub.freebsd.org (Postfix) with ESMTP id 4707037B409; Thu, 18 Oct 2001 13:44:24 -0700 (PDT) Received: from rac2.wam.umd.edu (IDENT:root@rac2.wam.umd.edu [128.8.10.142]) by po3.wam.umd.edu (8.9.3/8.9.3) with ESMTP id QAA01179; Thu, 18 Oct 2001 16:44:21 -0400 (EDT) Received: from rac2.wam.umd.edu (IDENT:sendmail@localhost [127.0.0.1]) by rac2.wam.umd.edu (8.9.3/8.9.3) with SMTP id QAA26723; Thu, 18 Oct 2001 16:44:21 -0400 (EDT) Received: from localhost (culverk@localhost) by rac2.wam.umd.edu (8.9.3/8.9.3) with ESMTP id QAA26717; Thu, 18 Oct 2001 16:44:21 -0400 (EDT) X-Authentication-Warning: rac2.wam.umd.edu: culverk owned process doing -bs Date: Thu, 18 Oct 2001 16:44:20 -0400 (EDT) From: Kenneth Wayne Culver To: Luigi Rizzo Cc: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: altq question. In-Reply-To: <20011018105017.A82131@iguana.aciri.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > either you have set the bandwidth wrong (does "ipfw pipe show" > list the speed you want for the pipes ? can you post its > output ?) or you are doing the measurement on a saturated link, > in which case when you use dummynet with dynamic queues you have > a lot more buffering going on, and this would explain why you > see higher ping times (but perhaps without it you see some > large amount of losses) ? > ipfw pipe show shows the correct amounts. I did the measurements on a non-saturated link, I'm sure of this because when I ipfw flush, ipfw queue flush, the ping goes back to normal. I have no packet loss either way, whether dummynet is configured or not. An added note, this is running on an 533 MHz alpha with a de type card hooked to the dsl modem running at 10Mbit/sec full duplex (dsl connection is rated at 608Kbit/s down and 128 Kbit/s up), and an xl type card connected to the internal net running at 100Mbit/sec Full duplex. My configuration looks like this: ipfw add queue 1 ip from any to x.x.x.x/24 in via de0 ipfw add queue 2 ip from x.x.x.x/24 to any out via de0 ipfw pipe 1 config bw 570Kbit/s queue 47 ipfw pipe 2 config bw 118Kbit/s queue 10 ipfw queue 1 config pipe 1 weight 40 mask dst-ip 0x000000ff ipfw queue 2 config pipe 2 weight 40 mask src-ip 0x000000ff I set it to 570Kbit/s download because this is the top download speed I measured (I get this speed to pretty much every site I download from, to arrive at this number I downloaded a file 2 times from a site that gave me around 62Kbytes/sec (my max speed), then I turned on queueing with successively larger bw values for pipe 1 until I could attain my top speed, then I added 10 Kbit/s just to be sure that I was getting the full wirespeed my connection would support. I did this for the upstream as well) Thanks for your help. Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message