Connection migration method and device

By sending migration instruction information and receiving reconnection requests in the SCTP protocol, load rebalancing of the SCTP link is achieved, which solves the problem in the existing technology that existing links do not support load rebalancing, and improves the utilization of system resources and Communication quality.

CN118714618APending Publication Date: 2024-09-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310340385.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The SCTP protocol does not support load rebalancing of existing links in mobile networks. This causes new links to use new server resources during capacity expansion, while existing long connections are still bound to the old processing process, resulting in an imbalance of system resources and making it difficult to be effective. Take advantage of new resources.

Method used

By sending migration instruction information to the SCTP endpoint, instructing the second end to switch from the first SCTP endpoint to the second SCTP endpoint connection, load rebalancing of the link is achieved, including sending migration instruction information to the second end and receiving a reconnection request. Reconnection of the second SCTP endpoint for load balancing.

Benefits of technology

It achieves load rebalancing of SCTP links, improves the utilization of system resources, ensures communication quality, and can adjust resource distribution in a timely manner especially in the case of capacity expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714618A
    Figure CN118714618A
Patent Text Reader

Abstract

The invention discloses a connection migration method and device, and the method comprises the steps: a first end transmits migration indication information to a second end, the migration indication information comprises an end point identifier of a second SCTP end point, and the end point identifier is used for indicating that the second end is switched from a first SCTP end point connection with the first end to a second SCTP end point connection with the first end; the second end receives migration indication information from the first end and sends a reconnection request to the first end according to the migration indication information, and the reconnection request comprises an end point identifier of a second SCTP end point and is used for requesting to establish connection between the second end and the second SCTP end point, the connection between the SCTP endpoints of the first end and the second end is stream control transmission protocol SCTP link connection. By adopting the method provided by the embodiment of the invention, the load re-balancing of the link can be realized, and the communication quality of the SCTP link is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a connection migration method and device. Background Art

[0002] In recent years, mobile communications have continued to evolve and their scale has expanded dramatically. Currently, the number of users handled by a single network element in the core network has reached millions, and the number of links between devices has reached hundreds of thousands.

[0003] In order to cope with the surge in business scale, mobile networks can only adopt a distributed architecture, and load balancing is crucial to the resource utilization and flexibility of the distributed architecture. Different from the short-connection load balancing commonly seen in network services, the differentiated characteristics of long connections in mobile networks determine that its effective load balancing mechanism must be accompanied by connection migration.

[0004] Stream Control Transmission Protocol (SCTP) is a commonly used transmission protocol in mobile networks. th The connection between the wireless access network (RAN) and the access and mobility management function (AMF) in a 5G network, a long term evolution (LTE) network or a fourth generation evolved packet core network (4G th The connection between the eNB and the mobility management entity (MME) in the 4G evolved packet core (4G EPC), as well as the connection between the MME and the home subscriber server (HSS), are all built based on the SCTP transport layer.

[0005] However, SCTP only supports load balancing of newly built links, but not load rebalancing of existing links. For example, when capacity expansion occurs, only newly built links can use the resources of the new server, and a large proportion of existing SCTP long-connected links will continue to be bound to the old processing process. System resources will still be unbalanced in the short term, making it difficult to effectively utilize the newly added resources from the expansion. Summary of the invention

[0006] The embodiments of the present application provide a connection migration method and device, which can enable the SCTP link to migrate according to the migration instruction, realize the load rebalancing of the link, and ensure the communication quality of the SCTP link.

[0007] In a first aspect, a connection migration method is provided, the method comprising: sending migration indication information to a second end, the migration indication information including an endpoint identifier of a second SCTP endpoint, used to instruct the second end to switch from being connected to a first SCTP endpoint of the first end to being connected to a second SCTP endpoint of the first end; receiving a reconnection request from the second end, the reconnection request including an endpoint identifier of the second SCTP endpoint, used to request establishment of a connection between the second end and the second SCTP endpoint.

[0008] In the embodiment of the present application, the first end sends migration instruction information to the second end, instructing the second end to switch from connecting with the first SCTP endpoint of the first end to connecting with the second SCTP endpoint of the first end, and then receives a reconnection request from the second end to reconnect the second end with the second SCTP endpoint of the first end. This process enables the SCTP link between the first end and the second end to achieve load rebalancing, ensuring the communication quality of the SCTP link.

[0009] In a possible design, before sending the migration indication information to the second end, the method further includes:

[0010] Obtain a load balancing requirement between multiple SCTP endpoints at the first end, and generate migration indication information according to the load balancing requirement, wherein the multiple SCTP endpoints include a first SCTP endpoint and a second SCTP endpoint.

[0011] In one possible design, after receiving the reconnection request from the second end, the method also includes: establishing a connection between the second SCTP endpoint and the second end.

[0012] In one possible design, the multiple SCTP endpoints at the first end are at least one of the following: a processing process, a thread, a fiber, a coroutine, a virtual machine VM, a container, or a container group.

[0013] In one possible design, multiple SCTP endpoints at the first end are located on the same device, and the SCTP endpoint identifier includes a process identifier, a thread identifier, a fiber identifier, a coroutine identifier, a VM identifier, a container identifier, or a container group identifier.

[0014] In an embodiment of the present application, the first end sends migration instruction information to the second end, instructing the second end to switch from connecting with the first SCTP endpoint of the first end to connecting with the second SCTP endpoint of the first end, and then receives a reconnection request from the second end to reconnect the second end with the second SCTP endpoint of the first end. The first SCTP endpoint and the second SCTP endpoint are located on the same device. This process enables the first end to achieve load rebalancing for multiple SCTP links in the second end corresponding to a single device, thereby ensuring the communication quality of the SCTP link.

[0015] In one possible design, multiple SCTP endpoints of the first end are located on different devices, and the SCTP endpoint identifier includes an Internet Protocol IP address, and / or device port information.

[0016] In an embodiment of the present application, the first end sends migration indication information to the second end, instructing the second end to switch from connecting with the first SCTP endpoint of the first end to connecting with the second SCTP endpoint of the first end, and then receives a reconnection request from the second end to reconnect the second end with the second SCTP endpoint of the first end. The first SCTP endpoint and the second SCTP endpoint are located in different devices. This process enables multiple SCTP links in different devices in the second end consisting of the first end and multiple devices to achieve load rebalancing, thereby ensuring the communication quality of the SCTP link.

[0017] In one possible design, the migration indication information is carried in a connection closing message.

[0018] In one possible design, the endpoint identifier of the second SCTP endpoint in the migration indication information is carried in the verification tag.

[0019] In one possible design, the migration indication information also includes time information, which is used to indicate the time when the second end initiates the reconnection request.

[0020] In the embodiment of the present application, by carrying time information in the migration indication information, it is used to indicate the time when the second end initiates the reconnection request, so that the reconnection request initiated by the second end to the first end within the specified time can be received by the first end. In this way, the second end can initiate the reconnection request in time, improving the efficiency of reconnection establishment. At the same time, for the first end, it can also reduce the time waiting for reconnection access and reduce power consumption.

[0021] In a second aspect, a connection migration method is provided, the method comprising: receiving migration indication information from a first end, the migration indication information including an endpoint identifier of a second SCTP endpoint, for indicating that the second end switches from being connected to a first SCTP endpoint of the first end to being connected to a second SCTP endpoint of the first end; sending a reconnection request to the first end according to the migration indication information, the reconnection request including an endpoint identifier of the second SCTP endpoint, for requesting to establish a connection between the second end and the second SCTP endpoint, wherein the connection between the SCTP endpoints of the first end and the second end is a Stream Control Transmission Protocol SCTP link connection.

[0022] In one possible design, the reconnection request is carried in a connection initialization message.

[0023] In one possible design, the endpoint identifier of the second SCTP endpoint in the reconnection request is carried in the verification tag.

[0024] In one possible design, the multiple SCTP endpoints at the first end are at least one of the following: a processing process, a thread, a fiber, a coroutine, a virtual machine VM, a container, or a container group.

[0025] In one possible design, multiple SCTP endpoints at the first end are located on the same device, and the SCTP endpoint identifier includes a process identifier, a thread identifier, a fiber identifier, a coroutine identifier, a VM identifier, a container identifier, or a container group identifier.

[0026] In one possible design, multiple SCTP endpoints of the first end are located on different devices, and the SCTP endpoint identifier includes an Internet Protocol IP address, and / or device port information.

[0027] In one possible design, the migration indication information also includes time information; sending a reconnection request to the first end according to the migration indication information includes: determining the time to initiate the reconnection request to the second end according to the time information in the migration indication information.

[0028] In a third aspect, a communication device is provided, the communication device including a module or unit for implementing the method of the first aspect and any possible design thereof, the module or unit may be a hardware circuit, or software, or a hardware circuit combined with software. The communication device may be a terminal device, or a device in a terminal device (for example, a chip, or a chip system, or a circuit), or a device that can be used in conjunction with a terminal device. The device may include:

[0029] A transceiver unit, configured to send migration indication information to the second end, wherein the migration indication information includes an endpoint identifier of the second SCTP endpoint, and is configured to instruct the second end to switch from being connected to the first SCTP endpoint of the first end to being connected to the second SCTP endpoint of the first end;

[0030] The transceiver unit is also used to receive a reconnection request from the second end, the reconnection request includes an endpoint identifier of the second SCTP endpoint, and is used to request to establish a connection between the second end and the second SCTP endpoint.

[0031] In one possible design, the device also includes a processing unit, which is used to: obtain the load balancing requirements between multiple SCTP endpoints at the first end, and generate migration indication information according to the load balancing requirements, wherein the multiple SCTP endpoints include a first SCTP endpoint and a second SCTP endpoint.

[0032] In one possible design, the transceiver unit is further used to establish a connection between the second SCTP endpoint and the second end.

[0033] In one possible design, the multiple SCTP endpoints at the first end are at least one of the following: a processing process, a thread, a fiber, a coroutine, a virtual machine VM, a container, or a container group.

[0034] In one possible design, multiple SCTP endpoints at the first end are located on the same device, and the SCTP endpoint identifier includes a process identifier, a thread identifier, a fiber identifier, a coroutine identifier, a VM identifier, a container identifier, or a container group identifier.

[0035] In one possible design, multiple SCTP endpoints of the first end are located on different devices, and the SCTP endpoint identifier includes an Internet Protocol IP address, and / or device port information.

[0036] In one possible design, the migration indication information is carried in a connection closing message.

[0037] In one possible design, the endpoint identifier of the second SCTP endpoint in the migration indication information is carried in the verification tag.

[0038] In one possible design, the migration indication information also includes time information, which is used to indicate the time when the second end initiates the reconnection request.

[0039] In a fourth aspect, a communication device is provided, which includes a module or unit for implementing the method of the second aspect and any possible design thereof. The module or unit may be a hardware circuit, or software, or a hardware circuit combined with software. The communication device may be a network device, or a device in a network device (for example, a chip, or a chip system, or a circuit), or a device that can be used in combination with a network device. The device may include:

[0040] A transceiver unit, configured to receive migration indication information from the first end, wherein the migration indication information includes an endpoint identifier of a second SCTP endpoint, and is configured to instruct the second end to switch from being connected to a first SCTP endpoint of the first end to being connected to a second SCTP endpoint of the first end;

[0041] A processing unit is used to send a reconnection request to the first end according to the migration indication information in combination with the transceiver unit, wherein the reconnection request includes an endpoint identifier of a second SCTP endpoint, and is used to request to establish a connection between the second end and the second SCTP endpoint, wherein the connection between the SCTP endpoints of the first end and the second end is a stream control transmission protocol SCTP link connection.

[0042] In one possible design, the reconnection request is carried in a connection initialization message.

[0043] In one possible design, the endpoint identifier of the second SCTP endpoint in the reconnection request is carried in the verification tag.

[0044] In one possible design, the multiple SCTP endpoints at the first end are at least one of the following: a processing process, a thread, a fiber, a coroutine, a virtual machine VM, a container, or a container group.

[0045] In one possible design, multiple SCTP endpoints at the first end are located on the same device, and the SCTP endpoint identifier includes a process identifier, a thread identifier, a fiber identifier, a coroutine identifier, a VM identifier, a container identifier, or a container group identifier.

[0046] In one possible design, multiple SCTP endpoints of the first end are located on different devices, and the SCTP endpoint identifier includes an Internet Protocol IP address, and / or device port information.

[0047] In one possible design, the migration indication information also includes time information; sending a reconnection request to the first end according to the migration indication information includes: determining the time to initiate the reconnection request to the second end according to the time information in the migration indication information.

[0048] In a fifth aspect, a communication device is provided, comprising a processor, wherein the processor is used to execute the method described in the first aspect or any aspect of the first aspect and possible designs thereof by executing computer instructions or through a logic circuit.

[0049] In one possible design, the communication device includes a memory for storing computer instructions. Optionally, the memory is integrated with the processor.

[0050] In one possible design, the communication device also includes a transceiver, which is used to receive and / or send signals, and the signals can carry signaling or data.

[0051] The communication device is a client device, or a device in a client device, or the communication device is a server device, or a device in a server device.

[0052] In a sixth aspect, a communication device is provided, comprising a processor, wherein the processor is used to execute the method described in the second aspect or any aspect of the second aspect and its possible designs by executing computer instructions or through logic circuits.

[0053] In one possible design, the communication device includes a memory for storing computer instructions. Optionally, the memory is integrated with the processor.

[0054] In one possible design, the communication device also includes a transceiver, which is used to receive and / or send signals, and the signals can carry signaling or data.

[0055] The communication device is a server device, or a device in a server device, or the communication device is a client device, or a device in a client device.

[0056] In the seventh aspect, an embodiment of the present application provides a chip system, comprising: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method of any one of the first or second aspects above.

[0057] Optionally, the chip system also includes an interface circuit for interacting computer instructions with the processor.

[0058] Optionally, there may be one or more processors in the chip system, and the processor may be implemented by hardware or software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0059] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be separately provided with the processor, which is not limited in the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be provided on different chips. The present application does not specifically limit the type of memory and the arrangement of the memory and the processor.

[0060] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program or instruction stored thereon. When the computer program or instruction is executed, the computer executes the method of any one of the first and second aspects above.

[0061] In a ninth aspect, an embodiment of the present application provides a computer program product. When a computer reads and executes the computer program product, the computer executes a method in any possible implementation of the first aspect or the second aspect.

[0062] In a tenth aspect, an embodiment of the present application provides a communication system, which includes the apparatus of the third aspect and / or the fourth aspect mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments are briefly introduced below.

[0064] Figure 1A A schematic diagram of a 5G communication system structure provided in an embodiment of the present application;

[0065] Figure 1B A schematic diagram of a 4G communication system structure provided in an embodiment of the present application;

[0066] Figure 1C A schematic diagram of a SCTP general header structure provided in an embodiment of the present application;

[0067] Figure 1D A schematic diagram of an SCTP link establishment process provided in an embodiment of the present application;

[0068] Figure 2A A flow chart of a connection migration method provided in an embodiment of the present application;

[0069] Figure 2B A specific SCTP link communication schematic diagram provided for an embodiment of the present application;

[0070] Figure 2C A schematic diagram of a specific SCTP link migration process provided in an embodiment of the present application;

[0071] Figure 3 A schematic diagram of another specific SCTP link migration process provided in an embodiment of the present application;

[0072] Figure 4 A structural block diagram of a communication device provided in an embodiment of the present application;

[0073] Figure 5 A schematic diagram of the hardware structure of a communication device in an embodiment of the present application. DETAILED DESCRIPTION

[0074] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0075] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0076] "Multiple" means two or more. "And / or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0077] In the embodiment of the present application, "used for indication" may include direct indication and indirect indication, and may also include explicit indication and implicit indication. When describing "a certain indication information is used to indicate A" or "indication information of A", it may include that the indication information directly indicates A or indirectly indicates A, but it does not mean that the indication information must carry A. The information indicated by a certain information (such as the measurement interval or the transmission interval described below) is called information to be indicated. In the specific implementation process, there are many ways to indicate the information to be indicated, such as but not limited to, the information to be indicated can be directly indicated, such as the information to be indicated itself or the index of the information to be indicated. The information to be indicated can also be indirectly indicated by indicating other information, wherein there is an association relationship between the other information and the information to be indicated. It is also possible to indicate only a part of the information to be indicated, while the other parts of the information to be indicated are known or agreed in advance. For example, the indication of specific information can also be realized by means of the arrangement order of each information agreed in advance (such as specified by the protocol), thereby reducing the indication overhead to a certain extent. At the same time, the common parts of each information can also be identified and uniformly indicated to reduce the indication overhead caused by indicating the same information separately.

[0078] First, the communication system involved in the embodiment of the present application is introduced with reference to the diagram.

[0079] See also Figure 1A , Figure 1A A schematic diagram of a 5G communication system structure provided in an embodiment of the present application is shown in FIG. Figure 1AAs shown, the communication system includes user equipment (UE) and (wireless) access network (R)AN), which are interconnected and communicated with each other, and are connected and communicated with the 5G core network (CN). Specifically, UE and RAN can access CN through the access and mobility management function (AMF) in CN, RAN can also be connected to the user plane function (UPF) in CN, and UPF can also be connected to the data network (DN). CN also includes session management function (SMF), policy control function (PCF), authentication server function (AUSF), unified data management (UDM), application function (AF), etc. These interconnected and communicating network elements are specifically connected through NG interfaces, and are used to provide control plane functions and user plane functions respectively.

[0080] Alternatively, see Figure 1B , Figure 1B A schematic diagram of a 4G communication system structure provided in an embodiment of the present application is shown in FIG. Figure 1BAs shown, the communication system includes UE and evolved universal mobile telecommunications system terrestrial radio access network (E-UTRAN) connected to the UE, and E-UTRAN is respectively connected to the mobility management entity (MME) and the service gateway (S-GW) in the CN for accessing the control plane and the user plane respectively. The CN may also include a home subscriber server (HSS), a serving general packet radio service support node (SGSN), and a packet data network gateway (PDN gateway). The PDN gateway may be connected to the operator's IP service through a policy and charging rules function (PCRF) or directly to the operator's IP service.

[0081] UE: It can also be called terminal equipment, mobile device, mobile station (MS), mobile terminal (MT), etc. Terminal equipment can be a mobile phone, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. It can access the satellite network through the air interface and initiate calls, surf the Internet and other services.

[0082] RAN: It can also be called base station, access network equipment, network equipment, or in 5G communication system, it can also be called evolved Node B (gNB), and in 4G communication system, it can also be called evolved Node B (eNB). It mainly provides wireless access services, schedules wireless resources to access terminals, and provides reliable wireless transmission protocols and data encryption protocols.

[0083] CN: refers to the equipment that provides service support for terminal equipment in the network. It is used for user access control, mobility management, session management, user security authentication, billing and other services. It consists of multiple functional units and can be divided into control plane functional entities and data plane functional entities.

[0084] The method of the embodiment of the present application can be applied to Figure 1A The 5G communication system shown or Figure 1B The 4G communication system shown can also be applied to other communication systems such as a long term evolution (LTE) communication system, or a sixth generation mobile communication network (6G network) communication system, or an Internet communication scenario, etc., and the embodiments of the present application are not specifically limited.

[0085] The following is an introduction to the relevant technologies involved in the embodiments of the present application.

[0086] Stream Control Transmission Protocol (SCTP) is a protocol for transmitting multiple data streams simultaneously between the two ends of a network connection.

[0087] SCTP message structure: SCTP message consists of a common header and multiple chunks. Figure 1C , Figure 1C A schematic diagram of a SCTP general header structure provided in an embodiment of the present application is shown in FIG. Figure 1C As shown, the general header includes a source port field, a destination port field, a verification tag field, and a checksum field, wherein the source port field and the destination port field each occupy 2 bytes, and the verification tag field and the checksum field each occupy 4 bytes. The structure of each block varies according to the type of specific message.

[0088] SCTP link establishment: SCTP link establishment is completed through a four-way handshake. For details, see Figure 1D , Figure 1D A schematic diagram of an SCTP link establishment process provided in an embodiment of the present application is as follows: Figure 1D As shown, the process includes the following steps:

[0089] 1. First handshake: The first end sends a connection initialization (INIT) message to the second end. In the embodiment of the present application, the first end and the second end refer to two ends that can communicate over an SCTP link. The first end can be a client or a server. Correspondingly, the second end can be a server or a client.

[0090] In the first handshake, the first end sets and fills the initiate tag field of the INIT message block. After the second end receives the INIT message, all messages sent to the first end (including handshake messages and data transmission messages, etc.) will set the verification tag in the universal header to the value of the initiate tag field to play a certain verification role.

[0091] 2. Second handshake: To defend against flooding attacks, the second end does not immediately allocate local resources, but first replies with an initialization confirmation (INIT_ACK) message. This message carries a COOKIE information used to test the first end. Similar to the first handshake, in the second handshake, the second end sets and fills the start tag field of the INIT_ACK message. After the first end receives the INIT_ACK message, all messages sent to the second end will set the verification tag to the value of the start tag field.

[0092] 3. Third handshake: The first end sends the COOKIE back to the second end through a COOKIE response (COOKIE_ECHO) message.

[0093] 4. The fourth handshake: When the second end confirms that the COOKIE echoed by the first end is correct, it allocates local resources and sends a confirmation message to the first end through a COOKIE confirmation (COOKIE_ACK) message.

[0094] It is worth noting that in the first handshake, since there is no preceding message carrying the startup tag, the value of the verification tag field in the INIT message sent by the first end is always set to all 0s.

[0095] SCTP has been favored by mobile networks in the evolution of generations mainly due to its following advantages:

[0096] ①SCTP naturally supports distribution. In actual use, the verification tag field of the protocol is generally used as an identifier of the peer resource and thereby supports load balancing.

[0097] ②SCTP provides the ability to resist flooding attacks. When the first end initiates a connection request, the second end does not allocate resources immediately like TCP, but first uses a COOKIE to test the client, and the server allocates resources only after the client replies to the COOKIE.

[0098] ③SCTP supports multi-homing coupling. By establishing multiple connections between the multiple endpoints of the client node and the multiple endpoints of the service node, when a single connection fails, other connections can still support communication, which is more robust.

[0099] However, the SCTP protocol does not support connection migration, and accordingly, does not support load rebalancing. For example, when the SCTP connection server is expanded, only the newly created link can use the resources of the new server, and the existing link will continue to exist and be bound to the old server for a long time (up to several months), which makes it impossible to quickly achieve fair load sharing.

[0100] In summary, upgrading the SCTP protocol to support connection migration is of great value to the resource utilization of mobile communication distributed systems.

[0101] Based on this, see Figure 2A , is a flow chart of a connection migration method provided in an embodiment of the present application, such as Figure 2A As shown, the method comprises the following steps:

[0102] 201. The first end sends migration indication information to the second end, wherein the migration indication information includes an endpoint identifier of a second SCTP endpoint, and is used to instruct the second end to switch from being connected to a first SCTP endpoint of the first end to being connected to a second SCTP endpoint of the first end. Correspondingly, the second end receives the migration indication information from the first end.

[0103] As described above, the first end and the second end in the embodiment of the present application refer to the two ends that can perform SCTP link communication. The first end can be a client, and the second end can be a server. For example, in the 5G system architecture, the client is RAN and the server is AMF. Or in the 4G system architecture, the client is eNB, the server is MME, etc. Alternatively, the first end can be a server, and the second end can be a client. An SCTP endpoint is an entity in the first end or the second end that specifically performs SCTP communication. The form of an SCTP endpoint can specifically be a process, thread, fiber, coroutine, virtual machine (VM), container or container group (pod), etc. on the same client or server. In the following description, the first end is a client, the second end is a server, the first SCTP endpoint is process A in the server, and the second SCTP endpoint is process B in the server for example.

[0104] See also Figure 2B , Figure 2B A specific SCTP link communication schematic diagram provided for an embodiment of the present application, such as Figure 2B As shown, in the existing scheme, the verification tag is used as the identifier of the server resource, and the corresponding SCTP link establishment and data transmission method are as follows Figure 2B As shown. During the first handshake, the client sends an INIT message to the server. When the server receives the message, its link distribution mechanism selects the appropriate processing process according to the load balancing information, that is, process A in the figure, and forwards the INIT message to the process. During the second handshake, process A replies to the client with an INIT confirmation message and sets the start tag field in the INIT confirmation message to its own identifier, that is, the start tag carries the process A identifier. During the third handshake, the client sends a COOKIE response message to the server. According to the SCTP protocol, the verification tag field of the message is set to the value of the start tag field in the INIT confirmation message, that is, the verification tag field also carries the process A identifier. When the server receives the message, its link distribution mechanism extracts the value of the verification tag field, identifies process A, and forwards the message to process A. During the fourth handshake, the access process (i.e., process A) sends a COOKIE confirmation message to the client in a regular manner. The SCTP link is established. In subsequent interactions, according to the SCTP protocol, the verification tags of all messages sent by the client to the server carry the identifier of process A and are forwarded to process A by the link distribution mechanism of the server.

[0105] It can be seen that during the establishment and data transmission of the above SCTP link, load balancing of newly created links is supported. However, load rebalancing of existing links is not supported. In some cases, such as when the server is expanded and a new process is added, a large proportion of existing SCTP long connection links will continue to be bound to the old processing process. System resources will still be unbalanced in the short term, making it difficult to effectively utilize the newly added resources after expansion. Or the load on process A is already overloaded, and part of the SCTP link related to process A needs to be load balanced to other processes. In these cases, the client needs to migrate from the connection with process A to other connections.

[0106] In an embodiment of the present application, migration indication information is sent from the first end to the second end, for instructing the second end to switch from connecting with the first SCTP endpoint of the first end to connecting with the second SCTP endpoint of the first end. The migration indication information may include an endpoint identifier of the second SCTP endpoint, for the first end to determine a new SCTP endpoint to access.

[0107] 202. The second end sends a reconnection request to the first end according to the migration indication information, wherein the reconnection request includes an endpoint identifier of the second SCTP endpoint, and is used to request to establish a connection between the second end and the second SCTP endpoint, wherein the connection between the SCTP endpoints of the first end and the second end is a stream control transmission protocol SCTP link connection. Accordingly, the first end receives the reconnection request from the second end.

[0108] After receiving the migration indication information, the second end may send a reconnection request to the first end to request to establish a connection between the second end and the second SCTP endpoint. The reconnection request includes the endpoint identifier of the second SCTP endpoint so that the second end can determine the SCTP endpoint that the first end wants to access.

[0109] The first end and the second end perform SCTP link migration according to the migration indication information. For details, see Figure 2C , Figure 2C A specific SCTP link migration process diagram provided in the embodiment of the present application is as follows: Figure 2C As shown, the process includes the following steps:

[0110] 1. The client and the server establish an SCTP link for the first time and access process A. For the specific process, please refer to the above Figure 2B Related description.

[0111] 2. In some cases, the server (specifically, the load control module in the server) can determine that load rebalancing is required based on the load balancing requirements of multiple processes managed within its own scope, and migrate the SCTP link connected to process A to process B. Then, a rebalancing instruction can be sent to process A, instructing it to migrate the link to process B.

[0112] 3. Process A sends migration instruction information to the client through the connection that has been established with the client, which is used to instruct the client to migrate from the connection with process A to the connection with process B. The migration instruction information can be carried in a connection close (SHUTDOWN) message, which is used to instruct the client to close the connection with process A. Alternatively, the migration instruction information can also be carried in other existing or newly established messages, which is not specifically limited in the embodiments of the present application.

[0113] The migration indication information includes the endpoint identifier of the second SCTP endpoint. In the case where the migration indication information is carried in the connection closing message, the endpoint identifier of the second SCTP endpoint, in this embodiment, the process B identifier, can be carried in the verification tag field in the connection closing message. So that after the client receives the migration indication information, it can know the process to be migrated to. In other words, the aforementioned Figure 2BThe verification tag carrying the process A identifier in the relevant statement is used to carry the process B identifier. Alternatively, the process B identifier can also be carried in other existing fields in the connection closing message, which can simplify the modification content of the corresponding field in the general header. Alternatively, the process B identifier can also be carried in a newly added field in the connection closing message, which can facilitate the receiving end to read the content of the verification tag. This is not specifically limited in the embodiments of the present application.

[0114] Optionally, the migration indication information also includes time information, which is used to indicate the time when the second end initiates the reconnection request.

[0115] Specifically, the time information included in the migration indication information may be a timestamp. After receiving the migration indication information, the second end determines the time from when the first end sends the migration indication information according to the timestamp, and then initiates a reconnection request to the first end within the specified time from when the first end sends the migration indication information, so as to be able to successfully access the SCTP endpoint in the first end. Alternatively, the time information may also be in other forms, such as the moment when the second end initiates the reconnection request, etc. This is not specifically limited in the embodiments of the present application.

[0116] The time information may also be carried in the verification tag, that is, the verification tag carries the process B identifier through some bits, and carries the time information through some bits at the same time. Alternatively, the verification tag may only carry the time information, which is not in the same field as the process B identifier. Alternatively, the time information may also be carried in other existing fields or newly added fields in the connection closing message. When the migration indication information is carried in messages other than the connection closing message, correspondingly, the time information is also carried in existing fields or newly added fields of other messages, which is not specifically limited in the embodiments of the present application.

[0117] By carrying time information in the migration indication information, it is used to indicate the time when the second end initiates the reconnection request, so that the reconnection request initiated by the second end to the first end within the specified time can be received by the first end. In this way, the second end can initiate the reconnection request in time, improving the efficiency of reconnection establishment. At the same time, for the first end, it can also reduce the time waiting for reconnection access and reduce power consumption.

[0118] 4. After receiving the migration instruction information, the client sends a reconnection request to the server.

[0119] The migration indication information received by the client may be, for example, the process B identifier obtained from the verification tag in the connection closing message, and the migration intention and migration target are obtained at the same time. Therefore, the client initiates a reconnection request to the server. Specifically, the reconnection request message may be carried in an INIT message. The reconnection request message includes the endpoint identifier of the second SCTP endpoint, that is, the process B identifier. The process B identifier may be carried in the verification tag of the INIT message. The link distribution mechanism selects process B according to the verification tag to complete the reconnection process. The subsequent handshake process may be the same as Figure 2B The description in is similar. Alternatively, the process B identifier may also be added to other existing fields or newly added fields in the INIT message. Alternatively, the reconnection request message may also be carried in other messages, and correspondingly, the process B identifier is added to the existing fields or newly added fields of other messages. The embodiments of the present application are not limited to this.

[0120] It should also be noted that the above Figure 2C The example is explained with the SCTP endpoint as a process, in which case the endpoint identifiers of the first SCTP endpoint and the second SCTP endpoint can be the corresponding process identifiers. Assuming that the first SCTP endpoint and the second SCTP endpoint are other entities, such as threads, fibers, coroutines, VMs, containers or container groups, the endpoint identifier of SCTP can be the corresponding thread identifier, fiber identifier, coroutine identifier, VM identifier, container identifier or container group identifier. Assuming that the SCTP endpoint is a nested entity, such as a VM nested container, the endpoint identifier of SCTP can be a nested identifier, such as a VM identifier + container identifier + process identifier. In addition, the first SCTP endpoint and the second SCTP endpoint can be the same type of entity or different types of entities. For example, when the first SCTP endpoint and the second SCTP endpoint are different types of entities, the first SCTP endpoint is a process and the second SCTP endpoint is a VM. Correspondingly, the endpoint identifier of the first SCTP endpoint is a process identifier and the endpoint identifier of the second SCTP endpoint is a VM identifier.

[0121] It can be seen that in the embodiment of the present application, the first end sends migration instruction information to the second end, instructing the second end to switch from connecting with the first SCTP endpoint of the first end to connecting with the second SCTP endpoint of the first end, and then receives a reconnection request from the second end to reconnect the second end with the second SCTP endpoint of the first end. The first SCTP endpoint and the second SCTP endpoint are located on the same device. This process enables the first end to achieve load rebalancing for multiple SCTP links in the second end corresponding to a single device, thereby ensuring the communication quality of the SCTP link.

[0122] In some cases, the above Figure 2C The SCTP link migration process may also include the following steps:

[0123] 5. In response to the connection close message in step 3, the client sends a shutdown confirmation (SHUTDOWN_ACK) message to process A on the server.

[0124] 6. In response to the SHUTDOWN_ACK message in step 5, process A on the server sends a SHUTDOWN_COMPLETE message to the client.

[0125] That is, after the client accesses process B, it closes the connection with process A. Step 5, step 6 and step 4 can be performed simultaneously, or completed before step 4, and the specific order is not limited.

[0126] The above embodiment is a method for performing connection migration when the first SCTP endpoint and the second SCTP endpoint of the first end are endpoints in the same device. In some cases, the first SCTP endpoint and the second SCTP endpoint may also be endpoints in different devices. Figure 3 , Figure 3 Another specific SCTP link migration process diagram provided in the embodiment of the present application is as follows: Figure 3 As shown, the process includes the following steps:

[0127] 1. The client and server 1 establish an SCTP link for the first time and access process A. For the specific process, please refer to the above Figure 2B In this process, the link distribution mechanism of server 1 forwards the client's verification tag to process A in server 1.

[0128] 2. In some cases, the server (specifically, a load control module that can simultaneously manage and control server 1 and server 2) determines that multiple processes in multiple servers managed within its scope need to be load rebalanced, and migrates the SCTP link connected to process A to process B. Then, a rebalancing instruction can be sent to process A in server 1, instructing to migrate the link to process B in server 2.

[0129] 3. Process A in server 1 sends migration instruction information to the client through the connection established with the client, which is used to instruct the client to migrate from the connection with process A of server 1 to the connection with process B of server 2. Figure 2C The migration indication information may be carried in a SHUT DOWN message, which is used to instruct the client to close the connection with process A in server 1. Alternatively, the migration indication information may also be carried in other existing or newly established messages, which is not specifically limited in the embodiments of the present application.

[0130] The connection closing message includes a verification tag field. Assuming that the migration indication information is carried in the connection closing message, the process B identifier in the server 2 can be carried in the verification tag field, so that after the client receives the migration indication information, it can know the process to be migrated to. In order to enable the client to correctly address process B, the verification tag can also include one of the Internet Protocol (IP) address of the server 2, or the device port information, or both of the information.

[0131] That is to say, the aforementioned Figure 2B The verification tag carrying the process A identifier in the relevant statement is used to carry the identifier of the server 2 and the identifier of the process B. Alternatively, the identifier of the server 2 and the identifier of the process B may also be carried in other existing fields in the connection closing message, or in a newly added field in the connection closing message, which is not specifically limited in the embodiment of the present application.

[0132] Optionally, the migration indication information also includes time information, which is used to indicate the time when the second end initiates the reconnection request. Figure 2C Description of step 3.

[0133] 4. After receiving the migration instruction information, the client sends a reconnection request to the server.

[0134] The migration indication information received by the client may be, for example, the identification of process B in server 2 obtained from the verification tag in the connection closing message, and the migration intention and migration target are obtained at the same time. Therefore, the client initiates a reconnection request to server 2. Specifically, the reconnection request message may be carried in an INIT message. The reconnection request message includes the endpoint identification of the second SCTP endpoint, that is, the identification of process B in server 2. The verification tag in the INIT message may be used to carry the identification of process B (or may also include the identification of server 2). The link distribution mechanism in server 2 selects process B according to the verification tag to complete the reconnection process. The subsequent handshake process may be the same as Figure 2B The description in is similar. Alternatively, the process B identifier may also be added to other existing fields or newly added fields in the INIT message. Alternatively, the reconnection request message may also be carried in other messages, and correspondingly, the process B identifier is added to the existing fields or newly added fields of other messages. The embodiments of the present application are not limited to this.

[0135] It should also be noted that Figure 3The example is explained with the SCTP endpoint as a process. In this case, the endpoint identifiers of the first SCTP endpoint and the second SCTP can be the process identifiers in the corresponding server. Assuming that the processes in each server have different naming methods, the endpoint identifier of SCTP can be a separate process identifier. Assuming that the processes in each server have the same or similar naming methods, the endpoint identifier of SCTP can be the server identifier + process identifier, so as to distinguish the processes of different servers. Assuming that the first SCTP endpoint and the second SCTP endpoint are other entities, such as threads, VMs or containers, the endpoint identifier of SCTP can be the identifier of the corresponding entity, such as a thread identifier, a VM identifier or a container identifier; or it can be the identifier of the server + the identifier of other entities, such as the identifier of the server + the thread identifier, the identifier of the server + the VM identifier, and the identifier of the server + the container identifier. Assuming that the SCTP endpoint is a nested entity, the endpoint identifier of SCTP can be the identifier of the server + the nested identifier. For example, if the nested entity is a VM nested container, the endpoint identifier of SCTP can be the identifier of the server + the VM identifier + the container identifier + the process identifier. Furthermore, the first SCTP endpoint and the second SCTP endpoint may be entities of the same type or entities of different types, as described above. Figure 2C The relevant description will not be repeated here.

[0136] It can be seen that in the embodiment of the present application, the first end sends migration indication information to the second end, instructing the second end to switch from connecting with the first SCTP endpoint of the first end to connecting with the second SCTP endpoint of the first end, and then receives a reconnection request from the second end to reconnect the second end with the second SCTP endpoint of the first end. The first SCTP endpoint and the second SCTP endpoint are located in different devices. This process enables the first end and the second end composed of multiple devices to achieve load rebalancing of multiple SCTP links in different devices, thereby ensuring the communication quality of the SCTP link.

[0137] In some cases, the above Figure 3 The SCTP link migration process may also include the following steps:

[0138] 5. In response to the connection close message in step 3, the client sends a shutdown confirmation (SHUTDOWN_ACK) message to process A on the server.

[0139] 6. In response to the SHUTDOWN_ACK message in step 5, process A on the server sends a SHUTDOWN_COMPLETE message to the client.

[0140] That is, after the client accesses process B of server 2, it closes the connection with process A of server 1. Step 5, step 6 and step 4 can be performed simultaneously, or completed before step 4, and the specific order is not limited.

[0141] like Figure 4 As shown, a communication device 400 provided in an embodiment of the present application includes a communication device for implementing the above Figure 2A The method embodiment shown and any possible design method thereof are modules or units. The module or unit may be a hardware circuit, or software, or a hardware circuit combined with software. The communication device may be a terminal device, or a device in a terminal device or a network device (for example, a chip, or a chip system, or a circuit), or a device that can be used in combination with a terminal device. The device may include a transceiver unit 401 and a processing unit 402.

[0142] When the communication device 400 is used to implement Figure 2A The function of the first terminal in the method embodiment is:

[0143] The transceiver unit 401 is used to send migration indication information to the second end, where the migration indication information includes an endpoint identifier of the second SCTP endpoint, which is used to instruct the second end to switch from being connected to the first SCTP endpoint of the first end to being connected to the second SCTP endpoint of the first end;

[0144] The transceiver unit 401 is further used to receive a reconnection request from the second end, where the reconnection request includes an endpoint identifier of the second SCTP endpoint and is used to request to establish a connection between the second end and the second SCTP endpoint.

[0145] When the communication device 400 is used to implement Figure 2A The function of the second terminal in the method embodiment is:

[0146] The transceiver unit 401 is used to receive migration indication information from the first end, where the migration indication information includes an endpoint identifier of the second SCTP endpoint, which is used to instruct the second end to switch from being connected to the first SCTP endpoint of the first end to being connected to the second SCTP endpoint of the first end;

[0147] The processing unit 402 is used to send a reconnection request to the first end according to the migration indication information in combination with the transceiver unit, wherein the reconnection request includes an endpoint identifier of the second SCTP endpoint, and is used to request to establish a connection between the second end and the second SCTP endpoint, wherein the connection between the SCTP endpoints of the first end and the second end is a stream control transmission protocol SCTP link connection.

[0148] For a more detailed description of the transceiver unit 401 and the processing unit 402, please refer to the relevant description in the above method embodiment, which will not be described again here.

[0149] like Figure 5 As shown, Figure 5 A schematic diagram of the hardware structure of a communication device in an embodiment of the present application is shown. Figure 4 The structure of the communication device in can refer to Figure 5 The communication device 900 includes: a processor 111 and a transceiver 112, wherein the processor 111 and the transceiver 112 are electrically coupled;

[0150] The processor 111 is used to execute some or all of the computer program instructions in the memory, and when some or all of the computer program instructions are executed, the device executes the method of any of the above embodiments. For example, it is used to obtain the load balancing requirements between multiple SCTP endpoints of the first end, and generate migration indication information according to the load balancing requirements, wherein the migration indication information includes an endpoint identifier of the second SCTP endpoint, which is used to instruct the second end to switch from connecting with the first SCTP endpoint of the first end to connecting with the second SCTP endpoint of the first end.

[0151] The transceiver 112 is used to communicate with other devices; for example, to send the migration indication information generated above.

[0152] Optionally, a memory 113 is also included for storing computer program instructions. Optionally, the memory 113 (memory #1) is located within the device, the memory 113 (memory #2) is integrated with the processor 111, or the memory 113 (memory #3) is located outside the device.

[0153] It should be understood that Figure 5 The communication device 900 shown may be a chip or a circuit. For example, a chip or a circuit may be provided in a terminal device or a communication device. The transceiver 112 may also be a communication interface. The transceiver includes a receiver and a transmitter. Furthermore, the communication device 900 may also include a bus system.

[0154] Among them, the processor 111, the memory 113, and the transceiver 112 are connected through a bus system, and the processor 111 is used to execute the instructions stored in the memory 113 to control the transceiver to receive signals and send signals, and complete the steps of the first device or the second device in the implementation method involved in this application. The memory 113 can be integrated in the processor 111, or it can be set separately from the processor 111.

[0155] As an implementation method, the function of the transceiver 112 can be considered to be implemented by a transceiver circuit or a dedicated transceiver chip. The processor 111 can be considered to be implemented by a dedicated processing chip, a processing circuit, a processor or a general chip. The processor can be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and an NP. The processor can further include a hardware chip or other general processors. The above-mentioned hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) and other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. or any combination thereof. The general processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0156] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory described in this application is intended to include, but is not limited to, these and any other suitable types of memory.

[0157] An embodiment of the present application provides a computer storage medium storing a computer program, wherein the computer program includes a method for executing the method corresponding to the first end or the second end in the above embodiment.

[0158] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the method corresponding to the first end or the second end in the above embodiment.

[0159] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0160] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0161] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0162] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0163] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0164] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0165] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0166] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A connection migration method, characterized in that: The method comprises: Sending migration indication information to the second end, wherein the migration indication information includes an endpoint identifier of the second SCTP endpoint, which is used to instruct the second end to switch from being connected to the first SCTP endpoint of the first end to being connected to the second SCTP endpoint of the first end; A reconnection request is received from the second end, wherein the reconnection request includes an endpoint identifier of the second SCTP endpoint and is used to request establishment of a connection between the second end and the second SCTP endpoint.

2. The method according to claim 1, characterized in that Before sending the migration indication information to the second end, the method further includes: Obtain a load balancing requirement between multiple SCTP endpoints of the first end, and generate the migration indication information according to the load balancing requirement, wherein the multiple SCTP endpoints include the first SCTP endpoint and the second SCTP endpoint.

3. The method according to claim 1 or 2, characterized in that: After receiving the reconnection request from the second end, the method further includes: Establish a connection between the second SCTP endpoint and the second end.

4. The method according to any one of claims 1 to 3, characterized in that: The multiple SCTP endpoints of the first end are at least one of the following: a processing process, a thread, a fiber, a coroutine, a virtual machine VM, a container or a container group.

5. The method according to claim 4, characterized in that The multiple SCTP endpoints of the first end are located on the same device, and the SCTP endpoint identifier includes a process identifier, a thread identifier, a fiber identifier, a coroutine identifier, a VM identifier, a container identifier or a container group identifier.

6. The method according to claim 4 or 5, characterized in that: The multiple SCTP endpoints of the first end are located on different devices, and the SCTP endpoint identifiers include Internet Protocol IP addresses and / or device port information.

7. The method according to any one of claims 1 to 6, characterized in that: The migration indication information is carried in the connection closing message.

8. The method according to claim 7, characterized in that The endpoint identifier of the second SCTP endpoint in the migration indication information is carried in the verification tag.

9. The method according to any one of claims 1 to 8, characterized in that: The migration indication information also includes time information, which is used to indicate the time when the second end initiates the reconnection request.

10. A connection migration method, characterized in that: The method comprises: Receiving migration indication information from the first end, the migration indication information including an endpoint identifier of a second SCTP endpoint, used to instruct the second end to switch from being connected to a first SCTP endpoint of the first end to being connected to the second SCTP endpoint of the first end; A reconnection request is sent to the first end according to the migration indication information, wherein the reconnection request includes an endpoint identifier of the second SCTP endpoint, and is used to request to establish a connection between the second end and the second SCTP endpoint, wherein the connection between the SCTP endpoints of the first end and the second end is a Stream Control Transmission Protocol SCTP link connection.

11. The method according to claim 10, characterized in that The reconnection request is carried in a connection initialization message.

12. The method according to claim 11, characterized in that The endpoint identifier of the second SCTP endpoint in the reconnection request is carried in a verification tag.

13. The method according to any one of claims 10 to 12, characterized in that: The multiple SCTP endpoints of the first end are at least one of the following: a processing process, a thread, a fiber, a coroutine, a virtual machine VM, a container or a container group.

14. The method according to claim 13, characterized in that The multiple SCTP endpoints of the first end are located on the same device, and the SCTP endpoint identifier includes a process identifier, a thread identifier, a fiber identifier, a coroutine identifier, a VM identifier, a container identifier or a container group identifier.

15. The method according to claim 13 or 14, characterized in that The multiple SCTP endpoints of the first end are located on different devices, and the SCTP endpoint identifiers include Internet Protocol IP addresses and / or device port information.

16. The method according to any one of claims 10 to 15, characterized in that: The migration indication information also includes time information; and sending a reconnection request to the first end according to the migration indication information includes: The time for initiating a reconnection request to the second end is determined according to the time information in the migration indication information.

17. A connection migration method, characterized in that: The method comprises: The first end sends migration indication information to the second end, where the migration indication information includes an endpoint identifier of a second SCTP endpoint, and is used to instruct the second end to switch from being connected to the first SCTP endpoint of the first end to being connected to the second SCTP endpoint of the first end; The second end receives migration indication information from the first end, and sends a reconnection request to the first end according to the migration indication information, wherein the reconnection request includes an endpoint identifier of the second SCTP endpoint, and is used to request to establish a connection between the second end and the second SCTP endpoint, wherein the connection between the SCTP endpoints of the first end and the second end is a Stream Control Transmission Protocol SCTP link connection.

18. A communication device, characterized in that: The device comprises: A transceiver unit, configured to send migration indication information to the second end, wherein the migration indication information includes an endpoint identifier of a second SCTP endpoint, and is configured to instruct the second end to switch from being connected to the first SCTP endpoint of the first end to being connected to the second SCTP endpoint of the first end; The transceiver unit is also used to receive a reconnection request from the second end, wherein the reconnection request includes an endpoint identifier of the second SCTP endpoint and is used to request to establish a connection between the second end and the second SCTP endpoint.

19. The device according to claim 18, characterized in that The device also includes a processing unit, configured to: Obtain a load balancing requirement between multiple SCTP endpoints of the first end, and generate the migration indication information according to the load balancing requirement, wherein the multiple SCTP endpoints include the first SCTP endpoint and the second SCTP endpoint.

20. The device according to claim 18 or 19, characterized in that The transceiver unit is also used for: Establish a connection between the second SCTP endpoint and the second end.

21. The device according to any one of claims 18 to 20, characterized in that The migration indication information is carried in the connection closing message.

22. A communication device, characterized in that: The device comprises: A transceiver unit, configured to receive migration indication information from a first end, wherein the migration indication information includes an endpoint identifier of a second SCTP endpoint, and is configured to instruct the second end to switch from being connected to a first SCTP endpoint of the first end to being connected to the second SCTP endpoint of the first end; A processing unit, used for sending a reconnection request to the first end according to the migration indication information in combination with the transceiver unit, wherein the reconnection request includes an endpoint identifier of the second SCTP endpoint, and is used for requesting to establish a connection between the second end and the second SCTP endpoint, wherein the connection between the SCTP endpoints of the first end and the second end is a stream control transmission protocol SCTP link connection.

23. The device according to claim 22, characterized in that The reconnection request is carried in a connection initialization message.

24. A computer-readable storage medium, characterized in that: The invention comprises instructions, which, when executed on a communication device, enable the method according to any one of claims 1 to 9 to be executed, or enable the method according to any one of claims 10 to 16 to be executed.

25. A communication system, characterized in that: The communication system comprises: a first end device for executing the method as claimed in any one of claims 1 to 9, and a second end device for executing the method as claimed in any one of claims 10 to 16.

26. A communication device, characterized in that: include: A processor and a communication interface, wherein the communication interface is used for communication, and the processor is used for executing computer instructions so that the method according to any one of claims 1 to 9 is executed, or so that the method according to any one of claims 10 to 16 is executed.

27. A communication device, characterized in that: include: A memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to execute the computer instructions so that the method according to any one of claims 1 to 9 is executed, or so that the method according to any one of claims 10 to 16 is executed.

28. A communication chip, characterized in that: Instructions are stored therein, and when the chip runs on a communication device, the method according to any one of claims 1 to 9 is executed, or the method according to any one of claims 10 to 16 is executed.

29. A computer program product, characterized in that The computer program product comprises computer instructions; when part or all of the computer instructions are run on a computer, the method according to any one of claims 1 to 9 is executed, or the method according to any one of claims 10 to 16 is executed.