From owner-freebsd-net@freebsd.org Wed Apr 25 13:53:24 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F7A6FA6A6D for ; Wed, 25 Apr 2018 13:53:24 +0000 (UTC) (envelope-from darkfiberiru@gmail.com) Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com [IPv6:2607:f8b0:4003:c06::235]) (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 3073C6A50E for ; Wed, 25 Apr 2018 13:53:24 +0000 (UTC) (envelope-from darkfiberiru@gmail.com) Received: by mail-oi0-x235.google.com with SMTP id y15-v6so12963982oia.13 for ; Wed, 25 Apr 2018 06:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h8OP6g1bhov94jKEXp0p2Bw/Z2v4h9ujs8Gp0Ju0Hdc=; b=tM6eysZ4TSehUTsC0M+NPZvxs1qsnPz1lF7iZVJUOS91AP+FRJ5S1huyq+nB6PWGpS kxIA3QKq3pOJYyZIF2CSKnwYZfh27LvGzbV2tuvZjnEjOUFpUokRL41Tlxf5ayTMv939 uY2aIdXoIaPl/A1pnPJ82boDl/kQfnD7oJO0RDVhRjqchwfkTDvAnOoO1R1GfqUuEFgn KQXbE0z1wW5A63PmQDx9Slkyn+yZX7A9ZIb+Fq868XE/5D9rZK62YIpTsphLwmcw3IhG rNsF0b1lb400ga4pNuIHGA+w1A5BArL2sr+orsEXrbbmpiLmsuOdk8ErJDVFnaF+eVBN 7Z9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h8OP6g1bhov94jKEXp0p2Bw/Z2v4h9ujs8Gp0Ju0Hdc=; b=JP2W7NLvoU34uuQzjNTmWjMNx8b2b1YsRYlOZNMsl494Dup3kNQexzNn+/7kBGeArS eKV7Yq7upGozNwZsC63sEuMM+Apu0srsBlYrYpgHr2RtHztgNDTL9dUhX7hsbfJ51SAJ UbhX7A2ddACqgK+Kgm2VdIFfEvbzVIuaNXy/kPA/wKJN6PrdOFlNlPnVbDVK5BC2VDN+ zx5K8e5bULsOUY8kLG/YgOzdx6vh4BtiGaJAYVQRMBxdxFaL3gUtZ1j5Xbu2eCU6l8mC 1LHbIHUB3SJ/uE/lK+cRxPexrYBTVTsrmoZM9RHydDY+r7HoY8qLRhD5Tti41lHRmO8S VJSA== X-Gm-Message-State: ALQs6tBe0SdSE2tUVGhET3jecuKeAvZ6nh7uZXqEKVptwr7vziLPcwkQ jvnvQsuNmQnITXs4H0BO1gjN9XRHRcOktGTKgN0= X-Google-Smtp-Source: AB8JxZoJKVy+Re7WL5U4AxIviEvpTQO0ou88imB1oJSN9a4cziZrusjvvYB1BDioOtSXZ3/kK/qzYTGDZd3dTprk/9k= X-Received: by 2002:aca:130e:: with SMTP id e14-v6mr9645766oii.33.1524664403291; Wed, 25 Apr 2018 06:53:23 -0700 (PDT) MIME-Version: 1.0 References: <20180416082736.GB48822@tom-desk.erg.abdn.ac.uk> In-Reply-To: From: Nick Wolff Date: Wed, 25 Apr 2018 13:53:12 +0000 Message-ID: Subject: Re: QOS/TOS in carp/freebsd in general To: Lee Brown Cc: freebsd-net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2018 13:53:24 -0000 On Mon, Apr 16, 2018, 6:55 PM Lee Brown wrote: > On Mon, Apr 16, 2018 at 1:27 AM, Tom Jones wrote: > > > On Sun, Apr 15, 2018 at 04:30:45PM -0400, Nick Wolff wrote: > > > Hi, > > > > > > I currently have a review in to make carp use dscp values on outgoing > > > packets. This will make it easier to preform QOS on modern switches as > we > > > have been able to drive carp insane on 10g links while throwing storage > > > traffic at it.On an interesting side note apparently after 64k mac > > address > > > moves for a single mac address in the cam table arista 7050t seems to > > with > > > out warning give up and stop moving address but leaves it in the table > > > where ever it last was. > > > > > > I was originally going to just toggle between cs7 and the old TOS low > > delay > > > setting. But it was requested that I just make it a settable Integer > > value. > > > In this case I'm planning to do 0-63 to match dscp with a default of 54 > > > (CS7) (Network Control) but you could still set the old value by > setting > > > the sysctl to 4. Anything larger then 64 would be truncated as two > shifts > > > are needed to align with the field leading. > > > > > > Does anybody do anything anywhere with the old TOS values like low > delay > > in > > > there networking infrastructure? Should this be updated in other places > > in > > > kernel and userland? It's been 20 years since TOS was deprecated and > > > replaced with DSCP. > > > > > > Any other comments or thought are always welcome. > > > > You can already do this with ipfw? > > setdscp cs7 from me to 224.0.0.18 > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > You can do this in ipfw but not in pf as far as I'm aware. While having the ability in firewalls is great to me that is an administrative flexibility tool. I think it's important that we have the right code paths to handle this without workarounds. This is also a update of current code paths that brings us up to date with 20 years ago and adds the functionality for IPv6 where it was never implemented. >