Network Working Group L. Morales
Request for Comments: 1236 P. Hasse
USAISEC
June 1991
IP to X.121 Address Mapping for DDN
1. Overview
The Defense Communication Agency (DCA) has stated that "DDN specifies a standard for mapping Class A addresses to X.121 addresses." Additionally DCA has stated that Class B and C IP to X.121 address mapping "standards are the responsibility of the administration of the Class B or C network in question". Therefore, there is NO defined single standard way of converting Class B and Class C IP addresses to X.121 addresses.
2. Background
All Internet hosts are assigned a four octet (32 bit) address composed of a network field and a local address field also known as the REST field [2] (see Figure 1 thru 3). Two basic forms of addresses are provided: (1) Physical addresses, correspond to the node number and DCE port number of the node to which the DTE is connected. (2) Logical addresses, are mapped transparently by DCE software into a corresponding physical network address. To provide flexibility, Internet addresses are divided into 3 primary classes: Class A, Class B, and Class C. These classes allow for a large number of small and medium sized networks. The network addresses used within the Internet in Class A, B, and C networks are divided between Research, Defense, Government, (Non-Defense) and Commercial uses.
Morales & Hasse [Page 1]
RFC 1236 IP to X.121 Address Mapping for DDN June 1991
As described in the MIL-STD: X25, an IP address consists of the ASCII text string representation of four decimal numbers separated by periods, corresponding to the four octets of a thirty-two bit Internet address. The four decimal numbers are referred to in this memo as network (n), host (h), logical address (l), and Interface Message Processor (IMP) or Packet Switch Node (PSN) (i). Thus, an Internet address maybe represented as "n.h.l.i" (Class A), "n.n.h.i" (Class B), or "n.n.n.hi" (Class C), depending on the Internet address class. Each of these four numbers will have either one, two, or three decimal digits and will never have a value greater than 255. For example, in the Class A IP address "26.9.0.122", n=26 h=9, l=0, and i=122.
| n | h | l | i |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|0| NETWORK | Local Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
7 Bits 24 Bits (REST Field)
Figure 1
Morales & Hasse [Page 2]
RFC 1236 IP to X.121 Address Mapping for DDN June 1991
| n | n | h | i |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|1 0| NETWORK | Local Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
14 Bits 16 Bits (REST Field)
Figure 2
| n | n | n | h | i |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|1 1 0| NETWORK | Local Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
21 Bits 8 Bits (REST Field)
Figure 3
3. Standard IP to X.121 Address Mapping
This section describes the algorithm that should be used to convert IP addresses to X.121 addresses [1]. You will note that "h" is always listed as greater than or less than the number 64. This number is used to differentiate between PSN physical and logical host port addresses. Note that at the time of this writing, the DDN does not make use of the PSN's logical addressing feature, which allows hosts to be addressed independently of their physical point of attachment to the network.
Morales & Hasse [Page 3]
RFC 1236 IP to X.121 Address Mapping for DDN June 1991 3.1 Derivation of DDN X.25 AddressesTo convert a Class A IP address to a DDN X.25 address:
Morales & Hasse [Page 4]
RFC 1236 IP to X.121 Address Mapping for DDN June 1991
ZZ = 00
4. Examples
The following are examples of IP to X.121 address mappings for Class A, Class B, and Class C IP addresses.
4.1 Class A
The mapping of X.121 address for Class A networks:
4.2 Class B
The mapping of X.121 address for Class B networks:
Morales & Hasse [Page 5]
RFC 1236 IP to X.121 Address Mapping for DDN June 1991
for h < 64
4.3 Class C
The mapping of X.121 address for Class C networks:
5. References
[1] MIL-STD: X.25 "Defense Data Network X.25 Host Interface
Morales & Hasse [Page 6]
RFC 1236 IP to X.121 Address Mapping for DDN June 1991
[3] Kirkpatrick, S., M. Stahl, and M. Recker, "Internet Numbers", RFC
6. Security Considerations
Security issues are not discussed in this memo.
7. Authors' Addresses
Luis F. Morales, Jr. USAISEC ASQB-SEP-C Ft. Huachuca, AZ 85613-5300