From owner-freebsd-questions@FreeBSD.ORG Sun Sep 11 23:06:24 2011 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 940DB106566B for ; Sun, 11 Sep 2011 23:06:24 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 349228FC08 for ; Sun, 11 Sep 2011 23:06:23 +0000 (UTC) Received: by wyh15 with SMTP id 15so3741444wyh.13 for ; Sun, 11 Sep 2011 16:06:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.189.31 with SMTP id b31mr1411424wen.38.1315782381319; Sun, 11 Sep 2011 16:06:21 -0700 (PDT) Received: by 10.216.156.140 with HTTP; Sun, 11 Sep 2011 16:06:21 -0700 (PDT) In-Reply-To: References: <108373957.20110912012809@yandex.ru> Date: Sun, 11 Sep 2011 16:06:21 -0700 Message-ID: From: Michael Sierchio To: alexus Content-Type: text/plain; charset=ISO-8859-1 Cc: =?KOI8-R?B?68/O2MvP1yDl18fFzsnK?= , freebsd-questions@freebsd.org Subject: Re: traffic shaping freebsd 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: Sun, 11 Sep 2011 23:06:24 -0000 On Sun, Sep 11, 2011 at 3:38 PM, alexus wrote: > thanks, but did u actually tried it? If what you're asking is, "does traffic shaping work?" the answer is yes. There are some provisos - you must create an outbound pipe and an inbound pipe that accurately reflect the observed network performance (not what your ISP told you). This is because when you create queues of different weights, the weights are only imposed when one or more queues are full. See http://info.iet.unipi.it/~luigi/dummynet/ The place to start is to find out what kind of upload and download throughput you get, then create pipes that are 95% of those observed values (one up, one down), then instantiate queues with different weights on each pipe, then create rules that match packets according to which pipe they should go in. Also consider that the sysctl variable, net.inet.ip.fw.one_pass, might need to be 0 and not 1, depending on whether queued packets need further processing.