RE: [dhcwg] "client identifier" in server replies

narasimha.nelakuditi@nokia.com Tue, 08 July 2003 10:02 UTC

Received: from optimus.ietf.org (ietf.org [132.151.1.19] (may be forged)) by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA16329; Tue, 8 Jul 2003 06:02:29 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19ZpIP-0000NR-Gy; Tue, 08 Jul 2003 06:02:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19ZpI0-0000MZ-Uh for dhcwg@optimus.ietf.org; Tue, 08 Jul 2003 06:01:36 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA16313 for <dhcwg@ietf.org>; Tue, 8 Jul 2003 06:01:32 -0400 (EDT)
From: narasimha.nelakuditi@nokia.com
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 19ZpHx-0000Lu-00 for dhcwg@ietf.org; Tue, 08 Jul 2003 06:01:33 -0400
Received: from mgw-x4.nokia.com ([131.228.20.27]) by ietf-mx with esmtp (Exim 4.12) id 19ZpHw-0000Lr-00 for dhcwg@ietf.org; Tue, 08 Jul 2003 06:01:32 -0400
Received: from esvir03nok.nokia.com (esvir03nokt.ntc.nokia.com [172.21.143.35]) by mgw-x4.nokia.com (Switch-2.2.6/Switch-2.2.6) with ESMTP id h68A1W905048 for <dhcwg@ietf.org>; Tue, 8 Jul 2003 13:01:32 +0300 (EET DST)
Received: from esebh003.NOE.Nokia.com (unverified) by esvir03nok.nokia.com (Content Technologies SMTPRS 4.2.5) with ESMTP id <T634e696545ac158f23076@esvir03nok.nokia.com>; Tue, 8 Jul 2003 13:01:32 +0300
Received: from siebh002.NOE.Nokia.com ([172.30.195.17]) by esebh003.NOE.Nokia.com with Microsoft SMTPSVC(5.0.2195.6139); Tue, 8 Jul 2003 13:01:32 +0300
Received: from siebe002.NOE.Nokia.com ([172.30.195.13]) by siebh002.NOE.Nokia.com with Microsoft SMTPSVC(5.0.2195.6139); Tue, 8 Jul 2003 18:01:09 +0800
X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [dhcwg] "client identifier" in server replies
Date: Tue, 08 Jul 2003 18:01:08 +0800
Message-ID: <79A2DB53BC51BD448F0D19A86FB1DB637F1FF7@siebe002.apac.nokia.com>
Thread-Topic: [dhcwg] "client identifier" in server replies
Thread-Index: AcNFMuJQCfhL86jtSLecZW7EBD5kIQAA2KbQ
To: budm@weird-solutions.com
Cc: dhcwg@ietf.org
X-OriginalArrivalTime: 08 Jul 2003 10:01:09.0172 (UTC) FILETIME=[DABB1F40:01C34537]
Content-Transfer-Encoding: quoted-printable
Sender: dhcwg-admin@ietf.org
Errors-To: dhcwg-admin@ietf.org
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Id: <dhcwg.ietf.org>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
Content-Transfer-Encoding: quoted-printable

Choosing random xid may reduce the chances of clashing, but won't eliminate the problem. I feel, to ensure correct protocol operation, DHCP servers should return "client id" also in their replies. 

regards,
swamy.


> -----Original Message-----
> From: ext Bud Millwood [mailto:budm@weird-solutions.com]
> Sent: Tuesday, July 08, 2003 2:57 PM
> To: Nelakuditi Narasimha (NET/Bangalore)
> Cc: dhcwg@ietf.org
> Subject: Re: [dhcwg] "client identifier" in server replies
> 
> 
> On Tuesday 08 July 2003 06.39, narasimha.nelakuditi@nokia.com wrote:
> 
> > Hi Thamer, I was discussing the case in which client fills 
> "Client ID"
> > field but NOT "Client Hardware addr(MAC)". This is possible 
> as servers
> > identify clients using EITHER "Client ID" OR "Client HW 
> addr". Coming back
> > to 'xid', I think checking 'xid' alone is not a good idea, 
> considering
> > erroneous servers, multiple clients using same xids etc.
> 
> If the client is on the local segment and the server is 
> capturing packets with 
> raw frames, the server will know the hw addr of the client. 
> In this case the 
> combination of xid and unicast is pretty tight. If the server is not 
> capturing raw frames, it has no way to know the client's hw 
> addr (client id 
> is opaque, last I checked), so you will probably get a 
> broadcast only if 
> there's no hw addr (chaddr) defined. In this case, xid is the 
> only thing you 
> can use.
> 
> Same goes for a relay agent.
> 
> If you're a client using xid to identify responses to you: 
> Use a random XID 
> such that it will likely be unique across the entire network. The two 
> constraints that help further minimize xid clashes are 1) the 
> xid only really 
> needs to be unique on your segment, not the entire network and 2) the 
> duration of your query. This is assuming that you're not 
> filling out the 
> chaddr field, which you *should* be if you can.
> 
> I think those three (randomness, segment subset and query 
> duration) give you a 
> high probability of identifying responses intended for you if 
> you're not 
> using the hwaddr field.
> 
> Note that if the client *does* fill out the hw addr field, 
> you're basically 
> guaranteed that a response is for you.
> 
> Regards,
> 
> Bud Millwood
> Weird Solutions, Inc.
> http://www.weird-solutions.com
> tel: +46 8 758 3700
> fax: +46 8 758 3687
> mailto:budm@weird-solutions.com
> 
> > regards,
> > swamy.
> >
> > > -----Original Message-----
> > > From: ext Thamer Al-Harbash [mailto:tmh@whitefang.com]
> > > Sent: Monday, July 07, 2003 11:30 PM
> > > To: Nelakuditi Narasimha (NET/Bangalore)
> > > Cc: dhcwg@ietf.org
> > > Subject: Re: [dhcwg] "client identifier" in server replies
> > >
> > > On Mon, 7 Jul 2003 narasimha.nelakuditi@nokia.com wrote:
> > > > Hi, If the client is setting "client identifier" but not
> > >
> > > "client hardware addr" in the messages that it is sending to
> > > server, server is supposed to identify it with "client
> > > identifier". But as per RFC2131, server MUST NOT fill "client
> > > identifier" option in OFFER and ACK messages. If this is the
> > > case, how is client supposed to validate the response (as
> > > 'xid' alone is not sufficient)???
> > >
> > > Why? An xid is a 32-bit unsigned integer. That's about as many IP
> > > addresses as are possibly with IPv4. Unless you're picking your
> > > xid badly, this shouldn't be a problem.
> > >
> > > Also, unless the client requests broadcasts with the broadcast
> > > bit, the server will be unicasting replies to it. The MAC
> > > addresses with the xid should be sufficient.
> > >
> > > --
> > > Thamer Al-Harbash
> 
> 

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