Re: PADDING vs PING

Roberto Peon <fenix@fb.com> Mon, 19 March 2018 16:40 UTC

Return-Path: <prvs=6616592c1b=fenix@fb.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9E66B12D7EC for <quic@ietfa.amsl.com>; Mon, 19 Mar 2018 09:40:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=fb.com header.b=GuTEiXqf; dkim=pass (1024-bit key) header.d=fb.onmicrosoft.com header.b=Wb82wy/a
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 IMUNYUmlRkwK for <quic@ietfa.amsl.com>; Mon, 19 Mar 2018 09:40:32 -0700 (PDT)
Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) (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 1C766126B6E for <quic@ietf.org>; Mon, 19 Mar 2018 09:40:32 -0700 (PDT)
Received: from pps.filterd (m0044008.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2JGADR9018050; Mon, 19 Mar 2018 09:11:20 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=facebook; bh=RCCdovjgI+3xtJTDqXKhO34p9cZWLm/vXe4UixnyyzQ=; b=GuTEiXqfLomBNwr7YrsNJ/c2zSqht/17k4txThuztLni7tT5hd/Q9Lme8NCX9+yJvgWi Ni25VMiXmjpRVBP/tMewCvhLxfh9v4W86bZIPPIZQwy+igoUUZI8tlC/4tft/bMwh1kf +nz41EL90o/w4zcClaoCWaQ6W8yyFdZR84A=
Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2gtf1trcdc-2 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 19 Mar 2018 09:11:20 -0700
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.18) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 19 Mar 2018 09:11:18 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RCCdovjgI+3xtJTDqXKhO34p9cZWLm/vXe4UixnyyzQ=; b=Wb82wy/aAre/XYp4Sz4KBFgc/fe8Yaqopr5OkMNpE4rGmQ95Jtqhvfxf4jTt28j8cTs5QdOtv1RsdT/YzBWy/5EDREOc3LTC4WVn05RGyBFpMgJXtvdiFecOqX/Do+phfwroerd2ih17F3tYHXoiumEmXiyTLnbdyC7ldQOhues=
Received: from BY2PR15MB0775.namprd15.prod.outlook.com (10.164.171.11) by BY2PR15MB0885.namprd15.prod.outlook.com (10.164.171.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Mon, 19 Mar 2018 16:11:16 +0000
Received: from BY2PR15MB0775.namprd15.prod.outlook.com ([10.164.171.11]) by BY2PR15MB0775.namprd15.prod.outlook.com ([10.164.171.11]) with mapi id 15.20.0588.017; Mon, 19 Mar 2018 16:11:16 +0000
From: Roberto Peon <fenix@fb.com>
To: Jana Iyengar <jri.ietf@gmail.com>, "Lubashev, Igor" <ilubashe@akamai.com>
CC: IETF QUIC WG <quic@ietf.org>, Martin Thomson <martin.thomson@gmail.com>
Subject: Re: PADDING vs PING
Thread-Topic: PADDING vs PING
Thread-Index: AdO/iza41CbbyhT3RkmWzLk9izKQ0wABHqYAAADpWgAAARvegAABSJmS
Date: Mon, 19 Mar 2018 16:11:16 +0000
Message-ID: <BY2PR15MB077567AF171CFE21C2C69654CDD40@BY2PR15MB0775.namprd15.prod.outlook.com>
References: <0a5ec245895043f196c0e93026d8e7ea@ustx2ex-dag1mb5.msg.corp.akamai.com> <CABkgnnU5FDgfhkGybBAV4Ei=cB7E6KF-WbVDgOm=w9pV51=gLA@mail.gmail.com> <cf7026c0cc0f4ec1b99c888067c774e9@ustx2ex-dag1mb5.msg.corp.akamai.com>, <CACpbDcd8Dny9HUtwOd9Udz0WgUP8WfSgmCj_BgfMZB8gAtBzqQ@mail.gmail.com>
In-Reply-To: <CACpbDcd8Dny9HUtwOd9Udz0WgUP8WfSgmCj_BgfMZB8gAtBzqQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [98.234.190.115]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BY2PR15MB0885; 7:QdVSi7VjasvatOeF89j56S4VpEKmxMeuBp/ZZ7Y1kDZQ/Moj9JzrqVKXS3bVlGQZgh7mRYk0gfydtT9MFRCiMHb3MopwZD0zp0hZdFDO4jY9BWXYZuV+UVpkkhBlf+7AkD44kHs+w1UsSH09tiqrq2+dWy/Scp/rrM+/ZsNc9QgyP2OIUsEkghoQifXmjsei4b0OYG2LbNYcs7PPVWXBFu6UzRHVyxZHtLZQLSjScduEScqYQDIbixTlR08Xdr0J; 20:c5zd0O17Wy16bnntmT2ctf1WdHr61cttYxHxGG+elCHPJUuxkvzDCI0O/RtNME81wNAP8/aUgHW0D2COJSWJe1MZg+e6kLSox0R0+mOiqenHy7+nZSg3rfZeNcyIklBW3gHtHX4GbTiXoLYwu+6qD7kcGUsjIyhH6KSui7hO1iI=
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 398342ee-db1b-4cab-51d9-08d58db40b36
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BY2PR15MB0885;
x-ms-traffictypediagnostic: BY2PR15MB0885:
x-microsoft-antispam-prvs: <BY2PR15MB08858569C8E57BA03BE9FABCCDD40@BY2PR15MB0885.namprd15.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705)(85827821059158);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(11241501184)(944501244)(52105095)(3002001)(93006095)(93001095)(10201501046)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BY2PR15MB0885; BCL:0; PCL:0; RULEID:; SRVR:BY2PR15MB0885;
x-forefront-prvs: 06167FAD59
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(39860400002)(366004)(39380400002)(396003)(346002)(13464003)(199004)(189003)(7116003)(2950100002)(33656002)(478600001)(53936002)(6246003)(26005)(316002)(55016002)(86362001)(106356001)(54896002)(7696005)(6436002)(9686003)(66066001)(3846002)(6116002)(68736007)(8936002)(236005)(93886005)(76176011)(229853002)(561944003)(5660300001)(99286004)(81156014)(53546011)(3480700004)(81166006)(97736004)(8676002)(7736002)(59450400001)(105586002)(25786009)(3660700001)(6506007)(74316002)(54906003)(14454004)(102836004)(77096007)(4326008)(186003)(2906002)(110136005)(3280700002)(39060400002)(2900100001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR15MB0885; H:BY2PR15MB0775.namprd15.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: LaB7uGIky0cE84lQOh+hzA/gkl5F0lurzadhk5NCAZMdz22fVmRb19PFx+lwe0jg/MaXRAFYMnDI03lpQdcDyKT1cm1d74P5/IgXRrwFjs7fop5X/YfIL/herkmQsTrRF6gJgXSoRiDoTk5kgK8fUB7i5yAllubr/QLT0FsHQRBjhoCFfFDY6DTdxSVdNrwYxD/zZ1RqAIwlSMl8p6FwAvQaV7EVyWAmTRu4SkVCiwmoc0dpWLpZy1fS/LNs0H4Ze9cbqy8CqZ+zrQZEOEkOAXXRbN5uGJqt/QDKBlExUUiVNk/bGoaPGfWyv+zz+geAovDmkUhLnPYgOEfNUzB6YQ==
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_BY2PR15MB077567AF171CFE21C2C69654CDD40BY2PR15MB0775namp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 398342ee-db1b-4cab-51d9-08d58db40b36
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 16:11:16.3125 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR15MB0885
X-OriginatorOrg: fb.com
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-03-19_09:, , signatures=0
X-Proofpoint-Spam-Reason: safe
X-FB-Internal: Safe
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/wze03mBvDppVNnkpNybw5BwTZkE>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 19 Mar 2018 16:40:35 -0000

Given that a smart attacker would be able to infer the fact that padding was used from the lack of an ack, it would seem to more poorly serve its security role without the ack.

For things like bandwidth estimation, it would be nice-to-have the option of getting acks (without requiring rexmission).
I'm thinking about bandwidth probing for video quality selection, as an example. In such a case, since the video data is sent ar ita bitrate,  there aren't  enough bursts to measure the channel bandwidth much beyond the video bitrate.

Delaying some video data so as to better measure bandwidth would make it less interactive, so not the best option.

And then there is the fun bit of needing to signal that the probed data should not be rexmitted if we used something other than padding.

 Padding fits the role nicely here, but only if it is acked.


-=R


Sent via the Samsung Galaxy S7, an AT&T 4G LTE smartphone


-------- Original message --------
From: Jana Iyengar <jri.ietf@gmail.com>
Date: 3/19/18 8:35 AM (GMT-08:00)
To: "Lubashev, Igor" <ilubashe@akamai.com>
Cc: IETF QUIC WG <quic@ietf.org>, Martin Thomson <martin.thomson@gmail.com>
Subject: Re: PADDING vs PING

For the record, I'll reiterate what I said at the mic (also what Christian said), which Martin called option 3:
The PADDING frame counts towards bytes-in-flight but does not generate an ACK.

Rationale: This keeps the rule simple and consistent with regard to PADDING frames. We expect that padding will commonly be used for packets carrying data. In this case, this is basically option (2), which states that PADDING frames if carried in packets containing non-ACK frames count towards bytes in flight. In the exceptional case that PADDING is used with ACK-only packets, this makes it the sender's problem to "do the right thing": the sender periodically sends an ACK-generating frame and figures out a time to clear out the in-flight.



On Mon, Mar 19, 2018 at 3:02 PM, Lubashev, Igor <ilubashe=40akamai.com@dmarc.ietf.org<mailto:ilubashe=40akamai.com@dmarc...ietf.org>> wrote:
Very well.  So it is Option 2.  One thing I did want to propose that we make the "ACK expectations" of PADDING and PING clear.  Bother require ACKs (except for ACK+PADDING packets), but PING requires an immediate ACK, while PADDING allows for a delay.

-----Original Message-----
From: Martin Thomson [mailto:martin.thomson@gmail.com<mailto:martin.thomson@gmail.com>]
Sent: Monday, March 19, 2018 2:37 PM
To: Lubashev, Igor <ilubashe@akamai.com<mailto:ilubashe@akamai.com>>
Cc: IETF QUIC WG <quic@ietf.org<mailto:quic@ietf.org>>
Subject: Re: PADDING vs PING

The current text counts ACK towards bytes in flight when there are other frames present, so you just described Option 2.  Albeit more precisely.

The key is that packets that comprise only (ACK[, PADDING]) count toward bytes in flight.  That is, the packet counts or not, but the content determines the answer.

On Mon, Mar 19, 2018 at 2:23 PM, Lubashev, Igor <ilubashe=40akamai.com@dmarc.ietf.org<mailto:40akamai.com@dmarc.ietf.org>> wrote:
> Since 4 proposals is not enough, let me propose the 5th one, which is
> an extension of Subodh’s proposal.
>
>
>
> PADDING does NOT count for bytes-in-flight (and does not require ACKs)
> when it is a part of ACK+PADDING packets.
> PADDING does count for bytes-in-flight and does require ACKs otherwise
> (including in PADDING-only packets).
> The difference between PADDING and PING in non-(ACK+PADDING) packets
> is that PING requires an ACK to be sent ASAP, while ACKing PADDING can
> be delayed, if the receiver does some ACK coalescing.
>
>
>
> Igor