Skip to main content

Network Address Concrete Syntax

8.3 Network Address Concrete Syntax​

As describe in Clause 8.1, the semantics of the NSAP address consists of three fields in the following order:

  • a) the AFI, with an abstract syntax of two decimal digits;
  • b) the IDI, with an abstract syntax of a variable number of decimal digits; and
  • c) the DSP, with an abstract syntax of a variable number of one and only one of the following types: binary octets, decimal digits, characters, or national characters.

Table 8-3 gives the maximum DSP length:

                   Table 8-3:  Maximum DSP Length

___________________
| DSP Syntax |
|___________________|
| | |
__________| Decimal | Binary |
|IDI format| | |
|__________|_________|_________|
| X.121 24 9 |
|______________________________|
| ISO DCC 35 14 |
|______________________________|
| F.69 30 12 |
|______________________________|
| E.163 26 10 |
|______________________________|
| E.164 23 9 |_____________________
|______________________________|Character | National |
|ISO 6523-ICD 34 13 |(ISO 646) |Character |
|______________________________|__________|__________|
| Local 38 15 19 7 |
|____________________________________________________|

This Addendum does not specify the way in which the semantics of an NSAP address are encoded in Network Layer protocols by a concrete syntax in NPAI (see Note following this clause). These encodings are specified in Network Layer protocol standards.

Note: Encoding implies more than a concrete syntax, such as the order of bit transmission, representation as tones or other signals, etc.

Nevertheless, this Addendum identifies two alternative concrete syntaxes (see clauses 8.3.1 and 8.3.2) of the Network Address. Reference to these may be made by Network Layer protocol specification standards. It is possible that the concrete syntax used to encode the Network Address as NPAI in a Network Layer protocol may be chosen to be identical to one of these concrete syntaxes. It is not required that this be the case, however (see clause 9).

The entire NSAP address taken as a whole may be represented explicitly as a string of either decimal digits (decimal concrete syntax) or binary octets (binary concrete syntax) as defined below. Network Layer protocol specifications making reference to this Addendum shall specify the way in which either the decimal concrete syntax or the binary concrete syntax of the NSAP address (or both) is encoded as NPAI (see clause 6.1.3).

8.3.1 Binary Concrete Syntax​

The binary concrete syntax is generated by:

  • a) using two semi-octets to represent the two digits of the AFI, yielding a value for each semi-octet in the rage 0000-1001;
  • b) padding the IDI with leading zero digits if necessary to obtain the maximum IDI length (specified for each IDI format in clause 8.2.1.2), then using a semi-octet to represent the value of each decimal digit (including leading padding digits, if preset), yielding a value in the range 0000-1001; and, if the DSP syntax is not decimal digits, using the semi-octet value 1111 as a pad after the final semi-octet (if necessary) to obtain an integral number of octets;
  • c) representing a decimal syntax DSP using the technique described in (b);
  • d) representing a binary syntax DSP directly as binary octets;
  • e) when the IDI format is "Local", representing an ISO 646 character syntax DSP by converting each character to a number in the range 32-127 using the ISO 646 encoding, with zero parity and the parity bit in the most significant position, reducing the value by 32, giving a number in the range 0-95, encoding this result as a pair of decimal digits; and applying the technique described in (b); and
  • f) when the IDI format is "Local", representing a National Character syntax DSP by converting each national character to either one or two octets according to the rules specified by the authority responsible for allocating NSAP addresses including national character DSP syntaxes.

8.3.2 Decimal Concrete Syntax​

The decimal concrete syntax is generated by:

  • a) representing the two digits of the AFI directly as two decimal digits;

  • b) padding the IDI with leading zero digits if necessary to obtain the maximum IDI length (specified for each IDI format in Clause 8.2.1.2), representing the result directly as decimal digits;

  • c) representing a decimal syntax DSP directly as decimal digits;

  • d) representing a binary syntax DSP as follows:

    Taking the octets in pairs, convert each octet of the pair to a number in the range 0-255; this generates six decimal digits, abcdef, of which digits a and d may take on only the values o, 1, or 2. The pair of octets is represented by the sequence of five digits gbcef, where the value of digit g is given in Table 8-4:

                      Table 8-4:  Values of g.

_____________________________
| \ a | | | |
| d \ | 0 | 1 | 2 |
|____\___|______|______|______|
| 0 0 1 2 |
|_____________________________|
| 1 3 4 5 |
|_____________________________|
| 2 6 7 8 |
|_____________________________|

If the original binary field contained an odd number of octets, the final octet is converted to a number in the range 0-255 and represented as three decimal digits (000-255);

  • e) when the IDI format is "Local", representing an ISO 646 character syntax DSP using the technique described in Clause 8.3.1 (e); and
  • f) when the IDI format is "Local", representing a National Character syntax DSP using the technique described in Clause 8.3.1 (f).

8.4 Maximum Network Address Length​

The maximum length of the NSAP address for each of the combinations of IDI abstract syntax is given in Table 8-5 both the decimal concrete syntax and the binary concrete syntax.

              Table 8-5:  Maximum NSAP Address Lengths

________________________________________________________________
| | DSP Abstract | Binary DSP | Decimal DSP |
| IDI Format | syntax | concrete syntax concrete syntax|
|_____________|_______________|_________________|______________|
| | Decimal | 20 octets | 40 digits |
| X.121 | Binary | 17 octets | 39 digits |
| | | | |
| | Decimal | 20 octets | 40 digits |
| ISO DCC | Binary | 17 octets | 40 digits |
| | | | |
| | Decimal | 20 octets | 40 digits |
| F.69 | Binary | 17 octets | 40 digits |
| | | | |
| | Decimal | 20 octets | 40 digits |
| E.163 | Binary | 17 octets | 39 digits |
| | | | |
| | Decimal | 20 octets | 40 digits |
| E.164 | Binary | 18 octets | 40 digits |
| | | | |
| | Decimal | 20 octets | 40 digits |
| ISO 6523-ICD| Binary | 16 octets | 39 digits |
| | | | |
| | Decimal | 20 octets | 40 digits |
| LOCAL | Binary | 16 octets | 40 digits |
| | Character | 20 octets | 40 digits |
| |National Char. | 15 octets | 37 digits |
|_____________|_______________|_________________|______________|

Note: These values assume a National Character representation of one character as two binary octets (see clause 8.2.3).

From this table it is clear that:

  • a) the maximum length of an NSAP address in its binary concrete syntax is 20 octets; and
  • b) the maximum length of an NSAP address in its decimal concrete syntax is 40 digits.

A Network Layer protocol which is capable of conveying a string of variable length with a maximum length of either 20 binary octets or 40 decimal digits is capable of encoding the full semantic content of any Network Address.