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

Stephane Bortzmeyer <bortzmeyer@nic.fr> Tue, 29 January 2008 21:07 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 1JJxfr-0007wm-9J; Tue, 29 Jan 2008 16:07:19 -0500
Received: from behave by megatron.ietf.org with local (Exim 4.43) id 1JJxfq-0007wg-57 for behave-confirm+ok@megatron.ietf.org; Tue, 29 Jan 2008 16:07:18 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JJxfp-0007wY-Mm for behave@ietf.org; Tue, 29 Jan 2008 16:07:17 -0500
Received: from bortzmeyer.netaktiv.com ([80.67.170.53] helo=mail.bortzmeyer.org) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JJxfo-0003mG-Iq for behave@ietf.org; Tue, 29 Jan 2008 16:07:17 -0500
Received: by mail.bortzmeyer.org (Postfix, from userid 10) id 8946F24083C; Tue, 29 Jan 2008 22:07:11 +0100 (CET)
Received: by mail.sources.org (Postfix, from userid 1000) id F179D117A1; Tue, 29 Jan 2008 22:06:31 +0100 (CET)
Date: Tue, 29 Jan 2008 22:06:31 +0100
From: Stephane Bortzmeyer <bortzmeyer@nic.fr>
To: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Message-ID: <20080129210631.GA965@sources.org>
References: <494C2569-D8B1-4E93-943D-11454FBEDC11@magma.ca> <200801030949.41979.remi.denis-courmont@nokia.com> <914FB0C9-1F63-4EBB-BADE-26F5506619A7@magma.ca> <200801081223.17053.remi.denis-courmont@nokia.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="tKW2IUtsqtDRztdT"
Content-Disposition: inline
In-Reply-To: <200801081223.17053.remi.denis-courmont@nokia.com>
X-Transport: UUCP rules
X-Operating-System: Debian GNU/Linux 3.1
User-Agent: Mutt/1.5.9i
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 3b8eea209b62bd15620865bc4fbef8cd
Cc: behave@ietf.org, ext Philip Matthews <philip_matthews@magma.ca>
Subject: [BEHAVE] Re: TURN Issue: Preserving bits in the IP header
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

On Tue, Jan 08, 2008 at 12:23:16PM +0200,
 Rémi Denis-Courmont <remi.denis-courmont@nokia.com> wrote 
 a message of 33 lines which said:

> As far as I know the Winsock (Windows), Linux and BSD socket API
> implementations, none of them provide per-packet TOS and ECN bit
> specification.

To ease the current survey of implementations, I wrote the attached
small program, that you can run on your system (tested on many Unix,
VMS - if someone wants to run a TURN server on VMS - and Windows XP),
to see what bits in the IP header an ordinary application can *set*
(wether it can *gets* them is another issue).

To compile:

make

To run:

make test

If you are root, I suggest to run it with and without root privileges,
the results may be different (for instance on Linux).

It may be a good idea to send the results only to me or to the persons
responsible for the tests (see
http://www1.ietf.org/mail-archive/web/behave/current/msg03248.html).

A big warning: the program only tests that the system accepts the
option, not that it complies. 

Executive summary of the results so far: TTL, ECN and DSCP seem to be
easily settable. precedence and DF are more questionable.

Some results:

My UID is 1000
The system is Linux 2.6.8-4-k7, the machine is i686
TTL successfully set to 10
TOS successfully set to 8
ECN successfully set to 2
[PROBLEM] Cannot set the precedence to 160:  (Operation not permitted)
DF set through PMTU successfully set to 2
DF clear through PMTU successfully set to 0

My UID is 0
The system is Linux 2.6.8-4-k7, the machine is i686
TTL successfully set to 10
TOS successfully set to 8
ECN successfully set to 2
precedence successfully set to 160
DF set through PMTU successfully set to 2
DF clear through PMTU successfully set to 0

My UID is 1055
The system is OSF1 V5.1, the machine is alpha
TTL successfully set to 10
TOS successfully set to 8
ECN successfully set to 2
precedence successfully set to 160
No known way to set the DF bit on this system

My UID is 54131
The system is FreeBSD 6.2-RELEASE, the machine is i386
TTL successfully set to 10
TOS successfully set to 8
ECN successfully set to 2
precedence successfully set to 160
No known way to set the DF bit on this system

My UID is 1000
The system is NetBSD 3.1, the machine is sparc64
TTL successfully set to 10
TOS successfully set to 8
ECN successfully set to 2
precedence successfully set to 160
No known way to set the DF bit on this system

My UID is 0
The system is Darwin 9.1.0, the machine is i386
TTL successfully set to 10
TOS successfully set to 8
ECN successfully set to 2
precedence successfully set to 160
No known way to set the DF bit on this system

My UID is 1005
The system is CYGWIN_NT-5.1 1.5.24(0.156/4/2), the machine is i686
TTL successfully set to 10
TOS successfully set to 8
ECN successfully set to 2
precedence successfully set to 160
No known way to set the DF bit on this system

My UID is 8491703
The system is OpenVMS 0, the machine is HP_rx2600__(1.40GHz/1.5MB)
TTL successfully set to 10
TOS successfully set to 8
ECN successfully set to 2
precedence successfully set to 160
No known way to set the DF bit on this system
_______________________________________________
Behave mailing list
Behave@ietf.org
https://www1.ietf.org/mailman/listinfo/behave