Session establishment method and apparatus, electronic device and storage medium

MYPI2025002224A0Undetermined Publication Date: 2024-05-15ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
MYPI2025002224
Authority / Receiving Office
MY · MY
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-11-15
Filing Date
2023-10-12
Publication Date
2024-05-15

AI Technical Summary

Technical Problem

In UPF network elements, the forwarding of massive private network data packets leads to rapid performance consumption and serious performance loss problems.

Method used

By receiving the establishment request message of the second packet forwarding control protocol PFCP session, determining its corresponding message forwarding unit PFU based on the information of the first PFCP session, and determining it as the PFU of the second PFCP session, thereby on the same PFU Process and forward private network service packets to avoid further forwarding of private network data packets within the UPF network element.

Benefits of technology

It effectively avoids the performance loss within the UPF network element, improves the performance of UPF, and ensures efficient data forwarding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure PI2025002224_DRAWING_001
    Figure PI2025002224_DRAWING_001
  • Figure PI2025002224_DRAWING_002
    Figure PI2025002224_DRAWING_002
  • Figure PI2025002224_DRAWING_003
    Figure PI2025002224_DRAWING_003
Patent Text Reader

Abstract

The present application relates to the technical field of communications, and discloses a session establishment method and apparatus, an electronic device and a storage medium. The method includes: receiving an establishment request message of a second packet forwarding control protocol (PFCP) session, wherein the establishment request message of the second PFCP session carries information of a first PFCP session, and the first PFCP session and the second PFCP session have an association relationship; according to the information of the first PFCP session, determining a first packet forwarding unit (PFU) in a UPF corresponding to the first PFCP session; determining the first PFU as a second PFU in a UPF corresponding to the second PFCP session; and sending an establishment response message of the second PFCP session carrying information of the second PFU.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, electronic device and storage medium for establishing a session

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on November 15, 2022, with application number 202211426650.3 and invention name “Method, device, electronic device and storage medium for establishing a session”. The entire contents of the Chinese patent application are incorporated herein by reference. Technical Field

[0003] The present application belongs to the field of communication technology, and specifically relates to a method, device, electronic device and storage medium for establishing a session. Background Art

[0004] In the application of implementing user plane function (UPF) service diversion, data packet forwarding is the core function of the UPF network element. Among them, the UPF must process data packets for accessing public network services, and also process or forward data packets for accessing private network services. The data packet forwarding scheme of the related technology, for each private network data packet that needs to be forwarded, must be processed and forwarded by two sessions in the UPF network element. In the UPF network element, the two sessions used to process and forward private network data packets correspond to different message forwarding units respectively. That is to say, in the UPF network element, the private network data packets need to be processed and forwarded by two message forwarding units, which means that the forwarding of private network data packets also exists inside the UPF network element.

[0005] However, in the presence of massive private network data messages, if each private network data message is forwarded within the UPF network element, it will cause a sharp consumption of the internal performance of the UPF network element, resulting in serious performance loss of the UPF network element.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a method, device, electronic device, and storage medium for establishing a session, which can solve the problem of severe performance loss of UPF network elements.

[0008] In the first aspect, an embodiment of the present application provides a method for establishing a session, the method comprising: receiving a request message for establishing a second Packet Forwarding Control Protocol (PFCP) session, the request message for establishing the second PFCP session carrying information of a first PFCP session, the first PFCP session and the second PFCP session having an association relationship; determining, based on the information of the first PFCP session, a first message forwarding unit (PFU) in the UPF corresponding to the first PFCP session; determining the first PFU as the second PFU in the UPF corresponding to the second PFCP session; and sending a response message for establishing the second PFCP session carrying information of the second PFU.

[0009] In the second aspect, an embodiment of the present application provides a device for establishing a session, which includes: a receiving module for receiving an establishment request message of a second packet forwarding control protocol PFCP session, the establishment request message of the second PFCP session carries information of a first PFCP session, and the first PFCP session and the second PFCP session have an association relationship; a determination module for determining the first message forwarding unit PFU in the UPF corresponding to the first PFCP session based on the information of the first PFCP session; an execution module for determining the first PFU as the second PFU in the UPF corresponding to the second PFCP session; and a sending module for sending an establishment response message of the second PFCP session carrying the information of the second PFU.

[0010] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0011] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] FIG1 is a flow chart of a method for establishing a session provided in an embodiment of the present application;

[0013] FIG2 is a schematic diagram of a message transmission provided by an embodiment of the present application;

[0014] FIG3 is a schematic diagram of a process for accessing a private network service provided in an embodiment of the present application;

[0015] FIG4 is a schematic diagram of the structure of an apparatus for establishing a session provided in an embodiment of the present application;

[0016] FIG5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0018] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0019] The following describes in detail the method, device, electronic device, and storage medium for establishing a session provided by the embodiments of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0020] FIG1 shows a method for establishing a session provided by an embodiment of the present application, which can be executed by a User Plane Function (UPF) device. In other words, the method can be executed by software or hardware installed in the UFP device, and the method includes the following steps.

[0021] Step 102: Receive a second Packet Forwarding Control Protocol (PFCP) session establishment request message.

[0022] Specifically, after the user terminal (User Equipment, UE) initiates an access request for a private network service, the session management function (Session Management Function, SMF) can request the policy control function (Policy Control Function, PCF) to issue policy information. After receiving the request sent by the SMF, the PCF can issue the policy information to the SMF, where the policy information includes relevant information supporting private network services. After receiving the policy information issued by the PCF, the SMF can initiate a user plane establishment request to establish the UPF, which is used to process and forward public network service messages and private network service messages. After the establishment is successful, the UPF can send a success response message to the SMF.

[0023] After the user terminal initiates a request to access the private network service, since the private network service message initiated by the user terminal to access the private network service needs to be transmitted through a public network session before reaching the UPF, a public network session needs to be established in the UPF to receive the private network service message. The UPF can receive the establishment request of the first Packet Forwarding Control Protocol (PFCP) session sent by the SMF, and establish a first PFCP session in the UPF. The first PFCP session is used to receive and forward public network service messages, and can also be used to receive private network service messages.

[0024] UPF can receive the establishment request message of the second PFCP session sent by SMF and establish a second PFCP session. The second PFCP session is a private network session used to forward private network service messages. The establishment request message of the second PFCP session carries the information of the first PFCP session. UPF will establish the second PFCP session based on the information of the first PFCP session. Therefore, the first PFCP session and the second PFCP session will have an associated relationship.

[0025] Step 104: Determine a first packet forwarding unit PFU in the UPF corresponding to the first PFCP session based on the information of the first PFCP session.

[0026] Specifically, the UPF consists of multiple packet forwarding units (PFUs). Each PFCP session can be mapped to a PFU according to the session endpoint identifier (Seid) and a preset algorithm. When each PFCP session forwards a message, it is processed and forwarded at the PFU where it is located.

[0027] In an embodiment of the present application, the information of the first PFCP session may include the Seid corresponding to the first PFCP session or other information that can be used to identify the PFU corresponding to the first PFCP session. The information of the first PFCP session is not specifically limited here. Therefore, the UPF can determine the first PFU corresponding to the first PFCP session in the UPF based on the information of the first PFCP session.

[0028] Step 106: Determine the first PFU as the second PFU in the UPF corresponding to the second PFCP session.

[0029] Specifically, after determining the first PFU corresponding to the first PFCP session in the UPF, the first PFU can be determined as the second PFU corresponding to the second PFCP session, and a second PFCP session can be established on the second PFU. The second PFCP session is used to process and forward private network service messages.

[0030] Step 108: Send a setup response message of the second PFCP session carrying the information of the second PFU.

[0031] Specifically, after establishing the second PFCP session, the UPF may send a second PFCP session establishment response message carrying information of the second PFU to the SMF to indicate that the establishment of the second PFCP session is completed in the UPF.

[0032] In an embodiment of the present application, by receiving a request message for establishing a second packet forwarding control protocol PFCP session, the request message for establishing the second PFCP session carries information about the first PFCP session, and the first PFCP session and the second PFCP session have an associated relationship; according to the information of the first PFCP session, the first message forwarding unit PFU in the UPF corresponding to the first PFCP session is determined; the first PFU is determined as the second PFU in the UPF corresponding to the second PFCP session; and a response message for establishing a second PFCP session carrying information about the second PFU is sent, so that the first PFCP session for receiving private network service messages and the second PFCP session for sending private network service messages are on the same PFU, and the reception and forwarding of private network service messages are both performed on the same PFU, avoiding the forwarding of private network service messages within the UPF, thereby avoiding losses within the UPF, solving the problem of serious performance loss of the UPF, and improving the performance of the UPF.

[0033] In one implementation, the first field in the information of the first PFCP session is used to indicate that the second field of the first PFCP session is associated with the third field of the second PFCP session.

[0034] Specifically, the SMF sends the information of the first PFCP session carried in the establishment request message of the second PFCP session to the UPF, wherein the information of the first PFCP session includes a first field, the first field may include the second field of the first PFCP session, the second field may be the Seid corresponding to the first PFCP session, or other fields that can determine the PFU corresponding to the first PFCP session. In this way, when the UPF receives the establishment request message of the second PFCP session, it can find the PFU corresponding to the first PFCP session according to the second field corresponding to the first PFCP session, and establish the second PFCP session on the PFU corresponding to the first PFCP session. Then, the third field corresponding to the second PFCP session also corresponds to the PFU corresponding to the first PFCP session, that is, the second field of a PFCP session is associated with the third field of the second PFCP session, and the first PFCP session and the second PFCP session are established on the same PFU.

[0035] Specifically, the first field in the information of the first PFCP session is used to represent that the second field of the first PFCP session is associated with the third field of the second PFCP session, so that the first PFCP session and the second PFCP session established by the UPF are on the same PFU, and the reception and forwarding of private network service messages are both carried out on the same PFU, avoiding the forwarding of private network service messages within the UPF, thereby avoiding losses within the UPF, solving the problem of serious performance loss of the UPF, and improving the performance of the UPF.

[0036] In one implementation, the first PFCP session is a public network PFCP session of the user, and the second PFCP session is a private network PFCP session of the user.

[0037] Specifically, the above-mentioned first PFCP session can be a public network PFCP session, that is, in the UPF, the service request message sent by the user can be received through the first PFCP session. When the service request initiated by the user is a public network service request, the public network service message of the public network service request can be received through the first PFCP session, and the public network service message can be transmitted to the public network through the N6 interface. The above-mentioned second PFCP session can be the user's private network PFCP session. By establishing the first PFCP session and the second PFCP session on the same PFU, the private network service message sent by the user terminal can be received through the first PFCP session, and the private network service request message can be forwarded to the private network through the second PFCP session, avoiding the forwarding of the private network service message within the UPF, thereby avoiding the loss within the UPF, solving the problem of serious performance loss of the UPF, and improving the performance of the UPF.

[0038] In one implementation, before receiving the establishment request message of the second Packet Forwarding Control Protocol PFCP session, the method also includes: receiving a detection rule for identifying private network services; receiving the service message sent by the user; and sending a target notification to the session management function SMF when the service message sent by the user matches the detection rule, and the establishment request message of the second PFCP session is sent by the SMF when the target notification is received.

[0039] Specifically, after receiving the request sent by SMF, PCF can send policy information to SMF, where the policy information includes relevant information supporting private network services. After receiving the policy information sent by PCF, SMF will construct detection rules based on the relevant information supporting private network services in the policy information. The detection rules are used to identify private network services. Therefore, when establishing UPF, UPF can receive the detection rules. When receiving the service message sent by the user terminal, UPF can match the detection rules and the service message to determine the private network service that the user wants to access. If the match is successful, the private network service that the user wants to access is determined. UPF can send a target notification to SMF to notify SMF that there is a private network service message sent by the user. After receiving the notification, SMF determines that the private network service message needs to be forwarded, and sends the establishment request message of the second PFCP session to UPF.

[0040] In this way, when receiving the detection rules for identifying private network services; receiving the service messages sent by the user; and when the service messages sent by the user match the detection rules, sending the target notification to the session management function SMF, the establishment request message of the second PFCP session is sent by the SMF when the target notification is received. It can accurately identify whether the user accesses the private network service, and when it is determined that the service message sent by the user is a private network service, establish a second PFCP session to forward the private network service message, thereby enabling the user to access the private network service.

[0041] In one implementation, the service message is forwarded through the second PFCP session.

[0042] Specifically, after establishing the second PFCP session, if the service message received through the first PFCP is a private network service message, the service message can be forwarded through the second PFCP session. Figure 2 shows a schematic diagram of message transmission provided in an embodiment of the present application. As shown in Figure 2, the UPF 210 includes multiple PFUs. Since the second PFCP session and the first PFCP session for receiving the service message are both established on the same PFU 220, the reception of the private network service message and the forwarding of the private network service message are both performed on the same PFU, avoiding the forwarding of the private network service message within the UPF, thereby avoiding the loss within the UPF, solving the problem of serious performance loss of the UPF, and improving the performance of the UPF.

[0043] FIG3 is a flow chart of a private network service access process provided in an embodiment of the present application. As shown in FIG3 , the private network service access process includes the following steps.

[0044] Step 301: The user initiates a request to establish a public network session.

[0045] The SMF may receive a session establishment request initiated by a user terminal.

[0046] Step 302: Request policy information.

[0047] After receiving the public network session establishment request initiated by the user, the SMF can request the PCF to issue policy information.

[0048] Step 303: Send policy information.

[0049] After receiving the request from SMF, PCF sends policy information to SMF, where the policy information includes relevant information supporting private network services.

[0050] Step 304: Identify and cache policy information.

[0051] After receiving the policy information sent by the PCF, the SMF can construct a detection rule based on the relevant information of the private network service. The detection rule is used to identify the service for the private network.

[0052] Step 305: Notify the UPF to establish and install detection rules.

[0053] SMF initiates a UPF establishment request to establish UPF, and carries detection rules in the UPF establishment request. After UPF is established and the detection rules are installed, UPF sends an establishment response message to SMF.

[0054] Step 306: Complete the public network session establishment process.

[0055] Specifically, after the UPF is established, the establishment of the public network session is completed.

[0056] Step 307: Receive a private network service message.

[0057] The UPF can receive private network service messages sent by users, which are used to access private network services.

[0058] Step 308: Match the service message according to the detection rule.

[0059] After receiving the private network service message sent by the user, UPF can match the private network service message with the detection rules. If the match is successful, it identifies the private network service that the user needs to access.

[0060] Step 309: Notify SMF that there is a private network service message.

[0061] UPF notifies SMF, indicating that this user needs to access private network services, that is, there is a private network service message.

[0062] Step 310: Trigger a private network session establishment request.

[0063] SMF receives the notification sent by UPF and decides that private network business diversion is required, which will trigger the creation of a private network session to clear the private network business data channel.

[0064] Step 311: Send a private network session establishment request.

[0065] SMF sends a PFCP session establishment request (PFCP Session Establishment Request) to UPF. The PFCP session establishment request adds an extended field, such as the RelatedUpfSeid in the table below. The extended field carries the Seid of the public network session. After receiving the PFCP session establishment request, UPF will select the PFU where the RelatedUpfSeid is located to establish a private network session to ensure that the public network session and the private network session are on the same PFU.

[0066] Step 312: Reply to the private network session establishment response message.

[0067] The UPF replies with a PFCP session establishment response message (Session Establishment Response) to the SMF.

[0068] Step 313: Continue to complete the process of creating the private network session.

[0069] After the private network session is completed, the SMF has completed the application for private network UPF resources and can use the private network services.

[0070] Step 314: Forward the private network service message.

[0071] After the private network session is established, the private network service message can be forwarded to the private network service server through the private network session in the UPF.

[0072] In this way, the public network session for receiving private network service messages and the private network session for forwarding private network service messages are both established on the same PFU. That is, on the same PFU, private network service messages can be received through the public network session, and private network service messages can also be forwarded through the private network session, avoiding the forwarding of private network service messages within the UPF, thereby avoiding losses within the UPF, solving the problem of serious performance loss of the UPF, and improving the performance of the UPF.

[0073] It should be noted that the method for establishing a session provided in the embodiments of the present application can be performed by a device for establishing a session, or by a control module in the device for establishing a session for performing the method for establishing a session. In the embodiments of the present application, the method for establishing a session performed by a device for establishing a session is used as an example to illustrate the device for establishing a session provided in the embodiments of the present application.

[0074] FIG4 is a schematic diagram of the structure of an apparatus for establishing a session according to an embodiment of the present application. As shown in FIG4 , the apparatus 400 for establishing a session includes: a receiving module 410 , a determining module 420 , an executing module 430 , and a sending module 440 .

[0075] A receiving module 410 is used to receive a request message for establishing a second packet forwarding control protocol PFCP session, where the request message for establishing the second PFCP session carries information of the first PFCP session, and the first PFCP session and the second PFCP session have an association relationship; a determining module 420 is used to determine the first message forwarding unit PFU in the UPF corresponding to the first PFCP session based on the information of the first PFCP session; an executing module 430 is used to determine the first PFU as the second PFU in the UPF corresponding to the second PFCP session; and a sending module 440 is used to send a response message for establishing the second PFCP session carrying information of the second PFU.

[0076] In one implementation, the first field in the information of the first PFCP session is used to indicate that the second field of the first PFCP session is associated with the third field of the second PFCP session.

[0077] In one implementation, the first PFCP session is a public network PFCP session of the user, and the second PFCP session is a private network PFCP session of the user.

[0078] In one implementation, the receiving module 410 is also used to receive detection rules for identifying private network services; receive service messages sent by the user; and send a target notification to the session management function SMF when the service messages sent by the user match the detection rules. The establishment request message of the second PFCP session is sent by the SMF when the target notification is received.

[0079] In one implementation, the sending module 440 is further configured to forward the service message through the second PFCP session.

[0080] The apparatus for establishing a session in the embodiments of the present application may be an apparatus, or a component, integrated circuit, or chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., and the embodiments of the present application do not specifically limit this.

[0081] The device for establishing a session in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0082] The apparatus for establishing a session provided in the embodiment of the present application can implement each process implemented in the method embodiments of Figures 1 to 2. To avoid repetition, they will not be described here.

[0083] Optionally, as shown in Figure 5, an embodiment of the present application further provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores a program or instruction that can be run on the processor 501, and when the program or instruction is executed by the processor 501, it implements: receiving a request message for establishing a second packet forwarding control protocol PFCP session, the request message for establishing the second PFCP session carries information of a first PFCP session, and the first PFCP session and the second PFCP session have an association relationship; determining, based on the information of the first PFCP session, a first message forwarding unit PFU in the UPF corresponding to the first PFCP session; determining the first PFU as the second PFU in the UPF corresponding to the second PFCP session; and sending a response message for establishing the second PFCP session carrying information of the second PFU.

[0084] In one implementation, the first field in the information of the first PFCP session is used to indicate that the second field of the first PFCP session is associated with the third field of the second PFCP session.

[0085] In one implementation, the first PFCP session is a public network PFCP session of the user, and the second PFCP session is a private network PFCP session of the user.

[0086] In one implementation, before receiving the establishment request message of the second Packet Forwarding Control Protocol PFCP session, a detection rule for identifying private network services is received; the service message sent by the user is received; and when the service message sent by the user matches the detection rule, a target notification is sent to the session management function SMF, and the establishment request message of the second PFCP session is sent by the SMF when the target notification is received.

[0087] In one implementation, the service message is forwarded through the second PFCP session.

[0088] The specific execution steps can refer to the various steps of the above-mentioned method embodiment for establishing a session, and can achieve the same technical effect. To avoid repetition, they are not described here.

[0089] It should be noted that the electronic devices in the embodiments of the present application include: servers, terminals, or other devices other than terminals.

[0090] The above electronic device structure does not constitute a limitation of the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. to configure the display panel. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include but are not limited to a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0091] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus random access memory (DRRAM).

[0092] The processor may include one or more processing units; optionally, the processor may integrate an application processor and a modem processor, wherein the application processor primarily handles operations related to the operating system, user interface, and application programs, and the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into the processor.

[0093] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment for establishing a session are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0094] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as ROM, RAM, magnetic disk or optical disk.

[0095] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0096] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0097] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A method for establishing a session, applied to a user plane function (UPF) device, comprising: receiving a request message for establishing a second Packet Forwarding Control Protocol (PFCP) session, where the request message for establishing the second PFCP session carries information about the first PFCP session, and the first PFCP session and the second PFCP session have an association relationship; Determine, according to the information of the first PFCP session, a first message forwarding unit PFU in the UPF corresponding to the first PFCP session; Determine the first PFU as the second PFU in the UPF corresponding to the second PFCP session; Send a setup response message of the second PFCP session carrying information of the second PFU.

2. The method according to claim 1, wherein The first field in the information of the first PFCP session is used to indicate that the second field of the first PFCP session is associated with the third field of the second PFCP session.

3. The method according to claim 1, wherein The first PFCP session is a public network PFCP session of the user, and the second PFCP session is a private network PFCP session of the user.

4. The method according to claim 3, wherein: Before receiving the second Packet Forwarding Control Protocol (PFCP) session establishment request message, the method further includes: receiving detection rules for identifying private network services; receiving a service message sent by the user; When the service message sent by the user matches the detection rule, a target notification is sent to the session management function SMF, and the establishment request message of the second PFCP session is sent by the SMF after receiving the target notification.

5. The method according to claim 4, wherein The method also includes: The service message is forwarded through the second PFCP session.

6. A device for establishing a session, applied to a user plane function (UPF) device, comprising: A receiving module, configured to receive a second Packet Forwarding Control Protocol (PFCP) session establishment request message, The establishment request message of the second PFCP session carries information of the first PFCP session, and the first PFCP session and the second PFCP session are associated; A determination module, configured to determine, based on information of the first PFCP session, a first message forwarding unit PFU in the UPF corresponding to the first PFCP session; An execution module, configured to determine the first PFU as a second PFU in the UPF corresponding to the second PFCP session; A sending module is used to send an establishment response message of the second PFCP session carrying information of the second PFU.

7. An electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for establishing a session according to any one of claims 1 to 5.

8. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the method for establishing a session according to any one of claims 1 to 5.