9 Handling of unknown, unforeseen and erroneous protocol data
24.5543GPPProximity-services (ProSe) in 5G System (5GS) protocol aspectsRelease 17Stage 3TS
9.1 General
The procedures specified in the present document apply to those PC3a, PC8 or PC5 messages which pass the checks described in this clause.
This clause 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.
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 will be assumed to have the error handling that is indicated in this clause 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.
9.2 Handling of unknown, unforeseen and erroneous protocol data in messages sent over the PC3a or PC8 interface
9.2.1 Unforeseen message type
If the UE receives a PC3a or PC8 message with a message type corresponding to a ProSe discovery mechanism that the UE is not authorised to use by the network, the UE shall discard the message.
If the DDNMF receives a PC3a message or the 5G PKMF receives a PC8 message, whose message type indicates that this is a ProSe discovery mechanism the sending UE is not authorised to support, the DDNMF or the the 5G PKMF shall discard the message.
9.3 Handling of unknown, unforeseen and erroneous protocol data in messages sent over the PC5 interface
9.3.1 Message too short or too long
9.3.1.1 Message too short
When a message is received that is too short to contain a complete message type information element, that message shall be ignored, cf. 3GPP TS 24.007 [20].
9.3.1.2 Message too long
The maximum size of a PC5 signalling message is 65535 octets.
9.3.2 Unknown or unforeseen message type
If the UE receives a PC5 signalling message with message type not defined for the PC5 signalling protocol or not implemented by the receiver, it shall ignore the PC5 signalling message.
NOTE: A message type not defined for the PC5 signalling protocol in the given direction is regarded by the receiver as a message type not defined for the PC5 signalling protocol, see 3GPP TS 24.007 [20].
If the UE receives a message not compatible with the PC5 signalling protocol state, the UE shall ignore the PC5 signalling message.
9.3.3 Non-semantical mandatory information element errors
When on receipt of a message,
a) an "imperative message part" error; or
b) a "missing mandatory IE" error
is diagnosed or when a message containing:
a) a syntactically incorrect mandatory IE;
b) an IE unknown in the message, but encoded as "comprehension required" (see 3GPP TS 24.007 [20]); or
c) an out of sequence IE encoded as "comprehension required" (see 3GPP TS 24.007 [20]) is received,
the UE shall ignore the PC5 signalling message.
9.3.4 Unknown and unforeseen IEs in the non-imperative message part
9.3.4.1 IEIs unknown in the message
The UE shall ignore all IEs unknown in a message which are not encoded as "comprehension required" (see 3GPP TS 24.007 [20]).
9.3.4.2 Out of sequence IEs
The UE shall ignore all out of sequence IEs in a message which are not encoded as "comprehension required" (see 3GPP TS 24.007 [20]).
9.3.4.3 Repeated IEs
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 11.3, 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.
9.3.5 Non-imperative message part errors
9.3.5.1 General
This category includes:
a) syntactically incorrect optional IEs; and
b) conditional IE errors.
9.3.5.2 Syntactically incorrect optional IEs
The UE shall treat all optional IEs that are syntactically incorrect in a message as not present in the message.
9.3.5.3 Conditional IE errors
When upon receipt of a PC5 signalling message, the UE diagnoses a "missing conditional IE" error or an "unexpected conditional IE" error, or when it receives a PC5 signalling message containing at least one syntactically incorrect conditional IE, the UE shall ignore the message.
9.3.6 Messages with semantically incorrect contents
When a message with semantically incorrect contents is received, the UE shall perform the foreseen reactions of the procedural part of clause 7.2. If, however no such reactions are specified, the UE shall ignore the message.