Re: [Ecn-in-quic] Darwin issue with setting ECN/DCSP via sendmsg

Ingemar Johansson S <ingemar.s.johansson@ericsson.com> Wed, 06 December 2017 07:46 UTC

Return-Path: <ingemar.s.johansson@ericsson.com>
X-Original-To: ecn-in-quic@ietfa.amsl.com
Delivered-To: ecn-in-quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F14EC127136 for <ecn-in-quic@ietfa.amsl.com>; Tue, 5 Dec 2017 23:46:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.221
X-Spam-Level:
X-Spam-Status: No, score=-4.221 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.onmicrosoft.com
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 T8XacWd1UD4O for <ecn-in-quic@ietfa.amsl.com>; Tue, 5 Dec 2017 23:46:39 -0800 (PST)
Received: from sessmg22.ericsson.net (sessmg22.ericsson.net [193.180.251.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 527321200C1 for <ecn-in-quic@ietf.org>; Tue, 5 Dec 2017 23:46:38 -0800 (PST)
X-AuditID: c1b4fb3a-7b5619c000003538-dc-5a27a05c70f8
Received: from ESESSHC023.ericsson.se (Unknown_Domain [153.88.183.87]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id C9.FC.13624.C50A72A5; Wed, 6 Dec 2017 08:46:36 +0100 (CET)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (153.88.183.145) by oa.msg.ericsson.com (153.88.183.87) with Microsoft SMTP Server (TLS) id 14.3.352.0; Wed, 6 Dec 2017 08:46:36 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.onmicrosoft.com; s=selector1-ericsson-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=etX+I+3N63vpGbfiQm6FfhrIMew8j4G+/dOMOHgB3cY=; b=Z2yS4d4FJp6yfodqxh0N+w6CyBsBBiH1MyDJAvZFdD+4EOoZ78djfVwugE9oEX2jhfMp5AhFSRYV+Smki6pUzmmM2SSNhtevdKw7sv6SJ0xrtI3bEzAOEJDQ7H10qyw+qP7pBalix7a1ErKw2xryGVxVKNbjqiAKgoCNU4wQkDU=
Received: from DB4PR07MB348.eurprd07.prod.outlook.com (10.141.234.148) by DB4PR07MB348.eurprd07.prod.outlook.com (10.141.234.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.3; Wed, 6 Dec 2017 07:46:34 +0000
Received: from DB4PR07MB348.eurprd07.prod.outlook.com ([fe80::e0fd:9f9f:e232:b301]) by DB4PR07MB348.eurprd07.prod.outlook.com ([fe80::e0fd:9f9f:e232:b301%16]) with mapi id 15.20.0282.010; Wed, 6 Dec 2017 07:46:34 +0000
From: Ingemar Johansson S <ingemar.s.johansson@ericsson.com>
To: "Eggert, Lars" <lars@netapp.com>, "ecn-in-quic@ietf.org" <ecn-in-quic@ietf.org>, Stuart Cheshire <cheshire@apple.com>
Thread-Topic: Darwin issue with setting ECN/DCSP via sendmsg
Thread-Index: AQHTaR8+FHcPpqI6NEm4OzO9m/qGS6M1+Yvw
Date: Wed, 06 Dec 2017 07:46:34 +0000
Message-ID: <DB4PR07MB348EA5CDB819A49FF11D1B6C2320@DB4PR07MB348.eurprd07.prod.outlook.com>
References: <D4780C25-61CC-42F3-8583-CD9E669E21F2@netapp.com>
In-Reply-To: <D4780C25-61CC-42F3-8583-CD9E669E21F2@netapp.com>
Accept-Language: sv-SE, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ingemar.s.johansson@ericsson.com;
x-originating-ip: [192.176.1.92]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DB4PR07MB348; 6:lz7/3KOrh2CW5x6xHvzeGzTHW/Eo4otcdyp72m9gTceLOWv+yA0/w5Y2OGKjZai7aDD3ahQwUaqrc3BMn1MYhGYYq+1WrjaUzl17gHNatxHFrDMOcx3UeyHRfmgiQICvmW1WAtsIFtKW+BfPtQTtxSGywHMxa7YXlkiJDRsd9fyCN5r4Ic8r7ZRBTyd0byXqvcb/7cR4jAWPoU5Pw9C1zT/Dfju3BjgCgO1W+HiUEL0QYf7DItXPhYSg3N2M75pH0FMOcVyqU6921tK5OH9mZSAuYDmJPHBN/3W0eSB2TssfMibEarfQYWxZEpe88P2RzS6qskWC7c4sbG8ry+VklS+0M7RFWfmIgStuAtIZpbc=; 5:ROs0hZXSG9HRv9BZtwSAj2DtjUEAMjKGAyQBBOQWmblju8vzvu7L6yAWzv6TUDIcB2Hc1PHHNc6ooF4NF/RRkytM1VkxMYSZCJX0M6eXp85vTlL6m8FmI0a9EhloXmy1Ko9D4LNG2yvPV0s26pf25WTPQvWgdNGt5sAu1wPB53Q=; 24:T52nDj6t64phHGlREQix3rMUJil6/h2oTlBUF02PWV0f1GjicQV86SUfH7R9H7hNthPqByuWRdeyNrxteTLr94CGfvcCE3XQQ1VIly9vVmw=; 7:0zF8yXTiGn5RFeqR6Mpx5JRVZGkPYwKRURriLMqvB7UlNkcJZAlaBkdB6ISmUZprdSVZyJ5gnM2ygSfZ6OBBnlYjn/yJ2fuHAUY5OciAkRZI0BcVeiw1UWabgwvrnNLfs/IEJulh3hNjJNOW64PcCrJ8NHdPSMCIQuKQLXaHTXEUrULPJoZFQg03zuS3ZeF+575pxt32sm9XBaSSUC32nkErS7US1rFfwm3lBiw/DakFflIeO9fW2Sczku/lh1cU
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-correlation-id: aa3849f2-4b9d-4a66-2287-08d53c7d795e
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603286); SRVR:DB4PR07MB348;
x-ms-traffictypediagnostic: DB4PR07MB348:
x-microsoft-antispam-prvs: <DB4PR07MB3487BA84C150D438681F1E9C2320@DB4PR07MB348.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(80524489315369)(31960201722614);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(10201501046)(3002001)(93006095)(93001095)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123560025)(20161123562025)(6072148)(201708071742011); SRVR:DB4PR07MB348; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DB4PR07MB348;
x-forefront-prvs: 05134F8B4F
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(376002)(366004)(13464003)(189003)(199004)(81166006)(8666007)(6246003)(101416001)(8676002)(97736004)(81156014)(7696005)(3660700001)(106356001)(76176011)(6436002)(8936002)(6506006)(105586002)(53936002)(53546010)(305945005)(2501003)(55016002)(102836003)(110136005)(9686003)(7736002)(3280700002)(3846002)(229853002)(2950100002)(74316002)(66066001)(6116002)(5250100002)(2900100001)(68736007)(478600001)(5660300001)(2906002)(33656002)(86362001)(14454004)(316002)(99286004)(25786009)(129583001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR07MB348; H:DB4PR07MB348.eurprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: aa3849f2-4b9d-4a66-2287-08d53c7d795e
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2017 07:46:34.6490 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR07MB348
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0iTURjHOXsvvRsuTkvxQZNqRabLeUFCSkU/SCoYEVkyAl36pua8tNeJ ZoZasJgKKhpqF+cFUYmgzPL2oc0urgJ1RHgjnVoW5hcLp2bWtmPQt9/zf/7Pec7/cDhKVsl4 cZk5+bw2R62RsxK6Men5hYCLRl9VUH330bDXM9fDyvTdu8K+LlfSUVRsr2WdjW1v3xDFNqz+ ZM9QKkl4Gq/JLOC1gZEpkozP5et03kO3QuNaPypFK2IDEnOAQ0Ff20kbkIST4WEELdMDiBRv EIxbrCJnQeMqCgZGBmnniAzXi2C7PJS45hBs2CtYZ4PF4dBltjvGOc4dF4PNutsp78UnYf5F pcvi7rC8snSICIfA8tttysk0Pgxb9z+5zpdiFbRNLDFkVwQsVI8hJ4txJLwsu+c6B2EfmLUT P4U9YWqxWUTiYGgfGqUIe8C3hW2G+FNhdbKKIfoB2LLOs4R9wNpc4UoM2LQLJvTzNGkoobdm BRFOgOmlyZ3hNgT6bTlhP+hvttPOvIAzYXj2PJHjYWB0cucODyj4sHSV8D5oqeva2dXLwKbh NlONApr+y0D4GBgHV1nCCuhoWaaaXO+yByyNi7QR0d3IQ+AFITs9JETJazNTBSE3R5nD5z9B jj9ievrrRB8yLUWbEeaQ3E363eCrkjHqAqEo24yAo+Tu0kuBDkmapi66xmtzk7U6DS+YkTdH yz2lljipSobT1fl8Fs/n8dp/XREn9ipFBcmt/oU3vc+F2Sx3vqQqziaMx/TEKwqqGh5vdv8J OqSLCDYHqmIUN2w1t6zHKd3iKZlOzR5spa/czdJlafpqn/V0TiT5ZV0OViaid0kdoR2myLWW xJT9R+zFjxhl1Htz0ExdXXrC77kE+9xQNDPS6rlg+9h+emyqJK5ktjTuh5wWMtTB/pRWUP8F /JId6R8DAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/ecn-in-quic/iwLizS8PTYOsp7kPMLjYPYeD2lo>
Subject: Re: [Ecn-in-quic] Darwin issue with setting ECN/DCSP via sendmsg
X-BeenThere: ecn-in-quic@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "ECN in the QUIC protocol discussion list." <ecn-in-quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ecn-in-quic>, <mailto:ecn-in-quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ecn-in-quic/>
List-Post: <mailto:ecn-in-quic@ietf.org>
List-Help: <mailto:ecn-in-quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ecn-in-quic>, <mailto:ecn-in-quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Dec 2017 07:46:42 -0000

A followup.

I have never tried out Darwin, read however that it is sort of the basis for Mac OSX. Are the issues with outbound packets in Darwin solved in MaxOSX ?

/Ingemar

> -----Original Message-----
> From: Ecn-in-quic [mailto:ecn-in-quic-bounces@ietf.org] On Behalf Of
> Eggert, Lars
> Sent: den 29 november 2017 15:35
> To: ecn-in-quic@ietf.org; Stuart Cheshire <cheshire@apple.com>
> Subject: [Ecn-in-quic] Darwin issue with setting ECN/DCSP via sendmsg
> 
> Hi,
> 
> sorry for abusing this list. In order to play with ECN and QUIC, I've added
> support for being able to set ECN (and DSCP) fields on the UDP packets I
> generate.
> 
> The good news is that the socket option calls to set the default for a socket
> are exactly the same on Linux, FreeBSD and Darwin, and it works on all
> platforms.
> 
> The other good news is that receiving per-packet ECN (and DSCP)
> information on inbound packets received via recvmsg/recvmmsg is almost
> identical on all three platforms (Linux uses a slightly different option name
> than the other two), and it also works everywhere.
> 
> Sending packets with per-packet ECN (and DCSP) information by initializing
> "struct cmsghdr" information for sendmsg/sendmmsg also uses the same
> API on all three platforms. However, it only seems to work on Linux and
> FreeBSD.
> 
> On Darwin, there is no error, but the outbound packets are *not* marked as
> indicated in the accompanying "struct cmsghdr".
> 
> In case this is of interest to anyone.
> 
> Lars