[iccrg] ECN statistics for Mac OS X

Stuart Cheshire <cheshire@apple.com> Mon, 23 March 2015 20:53 UTC

Return-Path: <cheshire@apple.com>
X-Original-To: iccrg@ietfa.amsl.com
Delivered-To: iccrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5FD2F1A1A94 for <iccrg@ietfa.amsl.com>; Mon, 23 Mar 2015 13:53:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.311
X-Spam-Level:
X-Spam-Status: No, score=-104.311 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OHWEWd4OAn-Y for <iccrg@ietfa.amsl.com>; Mon, 23 Mar 2015 13:53:05 -0700 (PDT)
Received: from mail-in7.apple.com (mail-out7.apple.com [17.151.62.29]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6ED521A1A92 for <iccrg@irtf.org>; Mon, 23 Mar 2015 13:53:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1427143984; x=2291057584; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3TBpAXTiMrSP5UTgk2mgW+uPZEWexa9FtjtJBASQKG4=; b=3eKM7kml81sNUWNYMMQtpdtQyO+6PQdywZKUaQd2gjxv75711kzGMEicbe4cLjT5 MjR/6FmWXrNkhwY6WRXNPRTbGuEcUVTGCFba2wpBUIPDCQETQZKw02Xz7vuaASJU sQlzesUuictllu1cKqNeuNT8j6EbnTvnzkxs1Km6/zhng5DK/VvnIQ3iQam1UMzt RasRFh3iIO9aAATYBSnrsEofJD4UzyMmGtfTl9E3oOx/GFTpizzV/cJk6lglZ6vX 80VGCjJAfVoXlBmYIG8HE9Kz/iged/oTg0302uAFni7U/RTVJMhxtTTTc4YqWgC9 FM3GVHeinArTjEF3YwBh1A==;
Received: from relay3.apple.com (relay3.apple.com [17.128.113.83]) by mail-in7.apple.com (Apple Secure Mail Relay) with SMTP id 6D.2C.03354.03D70155; Mon, 23 Mar 2015 13:53:04 -0700 (PDT)
X-AuditID: 11973e16-f79b66d000000d1a-85-55107d30d494
Received: from russet.apple.com (russet.apple.com [17.171.2.67]) (using TLS with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by relay3.apple.com (Apple SCV relay) with SMTP id 35.CD.19589.53D70155; Mon, 23 Mar 2015 13:53:10 -0700 (PDT)
Received: from [IPv6:2001:67c:1231:998:48b5:8fa9:72f7:e0a1] ([31.130.238.80]) by russet.apple.com (Oracle Communications Messaging Server 7.0.5.30.0 64bit (built Oct 22 2013)) with ESMTPSA id <0NLO002WYNCDOU50@russet.apple.com> for iccrg@irtf.org; Mon, 23 Mar 2015 13:53:02 -0700 (PDT)
From: Stuart Cheshire <cheshire@apple.com>
Content-type: text/plain; charset="utf-8"
Content-transfer-encoding: quoted-printable
Message-id: <71F88546-2268-4822-88DA-B2B85B83D87C@apple.com>
Date: Mon, 23 Mar 2015 15:53:11 -0500
To: iccrg@irtf.org
MIME-version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuph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kjy8qzUktPsQozcGiJM7bdZo3 VEggPbEkNTs1tSC1CCbLxMEp1cBYpfFo09N/ZgIRzdp7Y8vNut6l3JLirdgrWsdp/LxEaLmD /MKwkyq//BTXXlP9r6LewbPB8IXOTjnlS69y5q8RqJfIYuNlihabul/xvtCtDj2mPlnPeXu9 TDU4/RfG8Nu3X+ja3c7yOzZIw37qH2UtgwAuxW0Zr5s3Hhadutoh+rJA49cXgUosxRmJhlrM RcWJAJs46rISAgAA
Archived-At: <http://mailarchive.ietf.org/arch/msg/iccrg/QmfnGRZTxCuezz7-yLkMNk1SbBA>
Subject: [iccrg] ECN statistics for Mac OS X
X-BeenThere: iccrg@irtf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "Discussions of Internet Congestion Control Research Group \(ICCRG\)" <iccrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/iccrg>, <mailto:iccrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/iccrg/>
List-Post: <mailto:iccrg@irtf.org>
List-Help: <mailto:iccrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/iccrg>, <mailto:iccrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Mar 2015 20:53:06 -0000

As requested today, here is some information about ECN on Mac OS X:

1. To enable ECN, type:

sysctl -w net.inet.tcp.ecn_negotiate_in=1
sysctl -w net.inet.tcp.ecn_initiate_out=1

2. To make this change persistent, put following lines in /etc/sysctl.conf:

net.inet.tcp.ecn_initiate_out=1
net.inet.tcp.ecn_negotiate_in=1

3. To see the results, use netstat:

% netstat -sp tcp
tcp:
...
  12558 connections negotiated ECN
    0 times congestion notification was sent using ECE
    1983 times CWR was sent in response to ECE

This implies that 1983 times my laptop has received acks with ECE set, which suggests that some of its outbound packets experienced congestion and were marked “CE”. I have not yet identified which device or devices are marking these packets (if any — it’s possible it could just be a bug in the statistics reporting).

Stuart Cheshire