From owner-freebsd-net@FreeBSD.ORG Fri Apr 17 14:38:47 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 192F9F55 for ; Fri, 17 Apr 2015 14:38:47 +0000 (UTC) Received: from mail-pd0-x236.google.com (mail-pd0-x236.google.com [IPv6:2607:f8b0:400e:c02::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DF80CB6C for ; Fri, 17 Apr 2015 14:38:46 +0000 (UTC) Received: by pdbqd1 with SMTP id qd1so130177099pdb.2 for ; Fri, 17 Apr 2015 07:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=RBZ5mD2N051EaLVo5cw8XqjwJXeXWH+HbtEpz8pLJyw=; b=mpPqul5izRWr4Nlqye3DAH31D5JdQIp+J/TM0yJVJM4iRkhlyBnCUg/YyveAukd5sA 7vz4WeUKbRNpgSeN6F2A2J1T96hOb3I6a4WU/FCuep3xxF6Knfga+4vDpZoJeIvLiExs RebAcrL3jlIDECQGGi8TpLbP2yHqYiCcK4tFv8yxj4giMmtWlkMVJezBOt6Vt+lTcno4 AOu9kTcZdusar3MWEkfeeCWVkwRIsJsvtBFAtLDEHTEfsD+t5fsxhMkOjD7AjY5cn6zh ooKvCKwCi7PKiKR9Lqt7poCj9b+T13dhTQq3texPjeT3CSVCXPz1fARME9k/33N0fbr5 6yGw== MIME-Version: 1.0 X-Received: by 10.70.41.81 with SMTP id d17mr6243331pdl.16.1429281526214; Fri, 17 Apr 2015 07:38:46 -0700 (PDT) Received: by 10.70.104.4 with HTTP; Fri, 17 Apr 2015 07:38:45 -0700 (PDT) Received: by 10.70.104.4 with HTTP; Fri, 17 Apr 2015 07:38:45 -0700 (PDT) In-Reply-To: References: Date: Fri, 17 Apr 2015 17:38:45 +0300 Message-ID: Subject: traffic prioritize From: Sami Halabi To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 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, 17 Apr 2015 14:38:47 -0000 hi, I need to set some QoS on traffic. I use ipfw & dummynet, all my search to cane to use queue with weight, however its said that this method not prioritize traffic rather that splitting the pipe according to the weights (if i read correctly should sum to 100). Any other method or corrected method would be appreciated. my current config is: one_pass=0 em0 is my uplink 100Mbit link the traffic is stuck on queue rules and not forwarded. ============================== ipfw pipe 123 config bw 100Mbit ipfw queue 1 config pipe 123 weight 40 ipfw queue 2 config pipe 123 weight 30 ipfw queue 3 config pipe 123 weight 29 ipfw queue 4 config pipe 123 weight 1 ipfw add 1000 queue 1 tcp from any 5060-5061 to any recv em0 ipfw add 2000 queue 2 tcp from any 80,443,21 to any recv em0 ipfw add 3000 queue 3 all from any 53 to any recv em0 ipfw add 4000 queue 4 all from any to any recv em0 ipfw add 5000 allow all from any to any Sami