MILNET X.25 アドレス マッピング
すべての MILNET ホストには、Defense Data Network (DDN) によってアドレスが割り当てられている。MILNET ホストのアドレスは、Network Information Center (NIC) から、「ホストテーブル形式」と呼ばれる ASCII テキスト文字列として取得できる。この節では、NIC ホストテーブル形式のアドレスから MILNET X.25 アドレスを導出する手順を記述する。
NIC ホストテーブルアドレスは、32 ビットのインターネットアドレスの 4 つのオクテットに対応する、ピリオドで区切られた 4 つの 10 進数の ASCII テキスト文字列表現からなる。この 4 つの 10 進数は、この節では "n"、"h"、"l"、"i" と呼ばれる。したがって、ホストテーブルアドレスは "n.h.l.i" と表すことができる。これらの 4 つの数値はいずれも 1 桁、2 桁、または 3 桁の 10 進数字であり、決して 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" フィールドは使用されない。