Passa al contenuto principale

4. Esempi

Di seguito sono riportati esempi di mappatura degli indirizzi IP su X.121 per indirizzi IP di classe A, classe B e classe C.

4.1. Classe A​

La mappatura dell'indirizzo X.121 per le reti di classe A:

          for h < 64

example: 26.29.0.122 format: n.h.l.i

ZZZZ F III HH ZZ (SS)
X.121 address = 0000 0 122 29 00 00

for h > or = 64

example: 26.80.0.122 format: n.h.l.i

ZZZZ F RRRRR ZZ (SS)
X.121 address = 0000 1 20602 00 00

where R = H * 256 + I

4.2. Classe B​

La mappatura dell'indirizzo X.121 per le reti di classe B:

          for h < 64

example: 137.80.1.5 format: n.n.h.i

ZZZZ F III HH ZZ (SS)
X.121 address = 0000 0 005 01 00 00

for h > or = 64

example: 137.80.75.2 format: n.n.h.i

ZZZZ 1 RRRRR ZZ (SS)
X.121 address = 0000 1 19202 00 00

where R = H * 256 + I

4.3. Classe C​

La mappatura dell'indirizzo X.121 per le reti di classe C:

          for h < 64

example: 192.33.50.19 format: n.n.n.hi

H I
n.n.n.0001 0011
1 3

Subnet 1
Subhost 3

ZZZZ F III HH ZZ (SS)
X.121 address = 0000 0 003 01 00 00

NOTA: la mappatura dell'indirizzo X.121 per le reti di classe C con h > 64 non è applicabile, poiché il campo «h» non può mai superare 15.