4 Session Management Event Exposure Service

29.5083GPP5G SystemRelease 18Session Management Event Exposure ServiceStage 3TS

4.1 Service Description

4.1.1 Overview

The Session Management Event Exposure Service, as defined in 3GPP TS 23.502 [3] and 3GPP TS 23.503 [6], is provided by the Session Management Function (SMF).

This service:

– allows consumer NF service consumers to subscribe and unsubscribe for events on a PDU session; and

– notifies consumer NF service consumers with a corresponding subscription about observed events on the PDU session.

The types of observed events applicable for (H-)SMF include:

– UP path change (e.g. addition and/or removal of PDU session anchor);

– access type change;

– RAT type change;

– PLMN change;

– PDU session release;

– PDU session establishment;

– Downlink data delivery status (for non-roaming);

– UE IP address/prefix change;

– QFI allocation;

– QoS monitoring;

– SM congestion control experience for PDU Session;

– Dispersion;

– WLAN information for PDU Session; and/or

– Redundant transmission experience for PDU Session.

The types of observed events applicable for V-SMF include:

– Downlink data delivery status.

The types of observed events applicable for I-SMF include:

– Downlink data delivery status.

4.1.2 Service Architecture

The 5G System Architecture is defined in 3GPP TS 23.501 [2]. The Policy and Charging related 5G architecture is also described in 3GPP TS 29.513 [7].

The Session Management Event Exposure Service (Nsmf_EventExposure) is part of the Nsmf service-based interface exhibited by the Session Management Function (SMF).

The known NF service consumers of the Nsmf_EventExposure service are:

– Network Exposure Function (NEF),

– Access and Mobility Management Function (AMF),

– Application Function (AF),

– Unified Data Management (UDM),

– Network Data Analytics Function (NWDAF), and

– Data Collection Coordination Function (DCCF).

The PCF accesses the Session Management Event Exposure Service at the SMF via the N7 Reference point.

NOTE: The PCF can implicitly subscribe on behalf of the AF and NEF to the UP_PATH_CH event and/or the QOS_MON event by including the information on AF subscription within the PCC rule.

The AMF accesses the Session Management Event Exposure Service at the SMF via the N11 Reference point.

Figure 4.1.2-1: Reference Architecture for the Nsmf_EventExposure Service; SBI representation

Figure 4.1.2-2: Reference Architecture for the Nsmf_EventExposure Service: reference point representation

4.1.3 Network Functions

4.1.3.1 Session Management Function (SMF)

The Session Management function (SMF) provides:

– Session Management e.g. Session establishment, modification and release;

– UE IP address allocation & management;

– Selection and control of UP function;

– Termination of interfaces towards Policy control functions; and

– Control part of policy enforcement and QoS.

4.1.3.2 NF Service Consumers

The Network Exposure Function (NEF);

– provides means to securely expose the services and capabilities provided by 3GPP network functions to e.g. 3rd parties or internal exposure.

The Access and Mobility Management function (AMF) provides:

– Registration management;

– Connection management;

– Reachability management; and

– Mobility Management.

The Application Function (AF)

– interacts with the 3GPP Core Network to provide services.

The Unified Data Management (UDM).

– has access to subscriber information, can determine the SMF serving a user based on that data, and can then subscribe to event notifications for a user (e.g. when triggered by the NEF).

The Network Data Analytics Function (NWDAF)

– collects data based on event subscription provided by AMF, SMF, PCF, UDM, AF (directly or via NEF) and OAM;

– retrieves information about NFs;

– performs on demand provision of analytics to NF service consumers, as indicated in clause 6, 3GPP TS 23.288 [21].

The Data Collection Coordination Function (DCCF)

– coordinates the collection and distribution of data and analytics.

4.2 Service Operations

4.2.1 Introduction

Table 4.2.1-1: Operations of the Nsmf_EventExposure Service

Service operation name

Description

Initiated by

Notify

Report UE PDU session related event(s) to the NF service consumer which has subscribed to the event report service.

(H-)SMF, V-SMF, I-SMF

Subscribe

This service operation is used by an NF service consumer to subscribe for event notifications on a specified PDU session, or for all PDU Sessions of one UE, a group of UE(s) or any UE, or to modify a subscription.

NF service consumers (e.g. AMF, NEF, AF, UDM, NWDAF, DCCF)

UnSubscribe

This service operation is used by an NF service consumer to unsubscribe from event notifications.

NF service consumers (e.g. AMF, NEF, AF, UDM, NWDAF, DCCF)

AppRelocationInfo

This service operation is used by an NF service consumer to acknowledge the notification from the SMF regarding UE PDU Session related event(s)

NF service consumers (e.g. NEF, AF)

4.2.2 Nsmf_EventExposure_Notify Service Operation

4.2.2.1 General

The Nsmf_EventExposure_Notify service operation enables the SMF (i.e. (H-)SMF, V-SMF and/or I-SMF) to send notifications to NF service consumers upon the occurrence of a previously subscribed event on the related PDU session.

The following procedure using the Nsmf_EventExposure_Notify service operation is supported:

– notification about subscribed events.

4.2.2.2 Notification about subscribed events

The present "notification about subscribed events" procedure is performed by the SMF when any of the subscribed events occur.

The following applies with respect to the detection of subscribed events:

– If:

– the SMF supports the "DownlinkDataDeliveryStatus" feature,

– the event "downlink data delivery status" is subscribed,

– the traffic descriptors of the downlink data source have been provided for that subscription, and

– the SMF is informed that the UE corresponding to that subscription is unreachable,

– if the data is buffered at the UPF, then the SMF shall interact with the UPF to notify that the UPF buffers the downlink packets. The SMF shall include the traffic descriptor of the subscriptions in the PDR with a higher priority if the PCC is not applied to the PDUsession or derive the PDR from the PCC rule received from the PCF as defined in clause 4.2.4.27 of 3GPP TS 29.512 [14] if the PCC is applied to the PDU session and request the UPF to report when there are corresponding buffered downlink packets or discarded packets in the UPF as defined in clause 5.28.1 of 3GPP TS 29.244 [23]. When receiving the report from the UPF, the SMF shall determine whether that subscribed event with delivery status "DISCARDED" or "BUFFERED" occurred. The SMF shall determine that subscribed event with delivery status "TRANSMITTED" occurred by the fact that the related PDU session becomes ACTIVE.

– if the data is buffered at the SMF, the SMF shall determine whether that subscribed event occurred by comparing the downlink packets with the traffic descriptors received in the corresponding event subscription. If the SMF decides to buffer the packets, the subscribed event with delivery status "BUFFERED" occurred. If the SMF decides to discard the packets, the subscribed event with delivery status "DISCARDED" occurred. The SMF shall determine that subscribed event with delivery status "TRANSMITTED" occurred by the fact that the related PDU session becomes ACTIVE.

Figure 4.2.2.2-1 illustrates the notification about subscribed events.

Figure 4.2.2.2-1: Notification about subscribed events

If the SMF observes PDU Session related event(s) for which an NF service consumer has subscribed, the SMF shall send an HTTP POST request with "{notifUri}", as previously provided by the NF service consumer within the corresponding subscription, as URI and NsmfEventExposureNotification data structure as request body that shall include:

– Notification correlation ID provided by the NF service consumer during the subscription, or as provided by the PCF for implicit subscription of UP path change as defined in clause 4.2.6.2.6.2 of 3GPP TS 29.512 [14], or as provided by the PCF for implicit subscription of QoS Monitoring as defined in clause 4.2.3.25 of 3GPP TS 29.512 [14], as "notifId" attribute; and

– information about the observed event(s) within the "eventNotifs" attribute that shall contain for each observed event an "EventNotification" data structure that shall include:

1. the Event Trigger as "event" attribute;

2. for a UP path change notification:

a) type of notification ("EARLY" or "LATE") as "dnaiChgType" attribute;

b) source DNAI and/or target DNAI as "sourceDnai" attribute and "targetDnai" attribute if DNAI is changed, respectively (NOTE 3); and

c) if the PDU Session type is IP, for the source DNAI IP address/prefix of the UE as "sourceUeIpv4Addr" attribute or "sourceUeIpv6Prefix" attribute; and

d) if the PDU Session type is IP, for the target DNAI IP address/prefix of the UE as "targetUeIpv4Addr" attribute or "targetUeIpv6Prefix" attribute;

e) if available (NOTE 3), for the source DNAI, N6 traffic routing information related to the UE as "sourceTraRouting" attribute;

f) if available (NOTE 3), for the target DNAI, N6 traffic routing information related to the UE as "targetTraRouting" attribute; and

g) if the PDU Session type is Ethernet, the MAC address of the UE in the "ueMac" attribute;

NOTE 1: UP path change notification, i.e. DNAI change notification and/or N6 traffic routing information change notification, can be the result of an implicit subscription of the PCF on behalf of the NEF/AF as part of setting PCC rule(s) via the Npcf_SMPolicyControl service (see clause 4.2.6.2.6.2 of 3GPP TS 29.512 [14]).

NOTE 2: If the DNAI is not changed while the N6 traffic routing information change, the source DNAI and target DNAI are not provided.

NOTE 3: The change from the UP path status where no DNAI applies to a status where a DNAI applies indicates the activation of the related AF request and therefore only the target DNAI and N6 traffic routing information is provided in the event notification; the change from the UP path status where a DNAI applies to a status where no DNAI applies indicates the de-activation of the related AF request and therefore only the source DNAI and N6 traffic routing information is provided in the event notification.

3. for a UE IP address change:

a) added new UE IP address or prefix as "adIpv4Addr" attribute or "adIpv6Prefix" attribute, respectively; and/or

b) released UE IP address or prefix as "reIpv4Addr" attribute or "reIpv6Prefix" attribute, respectively;

4. for an access type change:

a) new access type as "accType" attribute;

5. for a PLMN Change:

a) new PLMN as "plmnId" attribute;

6. for a PDU Session Release:

a) ID of the released PDU session as "pduSeId" attribute;

b) DNN of the release PDU session as "dnn" attribute, if the "PduSessionStatus" feature is supported;

c) The type of the release PDU session as "pduSessType" attribute, if the "PduSessionStatus" feature is supported;

d) UE IPv4 address as "ipv4Addr" attribute and/or IPv6 information (IPv6 prefix(es) or IPv6 address(es)) as "ipv6Prefixes" or "ipv6Addrs" attributes, if the released PDU session type is IP and the "PduSessionStatus" feature is supported; and

e) S-NSSAI of the release PDU session as "snssai" attribute, if the "EneNA" feature is supported and "snssai" attribute is present in the subscribed "NsmfEventExposure" data type;

7. the time at which the event was observed encoded as "timeStamp" attribute;

8. the SUPI as the "supi" attribute if the subscription applies to a group of UE(s) or any UE;

9. if available, the GPSI as the "gpsi" attribute if the subscription applies to a group of UE(s) or any UE;

10. for a Downlink Data Delivery Status, if the "DownlinkDataDeliveryStatus" feature is supported:

a) the downlink data delivery status as "dddStatus" attribute;

b) the downlink data descriptors impacted by the downlink data delivery status change within the "dddTraDescriptor" attribute; and

c) for downlink data delivery status "BUFFERED". the estimated maximum waiting time as "maxWaitTime" attribute;

11. for a Communication Failure, if the "CommunicationFailure" feature is supported:

a) the detailed communication failure information (e.g. 5G SM cause) as "commFailure" attribute; and

12. for QoS Monitoring, if the "QoSMonitoring" feature is supported:

a) one or two uplink packet delays within the "ulDelays" attribute; or

b) one or two downlink packet delays within the "dlDelays" attribute; or

c) one or two round trip packet delays within the "rtDelays" attribute.

NOTE 4: QoS Monitoring notification can be the result of an implicit subscription of the PCF on behalf of the NEF/AF as part of setting PCC rule(s) via the Npcf_SMPolicyControl service (see clause 4.2.3.25 of 3GPP TS 29.512 [14]).

13. for a PDU Session Establishment, if the "PduSessionStatus" feature is supported:

a) ID of the established PDU session as "pduSeId" attribute;

b) DNN of the release PDU session as "dnn" attribute;

c) The type of the release PDU session as "pduSessType" attribute;

d) UE IPv4 address as "ipv4Addr" attribute and/or IPv6 information (IPv6 prefix(es) or IPv6 address(es)) as "ipv6Prefixes" or "ipv6Addrs" attributes if available at PDU session establishment; and

e) S-NSSAI of the established PDU session as "snssai" attribute, if the "EneNA" feature is supported and "snssai" attribute is present in the subscribed "NsmfEventExposure" data type;

14. for a QFI allocation, if the "QfiAllocation" feature is supported:

a) QFI of the allocated QoS Flow ID for the application as "qfi" attribute;

b) DNN of the allocated PDU session as "dnn" attribute;

c) Slice of the allocated PDU session as "snssai" attribute;

d) The description of the application traffic as "appId", "fDescs" or "ethfDescs" attribute; and

e) ID of the allocated PDU session as "pduSeId" attribute if the subscription was for a UE, a group of UEs, or any UE, and not for a specific PDU Session;

15. for an RAT type change, if the "EneNA" feature is supported:

a) new RAT type as "ratType" attribute;

16. for a SM congestion control experience for PDU Session, if the "SMCCE" feature is supported:

a) DNN of the PDU session as "dnn" attribute if DNN based SMCC is applied

or Slice of the allocated PDU session as "snssai" attribute if S-NSSAI based SMCC is applied;

b) Time window representing a start time and a stop time of the data collection period as "timeWindow" attribute;

c) The information of the SM NAS requests from UE as "smNasFromUe" attribute; and

d) The information of the SM NAS messages from SMF with backoff timer as "smNasFromSmf" attribute;

17. for transactions dispersion collection, if the Dispersion feature is supported:

a) The transactions dispersion information collected as "transacInfos" attribute; and

b) The UE IP address as "ueIpAddr" attribute if it is available and requested in the subscription;

18. for redundant transmission experience of PDU Session, if the "RedundantTransmissionExp" feature is supported:

a) DNN associated with URLLC service for the PDU session as "dnn" attribute; and

b) UP with redundant transmission setup as "upRedTrans" attribute;

19. for WLAN information on PDU Session, if the "WlanPerformance" feature is supported:

a) SSID or BSSID that the PDU session is related to as "ssId" or "bssId" attribute; and

b) Start time or End time of the PDU Session for WLAN as "startWLAN" or "endWLAN" attribute;

20. for obtaining the UPF information, if the "ServiceExperience" and/or "DnPerformance" feature is supported:

a) the information of the UPF serving the UE provided as "upfInfo" attribute.

21. for obtaining the User Plane status information, if the "UeCommunication" feature is supported:

a) the information about the User Plane status provided as "pduSessInfos" attribute.

– an URI for further AF acknowledgement in the "ackUri" attribute if the SMF determines to wait for the AF acknowledgement before activating the new UP path associated with the new DNAI.

NOTE 5: Based on the indication of AF acknowledgment to be expected in the PCC rules received from the PCF and local configuration, the SMF may determine to wait for the AF acknowledgement before activating the new UP path associated with the new DNAI.

Upon the reception of an HTTP POST request with "{notifUri}" as URI and an NsmfEventExposureNotification data structure as request body, the NF service consumer shall send an HTTP "204 No Content" response for a successful processing.

If errors occur when processing the HTTP POST request, the NF service consumer shall send the HTTP error response as specified in clause 5.7.

If the feature "ES3XX" is not supported and,

– if the NF service consumer is not able to handle the Notification but another unknown NF service consumer could possibly handle the notification, it shall reply with an HTTP "404 Not found" error response.

NOTE 6: An AMF as NF service consumer can change.

– if the SMF becomes aware that a new NF service consumer is requiring notifications (e.g. via the "404 Not found" response, or via Namf_Communication service AMFStatusChange Notifications, see 3GPP TS 29.518 [13], or via link level failures or via the Nnrf_NFDiscovery Service (using the service name and GUAMI obtained during the creation of the subscription) to discover the other AMFs within the AMF set) specified in 3GPP TS 29.510 [12]), and the SMF knows alternate or backup IPv4 Address(es), IPv6 Address(es) or FQDN(s) where to send Notifications (e.g. via "altNotifIpv4Addrs", "altNotifIpv6Addrs" or "altNotifFqdns" attributes received when the subscription was created), the SMF shall exchange the authority part of the Notification URI with one of those addresses and shall use that URI in any subsequent communication. If the SMF received a "404 Not found" response, the SMF should resend the failed notification to that URI.

If the feature "ES3XX" is supported, and the NF service consumer determines the received HTTP POST request needs to be redirected, the NF service consumer shall send an HTTP redirect response as specified in clause 6.10.9 of 3GPP TS 29.500 [4] and,

– if the SMF receives a "307 Temporary Redirect" response, the SMF shall resend the failed event notification request using the received URI in the Location header field as Notification URI. Subsequent event notifications, triggered after the failed one, shall be sent to the Notification URI provided by the NF service consumer during the corresponding subscription creation/update; or

– if the SMF receives a "308 Permanent Redirect" response, the SMF shall resend the failed event notification request and send the subsequent event notification using the received URI in the Location header field as Notification URI.

If the SMF in the VPLMN needs to send an event notification to the NEF in the HPLMN, it may normalize the event based on roaming agreements when required before provisioning the event report to the NEF of the HPLMN.

4.2.3 Nsmf_EventExposure_Subscribe Service Operation

4.2.3.1 General

This service operation is used by an NF service consumer to subscribe to event notifications on a specific PDU Session, or for all PDU Sessions of one UE, group of UE(s) or any UE, or to modify an existing subscription.

The following procedures using the Nsmf_EventExposure_Subscribe service operation are supported:

– creating a new subscription;

– modifying an existing subscription.

4.2.3.2 Creating a new subscription

Figure 4.2.3.2-1 illustrates the creation of a subscription.

Figure 4.2.3.2-1: Creation of a subscription

To subscribe to event notifications, the NF service consumer shall send an HTTP POST request with: "{apiRoot}/nsmf-event-exposure/v1/subscriptions" as Resource URI and the NsmfEventExposure data structure as request body that shall include:

– if the subscription applies to events related to a single PDU session for a UE, the PDU Session ID of that PDU session as "pduSeId" attribute and the UE identification as "supi" or "gpsi" attribute;

– if the subscription applies to events not related to a single PDU session, identification of UEs to which the subscription applies via:

a) identification of a single UE by SUPI as "supi" attribute or GPSI as "gpsi" attribute;

b) identification of a group of UE(s) via a "groupId" attribute; or

c) identification of any UE via the "anyUeInd" attribute set to true;

NOTE 1: The identification of any UE does not apply for local breakout roaming scenarios where the SMF is located in the VPLMN and the NF service consumer is located in the HPLMN.

– an URI where to receive the requested notifications as "notifUri" attribute;

– a Notification Correlation Identifier provided by the NF service consumer for the requested notifications as "notifId" attribute; and

– if the NF service consumer is an AMF, the GUAMI encoded as "guami" attribute:

– a description of the subscribed events as "eventSubs" attribute that for each event shall include:

a) an event identifier as "event" attribute; and

b) for event "UP_PATH_CH", whether the subscription is for early, late, or early and late notifications of UP path reconfiguration in the "dnaiChgType" attribute;

c) for event "DDDS", the traffic descriptor(s) of the downlink data source in the "dddTraDescriptors" attribute;

and that may include:

a) for event "DDDS", the subscribed delivery statuses in the "dddStati" attribute;

b) for event "QFI_ALLOC" or "DISPERSION", the application identifiers in the "appIds" attribute;

c) for event "SMCC_EXP", the data collection target period in the "targetPeriod" attribute;

d) for event "DISPERSION", the UE IP Address in the "ueIpAddr" attribute, the indication of transaction dispersion collection in the "transacDispInd" attribute and the requested transaction metrics in the "transacMetrics" attribute;

e) for event "WLAN_INFO", the data collection target period in the "targetPeriod" attribute; and/or;

f) for event "RED_TRANS_EXP", the data collection target period in the "targetPeriod" attribute.

The NsmfEventExposure data structure as request body may also include:

– if the NF service consumer is an AMF:

a) the name of a service produced by the AMF that expects to receive the notifications about subscribed events encoded as "serviceName" attribute;

b) Alternate or backup IPv4 Address(es) where to send Notifications encoded as "altNotifIpv4Addrs" attribute;

c) Alternate or backup IPv6 Address(es) where to send Notifications encoded as "altNotifIpv6Addrs" attribute;

d) Alternate or backup FQDN(s) where to send Notifications encoded as "altNotifFqdns" attribute;

– A Data Network Name as "dnn" attribute;

– A single Network Slice Selection Assistance Information as "snssai" attribute;

– Immediate reporting flag as "ImmeRep" attribute;

– event notification method (periodic, one time, on event detection) as "notifMethod" attribute;

– Maximum Number of Reports as "maxReportNbr" attribute;

– Monitoring Duration as "expiry" attribute;

– Repetition Period for periodic reporting as "repPeriod" attribute;

– sampling ratio as "sampRatio" attribute;

– partitioning criteria for partitioning the UEs before performing sampling as "partitionCriteria" attribute if the EneNA feature is supported; and/or

– group reporting guard time as "grpRepTime" attribute; and/or

– a notification flag as "notifFlag" attribute if the EneNA feature is supported.

Upon the reception of an HTTP POST request with: "{apiRoot}/nsmf-event-exposure/v1/subscriptions" as Resource URI and NsmfEventExposure data structure as request body, the SMF shall:

– create a new subscription;

– assign a subscription correlation ID;

– select an expiry time that is equal to or less than the expiry time potentially received in the request;

– store the subscription;

– send an HTTP "201 Created" response with NsmfEventExposure data structure as response body and a Location header field containing the URI of the created individual subscription resource, i.e. "{apiRoot}/nsmf-event-exposure/v1/subscriptions/{subId}";

– if the feature "ERIR" is not supported, and if the "ImmeRep" attribute is included and set to true in the request, the SMF shall immediately notify the NF service consumer of the current available value(s) using the Nsmf_EventExposure_Notify service operation, as defined in clause 4.2.2.1;

– if the feature "ERIR" is supported, and if the "ImmeRep" attribute is included and set to true, the SMF may immediately notify the NF service consumer with the current available value(s) for the subscribed event(s) within the HTTP "201 Created" response as shown in figure 4.2.3.2-1, step 2. The "NsmfEventExposure" data type in the response may include the corresponding event(s) notification within the "eventNotifs" attribute.

– if the sampling ratio attribute, as "sampRatio", is included in the subscription without a "partitionCriteria" attribute, the SMF shall select a random subset of UEs among the target UEs according to the sampling ratio and only report the event(s) related to the selected subset of UEs. If the "partitionCriteria" attribute is additionally included, then the SMF shall first partition the UEs according to the value of the "partitionCriteria" attribute and then select a random subset of UEs from each partition according to the sampling ratio and only report the event(s) related to the selected subsets of UEs;

– when the group reporting guard time attribute, as "grpRepTime", is included in the subscription, the SMF shall accumulate all the event reports for the target UEs until the group reporting guard time expires. Then the SMF shall notify the NF service consumer using the Nsmf_EventExposure_Notify service operation, as described in clause 4.2.2.2; and

– if the "notifFlag" attribute is included and set to "DEACTIVATE" in the request, the SMF shall mute the event notification and store the available events.

If the SMF received an GUAMI, the SMF may subscribe to GUAMI changes using the AMFStatusChange service operation of the Namf_Communication service specified in 3GPP TS 29.518 [13], and it may use the Nnrf_NFDiscovery Service specified in 3GPP TS 29.510 [12] (using the obtained GUAMI and possibly service name) to query the other AMFs within the AMF set.

4.2.3.3 Modifying an existing subscription

Figure 4.2.3.3-1 illustrates the modification of an existing subscription.

Figure 4.2.3.3-1: Modification of an existing subscription

To modify an existing subscription to event notifications, the NF service consumer shall send an HTTP PUT request with: "{apiRoot}/nsmf-event-exposure/v1/subscriptions/{subId}" as Resource URI, where "{subId}" is the subscription correlation ID of the existing subscription, and NsmfEventExposure data structure as request body as described in clause 4.2.3.2.

NOTE 1: An alternate NF service consumer than the one that requested the generation of the subscription resource can send the PUT. For instance, an AMF as NF service consumer can change.

NOTE 2: The "notifUri" attribute within the NsmfEventExposure data structure can be modified to request that subsequent notifications are sent to a new NF service consumer.

When the "notifFlag" attribute is included, and set to "DEACTIVATE" in the request, the SMF shall mute the event notification and store the available events; if it is set to "RETRIEVAL" in the request, the SMF shall send the stored events to the NF service consumer, mute the event notification again and store available events; if it is set to "ACTIVATE" and the event notifications are muted (due to a previously received "DECATIVATE" value), the SMF shall unmute the event notification, i.e. start sending again notifications for available events.

When the "ImmRep" attribute set to true is included in the subscription and the subscribed event(s) are available:

– if the feature "ERIR" is not supported, the SMF shall immediately notify the NF service consumer with the current available value(s) for the subscribed event(s) using the Nsmf_EventExposure_Notify service operation, as described in clause 4.2.2.1.

– if the feature "ERIR" is supported, the SMF may immediately notify the NF service consumer with the current available value(s) for the subscribed event(s) within the HTTP "200 OK" response as shown in figure 4.2.3.3-1, step 2a. The "NsmfEventExposure" data type may include the corresponding event(s) notification within the "eventNotifs" attribute.

NOTE 3: Only the newly added event(s) needs to be reported during the subscription update.

If the "sampRatio" attribute is included in the request without a "partitionCriteria" attribute, the SMF shall select a random subset of UEs among the target UEs according to the sampling ratio and only report the event(s) related to the selected subset of UEs. If the "partitionCriteria" attribute is additionally included, then the SMF shall first partition the UEs according to the value of the "partitionCriteria" attribute and then select a random subset of UEs from each partition according to the sampling ratio and only report the event(s) related to the selected subsets of UEs.

When the "grpRepTime" attribute is included in the request, the SMF shall accumulate all the event reports for the target UEs until the group reporting guard time expires. Then the SMF shall notify the NF service consumer using the Nsmf_EventExposure_Notify service operation, as described in clause 4.2.2.2.

When the "expiry" attribute is included in the request, the SMF shall select an expiry time that is equal to or less than the expiry time received in the request.

Upon the reception of an HTTP PUT request with: "{apiRoot}/nsmf-event-exposure/v1/subscriptions/{subId}" as Resource URI and NsmfEventExposure data structure as request body, if the received HTTP request is successfully processed and accepted, the SMF shall:

– update the concerned subscription; and

– send an HTTP "200 OK" response with a response body containing a representation of the updated subscription in the NsmfEventExposure data structure or send a HTTP "204 No Content".

If errors occur when processing the HTTP PUT request, the SMF shall send an HTTP error response as specified in clause 5.7.

If the feature "ES3XX" is supported, and the SMF determines the received HTTP PUT request needs to be redirected, the SMF shall send an HTTP redirect response as specified in clause 6.10.9 of 3GPP TS 29.500 [4].

4.2.4 Nsmf_EventExposure_UnSubscribe Service Operation

4.2.4.1 General

This service operation is used by an NF service consumer to unsubscribe from event notifications.

The following procedure using the Nsmf_EventExposure_UnSubscribe service operation is supported:

– unsubscription from event notifications.

4.2.4.2 Unsubscription from event notifications

Figure 4.2.4.2-1 illustrates the unsubscription from event notifications.

Figure 4.2.4.2-1: Unsubscription from event notifications

To unsubscribe from event notifications, the NF service consumer shall send an HTTP DELETE request with: "{apiRoot}/nsmf-event-exposure/v1/subscriptions/{subId}" as Resource URI, where "{subId}" is the subscription correlation ID of the existing subscription that is to be deleted.

Upon the reception of the HTTP DELETE request with: "{apiRoot}/nsmf-event-exposure/v1/subscriptions/{subId}" as Resource URI, if the received HTTP request is successfully processed and accepted, the SMF shall:

– remove the corresponding subscription; and

– send an HTTP "204 No Content" response.

If errors occur when processing the HTTP DELETE request, the SMF shall send an HTTP error response as specified in clause 5.7.

If the feature "ES3XX" is supported, and the SMF determines the received HTTP DELETE request needs to be redirected, the SMF shall send an HTTP redirect response as specified in clause 6.10.9 of 3GPP TS 29.500 [4].

4.2.5 Nsmf_EventExposure_AppRelocationInfo Service Operation

4.2.5.1 General

The Nsmf_EventExposure_AppRelocationInfo service operation enables the NF service consumer to acknowledge the notification of subscribed events on the related PDU session from the SMF.

The following procedure using the Nsmf_EventExposure_AppRelocationInfo service operation is supported:

– acknowledgement of notification about subscribed events.

4.2.5.2 Acknowledgement of Notification about subscribed events

Figure 4.2.5.2-1 illustrates the acknowledgement of notification about subscribed events.

Figure 4.2.5.2-1: Acknowledgement of Notification about subscribed events

In order to acknowledge the SMF of the application relocation information after the handling of a notification about UP path change event, an NF service consumer shall send an HTTP POST request to the callback URI "{ackUri}" as previously provided by the SMF in an attribute within the NsmfEventExposureNotification data during UP path change notification procedure as defined in clause 4.2.2.2.

The request body contains the AckOfNotify data structure that shall include:

– Notification correlation ID provided by the SMF during UP path change notification, as "notifId" attribute;

– an identifier of UE (i.e. SUPI or GPSI), if available and the subscription does not applies to a group of UE(s) or any UE; and

– information about the AF acknowledgement within the "ackResult" attribute that shall contain result status of the application relocation as "afStatus" attribute. If the "afStatus" attribute sets to "SUCCESS", the N6 traffic routing information associated to the target DNAI may be included as "trafficRoute" attribute and, if the "ULBuffering" feature is supported, an indication that buffering of uplink traffic to the target DNAI is needed may be included as "upBuffInd" attribute and, if the feature "EASIPreplacement" is supported, EAS IP replacement information may be included as "easIpReplaceInfos" attribute. If the application relocation is not completed on time, the "afStatus" attribute shall set to the corresponding failure cause.

Upon the reception of an HTTP POST request with AckOfNotify data structure as request body, the SMF shall send an HTTP "204 No Content" response for a succesfull processing.

If errors occur when processing the HTTP POST request, the SMF shall send an HTTP error response as specified in clause 5.7.

If the feature "ES3XX" is supported, and the SMF determines the received HTTP POST request needs to be redirected, the SMF shall send an HTTP redirect response as specified in clause 6.10.9 of 3GPP TS 29.500 [4].