跳到主要内容

ARPANET 与 MILNET X.25 地址映射

所有 MILNET 主机都由国防数据网(DDN)分配地址。MILNET 主机的地址可以从网络信息中心(NIC)获得,表示为一个被称为“host table format”的 ASCII 文本字符串。本节描述如何从 NIC 主机表格式中的地址推导出 MILNET X.25 地址。

NIC 主机表地址由四个十进制数的 ASCII 文本字符串表示组成,以句点分隔,对应于 32 位 Internet 地址的四个八位组。这四个十进制数在本节中分别称为“n”、“h”、“l”和“i”。因此,主机表地址可以表示为“n.h.l.i”。这四个数各自有一位、两位或三位十进制数字,其值绝不会大于 255。例如,在主机表中,地址“10.2.0.124”中 n=10、h=2、l=0、i=124。要把主机表地址转换为 MILNET X.25 地址:

  1. 如果 h < 64,则主机表地址对应于 X.25 物理地址:
                             ZZZZ F IIIHHZZ (SS)

where:

ZZZZ = 0000 as required

F = 0 because the address is a physical address;

III is a three decimal digit respresentation of
"i", right-adjusted and padded with leading
zeros if required;

HH is a two decimal digit representation of "h",
right-adjusted and padded with leading zeros
if required;

ZZ = 00 and

(SS) is optional

在上面的例子中,主机表地址 10.2.0.124 对应于 X.25 物理地址 000001240200。

  1. 如果 h > 64 或 h = 64,则主机表地址对应于 X.25 逻辑地址
                            ZZZZ F RRRRRZZ (SS)

where:

ZZZZ = 0000 as required

F = 1 because the address is a logical address;

RRRRR is a five decimal digit representation of
the result "r" of the calculation

r = h * 256 + i

(Note that the decimal representation of
"r" will always require five digits);

ZZ = 00 and

(SS) is optional

因此,主机表地址 10.83.0.207 对应于 X.25 逻辑地址 000012145500。

在两种情况下,主机表地址中的“n”和“l”字段都不使用。