Session management method and device, electronic equipment and storage medium

By directly obtaining the target service diversion rules from the pre-acquisitioned service diversion rules when the private network terminal session is established, the problem of excessive signaling and improper address conflict handling in the prior art is solved, and lower latency and higher user experience are achieved.

CN119815576APending Publication Date: 2025-04-11ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311316426.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-11
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

In the prior art, when the session is established in the private network terminal, the interaction trust between the session management function and the policy control function is too long, resulting in an increase in delay, affecting the user experience, and may cause the private network terminal to be disconnected during address conflict processing.

Method used

By receiving the session establishment request of the private network terminal, the target service diversion rules are obtained from the pre-acquisitioned service diversion rules set based on the private network signing information, the target address segment is parsed and the target address is allocated to the private network terminal to reduce interaction with the policy control function.

Benefits of technology

It reduces the message interaction between the session management function and the policy control function, reduces the delay in session establishment of private network terminals, reduces the probability of disconnection caused by address conflicts, and improves the user's experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119815576A_ABST
    Figure CN119815576A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a session management method and device, electronic equipment and a storage medium, and relates to the technical field of communication. Receiving a session establishment request of a private network terminal, wherein the session establishment request comprises private network subscription information; acquiring a target service offloading rule corresponding to the private network terminal from a service offloading rule set according to the private network subscription information, wherein the service offloading rule set comprises at least one service offloading rule pre-acquired from a policy control function; and analyzing a target address field corresponding to the private network terminal from the target service distribution rule, distributing a target address for the private network terminal in the target address field, and establishing a session for the private network terminal according to the target address. By adopting the mode, the message interaction between the session management function and the strategy control function can be reduced, the session establishment time delay of the private network terminal is reduced, the probability of offline of the private network terminal caused by address conflict is reduced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, electronic device and storage medium for session management. Background Art

[0002] With the continuous advancement and development of the digitalization and intelligence of enterprise private networks, wireless communication networks are increasingly being used in private network scenarios (such as enterprise private networks). In private network scenarios, it is necessary to control the address segment allocated to private network terminals to be a dedicated address segment, that is, it is necessary to avoid allocating addresses to ordinary terminals in the dedicated address segment.

[0003] The core network equipment can be used to allocate dedicated address segments for private network terminals. Taking the 5G communication system as an example, the core network equipment can include AMF (Access and Mobility Management Function), SMF (Session Management Function), PCF (Policy Control Function) and UPF (User Plane Function). Figure 1 A flow chart showing a method for session management provided in the related art is shown as follows: Figure 1 As shown, the method comprises the following steps:

[0004] In step 100, a terminal (eg, a private network terminal) sends a session establishment request to an access and mobility management function, wherein the session establishment request may include private network subscription information.

[0005] In step 101, the access and mobility management function sends a session management context request to the session management function, wherein the session management context request includes private network subscription information. In step 102, the session management function sends a session management context response to the access and mobility management function.

[0006] In step 103, the session management function sends a service diversion rule request to the policy control function, wherein the service diversion rule request includes the terminal identifier of the private network terminal and the private network subscription information.

[0007] In step 104, the policy control function sends a service diversion rule response to the session management function according to the private network subscription information of the private network terminal, wherein the service diversion rule response includes the service diversion rule of the private network terminal.

[0008] In step 105, the session management function performs address conflict prevention processing according to the service diversion rules in the policy control response. For example, if it is determined that the address allocated to the private network terminal does not comply with the diversion rules, the address is re-allocated to the private network terminal according to the service diversion rules.

[0009] In step 106, a session establishment process is initiated.

[0010] It should be noted that for the sake of clarity and conciseness, some processes are not shown in the above process, such as the step in which the terminal initiates a session establishment request through the base station, the step in which the access and mobility management function selects the session management function, and the step in which the session management function selects the user plane function after receiving the service diversion rule.

[0011] The inventor of the present application has noticed that although the session management method in the related art can partially solve the problem of allocating private network address segments, it has the following disadvantages:

[0012] 1. When each private network terminal establishes a session, the session management function and the policy control function need to interact to obtain the service diversion rules. The private network address segment information included in the service diversion rules may include multiple formats and may have a lot of content, resulting in the signaling of the interaction between the session management function and the policy control function being too long, and may even be truncated due to being too long, resulting in a longer delay in obtaining the service diversion rules. In addition, a large number of private network terminal interaction signaling will affect the transmission performance.

[0013] 2. Since there is no constraint on the order in which the session management function obtains the service diversion rules from the policy control function and allocates addresses to the terminals in the related technology, if the session management function has already allocated an address to the private network terminal when receiving the service diversion rules, it may be necessary to reallocate the address to the user when handling address conflicts. Since the delay in obtaining the service diversion rules is long, the probability of the private network terminal being disconnected due to address conflicts is also high, which seriously affects the user experience. Summary of the invention

[0014] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for session management.

[0015] To solve the above technical problems, the embodiments of the present application are implemented through the following aspects.

[0016] According to a first aspect of an embodiment of the present disclosure, a session management method is provided, which is applied to a session management function, and the method includes:

[0017] Receiving a session establishment request from a private network terminal, wherein the session establishment request includes private network subscription information;

[0018] Acquire a target service diversion rule corresponding to the private network terminal from a service diversion rule set according to the private network subscription information, wherein the service diversion rule set includes at least one service diversion rule pre-acquired from a policy control function;

[0019] The target address segment corresponding to the private network terminal is parsed from the target service diversion rule, a target address is allocated to the private network terminal within the target address segment, and a session is established for the private network terminal according to the target address.

[0020] According to a second aspect of an embodiment of the present disclosure, a session management method is provided, which is applied to a policy control function, and the method includes:

[0021] Upon receiving a diversion rule subscription request sent by the session management function, obtaining at least one subscription service diversion rule corresponding to the diversion rule subscription request;

[0022] The subscription service diversion rule is sent to the session management function, so that the session management function updates a service diversion rule set according to the subscription service diversion rule, wherein the service diversion rule set includes at least one preset service diversion rule.

[0023] According to a third aspect of an embodiment of the present disclosure, a session management device is provided, which is applied to a session management function, and the device includes:

[0024] A receiving module, configured to receive a session establishment request from a private network terminal, wherein the session establishment request includes private network subscription information;

[0025] an acquisition module, configured to acquire a target service diversion rule corresponding to the private network terminal from a service diversion rule set according to the private network contract information, wherein the service diversion rule set includes at least one service diversion rule pre-acquired from a policy control function;

[0026] The management module is configured to parse the target address segment corresponding to the private network terminal from the target service diversion rule, allocate a target address to the private network terminal within the target address segment, and establish a session for the private network terminal according to the target address.

[0027] According to a fourth aspect of an embodiment of the present disclosure, a session management device is provided, which is applied to a policy control function, and the device includes:

[0028] An acquisition module is configured to, upon receiving a diversion rule subscription request sent by a session management function, acquire at least one subscription service diversion rule corresponding to the diversion rule subscription request;

[0029] The sending module is configured to send the subscription service diversion rule to the session management function, so that the session management function updates a service diversion rule set according to the subscription service diversion rule, wherein the service diversion rule set includes at least one preset service diversion rule.

[0030] According to a fifth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, wherein the computer executable instructions, when executed by the processor, implement the session management method provided in the first aspect or the second aspect.

[0031] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method for session management provided by the first aspect or the second aspect is implemented.

[0032] The technical solution provided by the embodiment of the present disclosure is as follows: receiving a session establishment request from a private network terminal, the session establishment request includes private network contract information; obtaining a target service diversion rule corresponding to the private network terminal from a service diversion rule set according to the private network contract information, the service diversion rule set includes at least one service diversion rule pre-acquired from a policy control function; parsing a target address segment corresponding to the private network terminal from the target service diversion rule, assigning a target address to the private network terminal within the target address segment, and establishing a session for the private network terminal according to the target address. The above method can reduce the message interaction between the session management function and the policy control function, reduce the delay in establishing a private network terminal session, reduce the probability of disconnection of the private network terminal due to address conflicts, and improve the user experience.

[0033] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

[0034] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0036] Figure 1 A flow chart showing a method for session management provided in the related art;

[0037] Figure 2 A schematic diagram showing a flow chart of a method for session management provided by an embodiment of the present application;

[0038] Figure 3 Another flowchart of the session management method provided in the embodiment of the present application is shown;

[0039] Figure 4 Another flowchart of the session management method provided in the embodiment of the present application is shown;

[0040] Figure 5 A schematic diagram showing a flow chart of a method for session management provided by an embodiment of the present application;

[0041] Figure 6 Another flowchart of the session management method provided in the embodiment of the present application is shown;

[0042] Figure 7 Another flowchart of the session management method provided in the embodiment of the present application is shown;

[0043] Figure 8 Another flowchart of the session management method provided in the embodiment of the present application is shown;

[0044] Fig. 9 A block diagram showing a session management device provided in an embodiment of the present application;

[0045] Fig.10 A block diagram showing another session management device provided in an embodiment of the present application;

[0046] Fig.11 A block diagram showing a session management device provided in an embodiment of the present application;

[0047] Fig.12 A block diagram showing another session management device provided in an embodiment of the present application;

[0048] Fig.13 A schematic diagram of the hardware structure of an electronic device for executing the session management method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.

[0050] First, some necessary explanations are given on the professional terms used in this application.

[0051] A session refers to a connection established between a terminal and a data network through a wireless communication system for data exchange. Taking the 5G communication system as an example, a session is also called a PDU Session. Each PDU session includes a data route on the user plane represented by an address.

[0052] A private network is a private network virtually established by an operator for private network customers (such as enterprise customers) in a wireless communication system. The operator can allocate an address segment to each private network terminal so that the private network terminal can normally access the corresponding private network. Taking the 5G communication system as an example, the 5G communication system may include multiple enterprise private networks. Each enterprise private network can be distinguished by DNN (Data Network Name). DNN is used to distinguish the access of different data networks. According to DNN, the session can be diverted and converged to different private network session management functions\private network user plane functions, thereby realizing the directional access of private network terminals. This technology of distinguishing different data networks can also be called network slicing. In the multi-DNN networking mode on the network side, the session management function, as a manager, needs to allocate addresses to private network terminals. If the terminal accesses the public network, the data message is forwarded to the public network through the user plane function. If the private network terminal accesses the private network, the data message is forwarded to the private network user plane function through the user plane function, and then accesses the server of the private network. It should be noted that the private network session management function can be a virtual entity of the session management function entity, and the private network user plane function can also be a virtual entity of the user plane function entity. This application does not impose any restrictions on this.

[0053] Figure 2 A flow chart of a session management method provided in an embodiment of the present application is shown, which is applied to a session management function. The method includes the following steps.

[0054] In step S101, a session establishment request from a private network terminal is received.

[0055] The session establishment request includes private network subscription information.

[0056] Taking the 5G communication system as an example, the session management function can be SMF. SMF can receive the Nsmf_PDUSession_CreateSMContextRequest message sent by AMF, which may include the private network contract information of the private network terminal. The message is sent to SMF by AMF in response to the PDUSession_EstablishmentRequest message sent by the private network terminal. After receiving the message, SMF starts the session establishment of the private network terminal.

[0057] In some embodiments, the private network contract information may include a subnet-level contract or a user-level contract. The subnet-level contract is used to indicate that the subnet identifier of the private network to which the private network terminal has signed a contract is included in the session establishment request. The same subnet identifier may correspond to the same preset diversion service rule, and different subnet identifiers may correspond to different preset diversion service rules. The user-level contract is used to indicate that the service diversion rule corresponding to the private network terminal needs to be obtained according to the terminal identifier. Different private network terminals may correspond to different or the same diversion service rules.

[0058] In some embodiments, the terminal may also implicitly indicate the private network subscription information in the session establishment request. For example, in a 5G communication system, the private network terminal may carry a terminal identifier in the session establishment request. When the session management function determines that the terminal is a private network terminal based on the terminal identifier, the private network subscription information of the private network terminal can be obtained from UDM (Unified Data Management) based on the terminal identifier.

[0059] In step S102, a target service diversion rule corresponding to the private network terminal is obtained from a service diversion rule set according to the private network subscription information.

[0060] The service diversion rule set includes at least one service diversion rule pre-acquired from the policy control function.

[0061] Taking the 5G communication system as an example, the session management function SMF can obtain the service diversion rule set from the policy control function PCF in advance. The service diversion rule set may include at least one service diversion rule identifier and a service diversion rule identifier corresponding to each service diversion rule identifier. For example, the service diversion rule can be stored in the session management unit in the structure of Table 1.

[0062] Table 1

[0063]

[0064]

[0065] Among them, serviceNSSAI, serviceURLNum, serviceURL, serviceDnn and serviceNSSAI in the service diversion rule constitute a service diversion rule. In some embodiments, the service diversion rule may also include one of serviceDnn or serviceNSSAI. Those skilled in the art can understand that there are many possible ways to save the service diversion rule set, such as not saving the total number of service diversion rules, and saving each service diversion rule in the service diversion rule set in a list. Those skilled in the art can also flexibly add or adjust the definition of the service diversion rule according to the example in Table 1.

[0066] The serviceURL in the business diversion rule can be a combination of one or more of a URL (Uniform Resource Locator) address, a FQDN (Fully Qualified Domain Name), and an IP address. Among them, multiple IP addresses can be IP address segments, and IP address segments can be defined in a variety of ways including IP masks. Multiple IP addresses can also be an IP address list, or a combination of an IP address segment and an IP address list. The URL or FQDN can also use a preset wildcard to define the URL or FQDN range that can be allocated to the private network terminal, or it can be a URL list or a FQDN list.

[0067] In some embodiments, the private network subscription information may include a private network subscription identifier, wherein the private network subscription identifier may include a user-level subscription.

[0068] In the case where the private network subscription identifier includes a user-level subscription, the target service diversion rule corresponding to the private network terminal can be obtained from the service diversion rule set through the following steps:

[0069] In step 10, a corresponding service diversion rule identifier is obtained from a policy control function according to the terminal identifier in the session establishment request.

[0070] Taking the 5G communication system as an example, the session management function SMF can send a service diversion rule request message to the policy control function PCF, such as the Npcf_SMPolicyControl_CreateRequest message, and can obtain the service diversion rule identifier corresponding to the private network terminal from the service diversion rule response message of the policy control function, such as the Npcf_SMPolicyControl_CreateResponse message. This allows the session management function to obtain the corresponding service diversion rule from the service diversion rule set according to the service diversion rule identifier.

[0071] In step 11, a target service diversion rule is determined from a service diversion rule set according to the service diversion rule identifier.

[0072] For example, the service diversion rule identifier may be used as mulDnnSessRuleId in Table 1 to obtain the target service diversion rule from the service diversion rule set.

[0073] Since the corresponding business diversion rule is indicated by the business diversion rule identifier in the message interaction between the session management function and the policy control function, compared with directly obtaining the target business diversion rule through the message interaction between the session management function and the policy control function in the related technology, the length of the policy control establishment response message can be greatly reduced, thereby reducing the delay in establishing the private network terminal session, reducing the probability of disconnection of the private network terminal due to address conflicts, and improving the user experience.

[0074] In another embodiment, the private network subscription information includes a private network subscription identifier, wherein the private network subscription identifier includes a subnet-level subscription.

[0075] When the private network subscription identifier includes a subnet-level subscription, the target service diversion rule corresponding to the private network terminal can be obtained from the service diversion rule set through the following steps:

[0076] In step 20, a target service diversion rule is determined from a service diversion rule set according to the subnet identifier in the session establishment request.

[0077] For example, the subnet identifier may be a DNN or a network slice, and the DNN may be used as the serviceDnn in Table 1 to obtain the target service diversion rule from the service diversion rule set. The network slice may also be used as the serviceNSSAI in Table 1 to obtain the target service diversion rule from the service diversion rule set.

[0078] When the private network contract identification includes a subnet-level contract, compared with the related technology of directly obtaining the target service diversion rules through message interaction between the session management function and the policy control function, the session management function can directly obtain the target service diversion rules from the service diversion rule set without the need for message interaction with the policy control function, thereby reducing the delay in establishing the private network terminal session, reducing the probability of private network terminal disconnection due to address conflicts, and avoiding performance problems caused by message interactions between a large number of private network terminals, thereby improving user experience.

[0079] In step S103, the target address segment corresponding to the private network terminal is parsed from the target service diversion rule, a target address is allocated to the private network terminal within the target address segment, and a session is established for the private network terminal according to the target address.

[0080] For example, after the target service diversion rule is obtained, a target address can be allocated to the private network terminal according to the serviceURL in the target service diversion rule. The target address can be any one of a URL address, a FQDN address or an IP address.

[0081] A session is established for the private network terminal according to the target address, so that the private network terminal can access the corresponding private network through the target address.

[0082] By adopting the above method, the message interaction between the session management function and the policy control function can be reduced, the delay in establishing a private network terminal session can be reduced, the probability of the private network terminal being disconnected due to address conflicts can be reduced, and the user experience can be improved.

[0083] In some embodiments, the session establishment request may also implicitly indicate whether the private network contract identifier of the private network terminal is a subnet-level contract or a user-level contract. For example, when the subnet identifier is equal to a preset subnet identifier reserved value, the private network contract identifier is determined to be a user-level contract. When the subnet identifier is not equal to the subnet identifier reserved value, the private network contract identifier is determined to be a subnet-level contract.

[0084] Figure 3 Another flow chart of the session management method provided in the embodiment of the present application is shown, which is applied to the session management function, such as Figure 3 As shown, before receiving the session establishment request from the private network terminal, the method may further include the following steps.

[0085] In step S104, a diversion rule subscription request is sent to the policy control function.

[0086] Still taking the 5G communication system as an example, the session management function SMF can send a diversion rule subscription request to the policy control function PCF. For example, the diversion rule subscription request can be the Npcf_EventExposure_Subscribe Request message defined in the 3GPP protocol. On the basis of the 3GPP protocol standard, a new subscription event type MULDNN_RULE_CH can be added to characterize the subscription service diversion rule. Those skilled in the art can understand that the diversion rule subscription request can also reuse other standard messages defined by the 3GPP protocol, and can also use newly defined standard messages, which is not limited in this application.

[0087] In some possible implementations, one or more of the following possible technical approaches may be used to improve the flexibility and efficiency of obtaining diversion business rule subscriptions.

[0088] Method 1: The subscription request for diversion rule subscription may include a subscription policy, which may include immediate triggering, delayed triggering or off-peak triggering. Immediate triggering indicates that the policy control function immediately sends a diversion rule subscription response to the session management function upon receiving the diversion rule subscription request; delayed triggering indicates that the policy control function sends a diversion rule subscription response to the session management function after a specified delay after receiving the diversion rule subscription request; off-peak triggering indicates that the policy control function sends a diversion rule subscription response to the session management function at a predetermined off-peak time (e.g., early in the morning) after receiving the diversion rule subscription request.

[0089] Method 2: The diversion rule subscription request may include the network slice\DNN, so that the policy control function can flexibly send the service diversion rules corresponding to the network slice\DNN to the session management function after receiving the diversion rule subscription request.

[0090] In step S105, the subscription service diversion rule corresponding to the diversion rule subscription request is obtained from the policy control function, and the service diversion rule set is updated according to the subscription service diversion rule.

[0091] Still taking the 5G communication system as an example, the session management function SMF can obtain the subscribed service diversion rules from the diversion rule subscription response message sent by the policy control function. The diversion rule subscription response message can be the Npcf_EventExposure_EventNotification message defined in the 3GPP protocol.

[0092] When there is no service diversion rule set in the session management function, the subscription service diversion rule can be used as the service diversion rule set. When there is a service diversion rule set in the session management function, the service diversion rule set can be updated according to the subscription service diversion rule.

[0093] By adopting the above-mentioned technical method, the subscription service diversion rules can be obtained from the policy control function, and the service diversion rule set can be updated according to the subscription service diversion rules, so as to keep the service diversion rule set synchronized with the policy control function. The updated service diversion rule set can be used to obtain the service diversion rules for private network users, which can reduce the message interaction between the session management function and the policy control function, reduce the delay in establishing private network terminal sessions, reduce the probability of private network terminals being disconnected due to address conflicts, and improve user experience.

[0094] Figure 4 Another flow chart of the session management method provided in the embodiment of the present application is shown, which is applied to the session management function, such as Figure 4 As shown, before receiving the session establishment request from the private network terminal, the method may further include the following steps.

[0095] In step S106, the push service diversion rule is obtained from the policy control function, and the service diversion rule set is updated according to the push service diversion rule.

[0096] Among them, the push service diversion rule is the service diversion rule that the policy control function actively pushes according to the preset push conditions. Taking the 5G communication system as an example, the push service diversion rule can be obtained from the policy control function through the Npcf_EventExposure_EventNotification message defined in the 3GPP protocol. A newly defined standard message can also be used, and this application does not limit this.

[0097] The preset push condition may be any of the following conditions. In some possible implementations, different push conditions may be preset for different network slices\DNNs.

[0098] Condition 1: Reach the preset push cycle.

[0099] Condition 2: The cumulative number of updated business diversion rules after the last push is greater than or equal to the preset first number threshold.

[0100] Condition 3: The cumulative number of service diversion rules added or deleted after the last push is greater than or equal to the preset second number threshold.

[0101] Condition 4: The user triggers a preset operation, which may be, for example, the user clicking a push button.

[0102] By adopting the above-mentioned technical method, the push service diversion rules can be obtained from the policy control function, and the service diversion rule set can be updated according to the push service diversion rules, so as to keep the service diversion rule set synchronized with the policy control function. The updated service diversion rule set is used to obtain the service diversion rules for private network users, which can reduce the message interaction between the session management function and the policy control function, reduce the delay in establishing private network terminal sessions, reduce the probability of private network terminals being disconnected due to address conflicts, and improve user experience.

[0103] Figure 5 A flow chart of a session management method provided in an embodiment of the present application is shown, which is applied to a policy control function, such as Figure 5 As shown, the method may include the following steps.

[0104] In step S201, upon receiving a diversion rule subscription request sent by a session management function, at least one subscription service diversion rule corresponding to the diversion rule subscription request is obtained.

[0105] Still taking the 5G communication system as an example, the policy control function PCF can receive a diversion rule subscription request from the session management function SMF. For example, the diversion rule subscription request can be the Npcf_EventExposure_Subscribe Request message defined in the 3GPP protocol. On the basis of the 3GPP protocol standard, a new subscription event type MULDNN_RULE_CH can be added to characterize the subscription service diversion rule. Those skilled in the art can understand that the diversion rule subscription request can also reuse other standard messages defined by the 3GPP protocol, and can also use newly defined standard messages, which is not limited in this application.

[0106] In some possible implementations, one or more of the following possible technical approaches may be used to improve the flexibility and efficiency of obtaining diversion business rule subscriptions.

[0107] Method 1: The subscription request for diversion rule subscription may include a subscription policy, which may include immediate triggering, delayed triggering or off-peak triggering. Immediate triggering indicates that the policy control function immediately sends a diversion rule subscription response to the session management function upon receiving the diversion rule subscription request; delayed triggering indicates that the policy control function sends a diversion rule subscription response to the session management function after a specified delay after receiving the diversion rule subscription request; off-peak triggering indicates that the policy control function sends a diversion rule subscription response to the session management function at a predetermined off-peak time (e.g., early in the morning) after receiving the diversion rule subscription request.

[0108] Method 2: The diversion rule subscription request may include the network slice\DNN, so that the policy control function can flexibly send the service diversion rules corresponding to the network slice\DNN to the session management function after receiving the diversion rule subscription request.

[0109] After receiving the diversion rule subscription request sent by the session management function, the policy control function may obtain at least one subscription service diversion rule corresponding to the diversion rule subscription request.

[0110] In step S202, the subscription service diversion rule is sent to the session management function, so that the session management function updates the service diversion rule set according to the subscription service diversion rule.

[0111] The service diversion rule set includes at least one service diversion rule pre-acquired from the policy control function.

[0112] Still taking the 5G communication system as an example, the policy control function PCF can send the subscription service diversion rules to the session management function SMF through the diversion rule subscription response message. The diversion rule subscription response message can be the Npcf_EventExposure_EventNotification message defined in the 3GPP protocol.

[0113] By adopting the above-mentioned technical method, the subscription service diversion rules can be sent in response to the request of the session management function, so that the session management function updates the service diversion rule set according to the subscription service diversion rules, thereby keeping the service diversion rule set synchronized with the policy control function, and using the updated service diversion rule set to obtain the service diversion rules for private network users, which can reduce the message interaction between the session management function and the policy control function, reduce the delay in establishing private network terminal sessions, reduce the probability of private network terminals being disconnected due to address conflicts, and improve user experience.

[0114] Figure 6 Another flow chart of the session management method provided in the embodiment of the present application is shown, which is applied to the policy control function, such as Figure 6 As shown, the method may also include the following steps.

[0115] In step S203, a service diversion rule request sent by the session management function is received.

[0116] The service diversion rule request includes a terminal identifier of the private network terminal. In some embodiments, the service diversion rule request may include a private network contract identifier indicating that the private network terminal is a user-level contract.

[0117] Taking the 5G communication system as an example, the policy control function PCF can receive a service diversion rule request sent by the session management function SMF, such as the Npcf_SMPolicyControl_CreateRequest message, and the service diversion rule request includes the terminal identifier of the private network terminal.

[0118] In step S204, the service diversion rule identifier corresponding to the private network terminal is determined according to the terminal identifier.

[0119] In some possible implementations, the policy control function PCF may obtain and save the service diversion rules subscribed by the private network terminal from the UDM, and obtain the service diversion rule identifier from the service diversion rules subscribed by the private network terminal according to the terminal identifier.

[0120] In step S205, the service diversion rule identifier is sent to the session management function, so that the session management function determines the target service diversion rule from the service diversion rule set according to the service diversion rule identifier.

[0121] Taking the 5G communication system as an example, the policy control function PCF sends a service diversion rule identifier through a service diversion rule response message, such as the Npcf_SMPolicyControl_CreateResponse message. This allows the session management function to obtain the corresponding service diversion rule from the service diversion rule set according to the service diversion rule identifier. For example, the session management function can use the service diversion rule identifier as the mulDnnSessRuleId in Table 1 to obtain the target service diversion rule from the service diversion rule set.

[0122] Since the corresponding business diversion rule is indicated by the business diversion rule identifier in the message interaction between the session management function and the policy control function, compared with directly obtaining the target business diversion rule through the message interaction between the session management function and the policy control function in the related technology, the length of the policy control establishment response message can be greatly reduced, thereby reducing the delay in establishing the private network terminal session, reducing the probability of disconnection of the private network terminal due to address conflicts, and improving the user experience.

[0123] Figure 7 Another flow chart of the session management method provided in the embodiment of the present application is shown, which is applied to the policy control function, such as Figure 7 As shown, the method may also include the following steps.

[0124] In step S206, when the preset push condition is met, the push service diversion rule is pushed to the session management function, so that the session management function updates the service diversion rule set according to the push service diversion rule.

[0125] Among them, the push service diversion rule is the service diversion rule that the policy control function actively pushes according to the preset push conditions. Taking the 5G communication system as an example, the push service diversion rule can be obtained from the policy control function through the Npcf_EventExposure_EventNotification message defined in the 3GPP protocol. A newly defined standard message can also be used, and this application does not limit this.

[0126] The preset push condition may be any of the following conditions. In some possible implementations, different push conditions may be preset for different network slices\DNNs.

[0127] Condition 1: Reach the preset push cycle.

[0128] Condition 2: The cumulative number of updated business diversion rules after the last push is greater than or equal to the preset first number threshold.

[0129] Condition 3: The cumulative number of service diversion rules added or deleted after the last push is greater than or equal to the preset second number threshold.

[0130] Condition 4: The user triggers a preset operation, which may be, for example, the user clicking a push button.

[0131] By adopting the above-mentioned technical method, the policy control function can push service diversion rules to the session management function, so that the session management function can update the service diversion rule set according to the pushed service diversion rules, thereby keeping the service diversion rule set synchronized with the policy control function, and using the updated service diversion rule set to obtain the service diversion rules for private network users, which can reduce the message interaction between the session management function and the policy control function, reduce the delay in establishing private network terminal sessions, reduce the probability of private network terminals being disconnected due to address conflicts, and improve user experience.

[0132] Figure 8 Another flow chart of the session management method provided in the embodiment of the present application is shown as follows: Figure 8 As shown, the method may include the following steps.

[0133] In step 200, a terminal (eg, a private network terminal) sends a session establishment request to an access and mobility management function, wherein the session establishment request may include private network subscription information.

[0134] In step 201, the access and mobility management function sends a session management context request to the session management function, wherein the session management context request includes private network subscription information. In step 202, the session management function sends a session management context response to the access and mobility management function.

[0135] In step 203, the session management function sends a service diversion rule request to the policy control function, wherein the service diversion rule request includes the terminal identifier of the private network terminal, and the private network subscription identifier of the private network terminal includes a user-level subscription.

[0136] Different from step 103, steps 203 and 204 are optional steps. When the private network subscription identifier of the private network terminal includes a subnet-level subscription, steps 203 and 204 may not be required.

[0137] In step 204, the policy control function sends a service diversion rule response to the session management function according to the private network subscription information of the private network terminal, wherein the service diversion rule response includes the service diversion rule identifier of the private network terminal.

[0138] Different from step 104, when the private network contract identifier of the private network terminal includes a user-level contract, the service diversion rule response includes the service diversion rule identifier of the private network terminal, rather than the specific service diversion rule of the private network terminal in step 104.

[0139] In step 205, the session management function performs address conflict prevention processing according to the service diversion rules in the policy control response. For example, if it is determined that the address allocated to the private network terminal does not comply with the diversion rules, the address is reassigned to the private network terminal according to the service diversion rules.

[0140] In step 206, the session establishment process is initiated.

[0141] By adopting the above method, the message interaction between the session management function and the policy control function can be reduced, the delay in establishing a private network terminal session can be reduced, the probability of the private network terminal being disconnected due to address conflicts can be reduced, and the user experience can be improved.

[0142] Fig. 9 A block diagram of a session management device provided in an embodiment of the present application is shown, which is applied to session management functions, such as Fig. 9 As shown, the session management device 300 includes:

[0143] The receiving module 310 is configured to receive a session establishment request from a private network terminal, where the session establishment request includes private network subscription information;

[0144] The acquisition module 320 is configured to acquire a target service diversion rule corresponding to the private network terminal from a service diversion rule set according to the private network contract information, wherein the service diversion rule set includes at least one service diversion rule pre-acquired from the policy control function;

[0145] The management module 330 is configured to parse the target address segment corresponding to the private network terminal from the target service diversion rule, allocate a target address to the private network terminal within the target address segment, and establish a session for the private network terminal according to the target address.

[0146] Optionally, the private network contract information includes a private network contract identifier, and the private network contract identifier includes a user-level contract. The acquisition module 320 is further configured to:

[0147] When the private network subscription identifier includes a user-level subscription, the corresponding service diversion rule identifier is obtained from the policy control function according to the terminal identifier in the session establishment request, and the target service diversion rule is determined from the service diversion rule set according to the service diversion rule identifier.

[0148] Optionally, the private network contract information includes a private network contract identifier, the private network contract identifier includes a subnet-level contract, and the acquisition module 320 is further configured to:

[0149] In the case where the private network subscription identifier includes a subnet-level subscription, the target service diversion rule is determined from a service diversion rule set according to the subnet identifier in the session establishment request.

[0150] Fig.10A block diagram of another session management device provided in an embodiment of the present application is shown, which is applied to session management functions, such as Fig.10 As shown, the session management device 300 includes:

[0151] The updating module 340 is configured to send a diversion rule subscription request to the policy control function; obtain the subscribed service diversion rule corresponding to the diversion rule subscription request from the policy control function, and update the service diversion rule set according to the subscribed service diversion rule.

[0152] Optionally, the update module 340 is further configured to obtain a push service diversion rule from the policy control function, and update the service diversion rule set according to the push service diversion rule. The push service diversion rule is a service diversion rule actively pushed by the policy control function according to preset push conditions.

[0153] The device 300 provided in the embodiment of the present application can execute each method in the foregoing method embodiment and realize the functions and beneficial effects of each method in the foregoing method embodiment, which will not be repeated here.

[0154] Fig.11 A block diagram of a session management device provided in an embodiment of the present application is shown, which is applied to policy control functions, such as Fig.11 As shown, the session management device 400 includes:

[0155] The acquisition module 410 is configured to, upon receiving a diversion rule subscription request sent by the session management function, acquire at least one subscription service diversion rule corresponding to the diversion rule subscription request;

[0156] The sending module 420 is configured to send the subscription service diversion rule to the session management function, so that the session management function updates the service diversion rule set according to the subscription service diversion rule, and the service diversion rule set includes at least one service diversion rule pre-acquired from the policy control function.

[0157] Fig.12 A block diagram of another session management device provided in an embodiment of the present application is shown, which is applied to policy control functions, such as Fig.12 As shown, the session management apparatus 400 further includes:

[0158] The processing module 430 is configured to receive a service diversion rule request sent by a session management function, where the service diversion rule request includes a terminal identifier of a private network terminal, and the private network contract identifier of the private network terminal includes a user-level contract; determine a service diversion rule identifier corresponding to the private network terminal according to the terminal identifier; and send the service diversion rule identifier to the session management function, so that the session management function determines a target service diversion rule from a service diversion rule set according to the service diversion rule identifier.

[0159] Optionally, the sending module 420 is further configured to push the push service diversion rule to the session management function when a preset push condition is met, so that the session management function updates the service diversion rule set according to the push service diversion rule.

[0160] The device 400 provided in the embodiment of the present application can execute each method in the foregoing method embodiment and realize the functions and beneficial effects of each method in the foregoing method embodiment, which will not be repeated here.

[0161] Fig.13 A schematic diagram of the hardware structure of an electronic device implementing the embodiment of the present application is shown as follows: Fig.13 As shown, at the hardware level, the electronic device includes a processor, and optionally, an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.

[0162] The processor, the network interface and the memory may be interconnected through an internal bus, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0163] The memory stores the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0164] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a device for locating the target user at the logical level. The processor executes the program stored in the memory and specifically performs: Figure 2-8 The method disclosed in the illustrated embodiment realizes the functions and beneficial effects of each method described in the foregoing method embodiments, which will not be described in detail here.

[0165] The above application Figure 2-8The method disclosed in the illustrated embodiment may be implemented in a processor or by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0166] The electronic device can also execute the methods described in the foregoing method embodiments, and realize the functions and beneficial effects of the methods described in the foregoing method embodiments, which will not be repeated here.

[0167] Of course, in addition to software implementation, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0168] The embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device executes Figure 2-8 The method disclosed in the illustrated embodiment realizes the functions and beneficial effects of each method described in the foregoing method embodiments, which will not be described in detail here.

[0169] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0170] Furthermore, an embodiment of the present application also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the following process is implemented: Figure 2-8 The method disclosed in the illustrated embodiment realizes the functions and beneficial effects of each method described in the foregoing method embodiments, which will not be described in detail here.

[0171] In short, the above is only a preferred embodiment of the present application and does not limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0172] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0173] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0174] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0175] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Claims

1. A method for session management, characterized in that: Applied to the session management function, the method comprises: Receiving a session establishment request from a private network terminal, wherein the session establishment request includes private network subscription information; Acquire a target service diversion rule corresponding to the private network terminal from a service diversion rule set according to the private network subscription information, wherein the service diversion rule set includes at least one service diversion rule pre-acquired from a policy control function; The target address segment corresponding to the private network terminal is parsed from the target service diversion rule, a target address is allocated to the private network terminal within the target address segment, and a session is established for the private network terminal according to the target address.

2. The method according to claim 1, characterized in that The private network contract information includes a private network contract identifier, and the private network contract identifier includes a user-level contract; In a case where the private network subscription identifier includes a user-level subscription, acquiring a target service diversion rule corresponding to the private network terminal from a service diversion rule set includes: The corresponding service diversion rule identifier is obtained from the policy control function according to the terminal identifier in the session establishment request, and the target service diversion rule is determined from the service diversion rule set according to the service diversion rule identifier.

3. The method according to claim 1, characterized in that The private network contract information includes a private network contract identifier, and the private network contract identifier includes a subnet-level contract; In the case where the private network subscription identifier includes a subnet-level subscription, the acquiring the target service diversion rule corresponding to the private network terminal from the service diversion rule set includes: The target service diversion rule is determined from the service diversion rule set according to the subnet identifier in the session establishment request.

4. The method according to any one of claims 1 to 3, characterized in that Before receiving the session establishment request from the private network terminal, the method further includes: Sending a diversion rule subscription request to the policy control function; The subscription service diversion rule corresponding to the diversion rule subscription request is obtained from the policy control function, and the service diversion rule set is updated according to the subscription service diversion rule.

5. The method according to any one of claims 1 to 3, characterized in that: Before receiving the session establishment request from the private network terminal, the method further includes: The push service diversion rule is obtained from the policy control function, and the service diversion rule set is updated according to the push service diversion rule. The push service diversion rule is a service diversion rule actively pushed by the policy control function according to preset push conditions.

6. A method for session management, characterized in that: Applied to the policy control function, the method comprises: Upon receiving a diversion rule subscription request sent by the session management function, obtaining at least one subscription service diversion rule corresponding to the diversion rule subscription request; The subscription service diversion rule is sent to the session management function, so that the session management function updates a service diversion rule set according to the subscription service diversion rule, wherein the service diversion rule set includes at least one service diversion rule pre-acquired from the policy control function.

7. The method according to claim 6, characterized in that The method further comprises: receiving a service diversion rule request sent by the session management function, wherein the service diversion rule request includes a terminal identifier of a private network terminal; Determine the service diversion rule identifier corresponding to the private network terminal according to the terminal identifier; The service diversion rule identifier is sent to the session management function, so that the session management function determines the target service diversion rule from the service diversion rule set according to the service diversion rule identifier.

8. The method according to claim 6 or 7, characterized in that: The method further comprises: When the preset push conditions are met, the push service diversion rules are pushed to the session management function, so that the session management function updates the service diversion rule set according to the push service diversion rules.

9. A session management device, characterized in that: Applied to the session management function, the device comprises: A receiving module, configured to receive a session establishment request from a private network terminal, wherein the session establishment request includes private network subscription information; an acquisition module, configured to acquire a target service diversion rule corresponding to the private network terminal from a service diversion rule set according to the private network contract information, wherein the service diversion rule set includes at least one service diversion rule pre-acquired from a policy control function; The management module is configured to parse the target address segment corresponding to the private network terminal from the target service diversion rule, allocate a target address to the private network terminal within the target address segment, and establish a session for the private network terminal according to the target address.

10. A session management device, characterized in that: Applied to the policy control function, the device comprises: An acquisition module is configured to, upon receiving a diversion rule subscription request sent by a session management function, acquire at least one subscription service diversion rule corresponding to the diversion rule subscription request; The sending module is configured to send the subscription service diversion rule to the session management function, so that the session management function updates the service diversion rule set according to the subscription service diversion rule, and the service diversion rule set includes at least one service diversion rule pre-acquired from the policy control function.

11. An electronic device, comprising: processor; as well as A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor is used to perform the steps of the method for session management described in any one of claims 1 to 5; or, when the executable instructions are executed, the processor is used to perform the steps of the method for session management described in any one of claims 6 to 8.

12. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including multiple applications, enables the electronic device to perform the steps of the service quality assurance method described in any one of claims 1-5; or, when executed by an electronic device including multiple applications, enables the electronic device to perform the steps of the session management method described in any one of claims 6-8.