Switching method and device and storage medium

By obtaining the future location and service information of the terminal equipment and pre-configuring the switching equipment and network nodes, the problem of high resource consumption of 5G network is solved and efficient resource utilization of 6G network is achieved.

CN120434722APending Publication Date: 2025-08-05DATANG MOBILE COMM EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410165747.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-05
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

The lack of artificial intelligence capabilities of 5G networks has led to the consumption of large amounts of communication network resources in centralized data analysis, and it is difficult to efficiently utilize edge computing resources in 6G distributed network scenarios.

Method used

By acquiring the location information and service information of the terminal device at a future moment, pre-configuring the switching device and network nodes, reducing network data collection and processing, and directly performing handover preparation based on terminal information.

Benefits of technology

Save network resources, reduce network consumption, and improve network efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120434722A_ABST
    Figure CN120434722A_ABST
Patent Text Reader

Abstract

The invention discloses a switching method and device and a storage medium, and relates to the technical field of communication. The specific implementation scheme is as follows: acquiring position information and service information of the terminal equipment at a second moment; according to the position information and / or the business information, determining a target object providing services for the terminal device at a second moment, the target object being a target device and / or a target node; sending a first switching request message to a target device, the first switching request message being used for requesting the target device to prepare for switching, or sending a second switching request message to a first distributed node, the second switching request message being used for requesting the target device to prepare for switching, the second switching request message is used for requesting the first distributed node to indicate the terminal context of the synchronization terminal device to the target node and / or indicate the target device to perform switching preparation to the target node. Therefore, the network equipment can directly pre-configure the switching equipment and / or the switching node based on the position information and the service information of the terminal equipment at the second moment, network resources are saved, and network consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] 6G (6th-Generation Mobile Communication Technology) networks, a comprehensive upgrade of 5G (5th-Generation Mobile Communication Technology), are driving fundamental changes in communication terminals. As terminal capabilities become increasingly powerful, 6G terminals will generally support on-device artificial intelligence (AI) and even on-device training. Furthermore, terminals will possess a certain degree of autonomous decision-making and autonomous action capabilities.

[0003] Currently, 5G networks lack AI (artificial intelligence) capabilities and require the collection of large amounts of data for centralized analysis, potentially consuming significant amounts of communication network resources. Furthermore, in 6G distributed network scenarios, distributed nodes are deployed on demand, while centralized processing, analysis, and feedback require a high degree of aggregation of computing resources, making it difficult to efficiently utilize multi-point and edge computing resources. Summary of the Invention

[0004] The present application provides a switching method, device and storage medium.

[0005] According to a first aspect of the present application, a handover method is provided, which is applied to a first network device, where the first network device is a network device providing services to a terminal device at a first moment, and the first network device is connected to a first distributed node. The method includes:

[0006] Acquire location information and service information of the terminal device at a second moment, wherein the second moment is after the first moment;

[0007] Determining, based on the location information and / or the service information, a target object providing a service to the terminal device at the second moment, wherein the target object is a target device and / or a target node;

[0008] A first switching request message is sent to the target device, wherein the first switching request message is used to request the target device to prepare for switching, or a second switching request message is sent to the first distributed node, wherein the second switching request message is used to request the first distributed node to instruct the target node to synchronize the terminal context of the terminal device and / or to instruct the target node to prepare for switching.

[0009] According to a second aspect of the present application, a switching method is provided, which is applied to a first distributed node. The method includes:

[0010] Receiving a second switching request message sent by a first network device, where the second switching request message is used to request the first distributed node to indicate to a target node to synchronize the terminal context of a terminal device and / or to indicate to the target node that the target device performs switching preparation;

[0011] Wherein, the first network device is a network device that provides services to the terminal device at a first moment, and the first network device is connected to the first distributed node.

[0012] According to a third aspect of the present application, a switching method is provided, which is applied to a target device. The method includes:

[0013] Receiving a first switching request message sent by a first network device, where the first switching request message is used to request the target device to perform switching preparation;

[0014] Wherein, the first network device is a network device that provides services to a terminal device at a first moment, and the first network device is connected to the first distributed node.

[0015] According to a fourth aspect of the present application, a switching device is provided, which includes a memory, a transceiver, and a processor:

[0016] The memory is used to store a computer program; the transceiver is used to transmit and receive data under the control of the processor; the processor is used to read the computer program in the memory and perform the following operations:

[0017] H Obtaining the location information and service information of the terminal device at a second moment, where the second moment is after the first moment;

[0018] Determining a target object that provides services to the terminal device at the second moment according to the location information and / or the service information, where the target object is a target device and / or a target node;

[0019] Sending a first switching request message to the target device, where the first switching request message is used to request the target device to perform switching preparation; or sending a second switching request message to the first distributed node, where the second switching request message is used to request the first distributed node to indicate to the target node to synchronize the terminal context of the terminal device and / or to indicate to the target node that the target device performs switching preparation.

[0020] According to a fifth aspect of the present application, a switching device is provided, which includes a memory, a transceiver, and a processor:

[0021] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; a processor for reading the computer program in the memory and performing the following operations:

[0022] Receiving a second handover request message sent by a first network device, where the second handover request message is used to request the first distributed node to indicate the terminal context of the synchronization terminal device to the target node and / or to indicate to the target node that the target device performs handover preparation;

[0023] Wherein, the first network device is a network device that provides services to the terminal device at a first moment, and the first network device is connected to a first distributed node.

[0024] According to a sixth aspect of the present application, a handover device is provided, including a memory, a transceiver, and a processor:

[0025] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; a processor for reading the computer program in the memory and performing the following operations:

[0026] Receiving a first handover request message sent by a first network device, where the first handover request message is used to request the target device to perform handover preparation;

[0027] Wherein, the first network device is a network device that provides services to a terminal device at a first moment, and the first network device is connected to a first distributed node.

[0028] According to a seventh aspect of the present application, a handover device is provided, which is applied to a first network device. The first network device is a network device that provides services to a terminal device at a first moment, and the first network device is connected to a first distributed node. The device includes:

[0029] An acquisition unit for acquiring the location information and service information of the terminal device at a second moment, where the second moment is after the first moment;

[0030] A first determination unit for determining a target object that provides services to the terminal device at the second moment according to the location information and / or the service information, where the target object is a target device and / or a target node;

[0031] A first sending unit, configured to send a first handover request message to the target device, where the first handover request message is used to request the target device to perform handover preparation, or send a second handover request message to the first distributed node, where the second handover request message is used to request the first distributed node to instruct the target node to synchronize the terminal context of the terminal device and / or instruct the target node to perform handover preparation for the target device.

[0032] According to an eighth aspect of the present application, there is provided a handover device applied to a first distributed node. The device includes:

[0033] A fourth receiving unit, configured to receive a second handover request message sent by a first network device, where the second handover request message is used to request the first distributed node to instruct the target node to synchronize the terminal context of the terminal device and / or instruct the target node to perform handover preparation for the target device;

[0034] Wherein, the first network device is a network device that provides services to the terminal device at a first moment, and the first network device is connected to the first distributed node.

[0035] According to a ninth aspect of the present application, there is provided a handover device applied to a target device. The device includes:

[0036] An eighth receiving unit, configured to receive a first handover request message sent by a first network device, where the first handover request message is used to request the target device to perform handover preparation;

[0037] Wherein, the first network device is a network device that provides services to the terminal device at a first moment, and the first network device is connected to the first distributed node.

[0038] According to a tenth aspect of the present application, there is provided a processor-readable storage medium storing a computer program, where the computer program is used to cause the processor to execute the method described in the embodiment of the first aspect of the present application, or execute the method described in the embodiment of the second aspect of the present application, or execute the method described in the embodiment of the third aspect of the present application.

[0039] According to the switching method, device, and storage medium provided by the present application, by obtaining the location information and service information of the terminal device at a second moment, where the second moment is after the first moment, and then determining, based on the location information and / or service information, a target object that provides services to the terminal device at the second moment, where the target object is a target device and / or a target node, and further sending a first switching request message to the target device, where the first switching request message is used to request the target device to prepare for switching, or sending a second switching request message to a first distributed node, where the second switching request message is used to request the first distributed node to indicate to the target node to synchronize the terminal context of the terminal device and / or to indicate to the target node to prepare the target device for switching. Thus, the network device can directly pre-configure the switching of the base station and the distributed network node based on the location information and service information of the terminal device at the second moment, saving network resources and reducing network consumption.

[0040] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become easily understood through the following description. Brief Description of the Drawings

[0041] The drawings are used to better understand the solution and do not constitute a limitation to the present application. Among them:

[0042] Figure 1 is a schematic flowchart of the switching method provided by the first embodiment of the present application;

[0043] Figure 2 is a schematic diagram of the switching of the access base station within the node provided by the second embodiment of the present application;

[0044] Figure 3 is a schematic diagram of the switching of the access distributed node between nodes provided by the third embodiment of the present application;

[0045] Figure 4 is a schematic diagram of the switching of the access base station and the access distributed node between nodes provided by the fourth embodiment of the present application;

[0046] Figure 5 is a schematic flowchart of the switching method provided by the fifth embodiment of the present application;

[0047] Figure 6 is a schematic flowchart of the switching method provided by the sixth embodiment of the present application;

[0048] Figure 7 is a schematic flowchart of the switching method provided by the seventh embodiment of the present application;

[0049] Figure 8It is a schematic flowchart of the switching method provided in the eighth embodiment of the present application;

[0050] Figure 9 It is a schematic flowchart of the switching method provided in the ninth embodiment of the present application;

[0051] Figure 10 It is a schematic flowchart of the switching method provided in the tenth embodiment of the present application;

[0052] Figure 11 It is a schematic diagram of the terminal registration process provided in the eleventh embodiment of the present application;

[0053] Figure 12 It is a schematic diagram of the session establishment process provided in the twelfth embodiment of the present application;

[0054] Figure 13 It is a schematic diagram of the switching process within a node provided in the thirteenth embodiment of the present application;

[0055] Figure 14 It is a schematic diagram of the switching process between nodes provided in the fourteenth embodiment of the present application;

[0056] Figure 15 It is a schematic diagram of the switching process between nodes provided in the fifteenth embodiment of the present application;

[0057] Figure 16 It is a schematic structural diagram of the switching device provided in the sixteenth embodiment of the present application;

[0058] Figure 17 It is a schematic structural diagram of the switching device provided in the seventeenth embodiment of the present application;

[0059] Figure 18 It is a schematic structural diagram of the switching device provided in the eighteenth embodiment of the present application;

[0060] Figure 19 It is a schematic structural diagram of the switching device provided in the nineteenth embodiment of the present application;

[0061] Figure 20 It is a schematic structural diagram of the switching device provided in the twentieth embodiment of the present application;

[0062] Figure 21 It is a schematic structural diagram of the switching device provided in the twenty - first embodiment of the present application. Specific embodiments

[0063] In the embodiments of the present application, the term "and / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0064] In the embodiments of the present application, the term "multiple" refers to two or more, and other quantifiers are similar.

[0065] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0066] 5G terminals are mainly oriented to three application scenarios, namely enhanced mobile broadband (eMBB), ultra-high reliability and low latency communication (uRLLC), and massive machine-type communication (mMTC), mainly to meet communication requirements. The future 6G system is expected to provide various high-precision sensing services. To support various complex sensing application scenarios, in addition to enhancing the communication capabilities, 6G terminals also need to possess sensing capabilities, AI capabilities, computing power capabilities, security capabilities, etc. that meet specific requirements.

[0067] Therefore, the present application proposes a switching method, device, and storage medium. Based on the enhanced capabilities of 6G terminals, the terminal predicts its own location information and service information, and at the same time reports its current location information and service information, as well as the location information and service information at the next moment when the terminal registers and establishes a session, for subsequent network policy adjustment. By placing data processing, training, etc. on the terminal side, the process of the network collecting and processing data is reduced, and the network device directly pre-configures the switching device and / or switching node based on the location information and service information of the terminal device at a future moment, saving network resources and reducing network consumption.

[0068] Among them, the method and the device are based on the same inventive concept. Since the principles of the method and the device for solving problems are similar, the implementation of the device and the method can be referred to each other, and the repeated parts will not be described again.

[0069] The technical solutions provided by the embodiments of this application can be applicable to a variety of systems, especially future communication systems, such as 6G systems. For example, the applicable systems can be GSM (Global System for Mobile Communications), CDMA (Code Division Multiple Access) system, WCDMA (Wide-band Code Division Multiple Access) system, GPRS (General Packet Radio Service) system, LTE (Long Term Evolution) system, LTE FDD (Frequency Division Duplex) system, LTE TDD (Time Division Duplex) system, LTE-A (Long Term Evolution Advanced) system, UMTS (Universal Mobile Telecommunication System), WiMAX (Worldwide Interoperability for Microwave Access) system, 5G system, etc. Both terminal devices and network devices are included in these various systems. The system may also include a core network part, such as EPS (Evolved Packet System), 5GC (5G Core Network), etc.

[0070] The terminal device involved in the embodiments of the present application can be a device that provides voice and / or data connectivity to users, such as a handheld device with wireless connection capabilities, or other processing devices connected to a wireless modem, etc. In different systems, the name of the terminal device may also be different. For example, in a 5G system, the terminal device can be called a UE. The wireless terminal device can communicate with one or more CNs via the RAN. The wireless terminal device can be a mobile terminal device, such as a mobile phone (or called a "cellular" phone) and a computer with a mobile terminal device. For example, it can be a portable, pocket-sized, handheld, computer-integrated or vehicle-mounted mobile device, which exchanges language and / or data with the radio access network. For example, devices such as PCS (Personal Communication Service) phones, cordless phones, SIP (Session Initiated Protocol) phones, WLL (Wireless Local Loop) stations, PDAs (Personal Digital Assistant), etc. The wireless terminal device can also be called a system, subscriber unit, subscriber station, mobile station, mobile, remote station, access point, remote terminal device, access terminal device, user terminal device, user agent, user device, which is not limited in the embodiments of the present application.

[0071] The network device involved in the embodiments of this application can be a base station, which can include multiple cells that provide services to terminals. Depending on the specific application scenarios, the base station can also be referred to as an access point, or it can be a device in the access network that communicates with wireless terminal devices through one or more sectors over the air interface, or other names. The network device can be used to mutually replace the received air frames and IP (Internet Protocol) packets, acting as a router between the wireless terminal device and the rest of the access network; where the rest of the access network can include an Internet Protocol (IP) communication network. The network device can also coordinate the management of the attributes of the air interface. For example, the network device involved in the embodiments of this application can be a BTS (Base Transceiver Station) in GSM or CDMA, or a NodeB (network device) in WCDMA, or an eNB or e-NodeB (evolutional Node B) in the LTE system, a gNB (5G base station) in the 5G network architecture (next generation system), or a HeNB (Home evolved Node B), a relay node, a femto, a pico, etc. The embodiments of this application do not limit this. In some network architectures, the network device can include a CU (Centralized Unit) node and a DU (Distributed Unit) node, and the CU and DU can also be geographically separated.

[0072] The network device and the terminal device can each use one or more antennas for MIMO (Multi Input Multi Output) transmission, and the MIMO transmission can be SU-MIMO (Single User MIMO) or MU-MIMO (Multiple User MIMO). Depending on the form and number of antenna combinations, the MIMO transmission can be 2D-MIMO, 3D-MIMO, FD-MIMO or massive-MIMO, or it can also be diversity transmission, precoding transmission, beamforming transmission, etc.

[0073] The following describes the handover method, device, and storage medium of the embodiments of this application with reference to the accompanying drawings.

[0074] Figure 1 It is a flowchart of the handover method provided by the first embodiment of this application.

[0075] It should be noted that the switching method in the embodiments of the present application is applied to the first network device, which is the network device that provides services to the terminal device at the first moment, and the first network device is connected to the first distributed node.

[0076] As Figure 1 shown, the switching method may include the following steps:

[0077] Step 101, obtain the location information and service information of the terminal device at the second moment.

[0078] Among them, the second moment is after the first moment.

[0079] Optionally, the first moment can be understood as the current moment, the second moment is the next moment of the current moment, and the time interval between the first moment and the second moment is fixed. For example, assuming the time interval is Δt and the current moment is t1, it means that the first moment is t1 at this time. Correspondingly, the second moment t2 = t1 + Δt. And if the current moment is t2, it means that the first moment is t1 at this time. Correspondingly, the second moment t3 = t2 + Δt, and so on.

[0080] Optionally, the location information and service information of the terminal device at the second moment can be predicted by the terminal device based on historical location information and historical service information.

[0081] As an example, time can be divided into fixed time slots t. The terminal device can collect, process, and analyze historical location information and historical service information at the current moment T based on its own AI, perception, and computing power capabilities, and intelligently predict the location information and service information at the next moment T + t.

[0082] Note: When t is small enough, accurate time for changes in terminal location information and service information can be obtained.

[0083] It should be noted that if the terminal device already knows the location information and service information at the next moment T + t, there is no need for prediction.

[0084] Note: The prediction method can be either through the terminal itself based on artificial intelligence methods such as reinforcement learning and federated learning, or through mutual discovery and collaboration among terminals. This is not limited in this embodiment.

[0085] In some embodiments, the terminal device can report the location information of the terminal device at the first moment and the location information of the terminal device at the second moment when registering the terminal, and report the service information of the terminal device at the first moment and the service information of the terminal device at the second moment when establishing a session. Thus, the first network device can obtain the location information and service information of the terminal device at the second moment.

[0086] As a possible implementation, the first network device can obtain the location information of the terminal device at the second moment by receiving a registration request sent by the terminal device, where the registration request carries the location information of the terminal device at the first moment and the location information of the terminal device at the second moment, and obtain the service information of the terminal device at the second moment by receiving a session establishment request sent by the terminal device, where the session establishment request carries the service information of the terminal device at the first moment and the service information of the terminal device at the second moment.

[0087] Step 102: Determine the target object that provides services to the terminal device at the second moment according to the location information and / or service information.

[0088] The target object is a target device and / or a target node.

[0089] As a possible implementation, the first network device can send a query request to the OAM (Operations, Administration, and Maintenance) according to the location information and / or service information. The query request is used to request the OAM to query the target object based on the location information and / or service information, and then receive a query response sent by the OAM. The query response is used to indicate the target object, thereby implementing the determination of the target object that provides services to the terminal device at the second moment based on the location information and / or service information.

[0090] Optionally, the second moment is separated from the first moment by a preset time slot. The query request can be a first query request or a second query request. Thus, when the terminal service type remains unchanged within the preset time slot, the first network device can send the first query request to the OAM according to the location information. The first query request is used to request the OAM to query the target device and / or target node based on the location information. Or, when the terminal service changes earlier than the terminal location within the preset time slot, the second query request is sent to the OAM according to the service information. The second query request is used to request the OAM to query the target device and / or target node based on the service information. The first network device is also connected to a second distributed node. The queried target device is one of the following:

[0091] A second network device connected to the first distributed node;

[0092] A third network device connected to the third distributed node;

[0093] And / or, the queried target node is one of the following:

[0094] The second distributed node;

[0095] The third distributed node.

[0096] That is to say, if the terminal service type remains unchanged within the predicted time slot, only the impact of the terminal location on handover is considered. If the terminal service type changes earlier than the location within the predicted time slot, the impact of the terminal service on handover should be considered. Among them, the handover may involve handover of accessing the base station and / or handover of accessing the distributed node.

[0097] It should be noted that the second network device is another network device within the first distributed node, and is a different network device from the first network device. The third network device is a new network device, and has no relationship with the first distributed node and the second distributed node. The third network device is a network device accessing the third distributed node and is a network device within the third distributed node.

[0098] The second distributed node is another distributed node accessed by the first network device, and is a different distributed node from the first distributed node. The third distributed node is a new distributed node, and has no relationship with the first network device and the second network device.

[0099] Step 103, send a first handover request message to the target device, or send a second handover request message to the first distributed node.

[0100] Among them, the first handover request message is used to request the target device to prepare for handover.

[0101] Among them, the second handover request message is used to request the first distributed node to indicate to the target node to synchronize the terminal context of the terminal device and / or indicate to the target node to prepare for handover of the target device.

[0102] As a possible implementation manner, the first network device may send a first handover request message to the second network device when the target device is the second network device, where the first handover request message is used to request the second network device to prepare for handover. Or, when the target device is the third network device and the target node is the third distributed node, send a second handover request message to the first distributed node, where the second handover request message is used to request the first distributed node to indicate to the third distributed node to synchronize the terminal context of the terminal device and indicate to the third distributed node to prepare for handover of the third network device. Or, when the target node is the second distributed node, send a second handover request message to the first distributed node, where the second handover request message is used to request the first distributed node to indicate to the second distributed node to synchronize the terminal context of the terminal device.

[0103] As an example, in this application, the handover situations may include the following three types:

[0104] One, Figure 2Handover of the access base station within the shown node (the access distributed node remains unchanged)

[0105] As Figure 2 shown, the terminal accesses RAN1 (the first network device) at the current moment T, RAN1 accesses the distributed node 1 (the first distributed node), and moreover, the target device determined by RAN1 based on the location information and / or service information of the terminal at the next moment T+t is RAN2 (the second network device) within the distributed node 1 (the first distributed node). At this time, since the target node remains unchanged, the target object determined by RAN1 is only RAN2. Since the target device is RAN2 within the distributed node 1, it also means that at the moment T+t, another network device within the same node provides services for the terminal. At this time, RAN1 can send a first handover request message for instructing RAN2 to prepare for handover to RAN2 in advance.

[0106] II. Figure 3 Handover of the access distributed node between the shown nodes (the access base station remains unchanged)

[0107] As Figure 3 shown, the terminal accesses RAN1 (the first network device) at the current moment T, RAN1 accesses the distributed node 1 (the first distributed node) and the distributed node 2 (the second distributed node), and moreover, the target device determined by RAN1 based on the location information and / or service information of the terminal at the next moment T+t is RAN1 (the first network device) within the distributed node 2 (the second distributed node). At this time, since the target device remains unchanged, the target object determined by RAN1 is only the distributed node 2. Since the target node changes from the distributed node 1 to the distributed node 2, therefore, RAN1 needs to send a terminal context for requesting the distributed node 1 to synchronize the terminal device to the distributed node 2 to the distributed node 1.

[0108] III. Figure 4 Handover of the access base station and the access distributed node between the shown nodes

[0109] As Figure 4As shown, the terminal accesses RAN1 (the first network device) at the current time T. RAN1 accesses the distributed node 1 (the first distributed node). Moreover, the target device determined by RAN1 based on the location information and / or service information of the terminal at the next time T+t is RAN2 (the third network device) within the distributed node 2 (the third distributed node). At this time, since both the target device and the target node have changed, the target objects determined by RAN1 are the distributed node 2 and RAN2. Since the target device is RAN2 within the distributed node 2, it means that at the time T+t, another network device within another node will provide services for the terminal. Therefore, RAN1 needs to send a second handover request message to the distributed node 1, which is used to request the distributed node 1 to indicate to the distributed node 2 to synchronize the terminal context of the terminal device and to indicate to the distributed node 2 that RAN2 prepares for handover.

[0110] Optionally, in this application, before the first network device sends the first handover request message to the target device or sends the second handover request message to the first distributed node, it may first determine whether the remaining time for service processing is sufficient to complete the handover preparation. As a possible implementation, the first network device may determine whether the remaining duration of service processing is greater than the target duration, so as to send the first handover request message to the target device or send the second handover request message to the first distributed node when the remaining duration of service processing is greater than the target duration. The target duration is the duration between the current time and the second time.

[0111] As an example, it can be stipulated that the first time is the current time T, the second time is the next time T+t of the current time, the current time is T’, T>T’>T+t. If the remaining time of the current service processing > T+t-T’ (the service migration time can be ignored), it means that the service processing time is sufficient to complete the handover preparation. At this time, the first network device may send the first handover request message to the target device or send the second handover request message to the first distributed node to perform the handover of accessing the base station and / or the handover of accessing the distributed node.

[0112] The switching method provided in this application obtains the location information and service information of the terminal device at a second moment, where the second moment is after the first moment. Then, based on the location information and / or service information, the target object that provides services to the terminal device at the second moment is determined. The target object is a target device and / or a target node. Furthermore, a first switching request message is sent to the target device, where the first switching request message is used to request the target device to prepare for switching, or a second switching request message is sent to a first distributed node, where the second switching request message is used to request the first distributed node to indicate to the target node to synchronize the terminal context of the terminal device and / or indicate to the target node to prepare the target device for switching. Thus, the network device can directly pre-configure the switching of the base station and the distributed network node based on the location information and service information of the terminal device at the second moment, saving network resources and reducing network consumption.

[0113] In this application, when the target device is a second network device, the first network device can also receive a first switching request confirmation message sent by the target device. The following will describe this process in conjunction with Figure 5 , and explain this process.

[0114] Figure 5 is a schematic flowchart of the switching method provided in the fifth embodiment of this application.

[0115] Similarly, the switching method of the embodiment of this application is applied to a first network device, which is the network device that provides services to the terminal device at the first moment, and the first network device is connected to a first distributed node.

[0116] As Figure 5 shown, the switching method may include the following steps:

[0117] Step 501, obtain the location information and service information of the terminal device at the second moment.

[0118] Step 502, determine the target object that provides services to the terminal device at the second moment according to the location information and / or service information.

[0119] It should be noted that the execution processes of steps 501-502 can refer to the execution processes of steps 101-102 in the above embodiments, with the same principle and will not be elaborated here.

[0120] Step 503, when the target device is a second network device, send a first switching request message to the second network device.

[0121] The first switching request message is used to request the second network device to prepare for switching.

[0122] It should be noted that when the target device is the second network device, since the second network device is connected to the first distributed node, at this time, the first network device and the second network device belong to the same distributed node, and the handover of the access base station within the node is performed. Therefore, the first network device can directly send a first handover request message for requesting the second network device to perform handover preparation to the second network device.

[0123] Step 504, receive a first handover request confirmation message sent by the second network device.

[0124] Among them, the first handover request confirmation message is used to indicate that the second network device has completed handover preparation and reserve a first resource for the terminal device.

[0125] Among them, the first resource is used to provide services for the terminal device when the first waiting duration does not exceed the first set duration threshold, or is released when the first waiting duration exceeds the first set duration threshold. The first waiting duration is the duration for which the second network device waits for the terminal device to access.

[0126] Among them, the first set duration threshold can be determined by the second network device based on the moment when the second network device sets the first set duration threshold and the second moment. For example, the second network device can determine the time difference between the moment when the second network device sets the first set duration threshold and the second moment as the first set duration threshold. At this time, when the first waiting duration exceeds the first set duration threshold, it means that the terminal has not moved according to the previously reported position or the previously reported service has not changed. Therefore, the second network device can release the first resource reserved for the terminal device. And when the first waiting duration does not exceed the first set duration threshold, it means that the terminal has moved according to the previously reported position or the previously reported service has changed, then the second network device can use the reserved first resource to provide services for the terminal device.

[0127] The handover method provided in this application sends a first handover request message to the second network device when the target device is the second network device, and thus receives a first handover request confirmation message sent by the second network device. Thus, the network device can know that the second network device has completed handover preparation based on the first handover request confirmation message sent by the second network device.

[0128] It should be noted that the above embodiments describe the implementation process of the handover method from the perspective of the first network device. The following combines Figure 6 , and describes a possible implementation manner of a handover method from the perspective of the first distributed node. Figure 6 It is a schematic flowchart of the handover method provided in the sixth embodiment of this application.

[0129] As Figure 6As shown, the switching method may include the following steps:

[0130] Step 601, receiving a second switching request message sent by a first network device.

[0131] The second switching request message is used to request the first distributed node to indicate to the target node to synchronize the terminal context of the terminal device and / or to indicate to the target node to prepare for the switching of the target device.

[0132] The first network device is a network device that provides services to the terminal device at a first moment, and the first network device accesses the first distributed node.

[0133] In some embodiments, if the target object determined by the first network device based on the location information and / or service information is only the target node, or the target object determined is the target node and the target device, the first network device may send a second switching request message to the first distributed node where the first network device is located, which is used to request the first distributed node to indicate to the target node to synchronize the terminal context of the terminal device and / or to indicate to the target node to prepare for the switching of the target device. Correspondingly, the first distributed node may receive the second switching request message sent by the first network device, and in response to the second switching request message, indicate to the target node to synchronize the terminal context of the terminal device and / or indicate to the target node to prepare for the switching of the target device.

[0134] It should be noted that when the target object determined by the first network device based on the location information and / or service information is only the target node, it means that only the access distributed node needs to be switched. When the target object determined by the first network device based on the location information and / or service information is the target node and the target device, it means that both the access base station and the access distributed node need to be switched. In both cases, the first network device cannot directly interact with the target node. Therefore, it is necessary to use the first distributed node where the first network device is located as a bridge, and by sending a second switching request message to the first distributed node, request the first distributed node to indicate to the target node to synchronize the terminal context of the terminal device and / or indicate to the target node to prepare for the switching of the target device.

[0135] It should be noted that when the first network device sends the second switching request message to the first distributed node, it will inform the first distributed node of the target node and / or the target device determined by the first network device based on the location information and / or service information reported by the terminal device at a future moment, so as to facilitate the first distributed node to indicate to the target node to synchronize the terminal context of the terminal device and / or indicate to the target node to prepare for the switching of the target device.

[0136] If the target object determined by the first network device based on the location information and / or service information is only the target node, the second handover request message sent by the first network device to the first distributed node is only used to request the first distributed node to instruct the target node to synchronize the terminal context of the terminal device. After receiving the second handover request message, the first distributed node will, through the interaction between the first distributed node and the target node, instruct the target node to synchronize the terminal context of the terminal device.

[0137] If the target object determined by the first network device based on the location information and / or service information is the target node and the target device, the second handover request message sent by the first network device to the first distributed node is used to request the first distributed node to instruct the target node to synchronize the terminal context of the terminal device and to instruct the target node to prepare for the handover of the target device. After receiving the second handover request message, the first distributed node will, through the interaction between the first distributed node and the target node, instruct the target node to synchronize the terminal context of the terminal device and to instruct the target node to prepare for the handover of the target device.

[0138] In the handover method provided in this application, the first distributed node receives the second handover request message sent by the first network device, and thus instructs the target node to synchronize the terminal context of the terminal device and / or instructs the target node to prepare for the handover of the target device. Thereby, only handover processing needs to be performed on the network side, saving network resources and reducing network consumption.

[0139] To clearly illustrate how the first distributed node instructs the target node to synchronize the terminal context of the terminal device and / or instructs the target node to prepare for the handover of the target device, the following is combined with Figure 7 to illustrate this process.

[0140] Figure 7 is a schematic flowchart of the handover method provided in the seventh embodiment of this application.

[0141] As Figure 7 shown, the handover method may include the following steps:

[0142] Step 701, receive the second handover request message sent by the first network device.

[0143] It should be noted that the execution process of this step can refer to the execution process of step 601 in the above embodiment, with the same principle, and will not be elaborated here.

[0144] Step 702, send a first create terminal context request message to the second distributed node or the third distributed node.

[0145] Among them, the first terminal context creation request message is used to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the first distributed node.

[0146] It should be noted that in the case where the second handover request message is used to request the first distributed node to indicate to the target node to synchronize the terminal context of the terminal device, the target node is the second distributed node or the third distributed node. Thus, in some embodiments, the first distributed node may send the first terminal context creation request message to the second distributed node or the third distributed node to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the first distributed node.

[0147] Step 703: Receive the transfer terminal context request message sent by the second distributed node or the third distributed node.

[0148] Among them, the transfer terminal context request message is used to request the first distributed node to synchronize the terminal context of the terminal device to the second distributed node or the third distributed node.

[0149] In some embodiments, when the second distributed node or the third distributed node receives the first terminal context creation request message sent by the first distributed node, it may send a transfer terminal context request message to the first distributed node to request the first distributed node to synchronize the terminal context of the terminal device to the second distributed node or the third distributed node. Correspondingly, the first distributed node may receive the transfer terminal context request message sent by the second distributed node or the third distributed node.

[0150] Step 704: Send a transfer terminal context response message to the second distributed node or the third distributed node.

[0151] Among them, the transfer terminal context response message is used to indicate the terminal context of the terminal device.

[0152] In some embodiments, the first distributed node may send a transfer terminal context response message to the second distributed node or the third distributed node to synchronize the terminal context of the terminal device to the second distributed node or the third distributed node.

[0153] Step 705: Receive the first terminal context creation response message sent by the second distributed node or the third distributed node.

[0154] Among them, the first terminal context creation response message is used to indicate that the second distributed node or the third distributed node has completed the synchronization of the terminal context of the terminal device.

[0155] In some embodiments, when the second distributed node or the third distributed node has completed the synchronization of the terminal context of the terminal device, it may send a first terminal context creation response message to the first distributed node to inform the first distributed node that this node has completed the synchronization of the terminal context of the terminal device. Correspondingly, the first distributed node may receive the first terminal context creation response message sent by the second distributed node or the third distributed node.

[0156] It should be noted that the above synchronization process is equally applicable to the synchronization of the registration context and the session context of the terminal device. The principle is the same and will not be elaborated here.

[0157] It should be noted that in this application, when the second handover request message is also used to instruct the target node to prepare for handover of the target device, the target node is the third distributed node and the target device is the third network device. At this time, the third distributed node is further used for:

[0158] Sending a third handover request message to the third network device, where the third handover request message is used to request the third network device to prepare for handover;

[0159] Receiving a second handover request confirmation message sent by the third network device, where the second handover request confirmation message is used to indicate that the third network device has completed the handover preparation and reserved a second resource for the terminal device;

[0160] The second resource is used to provide services for the terminal device when the second waiting duration does not exceed the second set duration threshold, or to be released when the second waiting duration exceeds the second set duration threshold;

[0161] The second waiting duration is the duration for which the third network device waits for the terminal device to access.

[0162] The second set duration threshold may be determined by the third network device based on the moment when the third network device sets the second set duration threshold and the second moment. For example, the third network device may determine the time difference between the moment when the third network device sets the second set duration threshold and the second moment as the second set duration threshold. At this time, when the second waiting duration exceeds the second set duration threshold, it means that the terminal has not moved according to the previously reported location or the previously reported service has not changed. Therefore, the third network device may release the second resource reserved for the terminal device. When the second waiting duration does not exceed the second set duration threshold, it means that the terminal has moved according to the previously reported location or the previously reported service has changed. Then, the third network device may use the reserved second resource to provide services for the terminal device.

[0163] Correspondingly, the third network device may receive a third handover request message sent by the third distributed node and send a second handover request confirmation message to the third distributed node.

[0164] Thus, the third network device can be requested to prepare for handover through the interaction between the third distributed node and the third network device.

[0165] In the handover method provided in this application, the first distributed node sends a first create terminal context request message to the second distributed node or the third distributed node, thereby receiving a transfer terminal context request message sent by the second distributed node or the third distributed node, and sending a transfer terminal context response message to the second distributed node or the third distributed node, and then receiving a first create terminal context response message sent by the second distributed node or the third distributed node. Thus, the first distributed node can synchronize the terminal context of the terminal device to the target node (the second distributed node or the third distributed node) through the interaction between the distributed nodes.

[0166] The previous embodiment described a possible implementation manner of synchronizing the terminal context through the interaction between the distributed nodes. The following Figure 8 describes a possible implementation manner of synchronizing the terminal context through the central node. Figure 8 is a schematic flowchart of the handover method provided in the eighth embodiment of this application.

[0167] As Figure 8 shown, the handover method may include the following steps:

[0168] Step 801, receive a second handover request message sent by the first network device.

[0169] It should be noted that the execution process of this step can refer to the execution process of step 601 in the above embodiment, with the same principle and will not be elaborated here.

[0170] Step 802, send a second create terminal context request message to the second distributed node or the third distributed node.

[0171] Among them, the second create terminal context request message is used to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the central node.

[0172] Note: The central node stores and manages the network element information and related data of all distributed nodes.

[0173] It should be noted that when the second switching request message is used to request the first distributed node to indicate the terminal context of the synchronization terminal device to the target node, the target node is the second distributed node or the third distributed node. Thus, in some embodiments, the first distributed node may send a second create terminal context request message to the second distributed node or the third distributed node to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the central node.

[0174] Step 803, receive a second create terminal context response message sent by the second distributed node or the third distributed node.

[0175] The second create terminal context response message is used to indicate that the second distributed node or the third distributed node has completed the synchronization of the terminal context of the terminal device.

[0176] In some embodiments, when the second distributed node or the third distributed node receives the second create terminal context request message sent by the first distributed node, it may obtain the terminal context of the terminal device from the central node, and when the synchronization of the terminal context of the terminal device is completed, it sends a second create terminal context response message to the first distributed node to inform the first distributed node that the local node has completed the synchronization of the terminal context of the terminal device. Accordingly, the first distributed node may receive the second create terminal context response message sent by the second distributed node or the third distributed node.

[0177] As a possible implementation, the process for the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the central node is as follows:

[0178] When the second distributed node or the third distributed node receives the second create terminal context request, it sends a terminal context acquisition request message to the central node. The terminal context acquisition request message is used to request the acquisition of the terminal context of the terminal device. The central node receives the terminal context acquisition request message sent by the second distributed node or the third distributed node and sends a terminal context acquisition response message to the second distributed node or the third distributed node. The terminal context acquisition response message is used to indicate the terminal context of the terminal device. Accordingly, the second distributed node or the third distributed node receives the terminal context acquisition response sent by the central node and completes the synchronization of the terminal context of the terminal device.

[0179] In summary, the second distributed node or the third distributed node is further used for:

[0180] Upon receiving the second request for creating a terminal context, send a request message for obtaining the terminal context to the central node, where the request message for obtaining the terminal context is used to request to obtain the terminal context of the terminal device;

[0181] Receive the response message for obtaining the terminal context sent by the central node, where the response message for obtaining the terminal context is used to indicate the terminal context of the terminal device.

[0182] It should be noted that the above synchronization process is equally applicable to the synchronization of the registration context and session context of the terminal device. The principle is the same and will not be elaborated here.

[0183] It should be noted that in this application, when the second handover request message is also used to instruct the target node to prepare for handover of the target device, the target node is the third distributed node and the target device is the third network device. At this time, the third distributed node is further used for:

[0184] Send a third handover request message to the third network device, where the third handover request message is used to request the third network device to prepare for handover;

[0185] Receive the second handover request confirmation message sent by the third network device, where the second handover request confirmation message is used to indicate that the third network device has completed the handover preparation and reserved the second resource for the terminal device;

[0186] The second resource is used to provide services for the terminal device when the second waiting duration does not exceed the second set duration threshold, or is released when the second waiting duration exceeds the second set duration threshold;

[0187] The second waiting duration is the duration for which the third network device waits for the terminal device to access.

[0188] The second set duration threshold can be determined by the third network device based on the moment when the third network device sets the second set duration threshold and the second moment. For example, the third network device can determine the time difference between the moment when the third network device sets the second set duration threshold and the second moment as the second set duration threshold. At this time, when the second waiting duration exceeds the second set duration threshold, it means that the terminal has not moved according to the previously reported position or the previously reported service has not changed. Therefore, the third network device can release the second resource reserved for the terminal device. When the second waiting duration does not exceed the second set duration threshold, it means that the terminal has moved according to the previously reported position or the previously reported service has changed. Then, the third network device can use the reserved second resource to provide services for the terminal device.

[0189] Correspondingly, the third network device may receive a third handover request message sent by the third distributed node and send a second handover request confirmation message to the third distributed node.

[0190] Thus, the third network device can be requested to perform handover preparation through the interaction between the third distributed node and the third network device.

[0191] In the handover method provided by this application, the first distributed node sends a second terminal context creation request message to the second distributed node or the third distributed node. The second terminal context creation request message is used to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the central node, so as to receive a second terminal context creation response message sent by the second distributed node or the third distributed node. Thus, the first distributed node can instruct the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the central node by sending a second terminal context creation request message to the second distributed node or the third distributed node, and complete the synchronization of the terminal context of the terminal device.

[0192] The above embodiments describe the implementation process of the handover method from the perspective of the first network device and the first distributed node. Next, in combination with Figure 9 , a possible implementation manner of a handover method is described from the perspective of the target device. Figure 9 FIG. is a schematic flowchart of the handover method provided in the ninth embodiment of this application.

[0193] As Figure 9 shown, the handover method may include the following steps:

[0194] Step 901, receive a first handover request message sent by the first network device.

[0195] The first handover request message is used to request the target device to perform handover preparation.

[0196] The first network device is the network device that provides services to the terminal device at the first moment, and the first network device is connected to the first distributed node.

[0197] In some embodiments, if the target object determined by the first network device based on location information and / or service information is only the target device, the first network device may directly send a first handover request message for requesting the target device to perform handover preparation to the target device. Correspondingly, the target device may receive the first handover request message sent by the first network device and perform corresponding handover preparation in response to the first handover request message.

[0198] It should be noted that when the target objects determined by the first network device based on location information and / or service information are the target node and the target device, it means that the access base station and the access distributed node need to be switched simultaneously. At this time, the first network device cannot directly interact with the target device. Therefore, only when the target object determined by the first network device based on location information and / or service information is only the target device, can the first network device directly interact with the target device, because only the access base station is switched at this time, indicating that the target device and the first network device are located within the same distributed node.

[0199] In the handover method provided by this application, the target device can receive the first handover request message sent by the first network device, and in response to the first handover request message, perform corresponding handover preparations. Thus, only handover processing needs to be performed on the network side, saving network resources and reducing network consumption.

[0200] Corresponding to Figure 5 the embodiment shown, the embodiment of this application provides a possible implementation manner of a handover method described from the perspective of the target device. Figure 10 It is a schematic flowchart of the handover method according to the tenth embodiment of this application.

[0201] As Figure 10 shown, the handover method may include the following steps:

[0202] Step 1001, receive the first handover request message sent by the first network device.

[0203] It should be noted that the execution process of this step can refer to the execution process of step 901 in the above embodiment, with the same principle and will not be elaborated here.

[0204] Step 1002, send a first handover request confirmation message to the first network device.

[0205] In this embodiment, the target device is the second network device, and the second network device is also connected to the first distributed node, and the first network device and the second network device can directly interact.

[0206] Among them, the first handover request confirmation message is used to indicate that the second network device has completed handover preparations and reserve the first resource for the terminal device.

[0207] Among them, the first resource is used to provide services for the terminal device when the first waiting duration does not exceed the first set duration threshold, or to be released when the first waiting duration exceeds the first set duration threshold. The first waiting duration is the duration for which the second network device waits for the terminal device to access.

[0208] Among them, the first set duration threshold can be determined by the second network device based on the moment when the second network device sets the first set duration threshold and the second moment. For example, the second network device can determine the time difference between the moment when the second network device sets the first set duration threshold and the second moment as the first set duration threshold. At this time, when the first waiting duration exceeds the first set duration threshold, it means that the terminal does not move according to the previously reported position or does not change the previously reported service. Therefore, the second network device can release the first resource reserved for the terminal device. When the first waiting duration does not exceed the first set duration threshold, it means that the terminal moves according to the previously reported position or changes the previously reported service. Then, the second network device can use the reserved first resource to provide services for the terminal device.

[0209] In the handover method provided in this application, when the target device is the second network device, the target device can send a first handover request confirmation message to the first network device, so that the first network device can know that the second network device has completed the handover preparation based on the first handover request confirmation message sent by the second network device.

[0210] To clearly illustrate the above embodiments, examples are given below for illustration.

[0211] In this application, the terminal predicts its own location information and service information based on historical information or regular behavior habits, and places processes such as data collection, processing, and analysis on the terminal side. The terminal actively reports future prediction results to the RAN (Radio Access Network) and the core network to assist in the early adjustment and optimization of the strategies of subsequent RAN and network nodes.

[0212] Embodiment 1 Terminal capability enhancement

[0213] The time is divided into fixed time slots t. The 6G terminal can collect, process, and analyze historical location information and service information at the current moment T based on its own AI, perception, and computing power capabilities, and intelligently predict the location information and service information at the next moment T+t.

[0214] Note: When t is small enough, the accurate time of the change in the terminal location information and the change in the service information can be obtained.

[0215] If the terminal already knows the location information and service information at the next moment T+t, there is no need for prediction.

[0216] Note: The prediction method can be either through the terminal itself based on artificial intelligence methods such as reinforcement learning and federated learning, or through mutual discovery and collaboration between terminals. This application does not make a limitation.

[0217] Embodiment 1.1 Registration

[0218] When the terminal registers with the base station and the core network, in addition to carrying the location information at the current moment T, it also carries the location information at the next moment T+t to assist in the early adjustment and optimization of the strategies of subsequent RAN and network nodes. The process is as follows: Figure 11 As shown, it includes the following steps:

[0219] Step 1101, the terminal sends a registration request to the RAN (base station).

[0220] The registration request carries both the location information at moment T and the location information at moment T+t. Optionally, the location information here can be time-stamped for differentiation.

[0221] Step 1102, the RAN (base station) performs AMF (Access and Mobility Management Function) selection.

[0222] The RAN (base station) selects a suitable distributed node and AMF for the terminal. It should be noted that the distributed node selected by the RAN (base station) for the terminal is the first distributed node in this application.

[0223] Step 1103, the RAN (base station) sends a registration request to the distributed node.

[0224] The registration request carries both the location information at moment T and the location information at moment T+t.

[0225] The subsequent steps of registration are the same as the existing registration steps.

[0226] Example 1.2 Session Establishment

[0227] When the terminal registers with the base station and the core network, in addition to carrying the location information at the current moment T, it also carries the location information at the next moment T+t to assist in the early adjustment and optimization of the strategies of subsequent RAN and network nodes. The process is as follows: Figure 12 As shown, it includes the following steps:

[0228] Step 1201, the terminal sends a session establishment request to the AMF of the distributed node.

[0229] The session establishment request carries both the service information at moment T and the service information at moment T+t. Optionally, the service information here can be time-stamped for differentiation.

[0230] The distributed node here is the first distributed node in this application.

[0231] Step 1202, the AMF of the distributed node performs SMF (Session Management Function) selection.

[0232] The AMF of the distributed node selects a suitable SMF for the terminal.

[0233] Step 1203, the AMF of the distributed node sends a session establishment request to other NFs (Network Functions) of the distributed node.

[0234] The session establishment request carries the service information at time T and the service information at time T+t simultaneously.

[0235] The subsequent steps of session establishment are the same as the existing session establishment steps.

[0236] Embodiment 2 The service type remains unchanged, and the policy is adjusted based on terminal location prediction

[0237] The network selects a suitable base station and distributed network node to provide services for the terminal based on the location information and service information at the current time T carried during terminal registration and session establishment, and simultaneously makes a policy adjustment in advance for the terminal according to the location information at the next time T+t.

[0238] Embodiment 2.1 Policy adjustment within the node

[0239] The network can adjust the terminal access policy in advance according to the location information at the next time T+t provided by the terminal. Through analysis, it is determined that the terminal will access another network device within the same distributed node at time T+t.

[0240] It can be stipulated that the current time is T’, where T < T’ < T+t. If the remaining time for current service processing > T+t - T’ (the service migration time can be ignored), then the terminal access base station is switched. The specific switching process is as Figure 13 shown, including the following steps:

[0241] Step 1301a, RAN1 requests the target RAN from the OAM.

[0242] Step 1301b, OAM1 returns a response to the OAM.

[0243] RAN1 queries the OAM for the information of the target RAN corresponding to this location according to the location information at the next time T+t reported by the terminal and obtains a response.

[0244] RAN1 here is the first network device in this application.

[0245] Step 1302, RAN1 makes a switching decision.

[0246] RAN1 learns that the target RAN is RAN2 and decides to make a switch.

[0247] It should be noted that this moment should be earlier than T + t, and switching preparation is carried out in advance based on the prediction information.

[0248] RAN2 here is the second network device in this application. RAN1 and RAN2 can be connected to the same distributed node (i.e., the first distributed node in this application) as shown in Figure 2 shown

[0249] Step 1303, RAN1 sends a handover request message to RAN2.

[0250] The handover request message here is the first handover request message in this application, which is used to request RAN2 to perform handover preparation.

[0251] Step 1304, RAN2 performs handover confirmation.

[0252] RAN2 performs handover confirmation and allocates resources for the terminal.

[0253] Step 1305, RAN2 sends a handover request confirmation message to RAN1.

[0254] If RAN2 decides to allow the handover, it sends a handover request confirmation message to RAN1. In addition, RAN2 can also set a timer. If the terminal does not move according to the previously reported position beyond the timer setting time threshold, the resources are released, and a suitable base station and distributed node are selected to provide services for the terminal according to the existing scheme; if the terminal moves according to the previously reported position within the timer setting time threshold, the subsequent steps are executed. The subsequent steps are the same as the existing Xn handover process.

[0255] The handover request confirmation message here is the first handover request confirmation message in this application, which is used to indicate that RAN2 has completed handover preparation and reserved resources for the terminal.

[0256] The timer setting time threshold here is the first set duration threshold in this application. The reserved resources are the first resources in this application.

[0257] Embodiment 2.2 Policy adjustment between nodes

[0258] The network can adjust the terminal access policy in advance according to the position information of the terminal at the next moment T + t provided by the terminal. Through analysis, it is judged that the terminal will access another network device in another distributed node at the moment T + t.

[0259] It can be stipulated that the current time is T', T < T' < T + t. If the remaining time of the current service processing > T + t - T' (the service migration time can be ignored), then the terminal access to the base station and the distributed network node is switched.

[0260] Perform handover preparation in advance for the access base station and perform terminal context synchronization in advance for the access distributed node. The synchronization method can be either through the interaction between distributed nodes or by the distributed node 2 requesting the central node to obtain it.

[0261] Embodiment 2.2.1 Synchronize the terminal context through the interaction between distributed nodes

[0262] The specific handover process is as Figure 14 shown, and includes the following steps:

[0263] Step 1401, RAN1 sends a handover requirement to distributed node 1.

[0264] RAN1 queries the OAM and knows that the handover target RAN is RAN2, and the distributed node 1 has selected the handover target distributed node as distributed node 2 (specifically refer to the preparation stage of the existing N2 handover). RAN1 sends a handover requirement to distributed node 1.

[0265] Here, RAN1 is the first network device in this application. Here, distributed node 1 is the first distributed node in this application. Here, RAN2 is the third network device in this application. Here, distributed node 2 is the third distributed node in this application. RAN1 accesses distributed node 1, and RAN2 accesses distributed node 2, as Figure 4 shown.

[0266] Here, the handover requirement is the second handover request message in this application, which is used to request distributed node 1 to instruct distributed node 2 to synchronize the terminal context of the terminal device and / or to instruct distributed node 1 to perform handover preparation for RAN2.

[0267] Step 1402, distributed node 1 sends a create terminal (registration / session) context request to distributed node 2.

[0268] Distributed node 1 sends a create terminal context request to distributed node 2. Optionally, it can include the registration context and the session context.

[0269] Here, the create terminal context request is the first create terminal context request message in this application, which is used to request distributed node 2 to obtain the terminal context of the terminal device from distributed node 1.

[0270] Step 1403, distributed node 2 requests to transfer the terminal (registration / session) context to distributed node 1 and gets a response.

[0271] Distributed node 2 sends a request to transfer the terminal context to distributed node 1. Optionally, it can include the registration context and the session context.

[0272] The distributed node 1 sends a transfer terminal context response to the distributed node 2. Optionally, it may include a registration context and a session context.

[0273] The transfer terminal context request here is the transfer terminal context request message in this application, which is used to request the distributed node 1 to synchronize the terminal context of the terminal device to the distributed node 2.

[0274] The transfer terminal context response here is the transfer terminal context response message in this application, which is used to indicate the terminal context of the terminal device.

[0275] Step 1404, the distributed node 2 sends a handover request to RAN2 and gets a confirmation.

[0276] The distributed node 2 sends a handover request to RAN2.

[0277] The handover request here is the third handover request message in this application, which is used to request RAN2 to prepare for handover.

[0278] If RAN2 decides to allow the handover, it sends a handover confirmation to the distributed node 2. In addition, RAN2 can also set a timer. If the terminal does not move according to the previously reported location beyond the time threshold set by the timer, the resources are released, and a suitable base station and distributed node are selected to serve the terminal according to the existing scheme; if the terminal moves according to the previously reported location within the time threshold set by the timer, the subsequent steps are executed.

[0279] The handover confirmation here is the second handover request confirmation message in this application, which is used to indicate that RAN2 has completed the handover preparation and reserved resources for the terminal device.

[0280] The time threshold set by the timer here is the second set duration threshold in this application. The reserved resources are the second resources in this application.

[0281] Step 1405, the distributed node 2 sends a create terminal (registration / session) context response to the distributed node 1.

[0282] The distributed node 2 sends a create terminal context response to the distributed node 1. Optionally, it may include a registration context and a session context.

[0283] It should be noted that this moment should be earlier than T + t, and the handover preparation and the transfer of the terminal context are carried out in advance based on the prediction information.

[0284] The create terminal context response here is the first create terminal context response message in this application, which is used to indicate that the distributed node 2 has completed the synchronization of the terminal context of the terminal device.

[0285] The subsequent process is the same as the existing N2 handover process.

[0286] Embodiment 2.2.2 Obtaining the terminal context through the central node

[0287] The specific handover process is as Figure 15 shown, and includes the following steps:

[0288] Step 1501, RAN1 sends a handover requirement to Distributed Node 1.

[0289] RAN1 queries the OAM and knows that the handover target RAN is RAN2, and Distributed Node 1 has selected the handover target distributed node as Distributed Node 2 (specific reference to the preparation stage of the existing N2 handover). RAN1 sends a handover requirement to Distributed Node 1.

[0290] RAN1 here is the first network device in this application. Distributed Node 1 here is the first distributed node in this application. RAN2 here is the third network device in this application. Distributed Node 2 here is the third distributed node in this application. RAN1 is connected to Distributed Node 1, and RAN2 is connected to Distributed Node 2, as Figure 4 shown.

[0291] The handover requirement here is the second handover request message in this application, which is used to request Distributed Node 1 to instruct Distributed Node 2 to synchronize the terminal context of the terminal device and / or to instruct Distributed Node 1 to prepare for the handover to RAN2.

[0292] Step 1502, Distributed Node 1 sends a request to create a terminal (registration / session) context to Distributed Node 2.

[0293] Distributed Node 1 sends a request to create a terminal context to Distributed Node 2. Optionally, it may include a registration context and a session context.

[0294] The request to create a terminal context here is the second request message to create a terminal context in this application, which is used to request Distributed Node 2 to obtain the terminal context of the terminal device from the central node.

[0295] Step 1503, Distributed Node 2 sends a request to obtain the terminal (registration / session) context to the central node and gets a response.

[0296] Distributed Node 1 sends a request to obtain the terminal context to the central node. Optionally, it may include a registration context and a session context.

[0297] The central node sends a response to obtain the terminal context to Distributed Node 1. Optionally, it may include a registration context and a session context.

[0298] Note: The central node stores and manages the network element information and related data of all distributed nodes.

[0299] The request for obtaining the terminal context here is the request message for obtaining the terminal context in this application, which is used to request to obtain the terminal context of the terminal device.

[0300] The response for obtaining the terminal context here is the response message for obtaining the terminal context in this application, which is used to indicate the terminal context of the terminal device.

[0301] Step 1504, the distributed node 2 sends a handover request to RAN2 and gets a confirmation.

[0302] The distributed node 2 sends a handover request to RAN2.

[0303] The handover request here is the third handover request message in this application, which is used to request RAN2 to prepare for handover.

[0304] If RAN2 decides to allow the handover, it sends a handover confirmation to the distributed node 2. In addition, RAN2 can also set a timer. If the terminal does not move according to the previously reported position beyond the time threshold set by the timer, the resources are released, and a suitable base station and distributed node are selected for the terminal according to the existing scheme to provide services; if the terminal moves according to the previously reported position within the time threshold set by the timer, the subsequent steps are executed.

[0305] The handover confirmation here is the second handover request confirmation message in this application, which is used to indicate that RAN2 has completed the handover preparation and reserved resources for the terminal device.

[0306] The time threshold set by the timer here is the second set duration threshold in this application. The reserved resources are the second resources in this application.

[0307] Step 1505, the distributed node 2 sends a create terminal (registration / session) context response to the distributed node 1.

[0308] The distributed node 2 sends a create terminal context response to the distributed node 1. Optionally, it can include the registration context and the session context.

[0309] It should be noted that this moment should be earlier than T + t, and the handover preparation and the transfer of the terminal context are carried out in advance based on the prediction information.

[0310] The create terminal context response here is the second create terminal context response message in this application, which is used to indicate that the distributed node 2 has completed the synchronization of the terminal context of the terminal device.

[0311] The subsequent process is the same as the existing N2 handover process.

[0312] Embodiment 3 Strategy Adjustment Based on Terminal Service Prediction

[0313] Based on 2, if the service change of the terminal precedes the location change of the terminal, the strategy adjustments of the access base station and the distributed network node caused by the terminal's service should be considered.

[0314] It can be stipulated that the current time is T’, where T < T’ < T + t. Before the moment T + t, the strategy adjustments of the base station and the distributed network node serving the terminal should be completed according to the service information reported by the terminal. Appropriate base stations and distributed network nodes can be selected according to information such as the slice corresponding to the service and the DNN (Data Network Name), and the creation and transfer of session context can be completed. Among them, the context transfer can be completed through the interaction between distributed nodes or by obtaining it from the central node.

[0315] Embodiment 3.1 Strategy Adjustment between Nodes with the Same Access Base Station

[0316] The network selects another distributed network node accessible by the current base station according to the change information such as the slice and DNN corresponding to the reported service, and completes the creation and transfer of session context before the service change.

[0317] Embodiment 3.2 Strategy Adjustment of Access Base Station and Network Node

[0318] If all distributed network nodes accessible by the current base station cannot meet the service request of the terminal, the network selects appropriate base stations and distributed network nodes for the terminal according to the change information such as the slice and DNN corresponding to the reported service, and completes the creation and transfer of session context. After preparing for the base station switchover, a timer is set. If the terminal does not report the service change as previously reported after exceeding the time threshold set by the timer, the resources are released, and appropriate base stations and distributed network nodes are selected for the terminal according to the existing scheme to provide services; if the terminal reports the service change as previously reported within the time threshold set by the timer, subsequent operations are performed. Among them, the context transfer can be completed through the interaction between distributed nodes or by obtaining it from the central node.

[0319] In summary, the technical solutions of this application mainly include the following points:

[0320] 1. Based on the enhancement of 6G terminal capabilities, the terminal collects its own historical location information and service information, and predicts the location information and service information at the next moment.

[0321] 1.1 Based on 1, when the terminal registers, it carries the location information at the current moment and the location information at the next moment for subsequent network strategy adjustment.

[0322] 1.2 Based on 1, when the terminal establishes a session, it carries the service information at the current moment and the service information at the next moment for subsequent network policy adjustment.

[0323] 2. If the terminal service type remains unchanged within the predicted time slot, only the impact of the terminal location on the network policy is considered.

[0324] 2.1 Based on 2, if the network policy only needs to adjust the access base station, the preparation process for base station handover should be completed before the terminal location changes.

[0325] 2.2 Based on 2, if the network policy involves both the adjustment of the access base station and the adjustment of the access to distributed network nodes, the preparation process for base station handover and the establishment and transfer of the terminal context between distributed network nodes should be completed before the terminal location changes. Among them, the terminal context transfer can be completed either through the interaction between distributed nodes or by obtaining it from the central node.

[0326] 3. Based on 1, if the terminal service type changes earlier than the location within the predicted time slot, the impact of the terminal service on the network policy should be considered. The session is modified according to information such as the service type. Among them, it involves the adjustment of the access base station and the adjustment of the access to distributed network nodes.

[0327] 3.1 If other distributed network nodes accessible by the current serving base station meet the service requirements, the establishment and transfer of the terminal context between distributed network nodes should be completed before the terminal service changes. Among them, the terminal context transfer can be completed either through the interaction between distributed nodes or by obtaining it from the central node.

[0328] 3.2 If other distributed network nodes accessible by the current serving base station cannot meet the service requirements, the preparation for base station handover and the establishment and transfer of the terminal context between distributed network nodes should be completed before the terminal service changes. Among them, the terminal context transfer can be completed either through the interaction between distributed nodes or by obtaining it from the central node.

[0329] 4. After preparing for the base station handover, set a timer. If the terminal does not report changes as previously reported after exceeding the timer setting time threshold, release the resources and select a suitable base station and distributed node to provide services for the terminal according to the existing scheme; if the terminal reports changes as previously reported within the timer setting time threshold, perform subsequent operations.

[0330] Therefore, this application is oriented to the 6G distributed network scenario. Based on the enhanced capabilities of 6G terminals, the terminals themselves predict location and service information. At the same time, when the terminals register and establish a session, they report their current location information and service information, as well as their location information and service information at the next moment, for subsequent network policy adjustment. By placing data processing, training, etc. on the terminal side, the process of the network collecting and processing data is reduced. The base station and distributed network nodes are pre-configured for switching according to the reported results of the terminals, saving network resources and reducing network consumption.

[0331] Corresponding to the switching method provided in the above Figures 1 to 5 embodiment, this application also provides a switching device. Since the switching device provided in the embodiment of this application corresponds to the switching method provided in the above Figures 1 to 5 embodiment, the implementation manners of the switching method are also applicable to the switching device provided in the embodiment of this application and will not be described in detail in the embodiment of this application.

[0332] Figure 16 FIG. is a schematic structural diagram of a switching device according to the sixteenth embodiment of this application.

[0333] As Figure 16 shown, the switching device may include a memory 1610, a transceiver 1620, and a processor 1630.

[0334] Among them, the memory 1610 is used to store computer programs; the transceiver 1620 is used to transmit and receive data under the control of the processor; the processor 1630 is used to read the computer programs in the memory and perform the following operations:

[0335] Obtain the location information and service information of the terminal device at a second moment, where the second moment is after the first moment;

[0336] Determine a target object that provides services to the terminal device at the second moment according to the location information and / or the service information, where the target object is a target device and / or a target node;

[0337] Send a first switching request message to the target device, where the first switching request message is used to request the target device to prepare for switching, or send a second switching request message to the first distributed node, where the second switching request message is used to request the first distributed node to instruct the target node to synchronize the terminal context of the terminal device and / or instruct the target node to prepare for switching the target device.

[0338] The transceiver 1620 is used to receive and transmit data under the control of the processor 1630.

[0339] Among them, inFigure 16 In this case, the bus architecture may include any number of interconnected buses and bridges, and various circuits of one or more processors represented by the processor 1630 and the memory represented by the memory 1610 are specifically linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, etc., which are well known in the art, and thus will not be further described herein. The bus interface provides an interface. The transceiver 1620 may be multiple components, that is, including a transmitter and a receiver, and provides a unit for communicating with various other devices on a transmission medium, and these transmission media include wireless channels, wired channels, optical fiber cables and other transmission media. The processor 1630 is responsible for managing the bus architecture and general processing, and the memory 1610 may store the data used by the processor 1630 when performing operations.

[0340] The processor 1630 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a complex programmable logic device (CPLD). The processor may also adopt a multi-core architecture.

[0341] As a possible implementation manner of an embodiment of the present application, the processor 1630 is further configured to perform the following operations:

[0342] Send a query request to the operation and maintenance management (OAM) according to the location information and / or the service information, where the query request is used to request the OAM to query the target object based on the location information and / or the service information;

[0343] Receive the query response sent by the OAM, where the query response is used to indicate the target object.

[0344] As a possible implementation manner of an embodiment of the present application, the second moment is separated from the first moment by a preset time slot, and the query request is a first query request or a second query request; the processor 1630 is further configured to perform the following operations:

[0345] When the terminal service type remains unchanged within the preset time slot, send the first query request to the OAM according to the location information, where the first query request is used to request the OAM to query the target device and / or the target node based on the location information;

[0346] In the case that the change of the terminal service is earlier than the change of the terminal location within the preset time slot, send the second query request to the OAM according to the service information, where the second query request is used to request the OAM to query the target device and / or the target node based on the service information;

[0347] Wherein, the first network device is further connected to a second distributed node, and the queried target device is one of the following:

[0348] A second network device connected to the first distributed node;

[0349] A third network device connected to a third distributed node;

[0350] And / or, the queried target node is one of the following:

[0351] The second distributed node;

[0352] The third distributed node.

[0353] As a possible implementation manner of the embodiment of the present application, the processor 1030 is further configured to perform the following operations:

[0354] In the case that the target device is the second network device, send the first handover request message to the second network device, where the first handover request message is used to request the second network device to prepare for handover.

[0355] As a possible implementation manner of the embodiment of the present application, the processor 1630 is further configured to perform the following operations:

[0356] In the case that the target device is the third network device and the target node is the third distributed node, send the second handover request message to the first distributed node, where the second handover request message is used to request the first distributed node to instruct the third distributed node to synchronize the terminal context of the terminal device and to instruct the third distributed node to prepare for handover;

[0357] In the case that the target node is the second distributed node, send the second handover request message to the first distributed node, where the second handover request message is used to request the first distributed node to instruct the second distributed node to synchronize the terminal context of the terminal device.

[0358] As a possible implementation manner of the embodiment of the present application, the processor 1630 is further configured to perform the following operations:

[0359] receiving a first handover request confirmation message sent by the second network device, wherein the first handover request confirmation message is used to indicate that the second network device has completed handover preparation and reserved a first resource for the terminal device;

[0360] The first resource is used to provide services to the terminal device when the first waiting time does not exceed a first set time threshold, or is released when the first waiting time exceeds the first set time threshold;

[0361] The first waiting time is the time the second network device waits for the terminal device to access.

[0362] As a possible implementation of the embodiment of the present application, the processor 1630 is further configured to perform the following operations:

[0363] Determine whether the remaining time for business processing is greater than the target time, and if the remaining time for business processing is greater than the target time, send the first switching request message to the target device, or send the second switching request message to the first distributed node, wherein the target time is the time between the current moment and the second moment.

[0364] As a possible implementation of the embodiment of the present application, the processor 1630 is further configured to perform the following operations:

[0365] receiving a registration request sent by the terminal device, wherein the registration request carries the location information of the terminal device at the first moment and the location information of the terminal device at the second moment;

[0366] A session establishment request sent by the terminal device is received, wherein the session establishment request carries service information of the terminal device at the first moment and service information of the terminal device at the second moment.

[0367] With the above Figures 6 to 8 Corresponding to the switching method provided in the embodiment, the present application also provides a switching device. Since the switching device provided in the embodiment of the present application is consistent with the above Figures 6 to 8 The switching method provided in the embodiment corresponds to the switching method, so the implementation method of the switching method is also applicable to the switching device provided in the embodiment of the present application, and will not be described in detail in the embodiment of the present application.

[0368] Figure 17 It is a structural diagram of a switching device provided according to the seventeenth embodiment of the present application.

[0369] like Figure 17 As shown, the switching device may include a memory 1710 , a transceiver 1720 and a processor 1730 .

[0370] Among them, the memory 1710 is used to store computer programs; the transceiver 1720 is used to transmit and receive data under the control of the processor; the processor 1730 is used to read the computer programs in the memory and perform the following operations:

[0371] Receive a second handover request message sent by a first network device, where the second handover request message is used to request the first distributed node to indicate to a target node to synchronize the terminal context of the terminal device and / or indicate to the target node to prepare for handover of a target device;

[0372] Among them, the first network device is a network device that provides services to the terminal device at a first moment, and the first network device is connected to the first distributed node.

[0373] The transceiver 1720 is used to receive and transmit data under the control of the processor 1730.

[0374] Among them, in Figure 17 The bus architecture may include any number of interconnected buses and bridges. Specifically, various circuits represented by one or more processors represented by the processor 1730 and the memory represented by the memory 1710 are linked together. The bus architecture can also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, and thus will not be further described herein. The bus interface provides an interface. The transceiver 1720 may be multiple elements, that is, including a transmitter and a receiver, and provides a unit for communicating with various other devices on a transmission medium, and these transmission mediums include wireless channels, wired channels, optical fiber cables and other transmission mediums. The processor 1730 is responsible for managing the bus architecture and general processing, and the memory 1710 may store data used by the processor 1730 when performing operations.

[0375] The processor 1730 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or a complex programmable logic device (CPLD), and the processor may also adopt a multi-core architecture.

[0376] As a possible implementation manner of the embodiment of the present application, when the second handover request message is used to request the first distributed node to indicate to a target node to synchronize the terminal context of the terminal device, the target node is a second distributed node or a third distributed node; the processor 1730 is further used to perform the following operations:

[0377] Send a first create terminal context request message to the second distributed node or the third distributed node, where the first create terminal context request message is used to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the first distributed node;

[0378] Receive a transfer terminal context request message sent by the second distributed node or the third distributed node, where the transfer terminal context request message is used to request the first distributed node to synchronize the terminal context of the terminal device to the second distributed node or the third distributed node;

[0379] Send a transfer terminal context response message to the second distributed node or the third distributed node, where the transfer terminal context response message is used to indicate the terminal context of the terminal device;

[0380] Receive a first create terminal context response message sent by the second distributed node or the third distributed node, where the first create terminal context response message is used to indicate that the second distributed node or the third distributed node has completed the synchronization of the terminal context of the terminal device;

[0381] Or,

[0382] Send a second create terminal context request message to the second distributed node or the third distributed node, where the second create terminal context request message is used to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the central node;

[0383] Receive a second create terminal context response message sent by the second distributed node or the third distributed node, where the second create terminal context response message is used to indicate that the second distributed node or the third distributed node has completed the synchronization of the terminal context of the terminal device.

[0384] As a possible implementation manner of the embodiment of the present application, the second distributed node or the third distributed node is further configured to:

[0385] In the case of receiving the second create terminal context request, send a request message for obtaining terminal context to the central node, where the request message for obtaining terminal context is used to request to obtain the terminal context of the terminal device;

[0386] Receive the get terminal context response message sent by the central node, where the get terminal context response message is used to indicate the terminal context of the terminal device.

[0387] As a possible implementation manner of the embodiment of the present application, when the second handover request message is further used to instruct the target node to prepare for handover of the target device, the target node is the third distributed node, and the target device is the third network device; the third distributed node is further used for:

[0388] Send a third handover request message to the third network device, where the third handover request message is used to request the third network device to prepare for handover;

[0389] Receive the second handover request confirmation message sent by the third network device, where the second handover request confirmation message is used to indicate that the third network device has completed handover preparation and reserved a second resource for the terminal device;

[0390] Where the second resource is used to provide services for the terminal device when the second waiting duration does not exceed the second set duration threshold, or is released when the second waiting duration exceeds the second set duration threshold;

[0391] The second waiting duration is the duration for which the third network device waits for the terminal device to access.

[0392] As a possible implementation manner of the embodiment of the present application, the third network device is further used for:

[0393] Receive the third handover request message sent by the third distributed node;

[0394] Send the second handover request confirmation message to the third distributed node.

[0395] Corresponding to the handover method provided in the above Figures 9 to 10 embodiment, the present application further provides a handover device. Since the handover device provided in the embodiment of the present application corresponds to the handover method provided in the above Figures 9 to 10 embodiment, the implementation manners in the handover method are also applicable to the handover device provided in the embodiment of the present application, and will not be described in detail in the embodiment of the present application.

[0396] Figure 18 It is a schematic structural diagram of the handover device provided in the eighteenth embodiment of the present application.

[0397] As Figure 18 shown, the handover device may include a memory 1810, a transceiver 1820, and a processor 1830.

[0398] Among them, a memory 1810 is used to store computer programs; a transceiver 1820 is used to transmit and receive data under the control of a processor; a processor 1830 is used to read the computer programs in the memory and perform the following operations:

[0399] Receive a first handover request message sent by a first network device, where the first handover request message is used to request the target device to perform handover preparation;

[0400] Among them, the first network device is a network device that provides services for a terminal device at a first moment, and the first network device accesses a first distributed node.

[0401] The transceiver 1820 is used to receive and transmit data under the control of the processor 1830.

[0402] Among them, in Figure 18 The bus architecture may include any number of interconnected buses and bridges, specifically various circuits represented by one or more processors represented by the processor 1830 and a memory represented by the memory 1810 are linked together. The bus architecture can also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, so they will not be further described herein. The bus interface provides an interface. The transceiver 1820 may be multiple components, that is, including a transmitter and a receiver, and provides a unit for communicating with various other devices on a transmission medium, and these transmission mediums include wireless channels, wired channels, optical fiber cables and other transmission mediums. The processor 1830 is responsible for managing the bus architecture and general processing, and the memory 1810 may store data used by the processor 1830 when performing operations.

[0403] The processor 1830 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a complex programmable logic device (CPLD), and the processor may also adopt a multi-core architecture.

[0404] As a possible implementation manner of an embodiment of the present application, the target device is a second network device; the processor 1830 is further used to perform the following operations:

[0405] Send a first handover request confirmation message to the first network device, where the first handover request confirmation message is used to indicate that the second network device has completed handover preparation and reserve a first resource for the terminal device;

[0406] Among them, the first resource is used to provide services to the terminal device when the first waiting duration does not exceed the first set duration threshold, or is released when the first waiting duration exceeds the first set duration threshold.

[0407] The first waiting duration is the duration that the second network device waits for the terminal device to access.

[0408] Corresponding to the switching method provided in the above Figures 1 to 5 Embodiment, the present application further provides a switching device. Since the switching device provided in the embodiment of the present application corresponds to the switching method provided in the above Figures 1 to 5 Embodiment, the implementation manners of the switching method are also applicable to the switching device provided in the embodiment of the present application and will not be described in detail in the embodiment of the present application.

[0409] Figure 19 It is a schematic structural diagram of the switching device provided in the nineteenth embodiment of the present application.

[0410] It should be noted that the switching device in the embodiment of the present application is applied to the first network device. The first network device is the network device that provides services to the terminal device at the first moment, and the first network device accesses the first distributed node.

[0411] Such as Figure 19 shown, the switching device may include: an acquisition unit 11, a first determination unit 12, and a first transmission unit 13.

[0412] The acquisition unit 11 is configured to acquire the location information and service information of the terminal device at the second moment, where the second moment is after the first moment;

[0413] The first determination unit 12 is configured to determine, according to the location information and / or the service information, a target object that provides services to the terminal device at the second moment, where the target object is a target device and / or a target node;

[0414] The first transmission unit 13 is configured to send a first switching request message to the target device, where the first switching request message is used to request the target device to prepare for switching, or send a second switching request message to the first distributed node, where the second switching request message is used to request the first distributed node to instruct the target node to synchronize the terminal context of the terminal device and / or instruct the target node to prepare for switching of the target device.

[0415] Optionally, in a possible implementation manner of the embodiment of the present application, the first determination unit 12 includes:

[0416] A query module, configured to send a query request to an operation and maintenance management (OAM) according to the location information and / or the service information, where the query request is used to request the OAM to query the target object based on the location information and / or the service information.

[0417] A receiving module, configured to receive a query response sent by the OAM, where the query response is used to indicate the target object.

[0418] Optionally, in a possible implementation manner of the embodiment of the present application, the second moment is separated from the first moment by a preset time slot, and the query request is a first query request or a second query request; the query module is further configured to:

[0419] When the terminal service type remains unchanged within the preset time slot, send the first query request to the OAM according to the location information, where the first query request is used to request the OAM to query the target device and / or the target node based on the location information;

[0420] When the terminal service changes earlier than the terminal location within the preset time slot, send the second query request to the OAM according to the service information, where the second query request is used to request the OAM to query the target device and / or the target node based on the service information;

[0421] Wherein, the first network device is further connected to a second distributed node, and the queried target device is one of the following:

[0422] A second network device connected to the first distributed node;

[0423] A third network device connected to a third distributed node;

[0424] And / or, the queried target node is one of the following:

[0425] The second distributed node;

[0426] The third distributed node.

[0427] Optionally, in a possible implementation manner of the embodiment of the present application, the first sending unit 13 is further configured to:

[0428] When the target device is the second network device, send the first handover request message to the second network device, where the first handover request message is used to request the second network device to prepare for handover.

[0429] Optionally, in a possible implementation manner of the embodiment of the present application, the first sending unit 13 is further configured to:

[0430] When the target device is the third network device and the target node is the third distributed node, send the second handover request message to the first distributed node, where the second handover request message is used to request the first distributed node to instruct the third distributed node to synchronize the terminal context of the terminal device and to instruct the third network device to prepare for handover;

[0431] When the target node is the second distributed node, send the second handover request message to the first distributed node, where the second handover request message is used to request the first distributed node to instruct the second distributed node to synchronize the terminal context of the terminal device.

[0432] Optionally, in a possible implementation manner of the embodiments of the present application, the above device further includes:

[0433] A first receiving unit, configured to receive a first handover request confirmation message sent by the second network device, where the first handover request confirmation message is used to indicate that the second network device has completed handover preparation and reserve a first resource for the terminal device;

[0434] The first resource is used to provide services for the terminal device when a first waiting duration does not exceed a first set duration threshold, or to be released when the first waiting duration exceeds the first set duration threshold;

[0435] The first waiting duration is the duration for which the second network device waits for the terminal device to access.

[0436] Optionally, in a possible implementation manner of the embodiments of the present application, the above device further includes:

[0437] A second determining unit, configured to determine whether a remaining service processing duration is greater than a target duration, so as to send the first handover request message to the target device or send the second handover request message to the first distributed node when the remaining service processing duration is greater than the target duration, where the target duration is the duration between the current moment and the second moment.

[0438] Optionally, in a possible implementation manner of the embodiments of the present application, the above device further includes:

[0439] A second receiving unit, configured to receive a registration request sent by the terminal device, where the registration request carries the location information of the terminal device at the first moment and the location information of the terminal device at the second moment;

[0440] A third receiving unit, configured to receive a session establishment request sent by the terminal device, where the session establishment request carries service information of the terminal device at the first moment and service information of the terminal device at the second moment.

[0441] Corresponding to Figures 6 to 8 the switching method provided in the foregoing Figures 6 to 8 embodiment, the present application further provides a switching device. Since the switching device provided in the embodiments of the present application corresponds to the

[0442] Figure 20 switching method provided in the foregoing embodiment, the implementation manners of the switching method are also applicable to the switching device provided in the embodiments of the present application, and will not be described in detail in the embodiments of the present application.

[0443] As Figure 20 shown in the figure, the switching device may include: a fourth receiving unit 21.

[0444] The fourth receiving unit 21 is configured to receive a second handover request message sent by a first network device, where the second handover request message is used to request the first distributed node to instruct a target node to synchronize the terminal context of the terminal device and / or to instruct the target node to prepare for handover of the target device;

[0445] where the first network device is a network device that provides services to the terminal device at the first moment, and the first network device is connected to the first distributed node.

[0446] Optionally, in a possible implementation manner of the embodiments of the present application, when the second handover request message is used to request the first distributed node to instruct the target node to synchronize the terminal context of the terminal device, the target node is a second distributed node or a third distributed node; the foregoing device further includes:

[0447] A second sending unit, configured to send a first terminal context creation request message to the second distributed node or the third distributed node, where the first terminal context creation request message is used to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the first distributed node;

[0448] A fifth receiving unit, configured to receive a terminal context transfer request message sent by the second distributed node or the third distributed node, where the terminal context transfer request message is used to request the first distributed node to synchronize the terminal context of the terminal device to the second distributed node or the third distributed node;

[0449] A third sending unit, configured to send a transfer terminal context response message to the second distributed node or the third distributed node, where the transfer terminal context response message is used to indicate the terminal context of the terminal device;

[0450] A sixth receiving unit, configured to receive a first create terminal context response message sent by the second distributed node or the third distributed node, where the first create terminal context response message is used to indicate that the second distributed node or the third distributed node has completed synchronization of the terminal context of the terminal device;

[0451] Or,

[0452] A fourth sending unit, configured to send a second create terminal context request message to the second distributed node or the third distributed node, where the second create terminal context request message is used to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the central node;

[0453] A seventh receiving unit, configured to receive a second create terminal context response message sent by the second distributed node or the third distributed node, where the second create terminal context response message is used to indicate that the second distributed node or the third distributed node has completed synchronization of the terminal context of the terminal device.

[0454] Optionally, in a possible implementation manner of the embodiment of the present application, the second distributed node or the third distributed node is further configured to:

[0455] When receiving the second create terminal context request, send an obtain terminal context request message to the central node, where the obtain terminal context request message is used to request to obtain the terminal context of the terminal device;

[0456] Receive an obtain terminal context response message sent by the central node, where the obtain terminal context response message is used to indicate the terminal context of the terminal device.

[0457] Optionally, in a possible implementation manner of the embodiment of the present application, when the second handover request message is further used to instruct the target node to prepare for handover of the target device, the target node is the third distributed node, and the target device is a third network device; the third distributed node is further configured to:

[0458] Send a third handover request message to the third network device, where the third handover request message is used to request the third network device to prepare for handover;

[0459] Receive a second handover request confirmation message sent by the third network device, where the second handover request confirmation message is used to indicate that the third network device has completed handover preparation and reserved a second resource for the terminal device;

[0460] The second resource is used to provide services for the terminal device if a second waiting duration does not exceed a second set duration threshold, or is released if the second waiting duration exceeds the second set duration threshold;

[0461] The second waiting duration is the duration for which the third network device waits for the terminal device to access.

[0462] Optionally, in a possible implementation manner of the embodiments of the present application, the third network device is further configured to:

[0463] Receive the third handover request message sent by the third distributed node;

[0464] Send the second handover request confirmation message to the third distributed node.

[0465] Corresponding to the handover method provided in the above Figures 9 to 10 embodiment, the present application further provides a handover device. Since the handover device provided in the embodiments of the present application corresponds to the handover method provided in the above Figures 9 to 10 embodiment, the implementation manners of the handover method are also applicable to the handover device provided in the embodiments of the present application and will not be described in detail in the embodiments of the present application.

[0466] Figure 21 is a schematic structural diagram of the handover device provided in the twenty-first embodiment of the present application.

[0467] As Figure 21 shown, the handover device may include: an eighth receiving unit 31.

[0468] The eighth receiving unit 31 is configured to receive a first handover request message sent by a first network device, where the first handover request message is used to request a target device to perform handover preparation;

[0469] The first network device is a network device that provides services for the terminal device at a first moment, and the first network device accesses a first distributed node.

[0470] Optionally, in a possible implementation manner of the embodiments of the present application, the target device is a second network device; the above device further includes:

[0471] A fifth sending unit, configured to send a first handover request confirmation message to the first network device, where the first handover request confirmation message is used to indicate that the second network device has completed handover preparation and reserve a first resource for the terminal device;

[0472] The first resource is used to provide services for the terminal device when a first waiting duration does not exceed a first set duration threshold, or is released when the first waiting duration exceeds the first set duration threshold;

[0473] The first waiting duration is the duration for which the second network device waits for the terminal device to access.

[0474] It should be noted that the division of units in the embodiments of the present application is illustrative. It is only a logical function division, and there may be other division methods in actual implementation. In addition, in each embodiment of the present application, each functional unit may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit. The above integrated units may be implemented in the form of hardware or in the form of software functional units.

[0475] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes: various media that can store program codes such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.

[0476] To implement the above embodiments, the present application also proposes a processor-readable storage medium. The processor-readable storage medium stores a computer program, and the computer program is used to cause the processor to execute the Figures 1 to 10 handover method of any one of the embodiments of the present application.

[0477] The processor-readable storage medium can be any available medium or data storage device accessible by the processor, including but not limited to magnetic memories (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical memories (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor memories (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drives (SSD)), etc.

[0478] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories and optical memories, etc.) containing computer-usable program code.

[0479] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer-executable instructions. These computer-executable instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0480] These processor-executable instructions can also be stored in a processor-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the processor-readable memory generate a manufactured product including an instruction device, and the instruction device implements the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0481] These processor-executable instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0482] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to cover these modifications and variations.

Claims

1. A switching method, characterized in that: Applied to a first network device, the first network device is a network device providing services to a terminal device at a first moment, the first network device accessing a first distributed node, the method comprising: Acquire location information and service information of the terminal device at a second moment, wherein the second moment is after the first moment; Determining, based on the location information and / or the service information, a target object providing a service to the terminal device at the second moment, wherein the target object is a target device and / or a target node; A first switching request message is sent to the target device, wherein the first switching request message is used to request the target device to prepare for switching, or a second switching request message is sent to the first distributed node, wherein the second switching request message is used to request the first distributed node to instruct the target node to synchronize the terminal context of the terminal device and / or instruct the target node to prepare for switching.

2. The method according to claim 1, characterized in that The determining, based on the location information and / or the service information, a target object for providing a service to the terminal device at the second moment includes: Sending a query request to an operation, maintenance and management (OAM) based on the location information and / or the service information, wherein the query request is used to request the OAM to query the target object based on the location information and / or the service information; A query response sent by the OAM is received, wherein the query response is used to indicate the target object.

3. The method according to claim 2, characterized in that The second moment is separated from the first moment by a preset time slot, and the query request is the first query request or the second query request; and sending the query request to the operation, maintenance and management (OAM) according to the location information and / or the service information includes: When the terminal service type remains unchanged within the preset time slot, sending the first query request to the OAM according to the location information, wherein the first query request is used to request the OAM to query the target device and / or the target node based on the location information; When the terminal service changes earlier than the terminal location changes within the preset time slot, sending the second query request to the OAM according to the service information, wherein the second query request is used to request the OAM to query the target device and / or the target node based on the service information; The first network device is also connected to a second distributed node, and the queried target device is one of the following: a second network device connected to the first distributed node; a third network device connected to a third distributed node; And / or, the target node found is one of the following: the second distributed node; The third distributed node.

4. The method according to claim 3, characterized in that The sending a first switching request message to the target device includes: In a case where the target device is the second network device, the first handover request message is sent to the second network device, wherein the first handover request message is used to request the second network device to perform handover preparation.

5. The method according to claim 3, characterized in that The sending a second handover request message to the second network device in the first distributed node includes: When the target device is the third network device and the target node is the third distributed node, sending the second handover request message to the first distributed node, wherein the second handover request message is used to request the first distributed node to instruct the third distributed node to synchronize the terminal context of the terminal device and to instruct the third distributed node to prepare for handover of the third network device; In a case where the target node is the second distributed node, the second handover request message is sent to the first distributed node, wherein the second handover request message is used to request the first distributed node to instruct the second distributed node to synchronize the terminal context of the terminal device.

6. The method according to claim 4, characterized in that The method further comprises: receiving a first handover request confirmation message sent by the second network device, wherein the first handover request confirmation message is used to indicate that the second network device has completed handover preparation and reserved a first resource for the terminal device; The first resource is used to provide services to the terminal device when the first waiting time does not exceed a first set time threshold, or is released when the first waiting time exceeds the first set time threshold; The first waiting time is the time the second network device waits for the terminal device to access.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: Determine whether the remaining time for business processing is greater than the target time, and if the remaining time for business processing is greater than the target time, send the first switching request message to the target device, or send the second switching request message to the first distributed node, wherein the target time is the time between the current moment and the second moment.

8. The method according to any one of claims 1 to 6, characterized in that The obtaining of the location information and service information of the terminal device at the second moment includes: receiving a registration request sent by the terminal device, wherein the registration request carries the location information of the terminal device at the first moment and the location information of the terminal device at the second moment; A session establishment request sent by the terminal device is received, wherein the session establishment request carries service information of the terminal device at the first moment and service information of the terminal device at the second moment.

9. A switching method, characterized in that: Applied to a first distributed node, the method includes: Receiving a second handover request message sent by the first network device, wherein the second handover request message is used to request the first distributed node to indicate to the target node a terminal context for synchronizing the terminal device and / or to indicate to the target node that the target device prepares for handover; The first network device is a network device that provides services to the terminal device at a first moment, and the first network device is connected to a first distributed node.

10. The method according to claim 9, characterized in that In a case where the second handover request message is used to request the first distributed node to indicate a terminal context of a synchronized terminal device to a target node, the target node is a second distributed node or a third distributed node; The method further comprises: Sending a first create terminal context request message to the second distributed node or the third distributed node, wherein the first create terminal context request message is used to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the first distributed node; receiving a terminal context transfer request message sent by the second distributed node or the third distributed node, wherein the terminal context transfer request message is used to request the first distributed node to synchronize the terminal context of the terminal device to the second distributed node or the third distributed node; Sending a transfer terminal context response message to the second distributed node or the third distributed node, wherein the transfer terminal context response message is used to indicate the terminal context of the terminal device; receiving a first create terminal context response message sent by the second distributed node or the third distributed node, wherein the first create terminal context response message is used to instruct the second distributed node or the third distributed node to complete synchronization of the terminal context of the terminal device; or, Sending a second create terminal context request message to the second distributed node or the third distributed node, wherein the second create terminal context request message is used to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the central node; A second create terminal context response message is received from the second distributed node or the third distributed node, wherein the second create terminal context response message is used to instruct the second distributed node or the third distributed node to complete synchronization of the terminal context of the terminal device.

11. The method according to claim 10, characterized in that The second distributed node or the third distributed node is further configured to: When the second terminal context creation request is received, sending a terminal context acquisition request message to the central node, wherein the terminal context acquisition request message is used to request acquisition of the terminal context of the terminal device; A terminal context acquisition response message sent by the central node is received, wherein the terminal context acquisition response message is used to indicate the terminal context of the terminal device.

12. The method according to claim 10, characterized in that In a case where the second handover request message is further used to instruct the target node to prepare the target device for handover, the target node is the third distributed node, and the target device is a third network device; the third distributed node is further used to: Sending a third handover request message to the third network device, wherein the third handover request message is used to request the third network device to perform handover preparation; receiving a second handover request confirmation message sent by the third network device, wherein the second handover request confirmation message is used to instruct the third network device to complete handover preparation and reserve a second resource for the terminal device; The second resource is used to provide services to the terminal device when the second waiting time does not exceed the second set time threshold, or is released when the second waiting time exceeds the second set time threshold; The second waiting time is the time during which the third network device waits for the terminal device to access.

13. The method according to claim 12, characterized in that The third network device is further configured to: receiving the third handover request message sent by the third distributed node; Sending the second handover request confirmation message to the third distributed node.

14. A switching method, characterized in that: Applied to the target device, the method includes: receiving a first handover request message sent by a first network device, wherein the first handover request message is used to request the target device to prepare for handover; The first network device is a network device that provides services to the terminal device at the first moment, and the first network device is connected to the first distributed node.

15. The method according to claim 14, characterized in that The target device is a second network device; the method further includes: Sending a first handover request confirmation message to the first network device, wherein the first handover request confirmation message is used to instruct the second network device to complete handover preparation and reserve a first resource for the terminal device; The first resource is used to provide services to the terminal device when the first waiting time does not exceed a first set time threshold, or is released when the first waiting time exceeds the first set time threshold; The first waiting time is the time the second network device waits for the terminal device to access.

16. A switching device, characterized in that: Including memory, transceiver, processor: A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: Acquire location information and service information of the terminal device at a second moment, wherein the second moment is after the first moment; Determining, based on the location information and / or the service information, a target object providing a service to the terminal device at the second moment, wherein the target object is a target device and / or a target node; A first switching request message is sent to the target device, wherein the first switching request message is used to request the target device to prepare for switching, or a second switching request message is sent to the first distributed node, wherein the second switching request message is used to request the first distributed node to instruct the target node to synchronize the terminal context of the terminal device and / or instruct the target node to prepare for switching.

17. The device according to claim 16, characterized in that The processor is further configured to perform the following operations: Sending a query request to an operation, maintenance and management (OAM) based on the location information and / or the service information, wherein the query request is used to request the OAM to query the target object based on the location information and / or the service information; A query response sent by the OAM is received, wherein the query response is used to indicate the target object.

18. The device according to claim 17, characterized in that The second moment is separated from the first moment by a preset time slot, and the query request is a first query request or a second query request; and the processor is further configured to perform the following operations: When the terminal service type remains unchanged within the preset time slot, sending the first query request to the OAM according to the location information, wherein the first query request is used to request the OAM to query the target device and / or the target node based on the location information; When the terminal service changes earlier than the terminal location changes within the preset time slot, sending the second query request to the OAM according to the service information, wherein the second query request is used to request the OAM to query the target device and / or the target node based on the service information; The first network device is also connected to a second distributed node, and the queried target device is one of the following: a second network device connected to the first distributed node; a third network device connected to a third distributed node; And / or, the target node found is one of the following: the second distributed node; The third distributed node.

19. The device according to claim 18, characterized in that The processor is further configured to perform the following operations: In a case where the target device is the second network device, the first handover request message is sent to the second network device, wherein the first handover request message is used to request the second network device to perform handover preparation.

20. The device according to claim 18, characterized in that The processor is further configured to perform the following operations: When the target device is the third network device and the target node is the third distributed node, sending the second handover request message to the first distributed node, wherein the second handover request message is used to request the first distributed node to instruct the third distributed node to synchronize the terminal context of the terminal device and to instruct the third distributed node to prepare for handover of the third network device; In a case where the target node is the second distributed node, the second handover request message is sent to the first distributed node, wherein the second handover request message is used to request the first distributed node to instruct the second distributed node to synchronize the terminal context of the terminal device.

21. The device according to claim 19, characterized in that The processor is further configured to perform the following operations: receiving a first handover request confirmation message sent by the second network device, wherein the first handover request confirmation message is used to indicate that the second network device has completed handover preparation and reserved a first resource for the terminal device; The first resource is used to provide services to the terminal device when the first waiting time does not exceed a first set time threshold, or is released when the first waiting time exceeds the first set time threshold; The first waiting time is the time the second network device waits for the terminal device to access.

22. The device according to any one of claims 16 to 21, characterized in that The processor is further configured to perform the following operations: Determine whether the remaining time for business processing is greater than the target time, and if the remaining time for business processing is greater than the target time, send the first switching request message to the target device, or send the second switching request message to the first distributed node, wherein the target time is the time between the current moment and the second moment.

23. The device according to any one of claims 16 to 21, characterized in that The processor is further configured to perform the following operations: receiving a registration request sent by the terminal device, wherein the registration request carries the location information of the terminal device at the first moment and the location information of the terminal device at the second moment; A session establishment request sent by the terminal device is received, wherein the session establishment request carries service information of the terminal device at the first moment and service information of the terminal device at the second moment.

24. A switching device, characterized in that: Including memory, transceiver, processor: A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: Receiving a second handover request message sent by the first network device, wherein the second handover request message is used to request the first distributed node to indicate to the target node a terminal context for synchronizing the terminal device and / or to indicate to the target node that the target device prepares for handover; The first network device is a network device that provides services to the terminal device at a first moment, and the first network device is connected to a first distributed node.

25. The device according to claim 24, characterized in that In a case where the second handover request message is used to request the first distributed node to indicate a terminal context of a synchronization terminal device to a target node, the target node is a second distributed node or a third distributed node; and the processor is further configured to perform the following operations: Sending a first create terminal context request message to the second distributed node or the third distributed node, wherein the first create terminal context request message is used to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the first distributed node; receiving a terminal context transfer request message sent by the second distributed node or the third distributed node, wherein the terminal context transfer request message is used to request the first distributed node to synchronize the terminal context of the terminal device to the second distributed node or the third distributed node; Sending a transfer terminal context response message to the second distributed node or the third distributed node, wherein the transfer terminal context response message is used to indicate the terminal context of the terminal device; receiving a first create terminal context response message sent by the second distributed node or the third distributed node, wherein the first create terminal context response message is used to instruct the second distributed node or the third distributed node to complete synchronization of the terminal context of the terminal device; or, Sending a second create terminal context request message to the second distributed node or the third distributed node, wherein the second create terminal context request message is used to request the second distributed node or the third distributed node to obtain the terminal context of the terminal device from the central node; A second create terminal context response message is received from the second distributed node or the third distributed node, wherein the second create terminal context response message is used to instruct the second distributed node or the third distributed node to complete synchronization of the terminal context of the terminal device.

26. The device according to claim 25, characterized in that The second distributed node or the third distributed node is further configured to: When the second terminal context creation request is received, sending a terminal context acquisition request message to the central node, wherein the terminal context acquisition request message is used to request acquisition of the terminal context of the terminal device; A terminal context acquisition response message sent by the central node is received, wherein the terminal context acquisition response message is used to indicate the terminal context of the terminal device.

27. The device according to claim 25, characterized in that In a case where the second handover request message is further used to instruct the target node to prepare the target device for handover, the target node is the third distributed node, and the target device is a third network device; the third distributed node is further used to: Sending a third handover request message to the third network device, wherein the third handover request message is used to request the third network device to perform handover preparation; receiving a second handover request confirmation message sent by the third network device, wherein the second handover request confirmation message is used to instruct the third network device to complete handover preparation and reserve a second resource for the terminal device; The second resource is used to provide services to the terminal device when the second waiting time does not exceed the second set time threshold, or is released when the second waiting time exceeds the second set time threshold; The second waiting time is the time during which the third network device waits for the terminal device to access.

28. The device according to claim 27, characterized in that The third network device is further configured to: receiving the third handover request message sent by the third distributed node; Sending the second handover request confirmation message to the third distributed node.

29. A switching device, characterized in that: Including memory, transceiver, processor: A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: receiving a first handover request message sent by a first network device, wherein the first handover request message is used to request the target device to prepare for handover; The first network device is a network device that provides services to the terminal device at the first moment, and the first network device is connected to the first distributed node.

30. The device according to claim 29, characterized in that The target device is a second network device; and the processor is further configured to perform the following operations: Sending a first handover request confirmation message to the first network device, wherein the first handover request confirmation message is used to instruct the second network device to complete handover preparation and reserve a first resource for the terminal device; The first resource is used to provide services to the terminal device when the first waiting time does not exceed a first set time threshold, or is released when the first waiting time exceeds the first set time threshold; The first waiting time is the time the second network device waits for the terminal device to access.

31. A switching device, characterized in that: Applied to a first network device, the first network device is a network device that provides services to a terminal device at a first moment, and the first network device is connected to a first distributed node, the apparatus includes: An acquiring unit, configured to acquire location information and service information of the terminal device at a second moment, wherein the second moment is after the first moment; a first determining unit, configured to determine, based on the location information and / or the service information, a target object providing a service for the terminal device at the second moment, wherein the target object is a target device and / or a target node; A first sending unit is used to send a first switching request message to the target device, wherein the first switching request message is used to request the target device to prepare for switching, or to send a second switching request message to the first distributed node, wherein the second switching request message is used to request the first distributed node to instruct the target node to synchronize the terminal context of the terminal device and / or instruct the target node to prepare for switching.

32. A switching device, characterized in that: Applied to a first distributed node, the apparatus includes: A fourth receiving unit is configured to receive a second handover request message sent by the first network device, wherein the second handover request message is used to request the first distributed node to indicate a terminal context of a synchronization terminal device to the target node and / or to indicate to the target node that the target device prepares for handover; The first network device is a network device that provides services to the terminal device at a first moment, and the first network device is connected to a first distributed node.

33. A switching device, characterized in that: Applied to a target device, the apparatus comprises: An eighth receiving unit is configured to receive a first handover request message sent by a first network device, wherein the first handover request message is used to request the target device to perform handover preparation; The first network device is a network device that provides services to the terminal device at the first moment, and the first network device is connected to the first distributed node.

34. A processor-readable storage medium, characterized in that The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the method of any one of claims 1 to 8, or the method of any one of claims 9 to 13, or the method of any one of claims 14 to 15.