Step 1.
UE sends PDU Session Establishment Request to the SMF as shown in step 1 of
clause 4.3.2.2.1 of TS 23.502. The SMF retrieves the UE subscription information from the UDM (which may optionally include an indication on UE authorization for EAS discovery via EASDF) and checks if the UE is authorized to discover the EAS via EASDF. If not authorized, this procedure is terminated, and the subsequent steps are skipped.
Step 2.
During the PDU Session Establishment procedure, the SMF selects EASDF as described
clause 6.3 of TS 23.501. The SMF may consider the UE subscription information to select an EASDF as the DNS server of the PDU Session.
The SMF may indicate to the UE either that for the PDU Session the use of the EDC functionality is allowed or that for the PDU Session the use of the EDC functionality is required.
If the SMF, based on local configuration, decides that the interaction between EASDF and DNS Server in the DN shall go via the PSA UPF, the SMF configures PSA UPF within N4 rules to forward the DNS message between EASDF and DN.
Step 3.
The SMF invokes
Neasdf_DNSContext_Create Request (UE IP address, DNN, notification endpoint, (DNS message handling rules)) to the selected EASDF.
This step is performed before step 11 of PDU Session Establishment procedure in
clause 4.3.2.2.1 of TS 23.502.
The EASDF creates a DNS context for the PDU Session and stores the UE IP address, the notification endpoint and potentially provided DNS message handling rule(s) into the context.
The EASDF is provisioned with the DNS message handling rule(s), before the DNS Query message is received at the EASDF or as a consequence of the DNS Query reporting.
Step 4.
The EASDF invokes the service operation
Neasdf_DNSContext_Create Response and if it exists, provides EASDF DNS security information.
After this step, the SMF includes the IP address of the EASDF as DNS server/resolver for the UE in the PDU Session Establishment Accept message as defined in step 11 of
clause 4.3.2.2.1 of TS 23.502. The UE configures the EASDF as DNS server for that PDU Session.
If the UE requested to obtain UE IP address via DHCP and the SMF supports DHCP based IP address configuration, the SMF responds to the UE via DHCP response with the allocated UE IP address and/or the DNS server address containing the IP address of the EASDF.
Step 5.
The SMF may invoke Neasdf_DNSContext_Update Request (EASDF Context ID, (DNS message handling rules)) to EASDF. The update may be triggered by UE mobility, e.g. when UE moves to a new location, or by a reporting by EASDF of a DNS Query with certain FQDN, or, the update may be triggered by insertion/removal of Local PSA, e.g. to update rules to handle DNS messages from the UE or by new PCC rule information.
Step 6.
The EASDF responds with Neasdf_DNSContext_Update Response.
Step 7.
If required (see
clause 5.2.1), the Application in the UE uses the EDC functionality as described in
clause 6.2.4 to send the DNS Query to the EASDF. The UE sends a DNS Query message to the EASDF.
Step 8.
If the DNS Query message matches a DNS message detection template of DNS message handling rule for reporting, the EASDF sends the DNS message report to SMF by invoking Neasdf_DNSContext_Notify Request (information from the DNS Query e.g. target FQDN of the DNS Query). The EASDF may add a DNS message identifier in the Neasdf_DNSContext_Notify. The DNS message identifier uniquely identifies the DNS message reported and is used to associate the corresponding DNS message handling rule included in Neasdf_DNSContext_Update Request with the identified DNS message. The DNS message identifier is generated by EASDF.
Step 9.
The SMF responds with Neasdf_DNSContext_Notify Response.
Step 10.
If DNS message handling rule for the FQDN received in the report need to be updated, e.g. provide updates to information to build/replace the EDNS Client Subnet option information, the SMF invokes
Neasdf_DNSContext_Update Request (DNS message handling rules) to EASDF. If the EASDF provided a DNS message identifier, the SMF adds this DNS message identifier to the corresponding DNS message handling rule included in
Neasdf_DNSContext_Update. If the EASDF did not provide a DNS message identifier, the SMF may use the DNS message type (Request) and the target FQDN to u
For Option A, the DNS handling rule includes corresponding IP address to be used to build/replace the EDNS Client Subnet option. For Option B, the DNS handling rule includes corresponding Local DNS Server IP address. The EASDF may as well be instructed by the DNS handling rule to simply forward the DNS Query to a pre-configured DNS server/resolver.
Step 11.
If the SMF provided a DNS message handling rule with DNS message identifier, the EASDF only applies the DNS message handling rule to the corresponding DNS message. The EASDF responds with Neasdf_DNSContext_Update Response.
Step 12.
The EASDF handles the DNS Query message received from the UE as the following:
-
For Option A, the EASDF adds/replaces the EDNS Client Subnet option into the DNS Query message as specified in RFC 7871 and sends it to C-DNS server;
-
For Option B, the EASDF removes EDNS Client Subnet option if received in the DNS query and sends the DNS Query message to the Local DNS server.
If no DNS message detection template within the DNS message handling rule provided by the SMF matches the requested FQDN in the DNS Query, the EASDF may simply send a DNS Query to a pre-configured DNS server/resolver.
Step 13.
EASDF receives the DNS Response including EAS IP addresses which is determined by the DNS system and determines that the DNS Response can be sent to the UE.
Step 14.
The EASDF sends DNS message reporting to the SMF by invoking
Neasdf_DNSContext_Notify request including EAS information if the EAS IP address or the FQDN in the DNS Response message matches the DNS message detection template provided by the SMF. The DNS message reporting may contain multiple EAS IP address if the EASDF has received multiple EAS IP address(es) from the DNS server it has contacted. The DNS message reporting may contain the FQDN and the EDNS Client Subnet option received in the DNS Response message. The EASDF may also add DNS message identifier to the reporting. The DNS message identifier uniquely identifies the DNS response reported, and the EASDF can associate the corresponding DNS message handling rule included in
Neasdf_DNSContext_Update Request with the identified DNS response. The DNS message identifier is generated by EASDF.
Per the received DNS message handling rule, the EASDF does not send the DNS Response message to the UE but waits for SMF instructions (in step 17), i.e. buffering the DNS Response message.
If the DNS Response(s) is required to be buffered and reported to the SMF, when the reporting-once control information is set, EASDF only reports to SMF once by invoking
Neasdf_DNSContext_Notify request for DNS Responses matching with the DNS message detection template.
Step 15.
The SMF invokes Neasdf_DNSContext_Notify Response service operation.
Step 16.
The SMF may perform UL CL/BP and Local PSA selection and insert UL CL/BP and Local PSA.
Based on EAS information received from the EASDF in
Neasdf_DNSContext_Notify, other UPF selection criteria, as specified in
clause 6.3.3 of TS 23.501, and possibly Service Experience or DN performance analytics for an Edge Application as described in
TS 23.288, the SMF may determine the DNAI. The SMF may also determine the associated N6 traffic routing information for the DNAI according to N6 traffic routing information for the DNAI included in EAS Deployment Information and configure Local PSA UPF with forwarding actions derived from the N6 traffic routing information. The SMF may perform UL CL/BP and Local PSA selection and insertion as described in
TS 23.502. The SMF may perform local PSA selection based on the N6 delay as determind via N6 delay measurement procedure defined in
clause 4.3.3 of TS 23.502. In the case of UL CL, the traffic detection rules and traffic routing rules are determined by the SMF based on IP address range(s) per DNAI included in the EAS Deployment Information or according to PCC rule received from PCF or according to preconfigured information.
Step 17.
The SMF invokes
Neasdf_DNSContext_Update Request (DNS message handling rules). If the EASDF provided a DNS message identifier, the SMF adds this to the corresponding DNS message handling rule included in
Neasdf_DNSContext_Update Request. If the EASDF did not provide a DNS message identifier, the SMF may use the DNS message type (Response) and the FQDN to uniquely identify the DNS response message.
The DNS message handling rule with the Control Action
"Send the buffered DNS response(s) message to UE" indicates the EASDF to send DNS Response(s) buffered in step 14 to UE. Other DNS message handling rule may indicate the EASDF not to send further DNS Response message(s) corresponding to FQDN ranges and/or EAS IP address ranges.
Step 18.
If the SMF provided a DNS message handling rule with DNS message identifier, the EASDF only applies the DNS message handling rule to the corresponding DNS response. The EASDF responds with Neasdf_DNSContext_Update Response.
Step 19.
If indicated to send the buffered DNS response(s) to UE in step 17, the EASDF sends the DNS Response(s) to the UE and handles the EDNS Client Subnet option as described above.
During PDU Session Release procedure, the SMF removes the DNS context by invoking
service.