RFC 2390 DRAFT STANDARD ARP · FRAME RELAY · ADDRESSING

InARP: Inverse Address Resolution Protocol

How a station that already knows the link-layer address of its neighbour finds out the network-layer address to use for it.

On rfc-editor.org ↗
PUBLISHED
September 1998
AUTHORS
T. Bradley, C. Brown, A. Malis
STREAM
IETF
BUILDS ON
RFC 1293 — InARP
INARP REQUEST OPERATION CODE
8
INARP RESPONSE OPERATION CODE
9
FRAME RELAY HARDWARE TYPE VALUE
0x000F
IP PROTOCOL TYPE
0x0800
FRAME RELAY HARDWARE ADDRESS LENGTH
2, 3 or 4 bytes
DLCI 50 IN THE WORKED EXAMPLE
0x0C21
DOI
10.17487/RFC2390

RFC text

Contents
Original text · RFC Editor View on rfc-editor.org ↗
Network Working Group                                         T. Bradley
Request for Comments: 2390                           Avici Systems, Inc.
Obsoletes: 1293                                                 C. Brown
Category: Standards Track                                     Consultant
                                                                A. Malis
                                             Ascend Communications, Inc.
                                                          September 1998


                  Inverse Address Resolution Protocol

Status of this Memo

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

Copyright Notice

   Copyright (C) The Internet Society (1998).  All Rights Reserved.

2.  Abstract

   This memo describes additions to ARP that will allow a station to
   request a protocol address corresponding to a given hardware address.
   Specifically, this applies to Frame Relay stations that may have a
   Data Link Connection Identifier (DLCI), the Frame Relay equivalent of
   a hardware address, associated with an established Permanent Virtual
   Circuit (PVC), but do not know the protocol address of the station on
   the other side of this connection.  It will also apply to other
   networks with similar circumstances.

   This memo replaces RFC 1293.  The changes from RFC 1293 are minor
   changes to formalize the language, the additions of a packet diagram
   and an example in section 7.2, and a new security section.

3.  Conventions

   The keywords MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD,
   SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL, when they appear in this
   document, are to be interpreted as described in [5].

4.  Introduction

   This document will rely heavily on Frame Relay as an example of how
   the Inverse Address Resolution Protocol (InARP) can be useful. It is
   not, however, intended that InARP be used exclusively with Frame
   Relay.  InARP may be used in any network that provides destination
   hardware addresses without indicating corresponding protocol
   addresses.

5.  Motivation

   The motivation for the development of Inverse ARP is a result of the
   desire to make dynamic address resolution within Frame Relay both
   possible and efficient.  Permanent virtual circuits (PVCs) and
   eventually switched virtual circuits (SVCs) are identified by a Data
   Link Connection Identifier (DLCI).  These DLCIs define a single
   virtual connection through the wide area network (WAN) and may be
   thought of as the Frame Relay equivalent to a hardware address.
   Periodically, through the exchange of signaling messages, a network
   may announce a new virtual circuit with its corresponding DLCI.
   Unfortunately, protocol addressing is not included in the
   announcement.  The station receiving such an indication will learn of
   the new connection, but will not be able to address the other side.
   Without a new configuration or a mechanism for discovering the
   protocol address of the other side, this new virtual circuit is
   unusable.

   Other resolution methods were considered to solve the problems, but
   were rejected.  Reverse ARP [4], for example, seemed like a good
   candidate, but the response to a request is the protocol address of
   the requesting station, not the station receiving the request.  IP
   specific mechanisms were limiting since they would not allow
   resolution of other protocols other than IP. For this reason, the ARP
   protocol was expanded.

   Inverse Address Resolution Protocol (InARP) will allow a Frame Relay
   station to discover the protocol address of a station associated with
   the virtual circuit.  It is more efficient than sending ARP messages
   on every VC for every address the system wants to resolve and it is
   more flexible than relying on static configuration.

6.  Packet Format

   Inverse ARP is an extension of the existing ARP.  Therefore, it has
   the same format as standard ARP.

      ar$hrd   16 bits         Hardware type
      ar$pro   16 bits         Protocol type
      ar$hln    8 bits         Byte length of each hardware address (n)
      ar$pln    8 bits         Byte length of each protocol address (m)
      ar$op    16 bits         Operation code
      ar$sha    nbytes         source hardware address
      ar$spa    mbytes         source protocol address
      ar$tha    nbytes         target hardware address
      ar$tpa    mbytes         target protocol address

   Possible values for hardware and protocol types are the same as those
   for ARP and may be found in the current Assigned Numbers RFC [2].

   Length of the hardware and protocol address are dependent on the
   environment in which InARP is running.  For example, if IP is running
   over Frame Relay, the hardware address length is either 2, 3, or 4,
   and the protocol address length is 4.

   The operation code indicates the type of message, request or
   response.

      InARP request  = 8
      InARP response = 9

   These values were chosen so as not to conflict with other ARP
   extensions.

7.  Protocol Operation

   Basic InARP operates essentially the same as ARP with the exception
   that InARP does not broadcast requests.  This is because the hardware
   address of the destination station is already known.

   When an interface supporting InARP becomes active, it should initiate
   the InARP protocol and format InARP requests for each active PVC for
   which InARP is active.  To do this, a requesting station simply
   formats a request by inserting its source hardware, source protocol
   addresses and the known target hardware address.  It then zero fills
   the target protocol address field.  Finally, it will encapsulate the
   packet for the specific network and send it directly to the target
   station.

   Upon receiving an InARP request, a station may put the requester's
   protocol address/hardware address mapping into its ARP cache as it
   would any ARP request.  Unlike other ARP requests, however, the
   receiving station may assume that any InARP request it receives is
   destined for it.  For every InARP request, the receiving station
   should format a proper response using the source addresses from the
   request as the target addresses of the response.  If the station is
   unable or unwilling to reply, it ignores the request.

   When the requesting station receives the InARP response, it may
   complete the ARP table entry and use the provided address
   information.  Note: as with ARP, information learned via InARP may be
   aged or invalidated under certain circumstances.

7.1.  Operation with Multi-Addressed Hosts

   In the context of this discussion, a multi-addressed host will refer
   to a host that has multiple protocol addresses assigned to a single
   interface.  If such a station receives an InARP request, it must
   choose one address with which to respond.  To make such a selection,
   the receiving station must first look at the protocol address of the
   requesting station, and then respond with the protocol address
   corresponding to the network of the requester.  For example, if the
   requesting station is probing for an IP address, the responding
   multi-addressed station should respond with an IP address which
   corresponds to the same subnet as the requesting station.  If the
   station does not have an address that is appropriate for the request
   it should not respond.  In the IP example, if the receiving station
   does not have an IP address assigned to the interface that is a part
   of the requested subnet, the receiving station would not respond.

   A multi-addressed host should send an InARP request for each of the
   addresses defined for the given interface.  It should be noted,
   however, that the receiving side may answer some or none of the
   requests depending on its configuration.

7.2.  Protocol Operation Within Frame Relay

   One case where Inverse ARP can be used is on a frame relay interface
   which supports signaling of DLCIs via a data link management
   interface.  An InARP equipped station connected to such an interface
   will format an InARP request and address it to the new virtual
   circuit.  If the other side supports InARP, it may return a response
   indicating the protocol address requested.

   In a frame relay environment, InARP packets are encapsulated using
   the NLPID/SNAP format defined in [3] which indicates the ARP
   protocol.  Specifically, the packet encapsulation will be as follows:

               +----------+----------+
               |    Q.922 address    |
               +----------+----------+
               |ctrl 0x03 | pad 00   |
               +----------+----------+
               |nlpid 0x80| oui 0x00 |
               +----------+          +
               | oui (cont) 0x00 00  |
               +----------+----------+
               | pid 0x08 06         |
               +----------+----------+
               |          .          |
               |          .          |


   The format for an InARP request itself is defined by the following:

      ar$hrd - 0x000F the value assigned to Frame Relay
      ar$pro - protocol type for which you are searching
                  (i.e.  IP = 0x0800)
      ar$hln - 2,3, or 4 byte addressing length
      ar$pln - byte length of protocol address for which you
                  are searching (for IP = 4)
      ar$op  - 8; InARP request
      ar$sha - Q.922 [6] address of requesting station
      ar$spa - protocol address of requesting station
      ar$tha - Q.922 address of newly announced virtual circuit
      ar$tpa - 0; This is what is being requested

   The InARP response will be completed similarly.

      ar$hrd - 0x000F the value assigned to Frame Relay
      ar$pro - protocol type for which you are searching
                 (i.e.  IP = 0x0800)
      ar$hln - 2,3, or 4 byte addressing length
      ar$pln - byte length of protocol address for which you
                 are searching (for IP = 4)
      ar$op  - 9; InARP response
      ar$sha - Q.922 address of responding station
      ar$spa - protocol address requested
      ar$tha - Q.922 address of requesting station
      ar$tpa - protocol address of requesting station

   Note that the Q.922 addresses specified have the C/R, FECN, BECN, and
   DE bits set to zero.

   Procedures for using InARP over a Frame Relay network are as follows:

   Because DLCIs within most Frame Relay networks have only local
   significance, an end station will not have a specific DLCI assigned
   to itself.  Therefore, such a station does not have an address to put
   into the InARP request or response.  Fortunately, the Frame Relay
   network does provide a method for obtaining the correct DLCIs. The
   solution proposed for the locally addressed Frame Relay network below
   will work equally well for a network where DLCIs have global
   significance.

   The DLCI carried within the Frame Relay header is modified as it
   traverses the network.  When the packet arrives at its destination,
   the DLCI has been set to the value that, from the standpoint of the
   receiving station, corresponds to the sending station.  For example,
   in figure 1 below, if station A were to send a message to station B,
   it would place DLCI 50 in the Frame Relay header.  When station B
   received this message, however, the DLCI would have been modified by
   the network and would appear to B as DLCI 70.

                           ~~~~~~~~~~~~~~~
                          (                )
        +-----+          (                  )             +-----+
        |     |-50------(--------------------)---------70-|     |
        |  A  |        (                      )           |  B  |
        |     |-60-----(---------+            )           |     |
        +-----+         (        |           )            +-----+
                         (       |          )
                          (      |         )  <---Frame Relay
                           ~~~~~~~~~~~~~~~~         network
                                 80
                                 |
                              +-----+
                              |     |
                              |  C  |
                              |     |
                              +-----+

                              Figure 1

      Lines between stations represent data link connections (DLCs).
      The numbers indicate the local DLCI associated with each
      connection.

              DLCI to Q.922 Address Table for Figure 1

              DLCI (decimal)  Q.922 address (hex)
                   50              0x0C21
                   60              0x0CC1
                   70              0x1061
                   80              0x1401

      For authoritative description of the correlation between DLCI and
      Q.922 [6] addresses, the reader should consult that specification.
      A summary of the correlation is included here for convenience. The
      translation between DLCI and Q.922 address is based on a two byte
      address length using the Q.922 encoding format.  The format is:

                8   7   6   5   4   3    2   1
              +------------------------+---+--+
              |  DLCI (high order)     |C/R|EA|
              +--------------+----+----+---+--+
              | DLCI (lower) |FECN|BECN|DE |EA|
              +--------------+----+----+---+--+

      For InARP, the FECN, BECN, C/R and DE bits are assumed to be 0.

   When an InARP message reaches a destination, all hardware addresses
   will be invalid.  The address found in the frame header will,
   however, be correct. Though it does violate the purity of layering,
   Frame Relay may use the address in the header as the sender hardware
   address.  It should also be noted that the target hardware address,
   in both the InARP request and response, will also be invalid.  This
   should not cause problems since InARP does not rely on these fields
   and in fact, an implementation may zero fill or ignore the target
   hardware address field entirely.

   Using figure 1 as an example, station A may use Inverse ARP to
   discover the protocol address of the station associated with its DLCI
   50.  The Inverse ARP request would be as follows:

              InARP Request from A (DLCI 50)
              ar$op   8       (InARP request)
              ar$sha  unknown
              ar$spa  pA
              ar$tha  0x0C21  (DLCI 50)
              ar$tpa  unknown

   When Station B receives this packet, it will modify the source
   hardware address with the Q.922 address from the Frame Relay header.
   This way, the InARP request from A will become:

              ar$op   8       (InARP request)
              ar$sha  0x1061  (DLCI 70)
              ar$spa  pA
              ar$tha  0x0C21  (DLCI 50)
              ar$tpa  unknown.

   Station B will format an Inverse ARP response and send it to station
   A:

              ar$op   9       (InARP response)
              ar$sha  unknown
              ar$spa  pB
              ar$tha  0x1061  (DLCI 70)
              ar$tpa  pA

   The source hardware address is unknown and when the response is
   received, station A will extract the address from the Frame Relay
   header and place it in the source hardware address field.  Therefore,
   the response will become:

              ar$op   9       (InARP response)
              ar$sha  0x0C21  (DLCI 50)
              ar$spa  pB
              ar$tha  0x1061  (DLCI 70)
              ar$tpa  pA

   This means that the Frame Relay interface must only intervene in the
   processing of incoming packets.

   Also, see [3] for a description of similar procedures for using ARP
   [1] and RARP [4] with Frame Relay.

8.  Security Considerations

   This document specifies a functional enhancement to the ARP family of
   protocols, and is subject to the same security constraints that
   affect ARP and similar address resolution protocols.  Because
   authentication is not a part of ARP, there are known security issues
   relating to its use (e.g., host impersonation).  No additional
   security mechanisms have been added to the ARP family of protocols by
   this document.

9.  References

   [1] Plummer, D., "An Ethernet Address Resolution Protocol - or -
       Converting Network Protocol Addresses to 48.bit Ethernet Address
       for Transmission on Ethernet Hardware", STD 37, RFC 826, November
       1982.

   [2] Reynolds, J., and J. Postel, "Assigned Numbers", STD 2, RFC 1700,
       October 1994.  See also: http://www.iana.org/numbers.html

   [3] Bradley, T., Brown, C., and A. Malis, "Multiprotocol Interconnect
       over Frame Relay", RFC 1490, July 1993.

   [4] Finlayson, R., Mann, R., Mogul, J., and M. Theimer, "A Reverse
       Address Resolution Protocol", STD 38, RFC 903, June 1984.

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

   [6] Information technology - Telecommunications and Information
       Exchange between systems - Protocol Identification in the Network
       Layer, ISO/IEC TR 9577: 1992.

10.  Authors' Addresses

   Terry Bradley
   Avici Systems, Inc.
   12 Elizabeth Drive
   Chelmsford, MA  01824

   Phone: (978) 250-3344
   EMail: tbradley@avici.com


   Caralyn Brown
   Consultant

   EMail:  cbrown@juno.com


   Andrew Malis
   Ascend Communications, Inc.
   1 Robbins Road
   Westford, MA  01886

   Phone:  (978) 952-7414
   EMail:  malis@ascend.com

11.  Full Copyright Statement

   Copyright (C) The Internet Society (1998).  All Rights Reserved.

   This document and translations of it may be copied and furnished to
   others, and derivative works that comment on or otherwise explain it
   or assist in its implementation may be prepared, copied, published
   and distributed, in whole or in part, without restriction of any
   kind, provided that the above copyright notice and this paragraph are
   included on all such copies and derivative works.  However, this
   document itself may not be modified in any way, such as by removing
   the copyright notice or references to the Internet Society or other
   Internet organizations, except as needed for the purpose of
   developing Internet standards in which case the procedures for
   copyrights defined in the Internet Standards process must be
   followed, or as required to translate it into languages other than
   English.

   The limited permissions granted above are perpetual and will not be
   revoked by the Internet Society or its successors or assigns.

   This document and the information contained herein is provided on an
   "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
   TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
   BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
   HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

ISO Plain Language

On this page
PROBLEMOn a Frame Relay network a new virtual circuit is announced with its DLCI but no protocol address, so the station that receives the announcement cannot address the other end until someone configures it.
MECHANISMInverse ARP extends ARP with two operation codes. The station sends a request on the virtual circuit, filling in the hardware address it already knows and zeroing the protocol address it is asking for, and the station at the other end answers with its protocol address.
WHAT IT DOESA new circuit becomes usable without configuration and without broadcasting, and the same mechanism works for any network that hands out a destination address without the matching protocol address. The document obsoletes RFC 1293 with only minor changes.

§4Introduction and Scope

As with all Internet mail addresses, the left-hand side, the local part, of an address generated according to this specification is not to be interpreted except by an MTA that handles messages for the domain given in the right-hand side. Since the very first email to GSTN services gateway appeared, implementors have used a number of different methods to specify a GSTN address as an email address. The objectives for these methods have been to enable an email user to access GSTN services from their email interface, and to allow some kind of GSTN over email service transport, possibly reducing the cost of GSTN long distance transmissions, while using the existing email infrastructure.

The document relies heavily on Frame Relay as an example of how Inverse ARP can be useful. It is not, however, intended that InARP be used exclusively with Frame Relay: InARP may be used in any network that provides destination hardware addresses without indicating the corresponding protocol addresses. The opposite problem, allowing a traditional numeric-only GSTN device user to access the email transport service, is not discussed.

The memo replaces RFC 1293. The changes are minor: changes to formalize the language, the addition of a packet diagram and an example in Section 7.2, and a new security section.

The document relies on Frame Relay as its worked example, but the method is not tied to Frame Relay: it works anywhere the network hands out a destination address without the matching protocol address. The other way round, letting a phone or fax device reach the mail service, is not covered.

§5Why Inverse ARP Exists

The motivation for the development of Inverse ARP comes from the desire to make dynamic address resolution within Frame Relay both possible and efficient. Permanent virtual circuits, and eventually switched virtual circuits, are identified by a Data Link Connection Identifier, and these DLCIs define a single virtual connection through the wide area network and may be thought of as the Frame Relay equivalent of a hardware address. Periodically, through the exchange of signalling messages, a network may announce a new virtual circuit with its corresponding DLCI. Unfortunately, protocol addressing is not included in the announcement. The station receiving such an indication learns of the new connection but cannot address the other side, and without new configuration or a mechanism for discovering the protocol address of the other side, the new virtual circuit is unusable.

Other resolution methods were considered and rejected. Reverse ARP seemed a good candidate, but the response to a request is the protocol address of the requesting station, not of the station receiving the request. IP-specific mechanisms were limiting, since they would not allow the resolution of protocols other than IP. For this reason the ARP protocol was expanded.

Inverse ARP allows a Frame Relay station to discover the protocol address of the station associated with the virtual circuit. It is more efficient than sending ARP messages on every virtual circuit for every address the system wants to resolve, and more flexible than relying on static configuration.

On Frame Relay the network tells you a connection exists and gives it a number, but not the address of the machine at the other end. Reverse ARP was no use because it answers with the requester's own address, and an IP-only method would not work for other protocols. So ARP itself was extended.

The problem and the alternatives that were rejected
  • The problemThe network announces a new virtual circuit with its DLCI, but without any protocol address, so the receiving station cannot address the far end.
  • Why not Reverse ARPIts response carries the protocol address of the requesting station, not of the station that received the request.
  • Why not an IP-specific methodIt would not allow the resolution of protocols other than IP.
  • Why not configurationSending an ARP message on every circuit for every address would be less efficient, and static configuration is less flexible.

§6The Packet Format

Inverse ARP is an extension of the existing ARP, so it has the same format as standard ARP. The fixed part of the packet carries the hardware type, the protocol type, the byte length of each hardware address, the byte length of each protocol address and the operation code, followed by the source hardware address, the source protocol address, the target hardware address and the target protocol address.

The possible values for the hardware and protocol types are the same as for ARP and are found in the current Assigned Numbers RFC. The length of the hardware and protocol addresses depends on the environment in which InARP is running: if IP is running over Frame Relay, for example, the hardware address length is either 2, 3 or 4 and the protocol address length is 4. The operation code indicates the type of message, request or response: an InARP request is 8 and an InARP response is 9. These values were chosen so as not to conflict with other ARP extensions.

The message is an ordinary ARP message with two new operation numbers, 8 for a request and 9 for a response, picked so that they would not clash with other uses of ARP.

The fixed part of the InARP packet (RFC 2390, Section 6)
InARP packet
FieldNameSizeValueDescription
HARDWARE-TYPEar$hrd2 bytes0x000F for Frame RelayHardware type, the same values as ARP uses.
PROTOCOL-TYPEar$pro2 bytes0x0800 for IPProtocol type, the same values as ARP uses.
HARDWARE-LENGTHar$hln1 byte2, 3 or 4Byte length of each hardware address. In Frame Relay it is 2, 3 or 4.
PROTOCOL-LENGTHar$pln1 byte4 for IPByte length of each protocol address. For IP it is 4.
OPERATIONar$op2 bytes8 request, 9 responseOperation code. The four address fields follow this one: source and target hardware address, then source and target protocol address.
The two Inverse ARP operation codes
  • 8InARP request — Sent by the requesting station with the known target hardware address and a zeroed target protocol address.
  • 9InARP response — Sent by the receiving station with its own protocol address and the requester's address as the target.

§7The Exchange

Basic InARP operates essentially the same as ARP, with the exception that InARP does not broadcast requests, because the hardware address of the destination station is already known.

When an interface supporting InARP becomes active, it should initiate the protocol and format InARP requests for each active permanent virtual circuit for which InARP is active. To do this, the requesting station formats a request by inserting its source hardware and source protocol addresses and the known target hardware address, zeroes the target protocol address field, encapsulates the packet for the specific network, and sends it directly to the target station.

On receiving an InARP request, a station may put the requester's protocol address and hardware address mapping into its ARP cache, as it would for any ARP request. Unlike other ARP requests, however, the receiving station may assume that any InARP request it receives is destined for it. For every InARP request the receiving station should format a proper response, using the source addresses from the request as the target addresses of the response. If the station is unable or unwilling to reply, it ignores the request.

When the requesting station receives the InARP response, it may complete the ARP table entry and use the provided address information. As with ARP, information learned via InARP may be aged or invalidated under certain circumstances.

The request goes straight down the one circuit it is about, with the hardware address it already knows and the protocol address left empty. The station at the other end can assume the request was meant for it, and answers with its own protocol address.

The Inverse ARP exchange, illustrative, not from the RFC
Requesting stationStation on the other end
  1. InARP requestSent directly on the virtual circuit, not broadcast. It carries the known target hardware address and a zeroed target protocol address.
  2. InARP responseThe target protocol address is the answer. The target hardware address is taken from the request.

§7.1Hosts With Several Addresses

A multi-addressed host is a host that has multiple protocol addresses assigned to a single interface. If such a station receives an InARP request, it must choose one address with which to respond. To make the selection, the receiving station must first look at the protocol address of the requesting station, and then respond with the protocol address corresponding to the network of the requester. If the requesting station is probing for an IP address, the responding multi-addressed station should respond with an IP address that corresponds to the same subnet as the requesting station. If the station does not have an address that is appropriate for the request it should not respond: in the IP example, if the receiving station does not have an IP address assigned to the interface that is part of the requested subnet, it would not respond.

A multi-addressed host should send an InARP request for each of the addresses defined for the given interface. The receiving side may, however, answer some or none of those requests depending on its configuration.

If a machine has several addresses on one interface, it has to pick one to answer with, and the rule is to pick the one that belongs to the same subnet as the machine that asked. If it has no address on that subnet, it stays silent.

§7.2Inverse ARP over Frame Relay

One case where Inverse ARP can be used is on a Frame Relay interface that supports signalling of DLCIs through a data link management interface. An InARP-equipped station connected to such an interface formats an InARP request and addresses it to the new virtual circuit; if the other side supports InARP, it may return a response indicating the protocol address requested. In a Frame Relay environment, InARP packets are encapsulated using the NLPID and SNAP format that indicates the ARP protocol.

Because DLCIs within most Frame Relay networks have only local significance, an end station does not have a specific DLCI assigned to itself, and so has no address to put into the InARP request or response. The Frame Relay network does provide a method for obtaining the correct DLCIs: the DLCI carried in the Frame Relay header is modified as it traverses the network, so that when the packet arrives at its destination, the DLCI has been set to the value that, from the standpoint of the receiving station, corresponds to the sending station. In the example, if station A sends a message to station B, A places DLCI 50 in the header, and by the time B receives it the network has modified it so that it appears to B as DLCI 70. The correlation between DLCI and Q.922 address is given in a table: DLCI 50 corresponds to 0x0C21, 60 to 0x0CC1, 70 to 0x1061 and 80 to 0x1401. The translation uses a two-octet address in the Q.922 encoding, and for InARP the FECN, BECN, C/R and DE bits are assumed to be zero.

When an InARP message reaches a destination, all the hardware addresses in it are invalid, though the address found in the frame header is correct. Frame Relay may use the address in the header as the sender hardware address, even though this violates the purity of layering. The target hardware address in both the request and the response is also invalid, which causes no problem since InARP does not rely on those fields and an implementation may zero fill or ignore the target hardware address field entirely.

Using the example, station A may use Inverse ARP to discover the protocol address of the station associated with its DLCI 50. The request has the InARP request operation code, an unknown source hardware address, the protocol address of the requesting station, the target hardware address 0x0C21 for DLCI 50 and an unknown target protocol address. When station B receives the packet, it modifies the source hardware address with the Q.922 address from the Frame Relay header, so the request shows 0x1061 for DLCI 70 as the source hardware address. Station B then formats a response and sends it to station A, with the protocol address of B as the source protocol address, the Q.922 address of the requesting station as the target hardware address and the protocol address of the requesting station as the target protocol address. The source hardware address is unknown, and when the response is received station A extracts the address from the Frame Relay header and places it in the source hardware address field, which means the Frame Relay interface must only intervene in the processing of incoming packets.

Frame Relay rewrites the DLCI in the header as the packet crosses the network, so each side sees its own numbering. The receiving side puts that number into the reply, and the sender reads it back out of the header, so the Frame Relay interface only has to touch the address field on the packets it receives.

The Frame Relay fields of a request and a response
FieldInARP requestInARP response
ar$hrd0x000F, the value assigned to Frame Relay0x000F, the value assigned to Frame Relay
ar$proThe protocol type being sought, IP = 0x0800The protocol type being sought, IP = 0x0800
ar$hln2, 3 or 42, 3 or 4
ar$pln4 for IP4 for IP
ar$op8, the InARP request9, the InARP response
ar$shaThe Q.922 address of the requesting stationThe Q.922 address of the responding station
ar$spaThe protocol address of the requesting stationThe protocol address requested
ar$thaThe Q.922 address of the newly announced virtual circuitThe Q.922 address of the requesting station
ar$tpa0, this is what is being requestedThe protocol address of the requesting station
The DLCI to Q.922 address table from the worked example
  • DLCI 50Q.922 address 0x0C21, the circuit A uses to reach B.
  • DLCI 60Q.922 address 0x0CC1, the circuit A uses to reach C.
  • DLCI 70Q.922 address 0x1061, the circuit B uses to reach A, and the value B sees for A's DLCI 50.
  • DLCI 80Q.922 address 0x1401, the circuit C uses to reach A.

§8Security Considerations

The document specifies a functional enhancement to the ARP family of protocols, and is subject to the same security constraints that affect ARP and similar address resolution protocols. Because authentication is not a part of ARP, there are known security issues relating to its use, host impersonation among them. No additional security mechanisms have been added to the ARP family of protocols by this document.

Inverse ARP inherits whatever weaknesses ARP already has, because it adds no authentication of its own. A machine on the network can answer as if it were somebody else.

§8References