From owner-freebsd-questions@FreeBSD.ORG Wed Jan 28 07:51:23 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5764106564A for ; Wed, 28 Jan 2009 07:51:23 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [220.233.188.227]) by mx1.freebsd.org (Postfix) with ESMTP id 210D68FC21 for ; Wed, 28 Jan 2009 07:51:22 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id n0S7pJCC072280; Wed, 28 Jan 2009 18:51:21 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 28 Jan 2009 18:51:19 +1100 (EST) From: Ian Smith To: Sebastian Mellmann In-Reply-To: <58305.62.206.221.107.1233071856.squirrel@anubis.getmyip.com> Message-ID: <20090128183250.O86094@sola.nimnet.asn.au> References: <58305.62.206.221.107.1233071856.squirrel@anubis.getmyip.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: IPFW DUMMYNET: Several pipes after each other X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2009 07:51:23 -0000 On Tue, 27 Jan 2009, Sebastian Mellmann wrote: > Ian Smith wrote: [..] > > 00060: 192.000 Kbit/s 0 ms 30 KB 1 queues (1 buckets) droptail > > 0 tcp 192.168.0.64/1032 207.46.106.36/1863 1847947 563209421 0 > > 0 141 > > 00070: 3.072 Mbit/s 0 ms 40 KB 1 queues (1 buckets) droptail > > 0 tcp 207.46.106.36/1863 192.168.0.64/1032 2438211 3075075035 0 > > 0 4550 > > > > It's nearly all streaming rather than more interactive traffic, so > > pipe latency isn't so much of a concern. Anyway, I rarely actually > > catch any traffic still in-queue, which you can stare at for tuning. Just for reference re KES' message re ping times with a full queue: we only put established TCP traffic through these pipes; ICMP always, and UDP so far - unless/until it becomes an issue - are free-flowing here. > > Also, that's aggregate traffic, not per IP as with your masks (which > > look maybe wider than necessary, 0x0000ffff covers a /16) so you may > > wind up with lots of separate queues sharing a pipe, which may look > > very different. How many hosts, how much memory to spare for each? > > > Is there any chance to get the dropped packets for _each_ queue (e.g. > logged to a file for further investigation)? > Does ipfw provide something here? I don't know, I've only seen 'ipfw pipe show' results here. If you have numbered queues specified too, I guess 'ipfw queue show' would be what to try; if that's any use you could append results to a file/s by cron? > I'm mainly doing experiments with different kinds of settings (bandwidth > limitations, variable delay, dropped packets probability etcpp.) and I > want to see how many packets are actually dropped by ipfw. Happy experimenting .. soon you'll be the expert we can all consult :) If you want to get deeper into it, freebsd-net is the appropriate list. cheers, Ian