Session establishment method and apparatus, computer device, and storage medium
By detecting the status of the switching equipment and switching to the backup equipment, the communication interruption problem caused by the failure of the switching equipment was solved, and continuous communication and efficient session establishment between user terminals and data networks in 5G networks were realized.
Patent Information
- Application Number
- CN202310826110.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-06
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2043-07-06
AI Technical Summary
In 5G networks, when the offloading equipment fails, it affects the normal establishment of PDU sessions, causing communication interruption between user terminals and the data network.
By detecting the status of the offloading device, when an anomaly occurs, the system dynamically switches to the backup offloading device and allocates the corresponding address pool and data network to the user terminal, ensuring that the user terminal can establish a packet data unit session with the backup offloading device.
A disaster recovery mechanism was implemented in the event of a fault in the distribution equipment, ensuring continuous communication between the user terminal and the data network, avoiding performance bottlenecks and communication interruptions, and ensuring normal packet data unit sessions between the user terminal and the data network.
Smart Images

Figure CN116782280B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to a session establishment method and device, a computer device, a storage medium and a computer program product. BACKGROUND
[0002] 5G (5th-Generation Mobile Communication Technology) technology has penetrated into various industries, and 5G networks provide various service functions for industry applications. Data shunting of 5G services is a basic requirement of many enterprise customers. Shunting means shunting service packets and finally reaching different networks and servers.
[0003] The UPF (User Plane Function) is a 5G core network user plane management network element entity, responsible for user PDU (Packet Data Unit) session management, routing exchange and other functions. When a user terminal establishes a connection with the UPF, a PDU session is established through an IP (Internet Protocol Address).
[0004] Local shunting of user data can be achieved by setting an ULCL (Uplink Classifier) in the UPF, but when the shunting device fails, it affects the normal establishment of the PDU session. SUMMARY
[0005] Therefore, it is necessary to provide a session establishment method and device, a computer device, a computer readable storage medium and a computer program product that do not affect the normal establishment of a session.
[0006] In a first aspect, the present application provides a session establishment method applied to a core network network element. The method comprises:
[0007] detecting a device state of a first shunting device; the first shunting device corresponding to a first address pool;
[0008] when the device state of the first shunting device is abnormal, allocating a second address pool corresponding to a second shunting device to a target user terminal;
[0009] when the target user terminal is configured with a data network corresponding to the second address pool, allocating a second target address in the second address pool to the target user terminal to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address.
[0010] In one of the embodiments, the method further comprises:
[0011] The device state of the first split device is detected by detecting the state of the state interface.
[0012] In one of the embodiments, the priority of the first split device is higher than that of the second split device; the method further comprises:
[0013] When the device state of the first split device is normal, the first address pool corresponding to the first split device is allocated to the target user;
[0014] When the target user configures the first data network corresponding to the first address pool, the first target address in the first address pool is allocated to the target user terminal, so that the target user terminal establishes a packet data unit session with the first data network according to the first target address.
[0015] In one of the embodiments, before the device state of the first split device is detected, the method further comprises:
[0016] According to the preset condition, it is judged whether the user account belongs to the target user account;
[0017] When the user account belongs to the target user account, the step of detecting the device state of the first split device is executed.
[0018] In one of the embodiments, the method further comprises:
[0019] When the user account does not belong to the target user account, the device state of the first split device is detected;
[0020] When the device state of the first split device is normal, the target address pool pointed by the first split device is allocated to the user account; when the device state of the first split device is abnormal, the second split device is configured to point to the target address pool for the user account;
[0021] When the device state of the first split device returns to normal, the downlink packet of the user is transferred from the second split device to the first split device through the traffic forwarding tunnel;
[0022] When the target data network corresponding to the target address pool is configured for the user account, the target address in the target address pool is allocated to the user account, and a packet data unit session is established with the target data network according to the target address.
[0023] In one of the embodiments, the core network element is a session management function network element or a user plane function network element.
[0024] In a second aspect, the present application provides a session establishment apparatus applied to a core network element. The apparatus comprises:
[0025] a state detection module configured to detect a device state of a first offloading device, wherein the first offloading device corresponds to a first address pool;
[0026] a device disaster recovery module configured to, when the device state of the first offloading device is abnormal, allocate a second address pool corresponding to a second offloading device to a target user terminal;
[0027] an address allocation module configured to, when the target user terminal is configured with a second data network corresponding to the second address pool, allocate a second target address in the second address pool to the target user terminal, so as to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address.
[0028] In a third aspect, the present application provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0029] detecting a device state of a first offloading device, wherein the first offloading device corresponds to a first address pool;
[0030] when the device state of the first offloading device is abnormal, allocating a second address pool corresponding to a second offloading device to a target user terminal;
[0031] when the target user terminal is configured with a second data network corresponding to the second address pool, allocating a second target address in the second address pool to the target user terminal, so as to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address.
[0032] In a fourth aspect, the present application provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:
[0033] detecting a device state of a first offloading device, wherein the first offloading device corresponds to a first address pool;
[0034] when the device state of the first offloading device is abnormal, allocating a second address pool corresponding to a second offloading device to a target user terminal;
[0035] When the target user terminal is configured with the second data network corresponding to the second address pool, a second target address in the second address pool is allocated to the target user terminal to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address.
[0036] In a fifth aspect, a computer program product is provided. The computer program product includes a computer program, which, when executed by a processor, implements the following steps:
[0037] detecting a device state of the first offloading device; the first offloading device corresponds to a first address pool;
[0038] allocating a second address pool corresponding to a second offloading device to the target user terminal when the device state of the first offloading device is abnormal;
[0039] When the target user terminal is configured with the second data network corresponding to the second address pool, a second target address in the second address pool is allocated to the target user terminal to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address.
[0040] The session establishment method, device, computer device, storage medium and computer program product, by detecting the device state of the first offloading device, allocating the second address pool corresponding to the second offloading device to the target user terminal when the device state of the first offloading device is abnormal, and allocating a second target address in the second address pool to the target user terminal when the target user terminal is configured with the second data network corresponding to the second address pool, to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address. The present application can realize offloading device disaster recovery by setting the first offloading device and the second offloading device to offload user data, can ensure that the user data is continuously offloaded locally through the offloading device, avoid the performance bottleneck caused by access congestion, and thus ensure that the user terminal and the data network establish a normal packet data unit session. BRIEF DESCRIPTION OF DRAWINGS
[0041] Figure 1 An application environment diagram of the session establishment method in one embodiment;
[0042] Figure 2 A flowchart of the session establishment method in one embodiment;
[0043] Figure 3 A flowchart of the session establishment method in another embodiment;
[0044] Figure 4 A flowchart of the session establishment method in another embodiment;
[0045] Figure 5 a flowchart of a session establishment method in another embodiment;
[0046] Figure 6 a structural block diagram of a session establishment apparatus in an embodiment;
[0047] Figure 7 an internal structural diagram of a computer device in an embodiment. DETAILED DESCRIPTION
[0048] In order to make the purposes, technical solutions and advantages of the present application clearer, further detailed description will be made to the present application in combination with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0049] The session establishment method provided by the embodiments of the present application can be applied to an application environment as shown in Figure 1 . The core network element 102 interacts with the UPF (User Plane Function) element through the N4 interface, and the first shunting device 104 and the second shunting device 106 can be respectively set on the UPF element. The UPF can interact with the user terminal 108 through the (R)AN (Radio Access Network), and the UPF interacts with the (R)AN through the N3 interface. The N3 interface is used to transmit the uplink and downlink user plane data between the (R)AN and the UPF. The core network element 102 detects the device state of the first shunting device 104. When the device state of the first shunting device 104 is abnormal, the second address pool corresponding to the second shunting device 106 is allocated to the target user terminal. When the target user terminal is configured with the second data network corresponding to the second address pool, the second target address in the second address pool is allocated to the target user terminal. When the user terminal is configured with the second data network, the target user terminal is instructed to establish a packet data unit session with the second data network according to the second target address.
[0050] Among them, the terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc.
[0051] In an embodiment, as shown in Figure 2 , a session establishment method is provided. Taking the core network element in Figure 1 as an example, the method includes the following steps 202 to 206.
[0052] In step 202, the device state of the first shunt device is detected, wherein the first shunt device corresponds to the first address pool.
[0053] In a 5G network, a user terminal (User Equipment, UE) establishes a PDU session with a data network through a core network so as to communicate with the data network, wherein the core network includes an AMF (Access and Mobility Management Function), an SMF (Session Management function), a UPF (The User plane function), a UDM (The Unified Data Management), a DNN (Data Network Name), etc. The SMF is a functional unit of a 5G service architecture, mainly responsible for interacting with a separated data plane, creating, updating and deleting a PDU session, and managing a session environment with the UPF. The SMF can directly control and manage the UPF. The SMF is responsible for processing user services, and can be regarded as a combination of an MME (Mobile Managenment Entity) bearer management part and a control panel function of an SGW (Serving GateWay) and a PGW (PDN GateWay). The MME is a key control node of a 3GPP protocol LTE access network, which is responsible for positioning of a UE (User Equipment) in an idle mode, a paging process, including a relay, and the SGW and the PGW are important network elements in a mobile communication network EPC.
[0054] The user terminal can access the UPF network element through a radio access network RAN, and then connect with the data network DN. The user terminal accesses the AMF network element, connects to the SMF network element, and the SMF network element is connected with the UPF network element through an N4 interface.
[0055] The core network element detects the device state of the first shunt device. The device state of the first shunt device includes a normal state and an abnormal state. The shunt device is used to realize local shunting of user data, so as to ensure that the user can smoothly interact with the data network. Since the first shunt device is usually arranged on the UPF network element, the core network element can also obtain the device state of the target shunt device detected through the UPF network element. The first shunt device corresponds to the first address pool, and the first address pool includes a plurality of addresses. The first address pool corresponds to a fixed address segment, and the user terminal can establish a PDU session with the corresponding data network through any one address in the first address pool.
[0056] Optionally, the device state of the target offloading device can be determined according to the state of a state interface between the core network element and the target offloading device. The state interface is, for example, an N3 interface or an N4 interface. The N3 interface is an interface between a UPF and a (R)AN, and is used to transmit uplink and downlink user plane data between the (R)AN and the UPF. The N4 interface is an interface between an SMF and a UPF, and is used to transmit control plane information between the SMF and the UPF. When the N3 interface or the N4 interface is abnormal, the device state of the first offloading device is regarded as an abnormal state. It can be understood that the above-described manner of detecting the device state of the first offloading device is applicable to detecting the device state of the offloading device, and is also applicable to detecting the device state of the second offloading device.
[0057] In step 204, when the device state of the first offloading device is abnormal, the second address pool corresponding to the second offloading device is allocated to the target user terminal.
[0058] In this embodiment, the core network element configures the user with the first offloading device and the second offloading device. The first offloading device and the second offloading device can both be ULCL devices. The first offloading device corresponds to a first address pool, and the second offloading device corresponds to a second address pool. When the device state of the first offloading device is normal, the first address pool corresponding to the first offloading device is allocated to the target user terminal. When the device state of the first offloading device is abnormal, the second address pool corresponding to the second offloading device is allocated to the target user terminal. The address segment corresponding to the first address pool and the address segment corresponding to the second address pool are different.
[0059] It can be understood that the device state of the second offloading device in this embodiment is a normal state, and the second offloading device can be any offloading device other than the first offloading device.
[0060] In step 206, when the target user terminal is configured with the second data network corresponding to the second address pool, a second target address in the second address pool is allocated to the target user terminal, so as to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address.
[0061] In this embodiment, the core network element configures the target user terminal with the first address pool and the second address pool. When the device state of the first offloading device corresponding to the first address pool is abnormal, the target user terminal is allocated the second address pool corresponding to the second offloading device. When the core network element configures a data network, each data network name is associated with a corresponding address pool name, indicating that the target user terminal uses an address in the corresponding address pool when connecting a data network corresponding to the data network name. The data network includes, but is not limited to, the Internet and a private network.
[0062] When the target user terminal is configured with the second data network corresponding to the second address pool, the core network element allocates a second target address in the second address pool to the target user terminal, to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address, wherein the second target address can be any address in the second address pool, and the second target address is an unoccupied address in the second address pool.
[0063] The above session establishment method allocates a second address pool corresponding to a second shunting device to the target user terminal when the device state of the first shunting device is abnormal, allocates a second target address in the second address pool to the target user terminal when the target user terminal is configured with the second data network corresponding to the second address pool, and instructs the target user terminal to establish a packet data unit session with the second data network according to the second target address. The application can realize shunting device disaster recovery by setting the first shunting device and the second shunting device to shunt user data, can ensure continuous local shunting of user data, avoid the situation of performance bottleneck caused by access congestion, and ensure the establishment of a normal and efficient packet data unit session between the user terminal and the data network.
[0064] In one embodiment, the device state of the first shunting device is detected by detecting the state of the state interface.
[0065] In this embodiment, the device state of the target shunting device can be detected by detecting the state of the state interface. The state of the state interface includes the state of the state interface between the core network element and the target shunting device, and the device state of the first shunting device is determined according to the state of the state interface. When the state interface is abnormal, the first shunting device can also be considered abnormal. The state interface is, for example, an N3 interface or an N4 interface. The N3 interface is an interface between a UPF and a (R)AN, and the N4 interface is an interface between a SMF and a UPF. Optionally, the device state of the first shunting device can be detected every interval of a preset time length. Detecting the state interface also includes detecting whether the data format transmitted by the state interface meets a preset data format. When the data format transmitted by the state interface does not meet the preset data format, the state interface is abnormal.
[0066] In an optional embodiment, the device state of the first shunting device is determined according to the device state reported by the first shunting device by receiving the device state reported by the first shunting device. The device state reported by the first shunting device received can be taken as the device state of the first shunting device. In this embodiment, the first shunting device is provided with a detection device or a detection mechanism for detecting device faults. Every interval of a preset period is detected. When a device anomaly is detected, the device state is displayed through a status flag bit, or the detection condition is directly reported to the core network element.
[0067] In the above embodiment, the device state of the first shunt device is detected by detecting the state of the state interface, so that the device state of the first shunt device can be quickly detected, and when the first shunt device is abnormal, the second address pool corresponding to the second shunt device is quickly allocated to the target terminal user, and continuous shunting is realized.
[0068] In one embodiment, the priority of the first shunt device is higher than that of the second shunt device, and the method further comprises:
[0069] When the device state of the first shunt device is normal, the first address pool corresponding to the first shunt device is allocated to the target user; and when the target user configures the first data network corresponding to the first address pool, the first target address in the first address pool is allocated to the target user terminal to instruct the target user terminal to establish a packet data unit session with the first data network according to the first target address.
[0070] In this embodiment, the priority of the first shunt device is higher than that of the second shunt device, and the core network element first judges the device state of the first shunt device; when the device state of the first shunt device is normal, the first address pool corresponding to the first shunt device is allocated to the target user terminal; different data networks correspond to different address pools; when the target user terminal configures the first data network corresponding to the first address pool, the core network element allocates the first target address in the first address pool to the target user terminal to instruct the target user terminal to establish a packet data unit session with the first data network according to the first target address. The first target address is any address in the first address pool, and the first target address is an unoccupied address in the first address pool.
[0071] Optionally, when the device state of the first shunt device is abnormal, the core network element allocates the second address pool corresponding to the second shunt device to the target user terminal, and when the second shunt device corresponding to the second address pool is abnormal, the core network element re-allocates the first address pool corresponding to the first shunt device to the target user terminal. This is realized on the basis of assuming that the device state of the first shunt device is restored to normal. When the address occupied by the target user terminal is an address in the second address pool, that is, it corresponds to the second shunt device, and the device state of the second shunt device is normal, when the first shunt device is restored to normal, the core network element allocates the first address pool corresponding to the first shunt device to other target user terminals.
[0072] In the above embodiment, when the device state of the first shunt device is normal, the first address pool corresponding to the first shunt device is allocated to the target user terminal; when the state of the first shunt device is abnormal, the second address pool corresponding to the second shunt device is allocated to the target user terminal, and when the target user configures the data network corresponding to the address pool, the target address in the address pool is allocated to the target user terminal, so that the target user terminal can establish a PDU session with the corresponding data network according to the target address. The method can realize disaster recovery of the first shunt device and the second shunt device, ensure that there is a shunt device for shunting in real time, avoid flow bypassing, and enable the user terminal to quickly and smoothly establish a PUD session with the data network.
[0073] In one embodiment, before detecting the device state of the first shunt device, the method further comprises: determining whether the user account belongs to a target user account according to a preset condition; and when the user account belongs to the target user account, performing the step of detecting the device state of the first shunt device.
[0074] In the embodiment, the preset condition for determining whether the user account belongs to the target user account can be that the subscription attribute of the user account is an ULCL user, and whether the current user account is an ULCL user account is determined according to the subscription attribute of the ULCL user. When the subscription attribute of the user account is an ULCL user, the user account belongs to the target user account. The subscription attribute can be used to indicate whether the user account has subscribed to the shunting function, and if the user account has subscribed to the shunting function, the user account is the target user account. It can be understood that the user account that meets a specific condition can also belong to the target user account.
[0075] When the user account is the target user account, the core network element configures the first address pool and the second address pool for the target user account, the first address pool points to the first shunt device, and the second address pool points to the second shunt device, that is, when the state of the first shunt device is abnormal, the second address pool corresponding to the second shunt device is allocated to the target user account.
[0076] In one embodiment, the method further comprises: when the user account does not belong to the target user account, detecting the device state of the first shunt device; when the device state of the first shunt device is normal, allocating the target address pool pointed to by the first shunt device to the user account; when the device state of the first shunt device is abnormal, configuring the target address pool pointed to by the second shunt device for the user account; when the device state of the first shunt device returns to normal, transferring the downlink packet of the user from the second shunt device to the first shunt device through the flow forwarding tunnel; when the target user configures the target data network corresponding to the target address pool, allocating the target address in the target address pool to the target user, and establishing a packet data unit session with the target data network according to the target address.
[0077] In the embodiment, when the user account belongs to the target user account, the core network element configures the first address pool and the second address pool for the target user account, the first address pool points to the first offloading device, and the second address pool points to the second offloading device; when the user account does not belong to the target user account, a target address pool is configured for the user account, the target address pool can point to the first offloading device and the second offloading device at the same time, and offloading device disaster recovery is realized through the first offloading device and the second offloading device.
[0078] When the user account does not belong to the target user account, the core network element detects the device state of the first offloading device, when the device state of the first offloading device is normal, the target address pool pointed to by the first offloading device is allocated to the user account, when the device state of the first offloading device is abnormal, the target address pool is pointed to by the second offloading device, and when the device of the first offloading device recovers to normal, the downlink message of the user is transferred from the second offloading device to the first offloading device through the traffic forwarding tunnel. The traffic forwarding tunnel is used for switching the downlink message of the user from the second offloading device to the first offloading device when it is identified that the device state of the first offloading device recovers to normal, the use priority of the first offloading device is higher than that of the second offloading device, and the traffic forwarding tunnel is set between the first offloading device and the second offloading device. The target address pool corresponds to the target data network, and when the user terminal is configured to the target data network corresponding to the target address pool, the target address in the target address pool is allocated to the user terminal to instruct the user terminal to establish a packet data unit session with the target data network according to the target address.
[0079] It can be understood that the first offloading device and the second offloading device can be respectively set on different UPFs, for example, the first offloading device is set on the first UPF, the second offloading device is set on the second UPF, the traffic forwarding tunnel can be set between the first UPF and the second UPF, and the traffic forwarding tunnel is connected, when the second offloading device receives the downlink message sent by the data network, and the second offloading device itself does not exist the uplink message corresponding to the downlink message, when the first offloading device recovers to normal, the downlink message is forwarded from the first UPF through the traffic forwarding tunnel, so that the first UPF sends the downlink message to the user terminal.
[0080] The session establishment method in the above embodiment configures a first address pool and a second address pool when the user account belongs to the target user account, the first address pool points to the first offloading device, and the second address pool points to the second offloading device; when the user account does not belong to the target user account, a target address pool is configured for the user account, and the target address pool can point to the first offloading device and the second offloading device at the same time. Different user accounts implement different ways of offloading device disaster recovery, can realize the diversity of disaster recovery, and can maximize the utilization rate of address resources. However, whether the user account belongs to the target user account or not, the first offloading device and the second offloading device are set to implement offloading device disaster recovery, so that more user terminal data can be locally offloaded, and the user terminal and the data network can normally and efficiently establish a packet data unit session.
[0081] In some embodiments, the core network element comprises a session management function network element or a user plane function network element.
[0082] In this embodiment, the core network element comprises a session management function network element, the device state of the first offloading device can be detected through the session management function network element, when the device state of the first offloading device is abnormal, the session management function network element allocates a second address pool corresponding to the second offloading device to the target user terminal, when the target user terminal is configured with a second data network corresponding to the second address pool, the session management function network element allocates a second target address in the second address pool to the target user to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address.
[0083] In this embodiment, the core network element comprises a user plane function network element, the device state of the first offloading device can be detected through the user plane function network element, when the device state of the first offloading device is abnormal, the user plane function network element allocates a second address pool corresponding to the second offloading device to the target user terminal, when the target user terminal is configured with a second data network corresponding to the second address pool, the user plane function network element allocates a second target address in the second address pool to the target user to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address.
[0084] In one embodiment, as shown in FIG. 3, the session establishment method comprises the following steps 302 to 312. Figure 3
[0085] Step 302, judging whether the user account belongs to the ULCL user according to the user subscription attribute.
[0086] Step 304, when the user account belongs to the ULCL user, detecting the device state of the main ULCL offloading device.
[0087] Step 306, when the device state of the primary ULCL device is normal, the primary address pool corresponding to the primary ULCL shunt device is allocated to the ULCL user.
[0088] Step 308, when the ULCL user configures the data network corresponding to the primary address pool, an address in the primary address pool is allocated to the ULCL user to instruct the ULCL user to establish a PDU session with the corresponding data network according to the address in the primary address pool.
[0089] Step 310, when the device state of the primary ULCL shunt device is abnormal, the backup address pool corresponding to the backup ULCL shunt device is allocated to the ULCL user.
[0090] Step 312, when the ULCL user configures the data network corresponding to the backup address pool, an address in the backup address pool is allocated to the ULCL user to instruct the ULCL user to establish a PDU session with the corresponding data network according to the address in the backup address pool.
[0091] The session establishment method in the above embodiment determines whether the user account belongs to the ULCL user through the user subscription attribute, and if the user account belongs to the ULCL user, determines whether to allocate the primary address pool or the backup address pool to the ULCL user according to the device state of the primary ULCL shunt device, realizes disaster recovery of the primary and backup shunt devices, avoids the ULCL user traffic from being detoured between the primary shunt device and the backup shunt device, improves the device resource utilization rate, realizes continuous shunting of user data, and at the same time can also speed up the shunting speed of user data.
[0092] In one example, the session establishment method flow chart is as shown in Figure 4 The SMF or UPF allocates a primary address pool and a backup address pool for the ULCL user terminal, the primary address pool points to the primary ULCL shunt device, and the backup address pool points to the backup ULCL shunt device. When the device state of the primary ULCL shunt device is normal, the SMF or UPF allocates the primary address pool corresponding to the primary ULCL shunt device for the ULCL user terminal, when the device state of the primary ULCL shunt device is abnormal, the SMF or UPF allocates the backup address pool corresponding to the backup ULCL shunt device for the user terminal, and when the ULCL user terminal configures the data network corresponding to the backup address pool, an address in the backup address pool is allocated to the ULCL user terminal to instruct the ULCL user terminal to establish a packet data unit session with the corresponding data network according to the allocated address.
[0093] In addition, when the ULCL user terminal accesses the enterprise private network, the peer device is connected to the primary ULCL shunt device and the backup ULCL shunt device at the enterprise end, the peer device can configure the first routing device for the address segment of the primary address pool corresponding to the primary ULCL shunt device, and direct the downlink message of the user terminal to the primary ULCL shunt device through the first routing device; the peer device can configure the second routing device for the address segment of the backup address pool corresponding to the backup ULCL shunt device, and direct the downlink message of the user terminal to the backup ULCL shunt device through the second routing device. When the address of the ULCL user terminal is in the primary address pool, the first routing device directs the downlink message of the ULCL user terminal to the primary ULCL shunt device, and the primary ULCL device locally shunts the data of the ULCL user terminal; when the address of the ULCL user terminal is in the backup address pool, the second routing device directs the downlink message of the ULCL user terminal to the backup ULCL shunt device, and the backup ULCL device locally shunts the data of the ULCL user terminal.
[0094] In one example, the session establishment method flowchart is as shown in Figure 5 When the user is online, it is judged whether the user account of the user belongs to the ULCL user, if the user account belongs to the ULCL user, the device state of the primary ULCL shunt device is detected, when the device state of the primary ULCL shunt device is normal, the primary address pool corresponding to the primary ULCL shunt device is allocated to the ULCL user, when the ULCL user configures the first data network corresponding to the primary address pool, the first address in the primary address pool is allocated to the ULCL user, so that the ULCL user establishes a PDU session with the first data network according to the first address; when the device state of the primary ULCL shunt device is abnormal, the backup address pool corresponding to the backup ULCL shunt device is allocated to the ULCL user, when the ULCL user configures the second data network corresponding to the backup address pool, the second address in the backup address pool is allocated to the ULCL user, so that the ULCL user establishes a PDU session with the second data network according to the second address. If the user account does not belong to the ULCL user, the device state of the primary ULCL shunt device is detected, when the device state of the primary ULCL shunt device is normal, the primary ULCL shunt device is directed to the target address pool to the user terminal, when the user terminal configures the target data network corresponding to the target address pool, a PDU session is established with the target data network according to the address in the target address pool; when the device state of the primary ULCL shunt device is abnormal, the backup ULCL shunt device is directed to the target address pool to the user terminal, when the device state of the primary ULCL shunt device recovers to normal, the downlink message of the user terminal is transferred from the backup ULCL shunt device to the primary ULCL shunt device through the traffic forwarding tunnel, and when the user terminal configures the target data network corresponding to the target address pool, a PDU session is established with the target data network according to the address in the target address pool.
[0095] The session establishment method in the above embodiments can maximize the utilization of address resources by judging whether the user account belongs to an ULCL user, using different shunt device disaster recovery modes for different account types, meeting the shunt device disaster recovery of different account types, and enabling more user terminal data to be locally shunted, thereby ensuring that the user terminal and the data network can normally and efficiently establish a packet data unit session.
[0096] It should be understood that, although each step in the flowchart involved in each embodiment as described above is shown in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or steps or stages in other steps.
[0097] Based on the same inventive concept, the embodiments of the present application also provide a session establishment device for implementing the above-mentioned session establishment method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more session establishment device embodiments provided below can refer to the limitations of the session establishment method described above, and will not be repeated here.
[0098] In one embodiment, as shown in Figure 6 A session establishment device is provided, applied to a core network element, comprising: a state detection module 602, a device disaster recovery module 604, and an address allocation module 606, wherein:
[0099] The state detection module 602 is configured to detect the device state of a first shunt device; the first shunt device corresponds to a first address pool;
[0100] The device disaster recovery module 604 is configured to, when the device state of the first shunt device is abnormal, allocate a second address pool corresponding to a second shunt device to a target user terminal;
[0101] The address allocation module 606 is configured to, when the target user terminal is configured with a second data network corresponding to the second address pool, allocate a second target address in the second address pool to the target user terminal, to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address.
[0102] In an embodiment, the state detection module 602 is further configured to detect the device state of the first offloading device by detecting the state of the state interface.
[0103] In an embodiment, the first offloading device has a higher priority than the second offloading device, and the session establishment apparatus further comprises a first session module configured to:
[0104] when the device state of the first offloading device is normal, assign the first address pool corresponding to the first offloading device to the target user terminal;
[0105] when the target user configures the first data network corresponding to the first address pool, assign a first target address in the first address pool to the target user terminal to instruct the target user terminal to establish a packet data unit session with the first data network according to the first target address.
[0106] In an embodiment, the session establishment apparatus further comprises an account judgment module configured to, before detecting the device state of the first offloading device, judge whether a user account belongs to a target user account according to a preset condition; and when the user account belongs to the target user account, perform the step of detecting the device state of the first offloading device.
[0107] In an embodiment, the session establishment apparatus further comprises a second session module configured to:
[0108] when the user account does not belong to the target user account, detect the device state of the first offloading device;
[0109] when the device state of the first offloading device is normal, assign a target address pool pointed to by the first offloading device to the user account; and when the device state of the first offloading device is abnormal, configure the user account with a target address pool pointed to by the second offloading device;
[0110] when the device state of the first offloading device returns to normal, transfer downlink packets of the user from the second offloading device to the first offloading device through a traffic forwarding tunnel;
[0111] when the target user configures a target data network corresponding to the target address pool, assign a target address in the target address pool to the target user to establish a packet data unit session with the target data network according to the target address.
[0112] Each of the above session establishment apparatuses can be realized by software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a memory in a computer device in software form, so as to be called and executed by a processor to perform the operations corresponding to each of the above modules.
[0113] In an embodiment, a computer device is provided, which can be a server, and an internal structure diagram thereof can be as shown in FIG. 1. Figure 7 The computer device includes a processor, a memory, an input / output interface (I / O), and a communication interface. The processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The database of the computer device is configured to store address pool data. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to communicate with terminals outside through a network connection. The computer program is executed by the processor to implement a session establishment method.
[0114] Those skilled in the art can understand that Figure 7 The structure shown in FIG. 1 is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. Specifically, the computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0115] In an embodiment, a computer device is provided, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0116] In an embodiment, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by a processor to implement the steps in the above method embodiments.
[0117] In an embodiment, a computer program product is provided, which includes a computer program. The computer program is executed by a processor to implement the steps in the above method embodiments.
[0118] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use, and processing of related data need to comply with relevant laws, regulations, and standards of relevant countries and regions.
[0119] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0120] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.
[0121] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A session establishment method, characterized by, The method is applied to a core network element, and the method comprises: detecting a device state of a first offloading device; the first offloading device corresponds to a first address pool; when the device state of the first offloading device is abnormal, allocating a second address pool corresponding to a second offloading device to a target user terminal; an address segment corresponding to the first address pool and an address segment corresponding to the second address pool are different; when the target user terminal is configured with a second data network corresponding to the second address pool, allocating a second target address in the second address pool to the target user terminal to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address.
2. The method of claim 1, wherein, The detection of the device state of the first offloading device comprises: detecting the device state of the first offloading device by detecting a state of a state interface.
3. The method of claim 1, wherein, The priority of the first offloading device is higher than that of the second offloading device; the method further comprises: when the device state of the first offloading device is normal, allocating the first address pool corresponding to the first offloading device to the target user terminal; when the target user is configured with a first data network corresponding to the first address pool, allocating a first target address in the first address pool to the target user terminal to instruct the target user terminal to establish a packet data unit session with the first data network according to the first target address.
4. The method of claim 1, wherein, Before the detection of the device state of the first offloading device, the method further comprises: determining whether a user account belongs to a target user account according to a preset condition; when the user account belongs to the target user account, performing the step of detecting the device state of the first offloading device.
5. The method of claim 4, wherein, The method further comprises: when the user account does not belong to the target user account, detecting the device state of the first offloading device; when the device state of the first offloading device is normal, allocating a target address pool pointed to by the first offloading device to the user account; when the device state of the first offloading device is abnormal, configuring the user account with the target address pool pointed to by the second offloading device; when the device state of the first offloading device returns to normal, transferring downlink packets of the user from the second offloading device to the first offloading device through a traffic forwarding tunnel; when the user account is configured with a target data network corresponding to the target address pool, allocating a target address in the target address pool to the user account to establish a packet data unit session with the target data network according to the target address.
6. The method according to any one of claims 1 to 5, characterized in that, The core network element comprises a session management function network element or a user plane function network element.
7. A session establishment apparatus, characterized by comprising: The device is applied to a core network element, and the device comprises: a state detection module configured to detect a device state of a first offloading device; the first offloading device corresponds to a first address pool; a device disaster recovery module configured to, when the device state of the first offloading device is abnormal, allocate a second address pool corresponding to a second offloading device to a target user terminal; an address segment corresponding to the first address pool and an address segment corresponding to the second address pool are different; An address allocation module is configured to allocate a second target address in the second address pool to the target user terminal when the target user terminal is configured to access a second data network corresponding to the second address pool, so as to instruct the target user terminal to establish a packet data unit session with the second data network according to the second target address.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 6.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program which, when executed by the processor, implements the steps of the method of any one of claims 1 to 6.
Citation Information
Patent Citations
Fault processing method and device for shunting UPF, equipment and storage medium
CN114615132A