DHCLuWorking Group L. HuangInternet Draft HuiInternet-Draft H. Deng Intended status: Informational China Mobile Expires:April 18,September 5, 2010 March 4, 2010October 19, 2009DHCP option including Multiple Relay Agents' Informationdraft-huang-dhc-multiple-relay-agents-option-00.txtdraft-huang-dhc-multiple-relay-agents-option-01 Abstract RFC 3046 allows only the first Relay Agent to append Relay Agent Information option. In some networks, both Layer 2 Relay Agents and Layer 3 Relay Agents are deployed and their information is necessary for DHCP packets forwarding and DHCP server's policy designing described as [I-D.huang-dhc-relay-ps]. This document defines new sub-options for Relay Agent Information option (option 82) and describes how multiple relay agents add their information into option 82. Status of this Memo This Internet-Draft is submitted to IETF in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents asInternet-Drafts.Internet- Drafts. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." The list of current Internet-Drafts can be accessed athttp://www.ietf.org/ietf/1id-abstracts.txthttp://www.ietf.org/ietf/1id-abstracts.txt. The list of Internet-Draft Shadow Directories can be accessed athttp://www.ietf.org/shadow.htmlhttp://www.ietf.org/shadow.html. This Internet-Draft will expire onApril 19,September 5, 2010. Copyright Notice Copyright (c)20092010 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of thisdocument (http://trustee.ietf.org/license-info).document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.Abstract RFC 3046 allows onlyCode Components extracted from this document must include Simplified BSD License text as described in Section 4.e of thefirst Relay Agent to append Relay Agent Information option. In some networks, both Layer 2 Relay AgentsTrust Legal Provisions andLayer 3 Relay Agentsaredeployed and their information is necessary for DHCP packets forwarding and DHCP server's policy designing describedprovided without warranty as[4]. This document defines a DHCP option which can contain multiple relay agents' information and describes how it works.described in the BSD License. Table of Contents 1.Introduction......................................... 2Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3 2. DHCP option including Multiple Relay Agents' Information.... 3. . . 4 2.1.Mechanism....................................... 3 2.2.Format.......................................... . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.2. Mechanism . . . . . . . . . . . . . . . . . . . . . . . . . 4 3. SecurityConsiderations................................ 5Considerations . . . . . . . . . . . . . . . . . . . . 6 4. IANAConsiderations................................... 5Considerations . . . . . . . . . . . . . . . . . . . . . . 7 5.References.......................................... 5 5.1. Normative References.............................. 5 5.2.InformativeReferences............................ 5 Author's Addresses...................................... 6References . . . . . . . . . . . . . . . . . . . . 8 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 9 1. Introduction As defined in RFC 3046, Relay Agent Information option is inserted by the DHCP relay agent (or downstream network element) when forwarding client-originated DHCP packets to a DHCP server. Servers recognizing the Relay Agent Information option may use the information to implement IP address or other parameter assignment policies. The DHCP Server echoes the option backverbatimto the relay agent inserver- to-clientserver-to- client replies, and the relay agent strips the option before forwarding the reply to the client. RFC 3046 allows only one agent add its information with option 82. But in some scenarios as[4],[I-D.huang-dhc-relay-ps], multiply relay agents need to insert more information into the same DHCP message. This document definesa DHCPnew sub-options for Relay Agent Information optionwhich can contain multiple relay agents' information(option 82) and describes howit works.multiple relay agents add their information into option 82. 2. DHCP option including Multiple Relay Agents' Information 2.1.Mechanism This option is organized asFormat +-------+-----+-----+ |Code(x)| Len |Value| +-------+-----+-----+ Sub-option x: Agent ID. Describe asingle DHCP option that contains one or more sub-options. Each relayunique identifier for the agentcanwho insertathis set ofsub-options to convey its Information.sub-options. +-------+-------+ |Code(y)| Len(0)| +-------+-------+ Sub-option y: Identify the end of information of one device. 2.2. Mechanism ------- +-----------+ +-----------+ /// \\\ +------+ +------+ |Layer 2 | |Layer 3 | | | |DHCP | |Client+--+Relay Agent+--+Relay Agent+--+ Network +--+Server| +------+ +-----------+ +-----------+ | | +------+ \\\ /// -------Figure 1 Network ScenarioAs shown infigure 1,above figure, it's a most popular network scenario where option including Multiple Relay Agents' Information is necessary. Based on the demandof the new Relay Agent Information optionas[4], this option works[I-D.huang-dhc-relay-ps], agents work as following:1.(1) An initiating client sends a DHCP discovery packet.2.(2) Layer 2 relay agent receives the discovery packet withoutany options defined in this document.option 82. So it insertsa newan optionin which a set of sub-options convey the layer 2 relay agent's necessary information.82 as [RFC3046]. After that, the discovery packet is forwarded to the appropriate port.3.(3) Layer 3 relay agent receives the discovery packet and check out that it already containsa relay agent informationan option 82. Firstly it adds an sub-option y defined inthis document. So it just insert a set of sub-optionssection 2.2 into the existing optionto convey82 following sub- options added by layer 2 agent. And then it adds itsown necessary information.agent ID sub- option(x), circuit ID sub-option and end ID sub-option(y) into the existing option 82. After that, the discovery packet is forwarded and reaches DHCP server directly or through a network.4.(4) DHCP server handles the discovery packetas normaland could carry out flexible IP assigning or other policies based on the information of optiondefined82 described in this document. After that DHCP server reply a DHCP response packet containing the original option 82 carried in the corresponding discovery packet.5.(5) Layer 3 relay agents quickly get the right outgoing interface based on the information in the option 82 and forward the response packet after deletingits set of sub-options. 6.sub-options it added before. (6) Layer 2 relay agents quickly get the right outgoing interface based on the information in the option 82 and forward the response packet.Because there is no other agent's information left in the option, so in this case layerLayer 2 relay agentdeletedeletes the whole option 82 before forwarding the packet.2.2. Format Option format: +-------+-----+-----+ |Code(x)| Len |Value| +-------+-----+-----+ This option use a new DHCP option code "x". Value: +-----------+-----------+-----------+-----------+ |sub-option1|sub-option2|sub-option3|sub-option4| +-+--+------+-+--+------+-+--+------+-+--+------+ |1|N1|value1|2|N2|value2|3|N3|value3|4|N4|value4|->a Set of sub-options +-+--+------+-+--+------+-+--+------+-+--+------+ / ... \ | Multiple sets of sub-options | \ ... / +-+--+------+-+--+------+-+--+------+-+--+------+ |1|N1|value1|2|N2|value2|3|N3|value3|4|N4|value4| +-+--+------+-+--+------+-+--+------+-+--+------+ Sub-option1 Agent level. Describe the order of agent who insert this set of sub-options. For example, in the case of figure 1, layer 2If there are more relayagent's level is 1 because it is the closest agent to the clientagents between Layer 2 andit will be the firstLayer 3 relay agentwho insertor between Layer 3 relay agentinformation. Sub-option2 Agent ID. Describe a unique identifier forand DHCP server, theagent who insert this set of sub-options. Sub-option3 IP address. Describe IP address ofthird and theagent who insert this set of sub-options. For a pure layer 2 agent, this fieldfollowing relay agents couldbe 0.0.0.0. Sub-option4 Downstream interface. Describeonly add their agent ID sub- option(x), circuit ID sub-option and end ID sub-option(y) into thereceiving interface ofexisting option 82 before forwarding theDHCPdiscovery packet upward. The processing ofthe agent who insert this set of sub-options.replay packet from DHCP server to client is similar as above. 3. Security Considerations This document doesn't propose any new protocol. 4. IANA Considerations This document requiresanewnumbernumbers forDHCP optionsub-option code x and y described in section2.2.2.1. 5. Informative References5.1. Normative References [1] R.[I-D.huang-dhc-relay-ps] Huang, L., Deng, H., Kurapati, P., and B. Joshi, "Problem Statement for DHCP Relay Agent", draft-huang-dhc-relay-ps-00 (work in progress), July 2009. [RFC2131] Droms,Bucknell University,R., "Dynamic Host Configuration Protocol", RFC 2131, March 1997.[2] S.[RFC2132] Alexander,Silicon Graphics, Inc.,S. and R. Droms, "DHCP Options and BOOTP Vendor Extensions", RFC 2132, March 1997.[3] M.[RFC3046] Patrick,Motorola BCS,M., "DHCP Relay Agent Information Option", RFC 3046, January 2001.5.2. Informative References [4] L. Huang, H. Deng, China Mobile, "Problem Statement for DHCP Relay Agent", draft-huang-dhc-relay-ps-00, July 2009. Author'sAuthors' Addresses Lu Huang China Mobile53A,Xibianmennei Ave., Xuanwu District,Unit2, 28 Xuanwumenxi Ave,Xuanwu District Beijing 100053 China Email: huanglu@chinamobile.com Hui Deng China Mobile53A,Xibianmennei Ave., Xuanwu District,Unit2, 28 Xuanwumenxi Ave,Xuanwu District Beijing 100053 China Email:denghui02@gmail.comdenghui@chinamobile.com