Re: [rtcweb] DTLS, DTLS-SRTP, and 5-tuples

Simon Perreault <sperreault@jive.com> Wed, 04 March 2015 19:02 UTC

Return-Path: <sperreault@jive.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D10221ACE24 for <rtcweb@ietfa.amsl.com>; Wed, 4 Mar 2015 11:02:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] 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 88JvEnvGYluP for <rtcweb@ietfa.amsl.com>; Wed, 4 Mar 2015 11:02:13 -0800 (PST)
Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C0CA01ACE22 for <rtcweb@ietf.org>; Wed, 4 Mar 2015 11:02:13 -0800 (PST)
Received: by mail-qa0-f54.google.com with SMTP id v8so7024214qal.13 for <rtcweb@ietf.org>; Wed, 04 Mar 2015 11:02:13 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Wsh5xySq49wsAXhNvTgHxyKtoLcM9/1xezTxh9gYJuE=; b=BEy1XF1w0FY8s9h9E/tJV3j/FHtU6vzNXeIDPX8q0vGsi9EY7JpS4ReeNVfqQUEvSX +UNvQh8UW79/zqPXk24W4mai8783sWS2ioE+dy5xyYZRDm9QNami+QRNR2YJqDid+gTM CURZkdNQz0A+3KSpcfl0xC7StXK3ARJ6WiAs2leXxhAT3/1vpy96yskO0f7gRlicTWmd m9bRODDbs+54mYDqmHxy+2SkM9ePIHZPWRjNc7PlZAGpo2FG/Mvc+hoodeBN/VVtoyWK 0Cu9l3z6a9DMDZKreqrNRteJwNgdJfAvUt+UzGNaz6IISH7L7/0DlXtiOrK6k6zld77G M1Bw==
X-Gm-Message-State: ALoCoQmVY+PbWxG7WB2rGiitQuoNCP6EytKMk5WWsxSlae1H6fTCckbUYydqZNIp1VS5olhF1xCo
X-Received: by 10.140.84.116 with SMTP id k107mr7314429qgd.45.1425495732964; Wed, 04 Mar 2015 11:02:12 -0800 (PST)
Received: from [192.168.1.43] (modemcable233.42-178-173.mc.videotron.ca. [173.178.42.233]) by mx.google.com with ESMTPSA id h6sm2646412qgh.32.2015.03.04.11.02.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Mar 2015 11:02:12 -0800 (PST)
Message-ID: <54F756B2.60408@jive.com>
Date: Wed, 04 Mar 2015 14:02:10 -0500
From: Simon Perreault <sperreault@jive.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: Roman Shpount <roman@telurix.com>
References: <54F74B02.1070902@jive.com> <CAD5OKxs8JYG3-Vvndi59ZrdPE7UTj22ozD4tcWTHgzWrHv=q7Q@mail.gmail.com>
In-Reply-To: <CAD5OKxs8JYG3-Vvndi59ZrdPE7UTj22ozD4tcWTHgzWrHv=q7Q@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtcweb/4zj_U7H8vRbbpL0mbJ0wAPO2R6s>
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] DTLS, DTLS-SRTP, and 5-tuples
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Mar 2015 19:02:15 -0000

Le 2015-03-04 13:54, Roman Shpount a écrit :
> This is not correct. End point can have multiple flows with different
> keying material or different DTLS sessions on the same local ICE 3-tuple
> due to forking. More correct implementation would be to associate
> multiple 5-tuples with the same logical transport stream based on ICE
> connectivity checks using ICE ufrag to identify which logical stream to
> associate with each 5-tuple.

Agreed.

> There is also another interesting consequence of this -- end point
> should not re-use the same ICE candidate IP/port with a different ufrag
> during session update offer/answer exchange. Otherwise you might end up
> with ambiguous association between the logical streams and keying
> material or DTLS session.

Right. And wait MSL seconds before reusing a candidate to let the pipes 
drain.

> All of this probably needs to be defined somewhere and I am not aware
> which RFC or draft defines this at this time.

I guess for DTLS/DTLS-SRTP the obvious target would be -security...

Simon