Data transmission switching method, terminal device and computer readable storage medium
By detecting the data transmission status and switching the virtual address in the global load balancing device, the problem of data transmission interruption caused by the disaster recovery system entrance failure is solved, and the timely switching of the data transmission path and the continuity of business data are achieved.
Patent Information
- Application Number
- CN202211194637.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-09-27
AI Technical Summary
The existing disaster recovery system can easily cause data transmission interruption when the entrance fails, and the data transmission path cannot be switched in time, resulting in the inability to transfer business data.
By determining the first global load balancing device in the global load balancing device, deploying the virtual address, and obtaining the data transmission status signal, if an abnormal signal is detected, the virtual address is transferred to the second global load balancing device according to the preset switching binding mechanism. , ensuring that data transfer continues.
It realizes timely switching of data transmission paths when data transmission is abnormal, avoiding comprehensive interruptions in the data transmission process and ensuring the continuity of business data.
Smart Images

Figure CN115514767B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a data transmission switching method, terminal equipment and computer-readable storage medium. Background Art
[0002] With the development of the Internet industry, combining two or more IT systems with the same functions to form a disaster recovery system to prevent the data transmission process from being interrupted due to accidents has become a major direction of industry development.
[0003] The current disaster recovery system mainly avoids interruptions in IT system data transmission due to unexpected situations by monitoring the health status and switching functions of the IT systems contained in the system. However, since the main method of Internet data transmission is to send the received data to the local load balancing device or proxy device according to the public domain name or IP address, so that the data can interact with the locally deployed software platform, when the entrance of the disaster recovery system fails, it is easy to cause the entire disaster recovery system to be affected and the business data cannot be transferred. Summary of the invention
[0004] The embodiments of the present invention provide a data transmission switching method, a terminal device and a computer-readable storage medium, aiming to achieve timely switching of the data transmission path when an abnormality occurs in the data transmission, thereby avoiding the situation where the data transmission process is completely interrupted due to the abnormality.
[0005] The present invention provides a data transmission switching method, which is applied to a terminal device equipped with multiple global load balancing devices. The data transmission switching method comprises the following steps:
[0006] Determine a first global load balancing device among the global load balancing devices, and deploy a preset virtual address on the first global load balancing device;
[0007] Acquire a data transmission status signal through the first global load balancing device, and determine whether the data transmission status signal is an abnormal signal, wherein the data transmission status signal is generated when the terminal device performs data transmission work;
[0008] If yes, determine the second global load balancing device according to the preset switching binding mechanism, and transfer the virtual address from the first global load balancing device to the second global load balancing device;
[0009] The data transmission work continues to be performed through the second global load balancing device.
[0010] Furthermore, the step of obtaining the data transmission status signal through the first global load balancing device and determining whether the data transmission status signal is an abnormal signal includes:
[0011] Obtaining a global working state signal of the first global load balancing device, and determining whether the global working state signal is an abnormal global working signal;
[0012] If it is determined that the global working state signal is the abnormal global working signal, determining that the data transmission state signal is an abnormal signal;
[0013] If not, it is determined that the data transmission status signal is a normal signal.
[0014] Furthermore, the step of obtaining the data transmission status signal through the first global load balancing device and determining whether the data transmission status signal is an abnormal signal further includes:
[0015] Acquire, through the first global load balancing device, a local working state signal of a local load balancing device connected to the first global load balancing device, and determine whether the local working state signal is an abnormal local working signal;
[0016] If it is determined that the local working state signal is the abnormal local working signal, determining that the data transmission state signal is the abnormal signal;
[0017] If it is determined that the local working status signal is not the abnormal local working signal, the data transmission status signal is determined to be the normal signal.
[0018] Furthermore, the step of obtaining the data transmission status signal through the first global load balancing device and determining whether the data transmission status signal is an abnormal signal further includes:
[0019] Acquire, through the first global load balancing device, a server working status signal of a local server connected to the local load balancing device, and determine whether the server working status signal is an abnormal server working signal;
[0020] If it is determined that the server working state signal is the abnormal server working signal, determining that the data transmission state signal is the abnormal signal;
[0021] If it is determined that the server working status signal is not the abnormal server working signal, the data transmission status signal is determined to be the normal signal.
[0022] Furthermore, the step of obtaining the data transmission status signal through the first global load balancing device and determining whether the data transmission status signal is an abnormal signal further includes:
[0023] Acquire, through the first global load balancing device, a service data status signal of each service data flow corresponding to each of the local servers, and determine whether each of the service data status signals contains an abnormal service data status signal;
[0024] If it is determined that each of the service data status signals includes the abnormal service data status signal, determining that the data transmission status signal is the abnormal signal;
[0025] If it is determined that the service data status signal does not include the abnormal service data status signal, the data transmission status signal is determined to be the normal signal.
[0026] Furthermore, the method further comprises:
[0027] Obtaining the server working status signal corresponding to each of the local servers through the first global load balancing device, and determining whether each of the server working status signals includes an abnormal server working status signal;
[0028] If it is determined that the abnormal server working status signal is included in each of the server working status signals, a target abnormal server is determined according to the abnormal server working status signal, and the working status information of the target abnormal server is changed.
[0029] Furthermore, the step of determining the second global load balancing device according to the preset switching binding mechanism includes:
[0030] Determining a target global load balancing device in each of the global load balancing devices except the first global load balancing device according to a preset switching binding mechanism;
[0031] Determine the target global load balancing device as the second global load balancing device
[0032] Furthermore, the method further comprises:
[0033] Read the preset data backup mechanism;
[0034] The global load balancing devices are controlled to perform data backup operations according to the data backup mechanism.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a data transmission switching program stored in the memory and executable on the processor, and the data transmission switching program, when executed by the processor, implements the steps of the data transmission switching method as described above.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a data transmission switching program is stored, and when the data transmission switching program is executed by a processor, the steps of the data transmission switching method as described above are implemented.
[0037] The data transmission switching method, terminal device and computer-readable storage medium provided in the embodiments of the present invention are applied to a terminal device configured with multiple global load balancing devices, by determining a first global load balancing device in each of the global load balancing devices, and deploying a preset virtual address on the first global load balancing device; obtaining a data transmission status signal through the first global load balancing device, and judging whether the data transmission status signal is an abnormal signal, wherein the data transmission status signal is generated by the terminal device when performing data transmission work; if so, determining a second global load balancing device according to a preset switching binding mechanism, and transferring the virtual address from the first global load balancing device to the second global load balancing device; and continuing to perform data transmission work through the second global load balancing device.
[0038] In this embodiment, during operation, the terminal device first determines a first global load balancing device for data transmission among the global load balancing devices configured internally, and deploys the virtual address specified by the developer on the first global load balancing device. After that, the terminal device calls the first global load device to detect a data transmission status signal generated by the terminal device during the data transmission process, and determines whether the data transmission status signal is an abnormal signal. When the terminal device determines that the data transmission status signal is the abnormal signal, the terminal device reads the second global load balancing device determined in other global load balancing devices except the first global load balancing device according to the switching binding mechanism preset by the developer, and transfers the virtual address to the second global load balancing device. Finally, the terminal device continues to perform data transmission through the second global load balancing device.
[0039] In this way, the present invention adopts a method of deploying a virtual address on a target global load balancing device, and obtaining a data transmission status signal during data transmission, and transferring the virtual address to other global load balancing devices when the data transmission status signal is detected to be an abnormal signal. That is, when a data transmission abnormality is detected, the virtual address is deployed to the remaining global load balancing devices, so that the remaining global load balancing devices continue to perform data transmission work, thereby achieving the technical effect of timely switching the data transmission path when an abnormality occurs in data transmission, thereby avoiding the data transmission process from facing a complete interruption due to the occurrence of an abnormality. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a schematic diagram of the structure of a terminal device in a hardware operating environment involved in an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of a flow chart of a first embodiment of a data transmission switching method of the present invention;
[0042] Figure 3 A schematic flow chart of a second embodiment of a data transmission switching method according to the present invention;
[0043] Figure 4 A schematic diagram of a flow chart of a third embodiment of a data transmission switching method of the present invention;
[0044] Figure 5 A schematic diagram of a software service platform involved in an embodiment of a data transmission switching method of the present invention;
[0045] Figure 6 A schematic diagram of migration of a first virtual IP address involved in an embodiment of a data transmission switching method of the present invention;
[0046] Figure 7 A schematic diagram of the migration of a second virtual IP address involved in an embodiment of a data transmission switching method of the present invention;
[0047] Figure 8 A schematic diagram of local server failure processing involved in an embodiment of a data transmission switching method of the present invention;
[0048] Fig. 9 This is a schematic diagram of the migration of a third virtual IP address involved in an embodiment of a data transmission switching method of the present invention.
[0049] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0051] Please refer to Figure 1 , Figure 1 A schematic diagram of the terminal device structure of the hardware operating environment involved in the embodiment of the present invention.
[0052] The terminal device of the embodiment of the present invention can be a terminal device configured with multiple global load balancing devices. Of course, the terminal device can also be other fixed terminal devices such as PC (Personal Computer), server, or mobile terminal devices such as mobile phones and tablets.
[0053] like Figure 1 As shown, the terminal device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0054] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the terminal device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0055] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a data transmission switching program.
[0056] exist Figure 1In the terminal device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the terminal device of the present invention can be set in the terminal device, and the terminal device calls the data transmission switching program stored in the memory 1005 through the processor 1001, and executes the data transmission switching method provided in the embodiment of the present invention.
[0057] Based on the above terminal equipment, various embodiments of the data transmission switching method of the present invention are provided.
[0058] Please refer to Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a data transmission switching method according to the present invention.
[0059] It should be understood that although a logical sequence is shown in the flowchart, in some cases, the data transmission switching method of the present invention may also execute the steps shown or described in a sequence different from that shown here.
[0060] In this embodiment, the data transmission switching method of the present invention may include the following steps:
[0061] Step S10: determining a first global load balancing device among the global load balancing devices, and deploying a preset virtual address on the first global load balancing device;
[0062] In this embodiment, the terminal device selects a global load balancing device from multiple global load balancing devices deployed by the developer in the terminal device, and sets the global load working state of the global load balancing device to an active state. The terminal device then determines the global load balancing device as a first global load balancing device. At the same time, the terminal device reads the storage module to obtain a virtual address pre-stored by the developer, and deploys the virtual address on the first global load balancing device.
[0063] Exemplarily, for example, the developer first deploys multiple global load balancing devices in the software business platform. After that, the software business platform determines a global load balancing device specified by the developer among the global load balancing devices, and adjusts the global load working state corresponding to the global load balancing device to an active state. The software business platform then determines the global load balancing device as the first load balancing device. At the same time, the software business platform reads the storage module to obtain the virtual IP address pre-stored by the developer, and deploys the virtual IP address to the first load balancing device.
[0064] It should be noted that, in this embodiment, when the above-mentioned software service platform is performing data transmission, it uses the above-mentioned virtual IP address to provide external services, that is, the external Internet locates the above-mentioned first global load balancing device through the virtual IP address, thereby performing data transmission operations through the first data link corresponding to the first global load balancing device.
[0065] Step S20: obtaining a data transmission status signal through the first global load balancing device, and determining whether the data transmission status signal is an abnormal signal, wherein the data transmission status signal is generated when the terminal device performs data transmission work;
[0066] In this embodiment, the terminal device receives the target data stream sent by the external Internet, and sends the target data stream to the above-mentioned first global load balancing device. At the same time, the terminal device calls the first global load balancing device to detect the data transmission status signal generated by the terminal device when performing data transmission. The terminal device inputs the data transmission status signal to the signal comparison device configured in the terminal device, and the signal comparison device determines whether the data transmission status signal is an abnormal signal.
[0067] Exemplarily, for example, when the software service platform receives the above-mentioned target data stream sent by the above-mentioned external Internet, the software service platform sends the target data stream to the above-mentioned first global load balancing device through the above-mentioned first data link, and the software service platform calls the first global load balancing device through the internally configured main control chip to detect the data transmission status signal generated by the software service platform when performing data transmission. At the same time, the software service platform reads the above-mentioned storage module to obtain the various standard signals pre-stored by the developer, and inputs the data transmission status signal and each of the standard signals into the above-mentioned signal comparison device, and the signal comparison device obtains a comparison result based on the data transmission status signal and each of the standard signals. Afterwards, the software service platform determines whether the data transmission status signal is an abnormal signal based on the comparison result.
[0068] Furthermore, in a feasible embodiment, the above step S20 may specifically include:
[0069] Step S201: obtaining a global working state signal of the first global load balancing device, and determining whether the global working state signal is an abnormal global working state signal;
[0070] In this embodiment, the terminal device calls the above-mentioned first global load balancing device through the above-mentioned main control chip to detect the global working status signal generated by the first global load balancing device when receiving the above-mentioned target data stream. After that, the terminal device reads the above-mentioned storage module to obtain the standard global working status signal pre-stored by the above-mentioned developer, and determines whether the global working status signal is an abnormal global working status signal based on the standard global working status signal.
[0071] Step S202: if it is determined that the global working state signal is the abnormal global working signal, then determining that the data transmission state signal is an abnormal signal;
[0072] In this embodiment, if the terminal device determines that the global working status signal is inconsistent with the standard global working status signal, the terminal device determines that the global working status signal is the abnormal global working signal, and further determines that the data transmission status signal is an abnormal signal.
[0073] Step S203: If not, determining that the data transmission status signal is a normal signal;
[0074] In this embodiment, if the terminal device determines that the global working status signal is consistent with the standard global working status signal, the terminal device determines that the global working status signal is not the abnormal global working signal, and further determines that the data transmission status signal is a normal signal.
[0075] For example, see Figure 5 and Figure 6 ,in, Figure 5 Schematic diagram of a software service platform involved in an embodiment of a data transmission switching method of the present invention, Figure 6The present invention is a schematic diagram of the migration of a first virtual IP address involved in an embodiment of a switching method for data transmission of the present invention. The software service platform calls the first global load balancing device through the main control chip to detect the global working state signal generated by the first global load balancing device when receiving the target data stream, and determines the global working state signal as the data transmission state signal. After that, the software service platform reads the storage module to obtain the standard global working state signal pre-stored by the developer, and compares the global working state signal with the standard global working state signal to obtain a comparison result. When the software service platform determines that the comparison result is that the global working state signal is inconsistent with the standard global working state signal, the software service platform determines that the global working state signal is the abnormal global working signal, and determines that the first global load balancing device fails, and further determines that the data transmission state signal is an abnormal signal. When the software service platform determines that the comparison result is that the global working state signal is consistent with the standard global working state signal, the software service platform determines that the global working state signal is not the abnormal global working signal, and further determines that the data transmission state signal is a normal signal.
[0076] Furthermore, in a feasible embodiment, the above step S20 may further include:
[0077] Step S204: obtaining, through the first global load balancing device, a local working state signal of a local load balancing device connected to the first global load balancing device, and determining whether the local working state signal is an abnormal local working signal;
[0078] In this embodiment, the terminal device calls the above-mentioned first global load balancing device through the above-mentioned main control chip to detect the local load balancing device connected to the first global load balancing device, and obtains the local working status signal generated by the local load balancing device when receiving the above-mentioned target data stream. After that, the terminal device reads the above-mentioned storage module to obtain the standard local working status signal pre-stored by the above-mentioned developer, and determines whether the local working status signal is an abnormal local working signal based on the standard local working status signal.
[0079] Step S205: if it is determined that the local working state signal is the abnormal local working signal, then determining that the data transmission state signal is the abnormal signal;
[0080] In this embodiment, if the terminal device determines that the local working status signal is inconsistent with the standard local working status signal, the terminal device determines that the local working status signal is the abnormal local working signal, and further determines that the data transmission status signal is an abnormal signal.
[0081] Step S206: If it is determined that the local working state signal is not the abnormal local working signal, determining that the data transmission state signal is the normal signal;
[0082] In this embodiment, if the terminal device determines that the above-mentioned local working status signal is consistent with the above-mentioned standard local working status signal, the terminal device determines that the local working status signal is not the above-mentioned abnormal local working signal, and then determines that the above-mentioned data transmission status signal is a normal signal.
[0083] For example, see Figure 7 , Figure 7 The present invention is a schematic diagram of the migration of the second virtual IP address involved in an embodiment of the switching method for data transmission of the present invention. The software service platform calls the first global load balancing device through the main control chip to detect the local load balancing device connected to the first global load balancing device, and obtains the local working state signal generated by the local load balancing device when receiving the target data stream. The software service platform determines the local working state signal as the data transmission state signal. After that, the software service platform reads the storage module to obtain the standard local working state signal pre-stored by the developer, and compares the local working state signal with the standard local working state signal to obtain a comparison result. When the software service platform determines that the comparison result is that the local working state signal is inconsistent with the standard local working state signal, the software service platform determines that the local working state signal is the abnormal local working signal, and determines that the local load balancing device fails, and further determines that the data transmission state signal is an abnormal signal. When the software service platform determines that the comparison result is that the local working state signal is consistent with the standard local working state signal, the software service platform determines that the local working state signal is not the abnormal local working signal, and further determines that the data transmission state signal is a normal signal.
[0084] Furthermore, in a feasible embodiment, the above step S20 may further include:
[0085] Step S207: obtaining a server working status signal of a local server connected to the local load balancing device through the first global load balancing device, and determining whether the server working status signal is an abnormal server working signal;
[0086] In this embodiment, the terminal device calls the above-mentioned first global load balancing device through the above-mentioned main control chip to detect the local server connected to the above-mentioned local load balancing device, and obtains the server working status signal generated by the local server when receiving the above-mentioned target data stream. After that, the terminal device reads the above-mentioned storage module to obtain the standard server working status signal pre-stored by the above-mentioned developer, and determines whether the server working status signal is an abnormal server working signal based on the standard server working status signal.
[0087] Step S208: if it is determined that the server working state signal is the abnormal server working signal, then determining that the data transmission state signal is the abnormal signal;
[0088] In this embodiment, if the terminal device determines that the server working status signal is inconsistent with the standard server working status signal, the terminal device determines that the server working status signal is the abnormal server working signal, and further determines that the data transmission status signal is an abnormal signal.
[0089] Step S209: if it is determined that the server working state signal is not the abnormal server working signal, determining that the data transmission state signal is the normal signal;
[0090] In this embodiment, if the terminal device determines that the above-mentioned server working status signal is consistent with the above-mentioned standard server working status signal, the terminal device judges that the server working status signal is not the above-mentioned abnormal server working signal, and then determines that the above-mentioned data transmission status signal is a normal signal.
[0091] Exemplarily, for example, the software service platform calls the first global load balancing device through the main control chip to detect the local server connected to the local load balancing device, and obtains the server working status signal generated by the local server when receiving the target data stream. The software service platform determines the server working status signal as the data transmission status signal. After that, the software service platform reads the storage module to obtain the standard server working status signal pre-stored by the developer, and compares the server working status signal with the standard server working status signal to obtain a comparison result. When the software service platform determines that the comparison result is that the server working status signal is inconsistent with the standard server working status signal, the software service platform determines that the server working status signal is the abnormal server working signal, and then determines that the data transmission status signal is an abnormal signal. When the software service platform determines that the comparison result is that the server working status signal is consistent with the standard server working status signal, the software service platform determines that the server working status signal is not the abnormal server working signal, and then determines that the data transmission status signal is a normal signal.
[0092] Furthermore, in a feasible embodiment, the above step S20 may further include:
[0093] Step S210: obtaining, through the first global load balancing device, a service data status signal of each service data flow corresponding to each of the local servers, and determining whether each of the service data status signals contains an abnormal service data status signal;
[0094] Step S211: if it is determined that each of the service data status signals includes the abnormal service data status signal, determining that the data transmission status signal is the abnormal signal;
[0095] Step S212: if it is determined that the service data status signals do not include the abnormal service data status signal, determining that the data transmission status signal is the normal signal;
[0096] Exemplarily, for example, the software service platform calls the first global load balancing device through the main control chip to detect each of the local servers to obtain the business data status signal of each business data flow corresponding to each of the local servers, and determines each of the business data status signals as the data transmission status signal. After that, the software service platform checks each of the business data status signals and determines whether each of the business data status signals contains an abnormal business data status signal. When the software service platform determines that each of the business data status signals contains the abnormal business data status signal, the software service platform determines that the data transmission status signal is an abnormal signal. When the software service platform determines that each of the business data status signals does not contain the abnormal business data status signal, the software service platform determines that the data transmission status signal is a normal signal.
[0097] Please note that, please refer to Fig. 9 , Fig. 9 This is a schematic diagram of the migration of the third virtual IP address involved in an embodiment of the switching method for data transmission of the present invention. In this embodiment, if the software service platform determines that there is an abnormal business data status signal in each of the above-mentioned business data flows, it can also directly migrate the above-mentioned virtual IP address from the above-mentioned first global load balancing device to the above-mentioned second global load balancing device, so that when the business data is abnormal, the remaining global load balancing devices continue to perform data transmission work, that is, the data transmission channel is switched when the business data is abnormal.
[0098] Step S30: If yes, determine the second global load balancing device according to the preset switching binding mechanism, and transfer the virtual address from the first global load balancing device to the second global load balancing device;
[0099] In this embodiment, if the terminal device determines that the above-mentioned data transmission status signal is the above-mentioned abnormal signal, the terminal device reads the above-mentioned storage module to obtain the switching binding mechanism pre-stored by the developer, and determines the second global load balancing device in each of the above-mentioned global load balancing devices according to the switching binding mechanism. After that, the terminal device migrates the above-mentioned virtual address from the first global load balancing device to the second global load balancing device.
[0100] For example, Figure 6 , Figure 7 and Fig. 9As shown, if the software service platform determines that the above-mentioned data transmission status signal is the above-mentioned abnormal signal, the software service platform reads the above-mentioned storage module to obtain the switching binding mechanism pre-stored by the developer, and changes the global working state of the first global load balancing device from the above-mentioned active state to the preset standby state according to the switching binding mechanism. At the same time, the software service platform determines the target load balancing device in each of the above-mentioned global load balancing devices according to the switching binding mechanism, and the software service platform changes the global working state corresponding to the target load balancing device to the active state, and determines the target load balancing device as the second global load balancing device. After that, the software service platform migrates the above-mentioned virtual IP address from the first global load device to the second global load device.
[0101] Furthermore, in a feasible embodiment, the above step S30 may specifically include:
[0102] Step S301: determining a target global load balancing device in each of the global load balancing devices except the first global load balancing device according to a preset switching binding mechanism;
[0103] Step S302: determining the target global load balancing device as a second global load balancing device;
[0104] Exemplarily, for example, the software service platform detects the status data corresponding to each of the remaining global load balancing devices except the above-mentioned first global load balancing device according to the above-mentioned switching binding mechanism, and determines the global load balancing device that can be used for data transmission based on each of the status data. After that, the software service platform determines the number of global loads specified by the switching binding mechanism. When the number of global loads is 1, the software service platform randomly determines a target global load balancing device among the global load balancing devices that can be used for data transmission, and determines the target global load balancing device as the above-mentioned second global load balancing device.
[0105] Step S40: continue to perform data transmission work through the second global load balancing device;
[0106] Exemplarily, for example, the terminal device sends the target data stream sent by the external Internet to the second global load balancing device, and the second global load balancing device continues to perform the data transmission work after receiving the target data stream.
[0107] In this embodiment, first, the terminal device selects a global load balancing device from a plurality of global load balancing devices deployed by the developer in the terminal device, and sets the global load working state of the global load balancing device to an active state. The terminal device then determines the global load balancing device as a first global load balancing device. At the same time, the terminal device reads a storage module to obtain a virtual address pre-stored by the developer, and deploys the virtual address on the first global load balancing device. Then, the terminal device receives a target data stream sent by the external Internet, and sends the target data stream to the first global load balancing device. At the same time, the terminal device calls the first global load balancing device to detect a data transmission status signal generated by the terminal device when performing data transmission. The terminal device sends the data to the first global load balancing device. The transmission status signal is input into a signal comparison device configured in the terminal device, and the signal comparison device determines whether the data transmission status signal is an abnormal signal. Then, if the terminal device determines that the above-mentioned data transmission status signal is the above-mentioned abnormal signal, the terminal device reads the above-mentioned storage module to obtain the switching binding mechanism pre-stored by the developer, and determines the second global load balancing device in each of the above-mentioned global load balancing devices according to the switching binding mechanism. After that, the terminal device migrates the above-mentioned virtual address from the first global load balancing device to the second global load balancing device. Finally, the terminal device sends the above-mentioned target data stream sent by the above-mentioned external Internet to the above-mentioned second global load balancing device, and the second global load balancing device continues to perform the above-mentioned data transmission work after receiving the target data stream.
[0108] In this way, the present invention adopts a method of deploying a virtual address on a target global load balancing device, and obtaining a data transmission status signal during data transmission, and transferring the virtual address to other global load balancing devices when the data transmission status signal is detected to be an abnormal signal. That is, when a data transmission abnormality is detected, the virtual address is deployed to the remaining global load balancing devices, so that the remaining global load balancing devices continue to perform data transmission work, thereby achieving the technical effect of timely switching the data transmission path when an abnormality occurs in data transmission, thereby avoiding the data transmission process from facing a complete interruption due to the occurrence of an abnormality.
[0109] Further, based on the first embodiment of the switching method for data transmission of the present invention, a second embodiment of the switching method for data transmission of the present invention is proposed. Figure 3 , Figure 3 This is a flow chart of a second embodiment of a method for switching data transmission according to the present invention. The method for switching data transmission according to the present invention may further include:
[0110] Step A10: obtaining the server working status signal corresponding to each of the local servers through the first global load balancing device, and determining whether each of the server working status signals includes an abnormal server working status signal;
[0111] In this embodiment, the terminal device calls the above-mentioned first global load balancing device through the above-mentioned main control chip to detect multiple local servers connected to the above-mentioned local load balancing device, and obtains the server working status signal generated by each local server when receiving the above-mentioned target data stream. After that, the terminal device reads the above-mentioned storage module to obtain the standard server working status signal pre-stored by the above-mentioned developer, and determines whether each server working status signal contains an abnormal server working signal based on the standard server working status signal.
[0112] Step A20: if it is determined that the working status signal of each server includes the working status signal of the abnormal server, a target abnormal server is determined according to the working status signal of the abnormal server, and the working status information of the target abnormal server is changed;
[0113] In this embodiment, if the terminal device determines that there is an abnormal server signal in each of the above-mentioned server working status signals that is inconsistent with the above-mentioned standard server working status signal, the terminal device determines that each of the server working status signals contains the above-mentioned abnormal server working status signal, and the terminal device determines the target abnormal server corresponding to the abnormal server working status signal based on the abnormal server working status signal, and the terminal device modifies the working status information of the target abnormal server to an idle state according to the above-mentioned switching binding mechanism.
[0114] For example, see Figure 8 , Figure 8The present invention is a schematic diagram of local server fault processing involved in an embodiment of the switching method for data transmission of the present invention. The software service platform calls the first global load balancing device through the main control chip to detect multiple local servers connected to the local load balancing device, and obtains the server working status signal generated by each local server when receiving the target data stream. After that, the software service platform reads the storage module to obtain the standard server working status signal pre-stored by the developer, and compares each server working status signal with the standard server working status signal to obtain each comparison result. When the software service platform determines that there is an abnormal result in which the server working status signal is inconsistent with the standard server working status signal in each comparison result, the software service platform determines that each server working status signal contains the abnormal server working status signal. The software service platform further determines the target abnormal server in each local server according to the abnormal server working status signal, and the software service platform modifies the working status information of the target abnormal server from the active state to the standby state according to the switching binding mechanism.
[0115] It should be noted that, in this embodiment, after modifying the working status information of the above-mentioned target abnormal server, the software service platform can redistribute the target data flow traffic to the remaining local servers evenly through the above-mentioned local load balancing device, thereby continuing to complete the data transmission work.
[0116] In this embodiment, the terminal device calls the above-mentioned first global load balancing device through the above-mentioned main control chip to detect multiple local servers connected to the above-mentioned local load balancing device, and obtains the server working status signal generated by each local server when receiving the above-mentioned target data stream. After that, the terminal device reads the above-mentioned storage module to obtain the standard server working status signal pre-stored by the above-mentioned developer, and judges whether each of the server working status signals contains an abnormal server working signal according to the standard server working status signal. Then, if the terminal device judges that there is an abnormal server signal inconsistent with the above-mentioned standard server working status signal in each of the above-mentioned server working status signals, the terminal device determines that each of the server working status signals contains the above-mentioned abnormal server working status signal, and the terminal device determines the target abnormal server corresponding to the abnormal server working status signal according to the abnormal server working status signal, and the terminal device modifies the working status information of the target abnormal server to an idle state according to the above-mentioned switching binding mechanism.
[0117] In this way, the present invention adopts a method of detecting each local server and determining the abnormal server contained in each local server based on the detection result, thereby changing the working state of the abnormal server. That is, when it is detected that an abnormality occurs in the target server for the user to transmit data, it switches to other servers for data transmission, thereby achieving the purpose of timely switching the data transmission path when an abnormality occurs in the data transmission.
[0118] Further, based on the second embodiment of the switching method for data transmission of the present invention, a third embodiment of the switching method for data transmission of the present invention is proposed here. Figure 4 4 is a flow chart of a third embodiment of a data transmission switching method according to the present invention. The data transmission switching method according to the present invention may further include:
[0119] Step B10: Read the preset data backup mechanism;
[0120] In this embodiment, the terminal device first reads the storage module to obtain the data backup mechanism pre-stored by the developer.
[0121] Step B20: controlling each of the global load balancing devices to perform a data backup operation according to the data backup mechanism;
[0122] In this embodiment, the terminal device determines the target local server for receiving the above-mentioned target data stream among the above-mentioned local servers connected to the above-mentioned first global load balancing device according to the above-mentioned data backup mechanism, and copies the target data already stored in the target local server. After that, the terminal device sends the backed-up target data to the remaining global load balancing devices in the terminal device respectively, and the global load balancing devices complete the backup work of each target data.
[0123] Exemplarily, for example, the software business platform first reads the above-mentioned storage module to obtain the data backup mechanism pre-stored by the developer, and determines the first local server for receiving the above-mentioned target data stream among the local servers connected to the above-mentioned first global load balancing device according to the data backup mechanism. After that, the software business platform reads the target data that the first local server has received, and copies the target data. After that, the software business platform sends the copied target data to the remaining global load balancing devices through the data links corresponding to the other global load balancing devices, so that the global load balancing devices can send the target data to the other local servers connected to them for backup.
[0124] In this embodiment, the terminal device first reads the above-mentioned storage module to obtain the data backup mechanism pre-stored by the developer. After that, the terminal device determines the target local server for receiving the above-mentioned target data stream among the above-mentioned local servers connected to the above-mentioned first global load balancing device according to the above-mentioned data backup mechanism, and copies the target data already stored in the target local server. After that, the terminal device sends the backed-up target data to the remaining global load balancing devices in the terminal device respectively, and each global load balancing device completes the backup work of each target data.
[0125] In this way, the present invention adopts a method of backing up the data that has been received by the local server according to the preset data backup mechanism, and sending the backed-up data to other global load balancing devices. That is, by going to the server corresponding to the other global load balancing device to back up the data that has been transmitted, the purpose of preventing data loss caused by channel switching during data transmission is achieved.
[0126] In addition, the present invention also provides a terminal device having a data transmission switching program that can be run on a processor, and when the terminal device executes the data transmission switching program, the steps of the data transmission switching method described in any of the above embodiments are implemented.
[0127] The specific embodiments of the terminal device of the present invention are basically the same as the embodiments of the above-mentioned data transmission switching method, and will not be described in detail here.
[0128] In addition, the present invention also provides a computer-readable storage medium, which stores a data transmission switching program. When the data transmission switching program is executed by a processor, the steps of the data transmission switching method described in any of the above embodiments are implemented.
[0129] The specific embodiments of the computer-readable storage medium of the present invention are basically the same as the embodiments of the above-mentioned data transmission switching method, and will not be described in detail here.
[0130] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0131] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0132] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned implementation methods can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, including a number of instructions for enabling a terminal device (the terminal device of the embodiment of the present invention can be a terminal device equipped with multiple global load balancing devices, and of course, the terminal device can also be a PC (Personal Computer, personal computer), server and other fixed terminal devices or mobile terminal devices such as mobile phones and tablets, etc.) to execute the methods described in each embodiment of the present invention.
[0133] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A data transmission switching method, characterized in that: The method is applied to a terminal device equipped with multiple global load balancing devices, and the data transmission switching method comprises the following steps: Determine a first global load balancing device among the global load balancing devices, and deploy a preset virtual address on the first global load balancing device; Determine a target local server for receiving the data stream among the local servers connected to the first global load balancing device, and read each target data received by the target local server; Copying each of the target data, and sending the copied target data to other global load balancing devices, so that each of the other global load balancing devices can back up the copied target data through their corresponding local servers; Acquire a data transmission status signal through the first global load balancing device, and determine whether the data transmission status signal is an abnormal signal, wherein the data transmission status signal is generated when the terminal device performs data transmission work; If yes, determine the second global load balancing device according to the preset switching binding mechanism, and transfer the virtual address from the first global load balancing device to the second global load balancing device; The data transmission work continues to be performed through the second global load balancing device.
2. The data transmission switching method according to claim 1, characterized in that: The step of obtaining the data transmission status signal through the first global load balancing device and determining whether the data transmission status signal is an abnormal signal includes: Obtaining a global working state signal of the first global load balancing device, and determining whether the global working state signal is an abnormal global working signal; If it is determined that the global working state signal is the abnormal global working signal, determining that the data transmission state signal is an abnormal signal; If not, it is determined that the data transmission status signal is a normal signal.
3. The data transmission switching method according to claim 2, characterized in that: The step of obtaining the data transmission status signal through the first global load balancing device and determining whether the data transmission status signal is an abnormal signal further includes: Acquire, through the first global load balancing device, a local working state signal of a local load balancing device connected to the first global load balancing device, and determine whether the local working state signal is an abnormal local working signal; If it is determined that the local working state signal is the abnormal local working signal, determining that the data transmission state signal is the abnormal signal; If it is determined that the local working status signal is not the abnormal local working signal, the data transmission status signal is determined to be the normal signal.
4. The data transmission switching method according to claim 3, characterized in that: The step of obtaining the data transmission status signal through the first global load balancing device and determining whether the data transmission status signal is an abnormal signal further includes: Acquire, through the first global load balancing device, a server working status signal of a local server connected to the local load balancing device, and determine whether the server working status signal is an abnormal server working signal; If it is determined that the server working state signal is the abnormal server working signal, determining that the data transmission state signal is the abnormal signal; If it is determined that the server working status signal is not the abnormal server working signal, the data transmission status signal is determined to be the normal signal.
5. The data transmission switching method according to claim 4, characterized in that: The step of obtaining the data transmission status signal through the first global load balancing device and determining whether the data transmission status signal is an abnormal signal further includes: Acquire, through the first global load balancing device, a service data status signal of each service data flow corresponding to each of the local servers, and determine whether each of the service data status signals contains an abnormal service data status signal; If it is determined that each of the service data status signals includes the abnormal service data status signal, determining that the data transmission status signal is the abnormal signal; If it is determined that the service data status signal does not include the abnormal service data status signal, the data transmission status signal is determined to be the normal signal.
6. The data transmission switching method according to claim 5, characterized in that: The method further comprises: Obtaining the server working status signal corresponding to each of the local servers through the first global load balancing device, and determining whether each of the server working status signals includes an abnormal server working status signal; If it is determined that the abnormal server working status signal is included in each of the server working status signals, a target abnormal server is determined according to the abnormal server working status signal, and the working status information of the target abnormal server is changed.
7. The data transmission switching method according to claim 1, characterized in that: The step of determining the second global load balancing device according to the preset switching binding mechanism includes: Determine a target global load balancing device in each of the global load balancing devices except the first global load balancing device according to a preset switching binding mechanism; The target global load balancing device is determined as a second global load balancing device.
8. A terminal device, characterized in that: The terminal device includes: a memory, a processor, and a data transmission switching program stored in the memory and executable on the processor, wherein the data transmission switching program, when executed by the processor, implements the steps of the data transmission switching method as described in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data transmission switching program, and when the data transmission switching program is executed by a processor, the steps of the data transmission switching method according to any one of claims 1 to 7 are implemented.
