Re: [BEHAVE] TURN Issue: Preserving bits in the IP header

Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Thu, 10 January 2008 08:18 UTC

Return-path: <behave-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1JCscZ-0002AO-RY; Thu, 10 Jan 2008 03:18:39 -0500
Received: from behave by megatron.ietf.org with local (Exim 4.43) id 1JCscY-0002AA-0f for behave-confirm+ok@megatron.ietf.org; Thu, 10 Jan 2008 03:18:38 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JCscX-00029w-GW for behave@ietf.org; Thu, 10 Jan 2008 03:18:37 -0500
Received: from smtp.nokia.com ([192.100.122.233] helo=mgw-mx06.nokia.com) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JCscW-0004ES-Tv for behave@ietf.org; Thu, 10 Jan 2008 03:18:37 -0500
Received: from esebh108.NOE.Nokia.com (esebh108.ntc.nokia.com [172.21.143.145]) by mgw-mx06.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id m0A8IRet030475; Thu, 10 Jan 2008 10:18:34 +0200
Received: from esebh104.NOE.Nokia.com ([172.21.143.34]) by esebh108.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 10 Jan 2008 10:18:32 +0200
Received: from esebh101.NOE.Nokia.com ([172.21.138.177]) by esebh104.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 10 Jan 2008 10:18:32 +0200
Received: from esdhcp04166.research.nokia.com ([172.21.41.66]) by esebh101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 10 Jan 2008 10:18:32 +0200
From: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Organization: Nokia TP-SP-SWD
To: Lars Eggert <lars.eggert@nokia.com>
Subject: Re: [BEHAVE] TURN Issue: Preserving bits in the IP header
Date: Thu, 10 Jan 2008 10:19:16 +0200
User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405)
References: <494C2569-D8B1-4E93-943D-11454FBEDC11@magma.ca> <200801081223.17053.remi.denis-courmont@nokia.com> <D3DE3D9A-7CC9-4ECF-86BF-47D75AD37100@nokia.com>
In-Reply-To: <D3DE3D9A-7CC9-4ECF-86BF-47D75AD37100@nokia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200801101019.17836.remi.denis-courmont@nokia.com>
X-OriginalArrivalTime: 10 Jan 2008 08:18:32.0086 (UTC) FILETIME=[632C9B60:01C85361]
X-Nokia-AV: Clean
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 39bd8f8cbb76cae18b7e23f7cf6b2b9f
Cc: behave@ietf.org, ext Philip Matthews <philip_matthews@magma.ca>
X-BeenThere: behave@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: mailing list of BEHAVE IETF WG <behave.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/behave>, <mailto:behave-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/behave>
List-Post: <mailto:behave@ietf.org>
List-Help: <mailto:behave-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/behave>, <mailto:behave-request@ietf.org?subject=subscribe>
Errors-To: behave-bounces@ietf.org

Le Wednesday 09 January 2008 11:46:17 Lars Eggert, vous avez écrit :
> On 2008-1-8, at 11:23, ext Rémi Denis-Courmont wrote:
> > I understand why TURN should preserve TOS and ECN bits, but we have
> > to know that if this were required, this would require in-kernel
> > implementation for most typical operating systems. And because
> > people will anyway try to make userland implementations, they'll
> > get it wrong. 
>
> Understood, doing things correctly is hard with existing APIs. But
> having TURN break ECN and DiffServ isn't the right approach, either.

Of course. I am rather wondering if this would be a SHOULD, or a MUST. That 
would make some a whole class implementations non-compliant, though they'd 
still mostly work.

For UDP (and UDP-Lite if we ever define if for TURN), we certainly want TOS 
and ECN preservation. That works fine because each client-to-relay packet 
corresponds to one or zero relay-to-peer packet, and each peer-to-relay 
packet corresponds to one or zero relay-to-client packet.

I am a whole lot more suspicious when it comes to TURN-TCP though. It is 
fortunate, we have split that out of the TURN baseline spec, because I can 
already imagine the headaches. With TCP, there is no obvious matching of IP 
packets on each sides of the relay. TCP does not preserve datagram 
boundaries. Hence a single packets from one side could turn into multiples 
packets on the other side for various reasons. Worse yet, a single packet on 
one side could be "coming from" different packets from the original side.

-- 
Rémi Denis-Courmont


_______________________________________________
Behave mailing list
Behave@ietf.org
https://www1.ietf.org/mailman/listinfo/behave