Session establishment method and device, storage medium and electronic device
In the 5G core network system, SMF obtains the contract data of the target terminal and determines the target service rules, solving the bandwidth consumption problem caused by SMF carrying service rules every time the session establishment request is sent to the UPF, and the effect of reducing bandwidth consumption and improving network quality is achieved.
Patent Information
- Application Number
- CN202311784014.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2025-06-24
AI Technical Summary
In the 5G core network system, each time SMF sends a session establishment request to UPF, it needs to carry the terminal to access the service rules of the corresponding packet data network, resulting in severe consumption of the bearer network bandwidth.
The session management function SMF of the core network obtains the contract data of the target terminal, determines the target UPF and the target business rules based on the contract data, and when the target business rules are located in the business rules set, the target business rules are no longer sent to the target UPF.
It reduces the number of times SMF sends service rules to UPF, reduces the bandwidth consumption of the bearer network, and improves the overall network quality.
Smart Images

Figure CN120201491A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of communications. Specifically, the present application relates to a session establishment method, an apparatus, a storage medium, and an electronic device. Background Art
[0002] As Figure 1 shown, the 5G Core Network (abbreviated as 5GC) system supports that the same user terminal can access public network services and private network services without perception in the local area and the roaming area. When accessing private network services, the Session Management Function (SMF) needs to obtain user subscription information from the Unified Data Management (UDM), and then the SMF selects a User Plane Function (UPF) that supports intelligent traffic splitting (intelligent traffic splitting means that the end user uses a general Data Network Name (DNN) to access multiple Packet Data Networks (PDNs) simultaneously). After selecting the UPF, the SMF sends a policy acquisition request to the Policy Control Function (PCF). After receiving the request message, the PCF sends an intelligent traffic splitting rule (that is, the service rule for the terminal to access the PDN using the general DNN) to the SMF. The SMF caches the intelligent traffic splitting rule sent by the PCF, and then establishes a private network session. When establishing the private network session, the corresponding intelligent traffic splitting rule is sent to the UPF. The specific process of sending the intelligent traffic splitting rule is as Figure 2 shown. The steps of sending the intelligent traffic splitting service rule are as Figure 2 shown, including:
[0003] 201: The SMF obtains user subscription data from the UDM;
[0004] 202: The SMF selects a UPF that supports intelligent traffic splitting;
[0005] 203: The SMF sends a policy acquisition request message to the PCF;
[0006] 204: The PCF sends an intelligent traffic splitting rule to the SMF;
[0007] 205: The SMF initiates a public network session establishment request to the UPF, carrying the intelligent traffic splitting rule.
[0008] When different terminals access the same private network (i.e., a specific Packet Data Network) service, the above process is repeated, as Figure 3As shown in the figure. It can be seen that for the same private network service rule, it will be sent multiple times between the SMF and the UPF. If there are N users accessing the same private network service, the total number of times the service rule (i.e., the service package in Figure 3 is sent between the SMF and the UPF is N times. If the SMF supports M private network services at the same time and each private network service has N users, the total number of rule transmissions between the SMF and the UPF is: N * M, which seriously consumes the bearer network bandwidth.
[0009] In the related art, each time the SMF sends a session establishment request to the UPF, it needs to carry the service rule for the terminal to access the corresponding packet data network, resulting in a serious consumption of the bearer network bandwidth. At present, no effective solution has been proposed. Summary of the Invention
[0010] The embodiments of the present application provide a session establishment method, device, storage medium, and electronic device to at least solve the problem in the related art that each time the SMF sends a session establishment request to the UPF, it needs to carry the service rule for the terminal to access the corresponding packet data network, resulting in a serious consumption of the bearer network bandwidth.
[0011] According to an embodiment of the present application, a session establishment method is provided, including: obtaining the subscription data of a target terminal through the session management function SMF of the core network, where the subscription data includes: information on the packet data network PDN that the target terminal is allowed to access using the general network data name DNN; determining a target user plane function UPF and the target service rule corresponding to the PDN according to the subscription data; and when the target service rule is in the service rule set, sending a session establishment request corresponding to the target terminal to the target UPF, where the session establishment request does not carry the target service rule, and the service rules in the service rule set have been sent to the target UPF before a preset time.
[0012] According to another embodiment of the present application, a session establishment device is provided, including: an obtaining module, configured to obtain the subscription data of a target terminal through the session management function SMF of the core network, where the subscription data includes: information on the packet data network PDN that the target terminal is allowed to access using the general network data name DNN; a determining module, configured to determine a target user plane function UPF and the target service rule corresponding to the PDN according to the subscription data; and a first sending module, configured to send a session establishment request corresponding to the target terminal to the target UPF when the target service rule is in the service rule set, where the session establishment request does not carry the target service rule, and the service rules in the service rule set have been sent to the target UPF before a preset time.
[0013] According to another embodiment of the present application, there is also provided a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0014] According to another embodiment of the present application, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0015] Through the present application, the SMF of the core network obtains the subscription data of the target terminal, determines the target UPF and the target service rule according to the subscription data, and when the target service rule is in the service rule set, the target service rule is no longer sent to the target UPF. Furthermore, when there are multiple terminals accessing a packet data network, the SMF does not need to send the service rule corresponding to the packet data network to the target UPF every time, thereby reducing the bearer network bandwidth consumption and improving the overall network quality. Therefore, it can solve the problem that in the related art, each time the SMF sends a session establishment request to the UPF, it needs to carry the service rule for the terminal to access the corresponding packet data network, resulting in serious consumption of the bearer network bandwidth. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of a scenario where a user terminal accesses public network services and private network services;
[0017] Figure 2 It is a flowchart of a session establishment method in the related art;
[0018] Figure 3 It is a schematic diagram of the SMF in the related art sending a service package to the UPF;
[0019] Figure 4 It is a hardware structure block diagram of a mobile terminal of a session establishment method according to an embodiment of the present application;
[0020] Figure 5 It is a flowchart (one) of a session establishment method according to an embodiment of the present application;
[0021] Figure 6 It is a schematic diagram of the SMF sending a service package to the UPF according to an embodiment of the present application;
[0022] Figure 7 It is another schematic diagram of a scenario where a user terminal accesses public network services and private network services;
[0023] Figure 8 It is a flowchart (two) of a session establishment method according to an embodiment of the present application;
[0024] Figure 9 is a flowchart (III) of a session establishment method according to an embodiment of the present application;
[0025] Figure 10 is a flowchart (IV) of a session establishment method according to an embodiment of the present application;
[0026] Figure 11 is a schematic structural diagram of a session establishment method device according to an embodiment of the present application. Detailed implementation manners
[0027] In the following, embodiments of the present application will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments.
[0028] It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence.
[0029] The method embodiments provided in the embodiments of the present application can be executed on a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 4 is a hardware structure block diagram of a mobile terminal of a session establishment method according to an embodiment of the present application. As Figure 4 shown, the mobile terminal may include one or more ( Figure 4 only one is shown in the figure) processors 402 (the processor 402 may include, but is not limited to, a processing device such as a microprocessor (Central Processing Unit, MCU) or a field programmable gate array (Field Programmable Gate Array, FPGA)) and a memory 404 for storing data. Among them, the above-mentioned mobile terminal may further include a transmission device 406 for communication functions and an input / output device 408. Those of ordinary skill in the art can understand that Figure 4 the structure shown is only schematic and does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may further include more or fewer components than Figure 4 shown in the figure, or have a different configuration from Figure 4 shown in the figure.
[0030] The memory 404 can be used to store computer programs, such as software programs and modules of application software, like the computer program corresponding to the session establishment method in the embodiments of the present application. The processor 402 executes various functional applications and data processing by running the computer programs stored in the memory 404, that is, the above-mentioned method is implemented. The memory 404 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 404 may further include a memory remotely disposed relative to the processor 402, and these remote memories can be connected to the mobile terminal through a network. Examples of the above-mentioned network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and their combinations.
[0031] The transmission device 406 is used to receive or send data via a network. Specific examples of the above-mentioned network may include the wireless network provided by the communication provider of the mobile terminal. In one instance, the transmission device 406 includes a network adapter (abbreviated as NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 406 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0032] For better understanding, the following briefly explains the relevant terms involved in the present application:
[0033] General DNN: The public DNN used by users to access Internet services. Usually, the terminal supports it by default, and users do not need to set it separately on the terminal device.
[0034] Public network service: Refers to the service that the ToC user terminal accesses the Internet. Usually, the general DNN is used.
[0035] Private network service: Refers to the service that is only open to specific groups of people in ToB enterprises, institutions, and government systems to access their private networks, such as campuses, hospitals, governments, culture and tourism, etc. Such services usually use dedicated DNNs to carry, and there is a business demand for cross-province roaming.
[0036] DNS: The English abbreviation of Domain Name System, which is a system used on the Internet to resolve domain names into IP addresses.
[0037] AMF: The English abbreviation of Authentication Management Function, which is used to authenticate and authorize users to ensure that only authorized users can access the system or resources.
[0038] MME: The English abbreviation of Mobility Management Entity. It is a key component of the core network, responsible for functions such as mobility management, session management, and security control.
[0039] NRF: The English abbreviation of Network Resource Function. It is an important component in the 5G core network architecture, responsible for managing and allocating radio resources to ensure the efficient operation and resource utilization of the network.
[0040] GW: The English abbreviation of Gateway. It is a bridge connecting devices of different networks or different protocols.
[0041] In this embodiment, a session establishment method is provided. Figure 5 It is a flowchart of session establishment according to an embodiment of the present application, as Figure 5 shown. The process includes the following steps S502 - S506:
[0042] Step S502: Obtain the subscription data of the target terminal through the session management function SMF of the core network. Among them, the subscription data includes: information on the packet data network PDN that the target terminal is allowed to access using the general network data name DNN.
[0043] It should be noted that the above step S502 is executed by the SMF after determining that the target terminal joins the core network.
[0044] In an exemplary embodiment, the above obtaining the subscription data of the target terminal through the session management function SMF of the core network can be implemented through the following steps S11 - S12:
[0045] Step S11: Send a data request message to the Unified Data Management (abbreviated as UDM) of the core network through the SMF.
[0046] Step S12: Obtain the subscription data sent by the UDM in response to the data request message.
[0047] Step S504: Determine the target user plane function UPF and the target service rules corresponding to the PDN according to the subscription data.
[0048] It should be noted that the target UPF is the UPF in the core network that allows the target terminal to access the PDN using the general DNN, and the target service rules are the service rules for the target terminal to access the PDN using the general DNN.
[0049] In an exemplary embodiment, determining the target service rule corresponding to the PDN according to the subscription data may be implemented through the following steps S21 - S22:
[0050] Step S21: Send a policy acquisition request message for the PDN to the Policy Control Function (PCF) of the core network through the SMF;
[0051] Step S22: Acquire the target service rule sent by the PCF in response to the policy acquisition request message.
[0052] That is to say, the SMF can send a policy acquisition request message to the PCF, and then the PCF sends an intelligent traffic splitting rule to the SMF, where the intelligent traffic splitting rule includes the above - mentioned target service rule.
[0053] Step S506: When the target service rule is in the service rule set, send a session establishment request corresponding to the target terminal to the target UPF, where the session establishment request does not carry the target service rule, and the service rules in the service rule set have been sent to the target UPF before a preset time.
[0054] That is to say, in this application, as long as the SMF determines that the target service rule has been sent to the target UPF before the preset time, there is no need to send the target service rule to the target UPF during the current session establishment process.
[0055] As an optional example, the service rule set is located in the cache of the SMF.
[0056] In an exemplary embodiment, after the above - mentioned step S504, the method further includes the following steps S31 - S32:
[0057] Step S31: When the target service rule is not in the service rule set, send the target service rule to the target UPF and add the target service rule to the service rule set;
[0058] Step S32: Send a session establishment request corresponding to the target terminal to the target UPF.
[0059] It should be noted that in the embodiments of this application, the session establishment requests initiated by the SMF to the UPF do not carry service rules.
[0060] It should be noted that in the embodiments of this application, service rules are only sent before the SMF sends a session establishment request, and the service rules include the target service rule.
[0061] In an exemplary embodiment, the above step S32 includes: after sending the target service rule to the target UPF, when the response information of the target UPF is obtained, sending a session establishment request corresponding to the target terminal to the target UPF.
[0062] As an alternative example, as Figure 6 shown, the SMF may send the target service rule to the target UPF through a node-level message. It should be noted that Figure 6 the service package in
[0063] In an exemplary embodiment, sending the target service rule to the target UPF may be implemented by the following method: sending an association update request carrying the target service rule to the target UPF.
[0064] It should be noted that the intelligent traffic splitting function requires that the terminal can access public network and private network services simultaneously without perception in 4G and 5G scenarios. At this time, the SMF needs to send the intelligent traffic splitting service rule to the UPF, and add a service package IE (Information Elements) to the node-level request message, so as to send the service rule to the UPF.
[0065] Specifically, as Figure 7 shown, between the SMF and the UPF in the public network, the SMF sends the intelligent traffic splitting service rule (the intelligent traffic splitting service rule includes the above target service rule) to the UPF through an association update request (PFCP Association Update Request) based on the Packet Forwarding Control Protocol (PFCP for short). The structure of the newly added IE in the association update request structure is as follows:
[0066] Information Elements in a PFCP Association Update Request
[0067]
[0068] Among them, Multiple DNN Node Rules is the newly added IE, which carries the intelligent traffic splitting service rule sent by the SMF to the UPF.
[0069] In an exemplary embodiment, sending the target service rule to the target UPF may also be implemented in the following manner: sending a PFCP packet flow description information (Packet flow description, abbreviated as PFD) management request carrying the target service rule to the target UPF.
[0070] It should be noted that node-level messages include: coupling update requests, and PFCP PFDs.
[0071] In an exemplary embodiment, after the above step S504, the method further includes the following steps S41 - S42:
[0072] Step S41: In the case where the target service rule includes multiple service rules, sending the service rules that are not in the service rule set among the multiple service rules to the target UPF, and adding the service rules that are not in the service rule set among the multiple service rules to the service rule set;
[0073] Step S42: Sending a session establishment request corresponding to the target terminal to the target UPF.
[0074] It should be noted that in the case where the target service rule includes multiple service rules and the multiple are N, the subscribed data includes: information of N PDNs that the target terminal is allowed to access using the general network data name DNN, and the N service rules include the service rules corresponding to each of the N PDNs in the N PDNs, where N is a positive integer greater than 1.
[0075] Through the above steps, the SMF of the core network obtains the subscribed data of the target terminal, determines the target UPF and the target service rule according to the subscribed data, and in the case where the target service rule is in the service rule set, no longer sends the target service rule to the target UPF. Furthermore, in the case where there are multiple terminals accessing a packet data network, the SMF does not need to send the service rule corresponding to the packet data network to the target UPF every time, thereby reducing the consumption of bearer network bandwidth and improving the overall network quality. Therefore, it can solve the problem in the related art that every time the SMF sends a session establishment request to the UPF, it needs to carry the service rule for the terminal to access the corresponding packet data network, resulting in serious consumption of bearer network bandwidth. Among them, the execution subject of the above steps may be the SMF, etc., but is not limited thereto.
[0076] To facilitate the understanding of the technical solution provided in this application, the following will elaborate on it in detail in combination with the embodiments of specific scenarios.
[0077] As described in the technical background, in the related art, the private network user package is sent to the UPF through the public network session establishment message. For the package corresponding to the same private network, if there are N users under this private network, it will be sent N times, seriously consuming the bearer network bandwidth. The current protocol does not give a specific solution to this problem. Through the present application, the number of times of sending the user package can be reduced. The package (i.e., the service rule) corresponding to a private network only needs to be sent once, regardless of the number of users under this private network, reducing the consumption of the bearer network bandwidth and improving the overall network quality.
[0078] In an alternative embodiment of the application, when an enterprise enables the intelligent traffic splitting service, after the PCF sends the service package to the SMF, the SMF caches the intelligent traffic splitting rule, and then the SMF sends the service package corresponding to this enterprise to the UPF through the node-level message. After the update is completed and the response message from the UPF is received, the rule sent flag is recorded locally, and then the private network session establishment is started. At this time, there is no need to send the service package. When the second user of this private network accesses the private network, the SMF queries the local status and finds that the rule has been sent, then directly initiates the private network session establishment request without sending the service package again. And so on, when N users in the private network access, the service rule between the SMF and the UPF only needs to be sent once. The specific steps of the optimized intelligent traffic splitting service sending are as Figure 8 shown, including:
[0079] 801: The SMF obtains the user subscription data from the UDM.
[0080] 802: The SMF selects a UPF that supports intelligent traffic splitting.
[0081] 803: The SMF sends a policy acquisition request message to the PCF.
[0082] 804: The PCF sends the intelligent traffic splitting rule to the SMF.
[0083] 805: The SMF caches the intelligent traffic splitting rule.
[0084] 806: The SMF sends the intelligent traffic splitting rule to the UPF through the node-level message.
[0085] 807: The SMF receives the UPF update response.
[0086] 808: The SMF initiates a public network session establishment request without carrying the intelligent traffic splitting rule.
[0087] For better understanding, the technical solution of the present application will be further described in detail through specific embodiments below, so that those skilled in the art can better understand the present application and be able to implement it, but the embodiments given are not intended to limit the present invention.
[0088] Embodiment 1
[0089] Assume that the user has subscribed to the private network package of enterprise A. At this time, the SMF accessed by user A will obtain the user's subscribed data from the UDM. Then, the SMF will select a UPF that supports intelligent traffic splitting according to the UPF selection policy. After selecting the UPF, the SMF sends a policy acquisition request message (Npcf_SMPolicyControl_Create Request) to the PCF. At this time, the PCF will send the intelligent traffic splitting rules corresponding to the user to the SMF. The SMF caches the rules locally, and then initiates an association update request to the UPF, and at the same time carries the intelligent traffic splitting service rules (Multiple DNN Node Rules) in this request to the UPF. After the UPF rule installation is successful, it returns an association update success response (PFCP Association Update Response) to the SMF. After receiving the association update success response, the SMF initiates a public network session establishment request. The specific steps are as Figure 9 described, including:
[0090] 901: The SMF obtains the user's subscribed data from the UDM.
[0091] 902: The SMF selects a UPF that supports intelligent traffic splitting.
[0092] 903: The SMF sends a policy acquisition request message to the PCF.
[0093] 904: The PCF sends the intelligent traffic splitting rules to the SMF.
[0094] 905: The SMF caches the intelligent traffic splitting rules.
[0095] 906: The SMF sends the intelligent traffic splitting rules to the UPF through an association update request.
[0096] 907: The SMF receives the UPF association update response.
[0097] 908: The SMF initiates a public network session establishment request without carrying the intelligent traffic splitting rules.
[0098] Embodiment 2:
[0099] Assume that the user has subscribed to the private network package of enterprise A. At this time, the SMF accessed by user A will obtain the user's subscribed data from the UDM. Then, the SMF will select a UPF that supports intelligent traffic splitting according to the UPF selection policy. After selecting the UPF, the SMF sends a policy acquisition request message (Npcf_SMPolicyControl_Create Request) to the PCF. At this time, the PCF will send the intelligent traffic splitting rules corresponding to the user to the SMF. The SMF caches the rules locally and then sends a PFCP PFD management request (PFCPPFD Management Request) to the UPF, and at the same time carries the intelligent traffic splitting service rules (Multiple DNN NodeRules) in this request to the UPF. After the UPF rule installation is successful, it will send a successful response (PFCP PFD ManagementResponse) back to the SMF. After the SMF receives the successful PFCP PFD response, it initiates a public network session establishment request. The specific steps are as Figure 10 described, including:
[0100] 1001: The SMF obtains the user's subscribed data from the UDM.
[0101] 1002: The SMF selects a UPF that supports intelligent traffic splitting.
[0102] 1003: The SMF sends a policy acquisition request message to the PCF.
[0103] 1004: The PCF sends the intelligent traffic splitting rules to the SMF.
[0104] 1005: The SMF caches the intelligent traffic splitting rules.
[0105] 1006: The SMF distributes the intelligent traffic splitting rules to the UPF through the PFCP PFD management request.
[0106] 1007: The SMF receives the UPF PFCP PFD management response.
[0107] 1008: The SMF initiates a public network session establishment request without carrying the intelligent traffic splitting rules.
[0108] It should be noted that this application can reduce the number of user package distributions. The package corresponding to a private network only needs to be distributed once, regardless of the number of users under the private network, reducing the bearer network bandwidth consumption and improving the overall network quality.
[0109] It should be noted that this application can be applied to the 5GC core network system. When using system-level services such as DNN-level and slice-level services, the SMF distributes the corresponding rules to the UPF scenario.
[0110] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as Read-Only Memory / Random Access Memory, ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0111] In this embodiment, a session establishment device is further provided. This device is used to implement the above embodiments and preferred embodiments, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0112] Figure 11 is a structural block diagram of a session establishment device according to an embodiment of the present application. As Figure 11 shown, the device includes
[0113] An acquisition module 112, configured to acquire the subscription data of the target terminal through the session management function SMF of the core network, where the subscription data includes: information about the packet data network PDN that the target terminal is allowed to access using the general network data name DNN;
[0114] A determination module 114, configured to determine a target user plane function UPF and a target service rule corresponding to the PDN according to the subscription data;
[0115] A first sending module 116, configured to send a session establishment request corresponding to the target terminal to the target UPF when the target service rule is in the service rule set, where the session establishment request does not carry the target service rule, and the service rules in the service rule set have been sent to the target UPF before a preset time.
[0116] Through the above device, the SMF of the core network obtains the subscription data of the target terminal, determines the target UPF and the target service rule according to the subscription data, and when the target service rule is in the service rule set, no longer sends the target service rule to the target UPF. Furthermore, when there are multiple terminals accessing a packet data network, the SMF does not need to send the service rule corresponding to the packet data network to the target UPF every time, thereby reducing the bearer network bandwidth consumption and improving the overall network quality. Therefore, it can solve the problem in the related technology that each time the SMF sends a session establishment request to the UPF, it needs to carry the service rule for the terminal to access the corresponding packet data network, resulting in serious consumption of the bearer network bandwidth.
[0117] In an exemplary embodiment, the device further includes: a second sending module, configured to, after determining the target user plane function UPF and the target service rule corresponding to the PDN according to the subscription data, when the target service rule is not in the service rule set, send the target service rule to the target UPF, and add the target service rule to the service rule set; send a session establishment request corresponding to the target terminal to the target UPF.
[0118] In an exemplary embodiment, the device further includes: a third sending module, configured to, after determining the target user plane function UPF and the target service rule corresponding to the PDN according to the subscription data, when the target service rule includes multiple service rules, send the service rules that are not in the service rule set among the multiple service rules to the target UPF, and add the service rules that are not in the service rule set among the multiple service rules to the service rule set; send a session establishment request corresponding to the target terminal to the target UPF.
[0119] In an exemplary embodiment, the second sending module is further configured to carry the target service rule in the coupling update request; send the coupling update request carrying the target service rule to the target UPF.
[0120] In an exemplary embodiment, the second sending module is further configured to carry the target service rule in the packet forwarding control protocol PFCP packet flow description information PFD management request; send the PFCP PFD management request carrying the target service rule to the target UPF.
[0121] In an exemplary embodiment, the obtaining module 112 is further configured to send a data request message to the unified data management UDM of the core network through the SMF; obtain the subscription data sent by the UDM in response to the data request message.
[0122] In an exemplary embodiment, the determination module 114 is further configured to send a policy acquisition request message for the PDN to the policy control function PCF of the core network through the SMF; and acquire the target service rules sent by the PCF in response to the policy acquisition request message.
[0123] It should be noted that the above-mentioned modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited thereto: all the above modules are located in the same processor; or, the above-mentioned modules are respectively located in different processors in any combination form.
[0124] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0125] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: USB flash drive, read-only memory (ROM for short), random access memory (RAM for short), mobile hard disk, magnetic disk or optical disc, etc., various media that can store computer programs.
[0126] An embodiment of the present application further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0127] In an exemplary embodiment, the above electronic device may further include a transmission device and an input / output device. Wherein, the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0128] The specific examples in this embodiment may refer to the examples described in the above embodiments and exemplary embodiments, and will not be repeated here.
[0129] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order than here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.
[0130] The above are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application shall be included within the protection scope of the present application.
Claims
1. A session establishment method, characterized in that, including: obtaining the subscription data of a target terminal through the session management function SMF of the core network, where the subscription data includes: information on a packet data network PDN that the target terminal is allowed to access using a general network data name DNN; determining a target user plane function UPF and a target service rule corresponding to the PDN according to the subscription data; when the target service rule is in a service rule set, sending a session establishment request corresponding to the target terminal to the target UPF, where the session establishment request does not carry the target service rule, and the service rules in the service rule set have been sent to the target UPF before a preset time; 2. The method according to claim 1, wherein after determining the target user plane function UPF and the target service rule corresponding to the PDN according to the subscription data, the method further includes: when the target service rule is not in the service rule set, sending the target service rule to the target UPF and adding the target service rule to the service rule set; sending a session establishment request corresponding to the target terminal to the target UPF.
3. The method according to claim 1, characterized in that after determining the target user plane function UPF and the target service rule corresponding to the PDN according to the subscription data, the method further includes: when the target service rule includes multiple service rules, sending the service rules that are not in the service rule set among the multiple service rules to the target UPF and adding the service rules that are not in the service rule set among the multiple service rules to the service rule set; sending a session establishment request corresponding to the target terminal to the target UPF.
4. The method according to claim 2, characterized in that, Sending the target service rule to the target UPF includes: sending a coupled update request carrying the target service rule to the target UPF.
5. The method according to claim 2, wherein Sending the target service rule to the target UPF includes: sending a packet forwarding control protocol PFCP packet flow description information PFD management request carrying the target service rule to the target UPF.
6. The method according to claim 1, wherein Obtaining the subscription data of the target terminal through the session management function SMF of the core network includes: sending a data request message to the unified data management UDM of the core network through the SMF; obtaining the subscription data sent by the UDM in response to the data request message.
7. The method according to claim 1, characterized in that, Determining the target service rule corresponding to the PDN according to the subscription data includes: sending a policy acquisition request message for the PDN to the policy control function PCF of the core network through the SMF; obtaining the target service rule sent by the PCF in response to the policy acquisition request message.
8. A session establishment device, characterized in that, including: an obtaining module, configured to obtain the subscription data of a target terminal through the session management function SMF of the core network, where the subscription data includes: information on a packet data network PDN that the target terminal is allowed to access using a general network data name DNN; a determining module, configured to determine a target user plane function UPF and a target service rule corresponding to the PDN according to the subscription data; The first sending module is configured to send a session establishment request corresponding to the target terminal to the target UPF when the target service rule is in the service rule set, wherein the session establishment request does not carry the target service rule, and the service rules in the service rule set have been sent to the target UPF before a preset time.
9. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
10. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.