The procedures specified in the present document apply to those messages which pass the checks described in this subclause.
This subclause also specifies procedures for the handling of unknown, unforeseen, and erroneous protocol data by the receiving entity. These procedures are called "error handling procedures", but in addition to providing recovery mechanisms for error situations they define a compatibility mechanism for future extensions of the protocols.
Subclauses 7.1 to 7.8 shall be applied in order of precedence.
Detailed error handling procedures in the network are implementation dependent and may vary from PLMN to PLMN. However, when extensions of this protocol are developed, networks are assumed to have the error handling which is indicated in this subclause as mandatory ("shall") and that is indicated as strongly recommended ("should").
Also, the error handling of the network is only considered as mandatory or strongly recommended when certain thresholds for errors are not reached during a dedicated connection.
For definition of semantical and syntactical errors see subclause 11.4.2 of TS 24.007.
The maximum size of a NAS message for NR connected to 5GCN is specified in TS 38.323.
The maximum size of a NAS message for E-UTRA connected to 5GCN is specified TS 36.323.
The maximum size of a NAS message for non-3GPP access connected to 5GCN is specified in TS 24.502
The following network procedures shall apply for handling an unknown, erroneous, or unforeseen PTI received in a 5GSM message:
In case the network receives a PDU SESSION MODIFICATION COMPLETE, a PDU SESSION RELEASE COMPLETE message or a PDU SESSION MODIFICATION COMMAND REJECT message in which the PTI value is an assigned or unassigned value that does not match any PTI in use, the network shall respond with a 5GSM STATUS message including 5GSM cause #47 "PTI mismatch".
In case the network receives a PDU SESSION AUTHENTICATION COMPLETE message or a SERVICE-LEVEL AUTHENTICATION COMPLETE message in which the PTI value is an assigned value, the network shall respond with a 5GSM STATUS message including 5GSM cause #81 "invalid PTI value".
In case the network receives a PDU SESSION ESTABLISHMENT REQUEST message, a PDU SESSION MODIFICATION REQUEST message or a PDU SESSION RELEASE REQUEST message in which the PTI value is an unassigned value, the network shall respond with a 5GSM STATUS message including 5GSM cause #81 "invalid PTI value".
In case the network receives a 5GSM message in which the PTI value is a reserved value, the network shall ignore the message.
The following UE procedures shall apply for handling an unknown, erroneous, or unforeseen PTI received in a 5GSM message:
In case the UE receives a PDU SESSION MODIFICATION COMMAND message or a PDU SESSION MODIFICATION REJECT message in which the PTI value is an assigned value that does not match any PTI in use:
if the UE detects that this PDU SESSION MODIFICATION COMMAND message is a network retransmission of an already accepted request (see subclause 6.3.2.3), the UE shall respond with a PDU SESSION MODIFICATION COMPLETE message;
if the UE detects that this PDU SESSION MODIFICATION COMMAND message is a network retransmission of an already rejected request (see subclause 6.3.2.4), the UE shall respond with a PDU SESSION MODIFICATION COMAND REJECT message; or
otherwise, the UE shall respond with a 5GSM STATUS message including 5GSM cause #47 "PTI mismatch".
In case the UE receives a PDU SESSION RELEASE COMMAND message or a PDU SESSION RELEASE REJECT message in which the PTI value is an assigned value that does not match any PTI in use:
if the UE detects that this PDU SESSION RELEASE COMMAND message is a network retransmission of an already accepted request (see subclause 6.3.3.3), the UE shall respond with a PDU SESSION RELEASE COMPLETE message; or
otherwise, the UE shall respond with a 5GSM STATUS message including 5GSM cause #47 "PTI mismatch".
In case the UE receives a PDU SESSION ESTABLISHMENT ACCEPT message or a PDU SESSION ESTABLISHMENT REJECT message in which the PTI value is an assigned value that does not match any PTI in use:
the UE shall respond with a 5GSM STATUS message including 5GSM cause #47 "PTI mismatch".
In case the UE receives a PDU SESSION AUTHENTICATION COMMAND message, a PDU SESSION AUTHENTICATION RESULT message or a SERVICE-LEVEL AUTHENTICATION COMMAND message in which the PTI value is an assigned value, the UE shall respond with a 5GSM STATUS message including 5GSM cause #81 "invalid PTI value".
In case the UE receives a PDU SESSION ESTABLISHMENT ACCEPT message, a PDU SESSION ESTABLISHMENT REJECT message, a PDU SESSION MODIFICATION REJECT message or a PDU SESSION RELEASE REJECT message in which the PTI value is an unassigned value, the UE shall ignore the message.
In case the UE receives a 5GSM message in which the PTI value is a reserved value, the UE shall ignore the message.
The following network procedures shall apply for handling an unknown, erroneous, or unforeseen PDU session identity received in the header of a 5GSM message (specified as the header of a standard L3 message, see TS 24.007):
If the network receives a PDU SESSION MODIFICATION REQUEST message which includes an unassigned or reserved PDU session identity value, the network shall respond with a PDU SESSION MODIFICATION REJECT message including 5GSM cause #43 "invalid PDU session identity".
If the network receives PDU SESSION RELEASE REQUEST message which includes an unassigned or reserved PDU session identity value, the network shall respond with a PDU SESSION RELEASE REJECT message including 5GSM cause #43 "invalid PDU session identity".
Upon receipt of an UL NAS TRANSPORT message, the network takes the following actions:
If the Request type IE is set to "initial request" or "initial emergency request" and the message includes a reserved PDU session identity value, the network shall respond with a DL NAS TRANSPORT message with 5GMM cause #90 "payload was not forwarded";
otherwise, if the message includes an unassigned or reserved PDU session identity value, the network shall respond with a DL NAS TRANSPORT message with 5GMM cause #90 "payload was not forwarded".
If the network receives a 5GSM message other than those listed in items a) through c) above in which the message includes a reserved PDU session identity value or an assigned value that does not match an existing PDU session, the network shall ignore the message.
The following UE procedures shall apply for handling an unknown, erroneous, or unforeseen PDU session identity received in the header of a 5GSM message:
If the UE receives a 5GSM message which includes an unassigned or reserved PDU session identity value, the UE shall ignore the message.
If the UE receives a 5GSM message which includes a PDU session identity belonging to any PDU session in state PDU SESSION INACTIVE in the UE, the UE shall respond with a 5GSM STATUS message including 5GSM cause #43 "invalid PDU session identity".
If UE receives a 5GMM message or 5GSM message with message type not defined for the extended protocol discriminator (EPD) or not implemented by the receiver, it shall return a status message (5GMM STATUS or 5GSM STATUS depending on the EPD) with cause #97 "message type non-existent or not implemented".
If the network receives a 5GMM or 5GSM message with message type not defined for the EPD or not implemented by the receiver in a protocol state where reception of an unsolicited message with the given EPD from the UE is not foreseen in the protocol, the network actions are implementation dependent. Otherwise, if the network receives a message with message type not defined for the EPD or not implemented by the receiver, it shall ignore the message except that it should return a status message (5GMM STATUS or 5GSM STATUS depending on the EPD) with cause #97 "message type non-existent or not implemented".
If the UE receives a message not compatible with the protocol state, the UE shall return a status message (5GMM STATUS or 5GSM STATUS depending on the EPD) with cause #98 "message type not compatible with protocol state".
If the network receives a message not compatible with the protocol state, the network actions are implementation dependent.
an IE with an IEI unknown in the message, but encoded as "comprehension required" (see TS 24.007); or
an out of sequence IE encoded as "comprehension required" (see TS 24.007) is received,
the UE shall proceed as follows:
If the message is not one of the messages listed in the UE procedures in subclause 7.5.3, item a), b) or c), the UE shall return a status message (5GMM STATUS or 5GSM STATUS depending on the EPD) with cause #96 "invalid mandatory information";
the network shall proceed as follows:
If the message is not one of the messages listed in the network procedures in subclause 7.5.3, item a), b) or c), the network shall either:
try to treat the message (the exact further actions are implementation dependent); or
ignore the message except that it should return a status message (5GMM STATUS or 5GSM STATUS depending on the EPD) with cause #96 "invalid mandatory information".
No exceptional cases are described for 5GS mobility management messages.
No semantical or syntactical diagnosis other than presence and length shall be performed on the EPS NAS message container information element in the REGISTRATION REQUEST message.
The following UE procedures shall apply for handling an error encountered with a mandatory information element in a 5GSM message:
If the message is a PDU SESSION ESTABLISHMENT ACCEPT, the UE shall initiate PDU session release procedure by sending a PDU SESSION RELEASE REQUEST message with 5GSM cause #96 "invalid mandatory information".
Void.
If the message is a PDU SESSION RELEASE COMMAND, a PDU SESSION RELEASE COMPLETE message with 5GSM cause #96 "invalid mandatory information" shall be returned.
The following network procedures shall apply for handling an error encountered with a mandatory information element in a 5GSM message:
If the message is a PDU SESSION ESTABLISHMENT REQUEST, a PDU SESSION ESTABLISHMENT REJECT message with 5GSM cause #96 "invalid mandatory information" shall be returned.
If the message is a PDU SESSION MODIFICATION REQUEST, a PDU SESSION MODIFICATION REJECT message with 5GSM cause #96 "invalid mandatory information" shall be returned.
If the message is a PDU SESSION RELEASE REQUEST, a PDU SESSION RELEASE REJECT message with 5GSM cause #96 "invalid mandatory information" shall be returned.
The UE shall ignore all IEs with an IEI unknown in a message which are not encoded as "comprehension required" (see TS 24.007).
The network shall take the same approach.
The UE shall ignore all out of sequence IEs in a message which are not encoded as "comprehension required" (see TS 24.007).
The network should take the same approach.
If an information element with format T, TV, TLV, or TLV-E is repeated in a message in which repetition of the information element is not specified in clause 8 and clause 9 of the present document, the UE shall handle only the contents of the information element appearing first and shall ignore all subsequent repetitions of the information element. When repetition of information elements is specified, the UE shall handle only the contents of specified repeated information elements. If the limit on repetition of information elements is exceeded, the UE shall handle the contents of information elements appearing first up to the limit of repetitions and shall ignore all subsequent repetitions of the information element.
The network should follow the same procedures.
The UE shall ignore all IEs with an IEI unknown in a Type 6 IE container information element which are not encoded as "comprehension required" (see TS 24.007).
The network shall take the same approach.
The UE shall ignore all out of sequence IEs in a Type 6 IE container information element which are not encoded as "comprehension required" (see TS 24.007).
The network should take the same approach.
If an information element with format TLV-E is repeated in a Type 6 IE container information element in which repetition of the information element is not specified in clause 8 and clause 9 of the present document, the UE shall handle only the contents of the information element appearing first and shall ignore all subsequent repetitions of the information element. When repetition of information elements in the Type 6 IE container information element is specified, the UE shall handle only the contents of specified repeated information elements. If the limit on repetition of information elements is exceeded, the UE shall handle the contents of information elements appearing first up to the limit of repetitions and shall ignore all subsequent repetitions of the information element.
The network should follow the same procedures.
The UE shall treat all optional IEs that are syntactically incorrect in a message as not present in the message.
The network shall take the same approach.
When upon receipt of a 5GMM or 5GSM message the UE diagnoses a "missing conditional IE" error or an "unexpected conditional IE" error, or when it receives a 5GMM or 5GSM message containing at least one syntactically incorrect conditional IE, the UE shall ignore the message and shall return a status message (5GMM STATUS or 5GSM STATUS depending on the EPD) with cause #100 "conditional IE error".
When the network receives a message and diagnoses a "missing conditional IE" error or an "unexpected conditional IE" error or when it receives a message containing at least one syntactically incorrect conditional IE, the network shall either:
try to treat the message (the exact further actions are implementation dependent); or
ignore the message except that it should return a status message (5GMM STATUS or 5GSM STATUS depending on the EPD) with cause #100 "conditional IE error".
The UE shall treat all optional IEs that are syntactically incorrect in a Type 6 IE container information element as not present in the Type 6 IE container information element.
The network shall take the same approach.
EXAMPLE 1:
If the Type 6 IE container information element includes 2 type 6 information elements, and the first one is syntactically incorrect, the receiver ignores the first information element and continues with the processing of the second one.
EXAMPLE 2:
If the remaining value part of a Type 6 IE container information element is too short to contain a complete type 6 information element, the receiver ignores these octets and continues with the processing of the octets following the Type 6 IE container information element, if there are any.
When upon receipt of a 5GMM or 5GSM message the UE diagnoses a "missing conditional IE" error or an "unexpected conditional IE" error for the contents of a Type 6 IE container information element, or when it receives a 5GMM or 5GSM message with a Type 6 IE container information element containing at least one syntactically incorrect conditional IE, the UE shall ignore the message and shall return a status message (5GMM STATUS or 5GSM STATUS depending on the EPD) with cause #100 "conditional IE error".
When the network receives a message and diagnoses a "missing conditional IE" error or an "unexpected conditional IE" error for the contents of a Type 6 IE container information element or when it receives a message with a Type 6 IE container information element containing at least one syntactically incorrect conditional IE, the network shall either:
try to treat the message (the exact further actions are implementation dependent); or
ignore the message except that it should return a status message (5GMM STATUS or 5GSM STATUS depending on the EPD) with cause #100 "conditional IE error".
When a message with semantically incorrect contents is received, the UE shall perform the foreseen reactions of the procedural part of the present document (i.e. of clauses 5, 6). If, however no such reactions are specified, the UE shall ignore the message except that it shall return a status message (5GMM STATUS or 5GSM STATUS depending on the EPD) with cause #95 "semantically incorrect message".
The network should follow the same procedure except that a status message is not normally transmitted.