Skip to main content

Structure and Encoding of PDUs (Part 3)

7.6 Data Part​

The Data part of the PDU is structured as an ordered multiple of octets, which is identical to the same ordered multiple of octets specified for the NS-Userdata parameter of the N-UNITDATA Request and Indication primitives. The data field is illustrated in Figure 8:

                                                              Octet
___________________________________________________
| | p + 1
: Data :
| | z
|__________________________________________________|

Figure 8: PDU Header -- Data Field

7.7 Data (DT) PDU​

7.7.1 Structure​

The DT PDU has the following format:

          __________________________________________
          |   Network Layer Protocol Identifier    |       1
          |________________________________________|
          |            Length Indicator            |       2
          |________________________________________|
          |      Version/Protocol Id Extension     |       3
          |________________________________________|
          |                Lifetime                |       4
          |________________________________________|
          |  S P  vline  M S vline e/R |  Type     |       5
          |____________________________|___________|
          |             Segment Length             |      6,7
          |________________________________________|
          |                Checksum                |      8,9
          |________________________________________|
          |  Destination Address Length Indicator  |      10
          |________________________________________|
          |                                        |      11
          :          Destination Address           :
          |________________________________________|     m - 1
          |    Source Address Length Indicator     |       m
          |________________________________________|
          |                                        |     m + 1
          :             Source Address             :
          |                                        |     n - 1
          |________________________________________|
          |          Data Unit Identifier          |    n, n + 1
          |________________________________________|
          |             Segment Offset             |  n + 2, n + 3
          |________________________________________|
          |              Total Length              |  n + 4, n + 5
          |________________________________________|
          |                                        |    n + 6
          |                 Options                |
          |                                        |      p
          |________________________________________|
          |                                        |    p + 1
          |                  Data                  |
          |                                        |      z
          |________________________________________|

                      Figure 9: DT PDU

7.7.1.1 Fixed Part​

1)   Network Layer Protocol Identifier      See Clause 7.2.2
2) Length Indicator See Clause 7.2.3
3) Version/Protocol Id Extension See Clause 7.2.4
4) Lifetime See Clause 7.2.5
5) SP, MS, E/R See Clause 7.2.6
6) Type Code See Clause 7.2.7
7) Segment Length See Clause 7.2.8
8) Checksum See Clause 7.2.9

7.7.1.2 Addresses​

See Clause 7.3.

7.7.1.3 Segmentation​

See Clause 7.4.

7.7.1.4 Options​

See Clause 7.5.

7.7.1.5 Data​

See Clause 7.7.

7.8 Inactive Network Layer Protocol​

                                                   Octet
____________________________________
|Network Layer Protocol Identifier | 1
|__________________________________|
| | 2
| Data |
| | 2 - n
|__________________________________|

Figure 10: Inactive Network Layer Protocol

7.8.1 Network Layer Protocol Id​

The value of the Network Layer Protocol Identifier field is binary zero (0000 0000).

7.8.2 Data Field​

The length of the NS-Userdata parameter is constrained to be less than or equal to the value of the length of the SN-Userdata parameter minus one (see Clause 7.7).

7.9 Error Report PDU (ER)​

7.9.1 Structure​

The ER PDU has the following format:

                                                          Octet
           ______________________________________________
           |     Network Layer Protocol Identifier      |   1
           |____________________________________________|
           |              Length Indicator              |   2
           |____________________________________________|
           |        Version/Protocol Id Extension       |   3
           |____________________________________________|
           |                   Lifetime                 |   4
           |____________________________________________|
           |   SP= 0  vline MS= 0 vline Reserved | Type |   5
           |_____________________________________|______|
           |               Segment Length               |  6,7
           |____________________________________________|
           |                 Checksum                   |  8,9
           |____________________________________________|
           |    Destination Address Length Indicator    |  10
           |____________________________________________|
           |                                            |  11
           :            Destination Address             :
           |                                            | m - 1
           |____________________________________________|
           |     Source Address Length Indicator        |   m
           |____________________________________________|
           |                                            | m + 1
           :               Source Address               :
           |                                            | n - 1
           |____________________________________________|
           |                                            |   n
           |                   Options                  |
           |                                            | p - 1
           |____________________________________________|
           |                                            |   p
           |             Reason for Discard             |
           |                                            | q - 1
           |____________________________________________|
           |                                            |   q
           |          Error Report Data Field           |
           |                                            |   z
           |____________________________________________|

                    Figure 11: Error Report PDU

7.9.1.1 Fixed Part​

The fixed part of the Error Report Protocol Data Unit is composed in the same way as a new (Initial) Data PDU. References are provided to previous Clauses describing the encoding of the fields comprising the fixed part:

      1)   Network Layer Protocol Identifier      See Clause 7.2.2
2) Length Indicator See Clause 7.2.3
3) Version/Protocol Id Extension See Clause 7.2.4
4) Lifetime See Clause 7.2.5
5) SP, MS, E/R Always set to zero,
(See Clause 6.10)
6) Type Code See Clause 7.2.7
7) Segment Length See Clause 7.2.8
8) Checksum See Clause 7.2.9

7.9.1.2 Addresses​

See Clause 7.3.

The Destination Address specifies the network-entity title of the originator of the discarded PDU. The Source Address specifies the title of the intermediate-system or end-system network-entity initiating the Error Report PDU.

7.9.1.3 Options​

See Clause 7.5.

7.9.1.4 Reason for Discard​

This parameter is valid only for the Error Report PDU.

Parameter Code:      1100 0001
Parameter Length:    two octets
Parameter Value:     type of error encoded in binary.  Values are listed
                     in Table 7:
_______________________________________________________________________________
| Parameter Value  |   Class of  |  Meaning                                    |
| Octet 1   Octet 2|    Error    |                                             |
|__________________|_____________|_____________________________________________|
| 0000      0000   |             | Reason not specified                        |
|           0001   |             | Protocol Procedure Error                    |
|           0010   |             | Incorrect Checksum                          |
|           0011   |  General    | PDU Discarded due to Congestion             |
|           0100   |             | Header Syntax Error (cannot be parsed)      |
|           0101   |             | Segmentation needed but not permitted       |
|           0110   |             | Incomplete PDU Received                     |
|           0111   |             | Duplicate Option                            |
|__________________|_____________|_____________________________________________|
| 1000      0000   |  Address    | Destination Address Unreachable             |
|           0001   |             | Destination Address Unknown                 |
|__________________|_____________|_____________________________________________|
| 1001      0000   |             | Unspecified Source Routing Error            |
|           0001   |   Source    | Syntax Error in Source Routing Field        |
|           0010   |  Routing    | Unknown Address in Source Routing Field     |
|           0011   |             | Path not Acceptable                         |
|__________________|_____________|_____________________________________________|
| 1010      0000   |  Lifetime   | Lifetime Expired while Data Unit in Transit |
|           0001   |             | Lifetime Expired during Reassembly          |
|__________________|_____________|_____________________________________________|
| 1011      0000   |             | Unsupported Option not Specified            |
|           0001   |     PDU     | Unsupported Protocol Version                |
|           0010   |  Discarded  | Unsupported Security Option                 |
|           0011   |             | Unsupported Source Routing Option           |
|           0100   |             | Unsupported Recording of Route Option       |
|__________________|_____________|_____________________________________________|
| 1100      0000   | Reassembly  | Reassembly interference                     |
|__________________|_____________|_____________________________________________|

                   Table 7: Reasons for Discard

The first octet of the parameter value contains an error type code. If the error in the discarded Data PDU can be localized to a particular field, the number of the first octet of that field is stored in the second octet of the reason for discard parameter field. If the error cannot be localized to a particular field, or if the error is a checksum error, then the value zero is stored in the second octet of the reason for discard parameter field.

7.9.1.5 Error Report Data Field​

This field contains the entire header of the discarded Data PDU, and may contain some or all of the data field of the discarded PDU.