home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / rfc / 2000s / rfc2002.txt < prev    next >
Text File  |  1996-11-06  |  193KB  |  4,428 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                 C. Perkins, Editor
  8. Request for Comments: 2002                                           IBM
  9. Category: Standards Track                                   October 1996
  10.  
  11.                           IP Mobility Support
  12.  
  13. Status of this Memo
  14.  
  15.    This document specifies an Internet standards track protocol for the
  16.    Internet community, and requests discussion and suggestions for
  17.    improvements.  Please refer to the current edition of the "Internet
  18.    Official Protocol Standards" (STD 1) for the standardization state
  19.    and status of this protocol.  Distribution of this memo is unlimited.
  20.  
  21. Abstract
  22.  
  23.    This document specifies protocol enhancements that allow transparent
  24.    routing of IP datagrams to mobile nodes in the Internet.  Each mobile
  25.    node is always identified by its home address, regardless of its
  26.    current point of attachment to the Internet.  While situated away
  27.    from its home, a mobile node is also associated with a care-of
  28.    address, which provides information about its current point of
  29.    attachment to the Internet.  The protocol provides for registering
  30.    the care-of address with a home agent.  The home agent sends
  31.    datagrams destined for the mobile node through a tunnel to the care-
  32.    of address.  After arriving at the end of the tunnel, each datagram
  33.    is then delivered to the mobile node.
  34.  
  35. Table of Contents
  36.  
  37.  1. Introduction                                                       3
  38.      1.1. Protocol Requirements . . . . . . . . . . . . . . . . . .    3
  39.      1.2. Goals . . . . . . . . . . . . . . . . . . . . . . . . . .    4
  40.      1.3. Assumptions . . . . . . . . . . . . . . . . . . . . . . .    4
  41.      1.4. Applicability . . . . . . . . . . . . . . . . . . . . . .    4
  42.      1.5. New Architectural Entities  . . . . . . . . . . . . . . .    5
  43.      1.6. Terminology . . . . . . . . . . . . . . . . . . . . . . .    6
  44.      1.7. Protocol Overview . . . . . . . . . . . . . . . . . . . .    8
  45.      1.8. Specification Language  . . . . . . . . . . . . . . . . .   11
  46.      1.9. Message Format and Protocol Extensibility . . . . . . . .   12
  47.  2. Agent Discovery                                                   14
  48.      2.1. Agent Advertisement . . . . . . . . . . . . . . . . . . .   14
  49.            2.1.1. Mobility Agent Advertisement Extension  . . . . .   16
  50.            2.1.2. Prefix-Lengths Extension  . . . . . . . . . . . .   18
  51.            2.1.3. One-byte Padding Extension  . . . . . . . . . . .   19
  52.      2.2. Agent Solicitation  . . . . . . . . . . . . . . . . . . .   19
  53.      2.3. Foreign Agent and Home Agent Considerations . . . . . . .   19
  54.            2.3.1. Advertised Router Addresses . . . . . . . . . . .   20
  55.  
  56.  
  57.  
  58. Perkins                     Standards Track                     [Page 1]
  59.  
  60. RFC 2002                  IP Mobility Support               October 1996
  61.  
  62.  
  63.            2.3.2. Sequence Numbers and Rollover Handling  . . . . .   21
  64.      2.4. Mobile Node Considerations  . . . . . . . . . . . . . . .   21
  65.            2.4.1. Registration Required . . . . . . . . . . . . . .   22
  66.            2.4.2. Move Detection  . . . . . . . . . . . . . . . . .   22
  67.            2.4.3. Returning Home  . . . . . . . . . . . . . . . . .   24
  68.            2.4.4. Sequence Numbers and Rollover Handling  . . . . .   24
  69.  3. Registration                                                      24
  70.      3.1. Registration Overview . . . . . . . . . . . . . . . . . .   25
  71.      3.2. Authentication  . . . . . . . . . . . . . . . . . . . . .   26
  72.      3.3. Registration Request  . . . . . . . . . . . . . . . . . .   26
  73.      3.4. Registration Reply  . . . . . . . . . . . . . . . . . . .   29
  74.      3.5. Registration Extensions . . . . . . . . . . . . . . . . .   32
  75.            3.5.1. Computing Authentication Extension Values . . . .   32
  76.            3.5.2. Mobile-Home Authentication Extension  . . . . . .   33
  77.            3.5.3. Mobile-Foreign Authentication Extension . . . . .   33
  78.            3.5.4. Foreign-Home Authentication Extension . . . . . .   34
  79.      3.6. Mobile Node Considerations  . . . . . . . . . . . . . . .   34
  80.            3.6.1. Sending Registration Requests . . . . . . . . . .   36
  81.            3.6.2. Receiving Registration Replies  . . . . . . . . .   40
  82.            3.6.3. Registration Retransmission . . . . . . . . . . .   42
  83.      3.7. Foreign Agent Considerations  . . . . . . . . . . . . . .   43
  84.            3.7.1. Configuration and Registration Tables . . . . . .   44
  85.            3.7.2. Receiving Registration Requests . . . . . . . . .   44
  86.            3.7.3. Receiving Registration Replies  . . . . . . . . .   47
  87.      3.8. Home Agent Considerations . . . . . . . . . . . . . . . .   49
  88.            3.8.1. Configuration and Registration Tables . . . . . .   49
  89.            3.8.2. Receiving Registration Requests . . . . . . . . .   49
  90.            3.8.3. Sending Registration Replies  . . . . . . . . . .   53
  91.  4. Routing Considerations                                            55
  92.      4.1. Encapsulation Types . . . . . . . . . . . . . . . . . . .   56
  93.      4.2. Unicast Datagram Routing  . . . . . . . . . . . . . . . .   56
  94.            4.2.1. Mobile Node Considerations  . . . . . . . . . . .   56
  95.            4.2.2. Foreign Agent Considerations  . . . . . . . . . .   57
  96.            4.2.3. Home Agent Considerations . . . . . . . . . . . .   58
  97.      4.3. Broadcast Datagrams . . . . . . . . . . . . . . . . . . .   59
  98.      4.4. Multicast Datagram Routing  . . . . . . . . . . . . . . .   60
  99.      4.5. Mobile Routers  . . . . . . . . . . . . . . . . . . . . .   61
  100.      4.6. ARP, Proxy ARP, and Gratuitous ARP  . . . . . . . . . . .   62
  101.  5. Security Considerations                                           66
  102.      5.1. Message Authentication Codes  . . . . . . . . . . . . . .   66
  103.      5.2. Areas of Security Concern in this Protocol  . . . . . . .   66
  104.      5.3. Key Management  . . . . . . . . . . . . . . . . . . . . .   67
  105.      5.4. Picking Good Random Numbers . . . . . . . . . . . . . . .   67
  106.      5.5. Privacy . . . . . . . . . . . . . . . . . . . . . . . . .   67
  107.      5.6. Replay Protection for Registration Requests . . . . . . .   68
  108.            5.6.1. Replay Protection using Timestamps  . . . . . . .   68
  109.            5.6.2. Replay Protection using Nonces  . . . . . . . . .   69
  110.  6. Acknowledgments                                                   71
  111.  
  112.  
  113.  
  114. Perkins                     Standards Track                     [Page 2]
  115.  
  116. RFC 2002                  IP Mobility Support               October 1996
  117.  
  118.  
  119.  A. Patent Issues                                                     72
  120.      A.1. IBM Patent #5,159,592 . . . . . . . . . . . . . . . . . .   72
  121.      A.2. IBM Patent #5,148,479 . . . . . . . . . . . . . . . . . .   72
  122.  B. Link-Layer Considerations                                         73
  123.  C. TCP Considerations                                                73
  124.      C.1. TCP Timers  . . . . . . . . . . . . . . . . . . . . . . .   73
  125.      C.2. TCP Congestion Management . . . . . . . . . . . . . . . .   73
  126.  D. Example Scenarios                                                 74
  127.      D.1. Registering with a Foreign Agent Care-of Address  . . . .   74
  128.      D.2. Registering with a Co-Located Care-of Address . . . . . .   75
  129.      D.3. Deregistration  . . . . . . . . . . . . . . . . . . . . .   76
  130.  E. Applicability of Prefix Lengths Extension                         76
  131. Editor's Address                                                      79
  132.  
  133. 1. Introduction
  134.  
  135.    IP version 4 assumes that a node's IP address uniquely identifies the
  136.    node's point of attachment to the Internet.  Therefore, a node must
  137.    be located on the network indicated by its IP address in order to
  138.    receive datagrams destined to it; otherwise, datagrams destined to
  139.    the node would be undeliverable.  For a node to change its point of
  140.    attachment without losing its ability to communicate, currently one
  141.    of the two following mechanisms must typically be employed:
  142.  
  143.       a)   the node must change its IP address whenever it changes its
  144.            point of attachment, or
  145.  
  146.       b)   host-specific routes must be propagated throughout much of
  147.            the Internet routing fabric.
  148.  
  149.    Both of these alternatives are often unacceptable.  The first makes
  150.    it impossible for a node to maintain transport and higher-layer
  151.    connections when the node changes location.  The second has obvious
  152.    and severe scaling problems, especially relevant considering the
  153.    explosive growth in sales of notebook (mobile) computers.
  154.  
  155.    A new, scalable, mechanism is required for accommodating node
  156.    mobility within the Internet.  This document defines such a
  157.    mechanism, which enables nodes to change their point of attachment to
  158.    the Internet without changing their IP address.
  159.  
  160. 1.1. Protocol Requirements
  161.  
  162.    A mobile node must be able to communicate with other nodes after
  163.    changing its link-layer point of attachment to the Internet, yet
  164.    without changing its IP address.
  165.  
  166.  
  167.  
  168.  
  169.  
  170. Perkins                     Standards Track                     [Page 3]
  171.  
  172. RFC 2002                  IP Mobility Support               October 1996
  173.  
  174.  
  175.    A mobile node must be able to communicate with other nodes that do
  176.    not implement these mobility functions.  No protocol enhancements are
  177.    required in hosts or routers that are not acting as any of the new
  178.    architectural entities introduced in Section 1.5.
  179.  
  180.    All messages used to update another node as to the location of a
  181.    mobile node must be authenticated in order to protect against remote
  182.    redirection attacks.
  183.  
  184. 1.2. Goals
  185.  
  186.    The link by which a mobile node is directly attached to the Internet
  187.    may often be a wireless link.  This link may thus have a
  188.    substantially lower bandwidth and higher error rate than traditional
  189.    wired networks.  Moreover, mobile nodes are likely to be battery
  190.    powered, and minimizing power consumption is important.  Therefore,
  191.    the number of administrative messages sent over the link by which a
  192.    mobile node is directly attached to the Internet should be minimized,
  193.    and the size of these messages should be kept as small as is
  194.    reasonably possible.
  195.  
  196. 1.3. Assumptions
  197.  
  198.    The protocols defined in this document place no additional
  199.    constraints on the assignment of IP addresses.  That is, a mobile
  200.    node can be assigned an IP address by the organization that owns the
  201.    machine.
  202.  
  203.    This protocol assumes that mobile nodes will generally not change
  204.    their point of attachment to the Internet more frequently than once
  205.    per second.
  206.  
  207.    This protocol assumes that IP unicast datagrams are routed based on
  208.    the destination address in the datagram header (and not, for example,
  209.    by source address).
  210.  
  211. 1.4. Applicability
  212.  
  213.    Mobile IP is intended to enable nodes to move from one IP subnet to
  214.    another.  It is just as suitable for mobility across homogeneous
  215.    media as it is for mobility across heterogeneous media.  That is,
  216.    Mobile IP facilitates node movement from one Ethernet segment to
  217.    another as well as it accommodates node movement from an Ethernet
  218.    segment to a wireless LAN, as long as the mobile node's IP address
  219.    remains the same after such a movement.
  220.  
  221.    One can think of Mobile IP as solving the "macro" mobility management
  222.    problem.  It is less well suited for more "micro" mobility management
  223.  
  224.  
  225.  
  226. Perkins                     Standards Track                     [Page 4]
  227.  
  228. RFC 2002                  IP Mobility Support               October 1996
  229.  
  230.  
  231.    applications -- for example, handoff amongst wireless transceivers,
  232.    each of which covers only a very small geographic area.  As long as
  233.    node movement does not occur between points of attachment on
  234.    different IP subnets, link-layer mechanisms for mobility (i.e.,
  235.    link-layer handoff) may offer faster convergence and far less
  236.    overhead than Mobile IP.
  237.  
  238. 1.5. New Architectural Entities
  239.  
  240.    Mobile IP introduces the following new functional entities:
  241.  
  242.       Mobile Node
  243.  
  244.          A host or router that changes its point of attachment from one
  245.          network or subnetwork to another.  A mobile node may change its
  246.          location without changing its IP address; it may continue to
  247.          communicate with other Internet nodes at any location using its
  248.          (constant) IP address, assuming link-layer connectivity to a
  249.          point of attachment is available.
  250.  
  251.       Home Agent
  252.  
  253.          A router on a mobile node's home network which tunnels
  254.          datagrams for delivery to the mobile node when it is away from
  255.          home, and maintains current location information for the mobile
  256.          node.
  257.  
  258.       Foreign Agent
  259.  
  260.          A router on a mobile node's visited network which provides
  261.          routing services to the mobile node while registered.  The
  262.          foreign agent detunnels and delivers datagrams to the mobile
  263.          node that were tunneled by the mobile node's home agent.  For
  264.          datagrams sent by a mobile node, the foreign agent may serve as
  265.          a default router for registered mobile nodes.
  266.  
  267.    A mobile node is given a long-term IP address on a home network.
  268.    This home address is administered in the same way as a "permanent" IP
  269.    address is provided to a stationary host.  When away from its home
  270.    network, a "care-of address" is associated with the mobile node and
  271.    reflects the mobile node's current point of attachment.  The mobile
  272.    node uses its home address as the source address of all IP datagrams
  273.    that it sends, except where otherwise described in this document for
  274.    datagrams sent for certain mobility management functions (e.g., as in
  275.    Section 3.6.1.1).
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282. Perkins                     Standards Track                     [Page 5]
  283.  
  284. RFC 2002                  IP Mobility Support               October 1996
  285.  
  286.  
  287. 1.6. Terminology
  288.  
  289.    This document frequently uses the following terms:
  290.  
  291.       Agent Advertisement
  292.                An advertisement message constructed by attaching a
  293.                special Extension to a router advertisement [4] message.
  294.  
  295.       Care-of Address
  296.                The termination point of a tunnel toward a mobile node,
  297.                for datagrams forwarded to the mobile node while it is
  298.                away from home.  The protocol can use two different types
  299.                of care-of address:  a "foreign agent care-of address" is
  300.                an address of a foreign agent with which the mobile node
  301.                is registered, and a "co-located care-of address" is an
  302.                externally obtained local address which the mobile node
  303.                has associated with one of its own network interfaces.
  304.  
  305.       Correspondent Node
  306.                A peer with which a mobile node is communicating.  A
  307.                correspondent node may be either mobile or stationary.
  308.  
  309.       Foreign Network
  310.                Any network other than the mobile node's Home Network.
  311.  
  312.       Home Address
  313.                An IP address that is assigned for an extended period of
  314.                time to a mobile node.  It remains unchanged regardless
  315.                of where the node is attached to the Internet.
  316.  
  317.       Home Network
  318.                A network, possibly virtual, having a network prefix
  319.                matching that of a mobile node's home address.  Note that
  320.                standard IP routing mechanisms will deliver datagrams
  321.                destined to a mobile node's Home Address to the mobile
  322.                node's Home Network.
  323.  
  324.       Link     A facility or medium over which nodes can communicate at
  325.                the link layer.  A link underlies the network layer.
  326.  
  327.       Link-Layer Address
  328.                The address used to identify an endpoint of some
  329.                communication over a physical link.  Typically, the
  330.                Link-Layer address is an interface's Media Access Control
  331.                (MAC) address.
  332.  
  333.       Mobility Agent
  334.                Either a home agent or a foreign agent.
  335.  
  336.  
  337.  
  338. Perkins                     Standards Track                     [Page 6]
  339.  
  340. RFC 2002                  IP Mobility Support               October 1996
  341.  
  342.  
  343.       Mobility Binding
  344.                The association of a home address with a care-of address,
  345.                along with the remaining lifetime of that association.
  346.  
  347.       Mobility Security Association
  348.                A collection of security contexts, between a pair
  349.                of nodes, which may be applied to Mobile IP protocol
  350.                messages exchanged between them.  Each context indicates
  351.                an authentication algorithm and mode (Section 5.1), a
  352.                secret (a shared key, or appropriate public/private
  353.                key pair), and a style of replay protection in use
  354.                (Section 5.6).
  355.  
  356.       Node     A host or a router.
  357.  
  358.       Nonce    A randomly chosen value, different from previous choices,
  359.                inserted in a message to protect against replays.
  360.  
  361.       Security Parameter Index (SPI)
  362.                An index identifying a security context between a pair
  363.                of nodes among the contexts available in the Mobility
  364.                Security Association.  SPI values 0 through 255 are
  365.                reserved and MUST NOT be used in any Mobility Security
  366.                Association.
  367.  
  368.       Tunnel   The path followed by a datagram while it is encapsulated.
  369.                The model is that, while it is encapsulated, a datagram
  370.                is routed to a knowledgeable decapsulating agent, which
  371.                decapsulates the datagram and then correctly delivers it
  372.                to its ultimate destination.
  373.  
  374.       Virtual Network
  375.                A network with no physical instantiation beyond a router
  376.                (with a physical network interface on another network).
  377.                The router (e.g., a home agent) generally advertises
  378.                reachability to the virtual network using conventional
  379.                routing protocols.
  380.  
  381.       Visited Network
  382.                A network other than a mobile node's Home Network, to
  383.                which the mobile node is currently connected.
  384.  
  385.       Visitor List
  386.                The list of mobile nodes visiting a foreign agent.
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394. Perkins                     Standards Track                     [Page 7]
  395.  
  396. RFC 2002                  IP Mobility Support               October 1996
  397.  
  398.  
  399. 1.7. Protocol Overview
  400.  
  401.    The following support services are defined for Mobile IP:
  402.  
  403.       Agent Discovery
  404.                Home agents and foreign agents may advertise their
  405.                availability on each link for which they provide service.
  406.                A newly arrived mobile node can send a solicitation on
  407.                the link to learn if any prospective agents are present.
  408.  
  409.       Registration
  410.                When the mobile node is away from home, it registers
  411.                its care-of address with its home agent.  Depending on
  412.                its method of attachment, the mobile node will register
  413.                either directly with its home agent, or through a foreign
  414.                agent which forwards the registration to the home agent.
  415.  
  416.    The following steps provide a rough outline of operation of the
  417.    Mobile IP protocol:
  418.  
  419.     -  Mobility agents (i.e., foreign agents and home agents) advertise
  420.        their presence via Agent Advertisement messages (Section 2).  A
  421.        mobile node may optionally solicit an Agent Advertisement message
  422.        from any locally attached mobility agents through an Agent
  423.        Solicitation message.
  424.  
  425.     -  A mobile node receives these Agent Advertisements and determines
  426.        whether it is on its home network or a foreign network.
  427.  
  428.     -  When the mobile node detects that it is located on its home
  429.        network, it operates without mobility services.  If returning
  430.        to its home network from being registered elsewhere, the mobile
  431.        node deregisters with its home agent, through exchange of a
  432.        Registration Request and Registration Reply message with it.
  433.  
  434.     -  When a mobile node detects that it has moved to a foreign
  435.        network, it obtains a care-of address on the foreign network.
  436.        The care-of address can either be determined from a foreign
  437.        agent's advertisements (a foreign agent care-of address), or by
  438.        some external assignment mechanism such as DHCP [6] (a co-located
  439.        care-of address).
  440.  
  441.     -  The mobile node operating away from home then registers its
  442.        new care-of address with its home agent through exchange of a
  443.        Registration Request and Registration Reply message with it,
  444.        possibly via a foreign agent (Section 3).
  445.  
  446.  
  447.  
  448.  
  449.  
  450. Perkins                     Standards Track                     [Page 8]
  451.  
  452. RFC 2002                  IP Mobility Support               October 1996
  453.  
  454.  
  455.     -  Datagrams sent to the mobile node's home address are intercepted
  456.        by its home agent, tunneled by the home agent to the mobile
  457.        node's care-of address, received at the tunnel endpoint (either
  458.        at a foreign agent or at the mobile node itself), and finally
  459.        delivered to the mobile node (Section 4.2.3).
  460.  
  461.     -  In the reverse direction, datagrams sent by the mobile node
  462.        are generally delivered to their destination using standard IP
  463.        routing mechanisms, not necessarily passing through the home
  464.        agent.
  465.  
  466.    When away from home, Mobile IP uses protocol tunneling to hide a
  467.    mobile node's home address from intervening routers between its home
  468.    network and its current location.  The tunnel terminates at the
  469.    mobile node's care-of address.  The care-of address must be an
  470.    address to which datagrams can be delivered via conventional IP
  471.    routing.  At the care-of address, the original datagram is removed
  472.    from the tunnel and delivered to the mobile node.
  473.  
  474.    Mobile IP provides two alternative modes for the acquisition of a
  475.    care-of address:
  476.  
  477.     -  A "foreign agent care-of address" is a care-of address provided
  478.        by a foreign agent through its Agent Advertisement messages.  In
  479.        this case, the care-of address is an IP address of the foreign
  480.        agent.  In this mode, the foreign agent is the endpoint of the
  481.        tunnel and, upon receiving tunneled datagrams, decapsulates them
  482.        and delivers the inner datagram to the mobile node.  This mode
  483.        of acquisition is preferred because it allows many mobile nodes
  484.        to share the same care-of address and therefore does not place
  485.        unnecessary demands on the already limited IPv4 address space.
  486.  
  487.     -  A "co-located care-of address" is a care-of address acquired
  488.        by the mobile node as a local IP address through some external
  489.        means, which the mobile node then associates with one of its own
  490.        network interfaces.  The address may be dynamically acquired as
  491.        a temporary address by the mobile node such as through DHCP [6],
  492.        or may be owned by the mobile node as a long-term address for its
  493.        use only while visiting some foreign network.  Specific external
  494.        methods of acquiring a local IP address for use as a co-located
  495.        care-of address are beyond the scope of this document.  When
  496.        using a co-located care-of address, the mobile node serves as the
  497.        endpoint of the tunnel and itself performs decapsulation of the
  498.        datagrams tunneled to it.
  499.  
  500.    The mode of using a co-located care-of address has the advantage that
  501.    it allows a mobile node to function without a foreign agent, for
  502.    example, in networks that have not yet deployed a foreign agent.
  503.  
  504.  
  505.  
  506. Perkins                     Standards Track                     [Page 9]
  507.  
  508. RFC 2002                  IP Mobility Support               October 1996
  509.  
  510.  
  511.    It does, however, place additional burden on the IPv4 address space
  512.    because it requires a pool of addresses within the foreign network to
  513.    be made available to visiting mobile nodes.  It is difficult to
  514.    efficiently maintain pools of addresses for each subnet that may
  515.    permit mobile nodes to visit.
  516.  
  517.    It is important to understand the distinction between the care-of
  518.    address and the foreign agent functions.  The care-of address is
  519.    simply the endpoint of the tunnel.  It might indeed be an address of
  520.    a foreign agent (a foreign agent care-of address), but it might
  521.    instead be an address temporarily acquired by the mobile node (a co-
  522.    located care-of address).  A foreign agent, on the other hand, is a
  523.    mobility agent that provides services to mobile nodes.  See Sections
  524.    3.7 and 4.2.2 for additional details.
  525.  
  526.    A home agent MUST be able to attract and intercept datagrams that are
  527.    destined to the home address of any of its registered mobile nodes.
  528.    Using the proxy and gratuitous ARP mechanisms described in Section
  529.    4.6, this requirement can be satisfied if the home agent has a
  530.    network interface on the link indicated by the mobile node's home
  531.    address.  Other placements of the home agent relative to the mobile
  532.    node's home location MAY also be possible using other mechanisms for
  533.    intercepting datagrams destined to the mobile node's home address.
  534.    Such placements are beyond the scope of this document.
  535.  
  536.    Similarly, a mobile node and a prospective or current foreign agent
  537.    MUST be able to exchange datagrams without relying on standard IP
  538.    routing mechanisms; that is, those mechanisms which make forwarding
  539.    decisions based upon the network-prefix of the destination address in
  540.    the IP header.  This requirement can be satisfied if the foreign
  541.    agent and the visiting mobile node have an interface on the same
  542.    link.  In this case, the mobile node and foreign agent simply bypass
  543.    their normal IP routing mechanism when sending datagrams to each
  544.    other, addressing the underlying link-layer packets to their
  545.    respective link-layer addresses.  Other placements of the foreign
  546.    agent relative to the mobile node MAY also be possible using other
  547.    mechanisms to exchange datagrams between these nodes, but such
  548.    placements are beyond the scope of this document.
  549.  
  550.    If a mobile node is using a co-located care-of address (as described
  551.    in (b) above), the mobile node MUST be located on the link identified
  552.    by the network prefix of this care-of address.  Otherwise, datagrams
  553.    destined to the care-of address would be undeliverable.
  554.  
  555.    For example, the figure below illustrates the routing of datagrams to
  556.    and from a mobile node away from home, once the mobile node has
  557.    registered with its home agent.  In the figure below, the mobile node
  558.    is using a foreign agent care-of address:
  559.  
  560.  
  561.  
  562. Perkins                     Standards Track                    [Page 10]
  563.  
  564. RFC 2002                  IP Mobility Support               October 1996
  565.  
  566.  
  567.                 2) Datagram is intercepted   3) Datagram is
  568.                    by home agent and            detunneled and
  569.                    is tunneled to the           delivered to the
  570.                    care-of address.             mobile node.
  571.  
  572.                      +-----+          +-------+         +------+
  573.                      |home | =======> |foreign| ------> |mobile|
  574.                      |agent|          | agent | <------ | node |
  575.                      +-----+          +-------+         +------+
  576.      1) Datagram to    /|\         /
  577.         mobile node     |        /   4) For datagrams sent by the
  578.         arrives on      |      /        mobile node, standard IP
  579.         home network    |    /          routing delivers each to its
  580.         via standard    |  |_           destination.  In this figure,
  581.         IP routing.   +----+            the foreign agent is the
  582.                       |host|            mobile node's default router.
  583.                       +----+
  584.  
  585. 1.8. Specification Language
  586.  
  587.    In this document, several words are used to signify the requirements
  588.    of the specification.  These words are often capitalized.
  589.  
  590.       MUST       This word, or the adjective "required", means that
  591.                  the definition is an absolute requirement of the
  592.                  specification.
  593.  
  594.       MUST NOT   This phrase means that the definition is an absolute
  595.                  prohibition of the specification.
  596.  
  597.       SHOULD     This word, or the adjective "recommended", means
  598.                  that, in some circumstances, valid reasons may exist
  599.                  to ignore this item, but the full implications must
  600.                  be understood and carefully weighed before choosing
  601.                  a different course.  Unexpected results may result
  602.                  otherwise.
  603.  
  604.       MAY        This word, or the adjective "optional", means that this
  605.                  item is one of an allowed set of alternatives.  An
  606.                  implementation which does not include this option MUST
  607.                  be prepared to interoperate with another implementation
  608.                  which does include the option.
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618. Perkins                     Standards Track                    [Page 11]
  619.  
  620. RFC 2002                  IP Mobility Support               October 1996
  621.  
  622.  
  623.       silently discard
  624.                  The implementation discards the datagram without
  625.                  further processing, and without indicating an error
  626.                  to the sender.  The implementation SHOULD provide the
  627.                  capability of logging the error, including the contents
  628.                  of the discarded datagram, and SHOULD record the event
  629.                  in a statistics counter.
  630.  
  631. 1.9. Message Format and Protocol Extensibility
  632.  
  633.    Mobile IP defines a set of new control messages, sent with UDP [17]
  634.    using well-known port number 434.  Currently, the following two
  635.    message types are defined:
  636.  
  637.       1  Registration Request
  638.       3  Registration Reply
  639.  
  640.    Up-to-date values for the message types for Mobile IP control
  641.    messages are specified in the most recent "Assigned Numbers" [20].
  642.  
  643.    In addition, for Agent Discovery, Mobile IP makes use of the existing
  644.    Router Advertisement and Router Solicitation messages defined for
  645.    ICMP Router Discovery [4].
  646.  
  647.    Mobile IP defines a general Extension mechanism to allow optional
  648.    information to be carried by Mobile IP control messages or by ICMP
  649.    Router Discovery messages.  Each of these Extensions (with one
  650.    exception) is encoded in the following Type-Length-Value format:
  651.  
  652.     0                   1                   2
  653.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2
  654.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  655.    |     Type      |    Length     |    Data ...
  656.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  657.  
  658.       Type     Indicates the particular type of Extension.
  659.  
  660.       Length   Indicates the length (in bytes) of the data field within
  661.                this Extension.  The length does NOT include the Type and
  662.                Length bytes.
  663.  
  664.       Data     The particular data associated with this Extension.  This
  665.                field may be zero or more bytes in length.  The format
  666.                and length of the data field is determined by the type
  667.                and length fields.
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674. Perkins                     Standards Track                    [Page 12]
  675.  
  676. RFC 2002                  IP Mobility Support               October 1996
  677.  
  678.  
  679.    Extensions allow variable amounts of information to be carried within
  680.    each datagram.  The end of the list of Extensions is indicated by the
  681.    total length of the IP datagram.
  682.  
  683.    Two separately maintained sets of numbering spaces, from which
  684.    Extension Type values are allocated, are used in Mobile IP:
  685.  
  686.     -  The first set consists of those Extensions which may appear only
  687.        in Mobile IP control messages (those sent to and from UDP port
  688.        number 434).  Currently, the following Types are defined for
  689.        Extensions appearing in Mobile IP control messages:
  690.  
  691.           32  Mobile-Home Authentication
  692.           33  Mobile-Foreign Authentication
  693.           34  Foreign-Home Authentication
  694.  
  695.     -  The second set consists of those extensions which may appear only
  696.        in ICMP Router Discovery messages [4].  Currently, Mobile IP
  697.        defines the following Types for Extensions appearing in ICMP
  698.        Router Discovery messages:
  699.  
  700.            0  One-byte Padding (encoded with no Length nor Data field)
  701.           16  Mobility Agent Advertisement
  702.           19  Prefix-Lengths
  703.  
  704.    Each individual Extension is described in detail in a separate
  705.    section later in this document.  Up-to-date values for these
  706.    Extension Type numbers are specified in the most recent "Assigned
  707.    Numbers" [20].
  708.  
  709.    Due to the separation (orthogonality) of these sets, it is
  710.    conceivable that two Extensions that are defined at a later date
  711.    could have identical Type values, so long as one of the Extensions
  712.    may be used only in Mobile IP control messages and the other may be
  713.    used only in ICMP Router Discovery messages.
  714.  
  715.    When an Extension numbered in either of these sets within the range 0
  716.    through 127 is encountered but not recognized, the message containing
  717.    that Extension MUST be silently discarded.  When an Extension
  718.    numbered in the range 128 through 255 is encountered which is not
  719.    recognized, that particular Extension is ignored, but the rest of the
  720.    Extensions and message data MUST still be processed.  The Length
  721.    field of the Extension is used to skip the Data field in searching
  722.    for the next Extension.
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. Perkins                     Standards Track                    [Page 13]
  731.  
  732. RFC 2002                  IP Mobility Support               October 1996
  733.  
  734.  
  735. 2. Agent Discovery
  736.  
  737.    Agent Discovery is the method by which a mobile node determines
  738.    whether it is currently connected to its home network or to a foreign
  739.    network, and by which a mobile node can detect when it has moved from
  740.    one network to another.  When connected to a foreign network, the
  741.    methods specified in this section also allow the mobile node to
  742.    determine the foreign agent care-of address being offered by each
  743.    foreign agent on that network.
  744.  
  745.    Mobile IP extends ICMP Router Discovery [4] as its primary mechanism
  746.    for Agent Discovery.  An Agent Advertisement is formed by including a
  747.    Mobility Agent Advertisement Extension in an ICMP Router
  748.    Advertisement message (Section 2.1).  An Agent Solicitation message
  749.    is identical to an ICMP Router Solicitation, except that its IP TTL
  750.    MUST be set to 1 (Section 2.2).  This section describes the message
  751.    formats and procedures by which mobile nodes, foreign agents, and
  752.    home agents cooperate to realize Agent Discovery.
  753.  
  754.    Agent Advertisement and Agent Solicitation may not be necessary for
  755.    link layers that already provide this functionality.  The method by
  756.    which mobile nodes establish link-layer connections with prospective
  757.    agents is outside the scope of this document (but see Appendix B).
  758.    The procedures described below assume that such link-layer
  759.    connectivity has already been established.
  760.  
  761.    No authentication is required for Agent Advertisement and Agent
  762.    Solicitation messages.  They MAY be authenticated using the IP
  763.    Authentication Header [1], which is unrelated to the messages
  764.    described in this document.  Further specification of the way in
  765.    which Advertisement and Solicitation messages may be authenticated is
  766.    outside of the scope of this document.
  767.  
  768. 2.1. Agent Advertisement
  769.  
  770.    Agent Advertisements are transmitted by a mobility agent to advertise
  771.    its services on a link.  Mobile nodes use these advertisements to
  772.    determine their current point of attachment to the Internet.  An
  773.    Agent Advertisement is an ICMP Router Advertisement that has been
  774.    extended to also carry an Mobility Agent Advertisement Extension
  775.    (Section 2.1.1) and, optionally, a Prefix-Lengths Extension (Section
  776.    2.1.2), One-byte Padding Extension (Section 2.1.3), or other
  777.    Extensions that might be defined in the future.
  778.  
  779.    Within an Agent Advertisement message, ICMP Router Advertisement
  780.    fields of the message are required to conform to the following
  781.    additional specifications:
  782.  
  783.  
  784.  
  785.  
  786. Perkins                     Standards Track                    [Page 14]
  787.  
  788. RFC 2002                  IP Mobility Support               October 1996
  789.  
  790.  
  791.     -  Link-Layer Fields
  792.  
  793.           Destination Address
  794.                    The link-layer destination address of a unicast
  795.                    Agent Advertisement MUST be the same as the source
  796.                    link-layer address of the Agent Solicitation which
  797.                    prompted the Advertisement.
  798.  
  799.     -  IP Fields
  800.  
  801.           TTL      The TTL for all Agent Advertisements MUST be set
  802.                    to 1.
  803.  
  804.           Destination Address
  805.                    As specified for ICMP Router Discovery [4], the IP
  806.                    destination address of an Agent Advertisement MUST
  807.                    be either the "all systems on this link" multicast
  808.                    address (224.0.0.1) [5] or the "limited broadcast"
  809.                    address (255.255.255.255).  The subnet-directed
  810.                    broadcast address of the form <prefix>.<-1> cannot be
  811.                    used since mobile nodes will not generally know the
  812.                    prefix of the foreign network.
  813.  
  814.     -  ICMP Fields
  815.  
  816.           Code     The Code field of the agent advertisement is
  817.                    interpreted as follows:
  818.  
  819.                     0 The mobility agent handles common traffic -- that
  820.                       is, it acts as a router for IP datagrams not
  821.                       necessarily related to mobile nodes.
  822.                    16 The mobility agent does not route common traffic.
  823.                       However, all foreign agents MUST (minimally)
  824.                       forward to a default router any datagrams received
  825.                       from a registered mobile node (Section 4.2.2).
  826.  
  827.           Lifetime
  828.                    The maximum length of time that the Advertisement
  829.                    is considered valid in the absence of further
  830.                    Advertisements.
  831.  
  832.           Router Address(es)
  833.                    See Section 2.3.1 for a discussion of the addresses
  834.                    that may appear in this portion of the Agent
  835.                    Advertisement.
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842. Perkins                     Standards Track                    [Page 15]
  843.  
  844. RFC 2002                  IP Mobility Support               October 1996
  845.  
  846.  
  847.           Num Addrs
  848.                    The number of Router Addresses advertised in this
  849.                    message.  Note that in an Agent Advertisement
  850.                    message, the number of router addresses specified in
  851.                    the ICMP Router Advertisement portion of the message
  852.                    MAY be set to 0.  See Section 2.3.1 for details.
  853.  
  854.    If sent periodically, the nominal interval at which Agent
  855.    Advertisements are sent SHOULD be 1/3 of the advertisement Lifetime
  856.    given in the ICMP header.  This allows a mobile node to miss three
  857.    successive advertisements before deleting the agent from its list of
  858.    valid agents.  The actual transmission time for each advertisement
  859.    SHOULD be slightly randomized [4] in order to avoid synchronization
  860.    and subsequent collisions with other Agent Advertisements that may be
  861.    sent by other agents (or with other Router Advertisements sent by
  862.    other routers).  Note that this field has no relation to the
  863.    "Registration Lifetime" field within the Mobility Agent Advertisement
  864.    Extension defined below.
  865.  
  866. 2.1.1. Mobility Agent Advertisement Extension
  867.  
  868.    The Mobility Agent Advertisement Extension follows the ICMP Router
  869.    Advertisement fields.  It is used to indicate that an ICMP Router
  870.    Advertisement message is also an Agent Advertisement being sent by a
  871.    mobility agent.  The Mobility Agent Advertisement Extension is
  872.    defined as follows:
  873.  
  874.     0                   1                   2                   3
  875.     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
  876.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  877.    |     Type      |    Length     |        Sequence Number        |
  878.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  879.    |    Registration Lifetime      |R|B|H|F|M|G|V|    reserved     |
  880.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  881.    |                  zero or more Care-of Addresses               |
  882.    |                              ...                              |
  883.  
  884.       Type     16
  885.  
  886.       Length   (6 + 4*N), where N is the number of care-of addresses
  887.                advertised.
  888.  
  889.       Sequence Number
  890.                The count of Agent Advertisement messages sent since the
  891.                agent was initialized (Section 2.3.2).
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898. Perkins                     Standards Track                    [Page 16]
  899.  
  900. RFC 2002                  IP Mobility Support               October 1996
  901.  
  902.  
  903.       Registration Lifetime
  904.                The longest lifetime (measured in seconds) that this
  905.                agent is willing to accept in any Registration Request.
  906.                A value of 0xffff indicates infinity.  This field has no
  907.                relation to the "Lifetime" field within the ICMP Router
  908.                Advertisement portion of the Agent Advertisement.
  909.  
  910.       R        Registration required.  Registration with this foreign
  911.                agent (or another foreign agent on this link) is required
  912.                rather than using a co-located care-of address.
  913.  
  914.       B        Busy.  The foreign agent will not accept registrations
  915.                from additional mobile nodes.
  916.  
  917.       H        Home agent.  This agent offers service as a home agent
  918.                on the link on which this Agent Advertisement message is
  919.                sent.
  920.  
  921.       F        Foreign agent.  This agent offers service as a foreign
  922.                agent on the link on which this Agent Advertisement
  923.                message is sent.
  924.  
  925.       M        Minimal encapsulation.  This agent implements receiving
  926.                tunneled datagrams that use minimal encapsulation [15].
  927.  
  928.       G        GRE encapsulation.  This agent implements receiving
  929.                tunneled datagrams that use GRE encapsulation [8].
  930.  
  931.       V        Van Jacobson header compression.  This agent supports use
  932.                of Van Jacobson header compression [10] over the link
  933.                with any registered mobile node.
  934.  
  935.       reserved
  936.                Sent as zero; ignored on reception.
  937.  
  938.       Care-of Address(es)
  939.                The advertised foreign agent care-of address(es) provided
  940.                by this foreign agent.  An Agent Advertisement MUST
  941.                include at least one care-of address if the 'F' bit
  942.                is set.  The number of care-of addresses present is
  943.                determined by the Length field in the Extension.
  944.  
  945.    A home agent MUST always be prepared to serve the mobile nodes for
  946.    which it is the home agent.  A foreign agent may at times be too busy
  947.    to serve additional mobile nodes; even so, it must continue to send
  948.    Agent Advertisements, so that any mobile nodes already registered
  949.    with it will know that they have not moved out of range of the
  950.    foreign agent and that the foreign agent has not failed.  A foreign
  951.  
  952.  
  953.  
  954. Perkins                     Standards Track                    [Page 17]
  955.  
  956. RFC 2002                  IP Mobility Support               October 1996
  957.  
  958.  
  959.    agent may indicate that it is "too busy" to allow new mobile nodes to
  960.    register with it, by setting the 'B' bit in its Agent Advertisements.
  961.    An Agent Advertisement message MUST NOT have the 'B' bit set if the
  962.    'F' bit is not also set, and at least one of the 'F' bit and the 'H'
  963.    bit MUST be set in any Agent Advertisement message sent.
  964.  
  965.    When a foreign agent wishes to require registration even from those
  966.    mobile nodes which have acquired a co-located care-of address, it
  967.    sets the 'R' bit to one.  Because this bit applies only to foreign
  968.    agents, an agent MUST NOT set the 'R' bit to one unless the 'F' bit
  969.    is also set to one.
  970.  
  971. 2.1.2. Prefix-Lengths Extension
  972.  
  973.    The Prefix-Lengths Extension MAY follow the Mobility Agent
  974.    Advertisement Extension.  It is used to indicate the number of bits
  975.    of network prefix that applies to each Router Address listed in the
  976.    ICMP Router Advertisement portion of the Agent Advertisement.  Note
  977.    that the prefix lengths given DO NOT apply to care-of address(es)
  978.    listed in the Mobility Agent Advertisement Extension.  The Prefix-
  979.    Lengths Extension is defined as follows:
  980.  
  981.     0                   1                   2                   3
  982.     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
  983.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  984.    |     Type      |    Length     | Prefix Length |      ....
  985.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  986.  
  987.       Type     19 (Prefix-Lengths Extension)
  988.  
  989.       Length   N, where N is the value of the Num Addrs field in
  990.                the ICMP Router Advertisement portion of the Agent
  991.                Advertisement.
  992.  
  993.       Prefix Length(s)
  994.                The number of leading bits that define the network number
  995.                of the corresponding Router Address listed in the ICMP
  996.                Router Advertisement portion of the message.  The prefix
  997.                length for each Router Address is encoded as a separate
  998.                byte, in the order that the Router Addresses are listed
  999.                in the ICMP Router Advertisement portion of the message.
  1000.  
  1001.    See Section 2.4.2 for information about how the Prefix Lengths
  1002.    Extension MAY be used by a mobile node when determining whether it
  1003.    has moved.  See Appendix E for implementation details about the use
  1004.    of this Extension.
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010. Perkins                     Standards Track                    [Page 18]
  1011.  
  1012. RFC 2002                  IP Mobility Support               October 1996
  1013.  
  1014.  
  1015. 2.1.3. One-byte Padding Extension
  1016.  
  1017.    Some IP protocol implementations insist upon padding ICMP messages to
  1018.    an even number of bytes.  If the ICMP length of an Agent
  1019.    Advertisement is odd, this Extension MAY be included in order to make
  1020.    the ICMP length even.  Note that this Extension is NOT intended to be
  1021.    a general-purpose Extension to be included in order to word- or
  1022.    long-align the various fields of the Agent Advertisement.  An Agent
  1023.    Advertisement SHOULD NOT include more than one One-byte Padding
  1024.    Extension and if present, this Extension SHOULD be the last Extension
  1025.    in the Agent Advertisement.
  1026.  
  1027.    Note that unlike other Extensions used in Mobile IP, the One-byte
  1028.    Padding Extension is encoded as a single byte, with no "Length" nor
  1029.    "Data" field present.  The One-byte Padding Extension is defined as
  1030.    follows:
  1031.  
  1032.     0 1 2 3 4 5 6 7
  1033.    +-+-+-+-+-+-+-+-+
  1034.    |     Type      |
  1035.    +-+-+-+-+-+-+-+-+
  1036.  
  1037.       Type 0 (One-byte Padding Extension)
  1038.  
  1039. 2.2. Agent Solicitation
  1040.  
  1041.    An Agent Solicitation is identical to an ICMP Router Solicitation
  1042.    with the further restriction that the IP TTL Field MUST be set to 1.
  1043.  
  1044. 2.3. Foreign Agent and Home Agent Considerations
  1045.  
  1046.    Any mobility agent which cannot be discovered by a link-layer
  1047.    protocol MUST send Agent Advertisements.  An agent which can be
  1048.    discovered by a link-layer protocol SHOULD also implement Agent
  1049.    Advertisements.  However, the Advertisements need not be sent, except
  1050.    when the site policy requires registration with the agent (i.e., when
  1051.    the 'R' bit is set), or as a response to a specific Agent
  1052.    Solicitation.  All mobility agents SHOULD respond to Agent
  1053.    Solicitations.
  1054.  
  1055.    The same procedures, defaults, and constants are used in Agent
  1056.    Advertisement messages and Agent Solicitation messages as specified
  1057.    for ICMP Router Discovery [4], except that:
  1058.  
  1059.     -  a mobility agent MUST limit the rate at which it sends broadcast
  1060.        or multicast Agent Advertisements; a recommended maximum rate is
  1061.        once per second, AND
  1062.  
  1063.  
  1064.  
  1065.  
  1066. Perkins                     Standards Track                    [Page 19]
  1067.  
  1068. RFC 2002                  IP Mobility Support               October 1996
  1069.  
  1070.  
  1071.     -  a mobility agent that receives a Router Solicitation MUST NOT
  1072.        require that the IP Source Address is the address of a neighbor
  1073.        (i.e., an address that matches one of the router's own addresses
  1074.        on the arrival interface, under the subnet mask associated with
  1075.        that address of the router).
  1076.  
  1077.     -  a mobility agent MAY be configured to send Agent Advertisements
  1078.        only in response to an Agent Solicitation message.
  1079.  
  1080.    If the home network is not a virtual network, then the home agent for
  1081.    any mobile node SHOULD be located on the link identified by the
  1082.    mobile node's home address, and Agent Advertisement messages sent by
  1083.    the home agent on this link MUST have the 'H' bit set.  In this way,
  1084.    mobile nodes on their own home network will be able to determine that
  1085.    they are indeed at home.  Any Agent Advertisement messages sent by
  1086.    the home agent on another link to which it may be attached (if it is
  1087.    a mobility agent serving more than one link), MUST NOT have the 'H'
  1088.    bit set, unless the home agent also serves as a home agent (to other
  1089.    mobile nodes) on that other link.
  1090.  
  1091.    If the home network is a virtual network, the home network has no
  1092.    physical realization external to the home agent itself.  In this
  1093.    case, there is no physical network link on which to send Agent
  1094.    Advertisement messages advertising the home agent.  Mobile nodes for
  1095.    which this is the home network are always treated as being away from
  1096.    home.
  1097.  
  1098.    On a particular subnet, either all mobility agents MUST include the
  1099.    Prefix-Lengths Extension or all of them MUST NOT include this
  1100.    Extension.  Equivalently, it is prohibited for some agents on a given
  1101.    subnet to include the Extension but for others not to include it.
  1102.    Otherwise, one of the move detection algorithms designed for mobile
  1103.    nodes will not function properly (Section 2.4.2).
  1104.  
  1105. 2.3.1. Advertised Router Addresses
  1106.  
  1107.    The ICMP Router Advertisement portion of the Agent Advertisement MAY
  1108.    contain one or more router addresses.  Thus, an agent MAY include one
  1109.    of its own addresses in the advertisement.  A foreign agent MAY
  1110.    discourage use of this address as a default router by setting the
  1111.    preference to a low value and by including the address of another
  1112.    router in the advertisement (with a correspondingly higher
  1113.    preference).  Nevertheless, a foreign agent MUST route datagrams it
  1114.    receives from registered mobile nodes (Section 4.2.2).
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122. Perkins                     Standards Track                    [Page 20]
  1123.  
  1124. RFC 2002                  IP Mobility Support               October 1996
  1125.  
  1126.  
  1127. 2.3.2. Sequence Numbers and Rollover Handling
  1128.  
  1129.    The sequence number in Agent Advertisements ranges from 0 to 0xffff.
  1130.    After booting, an agent MUST use the number 0 for its first
  1131.    advertisement.  Each subsequent advertisement MUST use the sequence
  1132.    number one greater, with the exception that the sequence number
  1133.    0xffff MUST be followed by sequence number 256.  In this way, mobile
  1134.    nodes can distinguish reductions in sequence numbers that result from
  1135.    reboots, from reductions that result in rollover of the sequence
  1136.    number after it attains the value 0xffff.
  1137.  
  1138. 2.4. Mobile Node Considerations
  1139.  
  1140.    Every mobile node MUST implement Agent Solicitation.  Solicitations
  1141.    SHOULD only be sent in the absence of Agent Advertisements and when a
  1142.    care-of address has not been determined through a link-layer protocol
  1143.    or other means.  The mobile node uses the same procedures, defaults,
  1144.    and constants for Agent Solicitation as specified for ICMP Router
  1145.    Solicitation messages [4], except that the mobile node MAY solicit
  1146.    more often than once every three seconds, and that a mobile node that
  1147.    is currently not connected to any foreign agent MAY solicit more
  1148.    times than MAX_SOLICITATIONS.
  1149.  
  1150.    The rate at which a mobile node sends Solicitations MUST be limited
  1151.    by the mobile node.  The mobile node MAY send three initial
  1152.    Solicitations at a maximum rate of one per second while searching for
  1153.    an agent.  After this, the rate at which Solicitations are sent MUST
  1154.    be reduced so as to limit the overhead on the local link.  Subsequent
  1155.    Solicitations MUST be sent using a binary exponential backoff
  1156.    mechanism, doubling the interval between consecutive Solicitations,
  1157.    up to a maximum interval.  The maximum interval SHOULD be chosen
  1158.    appropriately based upon the characteristics of the media over which
  1159.    the mobile node is soliciting.  This maximum interval SHOULD be at
  1160.    least one minute between Solicitations.
  1161.  
  1162.    While still searching for an agent, the mobile node MUST NOT increase
  1163.    the rate at which it sends Solicitations unless it has received a
  1164.    positive indication that it has moved to a new link.  After
  1165.    successfully registering with an agent, the mobile node SHOULD also
  1166.    increase the rate at which it will send Solicitations when it next
  1167.    begins searching for a new agent with which to register.  The
  1168.    increased solicitation rate MAY revert to the maximum rate, but then
  1169.    MUST be limited in the manner described above.  In all cases, the
  1170.    recommended solicitation intervals are nominal values.  Mobile nodes
  1171.    MUST randomize their solicitation times around these nominal values
  1172.    as specified for ICMP Router Discovery [4].
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178. Perkins                     Standards Track                    [Page 21]
  1179.  
  1180. RFC 2002                  IP Mobility Support               October 1996
  1181.  
  1182.  
  1183.    Mobile nodes MUST process received Agent Advertisements.  A mobile
  1184.    node can distinguish an Agent Advertisement message from other uses
  1185.    of the ICMP Router Advertisement message by examining the number of
  1186.    advertised addresses and the IP Total Length field.  When the IP
  1187.    total length indicates that the ICMP message is longer than needed
  1188.    for the number of advertised addresses, the remaining data is
  1189.    interpreted as one or more Extensions.  The presence of a Mobility
  1190.    Agent Advertisement Extension identifies the advertisement as an
  1191.    Agent Advertisement.
  1192.  
  1193.    When multiple methods of agent discovery are in use, the mobile node
  1194.    SHOULD first attempt registration with agents including Mobility
  1195.    Agent Advertisement Extensions in their advertisements, in preference
  1196.    to those discovered by other means.  This preference maximizes the
  1197.    likelihood that the registration will be recognized, thereby
  1198.    minimizing the number of registration attempts.
  1199.  
  1200. 2.4.1. Registration Required
  1201.  
  1202.    When the mobile node receives an Agent Advertisement with the 'R' bit
  1203.    set, the mobile node SHOULD register through the foreign agent, even
  1204.    when the mobile node might be able to acquire its own co-located
  1205.    care-of address.  This feature is intended to allow sites to enforce
  1206.    visiting policies (such as accounting) which require exchanges of
  1207.    authorization.
  1208.  
  1209. 2.4.2. Move Detection
  1210.  
  1211.    Two primary mechanisms are provided for mobile nodes to detect when
  1212.    they have moved from one subnet to another.  Other mechanisms MAY
  1213.    also be used.  When the mobile node detects that it has moved, it
  1214.    SHOULD register (Section 3) with a suitable care-of address on the
  1215.    new foreign network.  However, the mobile node MUST NOT register more
  1216.    frequently than once per second on average, as specified in Section
  1217.    3.6.3.
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234. Perkins                     Standards Track                    [Page 22]
  1235.  
  1236. RFC 2002                  IP Mobility Support               October 1996
  1237.  
  1238.  
  1239. 2.4.2.1. Algorithm 1
  1240.  
  1241.    The first method of move detection is based upon the Lifetime field
  1242.    within the main body of the ICMP Router Advertisement portion of the
  1243.    Agent Advertisement.  A mobile node SHOULD record the Lifetime
  1244.    received in any Agent Advertisements, until that Lifetime expires.
  1245.    If the mobile node fails to receive another advertisement from the
  1246.    same agent within the specified Lifetime, it SHOULD assume that it
  1247.    has lost contact with that agent.  If the mobile node has previously
  1248.    received an Agent Advertisement from another agent for which the
  1249.    Lifetime field has not yet expired, the mobile node MAY immediately
  1250.    attempt registration with that other agent.  Otherwise, the mobile
  1251.    node SHOULD attempt to discover a new agent with which to register.
  1252.  
  1253. 2.4.2.2. Algorithm 2
  1254.  
  1255.    The second method uses network prefixes.  The Prefix-Lengths
  1256.    Extension MAY be used in some cases by a mobile node to determine
  1257.    whether or not a newly received Agent Advertisement was received on
  1258.    the same subnet as the mobile node's current care-of address.  If the
  1259.    prefixes differ, the mobile node MAY assume that it has moved.  If a
  1260.    mobile node is currently using a foreign agent care-of address, the
  1261.    mobile node SHOULD NOT use this method of move detection unless both
  1262.    the current agent and the new agent include the Prefix-Lengths
  1263.    Extension in their respective Agent Advertisements; if this Extension
  1264.    is missing from one or both of the advertisements, this method of
  1265.    move detection SHOULD NOT be used.  Similarly, if a mobile node is
  1266.    using a co-located care-of address, it SHOULD not use this method of
  1267.    move detection unless the new agent includes the Prefix-Lengths
  1268.    Extension in its Advertisement and the mobile node knows the network
  1269.    prefix of its current co-located care-of address.  On the expiration
  1270.    of its current registration, if this method indicates that the mobile
  1271.    node has moved, rather than re-registering with its current care-of
  1272.    address, a mobile node MAY choose instead to register with a the
  1273.    foreign agent sending the new Advertisement with the different
  1274.    network prefix.  The Agent Advertisement on which the new
  1275.    registration is based MUST NOT have expired according to its Lifetime
  1276.    field.
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290. Perkins                     Standards Track                    [Page 23]
  1291.  
  1292. RFC 2002                  IP Mobility Support               October 1996
  1293.  
  1294.  
  1295. 2.4.3. Returning Home
  1296.  
  1297.    A mobile node can detect that it has returned to its home network
  1298.    when it receives an Agent Advertisement from its own home agent.  If
  1299.    so, it SHOULD deregister with its home agent (Section 3).  Before
  1300.    attempting to deregister, the mobile node SHOULD configure its
  1301.    routing table appropriately for its home network (Section 4.2.1).  In
  1302.    addition, if the home network is using ARP [16], the mobile node MUST
  1303.    follow the procedures described in Section 4.6 with regard to ARP,
  1304.    proxy ARP, and gratuitous ARP.
  1305.  
  1306. 2.4.4. Sequence Numbers and Rollover Handling
  1307.  
  1308.    If a mobile node detects two successive values of the sequence number
  1309.    in the Agent Advertisements from the foreign agent with which it is
  1310.    registered, the second of which is less than the first and inside the
  1311.    range 0 to 255, the mobile node SHOULD register again.  If the second
  1312.    value is less than the first but is greater than or equal to 256, the
  1313.    mobile node SHOULD assume that the sequence number has rolled over
  1314.    past its maximum value (0xffff), and that reregistration is not
  1315.    necessary (Section 2.3).
  1316.  
  1317. 3. Registration
  1318.  
  1319.    Mobile IP registration provides a flexible mechanism for mobile nodes
  1320.    to communicate their current reachability information to their home
  1321.    agent.  It is the method by which mobile nodes:
  1322.  
  1323.     -  request forwarding services when visiting a foreign network,
  1324.  
  1325.     -  inform their home agent of their current care-of address,
  1326.  
  1327.     -  renew a registration which is due to expire, and/or
  1328.  
  1329.     -  deregister when they return home.
  1330.  
  1331.    Registration messages exchange information between a mobile node,
  1332.    (optionally) a foreign agent, and the home agent.  Registration
  1333.    creates or modifies a mobility binding at the home agent, associating
  1334.    the mobile node's home address with its care-of address for the
  1335.    specified Lifetime.
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346. Perkins                     Standards Track                    [Page 24]
  1347.  
  1348. RFC 2002                  IP Mobility Support               October 1996
  1349.  
  1350.  
  1351.    Several other (optional) capabilities are available through the
  1352.    registration procedure, which enable a mobile node to:
  1353.  
  1354.     -  maintain multiple simultaneous registrations, so that a copy of
  1355.        each datagram will be tunneled to each active care-of address
  1356.  
  1357.     -  deregister specific care-of addresses while retaining other
  1358.        mobility bindings, and
  1359.  
  1360.     -  discover the address of a home agent if the mobile node is not
  1361.        configured with this information.
  1362.  
  1363. 3.1. Registration Overview
  1364.  
  1365.    Mobile IP defines two different registration procedures, one via a
  1366.    foreign agent that relays the registration to the mobile node's home
  1367.    agent, and one directly with the mobile node's home agent.  The
  1368.    following rules determine which of these two registration procedures
  1369.    to use in any particular circumstance:
  1370.  
  1371.     -  If a mobile node is registering a foreign agent care-of address,
  1372.        the mobile node MUST register via that foreign agent.
  1373.  
  1374.     -  If a mobile node is using a co-located care-of address, and
  1375.        receives an Agent Advertisement from a foreign agent on the
  1376.        link on which it is using this care-of address, the mobile node
  1377.        SHOULD register via that foreign agent (or via another foreign
  1378.        agent on this link) if the 'R' bit is set in the received Agent
  1379.        Advertisement message.
  1380.  
  1381.     -  If a mobile node is otherwise using a co-located care-of address,
  1382.        the mobile node MUST register directly with its home agent.
  1383.  
  1384.     -  If a mobile node has returned to its home network and is
  1385.        (de)registering with its home agent, the mobile node MUST
  1386.        register directly with its home agent.
  1387.  
  1388.    Both registration procedures involve the exchange of Registration
  1389.    Request and Registration Reply messages (Sections 3.3 and 3.4).  When
  1390.    registering via a foreign agent, the registration procedure requires
  1391.    the following four messages:
  1392.  
  1393.       a)   The mobile node sends a Registration Request to the
  1394.            prospective foreign agent to begin the registration process.
  1395.  
  1396.       b)   The foreign agent processes the Registration Request and then
  1397.            relays it to the home agent.
  1398.  
  1399.  
  1400.  
  1401.  
  1402. Perkins                     Standards Track                    [Page 25]
  1403.  
  1404. RFC 2002                  IP Mobility Support               October 1996
  1405.  
  1406.  
  1407.       c)   The home agent sends a Registration Reply to the foreign
  1408.            agent to grant or deny the Request.
  1409.  
  1410.       d)   The foreign agent processes the Registration Reply and then
  1411.            relays it to the mobile node to inform it of the disposition
  1412.            of its Request.
  1413.  
  1414.    When the mobile node instead registers directly with its home agent,
  1415.    the registration procedure requires only the following two messages:
  1416.  
  1417.          a)   The mobile node sends a Registration Request to the home
  1418.               agent.
  1419.  
  1420.          b)   The home agent sends a Registration Reply to the mobile
  1421.               node, granting or denying the Request.
  1422.  
  1423.    The registration messages defined in Sections 3.3 and 3.4 use the
  1424.    User Datagram Protocol (UDP) [17].  A nonzero UDP checksum SHOULD be
  1425.    included in the header, and MUST be checked by the recipient.
  1426.  
  1427. 3.2. Authentication
  1428.  
  1429.    Each mobile node, foreign agent, and home agent MUST be able to
  1430.    support a mobility security association for mobile entities, indexed
  1431.    by their SPI and IP address.  In the case of the mobile node, this
  1432.    must be its Home Address.  See Section 5.1 for requirements for
  1433.    support of authentication algorithms.  Registration messages between
  1434.    a mobile node and its home agent MUST be authenticated with the
  1435.    Mobile-Home Authentication Extension (Section 3.5.2).  This Extension
  1436.    immediately follows all non-authentication Extensions, except those
  1437.    foreign agent-specific Extensions which may be added to the message
  1438.    after the mobile node computes the authentication.
  1439.  
  1440. 3.3. Registration Request
  1441.  
  1442.    A mobile node registers with its home agent using a Registration
  1443.    Request message so that its home agent can create or modify a
  1444.    mobility binding for that mobile node (e.g., with a new lifetime).
  1445.    The Request may be relayed to the home agent by the foreign agent
  1446.    through which the mobile node is registering, or it may be sent
  1447.    directly to the home agent in the case in which the mobile node is
  1448.    registering a co-located care-of address.
  1449.  
  1450.    IP fields:
  1451.  
  1452.       Source Address Typically the interface address from which the
  1453.                message is sent.
  1454.  
  1455.  
  1456.  
  1457.  
  1458. Perkins                     Standards Track                    [Page 26]
  1459.  
  1460. RFC 2002                  IP Mobility Support               October 1996
  1461.  
  1462.  
  1463.       Destination Address Typically that of the foreign agent or the
  1464.                home agent.
  1465.  
  1466.    See Sections 3.6.1.1 and 3.7.2.2 for details.
  1467.  
  1468.    UDP fields:
  1469.  
  1470.       Source Port        variable
  1471.  
  1472.       Destination Port   434
  1473.  
  1474.    The UDP header is followed by the Mobile IP fields shown below:
  1475.  
  1476.     0                   1                   2                   3
  1477.     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
  1478.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1479.    |     Type      |S|B|D|M|G|V|rsv|          Lifetime             |
  1480.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1481.    |                          Home Address                         |
  1482.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1483.    |                           Home Agent                          |
  1484.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1485.    |                        Care-of Address                        |
  1486.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1487.    |                                                               |
  1488.    +                         Identification                        +
  1489.    |                                                               |
  1490.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1491.    | Extensions ...
  1492.    +-+-+-+-+-+-+-+-
  1493.  
  1494.       Type     1 (Registration Request)
  1495.  
  1496.       S        Simultaneous bindings.  If the 'S' bit is set, the mobile
  1497.                node is requesting that the home agent retain its prior
  1498.                mobility bindings, as described in Section 3.6.1.2.
  1499.  
  1500.       B        Broadcast datagrams.  If the 'B' bit is set, the mobile
  1501.                node requests that the home agent tunnel to it any
  1502.                broadcast datagrams that it receives on the home network,
  1503.                as described in Section 4.3.
  1504.  
  1505.       D        Decapsulation by mobile node.  If the 'D' bit is set, the
  1506.                mobile node will itself decapsulate datagrams which are
  1507.                sent to the care-of address.  That is, the mobile node is
  1508.                using a co-located care-of address.
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514. Perkins                     Standards Track                    [Page 27]
  1515.  
  1516. RFC 2002                  IP Mobility Support               October 1996
  1517.  
  1518.  
  1519.       M        Minimal encapsulation.  If the 'M' bit is set, the
  1520.                mobile node requests that its home agent use minimal
  1521.                encapsulation [15] for datagrams tunneled to the mobile
  1522.                node.
  1523.  
  1524.       G        GRE encapsulation.  If the 'G' bit is set, the
  1525.                mobile node requests that its home agent use GRE
  1526.                encapsulation [8] for datagrams tunneled to the mobile
  1527.                node.
  1528.  
  1529.       V        The mobile node requests that its mobility agent use Van
  1530.                Jacobson header compression [10] over its link with the
  1531.                mobile node.
  1532.  
  1533.       rsv      Reserved bits; sent as zero
  1534.  
  1535.       Lifetime
  1536.                The number of seconds remaining before the registration
  1537.                is considered expired.  A value of zero indicates a
  1538.                request for deregistration.  A value of 0xffff indicates
  1539.                infinity.
  1540.  
  1541.       Home Address
  1542.                The IP address of the mobile node.
  1543.  
  1544.       Home Agent
  1545.                The IP address of the mobile node's home agent.
  1546.  
  1547.       Care-of Address
  1548.                The IP address for the end of the tunnel.
  1549.  
  1550.       Identification
  1551.                A 64-bit number, constructed by the mobile node, used for
  1552.                matching Registration Requests with Registration Replies,
  1553.                and for protecting against replay attacks of registration
  1554.                messages.  See Sections 5.4 and 5.6.
  1555.  
  1556.       Extensions
  1557.                The fixed portion of the Registration Request is followed
  1558.                by one or more of the Extensions listed in Section 3.5.
  1559.                The Mobile-Home Authentication Extension MUST be included
  1560.                in all Registration Requests.  See Sections 3.6.1.3
  1561.                and  3.7.2.2 for information on the relative order in
  1562.                which different extensions, when present, MUST be placed
  1563.                in a Registration Request message.
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570. Perkins                     Standards Track                    [Page 28]
  1571.  
  1572. RFC 2002                  IP Mobility Support               October 1996
  1573.  
  1574.  
  1575. 3.4. Registration Reply
  1576.  
  1577.    A mobility agent returns a Registration Reply message to a mobile
  1578.    node which has sent a Registration Request (Section 3.3) message.  If
  1579.    the mobile node is requesting service from a foreign agent, that
  1580.    foreign agent will receive the Reply from the home agent and
  1581.    subsequently relay it to the mobile node.  The Reply message contains
  1582.    the necessary codes to inform the mobile node about the status of its
  1583.    Request, along with the lifetime granted by the home agent, which MAY
  1584.    be smaller than the original Request.
  1585.  
  1586.    The foreign agent MUST NOT increase the Lifetime selected by the
  1587.    mobile node in the Registration Request, since the Lifetime is
  1588.    covered by the Mobile-Home Authentication Extension, which cannot be
  1589.    correctly (re)computed by the foreign agent.  The home agent MUST NOT
  1590.    increase the Lifetime selected by the mobile node in the Registration
  1591.    Request, since doing so could increase it beyond the maximum
  1592.    Registration Lifetime allowed by the foreign agent.  If the Lifetime
  1593.    received in the Registration Reply is greater than that in the
  1594.    Registration Request, the Lifetime in the Request MUST be used.  When
  1595.    the Lifetime received in the Registration Reply is less than that in
  1596.    the Registration Request, the Lifetime in the Reply MUST be used.
  1597.  
  1598.    IP fields:
  1599.  
  1600.       Source Address        Typically copied from the destination
  1601.                             address of the Registration Request to which
  1602.                             the agent is replying.  See Sections 3.7.2.3
  1603.                             and 3.8.3.1 for complete details.
  1604.  
  1605.       Destination Address   Copied from the source address of the
  1606.                             Registration Request to which the agent is
  1607.                             replying
  1608.  
  1609.    UDP fields:
  1610.  
  1611.       Source Port           <variable>
  1612.  
  1613.       Destination Port      Copied from the source port of the
  1614.                             corresponding Registration Request
  1615.                             (Section 3.7.1).
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626. Perkins                     Standards Track                    [Page 29]
  1627.  
  1628. RFC 2002                  IP Mobility Support               October 1996
  1629.  
  1630.  
  1631.    The UDP header is followed by the Mobile IP fields shown below:
  1632.  
  1633.     0                   1                   2                   3
  1634.     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
  1635.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1636.    |     Type      |     Code      |           Lifetime            |
  1637.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1638.    |                          Home Address                         |
  1639.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1640.    |                           Home Agent                          |
  1641.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1642.    |                                                               |
  1643.    +                         Identification                        +
  1644.    |                                                               |
  1645.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1646.    | Extensions ...
  1647.    +-+-+-+-+-+-+-+-
  1648.  
  1649.       Type     3 (Registration Reply)
  1650.  
  1651.       Code     A value indicating the result of the Registration
  1652.                Request.  See below for a list of currently defined Code
  1653.                values.
  1654.  
  1655.       Lifetime
  1656.                If the Code field indicates that the registration was
  1657.                accepted, the Lifetime field is set to the number of
  1658.                seconds remaining before the registration is considered
  1659.                expired.  A value of zero indicates that the mobile node
  1660.                has been deregistered.  A value of 0xffff indicates
  1661.                infinity.  If the Code field indicates that the
  1662.                registration was denied, the contents of the Lifetime
  1663.                field are unspecified and MUST be ignored on reception.
  1664.  
  1665.       Home Address
  1666.                The IP address of the mobile node.
  1667.  
  1668.       Home Agent
  1669.                The IP address of the mobile node's home agent.
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682. Perkins                     Standards Track                    [Page 30]
  1683.  
  1684. RFC 2002                  IP Mobility Support               October 1996
  1685.  
  1686.  
  1687.       Identification
  1688.                A 64-bit number used for matching Registration Requests
  1689.                with Registration Replies, and for protecting against
  1690.                replay attacks of registration messages.  The value is
  1691.                based on the Identification field from the Registration
  1692.                Request message from the mobile node, and on the style of
  1693.                replay protection used in the security context between
  1694.                the mobile node and its home agent (defined by the
  1695.                mobility security association between them, and SPI
  1696.                value in the Mobile-Home Authentication Extension).  See
  1697.                Sections 5.4 and 5.6.
  1698.  
  1699.       Extensions
  1700.                The fixed portion of the Registration Reply is followed
  1701.                by one or more of the Extensions listed in Section 3.5.
  1702.                The Mobile-Home Authentication Extension MUST be included
  1703.                in all Registration Replies returned by the home agent.
  1704.                See Sections 3.7.2.2 and 3.8.3.3 for rules on placement
  1705.                of extensions to Reply messages.
  1706.  
  1707.    The following values are defined for use within the Code field.
  1708.    Registration successful:
  1709.  
  1710.         0 registration accepted
  1711.         1 registration accepted, but simultaneous mobility
  1712.           bindings unsupported
  1713.  
  1714.    Registration denied by the foreign agent:
  1715.  
  1716.        64 reason unspecified
  1717.        65 administratively prohibited
  1718.        66 insufficient resources
  1719.        67 mobile node failed authentication
  1720.        68 home agent failed authentication
  1721.        69 requested Lifetime too long
  1722.        70 poorly formed Request
  1723.        71 poorly formed Reply
  1724.        72 requested encapsulation unavailable
  1725.        73 requested Van Jacobson compression unavailable
  1726.        80 home network unreachable (ICMP error received)
  1727.        81 home agent host unreachable (ICMP error received)
  1728.        82 home agent port unreachable (ICMP error received)
  1729.        88 home agent unreachable (other ICMP error received)
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738. Perkins                     Standards Track                    [Page 31]
  1739.  
  1740. RFC 2002                  IP Mobility Support               October 1996
  1741.  
  1742.  
  1743.    Registration denied by the home agent:
  1744.  
  1745.       128 reason unspecified
  1746.       129 administratively prohibited
  1747.       130 insufficient resources
  1748.       131 mobile node failed authentication
  1749.       132 foreign agent failed authentication
  1750.       133 registration Identification mismatch
  1751.       134 poorly formed Request
  1752.       135 too many simultaneous mobility bindings
  1753.       136 unknown home agent address
  1754.  
  1755.    Up-to-date values of the Code field are specified in the most recent
  1756.    "Assigned Numbers" [20].
  1757.  
  1758. 3.5. Registration Extensions
  1759.  
  1760. 3.5.1. Computing Authentication Extension Values
  1761.  
  1762.    The Authenticator value computed for each authentication Extension
  1763.    MUST protect the following fields from the registration message:
  1764.  
  1765.     -  the UDP payload (that is, the Registration Request or
  1766.        Registration Reply data),
  1767.  
  1768.     -  all prior Extensions in their entirety, and
  1769.  
  1770.     -  the Type and Length of this Extension.
  1771.  
  1772.    The default authentication algorithm uses keyed-MD5 [21] in
  1773.    "prefix+suffix" mode to compute a 128-bit "message digest" of the
  1774.    registration message.  The default authenticator is a 128-bit value
  1775.    computed as the MD5 checksum over the the following stream of bytes:
  1776.  
  1777.     -  the shared secret defined by the mobility security association
  1778.        between the nodes and by SPI value specified in the
  1779.        authentication Extension, followed by
  1780.  
  1781.     -  the protected fields from the registration message, in the order
  1782.        specified above, followed by
  1783.  
  1784.     -  the shared secret again.
  1785.  
  1786.    Note that the Authenticator field itself and the UDP header are NOT
  1787.    included in the computation of the default Authenticator value.  See
  1788.    Section 5.1 for information about support requirements for message
  1789.    authentication codes, which are to be used with the various
  1790.    authentication Extensions.
  1791.  
  1792.  
  1793.  
  1794. Perkins                     Standards Track                    [Page 32]
  1795.  
  1796. RFC 2002                  IP Mobility Support               October 1996
  1797.  
  1798.  
  1799.    The Security Parameter Index (SPI) within any of the authentication
  1800.    Extensions defines the security context which is used to compute the
  1801.    Authenticator value and which MUST be used by the receiver to check
  1802.    that value.  In particular, the SPI selects the authentication
  1803.    algorithm and mode (Section 5.1) and secret (a shared key, or
  1804.    appropriate public/private key pair) used in computing the
  1805.    Authenticator.  In order to ensure interoperability between different
  1806.    implementations of the Mobile IP protocol, an implementation MUST be
  1807.    able to associate any SPI value with any authentication algorithm and
  1808.    mode which it implements.  In addition, all implementations of Mobile
  1809.    IP MUST implement the default authentication algorithm (keyed-MD5)
  1810.    and mode ("prefix+suffix") defined above.
  1811.  
  1812. 3.5.2. Mobile-Home Authentication Extension
  1813.  
  1814.    Exactly one Mobile-Home Authentication Extension MUST be present in
  1815.    all Registration Requests and Registration Replies, and is intended
  1816.    to eliminate problems [2] which result from the uncontrolled
  1817.    propagation of remote redirects in the Internet.  The location of the
  1818.    extension marks the end of the authenticated data.
  1819.  
  1820.     0                   1                   2                   3
  1821.     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
  1822.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1823.    |     Type      |     Length    |         SPI  ....
  1824.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1825.           ... SPI (cont.)          |       Authenticator ...
  1826.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1827.  
  1828.       Type            32
  1829.  
  1830.       Length          4 plus the number of bytes in the Authenticator.
  1831.  
  1832.       SPI             Security Parameter Index (4 bytes).  An opaque
  1833.                       identifier (see Section 1.6).
  1834.  
  1835.       Authenticator   (variable length) (See Section 3.5.1.)
  1836.  
  1837. 3.5.3. Mobile-Foreign Authentication Extension
  1838.  
  1839.    This Extension MAY be included in Registration Requests and Replies
  1840.    in cases in which a mobility security association exists between the
  1841.    mobile node and the foreign agent.  See Section 5.1 for information
  1842.    about support requirements for message authentication codes.
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850. Perkins                     Standards Track                    [Page 33]
  1851.  
  1852. RFC 2002                  IP Mobility Support               October 1996
  1853.  
  1854.  
  1855.     0                   1                   2                   3
  1856.     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
  1857.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1858.    |     Type      |     Length    |         SPI  ....
  1859.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1860.           ... SPI (cont.)          |       Authenticator ...
  1861.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1862.  
  1863.       Type            33
  1864.  
  1865.       Length          4 plus the number of bytes in the Authenticator.
  1866.  
  1867.       SPI             Security Parameter Index (4 bytes).  An opaque
  1868.                       identifier (see Section 1.6).
  1869.  
  1870.       Authenticator   (variable length) (See Section 3.5.1.)
  1871.  
  1872. 3.5.4. Foreign-Home Authentication Extension
  1873.  
  1874.    This Extension MAY be included in Registration Requests and Replies
  1875.    in cases in which a mobility security association exists between the
  1876.    foreign agent and the home agent.  See Section 5.1 for information
  1877.    about support requirements for message authentication codes.
  1878.  
  1879.     0                   1                   2                   3
  1880.     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
  1881.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1882.    |     Type      |     Length    |         SPI  ....
  1883.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1884.           ... SPI (cont.)          |       Authenticator ...
  1885.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1886.  
  1887.       Type            34
  1888.  
  1889.       Length          4 plus the number of bytes in the Authenticator.
  1890.  
  1891.       SPI             Security Parameter Index (4 bytes).  An opaque
  1892.                       identifier (see Section 1.6).
  1893.  
  1894.       Authenticator   (variable length) (See Section 3.5.1.)
  1895.  
  1896. 3.6. Mobile Node Considerations
  1897.  
  1898.    A mobile node MUST be configured with its home address, a netmask,
  1899.    and a mobility security association for each home agent.  In
  1900.    addition, a mobile node MAY be configured with the IP address of one
  1901.    or more of its home agents; otherwise, the mobile node MAY discover a
  1902.    home agent using the procedures described in Section 3.6.1.2.
  1903.  
  1904.  
  1905.  
  1906. Perkins                     Standards Track                    [Page 34]
  1907.  
  1908. RFC 2002                  IP Mobility Support               October 1996
  1909.  
  1910.  
  1911.    For each pending registration, the mobile node maintains the
  1912.    following information:
  1913.  
  1914.     - the link-layer address of the foreign agent to which the
  1915.       Registration Request was sent, if applicable,
  1916.     - the IP destination address of the Registration Request,
  1917.     - the care-of address used in the registration,
  1918.     - the Identification value sent in the registration,
  1919.     - the originally requested Lifetime, and
  1920.     - the remaining Lifetime of the pending registration.
  1921.  
  1922.    A mobile node SHOULD initiate a registration whenever it detects a
  1923.    change in its network connectivity.  See Section 2.4.2 for methods by
  1924.    which mobile nodes MAY make such a determination.  When it is away
  1925.    from home, the mobile node's Registration Request allows its home
  1926.    agent to create or modify a mobility binding for it.  When it is at
  1927.    home, the mobile node's (de)Registration Request allows its home
  1928.    agent to delete any previous mobility binding(s) for it.  A mobile
  1929.    node operates without the support of mobility functions when it is at
  1930.    home.
  1931.  
  1932.    There are other conditions under which the mobile node SHOULD
  1933.    (re)register with its foreign agent, such as when the mobile node
  1934.    detects that the foreign agent has rebooted (as specified in Section
  1935.    2.4.4) and when the current registration's Lifetime is near
  1936.    expiration.
  1937.  
  1938.    In the absence of link-layer indications of changes in point of
  1939.    attachment, Agent Advertisements from new agents SHOULD NOT cause a
  1940.    mobile node to attempt a new registration, if its current
  1941.    registration has not expired and it is still also receiving Agent
  1942.    Advertisements from the foreign agent with which it is currently
  1943.    registered.  In the absence of link-layer indications, a mobile node
  1944.    MUST NOT attempt to register more often than once per second.
  1945.  
  1946.    A mobile node MAY register with a different agent when transport-
  1947.    layer protocols indicate excessive retransmissions.  A mobile node
  1948.    MUST NOT consider reception of an ICMP Redirect from a foreign agent
  1949.    that is currently providing service to it as reason to register with
  1950.    a new foreign agent.  Within these constraints, the mobile node MAY
  1951.    register again at any time.
  1952.  
  1953.    Appendix D shows some examples of how the fields in registration
  1954.    messages would be set up in some typical registration scenarios.
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962. Perkins                     Standards Track                    [Page 35]
  1963.  
  1964. RFC 2002                  IP Mobility Support               October 1996
  1965.  
  1966.  
  1967. 3.6.1. Sending Registration Requests
  1968.  
  1969.    The following sections specify details for the values the mobile node
  1970.    MUST supply in the fields of Registration Request messages.
  1971.  
  1972. 3.6.1.1. IP Fields
  1973.  
  1974.    This section provides the specific rules by which mobile nodes pick
  1975.    values for the IP header fields of a Registration Request.
  1976.  
  1977.    IP Source Address:
  1978.  
  1979.     -  When registering on a foreign network with a co-located care-of
  1980.        address, the IP source address MUST be the care-of address.
  1981.  
  1982.     -  In all other circumstances, the IP source address MUST be the
  1983.        mobile node's home address.
  1984.  
  1985.    IP Destination Address:
  1986.  
  1987.     -  When the mobile node has discovered the agent with which it is
  1988.        registering, through some means (e.g., link-layer) that does not
  1989.        provide the IP address of the agent (the IP address of the agent
  1990.        is unknown to the mobile node), then the "All Mobility Agents"
  1991.        multicast address (224.0.0.11) MUST be used.  In this case, the
  1992.        mobile node MUST use the agent's link-layer unicast address in
  1993.        order to deliver the datagram to the correct agent.
  1994.  
  1995.     -  When registering with a foreign agent, the address of the agent
  1996.        as learned from the IP source address of the corresponding Agent
  1997.        Advertisement MUST be used.  In addition, when transmitting
  1998.        this Registration Request message, the mobile node MUST use a
  1999.        link-layer destination address copied from the link-layer source
  2000.        address of the Agent Advertisement message in which it learned
  2001.        this foreign agent's IP address.
  2002.  
  2003.     -  When the mobile node is registering directly with its home
  2004.        agent and knows the (unicast) IP address of its home agent, the
  2005.        destination address MUST be set to this address.
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018. Perkins                     Standards Track                    [Page 36]
  2019.  
  2020. RFC 2002                  IP Mobility Support               October 1996
  2021.  
  2022.  
  2023.     -  If the mobile node is registering directly with its home
  2024.        agent, but does not know the IP address of its home agent,
  2025.        the mobile node may use dynamic home agent address resolution
  2026.        to automatically determine the IP address of its home agent
  2027.        (Section 3.6.1.2).  In this case, the IP destination address is
  2028.        set to the subnet-directed broadcast address of the mobile node's
  2029.        home network.  This address MUST NOT be used as the destination
  2030.        IP address if the mobile node is registering via a foreign agent,
  2031.        although it MAY be used as the Home Agent address in the body of
  2032.        the Registration Request when registering via a foreign agent.
  2033.  
  2034.    IP Time to Live:
  2035.  
  2036.     -  The IP TTL field MUST be set to 1 if the IP destination address
  2037.        is set to the "All Mobility Agents" multicast address as
  2038.        described above.  Otherwise a suitable value should be chosen in
  2039.        accordance with standard IP practice [19].
  2040.  
  2041. 3.6.1.2. Registration Request Fields
  2042.  
  2043.    This section provides specific rules by which mobile nodes pick
  2044.    values for the fields within the fixed portion of a Registration
  2045.    Request.
  2046.  
  2047.    A mobile node MAY set the 'S' bit in order to request that the home
  2048.    agent maintain prior mobility binding(s).  Otherwise, the home agent
  2049.    deletes any previous binding(s) and replaces them with the new
  2050.    binding specified in the Registration Request.  Multiple simultaneous
  2051.    mobility bindings are likely to be useful when a mobile node using at
  2052.    least one wireless network interface moves within wireless
  2053.    transmission range of more than one foreign agent.  IP explicitly
  2054.    allows duplication of datagrams.  When the home agent allows
  2055.    simultaneous bindings, it will tunnel a separate copy of each
  2056.    arriving datagram to each care-of address, and the mobile node will
  2057.    receive multiple copies of datagrams destined to it.
  2058.  
  2059.    The mobile node SHOULD set the 'D' bit if it is registering with a
  2060.    co-located care-of address.  Otherwise, the 'D' bit MUST NOT be set.
  2061.  
  2062.    A mobile node MAY set the 'B' bit to request its home agent to
  2063.    forward to it, a copy of broadcast datagrams received by its home
  2064.    agent from the home network.  The method used by the home agent to
  2065.    forward broadcast datagrams depends on the type of care-of address
  2066.    registered by the mobile node, as determined by the 'D' bit in the
  2067.    mobile node's Registration Request:
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074. Perkins                     Standards Track                    [Page 37]
  2075.  
  2076. RFC 2002                  IP Mobility Support               October 1996
  2077.  
  2078.  
  2079.     -  If the 'D' bit is set, then the mobile node has indicated that it
  2080.        will decapsulate any datagrams tunneled to this care-of address
  2081.        itself (the mobile node is using a co-located care-of address).
  2082.        In this case, to forward such a received broadcast datagram to
  2083.        the mobile node, the home agent MUST tunnel it to this care-of
  2084.        address.  The mobile node de-tunnels the received datagram in the
  2085.        same way as any other datagram tunneled directly to it.
  2086.  
  2087.     -  If the 'D' bit is NOT set, then the mobile node has indicated
  2088.        that it is using a foreign agent care-of address, and that the
  2089.        foreign agent will thus decapsulate arriving datagrams before
  2090.        forwarding them to the mobile node.  In this case, to forward
  2091.        such a received broadcast datagram to the mobile node, the home
  2092.        agent MUST first encapsulate the broadcast datagram in a unicast
  2093.        datagram addressed to the mobile node's home address, and then
  2094.        MUST tunnel this resulting datagram to the mobile node's care-of
  2095.        address.
  2096.  
  2097.       When decapsulated by the foreign agent, the inner datagram will
  2098.       thus be a unicast IP datagram addressed to the mobile node,
  2099.       identifying to the foreign agent the intended destination of the
  2100.       encapsulated broadcast datagram, and will be delivered to the
  2101.       mobile node in the same way as any tunneled datagram arriving for
  2102.       the mobile node.  The foreign agent MUST NOT decapsulate the
  2103.       encapsulated broadcast datagram and MUST NOT use a local network
  2104.       broadcast to transmit it to the mobile node.  The mobile node thus
  2105.       MUST decapsulate the encapsulated broadcast datagram itself, and
  2106.       thus MUST NOT set the 'B' bit in its Registration Request in this
  2107.       case unless it is capable of decapsulating datagrams.
  2108.  
  2109.    The mobile node MAY request alternative forms of encapsulation by
  2110.    setting the 'M' bit and/or the 'G' bit, but only if the mobile node
  2111.    is decapsulating its own datagrams (the mobile node is using a co-
  2112.    located care-of address) or if its foreign agent has indicated
  2113.    support for these forms of encapsulation by setting the corresponding
  2114.    bits in the Mobility Agent Advertisement Extension of an Agent
  2115.    Advertisement received by the mobile node.  Otherwise, the mobile
  2116.    node MUST NOT set these bits.
  2117.  
  2118.    The Lifetime field is chosen as follows:
  2119.  
  2120.     -  If the mobile node is registering with a foreign agent, the
  2121.        Lifetime SHOULD NOT exceed the value in the Registration Lifetime
  2122.        field of the Agent Advertisement message received from the
  2123.        foreign agent.  When the method by which the care-of address is
  2124.        learned does not include a Lifetime, the default ICMP Router
  2125.        Advertisement Lifetime (1800 seconds) MAY be used.
  2126.  
  2127.  
  2128.  
  2129.  
  2130. Perkins                     Standards Track                    [Page 38]
  2131.  
  2132. RFC 2002                  IP Mobility Support               October 1996
  2133.  
  2134.  
  2135.     -  The mobile node MAY ask a home agent to delete a particular
  2136.        mobility binding, by sending a Registration Request with the
  2137.        care-of address for this binding, with the Lifetime field set to
  2138.        zero (Section 3.8.2).
  2139.  
  2140.     -  Similarly, a Lifetime of zero is used when the mobile node
  2141.        deregisters all care-of addresses, such as upon returning home.
  2142.  
  2143.    The Home Agent field MUST be set to the address of the mobile node's
  2144.    home agent, if the mobile node knows this address.  Otherwise, the
  2145.    mobile node MAY use dynamic home agent address resolution to learn
  2146.    the address of its home agent.  In this case, the mobile node MUST
  2147.    set the Home Agent field to the subnet-directed broadcast address of
  2148.    the mobile node's home network.  Each home agent receiving such a
  2149.    Registration Request with a broadcast destination address MUST reject
  2150.    the mobile node's registration and SHOULD return a rejection
  2151.    Registration Reply indicating its unicast IP address for use by the
  2152.    mobile node in a future registration attempt.
  2153.  
  2154.    The Care-of Address field MUST be set to the value of the particular
  2155.    care-of address that the mobile node wishes to (de)register.  In the
  2156.    special case in which a mobile node wishes to deregister all care-of
  2157.    addresses, it MUST set this field to its home address.
  2158.  
  2159.    The mobile node chooses the Identification field in accordance with
  2160.    the style of replay protection it uses with its home agent.  This is
  2161.    part of the mobility security association the mobile node shares with
  2162.    its home agent.  See Section 5.6 for the method by which the mobile
  2163.    node computes the Identification field.
  2164.  
  2165. 3.6.1.3. Extensions
  2166.  
  2167.    This section describes the ordering of any mandatory and any optional
  2168.    Extensions that a mobile node appends to a Registration Request.
  2169.    This following ordering MUST be followed:
  2170.  
  2171.       a)   The IP header, followed by the UDP header, followed by the
  2172.            fixed-length portion of the Registration Request, followed by
  2173.  
  2174.       b)   If present, any non-authentication Extensions expected to be
  2175.            used by the home agent (which may or may not also be used by
  2176.            the foreign agent), followed by
  2177.  
  2178.       c)   The Mobile-Home Authentication Extension, followed by
  2179.  
  2180.       d)   If present, any non-authentication Extensions used only by
  2181.            the foreign agent, followed by
  2182.  
  2183.  
  2184.  
  2185.  
  2186. Perkins                     Standards Track                    [Page 39]
  2187.  
  2188. RFC 2002                  IP Mobility Support               October 1996
  2189.  
  2190.  
  2191.       e)   The Mobile-Foreign Authentication Extension, if present.
  2192.  
  2193.    Note that items (a) and (c) MUST appear in every Registration Request
  2194.    sent by the mobile node.  Items (b), (d), and (e) are optional.
  2195.    However, item (e) MUST be included when the mobile node and the
  2196.    foreign agent share a mobility security association.
  2197.  
  2198. 3.6.2. Receiving Registration Replies
  2199.  
  2200.    Registration Replies will be received by the mobile node in response
  2201.    to its Registration Requests.  Registration Replies generally fall
  2202.    into three categories:
  2203.  
  2204.     - the registration was accepted,
  2205.     - the registration was denied by the foreign agent, or
  2206.     - the registration was denied by the home agent.
  2207.  
  2208.    The remainder of this section describes the Registration Reply
  2209.    handling by a mobile node in each of these three categories.
  2210.  
  2211. 3.6.2.1. Validity Checks
  2212.  
  2213.    Registration Replies with an invalid, non-zero UDP checksum MUST be
  2214.    silently discarded.
  2215.  
  2216.    In addition, the low-order 32 bits of the Identification field in the
  2217.    Registration Reply MUST be compared to the low-order 32 bits of the
  2218.    Identification field in the most recent Registration Request sent to
  2219.    the replying agent.  If they do not match, the Reply MUST be silently
  2220.    discarded.
  2221.  
  2222.    Also, the authentication in the Registration Reply MUST be checked.
  2223.    That is, the mobile node MUST check for the presence of a valid
  2224.    authentication Extension, acting in accordance with the Code field in
  2225.    the Reply.  The rules are as follows:
  2226.  
  2227.       a)   If the mobile node and the foreign agent share a
  2228.            mobility security association, exactly one Mobile-Foreign
  2229.            Authentication Extension MUST be present in the Registration
  2230.            Reply, and the mobile node MUST check the Authenticator
  2231.            value in the Extension.  If no Mobile-Foreign Authentication
  2232.            Extension is found, or if more than one Mobile-Foreign
  2233.            Authentication Extension is found, or if the Authenticator is
  2234.            invalid, the mobile node MUST silently discard the Reply and
  2235.            SHOULD log the event as a security exception.
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242. Perkins                     Standards Track                    [Page 40]
  2243.  
  2244. RFC 2002                  IP Mobility Support               October 1996
  2245.  
  2246.  
  2247.       b)   If the Code field indicates that service is denied by
  2248.            the home agent, or if the Code field indicates that the
  2249.            registration was accepted by the home agent, exactly one
  2250.            Mobile-Home Authentication Extension MUST be present in
  2251.            the Registration Reply, and the mobile node MUST check the
  2252.            Authenticator value in the Extension.  If no Mobile-Home
  2253.            Authentication Extension is found, or if more than one
  2254.            Mobile-Home Authentication Extension is found, or if the
  2255.            Authenticator is invalid, the mobile node MUST silently
  2256.            discard the Reply and SHOULD log the event as a security
  2257.            exception.
  2258.  
  2259.    If the Code field indicates an authentication failure, either at the
  2260.    foreign agent or the home agent, then it is quite possible that any
  2261.    authenticators in the Registration Reply will also be in error.  This
  2262.    could happen, for example, if the shared secret between the mobile
  2263.    node and home agent was erroneously configured.  The mobile node
  2264.    SHOULD log such errors as security exceptions.
  2265.  
  2266. 3.6.2.2. Registration Request Accepted
  2267.  
  2268.    If the Code field indicates that the request has been accepted, the
  2269.    mobile node SHOULD configure its routing table appropriately for its
  2270.    current point of attachment (Section 4.2.1).
  2271.  
  2272.    If the mobile node is returning to its home network and that network
  2273.    is one which implements ARP, the mobile node MUST follow the
  2274.    procedures described in Section 4.6 with regard to ARP, proxy ARP,
  2275.    and gratuitous ARP.
  2276.  
  2277.    If the mobile node has registered on a foreign network, it SHOULD
  2278.    re-register before the expiration of the Lifetime of its
  2279.    registration.  As described in Section 3.6, for each pending
  2280.    Registration Request, the mobile node MUST maintain the remaining
  2281.    lifetime of this pending registration, as well as the original
  2282.    Lifetime from the Registration Request.  When the mobile node
  2283.    receives a valid Registration Reply, the mobile node MUST decrease
  2284.    its view of the remaining lifetime of the registration by the amount
  2285.    by which the home agent decreased the originally requested Lifetime.
  2286.    This procedure is equivalent to the mobile node starting a timer for
  2287.    the granted Lifetime at the time it sent the Registration Request,
  2288.    even though the granted Lifetime is not known to the mobile node
  2289.    until the Registration Reply is received.  Since the Registration
  2290.    Request is certainly sent before the home agent begins timing the
  2291.    registration Lifetime (also based on the granted Lifetime), this
  2292.    procedure ensures that the mobile node will re-register before the
  2293.    home agent expires and deletes the registration, in spite of possibly
  2294.    non-negligible transmission delays for the original Registration
  2295.  
  2296.  
  2297.  
  2298. Perkins                     Standards Track                    [Page 41]
  2299.  
  2300. RFC 2002                  IP Mobility Support               October 1996
  2301.  
  2302.  
  2303.    Request and Reply that started the timing of the Lifetime at the
  2304.    mobile node and its home agent.
  2305.  
  2306. 3.6.2.3. Registration Request Denied
  2307.  
  2308.    If the Code field indicates that service is being denied, the mobile
  2309.    node SHOULD log the error.  In certain cases the mobile node may be
  2310.    able to "repair" the error.  These include:
  2311.  
  2312.       Code 69:  (Denied by foreign agent, Lifetime too long)
  2313.  
  2314.          In this case, the Lifetime field in the Registration Reply will
  2315.          contain the maximum Lifetime value which that foreign agent is
  2316.          willing to accept in any Registration Request.  The mobile node
  2317.          MAY attempt to register with this same agent, using a Lifetime
  2318.          in the Registration Request that MUST be less than or equal to
  2319.          the value specified in the Reply.
  2320.  
  2321.       Code 133:  (Denied by home agent, Identification mismatch)
  2322.  
  2323.          In this case, the Identification field in the Registration
  2324.          Reply will contain a value that allows the mobile node to
  2325.          synchronize with the home agent, based upon the style of replay
  2326.          protection in effect (Section 5.6).  The mobile node MUST
  2327.          adjust the parameters it uses to compute the Identification
  2328.          field based upon the information in the Registration Reply,
  2329.          before issuing any future Registration Requests.
  2330.  
  2331.       Code 136:  (Denied by home agent, Unknown home agent address)
  2332.  
  2333.          This code is returned by a home agent when the mobile node is
  2334.          performing dynamic home agent address resolution as described
  2335.          in Sections 3.6.1.1 and 3.6.1.2.  In this case, the Home Agent
  2336.          field within the Reply will contain the unicast IP address of
  2337.          the home agent returning the Reply.  The mobile node MAY then
  2338.          attempt to register with this home agent in future Registration
  2339.          Requests.  In addition, the mobile node SHOULD adjust the
  2340.          parameters it uses to compute the Identification field based
  2341.          upon the corresponding field in the Registration Reply, before
  2342.          issuing any future Registration Requests.
  2343.  
  2344. 3.6.3. Registration Retransmission
  2345.  
  2346.    When no Registration Reply has been received within a reasonable
  2347.    time, another Registration Request MAY be transmitted.  When
  2348.    timestamps are used, a new registration Identification is chosen for
  2349.    each retransmission; thus it counts as a new registration.  When
  2350.    nonces are used, the unanswered Request is retransmitted unchanged;
  2351.  
  2352.  
  2353.  
  2354. Perkins                     Standards Track                    [Page 42]
  2355.  
  2356. RFC 2002                  IP Mobility Support               October 1996
  2357.  
  2358.  
  2359.    thus the retransmission does not count as a new registration (Section
  2360.    5.6).  In this way a retransmission will not require the home agent
  2361.    to resynchronize with the mobile node by issuing another nonce in the
  2362.    case in which the original Registration Request (rather than its
  2363.    Registration Reply) was lost by the network.
  2364.  
  2365.    The maximum time until a new Registration Request is sent SHOULD be
  2366.    no greater than the requested Lifetime of the Registration Request.
  2367.    The minimum value SHOULD be large enough to account for the size of
  2368.    the messages, twice the round trip time for transmission to the home
  2369.    agent, and at least an additional 100 milliseconds to allow for
  2370.    processing the messages before responding.  The round trip time for
  2371.    transmission to the home agent will be at least as large as the time
  2372.    required to transmit the messages at the link speed of the mobile
  2373.    node's current point of attachment.  Some circuits add another 200
  2374.    milliseconds of satellite delay in the total round trip time to the
  2375.    home agent.  The minimum time between Registration Requests MUST NOT
  2376.    be less than 1 second.  Each successive retransmission timeout period
  2377.    SHOULD be at least twice the previous period, as long as that is less
  2378.    than the maximum as specified above.
  2379.  
  2380. 3.7. Foreign Agent Considerations
  2381.  
  2382.    The foreign agent plays a mostly passive role in Mobile IP
  2383.    registration.  It relays Registration Requests between mobile nodes
  2384.    and home agents, and, when it provides the care-of address,
  2385.    decapsulates datagrams for delivery to the mobile node.  It SHOULD
  2386.    also send periodic Agent Advertisement messages to advertise its
  2387.    presence as described in Section 2.3, if not detectable by link-layer
  2388.    means.
  2389.  
  2390.    A foreign agent MUST NOT transmit a Registration Request except when
  2391.    relaying a Registration Request received from a mobile node, to the
  2392.    mobile node's home agent.  A foreign agent MUST NOT transmit a
  2393.    Registration Reply except when relaying a Registration Reply received
  2394.    from a mobile node's home agent, or when replying to a Registration
  2395.    Request received from a mobile node in the case in which the foreign
  2396.    agent is denying service to the mobile node.  In particular, a
  2397.    foreign agent MUST NOT generate a Registration Request or Reply
  2398.    because a mobile node's registration Lifetime has expired.  A foreign
  2399.    agent also MUST NOT originate a Registration Request message that
  2400.    asks for deregistration of a mobile node; however, it MUST relay
  2401.    valid (de)Registration Requests originated by a mobile node.
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410. Perkins                     Standards Track                    [Page 43]
  2411.  
  2412. RFC 2002                  IP Mobility Support               October 1996
  2413.  
  2414.  
  2415. 3.7.1. Configuration and Registration Tables
  2416.  
  2417.    Each foreign agent MUST be configured with a care-of address.  In
  2418.    addition, for each pending or current registration, the foreign agent
  2419.    MUST maintain a visitor list entry containing the following
  2420.    information obtained from the mobile node's Registration Request:
  2421.  
  2422.     - the link-layer source address of the mobile node
  2423.     - the IP Source Address (the mobile node's Home Address)
  2424.     - the IP Destination Address (as specified in 3.6.2.3)
  2425.     - the UDP Source Port
  2426.     - the Home Agent address
  2427.     - the Identification field
  2428.     - the requested registration Lifetime, and
  2429.     - the remaining Lifetime of the pending or current registration.
  2430.  
  2431.    As with any node on the Internet, a foreign agent MAY also share
  2432.    mobility security associations with any other nodes.  When relaying a
  2433.    Registration Request from a mobile node to its home agent, if the
  2434.    foreign agent shares a mobility security association with the home
  2435.    agent, it MUST add a Foreign-Home Authentication Extension to the
  2436.    Request and MUST check the required Foreign-Home Authentication
  2437.    Extension in the Registration Reply from the home agent (Sections 3.3
  2438.    and 3.4).  Similarly, when receiving a Registration Request from a
  2439.    mobile node, if the foreign agent shares a mobility security
  2440.    association with the mobile node, it MUST check the required Mobile-
  2441.    Foreign Authentication Extension in the Request and MUST add a
  2442.    Mobile-Foreign Authentication Extension to the Registration Reply to
  2443.    the mobile node.
  2444.  
  2445. 3.7.2. Receiving Registration Requests
  2446.  
  2447.    If the foreign agent accepts a Registration Request from a mobile
  2448.    node, it then MUST relay the Request to the indicated home agent.
  2449.    Otherwise, if the foreign agent denies the Request, it MUST send a
  2450.    Registration Reply to the mobile node with an appropriate denial
  2451.    Code, except in cases where the foreign agent would be required to
  2452.    send out more than one such denial per second to the same mobile
  2453.    node.  The following sections describe this behavior in more detail.
  2454.  
  2455.    If a foreign agent receives a Registration Request from a mobile node
  2456.    in its visitor list, the existing visitor list entry for the mobile
  2457.    node SHOULD NOT be deleted or modified until the foreign agent
  2458.    receives a valid Registration Reply from the home agent with a Code
  2459.    indicating success.  The foreign agent MUST record the new pending
  2460.  
  2461.  
  2462.  
  2463.  
  2464.  
  2465.  
  2466. Perkins                     Standards Track                    [Page 44]
  2467.  
  2468. RFC 2002                  IP Mobility Support               October 1996
  2469.  
  2470.  
  2471.    Request separately from the existing visitor list entry for the
  2472.    mobile node.  If the Registration Request requests deregistration,
  2473.    the existing visitor list entry for the mobile node SHOULD NOT be
  2474.    deleted until the foreign agent has received a successful
  2475.    Registration Reply.  If the Registration Reply indicates that the
  2476.    Request (for registration or deregistration) was denied by the home
  2477.    agent, the existing visitor list entry for the mobile node MUST NOT
  2478.    be modified as a result of receiving the Registration Reply.
  2479.  
  2480. 3.7.2.1. Validity Checks
  2481.  
  2482.    Registration Requests with an invalid, non-zero UDP checksum MUST be
  2483.    silently discarded.
  2484.  
  2485.    Also, the authentication in the Registration Request MUST be checked.
  2486.    If the foreign agent and the mobile node share a mobility security
  2487.    association, exactly one Mobile-Foreign Authentication Extension MUST
  2488.    be present in the Registration Request, and the foreign agent MUST
  2489.    check the Authenticator value in the Extension.  If no Mobile-Foreign
  2490.    Authentication Extension is found, or if more than one Mobile-Foreign
  2491.    Authentication Extension is found, or if the Authenticator is
  2492.    invalid, the foreign agent MUST silently discard the Request and
  2493.    SHOULD log the event as a security exception.  The foreign agent also
  2494.    SHOULD send a Registration Reply to the mobile node with Code 67.
  2495.  
  2496. 3.7.2.2. Forwarding a Valid Request to the Home Agent
  2497.  
  2498.    If the foreign agent accepts the mobile node's Registration Request,
  2499.    it MUST relay the Request to the mobile node's home agent as
  2500.    specified in the Home Agent field of the Registration Request.  The
  2501.    foreign agent MUST NOT modify any of the fields beginning with the
  2502.    fixed portion of the Registration Request up through and including
  2503.    the Mobile-Home Authentication Extension.  Otherwise, an
  2504.    authentication failure is very likely to occur at the home agent.  In
  2505.    addition, the foreign agent proceeds as follows:
  2506.  
  2507.     - It MUST process and remove any Extensions following the
  2508.       Mobile-Home Authentication Extension,
  2509.     - It MAY append any of its own non-authentication Extensions of
  2510.       relevance to the home agent, if applicable, and
  2511.     - It MUST append the Foreign-Home Authentication Extension, if the
  2512.       foreign agent shares a mobility security association with the home
  2513.       agent.
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522. Perkins                     Standards Track                    [Page 45]
  2523.  
  2524. RFC 2002                  IP Mobility Support               October 1996
  2525.  
  2526.  
  2527.    Specific fields within the IP header and the UDP header of the
  2528.    relayed Registration Request MUST be set as follows:
  2529.  
  2530.       IP Source Address
  2531.                The foreign agent's address on the interface from which
  2532.                the message will be sent.
  2533.  
  2534.       IP Destination Address
  2535.                Copied from the Home Agent field within the Registration
  2536.                Request.
  2537.  
  2538.       UDP Source Port
  2539.                <variable>
  2540.  
  2541.       UDP Destination Port
  2542.                434
  2543.  
  2544.    After forwarding a valid Registration Request to the home agent, the
  2545.    foreign agent MUST begin timing the remaining lifetime of the pending
  2546.    registration based on the Lifetime in the Registration Request.  If
  2547.    this lifetime expires before receiving a valid Registration Reply,
  2548.    the foreign agent MUST delete its visitor list entry for this pending
  2549.    registration.
  2550.  
  2551. 3.7.2.3. Denying Invalid Requests
  2552.  
  2553.    If the foreign agent denies the mobile node's Registration Request
  2554.    for any reason, it SHOULD send the mobile node a Registration Reply
  2555.    with a suitable denial Code.  In such a case, the Home Address, Home
  2556.    Agent, and Identification fields within the Registration Reply are
  2557.    copied from the corresponding fields of the Registration Request.
  2558.  
  2559.    If the Reserved field is nonzero, the foreign agent MUST deny the
  2560.    Request and SHOULD return a Registration Reply with status code 70 to
  2561.    the mobile node.  If the Request is being denied because the
  2562.    requested Lifetime is too long, the foreign agent sets the Lifetime
  2563.    in the Reply to the maximum Lifetime value it is willing to accept in
  2564.    any Registration Request, and sets the Code field to 69.  Otherwise,
  2565.    the Lifetime SHOULD be copied from the Lifetime field in the Request.
  2566.  
  2567.    Specific fields within the IP header and the UDP header of the
  2568.    Registration Reply MUST be set as follows:
  2569.  
  2570.       IP Source Address
  2571.                Copied from the IP Destination Address of Registration
  2572.                Request, unless the "All Agents Multicast" address was
  2573.                used.  In this case, the foreign agent's address (on the
  2574.                interface from which the message will be sent) MUST be
  2575.  
  2576.  
  2577.  
  2578. Perkins                     Standards Track                    [Page 46]
  2579.  
  2580. RFC 2002                  IP Mobility Support               October 1996
  2581.  
  2582.  
  2583.                used.
  2584.  
  2585.       IP Destination Address
  2586.                Copied from the IP Source Address of the Registration
  2587.                Request.
  2588.  
  2589.       UDP Source Port
  2590.                434
  2591.  
  2592.       UDP Destination Port
  2593.                Copied from the UDP Source Port of the Registration
  2594.                Request.
  2595.  
  2596. 3.7.3. Receiving Registration Replies
  2597.  
  2598.    The foreign agent updates its visitor list when it receives a valid
  2599.    Registration Reply from a home agent.  It then relays the
  2600.    Registration Reply to the mobile node.  The following sections
  2601.    describe this behavior in more detail.
  2602.  
  2603.    If upon relaying a Registration Request to a home agent, the foreign
  2604.    agent receives an ICMP error message instead of a Registration Reply,
  2605.    then the foreign agent SHOULD send to the mobile node a Registration
  2606.    Reply with an appropriate "Home Agent Unreachable" failure Code
  2607.    (within the range 80-95, inclusive).  See Section 3.7.2.3 for details
  2608.    on building the Registration Reply.
  2609.  
  2610. 3.7.3.1. Validity Checks
  2611.  
  2612.    Registration Replies with an invalid, non-zero UDP checksum MUST be
  2613.    silently discarded.
  2614.  
  2615.    When a foreign agent receives a Registration Reply message, it MUST
  2616.    search its visitor list for a pending Registration Request with the
  2617.    same mobile node home address as indicated in the Reply.  If no
  2618.    pending Request is found, the foreign agent MUST silently discard the
  2619.    Reply.  The foreign agent MUST also silently discard the Reply if the
  2620.    low-order 32 bits of the Identification field in the Reply do not
  2621.    match those in the Request.
  2622.  
  2623.    Also, the authentication in the Registration Reply MUST be checked.
  2624.    If the foreign agent and the home agent share a mobility security
  2625.    association, exactly one Foreign-Home Authentication Extension MUST
  2626.    be present in the Registration Reply, and the foreign agent MUST
  2627.    check the Authenticator value in the Extension.  If no Foreign-Home
  2628.    Authentication Extension is found, or if more than one Foreign-Home
  2629.    Authentication Extension is found, or if the Authenticator is
  2630.    invalid, the foreign agent MUST silently discard the Reply and SHOULD
  2631.  
  2632.  
  2633.  
  2634. Perkins                     Standards Track                    [Page 47]
  2635.  
  2636. RFC 2002                  IP Mobility Support               October 1996
  2637.  
  2638.  
  2639.    log the event as a security exception.  The foreign agent also MUST
  2640.    reject the mobile node's registration and SHOULD send a Registration
  2641.    Reply to the mobile node with Code 68.
  2642.  
  2643. 3.7.3.2. Forwarding Replies to the Mobile Node
  2644.  
  2645.    A Registration Reply which satisfies the validity checks of Section
  2646.    3.8.2.1 is relayed to the mobile node.  The foreign agent MUST also
  2647.    update its visitor list entry for the mobile node to reflect the
  2648.    results of the Registration Request, as indicated by the Code field
  2649.    in the Reply.  If the Code indicates that the mobile node has
  2650.    accepted the registration and the Lifetime field is nonzero, the
  2651.    foreign agent MUST set the Lifetime in the visitor list entry to the
  2652.    value specified in the Lifetime field of the Registration Reply.  If,
  2653.    instead, the Code indicates that the Lifetime field is zero, the
  2654.    foreign agent MUST delete its visitor list entry for the mobile node.
  2655.    Finally, if the Code indicates that the registration was denied by
  2656.    the home agent, the foreign agent MUST delete its pending
  2657.    registration list entry, but not its visitor list entry, for the
  2658.    mobile node.
  2659.  
  2660.    The foreign agent MUST NOT modify any of the fields beginning with
  2661.    the fixed portion of the Registration Reply up through and including
  2662.    the Mobile-Home Authentication Extension.  Otherwise, an
  2663.    authentication failure is very likely to occur at the mobile node.
  2664.    In addition, the foreign agent SHOULD perform the following
  2665.    additional procedures:
  2666.  
  2667.     - It MUST process and remove any Extensions following the
  2668.       Mobile-Home Authentication Extension,
  2669.     - It MAY append its own non-authentication Extensions of relevance
  2670.       to the mobile node, if applicable, and
  2671.     - It MUST append the Mobile-Foreign Authentication Extension, if
  2672.       the foreign agent shares a mobility security association with the
  2673.       mobile node.
  2674.  
  2675.    Specific fields within the IP header and the UDP header of the
  2676.    relayed Registration Reply are set according to the same rules
  2677.    specified in Section 3.7.2.3.
  2678.  
  2679.    After forwarding a valid Registration Reply to the mobile node, the
  2680.    foreign agent MUST update its visitor list entry for this
  2681.    registration as follows.  If the Registration Reply indicates that
  2682.    the registration was accepted by the home agent, the foreign agent
  2683.    resets its timer of the lifetime of the registration to the Lifetime
  2684.    granted in the Registration Reply; unlike the mobile node's timing of
  2685.    the registration lifetime as described in Section 3.6.2.2, the
  2686.    foreign agent considers this lifetime to begin when it forwards the
  2687.  
  2688.  
  2689.  
  2690. Perkins                     Standards Track                    [Page 48]
  2691.  
  2692. RFC 2002                  IP Mobility Support               October 1996
  2693.  
  2694.  
  2695.    Registration Reply message, ensuring that the foreign agent will not
  2696.    expire the registration before the mobile node does.  On the other
  2697.    hand, if the Registration Reply indicates that the registration was
  2698.    rejected by the home agent, the foreign agent deletes its visitor
  2699.    list entry for this attempted registration.
  2700.  
  2701. 3.8. Home Agent Considerations
  2702.  
  2703.    Home agents play a reactive role in the registration process.  The
  2704.    home agent receives Registration Requests from the mobile node
  2705.    (perhaps relayed by a foreign agent), updates its record of the
  2706.    mobility bindings for this mobile node, and issues a suitable
  2707.    Registration Reply in response to each.
  2708.  
  2709.    A home agent MUST NOT transmit a Registration Reply except when
  2710.    replying to a Registration Request received from a mobile node.  In
  2711.    particular, the home agent MUST NOT generate a Registration Reply to
  2712.    indicate that the Lifetime has expired.
  2713.  
  2714. 3.8.1. Configuration and Registration Tables
  2715.  
  2716.    Each home agent MUST be configured with an IP address and with the
  2717.    prefix size for the home network.  The home agent MUST be configured
  2718.    with the home address and mobility security association of each
  2719.    authorized mobile node that it is serving as a home agent.  When the
  2720.    home agent accepts a valid Registration Request from a mobile node
  2721.    that it serves as a home agent, the home agent MUST create or modify
  2722.    the entry for this mobile node in its mobility binding list
  2723.    containing:
  2724.  
  2725.     - the mobile node's care-of address
  2726.     - the Identification field from the Registration Reply
  2727.     - the remaining Lifetime of the registration
  2728.  
  2729.    The home agent MAY also maintain mobility security associations with
  2730.    various foreign agents.  When receiving a Registration Request from a
  2731.    foreign agent, if the home agent shares a mobility security
  2732.    association with the foreign agent, the home agent MUST check the
  2733.    Authenticator in the required Foreign-Home Authentication Extension
  2734.    in the message, based on this mobility security association.
  2735.    Similarly, when sending a Registration Reply to a foreign agent, if
  2736.    the home agent shares a mobility security association with the
  2737.    foreign agent, the home agent MUST include a Foreign-Home
  2738.    Authentication Extension in the message, based on this mobility
  2739.    security association.
  2740.  
  2741. 3.8.2. Receiving Registration Requests
  2742.  
  2743.  
  2744.  
  2745.  
  2746. Perkins                     Standards Track                    [Page 49]
  2747.  
  2748. RFC 2002                  IP Mobility Support               October 1996
  2749.  
  2750.  
  2751.    If the home agent accepts an incoming Registration Request, it MUST
  2752.    update its record of the the mobile node's mobility binding(s) and
  2753.    SHOULD send a Registration Reply with a suitable Code.  Otherwise
  2754.    (the home agent denies the Request), it SHOULD send a Registration
  2755.    Reply with an appropriate Code specifying the reason the Request was
  2756.    denied.  The following sections describe this behavior in more
  2757.    detail.
  2758.  
  2759. 3.8.2.1. Validity Checks
  2760.  
  2761.    Registration Requests with an invalid, non-zero UDP checksum MUST be
  2762.    silently discarded by the home agent.
  2763.  
  2764.    The authentication in the Registration Request MUST be checked.  This
  2765.    involves the following operations:
  2766.  
  2767.       a)   The home agent MUST check for the presence of a valid
  2768.            Mobile-Home Authentication Extension, and perform the
  2769.            indicated authentication.  Exactly one Mobile-Home
  2770.            Authentication Extension MUST be present in the Registration
  2771.            Request, and the home agent MUST check the Authenticator
  2772.            value in the Extension.  If no Mobile-Home Authentication
  2773.            Extension is found, or if more than one Mobile-Home
  2774.            Authentication Extension is found, or if the Authenticator
  2775.            is invalid, the home agent MUST reject the mobile node's
  2776.            registration and SHOULD send a Registration Reply to the
  2777.            mobile node with Code 131.  The home agent MUST then discard
  2778.            the Request and SHOULD log the error as a security exception.
  2779.  
  2780.       b)   The home agent MUST check that the registration
  2781.            Identification field is correct using the context selected by
  2782.            the SPI within the Mobile-Home Authentication Extension.  See
  2783.            Section 5.6 for a description of how this is performed.  If
  2784.            incorrect, the home agent MUST reject the Request and SHOULD
  2785.            send a Registration Reply to the mobile node with Code 133,
  2786.            including an Identification field computed in accordance with
  2787.            the rules specified in Section 5.6.  The home agent MUST do
  2788.            no further processing with such a Request, though it SHOULD
  2789.            log the error as a security exception.
  2790.  
  2791.       c)   If the home agent shares a mobility security association with
  2792.            the foreign agent, the home agent MUST check for the presence
  2793.            of a valid Foreign-Home Authentication Extension.  Exactly
  2794.            one Foreign-Home Authentication Extension MUST be present in
  2795.            the Registration Request in this case, and the home agent
  2796.            MUST check the Authenticator value in the Extension.  If no
  2797.            Foreign-Home Authentication Extension is found, or if more
  2798.            than one Foreign-Home Authentication Extension is found, or
  2799.  
  2800.  
  2801.  
  2802. Perkins                     Standards Track                    [Page 50]
  2803.  
  2804. RFC 2002                  IP Mobility Support               October 1996
  2805.  
  2806.  
  2807.            if the Authenticator is invalid, the home agent MUST reject
  2808.            the mobile node's registration and SHOULD send a Registration
  2809.            Reply to the mobile node with Code 132.  The home agent
  2810.            MUST then discard the Request and SHOULD log the error as a
  2811.            security exception.
  2812.  
  2813.    In addition to checking the authentication in the Registration
  2814.    Request, home agents MUST deny Registration Requests that are sent to
  2815.    the subnet-directed broadcast address of the home network (as opposed
  2816.    to being unicast to the home agent).  The home agent MUST discard the
  2817.    Request and SHOULD returning a Registration Reply with a Code of 136.
  2818.    In this case, the Registration Reply will contain the home agent's
  2819.    unicast address, so that the mobile node can re-issue the
  2820.    Registration Request with the correct home agent address.
  2821.  
  2822. 3.8.2.2. Accepting a Valid Request
  2823.  
  2824.    If the Registration Request satisfies the validity checks in Section
  2825.    3.8.2.1, and the home agent is able to accommodate the Request, the
  2826.    home agent MUST update its mobility binding list for the requesting
  2827.    mobile node and MUST return a Registration Reply to the mobile node.
  2828.    In this case, the Reply Code will be either 0 if the home agent
  2829.    supports simultaneous mobility bindings, or 1 if it does not.  See
  2830.    Section 3.8.3 for details on building the Registration Reply message.
  2831.  
  2832.    The home agent updates its record of the mobile node's mobility
  2833.    bindings as follows, based on the fields in the Registration Request:
  2834.  
  2835.     -  If the Lifetime is zero and the Care-of Address equals the mobile
  2836.        node's home address, the home agent deletes all of the entries in
  2837.        the mobility binding list for the requesting mobile node.  This
  2838.        is how a mobile node requests that its home agent cease providing
  2839.        mobility services.
  2840.  
  2841.     -  If the Lifetime is zero and the Care-of Address does not equal
  2842.        the mobile node's home address, the home agent deletes only the
  2843.        entry containing the specified Care-of Address from the mobility
  2844.        binding list for the requesting mobile node.  Any other active
  2845.        entries containing other care-of addresses will remain active.
  2846.  
  2847.     -  If the Lifetime is nonzero, the home agent adds an entry
  2848.        containing the requested Care-of Address to the mobility binding
  2849.        list for the mobile node.  If the 'S' bit is set and the home
  2850.        agent supports simultaneous mobility bindings, the previous
  2851.        mobility binding entries are retained.  Otherwise, the home agent
  2852.        removes all previous entries in the mobility binding list for the
  2853.        mobile node.
  2854.  
  2855.  
  2856.  
  2857.  
  2858. Perkins                     Standards Track                    [Page 51]
  2859.  
  2860. RFC 2002                  IP Mobility Support               October 1996
  2861.  
  2862.  
  2863.    In all cases, the home agent MUST send a Registration Reply to the
  2864.    source of the Registration Request, which might indeed be a different
  2865.    foreign agent than that whose care-of address is being
  2866.    (de)registered.  If the home agent shares a mobility security
  2867.    association with the foreign agent whose care-of address is being
  2868.    deregistered, and that foreign agent is different from the one which
  2869.    relayed the Registration Request, the home agent MAY additionally
  2870.    send a Registration Reply to the foreign agent whose care-of address
  2871.    is being deregistered.  The home agent MUST NOT send such a Reply if
  2872.    it does not share a mobility security association with the foreign
  2873.    agent.  If no Reply is sent, the foreign agent's visitor list will
  2874.    expire naturally when the original Lifetime expires.
  2875.  
  2876.    The home agent MUST NOT increase the Lifetime above that specified by
  2877.    the mobile node in the Registration Request.  However, it is not an
  2878.    error for the mobile node to request a Lifetime longer than the home
  2879.    agent is willing to accept.  In this case, the home agent simply
  2880.    reduces the Lifetime to a permissible value and returns this value in
  2881.    the Registration Reply.  The Lifetime value in the Registration Reply
  2882.    informs the mobile node of the granted lifetime of the registration,
  2883.    indicating when it SHOULD re-register in order to maintain continued
  2884.    service.  After the expiration of this registration lifetime, the
  2885.    home agent MUST delete its entry for this registration in its
  2886.    mobility binding list.
  2887.  
  2888.    If the Registration Request duplicates an accepted current
  2889.    Registration Request, the new Lifetime MUST NOT extend beyond the
  2890.    Lifetime originally granted.  A Registration Request is a duplicate
  2891.    if the home address, care-of address, and Identification fields all
  2892.    equal those of an accepted current registration.
  2893.  
  2894.    In addition, if the home network implements ARP [16], and the
  2895.    Registration Request asks the home agent to create a mobility binding
  2896.    for a mobile node which previously had no binding (the mobile node
  2897.    was previously assumed to be at home), then the home agent MUST
  2898.    follow the procedures described in Section 4.6 with regard to ARP,
  2899.    proxy ARP, and gratuitous ARP.  If the mobile node already had a
  2900.    previous mobility binding, the home agent MUST continue to follow the
  2901.    rules for proxy ARP described in Section 4.6.
  2902.  
  2903. 3.8.2.3. Denying an Invalid Request
  2904.  
  2905.    If the Registration Reply does not satisfy all of the validity checks
  2906.    in Section 3.8.2.1, or the home agent is unable to accommodate the
  2907.    Request, the home agent SHOULD return a Registration Reply to the
  2908.    mobile node with a Code that indicates the reason for the error.  If
  2909.    a foreign agent was involved in relaying the Request, this allows the
  2910.    foreign agent to delete its pending visitor list entry.  Also, this
  2911.  
  2912.  
  2913.  
  2914. Perkins                     Standards Track                    [Page 52]
  2915.  
  2916. RFC 2002                  IP Mobility Support               October 1996
  2917.  
  2918.  
  2919.    informs the mobile node of the reason for the error such that it may
  2920.    attempt to fix the error and issue another Request.
  2921.  
  2922.    This section lists a number of reasons the home agent might reject a
  2923.    Request, and provides the Code value it should use in each instance.
  2924.    See Section 3.8.3 for additional details on building the Registration
  2925.    Reply message.
  2926.  
  2927.    Many reasons for rejecting a registration are administrative in
  2928.    nature.  For example, a home agent can limit the number of
  2929.    simultaneous registrations for a mobile node, by rejecting any
  2930.    registrations that would cause its limit to be exceeded, and
  2931.    returning a Registration Reply with error code 135.  Similarly, a
  2932.    home agent may refuse to grant service to mobile nodes which have
  2933.    entered unauthorized service areas by returning a Registration Reply
  2934.    with a Code of 129.
  2935.  
  2936.    If the Reserved field is nonzero, it MUST deny the Request with a
  2937.    Code of 134.
  2938.  
  2939. 3.8.3. Sending Registration Replies
  2940.  
  2941.    If the home agent accepts a Registration Request, it then MUST update
  2942.    its record of the mobile node's mobility binding(s) and SHOULD send a
  2943.    Registration Reply with a suitable Code.  Otherwise (the home agent
  2944.    has denied the Request), it SHOULD send a Registration Reply with an
  2945.    appropriate Code specifying the reason the Request was denied.  The
  2946.    following sections provide additional detail for the values the home
  2947.    agent MUST supply in the fields of Registration Reply messages.
  2948.  
  2949. 3.8.3.1. IP/UDP Fields
  2950.  
  2951.    This section provides the specific rules by which mobile nodes pick
  2952.    values for the IP and UDP header fields of a Registration Reply.
  2953.  
  2954.       IP Source Address
  2955.                Copied from the IP Destination Address of Registration
  2956.                Request, unless a multicast or broadcast address was
  2957.                used.  If the IP Destination Address of the Registration
  2958.                Request was a broadcast or multicast address, the IP
  2959.                Source Address of the Registration Reply MUST be set to
  2960.                the home agent's (unicast) IP address.
  2961.  
  2962.       IP Destination Address
  2963.                Copied from the IP Source Address of the Registration
  2964.                Request.
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970. Perkins                     Standards Track                    [Page 53]
  2971.  
  2972. RFC 2002                  IP Mobility Support               October 1996
  2973.  
  2974.  
  2975.       UDP Source Port
  2976.                Copied from the UDP Destination Port of the Registration
  2977.                Request.
  2978.  
  2979.       UDP Destination Port
  2980.                Copied from the UDP Source Port of the Registration
  2981.                Request.
  2982.  
  2983.    When sending a Registration Reply in response to a Registration
  2984.    Request that requested deregistration of the mobile node (the
  2985.    Lifetime is zero and the Care-of Address equals the mobile node's
  2986.    home address) and in which the IP Source Address was also set to the
  2987.    mobile node's home address (this is the normal method used by a
  2988.    mobile node to deregister when it returns to its home network), the
  2989.    IP Destination Address in the Registration Reply will be set to the
  2990.    mobile node's home address, as copied from the IP Source Address of
  2991.    the Request.
  2992.  
  2993.    In this case, when transmitting the Registration Reply, the home
  2994.    agent MUST transmit the Reply directly onto the home network as if
  2995.    the mobile node were at home, bypassing any mobility binding list
  2996.    entry that may still exist at the home agent for the destination
  2997.    mobile node.  In particular, for a mobile node returning home after
  2998.    being registered with a care-of address, if the mobile node's new
  2999.    Registration Request is not accepted by the home agent, the mobility
  3000.    binding list entry for the mobile node will still indicate that
  3001.    datagrams addressed to the mobile node should be tunneled to the
  3002.    mobile node's registered care-of address; when sending the
  3003.    Registration Reply indicating the rejection of this Request, this
  3004.    existing binding list entry MUST be ignored, and the home agent MUST
  3005.    transmit this Reply as if the mobile node were at home.
  3006.  
  3007. 3.8.3.2. Registration Reply Fields
  3008.  
  3009.    This section provides specific rules by which home agents pick values
  3010.    for the fields within the fixed portion of a Registration Reply.  The
  3011.    Code field of the Registration Reply is chosen in accordance with the
  3012.    rules specified in the previous sections.  When replying to an
  3013.    accepted registration, a home agent SHOULD respond with Code 1 if it
  3014.    does not support simultaneous registrations.
  3015.  
  3016.    The Lifetime field MUST be copied from the corresponding field in the
  3017.    Registration Request, unless the requested value is greater than the
  3018.    maximum length of time the home agent is willing to provide the
  3019.    requested service.  In such a case, the Lifetime MUST be set to the
  3020.    length of time that service will actually be provided by the home
  3021.    agent.  This reduced Lifetime SHOULD be the maximum Lifetime allowed
  3022.    by the home agent (for this mobile node and care-of address).
  3023.  
  3024.  
  3025.  
  3026. Perkins                     Standards Track                    [Page 54]
  3027.  
  3028. RFC 2002                  IP Mobility Support               October 1996
  3029.  
  3030.  
  3031.    The Home Address field MUST be copied from the corresponding field in
  3032.    the Registration Request.
  3033.  
  3034.    If the Home Agent field in the Registration Request contains a
  3035.    unicast address of this home agent, then that field MUST be copied
  3036.    into the Home Agent field of the Registration Reply.  Otherwise, the
  3037.    home agent MUST set the Home Agent field in the Registration Reply to
  3038.    its unicast address.  In this latter case, the home agent MUST reject
  3039.    the registration with a suitable code (e.g., Code 136) to prevent the
  3040.    mobile node from possibly being simultaneously registered with two or
  3041.    more home agents.
  3042.  
  3043. 3.8.3.3. Extensions
  3044.  
  3045.    This section describes the ordering of any required and any optional
  3046.    Mobile IP Extensions that a home agent appends to a Registration
  3047.    Reply.  The following ordering MUST be followed:
  3048.  
  3049.       a)   The IP header, followed by the UDP header, followed by the
  3050.            fixed-length portion of the Registration Reply,
  3051.  
  3052.       b)   If present, any non-authentication Extensions used by the
  3053.            mobile node (which may or may not also be used by the foreign
  3054.            agent),
  3055.  
  3056.       c)   The Mobile-Home Authentication Extension,
  3057.  
  3058.       d)   If present, any non-authentication Extensions used only by
  3059.            the foreign agent, and
  3060.  
  3061.       e)   The Foreign-Home Authentication Extension, if present.
  3062.  
  3063.    Note that items (a) and (c) MUST appear in every Registration Reply
  3064.    sent by the home agent.  Items (b), (d), and (e) are optional.
  3065.    However, item (e) MUST be included when the home agent and the
  3066.    foreign agent share a mobility security association.
  3067.  
  3068. 4. Routing Considerations
  3069.  
  3070.    This section describes how mobile nodes, home agents, and (possibly)
  3071.    foreign agents cooperate to route datagrams to/from mobile nodes that
  3072.    are connected to a foreign network.  The mobile node informs its home
  3073.    agent of its current location using the registration procedure
  3074.    described in Section 3.  See the protocol overview in Section 1.7 for
  3075.    the relative locations of the mobile node's home address with respect
  3076.    to its home agent, and the mobile node itself with respect to any
  3077.    foreign agent with which it might attempt to register.
  3078.  
  3079.  
  3080.  
  3081.  
  3082. Perkins                     Standards Track                    [Page 55]
  3083.  
  3084. RFC 2002                  IP Mobility Support               October 1996
  3085.  
  3086.  
  3087. 4.1. Encapsulation Types
  3088.  
  3089.    Home agents and foreign agents MUST support tunneling datagrams using
  3090.    IP in IP encapsulation [14].  Any mobile node that uses a co-located
  3091.    care-of address MUST support receiving datagrams tunneled using IP in
  3092.    IP encapsulation.  Minimal encapsulation [15] and GRE encapsulation
  3093.    [8] are alternate encapsulation methods which MAY optionally be
  3094.    supported by mobility agents and mobile nodes.  The use of these
  3095.    alternative forms of encapsulation, when requested by the mobile
  3096.    node, is otherwise at the discretion of the home agent.
  3097.  
  3098. 4.2. Unicast Datagram Routing
  3099.  
  3100. 4.2.1. Mobile Node Considerations
  3101.  
  3102.    When connected to its home network, a mobile node operates without
  3103.    the support of mobility services.  That is, it operates in the same
  3104.    way as any other (fixed) host or router.  The method by which a
  3105.    mobile node selects a default router when connected to its home
  3106.    network, or when away from home and using a co-located care-of
  3107.    address, is outside the scope of this document.  ICMP Router
  3108.    Advertisement [4] is one such method.
  3109.  
  3110.    When registered on a foreign network, the mobile node chooses a
  3111.    default router by the following rules:
  3112.  
  3113.     -  If the mobile node is registered using a foreign agent care-of
  3114.        address, then the mobile node MUST choose its default router
  3115.        from among the Router Addresses advertised in the ICMP Router
  3116.        Advertisement portion of that Agent Advertisement message.  The
  3117.        mobile node MAY also consider the IP source address of the Agent
  3118.        Advertisement as another possible choice for the IP address of a
  3119.        default router, along with the (possibly empty) list of Router
  3120.        Addresses from the ICMP Router Advertisement portion of the
  3121.        message.  In such cases, the IP source address MUST be considered
  3122.        to be the worst choice (lowest preference) for a default router.
  3123.  
  3124.     -  If the mobile node is registered directly with its home agent
  3125.        using a co-located care-of address, then the mobile node SHOULD
  3126.        choose its default router from among those advertised in any
  3127.        ICMP Router Advertisement message that it receives for which
  3128.        its externally obtained care-of address and the Router Address
  3129.        match under the network prefix.  If the mobile node's externally
  3130.        obtained care-of address matches the IP source address of the
  3131.        Agent Advertisement under the network prefix, the mobile node
  3132.        MAY also consider that IP source address as another possible
  3133.        choice for the IP address of a default router, along with the
  3134.        (possibly empty) list of Router Addresses from the ICMP Router
  3135.  
  3136.  
  3137.  
  3138. Perkins                     Standards Track                    [Page 56]
  3139.  
  3140. RFC 2002                  IP Mobility Support               October 1996
  3141.  
  3142.  
  3143.        Advertisement portion of the message.  If so, the IP source
  3144.        address MUST be considered to be the worst choice (lowest
  3145.        preference) for a default router.  The network prefix MAY
  3146.        be obtained from the Prefix-Lengths Extension in the Router
  3147.        Advertisement, if present.  The prefix MAY also be obtained
  3148.        through other mechanisms beyond the scope of this document.
  3149.  
  3150.    Beyond these rules, the actual selection of the default router is
  3151.    made by the selection method specified for ICMP Router Discovery [4],
  3152.    among the Router Addresses specified above.  In any case, a mobile
  3153.    node registered via a foreign agent MAY choose its foreign agent as a
  3154.    default router.
  3155.  
  3156.    Note that Van Jacobson header compression [10] will not function
  3157.    properly unless all TCP IP datagrams to and from the mobile node
  3158.    pass, respectively, through the same first and last-hop router.  The
  3159.    mobile node, therefore, MUST select its foreign agent as its default
  3160.    router if it performs Van Jacobson header compression with its
  3161.    foreign agent.
  3162.  
  3163. 4.2.2. Foreign Agent Considerations
  3164.  
  3165.    Upon receipt of an encapsulated datagram sent to its advertised
  3166.    care-of address, a foreign agent MUST compare the inner destination
  3167.    address to those entries in its visitor list.  When the destination
  3168.    does not match the address of any mobile node currently in the
  3169.    visitor list, the foreign agent MUST NOT forward the datagram without
  3170.    modifications to the original IP header, because otherwise a routing
  3171.    loop is likely to result.  The datagram SHOULD be silently discarded.
  3172.    ICMP Destination Unreachable MUST NOT be sent when a foreign agent is
  3173.    unable to forward an incoming tunneled datagram.  Otherwise, the
  3174.    foreign agent forwards the decapsulated datagram to the mobile node.
  3175.  
  3176.    The foreign agent MUST NOT advertise to other routers in its routing
  3177.    domain, nor to any other mobile node, the presence of a mobile router
  3178.    (Section 4.5).
  3179.  
  3180.    The foreign agent MUST route datagrams it receives from registered
  3181.    mobile nodes.  At a minimum, this means that the foreign agent must
  3182.    verify the IP Header Checksum, decrement the IP Time To Live,
  3183.    recompute the IP Header Checksum, and forward such datagrams to a
  3184.    default router.  In addition, the foreign agent SHOULD send an
  3185.    appropriate ICMP Redirect message to the mobile node.
  3186.  
  3187.  
  3188.  
  3189.  
  3190.  
  3191.  
  3192.  
  3193.  
  3194. Perkins                     Standards Track                    [Page 57]
  3195.  
  3196. RFC 2002                  IP Mobility Support               October 1996
  3197.  
  3198.  
  3199. 4.2.3. Home Agent Considerations
  3200.  
  3201.    The home agent MUST be able to intercept any datagrams on the home
  3202.    network addressed to the mobile node while the mobile node is
  3203.    registered away from home.  Proxy and gratuitous ARP MAY be used in
  3204.    enabling this interception, as specified in Section 4.6.
  3205.  
  3206.    The home agent must examine the IP Destination Address of all
  3207.    arriving datagrams to see if it is equal to the home address of any
  3208.    of its mobile nodes registered away from home.  If so, the home agent
  3209.    tunnels the datagram to the mobile node's currently registered care-
  3210.    of address or addresses.  If the home agent supports the optional
  3211.    capability of multiple simultaneous mobility bindings, it tunnels a
  3212.    copy to each care-of address in the mobile node's mobility binding
  3213.    list.  If the mobile node has no current mobility bindings, the home
  3214.    agent MUST NOT attempt to intercept datagrams destined for the mobile
  3215.    node, and thus will not in general receive such datagrams.  However,
  3216.    if the home agent is also a router handling common IP traffic, it is
  3217.    possible that it will receive such datagrams for forwarding onto the
  3218.    home network.  In this case, the home agent MUST assume the mobile
  3219.    node is at home and simply forward the datagram directly onto the
  3220.    home network.
  3221.  
  3222.    See Section 4.1 regarding methods of encapsulation that may be used
  3223.    for tunneling.  Nodes implementing tunneling SHOULD also implement
  3224.    the "tunnel soft state" mechanism [14], which allows ICMP error
  3225.    messages returned from the tunnel to correctly be reflected back to
  3226.    the original senders of the tunneled datagrams.
  3227.  
  3228.    Home agents SHOULD be able to decapsulate and further deliver packets
  3229.    addressed to themselves, sent by a mobile node for the purpose of
  3230.    maintaining location privacy, as described in Section 5.5.
  3231.  
  3232.    If the Lifetime for a given mobility binding expires before the home
  3233.    agent has received another valid Registration Request for that mobile
  3234.    node, then that binding is deleted from the mobility binding list.
  3235.    The home agent MUST NOT send any Registration Reply message simply
  3236.    because the mobile node's binding has expired.  The entry in the
  3237.    visitor list of the mobile node's current foreign agent will expire
  3238.    naturally, probably at the same time as the binding expired at the
  3239.    home agent.  When a mobility binding's lifetime expires, the home
  3240.    agent MUST delete the binding, but it MUST retain any other (non-
  3241.    expired) simultaneous mobility bindings that it holds for the mobile
  3242.    node.
  3243.  
  3244.    When a home agent receives a datagram, intercepted for one of its
  3245.    mobile nodes registered away from home, the home agent MUST examine
  3246.    the datagram to check if it is already encapsulated.  If so, special
  3247.  
  3248.  
  3249.  
  3250. Perkins                     Standards Track                    [Page 58]
  3251.  
  3252. RFC 2002                  IP Mobility Support               October 1996
  3253.  
  3254.  
  3255.    rules apply in the forwarding of that datagram to the mobile node:
  3256.  
  3257.     -  If the inner (encapsulated) Destination Address is the same
  3258.        as the outer Destination Address (the mobile node), then the
  3259.        home agent MUST also examine the outer Source Address of the
  3260.        encapsulated datagram (the source address of the tunnel).  If
  3261.        this outer Source Address is the same as the mobile node's
  3262.        current care-of address, the home agent MUST silently discard
  3263.        that datagram in order to prevent a likely routing loop.  If,
  3264.        instead, the outer Source Address is NOT the same as the mobile
  3265.        node's current care-of address, then the home agent SHOULD
  3266.        forward the datagram to the mobile node.  In order to forward
  3267.        the datagram in this case, the home agent MAY simply alter the
  3268.        outer Destination Address to the care-of address, rather than
  3269.        re-encapsulating the datagram.
  3270.  
  3271.     -  Otherwise (the inner Destination Address is NOT the same as the
  3272.        outer Destination Address), the home agent SHOULD encapsulate
  3273.        the datagram again (recursive encapsulation), with the new outer
  3274.        Destination Address set equal to the mobile node's care-of
  3275.        address.  That is, the home agent forwards the entire datagram
  3276.        to the mobile node in the same way as any other datagram
  3277.        (encapsulated already or not).
  3278.  
  3279. 4.3. Broadcast Datagrams
  3280.  
  3281.    When a home agent receives a broadcast datagram, it MUST NOT forward
  3282.    the datagram to any mobile nodes in its mobility binding list other
  3283.    than those that have requested forwarding of broadcast datagrams.  A
  3284.    mobile node MAY request forwarding of broadcast datagrams by setting
  3285.    the 'B' bit in its Registration Request message (Section 3.3).  For
  3286.    each such registered mobile node, the home agent SHOULD forward
  3287.    received broadcast datagrams to the mobile node, although it is a
  3288.    matter of configuration at the home agent as to which specific
  3289.    categories of broadcast datagrams will be forwarded to such mobile
  3290.    nodes.
  3291.  
  3292.    If the 'D' bit was set in the mobile node's Registration Request
  3293.    message, indicating that the mobile node is using a co-located care-
  3294.    of address, the home agent simply tunnels appropriate broadcast IP
  3295.    datagrams to the mobile node's care-of address.  Otherwise (the 'D'
  3296.    bit was NOT set), the home agent first encapsulates the broadcast
  3297.    datagram in a unicast datagram addressed to the mobile node's home
  3298.    address, and then tunnels this encapsulated datagram to the foreign
  3299.    agent.  This extra level of encapsulation is required so that the
  3300.    foreign agent can determine which mobile node should receive the
  3301.    datagram after it is decapsulated.  When received by the foreign
  3302.    agent, the unicast encapsulated datagram is detunneled and delivered
  3303.  
  3304.  
  3305.  
  3306. Perkins                     Standards Track                    [Page 59]
  3307.  
  3308. RFC 2002                  IP Mobility Support               October 1996
  3309.  
  3310.  
  3311.    to the mobile node in the same way as any other datagram.  In either
  3312.    case, the mobile node must decapsulate the datagram it receives in
  3313.    order to recover the original broadcast datagram.
  3314.  
  3315. 4.4. Multicast Datagram Routing
  3316.  
  3317.    As mentioned previously, a mobile node that is connected to its home
  3318.    network functions in the same way as any other (fixed) host or
  3319.    router.  Thus, when it is at home, a mobile node functions
  3320.    identically to other multicast senders and receivers.  This section
  3321.    therefore describes the behavior of a mobile node that is visiting a
  3322.    foreign network.
  3323.  
  3324.    In order receive multicasts, a mobile node MUST join the multicast
  3325.    group in one of two ways.  First, a mobile node MAY join the group
  3326.    via a (local) multicast router on the visited subnet.  This option
  3327.    assumes that there is a multicast router present on the visited
  3328.    subnet.  If the mobile node is using a co-located care-of address, it
  3329.    SHOULD use this address as the source IP address of its IGMP [5]
  3330.    messages.  Otherwise, it MUST use its home address.
  3331.  
  3332.    Alternatively, a mobile node which wishes to receive multicasts MAY
  3333.    join groups via a bi-directional tunnel to its home agent, assuming
  3334.    that its home agent is a multicast router.  The mobile node tunnels
  3335.    IGMP messages to its home agent and the home agent forwards multicast
  3336.    datagrams down the tunnel to the mobile node.  The rules for
  3337.    multicast datagram delivery to mobile nodes in this case are
  3338.    identical to those for broadcast datagrams (Section 4.3).  Namely, if
  3339.    the mobile node is using a co-located care-of address (the 'D' bit
  3340.    was set in the mobile node's Registration Request), then the home
  3341.    agent SHOULD tunnel the datagram to this care-of address; otherwise,
  3342.    the home agent MUST first encapsulate the datagram in a unicast
  3343.    datagram addressed to the mobile node's home address and then MUST
  3344.    tunnel the resulting datagram (recursive tunneling) to the mobile
  3345.    node's care-of address.
  3346.  
  3347.    A mobile node that wishes to send datagrams to a multicast group also
  3348.    has two options:  (1) send directly on the visited network; or (2)
  3349.    send via a tunnel to its home agent.  Because multicast routing in
  3350.    general depends upon the IP source address, a mobile node which sends
  3351.    multicast datagrams directly on the visited network MUST use a co-
  3352.    located care-of address as the IP source address.  Similarly, a
  3353.    mobile node which tunnels a multicast datagram to its home agent MUST
  3354.    use its home address as the IP source address of both the (inner)
  3355.    multicast datagram and the (outer) encapsulating datagram.  This
  3356.    second option assumes that the home agent is a multicast router.
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362. Perkins                     Standards Track                    [Page 60]
  3363.  
  3364. RFC 2002                  IP Mobility Support               October 1996
  3365.  
  3366.  
  3367. 4.5. Mobile Routers
  3368.  
  3369.    A mobile node can be a router, which is responsible for the mobility
  3370.    of one or more entire networks moving together, perhaps on an
  3371.    airplane, a ship, a train, an automobile, a bicycle, or a kayak.  The
  3372.    nodes connected to a network served by the mobile router may
  3373.    themselves be fixed nodes or mobile nodes or routers.  In this
  3374.    document, such networks are called "mobile networks".
  3375.  
  3376.    A mobile router MAY act as a foreign agent and provide a foreign
  3377.    agent care-of address to mobile nodes connected to the mobile
  3378.    network.  Typical routing to a mobile node via a mobile router in
  3379.    this case is illustrated by the following example:
  3380.  
  3381.       a)   A laptop computer is disconnected from its home network and
  3382.            later attached to a network port in the seat back of an
  3383.            aircraft.  The laptop computer uses Mobile IP to register on
  3384.            this foreign network, using a foreign agent care-of address
  3385.            discovered through an Agent Advertisement from the aircraft's
  3386.            foreign agent.
  3387.  
  3388.       b)   The aircraft network is itself mobile.  Suppose the node
  3389.            serving as the foreign agent on the aircraft also serves as
  3390.            the default router that connects the aircraft network to the
  3391.            rest of the Internet.  When the aircraft is at home, this
  3392.            router is attached to some fixed network at the airline's
  3393.            headquarters, which is the router's home network.  While
  3394.            the aircraft is in flight, this router registers from time
  3395.            to time over its radio link with a series of foreign agents
  3396.            below it on the ground.  This router's home agent is a node
  3397.            on the fixed network at the airline's headquarters.
  3398.  
  3399.       c)   Some correspondent node sends a datagram to the laptop
  3400.            computer, addressing the datagram to the laptop's home
  3401.            address.  This datagram is initially routed to the laptop's
  3402.            home network.
  3403.  
  3404.       d)   The laptop's home agent intercepts the datagram on the home
  3405.            network and tunnels it to the laptop's care-of address, which
  3406.            in this example is an address of the node serving as router
  3407.            and foreign agent on the aircraft.  Normal IP routing will
  3408.            route the datagram to the fixed network at the airline's
  3409.            headquarters.
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415.  
  3416.  
  3417.  
  3418. Perkins                     Standards Track                    [Page 61]
  3419.  
  3420. RFC 2002                  IP Mobility Support               October 1996
  3421.  
  3422.  
  3423.       e)   The aircraft router and foreign agent's home agent there
  3424.            intercepts the datagram and tunnels it to its current care-of
  3425.            address, which in this example is some foreign agent on the
  3426.            ground below the aircraft.  The original datagram from the
  3427.            correspondent node has now been encapsulated twice:  once
  3428.            by the laptop's home agent and again by the aircraft's home
  3429.            agent.
  3430.  
  3431.       f)   The foreign agent on the ground decapsulates the datagram,
  3432.            yielding a datagram still encapsulated by the laptop's home
  3433.            agent, with a destination address of the laptop's care-of
  3434.            address.  The ground foreign agent sends the resulting
  3435.            datagram over its radio link to the aircraft.
  3436.  
  3437.       g)   The foreign agent on the aircraft decapsulates the datagram,
  3438.            yielding the original datagram from the correspondent node,
  3439.            with a destination address of the laptop's home address.
  3440.            The aircraft foreign agent delivers the datagram over the
  3441.            aircraft network to the laptop's link-layer address.
  3442.  
  3443.    This example illustrated the case in which a mobile node is attached
  3444.    to a mobile network.  That is, the mobile node is mobile with respect
  3445.    to the network, which itself is also mobile (here with respect to the
  3446.    ground).  If, instead, the node is fixed with respect to the mobile
  3447.    network (the mobile network is the fixed node's home network), then
  3448.    either of two methods may be used to cause datagrams from
  3449.    correspondent nodes to be routed to the fixed node.
  3450.  
  3451.    A home agent MAY be configured to have a permanent registration for
  3452.    the fixed node, that indicates the mobile router's address as the
  3453.    fixed host's care-of address.  The mobile router's home agent will
  3454.    usually be used for this purpose.  The home agent is then responsible
  3455.    for advertising connectivity using normal routing protocols to the
  3456.    fixed node.  Any datagrams sent to the fixed node will thus use
  3457.    recursive tunneling as described above.
  3458.  
  3459.    Alternatively, the mobile router MAY advertise connectivity to the
  3460.    entire mobile network using normal IP routing protocols through a
  3461.    bi-directional tunnel to its own home agent.  This method avoids the
  3462.    need for recursive tunneling of datagrams.
  3463.  
  3464. 4.6. ARP, Proxy ARP, and Gratuitous ARP
  3465.  
  3466.    The use of ARP [16] requires special rules for correct operation when
  3467.    wireless or mobile nodes are involved.  The requirements specified in
  3468.    this section apply to all home networks in which ARP is used for
  3469.    address resolution.
  3470.  
  3471.  
  3472.  
  3473.  
  3474. Perkins                     Standards Track                    [Page 62]
  3475.  
  3476. RFC 2002                  IP Mobility Support               October 1996
  3477.  
  3478.  
  3479.    In addition to the normal use of ARP for resolving a target node's
  3480.    link-layer address from its IP address, this document distinguishes
  3481.    two special uses of ARP:
  3482.  
  3483.        -  A Proxy ARP [18] is an ARP Reply sent by one node on behalf
  3484.           of another node which is either unable or unwilling to answer
  3485.           its own ARP Requests.  The sender of a Proxy ARP reverses the
  3486.           Sender and Target Protocol Address fields as described in [16],
  3487.           but supplies some configured link-layer address (generally, its
  3488.           own) in the Sender Hardware Address field.  The node receiving
  3489.           the Reply will then associate this link-layer address with the
  3490.           IP address of the original target node, causing it to transmit
  3491.           future datagrams for this target node to the node with that
  3492.           link-layer address.
  3493.  
  3494.        -  A Gratuitous ARP [23] is an ARP packet sent by a node in order to
  3495.           spontaneously cause other nodes to update an entry in their ARP
  3496.           cache.  A gratuitous ARP MAY use either an ARP Request or an ARP
  3497.           Reply packet.  In either case, the ARP Sender Protocol Address
  3498.           and ARP Target Protocol Address are both set to the IP address
  3499.           of the cache entry to be updated, and the ARP Sender Hardware
  3500.           Address is set to the link-layer address to which this cache
  3501.           entry should be updated.  When using an ARP Reply packet, the
  3502.           Target Hardware Address is also set to the link-layer address to
  3503.           which this cache entry should be updated (this field is not used
  3504.           in an ARP Request packet).
  3505.  
  3506.           In either case, for a gratuitous ARP, the ARP packet MUST be
  3507.           transmitted as a local broadcast packet on the local link.  As
  3508.           specified in [16], any node receiving any ARP packet (Request or
  3509.           Reply) MUST update its local ARP cache with the Sender Protocol
  3510.           and Hardware Addresses in the ARP packet, if the receiving node
  3511.           has an entry for that IP address already in its ARP cache.  This
  3512.           requirement in the ARP protocol applies even for ARP Request
  3513.           packets, and for ARP Reply packets that do not match any ARP
  3514.           Request transmitted by the receiving node [16].
  3515.  
  3516.    While a mobile node is registered on a foreign network, its home
  3517.    agent uses proxy ARP [18] to reply to ARP Requests it receives that
  3518.    seek the mobile node's link-layer address.  When receiving an ARP
  3519.    Request, the home agent MUST examine the target IP address of the
  3520.    Request, and if this IP address matches the home address of any
  3521.    mobile node for which it has a registered mobility binding, the home
  3522.    agent MUST transmit an ARP Reply on behalf of the mobile node.  After
  3523.    exchanging the sender and target addresses in the packet [18], the
  3524.    home agent MUST set the sender link-layer address in the packet to
  3525.    the link-layer address of its own interface over which the Reply will
  3526.    be sent.
  3527.  
  3528.  
  3529.  
  3530. Perkins                     Standards Track                    [Page 63]
  3531.  
  3532. RFC 2002                  IP Mobility Support               October 1996
  3533.  
  3534.  
  3535.    When a mobile node leaves its home network and registers a binding on
  3536.    a foreign network, its home agent uses gratuitous ARP to update the
  3537.    ARP caches of nodes on the home network.  This causes such nodes to
  3538.    associate the link-layer address of the home agent with the mobile
  3539.    node's home (IP) address.  When registering a binding for a mobile
  3540.    node for which the home agent previously had no binding (the mobile
  3541.    node was assumed to be at home), the home agent MUST transmit a
  3542.    gratuitous ARP on behalf of the mobile node.  This gratuitous ARP
  3543.    packet MUST be transmitted as a broadcast packet on the link on which
  3544.    the mobile node's home address is located.  Since broadcasts on the
  3545.    local link (such as Ethernet) are typically not guaranteed to be
  3546.    reliable, the gratuitous ARP packet SHOULD be retransmitted a small
  3547.    number of times to increase its reliability.
  3548.  
  3549.    When a mobile node returns to its home network, the mobile node
  3550.    and its home agent use gratuitous ARP to cause all nodes on the
  3551.    mobile node's home network to update their ARP caches to once again
  3552.    associate the mobile node's own link-layer address with the mobile
  3553.    node's home (IP) address.  Before transmitting the (de)Registration
  3554.    Request message to its home agent, the mobile node MUST transmit this
  3555.    gratuitous ARP on its home network as a local broadcast on this link.
  3556.    The gratuitous ARP packet SHOULD be retransmitted a small number of
  3557.    times to increase its reliability, but these retransmissions SHOULD
  3558.    proceed in parallel with the transmission and processing of its
  3559.    (de)Registration Request.
  3560.  
  3561.    When the mobile node's home agent receives and accepts this
  3562.    (de)Registration Request, the home agent MUST also transmit a
  3563.    gratuitous ARP on the mobile node's home network.  This gratuitous
  3564.    ARP also is used to associate the mobile node's home address with
  3565.    the mobile node's own link-layer address.  A gratuitous ARP is
  3566.    transmitted by both the mobile node and its home agent, since in the
  3567.    case of wireless network interfaces, the area within transmission
  3568.    range of the mobile node will likely differ from that within range
  3569.    of its its home agent.  Th ARP packet from the home agent MUST be
  3570.    transmitted as a local broadcast on the mobile node's home link,
  3571.    and SHOULD be retransmitted a small number of times to increase
  3572.    its reliability; these retransmissions, however, SHOULD proceed in
  3573.    parallel with the transmission and processing of its (de)Registration
  3574.    Reply.
  3575.  
  3576.    While the mobile node is away from home, it MUST NOT transmit any
  3577.    broadcast ARP Request or ARP Reply messages.  Finally, while the
  3578.    mobile node is away from home, it MUST NOT reply to ARP Requests
  3579.    in which the target IP address is its own home address, unless the
  3580.    ARP Request is sent by a foreign agent with which the mobile node
  3581.    is attempting to register or a foreign agent with which the mobile
  3582.    node has an unexpired registration.  In the latter case, the mobile
  3583.  
  3584.  
  3585.  
  3586. Perkins                     Standards Track                    [Page 64]
  3587.  
  3588. RFC 2002                  IP Mobility Support               October 1996
  3589.  
  3590.  
  3591.    node MUST use a unicast ARP Reply to respond to the foreign agent.
  3592.    Note that if the mobile node is using a co-located care-of address
  3593.    and receives an ARP Request in which the target IP address is this
  3594.    care-of address, then the mobile node SHOULD reply to this ARP
  3595.    Request.  Note also that, when transmitting a Registration Request on
  3596.    a foreign network, a mobile node may discover the link-layer address
  3597.    of a foreign agent by storing the address as it is received from the
  3598.    Agent Advertisement from that foreign agent, but not by transmitting
  3599.    a broadcast ARP Request message.
  3600.  
  3601.    The specific order in which each of the above requirements for the
  3602.    use of ARP, proxy ARP, and gratuitous ARP are applied, relative to
  3603.    the transmission and processing of the mobile node's Registration
  3604.    Request and Registration Reply messages when leaving home or
  3605.    returning home, are important to the correct operation of the
  3606.    protocol.
  3607.  
  3608.    To summarize the above requirements, when a mobile node leaves its
  3609.    home network, the following steps, in this order, MUST be performed:
  3610.  
  3611.     -  The mobile node decides to register away from home, perhaps
  3612.        because it has received an Agent Advertisement from a foreign
  3613.        agent and has not recently received one from its home agent.
  3614.  
  3615.     -  Before transmitting the Registration Request, the mobile node
  3616.        disables its own future processing of any ARP Requests it
  3617.        may subsequently receive requesting the link-layer address
  3618.        corresponding to its home address, except insofar as necessary to
  3619.        communicate with foreign agents on visited networks.
  3620.  
  3621.     -  The mobile node transmits its Registration Request.
  3622.  
  3623.     -  When the mobile node's home agent receives and accepts the
  3624.        Registration Request, it performs a gratuitous ARP on behalf
  3625.        of the mobile node, and begins using proxy ARP to reply to ARP
  3626.        Requests that it receives requesting the mobile node's link-layer
  3627.        address.  If, instead, the home agent rejects the Registration
  3628.        Request, no ARP processing (gratuitous nor proxy) is performed by
  3629.        the home agent.
  3630.  
  3631.    When a mobile node later returns to its home network, the following
  3632.    steps, in this order, MUST be performed:
  3633.  
  3634.     -  The mobile node decides to register at home, perhaps because it
  3635.        has received an Agent Advertisement from its home agent.
  3636.  
  3637.  
  3638.  
  3639.  
  3640.  
  3641.  
  3642. Perkins                     Standards Track                    [Page 65]
  3643.  
  3644. RFC 2002                  IP Mobility Support               October 1996
  3645.  
  3646.  
  3647.     -  Before transmitting the Registration Request, the mobile node
  3648.        re-enables its own future processing of any ARP Requests it may
  3649.        subsequently receive requesting its link-layer address.
  3650.  
  3651.     -  The mobile node performs a gratuitous ARP for itself.
  3652.  
  3653.     -  The mobile node transmits its Registration Request.
  3654.  
  3655.     -  When the mobile node's home agent receives and accepts the
  3656.        Registration Request, it stops using proxy ARP to reply to
  3657.        ARP Requests that it receives requesting the mobile node's
  3658.        link-layer address, and then performs a gratuitous ARP on behalf
  3659.        of the mobile node.  If, instead, the home agent rejects the
  3660.        Registration Request, no ARP processing (gratuitous nor proxy) is
  3661.        performed by the home agent.
  3662.  
  3663. 5. Security Considerations
  3664.  
  3665.    The mobile computing environment is potentially very different from
  3666.    the ordinary computing environment.  In many cases, mobile computers
  3667.    will be connected to the network via wireless links.  Such links are
  3668.    particularly vulnerable to passive eavesdropping, active replay
  3669.    attacks, and other active attacks.
  3670.  
  3671. 5.1. Message Authentication Codes
  3672.  
  3673.    Home agents and mobile nodes MUST be able to perform authentication.
  3674.    The default algorithm is keyed MD5 [21], with a key size of 128 bits.
  3675.    The default mode of operation is to both precede and follow the data
  3676.    to be hashed, by the 128-bit key; that is, MD5 is to be used in
  3677.    "prefix+suffix" mode.  The foreign agent MUST also support
  3678.    authentication using keyed MD5 and key sizes of 128 bits or greater,
  3679.    with manual key distribution.  More authentication algorithms,
  3680.    algorithm modes, key distribution methods, and key sizes MAY also be
  3681.    supported.
  3682.  
  3683. 5.2. Areas of Security Concern in this Protocol
  3684.  
  3685.    The registration protocol described in this document will result in a
  3686.    mobile node's traffic being tunneled to its care-of address.  This
  3687.    tunneling feature could be a significant vulnerability if the
  3688.    registration were not authenticated.  Such remote redirection, for
  3689.    instance as performed by the mobile registration protocol, is widely
  3690.    understood to be a security problem in the current Internet if not
  3691.    authenticated [2].  Moreover, the Address Resolution Protocol (ARP)
  3692.    is not authenticated, and can potentially be used to steal another
  3693.    host's traffic.  The use of "Gratuitous ARP" (Section 4.6) brings
  3694.    with it all of the risks associated with the use of ARP.
  3695.  
  3696.  
  3697.  
  3698. Perkins                     Standards Track                    [Page 66]
  3699.  
  3700. RFC 2002                  IP Mobility Support               October 1996
  3701.  
  3702.  
  3703. 5.3. Key Management
  3704.  
  3705.    This specification requires a strong authentication mechanism (keyed
  3706.    MD5) which precludes many potential attacks based on the Mobile IP
  3707.    registration protocol.  However, because key distribution is
  3708.    difficult in the absence of a network key management protocol,
  3709.    messages with the foreign agent are not all required to be
  3710.    authenticated.  In a commercial environment it might be important to
  3711.    authenticate all messages between the foreign agent and the home
  3712.    agent, so that billing is possible, and service providers do not
  3713.    provide service to users that are not legitimate customers of that
  3714.    service provider.
  3715.  
  3716. 5.4. Picking Good Random Numbers
  3717.  
  3718.    The strength of any authentication mechanism depends on several
  3719.    factors, including the innate strength of the authentication
  3720.    algorithm, the secrecy of the key used, the strength of the key used,
  3721.    and the quality of the particular implementation.  This specification
  3722.    requires implementation of keyed MD5 for authentication, but does not
  3723.    preclude the use of other authentication algorithms and modes.  For
  3724.    keyed MD5 authentication to be useful, the 128-bit key must be both
  3725.    secret (that is, known only to authorized parties) and pseudo-random.
  3726.    If nonces are used in connection with replay protection, they must
  3727.    also be selected carefully.  Eastlake, et al. [7] provides more
  3728.    information on generating pseudo-random numbers.
  3729.  
  3730. 5.5. Privacy
  3731.  
  3732.    Users who have sensitive data that they do not wish others to see
  3733.    should use mechanisms outside the scope of this document (such as
  3734.    encryption) to provide appropriate protection.  Users concerned about
  3735.    traffic analysis should consider appropriate use of link encryption.
  3736.    If absolute location privacy is desired, the mobile node can create a
  3737.    tunnel to its home agent.  Then, datagrams destined for correspondent
  3738.    nodes will appear to emanate from the home network, and it may be
  3739.    more difficult to pinpoint the location of the mobile node.  Such
  3740.    mechanisms are all beyond the scope of this document.
  3741.  
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754. Perkins                     Standards Track                    [Page 67]
  3755.  
  3756. RFC 2002                  IP Mobility Support               October 1996
  3757.  
  3758.  
  3759. 5.6. Replay Protection for Registration Requests
  3760.  
  3761.    The Identification field is used to let the home agent verify that a
  3762.    registration message has been freshly generated by the mobile node,
  3763.    not replayed by an attacker from some previous registration.  Two
  3764.    methods are described in this section:  timestamps (mandatory) and
  3765.    "nonces" (optional).  All mobile nodes and home agents MUST implement
  3766.    timestamp-based replay protection.  These nodes MAY also implement
  3767.    nonce-based replay protection (but see Appendix A.2 for a patent that
  3768.    may apply to nonce-based replay protection).
  3769.  
  3770.    The style of replay protection in effect between a mobile node and
  3771.    its home agent is part of the mobile security association.  A mobile
  3772.    node and its home agent MUST agree on which method of replay
  3773.    protection will be used.  The interpretation of the Identification
  3774.    field depends on the method of replay protection as described in the
  3775.    subsequent subsections.
  3776.  
  3777.    Whatever method is used, the low-order 32 bits of the Identification
  3778.    MUST be copied unchanged from the Registration Request to the Reply.
  3779.    The foreign agent uses those bits (and the mobile node's home
  3780.    address) to match Registration Requests with corresponding replies.
  3781.    The mobile node MUST verify that the low-order 32 bits of any
  3782.    Registration Reply are identical to the bits it sent in the
  3783.    Registration Request.
  3784.  
  3785.    The Identification in a new Registration Request MUST NOT be the same
  3786.    as in an immediately preceding Request, and SHOULD NOT repeat while
  3787.    the same security context is being used between the mobile node and
  3788.    the home agent.  Retransmission as in Section 3.6.3 is allowed.
  3789.  
  3790. 5.6.1. Replay Protection using Timestamps
  3791.  
  3792.    The basic principle of timestamp replay protection is that the node
  3793.    generating a message inserts the current time of day, and the node
  3794.    receiving the message checks that this timestamp is sufficiently
  3795.    close to its own time of day.  Obviously the two nodes must have
  3796.    adequately synchronized time-of-day clocks.  As with any messages,
  3797.    time synchronization messages may be protected against tampering by
  3798.    an authentication mechanism determined by the security context
  3799.    between the two nodes.
  3800.  
  3801.    If timestamps are used, the mobile node MUST set the Identification
  3802.    field to a 64-bit value formatted as specified by the Network Time
  3803.    Protocol [13].  The low-order 32 bits of the NTP format represent
  3804.    fractional seconds, and those bits which are not available from a
  3805.    time source SHOULD be generated from a good source of randomness.
  3806.    Note, however, that when using timestamps, the 64-bit Identification
  3807.  
  3808.  
  3809.  
  3810. Perkins                     Standards Track                    [Page 68]
  3811.  
  3812. RFC 2002                  IP Mobility Support               October 1996
  3813.  
  3814.  
  3815.    used in a Registration Request from the mobile node MUST be greater
  3816.    than that used in any previous Registration Request, as the home
  3817.    agent uses this field also as a sequence number.  Without such a
  3818.    sequence number, it would be possible for a delayed duplicate of an
  3819.    earlier Registration Request to arrive at the home agent (within the
  3820.    clock synchronization required by the home agent), and thus be
  3821.    applied out of order, mistakenly altering the mobile node's current
  3822.    registered care-of address.
  3823.  
  3824.    Upon receipt of a Registration Request with a valid Mobile-Home
  3825.    Authentication Extension, the home agent MUST check the
  3826.    Identification field for validity.  In order to be valid, the
  3827.    timestamp contained in the Identification field MUST be close enough
  3828.    to the home agent's time of day clock and the timestamp MUST be
  3829.    greater than all previously accepted timestamps for the requesting
  3830.    mobile node.  Time tolerances and resynchronization details are
  3831.    specific to a particular mobility security association.
  3832.  
  3833.    If the timestamp is valid, the home agent copies the entire
  3834.    Identification field into the Registration Reply it returns the Reply
  3835.    to the mobile node.  If the timestamp is not valid, the home agent
  3836.    copies only the low-order 32 bits into the Registration Reply, and
  3837.    supplies the high-order 32 bits from its own time of day.  In this
  3838.    latter case, the home agent MUST reject the registration by returning
  3839.    Code 133 (identification mismatch) in the Registration Reply.
  3840.  
  3841.    As described in Section 3.6.2.1, the mobile node MUST verify that the
  3842.    low-order 32 bits of the Identification in the Registration Reply are
  3843.    identical to those in the rejected registration attempt, before using
  3844.    the high-order bits for clock resynchronization.
  3845.  
  3846. 5.6.2. Replay Protection using Nonces
  3847.  
  3848.    Implementors of this optional mechanism should examine Appendix A.2
  3849.    for a patent that may be applicable to nonce-based replay protection.
  3850.  
  3851.    The basic principle of nonce replay protection is that node A
  3852.    includes a new random number in every message to node B, and checks
  3853.    that node B returns that same number in its next message to node A.
  3854.    Both messages use an authentication code to protect against
  3855.    alteration by an attacker.  At the same time node B can send its own
  3856.    nonces in all messages to node A (to be echoed by node A), so that it
  3857.    too can verify that it is receiving fresh messages.
  3858.  
  3859.    The home agent may be expected to have resources for computing
  3860.    pseudo-random numbers useful as nonces [7].  It inserts a new nonce
  3861.    as the high-order 32 bits of the identification field of every
  3862.    Registration Reply.  The home agent copies the low-order 32 bits of
  3863.  
  3864.  
  3865.  
  3866. Perkins                     Standards Track                    [Page 69]
  3867.  
  3868. RFC 2002                  IP Mobility Support               October 1996
  3869.  
  3870.  
  3871.    the Identification from the Registration Request message into the
  3872.    low-order 32 bits of the Identification in the Registration Reply.
  3873.    When the mobile node receives an authenticated Registration Reply
  3874.    from the home agent, it saves the high-order 32 bits of the
  3875.    identification for use as the high-order 32 bits of its next
  3876.    Registration Request.
  3877.  
  3878.    The mobile node is responsible for generating the low-order 32 bits
  3879.    of the Identification in each Registration Request.  Ideally it
  3880.    should generate its own random nonces.  However it may use any
  3881.    expedient method, including duplication of the random value sent by
  3882.    the home agent.  The method chosen is of concern only to the mobile
  3883.    node, because it is the node that checks for valid values in the
  3884.    Registration Reply.  The high-order and low-order 32 bits of the
  3885.    identification chosen SHOULD both differ from their previous values.
  3886.    The home agent uses a new high-order value and the mobile node uses a
  3887.    new low-order value for each registration message.  The foreign agent
  3888.    uses the low-order value (and the mobile host's home address) to
  3889.    correctly match registration replies with pending Requests (Section
  3890.    3.7.1).
  3891.  
  3892.    If a registration message is rejected because of an invalid nonce,
  3893.    the Reply always provides the mobile node with a new nonce to be used
  3894.    in the next registration.  Thus the nonce protocol is self-
  3895.    synchronizing.
  3896.  
  3897.  
  3898.  
  3899.  
  3900.  
  3901.  
  3902.  
  3903.  
  3904.  
  3905.  
  3906.  
  3907.  
  3908.  
  3909.  
  3910.  
  3911.  
  3912.  
  3913.  
  3914.  
  3915.  
  3916.  
  3917.  
  3918.  
  3919.  
  3920.  
  3921.  
  3922. Perkins                     Standards Track                    [Page 70]
  3923.  
  3924. RFC 2002                  IP Mobility Support               October 1996
  3925.  
  3926.  
  3927. 6. Acknowledgments
  3928.  
  3929.    Special thanks to Steve Deering (Xerox PARC), along with Dan Duchamp
  3930.    and John Ioannidis (JI) (Columbia), for forming the working group,
  3931.    chairing it, and putting so much effort into its early development.
  3932.  
  3933.    Thanks also to Kannan Alaggapan, Greg Minshall, and Tony Li for their
  3934.    contributions to the group while performing the duties of
  3935.    chairperson, as well as for their many useful comments.
  3936.  
  3937.    Thanks to the active members of the Mobile IP Working Group,
  3938.    particularly those who contributed text, including (in alphabetical
  3939.    order)
  3940.  
  3941.     - Ran Atkinson (Naval Research Lab),
  3942.     - Dave Johnson (Carnegie Mellon University),
  3943.     - Frank Kastenholz (FTP Software),
  3944.     - Anders Klemets (KTH),
  3945.     - Chip Maguire (KTH),
  3946.     - Andrew Myles (Macquarie University),
  3947.     - Al Quirt (Bell Northern Research),
  3948.     - Yakov Rekhter (IBM), and
  3949.     - Fumio Teraoka (Sony).
  3950.  
  3951.    Thanks to Charlie Kunzinger and to Bill Simpson, the editors who
  3952.    produced the first drafts for of this document, reflecting the
  3953.    discussions of the Working Group.  Much of the new text of this memo
  3954.    is due to Jim Solomon and Dave Johnson.
  3955.  
  3956.    Thanks to Greg Minshall (Novell), Phil Karn (Qualcomm), and Frank
  3957.    Kastenholz (FTP Software) for their generous support in hosting
  3958.    interim Working Group meetings.
  3959.  
  3960.  
  3961.  
  3962.  
  3963.  
  3964.  
  3965.  
  3966.  
  3967.  
  3968.  
  3969.  
  3970.  
  3971.  
  3972.  
  3973.  
  3974.  
  3975.  
  3976.  
  3977.  
  3978. Perkins                     Standards Track                    [Page 71]
  3979.  
  3980. RFC 2002                  IP Mobility Support               October 1996
  3981.  
  3982.  
  3983. A. Patent Issues
  3984.  
  3985.    As of the time of publication, the IETF had been made aware of two
  3986.    patents that may be relevant to implementors of the protocol
  3987.    described in this technical specification.
  3988.  
  3989. A.1. IBM Patent #5,159,592
  3990.  
  3991.    Charles Perkins, editor of this memo, is sole inventor of U.S. Patent
  3992.    No. 5,159,592, assigned to IBM.  In a letter dated May 30, 1995, IBM
  3993.    brought this patent to the attention of the IETF, stating that this
  3994.    patent "relates to the Mobile IP." We understand that IBM did not
  3995.    intend to assert that any particular implementation of Mobile IP
  3996.    would or would not infringe the patent, but rather that IBM was
  3997.    meeting what it viewed as a duty to disclose information that could
  3998.    be relevant to the process of adopting a standard.
  3999.  
  4000.    Based on a review of the claims of the patent, IETF believes that a
  4001.    system of registering an address obtained from a foreign agent, as
  4002.    described in the document, would not necessarily infringe any of the
  4003.    claims of the patent; and that a system in which an address is
  4004.    obtained elsewhere and then registered can be implemented without
  4005.    necessarily infringing any claims of the patent.  Accordingly, our
  4006.    view is that the proposed protocol can be implemented without
  4007.    necessarily infringing the Perkins Patent.
  4008.  
  4009.    Parties considering adopting this protocol must be aware that some
  4010.    specific implementations, or features added to otherwise non-
  4011.    infringing implementations, may raise an issue of infringement with
  4012.    respect to this patent or to some other patent.
  4013.  
  4014.    This statement is for the IETF's assistance in its standard-setting
  4015.    procedure, and should not be relied upon by any party as an opinion
  4016.    or guarantee that any implementation it might make or use would not
  4017.    be covered by the Perkins Patent and any other patents.  In
  4018.    particular, IBM might disagree with the interpretation of this patent
  4019.    described herein.
  4020.  
  4021. A.2. IBM Patent #5,148,479
  4022.  
  4023.    This patent, also assigned to IBM, may be relevant to those who
  4024.    implement nonce-based replay protection as described in Section
  4025.    5.6.2.  Note that nonce-based replay protection is an optional
  4026.    feature of this specification.  Timestamp-based replay protection, on
  4027.    the other hand, (Section 5.6.1) is a requirement of this
  4028.    specification.
  4029.  
  4030.  
  4031.  
  4032.  
  4033.  
  4034. Perkins                     Standards Track                    [Page 72]
  4035.  
  4036. RFC 2002                  IP Mobility Support               October 1996
  4037.  
  4038.  
  4039. B. Link-Layer Considerations
  4040.  
  4041.    The mobile node MAY use link-layer mechanisms to decide that its
  4042.    point of attachment has changed.  Such indications include the
  4043.    Down/Testing/Up interface status [11], and changes in cell or
  4044.    administration.  The mechanisms will be specific to the particular
  4045.    link-layer technology, and are outside the scope of this document.
  4046.  
  4047.    The Point-to-Point-Protocol (PPP) [22] and its Internet Protocol
  4048.    Control Protocol (IPCP) [12], negotiates the use of IP addresses.
  4049.  
  4050.    The mobile node SHOULD first attempt to specify its home address, so
  4051.    that if the mobile node is attaching to its home network, the
  4052.    unrouted link will function correctly.  When the home address is not
  4053.    accepted by the peer, but a transient IP address is dynamically
  4054.    assigned to the mobile node, and the mobile node is capable of
  4055.    supporting a co-located care-of address, the mobile node MAY register
  4056.    that address as a co-located care-of address.  When the peer
  4057.    specifies its own IP address, that address MUST NOT be assumed to be
  4058.    a foreign agent care-of address or the IP address of a home agent.
  4059.  
  4060. C. TCP Considerations
  4061.  
  4062. C.1. TCP Timers
  4063.  
  4064.    Most hosts and routers which implement TCP/IP do not permit easy
  4065.    configuration of the TCP timer values.  When high-delay (e.g.,
  4066.    SATCOM) or low-bandwidth (e.g., High-Frequency Radio) links are in
  4067.    use, the default TCP timer values in many systems may cause
  4068.    retransmissions or timeouts, even when the link and network are
  4069.    actually operating properly with greater than usual delays because of
  4070.    the medium in use.  This can cause an inability to create or maintain
  4071.    TCP connections over such links, and can also cause unneeded
  4072.    retransmissions which consume already scarce bandwidth.  Vendors are
  4073.    encouraged to make TCP timers more configurable.  Vendors of systems
  4074.    designed for the mobile computing markets should pick default timer
  4075.    values more suited to low-bandwidth, high-delay links.  Users of
  4076.    mobile nodes should be sensitive to the possibility of timer-related
  4077.    difficulties.
  4078.  
  4079. C.2. TCP Congestion Management
  4080.  
  4081.    Mobile nodes often use media which are more likely to introduce
  4082.    errors, effectively causing more packets to be dropped.  This
  4083.    introduces a conflict with the mechanisms for congestion management
  4084.    found in modern versions of TCP [9].  Now, when a packet is dropped,
  4085.    the correspondent node's TCP implementation is likely to react as if
  4086.    there were a source of network congestion, and initiate the slow-
  4087.  
  4088.  
  4089.  
  4090. Perkins                     Standards Track                    [Page 73]
  4091.  
  4092. RFC 2002                  IP Mobility Support               October 1996
  4093.  
  4094.  
  4095.    start mechanisms [9] designed for controlling that problem.  However,
  4096.    those mechanisms are inappropriate for overcoming errors introduced
  4097.    by the links themselves, and have the effect of magnifying the
  4098.    discontinuity introduced by the dropped packet.  This problem has
  4099.    been analyzed by Caceres, et al. [3]; there is no easy solution
  4100.    available, and certainly no solution likely to be installed soon on
  4101.    all correspondent nodes.  While this problem is beyond the scope of
  4102.    this document, it does illustrate that providing performance
  4103.    transparency to mobile nodes involves understanding mechanisms
  4104.    outside the network layer.  It also indicates the need to avoid
  4105.    designs which systematically drop packets; such designs might
  4106.    otherwise be considered favorably when making engineering tradeoffs.
  4107.  
  4108. D. Example Scenarios
  4109.  
  4110.    This section shows example Registration Requests for several common
  4111.    scenarios.
  4112.  
  4113. D.1. Registering with a Foreign Agent Care-of Address
  4114.  
  4115.    The mobile node receives an Agent Advertisement from a foreign agent
  4116.    and wishes to register with that agent using the advertised foreign
  4117.    agent care-of address.  The mobile node wishes only IP-in-IP
  4118.    encapsulation, does not want broadcasts, and does not want
  4119.    simultaneous mobility bindings:
  4120.  
  4121.        IP fields:
  4122.          Source Address = mobile node's home address
  4123.          Destination Address = copied from the IP source address of the
  4124.            Agent Advertisement
  4125.          Time to Live = 1
  4126.        UDP fields:
  4127.          Source Port = <any>
  4128.          Destination Port = 434
  4129.        Registration Request fields:
  4130.          Type = 1
  4131.          S=0,B=0,D=0,M=0,G=0
  4132.          Lifetime = the Registration Lifetime copied from the
  4133.            Mobility Agent Advertisement Extension of the
  4134.            Router Advertisement message
  4135.          Home Address = the mobile node's home address
  4136.          Home Agent = IP address of mobile node's home agent
  4137.          Care-of Address = the Care-of Address copied from the
  4138.            Mobility Agent Advertisement Extension of the
  4139.            Router Advertisement message
  4140.          Identification = Network Time Protocol timestamp or Nonce
  4141.        Extensions:
  4142.          The Mobile-Home Authentication Extension
  4143.  
  4144.  
  4145.  
  4146. Perkins                     Standards Track                    [Page 74]
  4147.  
  4148. RFC 2002                  IP Mobility Support               October 1996
  4149.  
  4150.  
  4151. D.2. Registering with a Co-Located Care-of Address
  4152.  
  4153.    The mobile node enters a foreign network that contains no foreign
  4154.    agents.  The mobile node obtains an address from a DHCP server [6]
  4155.    for use as a co-located care-of address.  The mobile node supports
  4156.    all forms of encapsulation (IP-in-IP, minimal encapsulation, and
  4157.    GRE), desires a copy of broadcast datagrams on the home network, and
  4158.    does not want simultaneous mobility bindings:
  4159.  
  4160.        IP fields:
  4161.          Source Address = care-of address obtained from DHCP server
  4162.          Destination Address = IP address of home agent
  4163.          Time to Live = 64
  4164.        UDP fields:
  4165.          Source Port = <any>
  4166.          Destination Port = 434
  4167.        Registration Request fields:
  4168.          Type = 1
  4169.          S=0,B=1,D=1,M=1,G=1
  4170.          Lifetime = 1800 (seconds)
  4171.          Home Address = the mobile node's home address
  4172.          Home Agent = IP address of mobile node's home agent
  4173.          Care-of Address = care-of address obtained from DHCP server
  4174.          Identification = Network Time Protocol timestamp or Nonce
  4175.        Extensions:
  4176.          The Mobile-Home Authentication Extension
  4177.  
  4178.  
  4179.  
  4180.  
  4181.  
  4182.  
  4183.  
  4184.  
  4185.  
  4186.  
  4187.  
  4188.  
  4189.  
  4190.  
  4191.  
  4192.  
  4193.  
  4194.  
  4195.  
  4196.  
  4197.  
  4198.  
  4199.  
  4200.  
  4201.  
  4202. Perkins                     Standards Track                    [Page 75]
  4203.  
  4204. RFC 2002                  IP Mobility Support               October 1996
  4205.  
  4206.  
  4207. D.3. Deregistration
  4208.  
  4209.    The mobile node returns home and wishes to deregister all care-of
  4210.    addresses with its home agent.
  4211.  
  4212.        IP fields:
  4213.          Source Address = mobile node's home address
  4214.          Destination Address = IP address of home agent
  4215.          Time to Live = 1
  4216.        UDP fields:
  4217.          Source Port = <any>
  4218.          Destination Port = 434
  4219.        Registration Request fields:
  4220.          Type = 1
  4221.          S=0,B=0,D=0,M=0,G=0
  4222.          Lifetime = 0
  4223.          Home Address = the mobile node's home address
  4224.          Home Agent = IP address of mobile node's home agent
  4225.          Care-of Address = the mobile node's home address
  4226.          Identification = Network Time Protocol timestamp or Nonce
  4227.        Extensions:
  4228.          The Mobile-Home Authentication Extension
  4229.  
  4230. E. Applicability of Prefix Lengths Extension
  4231.  
  4232.    Caution is indicated with the use of the Prefix Lengths Extension
  4233.    over wireless links, due to the irregular coverage areas provided by
  4234.    wireless transmitters.  As a result, it is possible that two foreign
  4235.    agents advertising the same prefix might indeed provide different
  4236.    connectivity to prospective mobile nodes.  The Prefix-Lengths
  4237.    Extension SHOULD NOT be included in the advertisements sent by agents
  4238.    in such a configuration.
  4239.  
  4240.  
  4241.  
  4242.  
  4243.  
  4244.  
  4245.  
  4246.  
  4247.  
  4248.  
  4249.  
  4250.  
  4251.  
  4252.  
  4253.  
  4254.  
  4255.  
  4256.  
  4257.  
  4258. Perkins                     Standards Track                    [Page 76]
  4259.  
  4260. RFC 2002                  IP Mobility Support               October 1996
  4261.  
  4262.  
  4263.    Foreign agents using different wireless interfaces would have to
  4264.    cooperate using special protocols to provide identical coverage in
  4265.    space, and thus be able to claim to have wireless interfaces situated
  4266.    on the same subnetwork.  In the case of wired interfaces, a mobile
  4267.    node disconnecting and subsequently connecting to a new point of
  4268.    attachment, may well send in a new Registration Request no matter
  4269.    whether the new advertisement is on the same medium as the last
  4270.    recorded advertisement.  And, finally, in areas with dense
  4271.    populations of foreign agents it would seem unwise to require the
  4272.    propagation via routing protocols of the subnet prefixes associated
  4273.    with each individual wireless foreign agent; such a strategy could
  4274.    lead to quick depletion of available space for routing tables,
  4275.    unwarranted increases in the time required for processing routing
  4276.    updates, and longer decision times for route selection if routes
  4277.    (which are almost always unnecessary) are stored for wireless
  4278.    "subnets".
  4279.  
  4280. References
  4281.  
  4282.    [1] Atkinson, R., "IP Authentication Header", RFC 1826, August 1995.
  4283.  
  4284.    [2] S. M. Bellovin.  Security Problems in the TCP/IP Protocol Suite.
  4285.        ACM Computer Communications Review, 19(2), March 1989.
  4286.  
  4287.    [3] Ramon Caceres and Liviu Iftode.  Improving the Performance
  4288.        of Reliable Transport Protocols in Mobile Computing
  4289.        Environments.  IEEE Journal on Selected Areas in Communications,
  4290.        13(5):850--857, June 1995.
  4291.  
  4292.    [4] Deering, S., Editor, "ICMP Router Discovery Messages",
  4293.        RFC 1256, September 1991.
  4294.  
  4295.    [5] Deering, S., "Host Extensions for IP Multicasting", STD 5,
  4296.        RFC 1112, August 1989.
  4297.  
  4298.    [6] Droms, R., "Dynamic Host Configuration Protocol", RFC 1541,
  4299.        October 1993.
  4300.  
  4301.    [7] Eastlake, D., Crocker, S., and J. Schiller, "Randomness
  4302.        Requirements for Security", RFC 1750, December 1994.
  4303.  
  4304.    [8] Hanks, S., Li, R., Farinacci, D., and P. Traina, "Generic
  4305.        Routing Encapsulation (GRE)", RFC 1701, October 1994.
  4306.  
  4307.    [9] Van Jacobson.  Congestion Avoidance and Control.  In Proceedings
  4308.        of the SIGCOMM '88 Symposium:  Communications Architectures &
  4309.        Protocols, pages 314--329, August 1988.
  4310.  
  4311.  
  4312.  
  4313.  
  4314. Perkins                     Standards Track                    [Page 77]
  4315.  
  4316. RFC 2002                  IP Mobility Support               October 1996
  4317.  
  4318.  
  4319.    [10] Jacobson, V., "Compressing TCP/IP Headers for Low-Speed Serial
  4320.         Links", RFC 1144, February 1990.
  4321.  
  4322.    [11] McCloghrie, K., and F. Kastenholz, "Evolution of the
  4323.         Interfaces Group of MIB-II", RFC 1573, January 1994.
  4324.  
  4325.    [12] McGregor, G., "The PPP Internet Protocol Control Protocol
  4326.         (IPCP)", RFC 1332, May 1992.
  4327.  
  4328.    [13] Mills, D., "Network Time Protocol (Version 3):
  4329.         Specification, Implementation and Analysis", RFC 1305, March
  4330.         1992.
  4331.  
  4332.    [14] Perkins, C., "IP Encapsulation within IP", RFC 2003,
  4333.         October 1996.
  4334.  
  4335.    [15] Perkins, C., "Minimal Encapsulation within IP", RFC 2004,
  4336.         October 1996.
  4337.  
  4338.    [16] Plummer, D., "An Ethernet Address Resolution Protocol:
  4339.         Or Converting Network Protocol Addresses to 48.bit Ethernet
  4340.         Addresses for Transmission on Ethernet Hardware", STD 37,
  4341.         RFC 826, November 1982.
  4342.  
  4343.    [17] Postel, J., "User Datagram Protocol", STD 6, RFC 768, August
  4344.         1980.
  4345.  
  4346.    [18] Postel, J., "Multi-LAN Address Resolution", RFC 925, October
  4347.         1984.
  4348.  
  4349.    [19] Postel, J., Editor, "Internet Protocol", STD 5, RFC 791,
  4350.         September 1981.
  4351.  
  4352.    [20] Reynolds, J., and J. Postel, "Assigned Numbers", STD 2,
  4353.         RFC 1700, October 1994.
  4354.  
  4355.    [21] Rivest, R., "The MD5 Message-Digest Algorithm", RFC 1321,
  4356.         April 1992.
  4357.  
  4358.    [22] Simpson, W., Editor, "The Point-to-Point Protocol
  4359.         (PPP)", STD 51, RFC 1661, July 1994.
  4360.  
  4361.    [23] W. Richard Stevens.  TCP/IP Illustrated, Volume 1:  The
  4362.         Protocols.  Addison-Wesley, Reading, Massachusetts, 1994.
  4363.  
  4364.  
  4365.  
  4366.  
  4367.  
  4368.  
  4369.  
  4370. Perkins                     Standards Track                    [Page 78]
  4371.  
  4372. RFC 2002                  IP Mobility Support               October 1996
  4373.  
  4374.  
  4375. Editor's Address
  4376.  
  4377.    Questions about this memo can also be directed to the editor:
  4378.  
  4379.    Charles Perkins
  4380.    Room H3-D34
  4381.    T. J. Watson Research Center
  4382.    IBM Corporation
  4383.    30 Saw Mill River Rd.
  4384.    Hawthorne, NY  10532
  4385.  
  4386.    Work:   +1-914-784-7350
  4387.    Fax:    +1-914-784-6205
  4388.    EMail: perk@watson.ibm.com
  4389.  
  4390.    The working group can be contacted via the current chair:
  4391.  
  4392.       Jim Solomon
  4393.       Motorola, Inc.
  4394.       1301 E. Algonquin Rd.
  4395.       Schaumburg, IL  60196
  4396.  
  4397.       Work:   +1-847-576-2753
  4398.       EMail: solomon@comm.mot.com
  4399.  
  4400.  
  4401.  
  4402.  
  4403.  
  4404.  
  4405.  
  4406.  
  4407.  
  4408.  
  4409.  
  4410.  
  4411.  
  4412.  
  4413.  
  4414.  
  4415.  
  4416.  
  4417.  
  4418.  
  4419.  
  4420.  
  4421.  
  4422.  
  4423.  
  4424.  
  4425.  
  4426. Perkins                     Standards Track                    [Page 79]
  4427.  
  4428.