Network Working Group                                        J. Laganier
Request for Comments: 5203                              DoCoMo Euro-Labs
Category: Experimental                                        T. Koponen
                                                                    HIIT
                                                               L. Eggert
                                                                   Nokia
                                                              April 2008
        
Network Working Group                                        J. Laganier
Request for Comments: 5203                              DoCoMo Euro-Labs
Category: Experimental                                        T. Koponen
                                                                    HIIT
                                                               L. Eggert
                                                                   Nokia
                                                              April 2008
        

Host Identity Protocol (HIP) Registration Extension

主机标识协议(HIP)注册扩展

Status of This Memo

关于下段备忘

This memo defines an Experimental Protocol for the Internet community. It does not specify an Internet standard of any kind. Discussion and suggestions for improvement are requested. Distribution of this memo is unlimited.

这份备忘录为互联网社区定义了一个实验性协议。它没有规定任何类型的互联网标准。要求进行讨论并提出改进建议。本备忘录的分发不受限制。

Abstract

摘要

This document specifies a registration mechanism for the Host Identity Protocol (HIP) that allows hosts to register with services, such as HIP rendezvous servers or middleboxes.

本文档指定了主机标识协议(HIP)的注册机制,该机制允许主机向服务(如HIP会合服务器或中间盒)注册。

1. Introduction
1. 介绍

This document specifies an extension to the Host Identity Protocol (HIP) [RFC5201]. The extension provides a generic means for a host to register with a service. The service may, for example, be a HIP rendezvous server [RFC5204] or a middlebox [RFC3234].

本文件规定了主机标识协议(HIP)[RFC5201]的扩展。扩展为主机注册服务提供了一种通用方法。例如,该服务可以是髋关节会合服务器[RFC5204]或中间盒[RFC3234]。

This document makes no further assumptions about the exact type of service. Likewise, this document does not specify any mechanisms to discover the presence of specific services or means to interact with them after registration. Future documents may describe those operations.

本文件对服务的确切类型不作进一步假设。同样,本文档没有指定任何机制来发现特定服务的存在,也没有指定注册后与这些服务交互的方法。未来的文件可能会描述这些操作。

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [RFC2119].

本文件中的关键词“必须”、“不得”、“要求”、“应”、“不应”、“应”、“不应”、“建议”、“可”和“可选”应按照RFC 2119[RFC2119]中所述进行解释。

2. Terminology
2. 术语

In addition to the terminology defined in the HIP Architecture [RFC4423], the HIP specification [RFC5201], and the HIP Rendezvous Extension [RFC5204], this document defines and uses the following terms:

除了HIP体系结构[RFC4423]、HIP规范[RFC5201]和HIP会合扩展[RFC5204]中定义的术语外,本文件定义并使用以下术语:

Requester: a HIP node registering with a HIP registrar to request registration for a service.

请求者:向HIP注册器注册以请求服务注册的HIP节点。

Registrar: a HIP node offering registration for one or more services.

注册器:为一个或多个服务提供注册的髋关节节点。

Service: a facility that provides requesters with new capabilities or functionalities operating at the HIP layer. Examples include firewalls that support HIP traversal or HIP rendezvous servers.

服务:为请求者提供在HIP层操作的新功能的设施。示例包括支持髋关节穿越或髋关节会合服务器的防火墙。

Registration: shared state stored by a requester and a registrar, allowing the requester to benefit from one or more HIP services offered by the registrar. Each registration has an associated finite lifetime. Requesters can extend established registrations through re-registration (i.e., perform a refresh).

注册:由请求者和注册者存储的共享状态,允许请求者从注册者提供的一个或多个HIP服务中受益。每个注册都有一个相关的有限生存期。请求者可以通过重新注册(即执行刷新)来扩展已建立的注册。

Registration Type: an identifier for a given service in the registration protocol. For example, the rendezvous service is identified by a specific registration type.

注册类型:注册协议中给定服务的标识符。例如,会合服务由特定的注册类型标识。

3. HIP Registration Extension Overview
3. 髋关节注册扩展概述

This document does not specify the means by which a requester discovers the availability of a service, or how a requester locates a registrar. After a requester has discovered a registrar, it either initiates HIP base exchange or uses an existing HIP association with the registrar. In both cases, registrars use additional parameters, which the remainder of this document defines, to announce their quality and grant or refuse registration. Requesters use corresponding parameters to register with the service. Both the registrar and the requester MAY also include in the messages exchanged additional HIP parameters specific to the registration type implicated. Other documents will define parameters and how they shall be used. The following sections describe the differences between this registration handshake and the standard HIP base exchange [RFC5201].

本文档未指定请求者发现服务可用性的方法,也未指定请求者如何查找注册器。在请求者发现注册器后,它要么启动HIP-base交换,要么使用与注册器的现有HIP关联。在这两种情况下,注册人使用本文件其余部分定义的其他参数来宣布其质量并授予或拒绝注册。请求者使用相应的参数向服务注册。注册者和请求者还可以在交换的消息中包括特定于所涉及的注册类型的附加HIP参数。其他文件将定义参数及其使用方式。以下各节描述了此注册握手与标准髋关节基底交换[RFC5201]之间的差异。

3.1. Registrar Announcing Its Ability
3.1. 注册官宣布其能力

A host that is capable and willing to act as a registrar SHOULD include a REG_INFO parameter in the R1 packets it sends during all base exchanges. If it is currently unable to provide services due to transient conditions, it SHOULD include an empty REG_INFO, i.e., one with no services listed. If services can be provided later, it SHOULD send UPDATE packets indicating the current set of services available in a new REG_INFO parameter to all hosts it is associated with.

能够并愿意充当注册器的主机应在其在所有基本交换期间发送的R1数据包中包含REG_INFO参数。如果由于瞬态条件,当前无法提供服务,则应包含空的注册信息,即未列出任何服务。如果以后可以提供服务,它应该向与其关联的所有主机发送更新数据包,该数据包在新的REG_INFO参数中指示当前可用的服务集。

3.2. Requester Requesting Registration
3.2. 请求注册者

To request registration with a service, a requester constructs and includes a corresponding REG_REQUEST parameter in an I2 or UPDATE packet it sends to the registrar.

为了向服务请求注册,请求者在发送给注册者的I2或更新包中构造并包括相应的REG_请求参数。

If the requester has no HIP association established with the registrar, it SHOULD send the REG_REQUEST at the earliest possibility, i.e., in the I2 packet. This minimizes the number of packets that need to be exchanged with the registrar. A registrar MAY end a HIP association that does not carry a REG_REQUEST by including a NOTIFY with the type REG_REQUIRED in the R2. In this case, no HIP association is created between the hosts. The REG_REQUIRED notification error type is 51.

如果请求者未与注册者建立HIP关联,则应尽早发送REG_请求,即在I2数据包中发送。这将最小化需要与注册器交换的数据包的数量。注册官可以通过包含R2中要求的REG_类型的通知来结束未携带REG_请求的HIP协会。在这种情况下,不会在主机之间创建髋部关联。REG_必需的通知错误类型为51。

3.3. Registrar Granting or Refusing Service(s) Registration
3.3. 注册官批准或拒绝服务注册

Once registration has been requested, the registrar is able to authenticate the requester based on the host identity included in I2. It then verifies that the host identity is authorized to register with the requested service(s), based on local policies. The details of this authorization procedure depend on the type of requested service(s) and on the local policies of the registrar, and are therefore not further specified in this document.

一旦请求了注册,注册器就能够根据I2中包含的主机标识对请求者进行身份验证。然后,它根据本地策略验证主机标识是否有权向请求的服务注册。本授权程序的细节取决于所请求服务的类型和注册官的本地政策,因此本文件中没有进一步规定。

After authorization, the registrar includes a REG_RESPONSE parameter in its response, which contains the service type(s) for which it has authorized registration, and zero or more REG_FAILED parameters containing the service type(s) for which it has not authorized registration or registration has failed for other reasons. This response can be either an R2 or an UPDATE message, respectively, depending on whether the registration was requested during the base exchange, or using an existing association. In particular, REG_FAILED with a failure type of zero indicates the service(s) type(s) that require further credentials for registration.

授权后,注册器在其响应中包含一个REG_响应参数,该参数包含其已授权注册的服务类型,以及零个或多个REG_失败参数,该参数包含其未授权注册或因其他原因注册失败的服务类型。此响应可以是R2消息,也可以是更新消息,具体取决于是在基本交换期间请求注册,还是使用现有关联。特别是,REG_FAILED(失败类型为零)表示需要更多凭据才能注册的服务类型。

If the registrar requires further authorization and the requester has additional credentials available, the requester SHOULD try to register again with the service after the HIP association has been established. The precise means of establishing and verifying credentials are beyond the scope of this document and are expected to be defined in other documents.

如果注册者需要进一步授权,并且请求者具有其他可用凭据,则请求者应在HIP关联建立后尝试再次向服务注册。建立和验证凭证的准确方法超出了本文件的范围,预计将在其他文件中定义。

Successful processing of a REG_RESPONSE parameter creates registration state at the requester. In a similar manner, successful processing of a REG_REQUEST parameter creates registration state at the registrar and possibly at the service. Both the requester and registrar can cancel a registration before it expires, if the services afforded by a registration are no longer needed by the requester, or cannot be provided any longer by the registrar (for instance, because its configuration has changed).

成功处理REG_响应参数将在请求者处创建注册状态。以类似的方式,成功处理REG_请求参数会在注册器和服务上创建注册状态。如果请求者不再需要注册所提供的服务,或者注册者无法再提供服务(例如,因为其配置已更改),则请求者和注册者都可以在注册到期之前取消注册。

                 +-----+          I1          +-----+-----+
                 |     |--------------------->|     |  S1 |
                 |     |<---------------------|     |     |
                 |     |  R1(REG_INFO:S1,S2)  |     +-----+
                 | RQ  |                      |  R  |  S2 |
                 |     |    I2(REG_REQ:S1)    |     |     |
                 |     |--------------------->|     +-----+
                 |     |<---------------------|     |  S3 |
                 |     |    R2(REG_RESP:S1)   |     |     |
                 +-----+                      +-----+-----+
        
                 +-----+          I1          +-----+-----+
                 |     |--------------------->|     |  S1 |
                 |     |<---------------------|     |     |
                 |     |  R1(REG_INFO:S1,S2)  |     +-----+
                 | RQ  |                      |  R  |  S2 |
                 |     |    I2(REG_REQ:S1)    |     |     |
                 |     |--------------------->|     +-----+
                 |     |<---------------------|     |  S3 |
                 |     |    R2(REG_RESP:S1)   |     |     |
                 +-----+                      +-----+-----+
        

A requester (RQ) registers with a registrar (R) of services (S1) and (S2), with which it has no current HIP association.

请求者(RQ)向服务(S1)和(S2)的注册者(R)注册,其当前没有HIP关联。

                 +-----+                      +-----+-----+
                 |     |  UPDATE(REG_INFO:S)  |     |     |
                 |     |<---------------------|     |     |
                 | RQ  |--------------------->|  R  |  S  |
                 |     |  UPDATE(REG_REQ:S)   |     |     |
                 |     |  UPDATE(REG_RESP:S)  |     |     |
                 |     |<---------------------|     |     |
                 +-----+                      +-----+-----+
        
                 +-----+                      +-----+-----+
                 |     |  UPDATE(REG_INFO:S)  |     |     |
                 |     |<---------------------|     |     |
                 | RQ  |--------------------->|  R  |  S  |
                 |     |  UPDATE(REG_REQ:S)   |     |     |
                 |     |  UPDATE(REG_RESP:S)  |     |     |
                 |     |<---------------------|     |     |
                 +-----+                      +-----+-----+
        

A requester (RQ) registers with a registrar (R) of services (S), with which it currently has a HIP association established.

请求者(RQ)向服务注册者(R)注册,目前已与之建立HIP关联。

4. Parameter Formats and Processing
4. 参数格式和处理

This section describes the format and processing of the new parameters introduced by the HIP registration extension.

本节介绍髋部注册扩展引入的新参数的格式和处理。

4.1. Encoding Registration Lifetimes with Exponents
4.1. 用指数编码注册生存期

The HIP registration uses an exponential encoding of registration lifetimes. This allows compact encoding of 255 different lifetime values ranging from 4 ms to 178 days into an 8-bit integer field. The lifetime exponent field used throughout this document MUST be interpreted as representing the lifetime value 2^((lifetime - 64)/8) seconds.

髋部注册使用注册生存期的指数编码。这允许将255个不同的生存期值(从4毫秒到178天)压缩编码到一个8位整数字段中。本文档中使用的生存期指数字段必须解释为表示生存期值2^((生存期-64)/8)秒。

4.2. REG_INFO
4.2. 注册信息
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |             Type              |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Min Lifetime  | Max Lifetime  |  Reg Type #1  |  Reg Type #2  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      ...      |     ...       |  Reg Type #n  |               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    Padding    +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |             Type              |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | Min Lifetime  | Max Lifetime  |  Reg Type #1  |  Reg Type #2  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      ...      |     ...       |  Reg Type #n  |               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    Padding    +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Type 930 Length Length in octets, excluding Type, Length, and Padding. Min Lifetime Minimum registration lifetime. Max Lifetime Maximum registration lifetime. Reg Type The registration types offered by the registrar.

类型930长度八位字节,不包括类型、长度和填充。最小生存期最小注册生存期。最大生存期最大注册生存期。注册类型注册商提供的注册类型。

Other documents will define specific values for registration types. See Section 7 for more information.

其他文档将定义注册类型的特定值。更多信息请参见第7节。

Registrars include the parameter in R1 packets in order to announce their registration capabilities. The registrar SHOULD include the parameter in UPDATE packets when its service offering has changed. HIP_SIGNATURE_2 protects the parameter within the R1 packets.

注册器在R1数据包中包含该参数,以便宣布其注册功能。当注册器的服务产品发生变化时,注册器应在更新包中包含该参数。HIP_签名_2保护R1数据包内的参数。

4.3. REG_REQUEST
4.3. 注册请求
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |             Type              |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Lifetime    |  Reg Type #1  |  Reg Type #2  |  Reg Type #3  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      ...      |     ...       |  Reg Type #n  |               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    Padding    +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |             Type              |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Lifetime    |  Reg Type #1  |  Reg Type #2  |  Reg Type #3  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      ...      |     ...       |  Reg Type #n  |               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    Padding    +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Type 932 Length Length in octets, excluding Type, Length, and Padding. Lifetime Requested registration lifetime. Reg Type The preferred registration types in order of preference.

932型长度八位字节,不包括类型、长度和填充。生存期请求的注册生存期。Reg Type按优先顺序选择优先注册类型。

Other documents will define specific values for registration types. See Section 7 for more information.

其他文档将定义注册类型的特定值。更多信息请参见第7节。

A requester includes the REG_REQUEST parameter in I2 or UPDATE packets to register with a registrar's service(s). If the REG_REQUEST parameter is in an UPDATE packet, the registrar MUST NOT modify the registrations of registration types that are not listed in the parameter. Moreover, the requester MUST NOT include the parameter unless the registrar's R1 packet or latest received UPDATE packet has contained a REG_INFO parameter with the requested registration types.

请求者在I2中包含REG_请求参数,或更新数据包以向注册器的服务注册。如果REG_请求参数在更新数据包中,注册员不得修改参数中未列出的注册类型的注册。此外,请求者不得包含该参数,除非注册器的R1数据包或最新收到的更新数据包包含具有请求的注册类型的REG_INFO参数。

The requester MUST NOT include more than one REG_REQUEST parameter in its I2 or UPDATE packets, while the registrar MUST be able to process one or more REG_REQUEST parameters in received I2 or UPDATE packets.

请求者不得在其I2或更新数据包中包含多个REG_请求参数,而注册者必须能够处理接收到的I2或更新数据包中的一个或多个REG_请求参数。

When the registrar receives a registration with a lifetime that is either smaller or greater than the minimum or maximum lifetime, respectively, then it SHOULD grant the registration for the minimum or maximum lifetime, respectively.

当注册官收到的注册有效期分别小于或大于最小或最大有效期时,则注册官应分别授予最小或最大有效期的注册。

HIP_SIGNATURE protects the parameter within the I2 and UPDATE packets.

HIP_签名保护I2和更新数据包中的参数。

4.4. REG_RESPONSE
4.4. REG_响应
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |             Type              |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Lifetime    |  Reg Type #1  |  Reg Type #2  |  Reg Type #3  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      ...      |     ...       |  Reg Type #n  |               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    Padding    +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |             Type              |             Length            |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Lifetime    |  Reg Type #1  |  Reg Type #2  |  Reg Type #3  |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      ...      |     ...       |  Reg Type #n  |               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    Padding    +
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Type 934 Length Length in octets, excluding Type, Length, and Padding. Lifetime Granted registration lifetime. Reg Type The granted registration types in order of preference.

934类型长度八位字节,不包括类型、长度和填充。终身授予注册终身。Reg Type按优先顺序指定已授予的注册类型。

Other documents will define specific values for registration types. See Section 7 for more information.

其他文档将定义注册类型的特定值。更多信息请参见第7节。

The registrar SHOULD includes an REG_RESPONSE parameter in its R2 or UPDATE packet only if a registration has successfully completed.

仅当注册成功完成时,注册器才应在其R2或更新数据包中包含REG_响应参数。

The registrar MUST NOT include more than one REG_RESPONSE parameter in its R2 or UPDATE packets, while the requester MUST be able to process one or more REG_RESPONSE parameters in received R2 or UPDATE packets.

注册器不得在其R2或更新数据包中包含多个REG_响应参数,而请求者必须能够处理接收到的R2或更新数据包中的一个或多个REG_响应参数。

The requester MUST be prepared to receive any registration lifetime, including ones beyond the minimum and maximum lifetime indicated in the REG_INFO parameter. It MUST NOT expect that the returned lifetime will be the requested one, even when the requested lifetime falls within the announced minimum and maximum.

请求者必须准备好接收任何注册生存期,包括超出REG_INFO参数中指示的最小和最大生存期的注册生存期。它不能期望返回的生存期将是请求的生存期,即使请求的生存期在宣布的最小值和最大值范围内。

HIP_SIGNATURE protects the parameter within the R2 and UPDATE packets.

HIP_签名保护R2和更新数据包中的参数。

4.5. REG_FAILED
4.5. 注册失败
     0                   1                   2                   3
     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |             Type              |             Length            |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    | Failure Type  |  Reg Type #1  |  Reg Type #2  |  Reg Type #3  |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |      ...      |     ...       |  Reg Type #n  |               |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    Padding    +
    |                                                               |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        
     0                   1                   2                   3
     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |             Type              |             Length            |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    | Failure Type  |  Reg Type #1  |  Reg Type #2  |  Reg Type #3  |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |      ...      |     ...       |  Reg Type #n  |               |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+    Padding    +
    |                                                               |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Type 936 Length Length in octets, excluding Type, Length, and Padding. Failure Type Reason for failure. Reg Type The registration types that failed with the specified reason.

936型长度八位字节,不包括类型、长度和填充。故障类型故障原因。Reg Type由于指定原因失败的注册类型。

    Failure Type    Reason
    ------------    --------------------------------------------
    0               Registration requires additional credentials
    1               Registration type unavailable
    2-200           Unassigned
    201-255         Reserved by IANA for private use
        
    Failure Type    Reason
    ------------    --------------------------------------------
    0               Registration requires additional credentials
    1               Registration type unavailable
    2-200           Unassigned
    201-255         Reserved by IANA for private use
        

Other documents will define specific values for registration types. See Section 7 for more information.

其他文档将定义注册类型的特定值。更多信息请参见第7节。

A failure type of zero means a registrar requires additional credentials to authorize a requester to register with the registration types listed in the parameter. A failure type of one means that the requested service type is unavailable at the registrar. Failure types other than zero (0) and one (1) have not been defined.

失败类型为零意味着注册者需要额外的凭证来授权请求者使用参数中列出的注册类型进行注册。故障类型为1表示请求的服务类型在注册中心不可用。未定义零(0)和一(1)以外的故障类型。

The registrar SHOULD include the REG_FAILED parameter in its R2 or UPDATE packet, if registration with the registration types listed has not completed successfully and a requester is asked to try again with additional credentials.

如果使用列出的注册类型注册未成功完成,并且请求者被要求使用其他凭据重试,则注册器应在其R2或更新数据包中包含REG_FAILED参数。

HIP_SIGNATURE protects the parameter within the R2 and UPDATE packets.

HIP_签名保护R2和更新数据包中的参数。

5. Establishing and Maintaining Registrations
5. 建立和维护注册

Establishing and/or maintaining a registration may require additional information not available in the transmitted REG_REQUEST or REG_RESPONSE parameters. Therefore, registration type definitions MAY define dependencies for HIP parameters that are not defined in this document. Their semantics are subject to the specific registration type specifications.

建立和/或维护注册可能需要传输的注册请求或注册响应参数中不可用的附加信息。因此,注册类型定义可能会定义本文档中未定义的HIP参数的相关性。它们的语义受特定注册类型规范的约束。

The minimum lifetime both registrars and requesters MUST support is 10 seconds, while they SHOULD support a maximum lifetime of 120 seconds, at least. These values define a baseline for the specification of services based on the registration system. They were chosen to be neither too short nor too long, and to accommodate for existing timeouts of state established in middleboxes (e.g., NATs and firewalls.)

注册者和请求者必须支持的最短生存期为10秒,而他们应该支持的最长生存期至少为120秒。这些值定义了基于注册系统的服务规范基线。它们被选择为既不太短也不太长,并适应在中间盒(如NAT和防火墙)中建立的现有状态超时

A zero lifetime is reserved for canceling purposes. Requesting a zero lifetime for a registration type is equal to canceling the registration of that type. A requester MAY cancel a registration before it expires by sending a REG_REQ to the registrar with a zero lifetime. A registrar SHOULD respond and grant a registration with a zero lifetime. A registrar (and an attached service) MAY cancel a registration before it expires, at its own discretion. However, if it does so, it SHOULD send a REG_RESPONSE with a zero lifetime to all registered requesters.

保留零生存期用于取消目的。为注册类型请求零生存期等于取消该类型的注册。请求者可以在注册到期之前通过向注册者发送一个生命周期为零的REG_REQ来取消注册。注册员应响应并授予零生存期的注册。注册官(及随附服务)可自行决定在注册到期前取消注册。但是,如果它这样做,它应该向所有注册的请求者发送一个生存期为零的REG_响应。

6. Security Considerations
6. 安全考虑

This section discusses the threats on the HIP registration protocol, and their implications on the overall security of HIP. In particular, it argues that the extensions described in this document do not introduce additional threats to HIP.

本节讨论HIP注册协议面临的威胁及其对HIP整体安全性的影响。特别是,它认为本文件中描述的扩展不会给HIP带来额外的威胁。

The extensions described in this document rely on the HIP base exchange and do not modify its security characteristics, e.g., digital signatures or HMAC. Hence, the only threat introduced by these extensions is related to the creation of soft registration state at the registrar.

本文档中描述的扩展依赖于HIP-base交换,不修改其安全特性,例如数字签名或HMAC。因此,这些扩展带来的唯一威胁与在注册处创建软注册状态有关。

Registrars act on a voluntary basis and are willing to accept being a responder and then to create HIP associations with a number of previously unknown hosts. Because they have to store HIP association state anyway, adding a certain amount of time-limited HIP registration state should not introduce any serious additional threats, especially because HIP registrars may cancel registrations at any time at their own discretion, e.g., because of resource constraints during an attack.

登记员在自愿的基础上行动,并愿意接受作为响应者,然后与一些以前未知的宿主建立髋关节协会。因为他们无论如何都必须存储髋部关联状态,添加一定数量的有时间限制的髋部注册状态不应带来任何严重的额外威胁,特别是因为髋部注册者可以随时自行决定取消注册,例如,由于攻击期间的资源限制。

7. IANA Considerations
7. IANA考虑

This section is to be interpreted according to the Guidelines for Writing an IANA Considerations Section in RFCs [RFC2434].

本节将根据RFCs[RFC2434]中编写IANA注意事项部分的指南进行解释。

This document updates the IANA Registry for HIP Parameter Types by assigning new HIP Parameter Types values for the new HIP Parameters defined in this document:

本文档通过为本文档中定义的新HIP参数分配新的HIP参数类型值来更新HIP参数类型的IANA注册表:

o REG_INFO (defined in Section 4.2)

o 注册信息(定义见第4.2节)

o REG_REQUEST (defined in Section 4.3)

o 注册申请(定义见第4.3节)

o REG_RESPONSE (defined in Section 4.4)

o REG_响应(定义见第4.4节)

o REG_FAILED (defined in Section 4.5)

o 注册失败(定义见第4.5节)

IANA has allocated the Notify Message Type code 51 for the REG_REQUIRED notification error type in the Notify Message Type registry.

IANA已为Notify Message Type注册表中的REG_REQUIRED notification error类型分配了Notify Message Type代码51。

IANA has opened a new registry for registration types. This document does not define registration types but makes the following reservations:

IANA为注册类型打开了一个新的注册表。本文件未定义注册类型,但作出以下保留:

   Reg Type        Service
   --------        -------
   0-200           Unassigned
   201-255         Reserved by IANA for private use
        
   Reg Type        Service
   --------        -------
   0-200           Unassigned
   201-255         Reserved by IANA for private use
        

Adding a new type requires new IETF specifications.

添加新类型需要新的IETF规范。

IANA has opened a new registry for registration failure types. This document makes the following failure type definitions and reservations:

IANA已经为注册失败类型打开了一个新的注册表。本文件规定了以下故障类型定义和保留:

   Failure Type    Reason
   ------------    --------------------------------------------
   0               Registration requires additional credentials
   1               Registration type unavailable
   2-200           Unassigned
   201-255         Reserved by IANA for private use
        
   Failure Type    Reason
   ------------    --------------------------------------------
   0               Registration requires additional credentials
   1               Registration type unavailable
   2-200           Unassigned
   201-255         Reserved by IANA for private use
        

Adding a new type requires new IETF specifications.

添加新类型需要新的IETF规范。

8. Acknowledgments
8. 致谢

The following people (in alphabetical order) have provided thoughtful and helpful discussions and/or suggestions that have helped to improve this document: Jeffrey Ahrenholz, Miriam Esteban, Mika Kousa, Pekka Nikander, and Hannes Tschofenig.

以下人员(按字母顺序)提供了有助于改进本文件的深思熟虑和有益的讨论和/或建议:Jeffrey Ahrenholz、Miriam Esteban、Mika Kousa、Pekka Nikander和Hannes Tschofenig。

9. References
9. 工具书类
9.1. Normative References
9.1. 规范性引用文件

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.

[RFC2119]Bradner,S.,“RFC中用于表示需求水平的关键词”,BCP 14,RFC 2119,1997年3月。

[RFC2434] Narten, T. and H. Alvestrand, "Guidelines for Writing an IANA Considerations Section in RFCs", BCP 26, RFC 2434, October 1998.

[RFC2434]Narten,T.和H.Alvestrand,“在RFCs中编写IANA注意事项部分的指南”,BCP 26,RFC 2434,1998年10月。

[RFC5201] Moskowitz, R., Nikander, P., Jokela, P., Ed., and T. Henderson, "Host Identity Protocol", RFC 5201, April 2008.

[RFC5201]Moskowitz,R.,Nikander,P.,Jokela,P.,Ed.,和T.Henderson,“主机身份协议”,RFC 52012008年4月。

9.2. Informative References
9.2. 资料性引用

[RFC3234] Carpenter, B. and S. Brim, "Middleboxes: Taxonomy and Issues", RFC 3234, February 2002.

[RFC3234]Carpenter,B.和S.Brim,“中间盒:分类和问题”,RFC 32342002年2月。

[RFC4423] Moskowitz, R. and P. Nikander, "Host Identity Protocol (HIP) Architecture", RFC 4423, May 2006.

[RFC4423]Moskowitz,R.和P.Nikander,“主机身份协议(HIP)体系结构”,RFC 4423,2006年5月。

[RFC5204] Laganier, J. and L. Eggert, "Host Identity Protocol (HIP) Rendezvous Extension", RFC 5204, April 2008.

[RFC5204]Laganier,J.和L.Eggert,“主机身份协议(HIP)会合扩展”,RFC 52042008年4月。

Authors' Addresses

作者地址

Julien Laganier DoCoMo Communications Laboratories Europe GmbH Landsberger Strasse 312 Munich 80687 Germany

Julien Laganier DoCoMo通信实验室欧洲有限公司兰德斯伯格大街312慕尼黑80687德国

   Phone: +49 89 56824 231
   EMail: julien.ietf@laposte.net
   URI:   http://www.docomolab-euro.com/
        
   Phone: +49 89 56824 231
   EMail: julien.ietf@laposte.net
   URI:   http://www.docomolab-euro.com/
        

Teemu Koponen Helsinki Institute for Information Technology Advanced Research Unit (ARU) P.O. Box 9800 Helsinki FIN-02015-HUT Finland

Teemu Koponen赫尔辛基信息技术高级研究所(ARU)邮政信箱9800赫尔辛基FIN-02015-HUT芬兰

   Phone: +358 9 45 1
   EMail: teemu.koponen@iki.fi
   URI:   http://www.hiit.fi/
        
   Phone: +358 9 45 1
   EMail: teemu.koponen@iki.fi
   URI:   http://www.hiit.fi/
        

Lars Eggert Nokia Research Center P.O. Box 407 Nokia Group 00045 Finland

芬兰诺基亚集团00045诺基亚研究中心邮政信箱407

   Phone: +358 50 48 24461
   EMail: lars.eggert@nokia.com
   URI:   http://research.nokia.com/people/lars_eggert/
        
   Phone: +358 50 48 24461
   EMail: lars.eggert@nokia.com
   URI:   http://research.nokia.com/people/lars_eggert/
        

Full Copyright Statement

完整版权声明

Copyright (C) The IETF Trust (2008).

版权所有(C)IETF信托基金(2008年)。

This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights.

本文件受BCP 78中包含的权利、许可和限制的约束,除其中规定外,作者保留其所有权利。

This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

本文件及其包含的信息以“原样”为基础提供,贡献者、他/她所代表或赞助的组织(如有)、互联网协会、IETF信托基金和互联网工程任务组不承担任何明示或暗示的担保,包括但不限于任何保证,即使用本文中的信息不会侵犯任何权利,或对适销性或特定用途适用性的任何默示保证。

Intellectual Property

知识产权

The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; nor does it represent that it has made any independent effort to identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79.

IETF对可能声称与本文件所述技术的实施或使用有关的任何知识产权或其他权利的有效性或范围,或此类权利下的任何许可可能或可能不可用的程度,不采取任何立场;它也不表示它已作出任何独立努力来确定任何此类权利。有关RFC文件中权利的程序信息,请参见BCP 78和BCP 79。

Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr.

向IETF秘书处披露的知识产权副本和任何许可证保证,或本规范实施者或用户试图获得使用此类专有权利的一般许可证或许可的结果,可从IETF在线知识产权存储库获取,网址为http://www.ietf.org/ipr.

The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf-ipr@ietf.org.

IETF邀请任何相关方提请其注意任何版权、专利或专利申请,或其他可能涵盖实施本标准所需技术的专有权利。请将信息发送至IETF的IETF-ipr@ietf.org.