Struttura e codifica delle PDU (Parte 3)
7.6 Parte dati
La parte dati della PDU è strutturata come un multiplo ordinato di ottetti, identico al multiplo ordinato di ottetti specificato per il parametro NS-Userdata delle primitive N-UNITDATA Request e Indication. Il campo dati è illustrato nella Figura 8:
Octet
___________________________________________________
| | p + 1
: Data :
| | z
|__________________________________________________|
Figure 8: PDU Header -- Data Field
7.7 PDU di dati (DT)
7.7.1 Struttura
La PDU DT ha il seguente formato:
__________________________________________
| 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 Parte fissa
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 Indirizzi
Vedere la Clausola 7.3.
7.7.1.3 Segmentazione
Vedere la Clausola 7.4.
7.7.1.4 Opzioni
Vedere la Clausola 7.5.
7.7.1.5 Dati
Vedere la Clausola 7.7.
7.8 Protocollo di livello di rete inattivo
Octet
____________________________________
|Network Layer Protocol Identifier | 1
|__________________________________|
| | 2
| Data |
| | 2 - n
|__________________________________|
Figure 10: Inactive Network Layer Protocol
7.8.1 Network Layer Protocol Id
Il valore del campo Network Layer Protocol Identifier è binario zero (0000 0000).
7.8.2 Campo dati
La lunghezza del parametro NS-Userdata è vincolata a essere minore o uguale al valore della lunghezza del parametro SN-Userdata meno uno (vedere la Clausola 7.7).
7.9 PDU Error Report (ER)
7.9.1 Struttura
La PDU ER ha il seguente formato:
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 Parte fissa
La parte fissa dell'unità dati di protocollo Error Report è composta nello stesso modo di una nuova PDU di dati (iniziale). Sono forniti riferimenti alle clausole precedenti che descrivono la codifica dei campi che compongono la parte fissa:
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 Indirizzi
Vedere la Clausola 7.3.
Il Destination Address specifica il titolo di network-entity dell'originatore della PDU scartata. Il Source Address specifica il titolo della network-entity del sistema intermedio o terminale che avvia la PDU Error Report.
7.9.1.3 Opzioni
Vedere la Clausola 7.5.
7.9.1.4 Motivo dello scarto (Reason for Discard)
Questo parametro è valido solo per la PDU Error Report.
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
Il primo ottetto del valore del parametro contiene un codice del tipo di errore. Se l'errore nella PDU di dati scartata può essere localizzato in un particolare campo, il numero del primo ottetto di quel campo è memorizzato nel secondo ottetto del campo del parametro del motivo dello scarto. Se l'errore non può essere localizzato in un particolare campo, o se si tratta di un errore di checksum, nel secondo ottetto del campo del parametro del motivo dello scarto è memorizzato il valore zero.
7.9.1.5 Campo dati dell'Error Report
Questo campo contiene l'intera intestazione della PDU di dati scartata e può contenere una parte o la totalità del campo dati della PDU scartata.