From owner-freebsd-net@FreeBSD.ORG Fri Jun 6 14:09:16 2014 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 964F0B61 for ; Fri, 6 Jun 2014 14:09:16 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4894C24C9 for ; Fri, 6 Jun 2014 14:09:16 +0000 (UTC) Received: from Julian-MBP3.local (etroy.elischer.org [121.45.232.70]) (authenticated bits=0) by vps1.elischer.org (8.14.8/8.14.8) with ESMTP id s56E93wR024716 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 6 Jun 2014 07:09:07 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <5391CB79.5040908@freebsd.org> Date: Fri, 06 Jun 2014 22:08:57 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Ian Smith , bycn82 Subject: Re: [CFT]: ipfw named tables / different tabletypes References: <20140521204826.GA67124@onelab2.iet.unipi.it> <537E1029.70007@FreeBSD.org> <20140522154740.GA76448@onelab2.iet.unipi.it> <537E2153.1040005@FreeBSD.org> <20140522163812.GA77634@onelab2.iet.unipi.it> <538B2FE5.6070407@FreeBSD.org> <539044E4.1020904@ipfw.ru> <000c01cf80be$41194370$c34bca50$@gmail.com> <20140605134256.GA81234@onelab2.iet.unipi.it> <000001cf80cd$5dc1d9b0$19458d10$@gmail.com> <20140605155402.GA81905@onelab2.iet.unipi.it> <000401cf80d8$ad1bb840$075328c0$@gmail.com> <20140606222753.W15833@sola.nimnet.asn.au> In-Reply-To: <20140606222753.W15833@sola.nimnet.asn.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 'Luigi Rizzo' , "'Alexander V. Chernikov'" , 'FreeBSD Net' X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2014 14:09:16 -0000 On 6/6/14, 9:31 PM, Ian Smith wrote: > On Fri, 6 Jun 2014 00:10:26 +0800, bycn82 wrote: > > Hi Bill, > > > Sorry for waste you time to explain it again, I will read the code first. > > Especially the code provided in free tutorials by your busy professor .. > > > And the latest patch of `PPS` should be OK, I checked the logic carefully this time. I sent it out last weekend. > > > > logic as below, PPS actually will be fulfilled using `PPT`,(N packets per M ticks). > > I think a few people have pointed out likely problems with 'packets per > tick(s)', and that people tend to prefer packets per second as a more > natural and familiar concept. I can see use cases for that, especially > when applied by easily updateable (and soon, saveable) tables. > > Remember that HZ may be set at boot time, and will at times by people > experimenting with, as one example, dummynet latency versus cpu use, so > rulesets specifying packets per tick would need also to be modified to > match, which won't happen. Packets per second is independent of HZ and > far easier to comprehend. See inetd(8) for a typical PPM example, while > PPS makes more sense for a firewall. > > I wonder if something like Bresenham's Linedrawing Algorithm might help? I already gave him a sketch of such an algorithm. > > cheers, Ian > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >