From owner-freebsd-net@freebsd.org Sun Apr 15 20:30:47 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 324F2F8A447 for ; Sun, 15 Apr 2018 20:30:47 +0000 (UTC) (envelope-from darkfiberiru@gmail.com) Received: from mail-ot0-x22b.google.com (mail-ot0-x22b.google.com [IPv6:2607:f8b0:4003:c0f::22b]) (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 B666069FEB for ; Sun, 15 Apr 2018 20:30:46 +0000 (UTC) (envelope-from darkfiberiru@gmail.com) Received: by mail-ot0-x22b.google.com with SMTP id h55-v6so15214999ote.9 for ; Sun, 15 Apr 2018 13:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+CD5FIuTB/9KegKNEooONsIl/BqU1vk0uFqPwRR729g=; b=HCMVLHaGAGe31CiZ2nXxn8q10UMmcSNI6BDhSfr8AZQIWj6JmZQzicPV2ubEwINHMZ 8dVd7OWuORAsp0tutBOUKslUF+dU1Zo/ERCQueETsFRyF/FkUyL6nqEEiEHzTSPdaiCB VyouQ3D7f8iKpT21AMHBX6dARpJtCcKO/dPiVKFgekEZKrGCqaAnAtGLXfpNHlf37iDR dVLExOFr3YaP58lzjoNhFCwJi6LXzFFTGZaCocaTHR9rDN0R0edBe+RthZFcBYukf0XE Nvx2texypkNJVtVps4tuh2vjDICJz2s5DF3/ynRLxpm5c47nB819Djb+EiuGuIdyq3HL xgSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+CD5FIuTB/9KegKNEooONsIl/BqU1vk0uFqPwRR729g=; b=RmsUomTqNCiMnOKupvB5gAGewi7WsMv0TkzzyK6t6nCmnClDYP0IXw6wL1TMgfEcv1 6E2/cKBZ2NhaXd+xHjnXl4I+tWfd8ZaLP1EVgxgyX3vRDcXcIgK4mST98mAcWKFYkSmA LrN787RIVjoOwoxCwcQyq811w9MJcRaq7ed5QmHCDFS4XqC/BDDNhqW/ji3wTfXqxKSA GFY5Jz/gciUld0G8plF71nbbn3rYPvhfep8jBVxEb1CEUccUEAc2l0EHahZ1TC3HO6l5 XzNV8QzeiubGjxAI5R7vGsjd4vv8AoKJYIOUU4OtGl1pcHrhBSrUI4A8fGf4/ro2VeMU t5CQ== X-Gm-Message-State: ALQs6tDnrhFFQ3CQQQZmMhiv662JoDvpowZJwxhlVGMJriD5HkVeIOmY /YNWSwi0yfQBMIfBvc0jUl1w1YqqAwORVW7H4SQPkdYK X-Google-Smtp-Source: AIpwx48ODV+saKcMla8Fna6k7D4KR/yWJJ8k7lwnYmCxrm2Dk22+XWOpPwY1CITUj/yxzNuNWMyeVweh1e/pcy9y92Q= X-Received: by 2002:a9d:28c6:: with SMTP id s64-v6mr9459448ota.346.1523824245882; Sun, 15 Apr 2018 13:30:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.201.97.213 with HTTP; Sun, 15 Apr 2018 13:30:45 -0700 (PDT) From: Nick Wolff Date: Sun, 15 Apr 2018 16:30:45 -0400 Message-ID: Subject: QOS/TOS in carp/freebsd in general To: freebsd-net@freebsd.org 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: Sun, 15 Apr 2018 20:30:47 -0000 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. References: Open Review - https://reviews.freebsd.org/D14536 General DSCP reference - https://www.tucny.com/Home/dscp-tos Thanks, Nick "darkfiberiru" Wolff