5G ProSe UE-to-Network Relay Discovery is applicable to both 5G ProSe Layer-3 and Layer-2 UE-to-Network relay discovery for public safety use and commercial services. To perform 5G ProSe UE-to-Network Relay Discovery, the 5G ProSe Remote UE and the 5G ProSe UE-to-Network Relay are pre-configured or provisioned with the related information as described in clause 5.1.
In 5G ProSe UE-to-Network Relay Discovery, the UEs use pre-configured or provisioned information for the relay discovery procedures as defined in clause 5.1.4.1.
The Relay Service Code (RSC) is used in the 5G ProSe UE-to-Network Relay discovery, to indicate the connectivity service the 5G ProSe UE-to-Network Relay provides to the 5G ProSe Remote UE. The RSCs (including the dedicated one(s) for emergency service) are configured on the 5G ProSe UE-to-Network Relay and the 5G ProSe Remote UE as defined in clause 5.1.4. The 5G ProSe UE-to-Network Relay and the 5G ProSe Remote UE are aware of whether a RSC is offering 5G ProSe Layer-2 or Layer-3 UE-to-Network Relay service and whether a RSC is for emergency service, based the policy as specified in clause 5.1.4. A 5G ProSe UE-to-Network Relay supporting multiple RSCs can advertise the RSCs using multiple discovery messages, with one RSC per discovery message.
Additional information not directly used for discovery can also be advertised using the PC5-D protocol stack in single or separate discovery messages of type "Relay Discovery Additional Information" as defined in clause 5.8.3.1.
The 5G ProSe UE-to-Network Relay sends a UE-to-Network Relay Discovery Announcement message. The UE-to-Network Relay Discovery Announcement message contains the Type of Discovery Message, Announcer Info and RSC and is sent using the Source Layer-2 ID and Destination Layer-2 ID as described in clause 5.8.3.
For 5G ProSe Layer-3 UE-to-Network Relay, the 5G ProSe Layer-3 UE-to-Network Relay shall only include a RSC in the UE-to-Network Relay Discovery Announcement when the S-NSSAI associated with that RSC belongs to the Allowed NSSAI of the UE-to-Network Relay.
The 5G ProSe Remote UE (1 to 3) determines the Destination Layer-2 ID for signalling reception. The Destination Layer-2 ID is configured with the UE(s) as specified in clause 5.1.4.1.
5G ProSe Remote UE (1 to 3) monitors announcement messages with the 5G ProSe UE-to-Network RSC corresponding to the desired services.
Optionally, the 5G ProSe UE-to-Network Relay may also send Relay Discovery Additional Information messages as defined in clause 6.5.1.3. The parameters contained in this message and the Source Layer-2 ID and Destination Layer-2 ID used for sending and receiving the message are described in clause 5.8.3.
The 5G ProSe Remote UE selects the 5G ProSe UE-to-Network Relay based on the information received in step 1.
The 5G ProSe Remote UE sends a 5G ProSe UE-to-Network Relay Discovery Solicitation message. The 5G ProSe UE-to-Network Discovery Solicitation message contains the Type of Discovery Message, Discoverer Info, RSC and optionally Target Info and is send using the Source Layer-2 ID and Destination Layer-2 ID as described in clause 5.8.3. The 5G ProSe Remote UE discovering a 5G ProSe UE-to-Network Relay sends a solicitation message with the RSC which is associated to the desired connectivity service. The RSC is based on the Policy/Parameters specified in clause 5.1.4.1.
How the 5G ProSe UE-to-Network Relays (1 to 3) determine the Destination Layer-2 ID for signalling reception is specified in clause 5.8.3. The Destination Layer-2 ID is configured with the UE(s) as specified in clause 5.1.4.1.
If the RSC contained in the solicitation message matches any of the (pre)configured RSC(s), as specified in clause 5.1.4.1, of a 5G ProSe UE-to-Network Relay, and the Target Info contained in the solicitation message, if any, matches the 5G ProSe UE-to-Network Relay, the 5G ProSe UE-to-Network Relays (e.g. 1 and 2) respond to the 5G ProSe Remote UE with a UE-to-Network Relay Discovery Response message. The 5G ProSe UE-to-Network Relay Discovery Response message contains the Type of Discovery Message, Discoveree Info and RSC and is sent using the Source Layer-2 ID and Destination Layer-2 ID as described in clause 5.8.3.
For 5G ProSe Layer-3 UE-to-Network Relay, the 5G ProSe UE-to-Network Relay shall only respond to a matching RSC in the UE-to-Network Relay Discovery Solicitation message when the S-NSSAI associated with that RSC belongs to the Allowed NSSAI of the 5G ProSe UE-to-Network Relay.
The 5G ProSe Remote UE selects the 5G ProSe UE-to-Network Relay based on the information received in step 2.