MILNET X.25 地址映射
所有 MILNET 主机都由国防数据网 (DDN) 分配地址. MILNET 主机的地址可从网络信息中心 (NIC) 获取, 以称为 "主机表格式" 的 ASCII 文本字符串表示. 本节描述了由 NIC 主机表格式地址导出 MILNET X.25 地址的过程.
NIC 主机表地址由四个十进制数字的 ASCII 文本字符串表示, 数字之间以点分隔, 对应于 32 位互联网地址的四个八位组. 本节中这四个十进制数字称为 "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. If h < 64, the host table address corresponds to the X.25
physical address:
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
In the example given above, the host table address 10.2.0.124
corresponds to the X.25 physical address 000001240200.
- 如果 h > 64 或 h = 64, 主机表地址对应于 X.25 逻辑地址
ZZZZ F RRRRRZZ (SS)
其中:
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
Thus, the host table address 10.83.0.207 corresponds to the X.25
logical address 000012145500.
在这两种情况下, 主机表地址的 "n" 与 "l" 字段均不使用.