From owner-freebsd-ipfw@FreeBSD.ORG Thu Feb 10 07:30:15 2011 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25599106566C for ; Thu, 10 Feb 2011 07:30:15 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id DED0E8FC14 for ; Thu, 10 Feb 2011 07:30:14 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id C3B20730A1; Thu, 10 Feb 2011 08:28:11 +0100 (CET) Date: Thu, 10 Feb 2011 08:28:11 +0100 From: Luigi Rizzo To: nangergong Message-ID: <20110210072811.GA41597@onelab2.iet.unipi.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-ipfw@freebsd.org Subject: Re: about "profile" in IPFW/dummynet X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2011 07:30:15 -0000 On Thu, Feb 10, 2011 at 12:09:09AM +0000, nangergong wrote: > Hi, all: > > I want to use "profile" to simulate delays according to a empirical delay > distribution ( the "profile" argument can be found in > http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?ipfw+8) > I use the following command lines and distribution.txt, and find that these > command lines seem not to function. when I ping 9.161.148.72, the RTT<1ms > > My question is > 1) can "profile" be used in windows platform > 2) are there any problems in my procedures? you need a non-zero bandwidth if you want to use "profile". Also, "profile" emulates an additional transmission time (think of channel arbitration and mac overheads) not propagation delay. Finally I believe profile works on all supported platforms. In general, the differences between FreeBSD/linux/windows are only in areas where certain kernel features are implemented in different ways on different platforms -- e.g. sysctl, reinjection, matching on pid/gid or other credentials, divert. cheers luigi > > > my command lines are: > > ipfw pipe 1 config profile distribution.txt > ipfw add 100 pipe 1 ip from 9.161.150.55 to 9.161.148.72 > -------------------------------------------------------------------------------------- > if I input: ipfw pipe show > > the result is: > > 00001: unlimited 0 ms burst 0 > profile: name "distribution" loss 0.850000 samples 100 > q131073 50 sl. 0 flows (1 buckets) sched 65537 weight 0 lmax 0 pri 0 > droptail > sched 65537 type FIFO flags 0x0 0 buckets 0 active > > > the content of distribution.txt is: > > name distribution > samples 100 > loss-level 0.86 > prob delay > 0 200 # minimum overhead is 200ms > 0.5 200 > 0.5 300 > 0.8 1000 > 0.9 1300 > 1 1300 > #configuration file end > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org"