ARPANET および MILNET X.25 アドレスマッピング
すべての MILNET ホストには、Defense Data Network(DDN)によってアドレスが割り当てられる。MILNET ホストのアドレスは、Network Information Center(NIC)から、「host table format」と呼ばれる ASCII テキスト文字列として取得できる。本節では、NIC ホストテーブル形式のアドレスから MILNET X.25 アドレスを導出する手順を説明する。
NIC ホストテーブルアドレスは、32 ビット Internet アドレスの 4 つのオクテットに対応する、ピリオドで区切られた 4 つの十進数の ASCII テキスト文字列表現からなる。本節では、これら 4 つの十進数を「n」「h」「l」「i」と呼ぶ。したがって、ホストテーブルアドレスは「n.h.l.i」と表せる。これら 4 つの数はそれぞれ 1 桁、2 桁、または 3 桁の十進数であり、その値が 255 を超えることはない。例えば、ホストテーブルにおけるアドレス「10.2.0.124」では n=10、h=2、l=0、i=124 である。ホストテーブルアドレスを MILNET X.25 アドレスに変換するには、次のようにする。
- 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 に対応する。
- 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」フィールドは使用されない。