Data transmission method and device based on multi-data center architecture, storage medium, computer device and system
By introducing relay nodes into a multi-datacenter architecture, and utilizing topology information to detect and implement data transmission, the difficulties of data interaction and sharing between lower-level data centers are resolved, improving business processing efficiency and ensuring network security.
Patent Information
- Application Number
- CN202310927609.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-27
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-07-27
AI Technical Summary
In a multi-level data center architecture, data transmission between lower-level data centers suffers from lengthy authorization approval times and numerous, cumbersome review processes, leading to wasted time and increased network security maintenance costs.
The relay node receives data transmission messages from the source data center node, uses topology information to detect whether the parent node of the source data center node and the target data center node is a relay node, and sends the source data to the target data center node after confirmation, thus realizing the relay transmission of data.
It enables data relay transmission between multiple lower-level data centers, solving the problem of data interaction and sharing difficulties caused by network isolation, reducing permission application steps, improving business processing efficiency, and ensuring network information security.
Smart Images

Figure CN116996566B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communications, and in particular to a data transmission method, apparatus, storage medium, computer equipment, and system based on a multi-data center architecture. Background Technology
[0002] Due to information security risks inherent in the internet, many enterprises use local area networks (LANs) to establish enterprise-level information management systems. Currently, large group enterprises in China often employ a multi-tiered data center deployment model. The group headquarters data center is interconnected with lower-level data centers, with the headquarters monitoring and managing the lower-level data centers. These lower-level data centers also have business interaction needs. Currently, to achieve data transmission between lower-level data centers, users must request corresponding permissions from the group headquarters data center. This process is lengthy, involves multiple review stages, and is cumbersome. Undoubtedly, this wastes users' time and increases the cost of subsequent network security maintenance. Summary of the Invention
[0003] This application provides a data transmission method, apparatus, storage medium, and computer equipment based on a multi-data center architecture, which can solve the problem of inconvenient data transmission between lower-level data center nodes in the prior art. The technical solution is as follows:
[0004] In a first aspect, embodiments of this application provide a data transmission method based on a multi-datacenter architecture, the method comprising:
[0005] The relay node receives a data transmission message from the source data center node; wherein the data transmission message includes a message header and source data, and the message header includes the address information of the source data center node and the address information of the target data center node;
[0006] Based on the topology information, detect whether the parent node of the source data center node and the target data center node is the relay node;
[0007] If so, the source data is sent to the target data center node.
[0008] Secondly, embodiments of this application provide a data transmission device based on a multi-data center architecture, the device comprising:
[0009] A receiving unit is configured to receive a data transmission message from a source data center node; wherein the data transmission message includes a message header and source data, and the message header includes the address information of the source data center node and the address information of the target data center node;
[0010] The detection unit is used to detect whether the parent node of the source data center node and the target data center node is a relay node based on the topology information.
[0011] The sending unit is configured to send the source data to the target data center node if the condition is met.
[0012] Thirdly, embodiments of this application provide a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the above-described method steps.
[0013] Fourthly, embodiments of this application provide a computer device, which may include: a processor and a memory; wherein the memory stores a computer program, the computer program being adapted to be loaded by the processor and to execute the above-described method steps.
[0014] Fifthly, embodiments of this application provide a data transmission system, including: a source data center node, a relay node, and a target data center node; the source data center node, the relay node, and the target data center node are interconnected in pairs;
[0015] The source data center node is used to display a form filling page through a display unit, whereby a user inputs field values of a form field on the form filling page using an input device, generates source data based on the user-input field values, selects at least one target data center node from multiple candidate data center nodes based on the form filling page, generates a data transmission message based on the source data and the address information of the at least one target data center node, and detects whether the communication link with the target data center node is open; if not, the data transmission message is sent to the relay node.
[0016] The relay node is used to receive data transmission messages from the source data center node; wherein, the data transmission message includes a message header and source data, the message header includes the address information of the source data center node and the address information of the target data center node; it detects whether the parent node of the source data center node and the target data center node is the relay node according to the topology information; if so, it sends the source data to the target data center node;
[0017] The target data center node is used to receive source data from the relay node.
[0018] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:
[0019] In situations where communication between multiple lower-level data centers is poor, data can be relayed and transmitted through a higher-level data center that has network access to the lower-level data centers. This solves the problem of lower-level data centers being unable to interact, share data, and collaborate on business due to network isolation, reduces permission application steps and processes, and improves business processing efficiency. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a schematic diagram of the network architecture provided in the embodiments of this application;
[0022] Figure 2 This is a flowchart illustrating the data transmission method based on a multi-data center architecture provided in an embodiment of this application.
[0023] Figure 3 This is a schematic diagram of a data transmission device based on a multi-data center architecture provided in this application;
[0024] Figure 4 This is a schematic diagram of the structure of a computer device provided in this application. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0026] It should be noted that the data transmission method based on a multi-data center architecture provided in this application is generally executed by computer equipment, and correspondingly, the data transmission device based on a multi-data center architecture is generally installed in the computer equipment.
[0027] Figure 1 An exemplary system architecture is shown that can be applied to the data transmission method or apparatus based on a multi-data center architecture in this application.
[0028] like Figure 1As shown, the system architecture may include: data center node 101, data center node 102, and data center node 103. The various data center nodes 101 can communicate with each other via a network, which serves as the medium for providing communication links between the aforementioned units. The network may include various types of wired or wireless communication links, such as: wired communication links including fiber optic cables, twisted-pair cables, or coaxial cables; and wireless communication links including Bluetooth communication links, Wi-Fi communication links, or microwave communication links.
[0029] Databases are deployed in data center nodes 101 to 103 to store business data generated during the operation of the enterprise-level information management system. Data center nodes 101 and 103 are subordinate nodes of data center node 102, meaning data center node 102 is the superior node of data center nodes 101 and 103. Data center node 103 has management authority over data center nodes 101 and 102. When data center node 101 needs to send source data to data center node 103, if it finds that the communication link between the two is not working, it can use data center node 103 as a relay node to send the source data to data center node 103.
[0030] Each data center node can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the deployment method is multiple servers, the data center node referred to in this application is the management server or central server among the multiple servers.
[0031] It should be understood that Figure 1 The number of computer devices, networks, and servers shown is for illustrative purposes only. The number of computer devices, networks, and servers can be any number, depending on the implementation requirements.
[0032] The following will be combined with the appendix Figure 2 This application provides a detailed description of the data transmission method based on a multi-datacenter architecture, as provided in the embodiments of this application. The data transmission device based on a multi-datacenter architecture in the embodiments of this application can be... Figure 1 The computer equipment shown.
[0033] Please see Figure 2 This document provides a flowchart illustrating a data transmission method based on a multi-datacenter architecture, as described in an embodiment of this application. Figure 2 As shown, the method described in this application embodiment may include the following steps:
[0034] S201, The relay node receives data transmission messages from the source data center node.
[0035] In the embodiments of this application, the data transmission message includes a message header and source data. The message header includes the address information of the source data center node and the address information of the target data center node. The data type of the source data is not limited in this application, and includes, but is not limited to, unstructured data such as text, byte streams, images, and audio data. The source data center node is the data sender, and the target data center node is the data receiver. The address information can be represented by one or more of IP address, port, and MAC address.
[0036] In some embodiments of this application, the method for the source data center node to generate a data transmission message may be as follows: a form filling page is displayed through a display unit, and the user inputs field values of the form fields on the form filling page through an input device. Source data is generated based on the field values input by the user, and the source data is a business form. Then, the source data center node obtains multiple candidate data center nodes at the same level as the source data center node, and selects at least one target data center node from the multiple candidate data center nodes based on the user's selection instruction. The selection instruction is triggered by the user on the form filling page through the input device. The source data center node pre-stores the address information of each statistical data center node, obtains the address information of the at least one target data center node selected by the user based on the pre-stored address information, and then generates a data transmission message based on the sending instruction generated by the user based on the form filling page.
[0037] In some embodiments of this application, the data center system includes multiple data center nodes. A source data center node and each of its peer data center nodes have direct communication links (wired or wireless). The source data center node and each of its peer data center nodes share a common parent node. This parent node has the authority to control the opening or closing of communication links between two lower-level data center nodes. The parent node stores a link status configuration table representing the connectivity status of each communication link. Each lower-level data center node obtains the connectivity status of each communication link based on this link status configuration table. The source data center node stores the topology information of the data center system, determines the parent node based on the topology information, and then sends the generated data transmission message to the parent node. The parent node receives the data transmission message from the source data center node.
[0038] In some embodiments of this application, before sending source data, the source data center node can detect whether the communication link between the source data center node and the target data center node is normal through a pre-configured link status. If not, the data transmission message is sent to the upper-level node, which is used as a relay node. Alternatively, the source data center node can detect whether the communication link between the source and target data center nodes is normal through a probe packet. If no response table is received from the target data center node within a preset time, it indicates that the communication link between the two is abnormal, and the generated data transmission message is sent to the upper-level node.
[0039] In some embodiments of this application, the relay node synchronizes topology information, link status information, and address information of the lower-level data center nodes to each lower-level data center node, so that each lower-level data center node can know the topology of the data center system, the link status of the communication link, and the address of each lower-level data center node.
[0040] In some embodiments of this application, when generating a data transmission message, the source data center node may add a redundancy check bit to the message. When sending the source data, the relay node sends the source data and the redundancy check bit together to the target data center node. When the target data center node receives the source data, it verifies the integrity of the source data based on the redundancy check bit, thereby enhancing the reliability of data transmission.
[0041] S202. Detect whether the parent node of the source data center node and the target data center node is a relay node based on the topology information.
[0042] In the embodiments of this application, the upper-level node parses the data transmission message to obtain the source data and the data header. The relay node obtains the address information of the source data center node and the address information of the target data center node based on the data header. The relay node determines whether the source data center node and the target data center node are the lower-level data center nodes of the relay node based on the topology information. If yes, S204 is executed. If no, the relay node returns a failure message to the source data center node. The failure message is used to inform the user that the data transmission failed. The message may also carry a status code indicating the reason for the failure so that the user can understand the reason for the transmission failure.
[0043] S204. If yes, the relay node will transmit the source data to the target data center node.
[0044] In the embodiments of this application, the relay node writes the source data into the database of the target data center node. After the target data center node reads the source data from its local database, it fills the source data into the business document template to generate the target business document and pushes the target business document to the designated user.
[0045] In some embodiments of this application, the data formats in the target data center node and the source data center node may be different. For example, fields with the same meaning or field values may have different formats. In this case, the relay node obtains the corresponding data conversion rules from the target data center node, converts the source data according to the data conversion rules, and then sends the converted source data to the target data center node, thereby achieving the unification and compatibility of the data formats of the sender and receiver.
[0046] In some embodiments of this application, the relay node uses a transaction mechanism to send source data. If the relay node is simultaneously the parent node of the source data center node and the target data center node, and the relay node detects that the source data transmission has failed, it will retransmit the source data. When the number of retransmissions reaches a preset number, the retransmission will stop and a transmission failure message will be returned to the source data center node. The transmission failure message carries a code indicating the specific reason for the failure, which can improve the reliability of the source data transmission.
[0047] In some embodiments of this application, in order to reduce the transmission time of source data, when the communication link between the source data center node and the target data center node is unobstructed, the source data center node can divide the source data into two data blocks according to a preset ratio. The preset ratio can be determined according to actual needs, for example, the preset ratio is 1:1. Then, the two data blocks are sent to the target data center node through a direct communication link and a relay communication link, respectively. In this way, the source data is transmitted through two communication links at the same time, which can improve the data transmission speed and reduce the transmission time.
[0048] The embodiments of this application, when transmitting data between a source data center node and a target data center node, have the following beneficial effects:
[0049] 1. It can facilitate the transfer of data between multiple data center nodes that are not interconnected by a parent node that has network access to these data centers, thus solving the problem that these data centers cannot interact, share data, and collaborate on business due to network isolation.
[0050] 2. By using relay nodes, there is no need to open up network access permissions between these data centers, which not only ensures the security of network information in each data center, but also saves on the maintenance costs of network information security.
[0051] 3. Due to network isolation, there may be collaborative services across multiple data centers. By using a proxy method through relay nodes, the complexity of synchronizing data between data centers is reduced.
[0052] 4. Because the data that needs to be exchanged has a diverse structure and type, it is no longer limited by the data format and specific structure, and can support the transmission of data required by different business types.
[0053] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0054] Please see Figure 3 This illustration shows a schematic diagram of a data transmission apparatus based on a multi-data center architecture provided in an exemplary embodiment of this application, hereinafter referred to as apparatus 3. Apparatus 3 can be implemented as all or part of a computer device through software, hardware, or a combination of both. Apparatus 3 includes: a receiving unit 301, a detection unit 302, and a transmitting unit 303.
[0055] The receiving unit 301 is configured to receive a data transmission message from a source data center node; wherein the data transmission message includes a message header and source data, and the message header includes the address information of the source data center node and the address information of the target data center node;
[0056] The detection unit 302 is used to detect whether the parent node of the source data center node and the target data center node is a relay node based on the topology information.
[0057] The sending unit 303 is used to send the source data to the target data center node if the condition is met.
[0058] In one or more possible embodiments, sending the target data to the target data center node includes:
[0059] Detect whether the data formats of the source data center node and the target data center node are the same;
[0060] If not, the source data is formatted according to the data conversion rules associated with the target data center node, and the converted source data is sent to the target data center node.
[0061] In one or more possible embodiments, it also includes:
[0062] The synchronization unit is used to synchronize link status information, topology information, and address information of lower-level nodes to all lower-level nodes.
[0063] In one or more possible embodiments, it also includes:
[0064] A retransmission unit is used to retransmit the source data if the source data transmission fails.
[0065] If the preset number of retransmissions is reached, data retransmission will stop, and a transmission failure message carrying the reason for the failure will be returned to the source data center node.
[0066] It should be noted that the above embodiments of the device 3, when executing the data transmission method based on a multi-data center architecture, are only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the above functions. In addition, the data transmission device based on a multi-data center architecture and the data transmission method embodiments based on a multi-data center architecture provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.
[0067] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0068] This application also provides a computer storage medium that can store multiple instructions, which are adapted to be loaded and executed by a processor as described above. Figure 2 The method steps of the illustrated embodiment can be found in the following documentation for detailed execution. Figure 2 The specific details of the illustrated embodiments will not be elaborated here.
[0069] This application also provides a computer program product that stores at least one instruction, which is loaded and executed by the processor to implement the data transmission method based on a multi-datacenter architecture as described in the above embodiments.
[0070] Please see Figure 4 This document provides a schematic diagram of the structure of a computer device according to an embodiment of this application. Figure 4 As shown, the computer device 400 may include: at least one processor 401, at least one network interface 404, user interface 403, memory 405, and at least one communication bus 402.
[0071] The communication bus 402 is used to enable communication between these components.
[0072] The user interface 403 may include a display screen and a camera. Optionally, the user interface 403 may also include a standard wired interface and a wireless interface.
[0073] The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0074] The processor 401 may include one or more processing cores. The processor 401 connects to various parts within the computer device 400 using various interfaces and lines, and executes various functions and processes data of the terminal 400 by running or executing instructions, programs, code sets, or instruction sets stored in memory 405, and by calling data stored in memory 405. Optionally, the processor 401 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 401 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 401 and may be implemented as a separate chip.
[0075] The memory 405 may include random access memory (RAM) or read-only memory. Optionally, the memory 405 may include non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 405 may also be at least one storage device located remotely from the aforementioned processor 401. Figure 4 As shown, the memory 405, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and application programs.
[0076] exist Figure 4In the computer device 400 shown, the user interface 403 is mainly used to provide an input interface for the user and to obtain the user's input data; while the processor 401 can be used to call the application program stored in the memory 405 and specifically execute, such as Figure 2 The method shown can be referred to for details. Figure 2 As shown, it will not be elaborated further here.
[0077] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.
[0078] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A data transmission method based on a multi-datacenter architecture, characterized in that, include: When the communication link between the source data center node and the target data center node is not smooth, the relay node receives the data transmission message from the source data center node; wherein, the data transmission message includes a message header and source data, and the message header includes the address information of the source data center node and the address information of the target data center node; The relay node detects whether the parent node of the source data center node and the target data center node is the relay node based on the topology information; wherein, the parent node has the authority to control the opening or closing of the communication link between the two lower data center nodes, and the parent node stores a link status configuration table that represents the connection status of each communication link, and each lower data center node obtains the connection status between each communication link according to the link status configuration table. If so, the relay node will send the source data to the target data center node; When the communication link between the source data center node and the target data center node is unobstructed, the source data center node divides the source data into two data blocks according to a preset ratio, and sends the two data blocks to the target data center node through a direct communication link and a relay communication link, respectively; the preset ratio is determined according to actual needs.
2. The method according to claim 1, characterized in that, The relay node sends the source data to the target data center node, including: Detect whether the data formats of the source data center node and the target data center node are the same; If not, the relay node performs format conversion on the source data according to the data conversion rules associated with the target data center node, and sends the converted source data to the target data center node.
3. The method according to claim 1 or 2, characterized in that, Also includes: The relay node synchronizes link status information, topology information, and address information of the lower-level nodes to all lower-level nodes.
4. The method according to claim 3, characterized in that, Also includes: If the source data transmission fails, the source data shall be retransmitted. If the number of retransmissions reaches the preset number, data retransmission will stop, and a transmission failure message carrying the reason for the failure will be returned to the source data center node.
5. A data transmission device based on a multi-data center architecture, characterized in that, The device is applied to a relay node and includes: A receiving unit is configured to receive a data transmission message from a source data center node when the communication link between the source data center node and the target data center node is not working properly; wherein the data transmission message includes a message header and source data, and the message header includes the address information of the source data center node and the address information of the target data center node; The detection unit is used to detect whether the upper-level node of the source data center node and the target data center node is the relay node based on the topology information; wherein, the upper-level node has the authority to control the opening or closing of the communication link between the two lower-level data center nodes, and the upper-level node stores a link status configuration table representing the on / off status of each communication link, and each lower-level data center node obtains the on / off status of each communication link according to the link status configuration table. The sending unit is configured to send the source data to the target data center node if the condition is met; when the communication link between the source data center node and the target data center node is unobstructed, the source data center node divides the source data into two data blocks according to a preset ratio, and sends the two data blocks to the target data center node respectively through a direct communication link and a relay communication link; the preset ratio is determined according to actual needs.
6. A computer storage medium, characterized in that, The computer storage medium stores multiple instructions, which are loaded by a processor and executed according to any one of claims 1 to 4.
7. A computer device, characterized in that, include: A processor and a memory; wherein the memory stores a computer program, which is loaded by the processor and executed according to any one of claims 1 to 4.
8. A data transmission system, characterized in that, include: Source data center node, relay node, and target data center node; The source data center node, the relay node, and the target data center node are interconnected in pairs; The source data center node is used to display a form filling page through a display unit, whereby a user inputs field values of a form field on the form filling page using an input device, generates source data based on the user-input field values, selects at least one target data center node from multiple candidate data center nodes based on the form filling page, generates a data transmission message based on the source data and the address information of the at least one target data center node, and detects whether the communication link with the target data center node is unobstructed. If not, the data transmission message is sent to the relay node. The relay node is used to receive data transmission messages from the source data center node. The data transmission message includes a message header and source data. The message header includes the address information of the source data center node and the address information of the target data center node. Based on the topology information, it detects whether the parent node of the source data center node and the target data center node is the relay node. If so, it sends the source data to the target data center node. The parent node has the authority to control the opening or closing of communication links between two lower-level data center nodes. The parent node stores a link status configuration table representing the connectivity status of each communication link. Each lower-level data center node obtains the connectivity status of each communication link based on this link status configuration table. When the communication link between the source data center node and the target data center node is active, the source data center node divides the source data into two data blocks according to a preset ratio and sends the two data blocks to the target data center node via a direct communication link and a relay communication link, respectively. The preset ratio is determined according to actual needs. The target data center node is used to receive source data from the relay node.
9. The system according to claim 8, characterized in that, The detection of whether the communication link between the target data center node and the target data center node is unobstructed includes: The link status configuration in the central node indicates whether the communication link between the source data center node and the target data center node is unobstructed.
Citation Information
Patent Citations
Routing method and routing system
CN108989220A
