From owner-freebsd-ipfw@FreeBSD.ORG Thu Feb 10 14:35:49 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 DC3DE106566B for ; Thu, 10 Feb 2011 14:35:48 +0000 (UTC) (envelope-from nangergong@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8FB2B8FC1B for ; Thu, 10 Feb 2011 14:35:48 +0000 (UTC) Received: by iyb26 with SMTP id 26so1367403iyb.13 for ; Thu, 10 Feb 2011 06:35:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=uWeZdzz7BgbXrQTdo3CzmHPxq5/FvbIXFa+i2TKQWys=; b=L6vhmwmgQ4Mam1hLTAXl9qrIPLivN7kymMdU8XwEN7ggLKhtoEt4wJwELuAZ8KS6iz zXIriXYQkiuJniEU3zuF0uCjxKFE6bYAcsh9TOmKBApIpUkdUGiPtR7vhmNqAsmrg+OL kuAX5p2/Aeszk4JuNWLI9clSLffrHBeq8AunE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=JBKOmR5dCghdshd4TDegjFZqKVQmpTS+l/eSckU5mDQd0KgKsFVLASLrZT3Rh41SEO 3zVa2g/7A4sE66FqVrK0fy77GE79aMULIMEK12fRwl/nj7nXWbLwioZEj00glq57A5lB y5FhX7wkattFLqTdefTrZWP+5qq5x31AEXLxM= MIME-Version: 1.0 Received: by 10.42.230.137 with SMTP id jm9mr23784237icb.256.1297348547645; Thu, 10 Feb 2011 06:35:47 -0800 (PST) Received: by 10.42.122.4 with HTTP; Thu, 10 Feb 2011 06:35:47 -0800 (PST) In-Reply-To: <20110210072811.GA41597@onelab2.iet.unipi.it> References: <20110210072811.GA41597@onelab2.iet.unipi.it> Date: Thu, 10 Feb 2011 14:35:47 +0000 Message-ID: From: nangergong To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 14:35:49 -0000 thank you! I add "bw" in the distribution.txt. However, the problem remains. when I ping 9.161.148.72 from 9.161.150.55, the RTT<1ms are there any other problems? ----------------------------------------------------------- name distribution bw 2Mbit/s 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 On Thu, Feb 10, 2011 at 7:28 AM, Luigi Rizzo wrote: > 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" >