Skip to main content

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.

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.

The different classes of Internet addresses [3] are illustrated below:

Class A:

  • The highest-order bit is set to 0.
  • 7-bits define the network number.
  • 24-bits define the local address.
  • This allows up to 126 class A networks.
  • Networks 0 and 127 are reserved.
      |       n       |       h       |       l       |       i       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|0| NETWORK | Local Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
7 Bits 24 Bits (REST Field)

Figure 1

Class B:

  • The two highest-order bits are set to 1-0.
  • 14-bits define the network number.
  • 16-bits define the local address.
  • This allows up to 16,384 class B networks.
      |        n      |       n       |       h       |       i       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|1 0| NETWORK | Local Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
14 Bits 16 Bits (REST Field)

Figure 2

Class C:

  • The three highest-order bits are set to 1-1-0.
  • 21-bits define the network number.
  • 8-bits define the local address.
  • This allows up to 2,097,152 class C networks
      |       n       |       n       |       n       |   h   |   i   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|1 1 0| NETWORK | Local Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
21 Bits 8 Bits (REST Field)

Figure 3

The fourth type of address, class D, is used as a multicast address. The four highest-order bits are set to 1-1-1-0. Note: No addresses are allowed with the four highest-order bits set to 1-1-1-1. These addresses, called "class E", are reserved.

The "MIL-STD: X.25" states "All DDN addresses are either twelve or fourteen BCD (binary-coded decimal) digits in length.". The last two digits are referred to as the Sub-Address and are not used on the DDN. The Sub-Address is carried across the network without modification. Its presence is optional. Therefore, a DTE may generate EITHER a twelve or fourteen BCD X.121 address, but must accept both twelve and fourteen BCD X.121 addresses.