Re: [dhcwg] message format

Ralph Droms <rdroms@cisco.com> Sat, 20 April 2002 12:01 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 IAA01209 for <dhcwg-archive@odin.ietf.org>; Sat, 20 Apr 2002 08:01:28 -0400 (EDT)
Received: (from daemon@localhost) by optimus.ietf.org (8.9.1a/8.9.1) id IAA25868 for dhcwg-archive@odin.ietf.org; Sat, 20 Apr 2002 08:01:30 -0400 (EDT)
Received: from optimus.ietf.org (localhost [127.0.0.1]) by optimus.ietf.org (8.9.1a/8.9.1) with ESMTP id HAA25389; Sat, 20 Apr 2002 07:59:18 -0400 (EDT)
Received: from ietf.org (odin [132.151.1.176]) by optimus.ietf.org (8.9.1a/8.9.1) with ESMTP id HAA25362 for <dhcwg@optimus.ietf.org>; Sat, 20 Apr 2002 07:59:14 -0400 (EDT)
Received: from funnel.cisco.com (funnel.cisco.com [161.44.168.79]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA01104 for <dhcwg@ietf.org>; Sat, 20 Apr 2002 07:59:12 -0400 (EDT)
Received: from rdroms-w2k.cisco.com (rtp-vpn1-159.cisco.com [10.82.224.159]) by funnel.cisco.com (8.8.5-Cisco.1/8.6.5) with ESMTP id HAA02375; Sat, 20 Apr 2002 07:58:32 -0400 (EDT)
Message-Id: <4.3.2.7.2.20020419181536.00ba55e0@funnel.cisco.com>
X-Sender: rdroms@funnel.cisco.com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Sat, 20 Apr 2002 07:58:28 -0400
To: Aries Fajar <ariesmun@cbn.net.id>
From: Ralph Droms <rdroms@cisco.com>
Subject: Re: [dhcwg] message format
Cc: dhcwg <dhcwg@ietf.org>
In-Reply-To: <3CBE54BE.215550C5@cbn.net.id>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format="flowed"
Sender: dhcwg-admin@ietf.org
Errors-To: dhcwg-admin@ietf.org
X-Mailman-Version: 1.0
Precedence: bulk
List-Id: <dhcwg.ietf.org>
X-BeenThere: dhcwg@ietf.org

Aries,

The DHCPv6 message header has been simplified to avoid carrying redundant 
information.  The address to which the server should reply to a DHCPv6 
message is always available as the source address in the IPv6 header.  When 
the client and server are on the same link, the source address is an 
address belonging to the client, so the server can reply directly to the 
client.

When the client and server are on different links, the message to the 
server is forwarded by a relay agent.  In this case, the source address in 
the message received by the server is an address belonging to the relay 
agent.  The server sends its reply back to the relay agent, which then 
forwards the reply back to the client.

For example, in draft-ietf-dhc-dhcpv6-23.txt, at the end of section 18.2.2. 
this text specifies how a server sends a Solicit message:

18.2.2. Creation and transmission of Advertise messages

    [...]

    If the Solicit message was received directly by the server, the
    server unicasts the Advertise message directly to the client using
    the address in the source address field from the IP datagram in
    which the Solicit message was received.  The Advertise message MUST
    be unicast through the interface on which the Solicit message was
    received.

    If the Solicit message was received in a Relay-forward message,
    the server constructs a Relay-reply message with the Advertise
    message in the payload of a "server-message" option.  The server
    unicasts the Relay-reply message directly to the relay agent using
    the address in the source address field from the IP datagram in which
    the Relay-forward message was received.




- Ralph Droms

At 12:08 PM 4/18/2002 +0700, Aries Fajar wrote:
>Dear all,
>I'm new to dhcpv6 and still learning it. I'm confuse about the dhcp
>message.
>Can u give the full message dhcp request from the client to the server
>as an example ?
>draft-ietf-dhc-dhcpv6-23.txt is a little bit confusing about message
>format.
>I read a book about IPV6 that contains dhcpv6 ( very old, 1996 ) and i
>understand
>many have changed since then...
>so, from all my knowledge that i have acquired, this is my thinking
>about message request
>
>------------------------------------------------
>|     6    |   4   |    flow label : 0         |
>------------------------------------------------
>|    len:32   |  nxt : 17 | hops : 9           |
>------------------------------------------------a
>|                                              |
>|       Source :                               |
>|                                              |
>|----------------------------------------------
>|                                              |
>|        Dest : DHCP Server                    |
>|                                              |
>----------------------------------------------
>|      src port : 546      |   dst port : 547  |
>----------------------------------------------
>|   length : 96              |    checksum     |
>----------------------------------------------
>|    request                 |   12345         |
>----------------------------------------------
>|     options                                  |
>----------------------------------------------
>
>so, what's in the options field ? after reading the RFC, there is no
>client network address
>in the udp message. how can the server send the reply message to the
>client, if it doesn't
>know about the client address ?
>
>I read the old draft ( draft-ietf-dhc-dhcpv6-15.txt ) and i find a
>more clearly message format. Here it is:
>
>
>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>|  msg-type = 3 |C|R|  reserved |  transaction-ID   |
>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
>|       client's link-local address                 |
>|              (16 octets)                          |
>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>|             relay-address                         |
>|              (16 octets)                          |
>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>|             server-address                        |
>|              (16 octets)                          |
>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>|  extensions (variable number and length)   ....   |
>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>
>where is it now ? is it somewhere at the options field ?
>
>
>Please help
>Thanks
>
>Aries Fajar
>Electrical Engineering Department
>Trisakti University
>Indonesia
>
>
>_______________________________________________
>dhcwg mailing list
>dhcwg@ietf.org
>https://www1.ietf.org/mailman/listinfo/dhcwg


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