RFC 4064 PROPOSED STANDARD MOBILE IP · EXPERIMENTS · IANA

Mobile IPv4 Experimental: Experimental Message, Extensions, and Error Codes for Mobile IPv4

Spare message, extension and error-code numbers in Mobile IPv4, set aside so experiments do not collide with real assignments.

On rfc-editor.org ↗
PUBLISHED
May 2005
AUTHORS
A. Patel, K. Leung
STREAM
IETF
EXPERIMENTAL MESSAGE TYPE
255
NON-SKIPPABLE EXTENSION TYPE
127
SKIPPABLE EXTENSION TYPE
255
FA / HA ERROR CODES
127 / 192
UDP DESTINATION PORT
434
DOI
10.17487/RFC4064

RFC text

Contents
Original text · RFC Editor View on rfc-editor.org ↗
Network Working Group                                         A. Patel
Request for Comments: 4064                                    K. Leung
Category: Standards Track                                Cisco Systems
                                                              May 2005


   Experimental Message, Extensions, and Error Codes for Mobile IPv4

Status of This Memo

   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (2005).

Abstract

   Mobile IPv4 message types range from 0 to 255.  This document
   reserves a message type for use by an individual, company, or
   organization for experimental purposes, to evaluate enhancements to
   Mobile IPv4 messages before a formal standards proposal is issued.

Table of Contents

   1.  Introduction .................................................  2
   2.  Terminology ..................................................  3
   3.  Experimental Message .........................................  3
   4.  Experimental Extensions ......................................  4
       4.1.  Non-skippable Mobile IPv4 Experimental Extension .......  5
       4.2.  Non-skippable ICMP Router Discovery Exp. Extension .....  5
       4.3.  Skippable Mobile IPv4 Experimental Extension ...........  6
       4.4.  Skippable ICMP Router Discovery Experimental Extension .  6
   5.  Experimental Error Codes .....................................  7
   6.  Mobility Entity Considerations ...............................  7
   7.  IANA Considerations ..........................................  7
       7.1.  New Message Type .......................................  8
       7.2.  New Extension Values ...................................  8
       7.3.  New Error Codes ........................................  8
   8.  Security Considerations ......................................  8
   9.  Backward Compatibility Considerations ........................  9
   10. Acknowledgements..............................................  9
   11. References ...................................................  9
       11.1. Normative References ...................................  9
       11.2. Informative References .................................  9

1.  Introduction

   Mobile IPv4 message types range from 0 to 255.  This document
   reserves a message type for experimental purposes, to evaluate
   enhancements to Mobile IPv4 messages before a formal standards
   proposal is issued.

   Without experimental message capability, one would have to select a
   type value from the range defined for IANA assignment, which may
   result in collisions.

   Within a message, Mobile IP defines a general extension mechanism
   allowing optional information to be carried by Mobile IP control
   messages.  Extensions are not skippable if defined in the range [0-
   127] and are skippable if defined in the range [128-255].  This
   document reserves extension types in both the skippable and non-
   skippable ranges for experimental use.

   Mobile IPv4 defines error codes for use by the FA [64-127] and HA
   [128-192].  This document reserves an error code in both of these
   ranges for experimental use.

   The definition of experimental numbers in this document is made
   according to the recommendation of Section 2.2 of BCP 82, RFC 3692.

2.  Terminology

   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 [1].

   In addition, this document frequently uses the following terms:

   EXP-MSG-TYPE: A Mobile-IPv4 message number assigned for experimental
   use.  IANA has assigned message number 255 for this.

   EXP-SKIP-EXT-TYPE: A Mobile-IPv4 and ICMP router discovery Agent
   Advertisement extension number assigned for experimental use.  IANA
   has assigned extension number 255 for this.

   EXP-NONSKIP-EXT-TYPE: A Mobile-IPv4 and ICMP router discovery Agent
   Advertisement extension number for experimental use.  IANA has
   assigned extension number 127 for this.

   EXP-HA-ERROR-CODE: A Mobile-IPv4 error code for use by the HA in
   MIPv4 reply messages to indicate an error condition.  IANA has
   assigned error code 192 for this.

   EXP-FA-ERROR-CODE: A Mobile-IPv4 error code for use by FA in reply
   messages to indicate an error condition.  IANA has assigned error
   code 127 for this.

   Mobility Entity: Entities as defined in [2] (home agent, foreign
   agent, and mobile node).

3.  Experimental Message

   As the nature and purpose of an experimental message cannot be known
   in advance, the structure is defined as having an opaque payload.
   Entities implementing the message can interpret the message according
   to their implementation.  Interpreting based on extensions present in
   the message is one suggestion.

   These messages may be used between the mobility entities (Home Agent,
   Foreign Agent, and Mobile Node).  Experimental messages MUST be
   authenticated using any of the authentication mechanisms defined for
   Mobile IP ([2], [5]).

   This message MAY contain extensions defined in Mobile IP, including
   vendor-specific extensions [4].

   IP fields:

      Source Address: Typically the interface address from which
      the message is sent.

      Destination Address: The address of the agent or the Mobile
      Node.

   UDP fields:

      Source Port        Set according to RFC 768 (variable)

      Destination Port   Set to the value 434

   Mobile IP fields shown below follow the UDP header.

   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      |                 Opaque. . .
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   Type       255 (EXP-MSG-TYPE)

   Opaque     Zero or more octets of data, with structure defined only
              by the particular experiment it is used for.

   Once an experimental message has been tested and shown to be useful,
   a permanent number should be obtained through the normal IANA numbers
   assignment procedures.

   A single experimental message type is defined.  This message can
   contain extensions based on which the message can be interpreted.

   Up-to-date values for the message types for Mobile IP control
   messages are specified in the most recent "Assigned Numbers" [3].

4.  Experimental Extensions

   This document reserves Mobile IPv4 extensions in both the skippable
   and non-skippable ranges for experimental purposes.  The long
   extension format (for non-skippable extensions) and short extension
   format (for skippable extensions), as defined by [2], are used for
   Mobile IPv4 experimental extensions.

   Also, ICMP router discovery extension numbers in both the skippable
   and non-skippable ranges are reserved for experimental use.

4.1.  Non-skippable Mobile IPv4 Experimental Extension

   This format is applicable for non-skippable extensions and may carry
   information more than 256 bytes.

   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      |  Sub-Type     |           Length              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                           Opaque. . .
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   Type      127 (EXP-NONSKIP-EXT-TYPE) is the type, which describes an
             experimental extension.

   Sub-Type  A unique number given to each member in the aggregated
             type.

   Length    Indicates the length (in bytes) of the data field within
             this extension.  It does NOT include the Type, Sub-Type,
             and Length fields.

   Opaque    Zero or more octets of data, with structure defined only by
             the particular experiment it is used for.

   As the length field is 16 bits wide, the extension data can exceed
   256 bytes in length.

4.2.  Non-skippable ICMP Router Discovery Exp. Extension

   This format is applicable for non-skippable extensions.

   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     |           Opaque . . .
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   Type     127 (EXP-NONSKIP-EXT-TYPE) is the type, which describes an
            ICMP router discovery experimental extension.

   Length   Indicates the length (in bytes) of the data field within
            this extension.  It does NOT include the Type and Length
            fields.

   Opaque   Zero or more octets of data, with structure defined only by
            the particular experiment it is used for.

   A node that receives a router advertisement with this extension
   should ignore the extension if it does not recognize it.

   A mobility entity that understands this extension but does not
   recognize it should drop (ignore) the router advertisement.

4.3.  Skippable Mobile IPv4 Experimental Extension

   This format is applicable for skippable extensions, which carry
   information less than 256 bytes.

   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     |   Sub-Type    |  Opaque. . .
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   Type     255 (EXP-SKIP-EXT-TYPE) is the type, which describes an
            experimental extension.

   Length   Indicates the length (in bytes) of the data field within
            this extension.  It does NOT include the Type and Length
            fields.

   Sub-Type A unique number given to each member in the aggregated type.

   Opaque   Zero or more octets of data, with structure defined only by
            the particular experiment it is used for.

   As the length field is 8 bits wide, the extension data cannot exceed
   256 bytes in length.

4.4.  Skippable ICMP Router Discovery Experimental Extension

   This format is applicable for skippable ICMP router discovery
   extensions.  This extension should be ignored if an implementation
   does not understand it.

   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     |   Opaque. . .
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   Type     255 (EXP-SKIP-EXT-TYPE) is the type, which describes an
            experimental extension.

   Length   Indicates the length (in bytes) of the data field within
            this extension.  It does NOT include the Type and Length
            fields.

   Opaque   Zero or more octets of data, with structure defined only by
            the particular experiment it is used for.

5.  Experimental Error Codes

   This document reserves the reply error code EXP-FA-ERROR-CODE for use
   by the FA.  This document also reserves the reply error code EXP-HA-
   ERROR-CODE for use by the HA.

   These experimental error codes may be used in registration reply
   messages.

   It is recommended that experimental error codes be used with
   experimental messages and extensions whenever none of the
   standardized error codes are applicable.

6.  Mobility Entity Considerations

   Mobility entities can send and receive experimental messages.
   Implementations that don't understand the message type SHOULD
   silently discard the message.

   Experimental extensions can be carried in experimental messages and
   standards-defined messages.  In the latter case, it is suggested that
   experimental extensions MUST NOT be used in deployed products and
   that usage be restricted to experiments only.

7.  IANA Considerations

   This document defines a control message to be used between mobility
   entities, two new extension formats, and two new error codes.  To
   ensure correct interoperation based on this specification, IANA has
   reserved values in the Mobile IPv4 number space, as defined in [2],
   for one new message type, two new extensions, and two error codes.

7.1.  New Message Type


   A new Mobile IPv4 control message using UDP port 434, type 255 (EXP-
   MSG-TYPE), has been defined by IANA.  This value has been taken from
   the same number space as Mobile IP Registration Request (Type = 1)
   and Mobile IP Registration Reply (Type = 3).

7.2.  New Extension Values

   The following extension types are introduced by this specification:

   Experimental non-skippable extension: The value 127 (EXP-NONSKIP-
   EXT-TYPE) has been assigned from the numbering space for non-
   skippable extensions, which may appear in Mobile IPv4 control
   messages.

   Also, the same number, 127 (EXP-NONSKIP-EXT-TYPE), has been assigned
   from the numbering space for non-skippable extensions, which may
   appear in ICMP router discovery messages.

   Experimental skippable extension: The value 255 (EXP-SKIP-EXT-TYPE)
   has been assigned from the numbering space for skippable extensions,
   which may appear in Mobile IPv4 control messages.

   Also, the same number, 255 (EXP-SKIP-EXT-TYPE), has been assigned
   from the numbering space for skippable extensions, which may appear
   in ICMP router discovery messages.

7.3. New Error Codes

   The value 192 (EXP-HA-ERROR-CODE) has been defined by IANA to be used
   as a code field in messages generated by HA.

   Also, the value 127 (EXP-FA-ERROR-CODE) has been defined by IANA to
   be used as the code field in messages generated by the FA.

8.  Security Considerations

   Like all Mobile IP control messages, the experimental messages MUST
   be authenticated per the requirements specified in [2] or [5].
   Experimental messages without a valid authenticator SHOULD be
   discarded.

9.  Backward Compatibility Considerations

   Mobility entities that don't understand the experimental message MUST
   silently discard it.

   Mobility entities that don't understand the experimental skippable
   extensions MUST ignore them.  Mobility entities that don't understand
   the non-skippable experimental extensions MUST silently discard the
   message containing them.  This behavior is consistent with section
   1.8 of [2].

   Foreign Agents and Home Agents SHOULD include an experimental error
   code in a reply message only if they have a general indication that
   the receiving entity would be able to parse it.  This is indicated if
   the request message was of type EXP-MSG-TYPE or contained at least
   one experimental extension.

10.  Acknowledgements

   The authors would like to acknowledge Henrik Levkowetz for his
   detailed review of the document and suggestion to incorporate
   experimental extensions in this draft.

   The authors would also like to acknowledge Thomas Narten for his
   initial review of the document and reference to [6] for general
   guidelines.

11.  References

11.1.  Normative References

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

   [2]  Perkins, C., "IP Mobility Support for IPv4", RFC 3344, August
        2002.

   [3]  Reynolds, J., "Assigned Numbers: RFC 1700 is Replaced by an
        On-line Database", RFC 3232, January 2002.

11.2.  Informative References

   [4]  Dommety, G. and K. Leung, "Mobile IP
        Vendor/Organization-Specific Extensions", RFC 3115, April 2001.

   [5]  Perkins, C. and P. Calhoun, "Mobile IPv4 Challenge/Response
        Extensions", RFC 3012, November 2000.

   [6]  Narten, T., "Assigning Experimental and Testing Numbers
        Considered Useful", BCP 82, RFC 3692, January 2004.

Authors' Addresses

   Questions and comments about this document should be directed to the
   Mobile IPv4 working group:

   mip4@ietf.org

   Questions and comments about this document may also be directed to
   the authors:

   Alpesh Patel
   Cisco Systems
   170 W. Tasman Drive,
   San Jose, CA 95134 USA

   Phone: +1 408-853-9580
   EMail: alpesh@cisco.com


   Kent Leung
   Cisco Systems
   170 W. Tasman Drive,
   San Jose, CA 95134 USA

   Phone: +1 408-526-5030
   EMail: kleung@cisco.com

Full Copyright Statement

   Copyright (C) The Internet Society (2005).

   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.

   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 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.

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.

   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.

   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.

Acknowledgement

   Funding for the RFC Editor function is currently provided by the
   Internet Society.

AI ELI5

On this page
PROBLEMPeople who want to try out new Mobile IPv4 messages before a formal proposal would otherwise have to pick a value from the range IANA assigns, which can collide with real assignments.
MECHANISMThe RFC reserves one message type (255), two extension types (127 non-skippable and 255 skippable, for both Mobile IPv4 and ICMP router discovery) and two error codes (127 for the foreign agent and 192 for the home agent) for experimental use, with an opaque payload.
THE CATCHExperiments get safe numbers, but experimental messages MUST be authenticated and experimental extensions should not be used in deployed products. A successful experiment should get a permanent number from IANA.

§1Why Reserve Experimental Numbers

Mobile IPv4 message types range from 0 to 255. Without a reserved experimental message, someone testing an enhancement would have to pick a type from the range defined for IANA assignment, which may result in collisions.

Mobile IP also has a general extension mechanism for optional information in control messages. Extensions in the range 0 to 127 are not skippable, and those in the range 128 to 255 are skippable. Error codes are defined for the foreign agent (FA) in 64 to 127 and for the home agent (HA) in 128 to 192. This RFC reserves extension types in both extension ranges and one error code in each error range.

The reservations follow Section 2.2 of BCP 82, RFC 3692. The base protocol is RFC 3344.

Real numbers are like seats in a theatre that are already booked. This document keeps a few seats free for people who are only trying things out.

§2The Reserved Values

The RFC names each reserved value and says which number IANA assigned.

  • EXP-MSG-TYPE: message type 255.
  • EXP-SKIP-EXT-TYPE: skippable extension 255, used in Mobile IPv4 and in ICMP router discovery Agent Advertisement.
  • EXP-NONSKIP-EXT-TYPE: non-skippable extension 127, used in the same two places.
  • EXP-HA-ERROR-CODE: error code 192, for the HA in reply messages.
  • EXP-FA-ERROR-CODE: error code 127, for the FA in reply messages.

The mobility entities are the home agent, foreign agent and mobile node.

There is one spare message number, two spare add-on numbers and two spare error numbers, and each one has a name so people can talk about it.

VALUES RESERVED BY RFC 4064
  • 255EXP-MSG-TYPE — Experimental Mobile IPv4 message.
  • 127EXP-NONSKIP-EXT-TYPE — Non-skippable experimental extension.
  • 255EXP-SKIP-EXT-TYPE — Skippable experimental extension.
  • 127EXP-FA-ERROR-CODE — Experimental error code for the foreign agent.
  • 192EXP-HA-ERROR-CODE — Experimental error code for the home agent.

§3The Experimental Message

Because the purpose of an experimental message cannot be known in advance, its structure is an opaque payload. Entities that implement it interpret it as they choose; one suggestion is to interpret it based on the extensions it carries. It may be used between the home agent, foreign agent and mobile node, and it MAY contain Mobile IP extensions, including vendor-specific ones.

Like other Mobile IP control messages, it travels over UDP with destination port 434. After the UDP header comes a Type field of 255 followed by zero or more octets of opaque data.

Experimental messages MUST be authenticated with one of the authentication mechanisms defined for Mobile IP. Once an experiment has been tested and shown to be useful, a permanent number should be obtained through the normal IANA procedures.

The experimental message is a sealed envelope with a fixed label on the outside. Whatever is inside is up to whoever is running the experiment.

§4Experimental Extensions

There are four extension formats. Mobile IPv4 uses the long extension format for non-skippable extensions and the short format for skippable ones, as defined in RFC 3344.

  • Non-skippable Mobile IPv4 (Type 127): fields Type, Sub-Type, a 16-bit Length and opaque data. Because the length field is 16 bits wide, the data can exceed 256 bytes.
  • Skippable Mobile IPv4 (Type 255): Type, an 8-bit Length, Sub-Type and opaque data. The RFC says the data cannot exceed 256 bytes.
  • Non-skippable ICMP router discovery (Type 127): Type, Length and opaque data, with no Sub-Type. A node that does not recognize it should ignore it.
  • Skippable ICMP router discovery (Type 255): Type, Length and opaque data. It should be ignored if the implementation does not understand it.

Sub-Type is a unique number given to each member of the aggregated type. Length never includes the Type (and Sub-Type, where present) and Length fields.

An extension is a small sticky note attached to a message. Some notes can be ignored if you do not understand them, and others mean you must not accept the message at all.

NON-SKIPPABLE MOBILE IPV4 EXPERIMENTAL EXTENSION
Non-skippable extension header
FieldNameSizeValueDescription
TYPEType1 byte127127 (EXP-NONSKIP-EXT-TYPE).
SUB-TYPESub-Type1 byteUnique number for each member of the aggregated type.
LENGTHLength2 bytesLength of the data field, not counting Type, Sub-Type and Length.

§5Experimental Error Codes

The FA may use code 127 and the HA may use code 192 in registration reply messages. It is recommended that experimental error codes be used with experimental messages and extensions whenever none of the standardized error codes apply.

Foreign agents and home agents SHOULD include an experimental error code in a reply only if they have a general indication that the receiver can parse it. That is the case when the request was of type EXP-MSG-TYPE or contained at least one experimental extension.

If an experiment goes wrong in a way no ordinary error covers, the agents have a spare error number to say so. They only use it when the other side is in on the experiment.

§6Behavior of Mobility Entities

Implementations that do not understand the experimental message type SHOULD silently discard it. Entities that do not understand skippable experimental extensions MUST ignore them. If they do not understand a non-skippable experimental extension, they MUST silently discard the whole message containing it, consistent with Section 1.8 of RFC 3344.

Experimental extensions can ride in experimental messages and in standards-defined messages. In the latter case the RFC suggests that experimental extensions MUST NOT be used in deployed products and that use be restricted to experiments only.

If someone does not know about your experiment, they either ignore your sticky note or throw the whole letter away, depending on how important the note said it was.

§7Security Considerations

Like all Mobile IP control messages, experimental messages MUST be authenticated per the requirements of RFC 3344 or the second authentication reference the RFC cites. Experimental messages without a valid authenticator SHOULD be discarded.

Even a test message has to show proof of who sent it, or it gets thrown away.

§8References