Methods and devices for transmitting business data, servers
By detecting a fault in the OAI architecture and establishing a bypass data transmission link using normal business modules, the transmission interruption problem caused by card loss in the OAM module and HOST end was resolved, achieving efficient business data transmission and control.
Patent Information
- Application Number
- CN202211665901.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-23
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2042-12-23
AI Technical Summary
In the existing OAI architecture, the OAM module and the HOST are prone to card drops, which can lead to interruptions in business data transmission. The restart process is time-consuming and affects computing efficiency.
When a service transmission link failure is detected, the second service module is instructed to establish a data transmission link with the processor through the message transmission link, and the normal second service module is used to help transmit data, thereby realizing the bypass transmission of service data.
It improves the efficiency of controlling business modules, ensures the continuity of server business functions, and avoids the time waste and computational interruption caused by restarts.
Smart Images

Figure CN116028279B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and more specifically, to a method and apparatus for transmitting business data, and a server. Background Technology
[0002] With the advancement of technology, the architectures of artificial intelligence and cloud services are becoming increasingly diverse. AI (Artificial Intelligence) chip computing platforms possess characteristics such as high compatibility, high scalability, high energy efficiency, and flexible deployment. They are suitable for typical AI application scenarios such as image processing, speech recognition, financial analysis, object detection, natural language processing, and intelligent recommendation. As the demand for AI computing power surges, data grows massively, and models become increasingly scalable, the AI chip industry is showing a diversified development trend. To improve the acceleration capabilities of display adapters, the OCP (Open Computer Project) has launched the OAI (Open Accelerator Infrastructure) system architecture, defining the Open Accelerator Standard (OAM, OCP Accelerator Module), which can effectively enhance the aforementioned functions.
[0003] In the existing OAI architecture, multiple OAM modules are connected to a switch, which in turn connects to a host (server) (e.g., a CPU (Central Processing Unit)). The host controls the OAM modules to meet AI computing requirements. However, in the current OAI architecture, OAM modules and the host may experience card drops, preventing the transmission of business data. In this case, a restart is necessary to reconnect the host's CPU to the OAM device. Since server restart and reconnection take a long time, this results in wasted time. Furthermore, the difficulty of disassembling and reassembling OAM modules and the time spent checking them also waste time. Sometimes, other OAM modules may even be forced to stop halfway through their calculations. If the calculation is large-scale and the link fails midway for some reason, all previous work will be wasted. Summary of the Invention
[0004] This application provides a method, apparatus, and server for transmitting business data, in order to at least solve the problem of low control efficiency of business modules in related technologies.
[0005] According to one embodiment of this application, a method for transmitting service data is provided, applied to a processor, comprising: upon detecting a fault in a first service transmission link between the processor and a first service module, determining a second service module, wherein the processor, the first service module, and the second service module are deployed on a server, and a service transmission link and a message transmission link are established between the processor and each service module, the service transmission link being used to transmit service data, the message transmission link being used to transmit message instructions, and the second service transmission link corresponding to the second service module being in a working state; transmitting a first message instruction to the first service module through the first message transmission link corresponding to the first service module, and transmitting a second message instruction to the second service module through the second message transmission link corresponding to the second service module, wherein both the first message instruction and the second message instruction are used to instruct the establishment of a data transmission link between the first service module and the second service module; and transmitting service data with the first service module through the data transmission link and the second service link.
[0006] Optionally, determining the second business module includes: selecting a third business module from multiple business modules deployed on the server, wherein the third business module is connected to the first business module via a computing power sharing link, and the third business transmission link corresponding to the third business module is in working state, the computing power sharing link is used to realize the sharing of computing power among business modules; and selecting a business module with a business volume less than the target business volume from the third business module as the second business module.
[0007] Optionally, the step of transmitting a first message instruction to the first service module through a first message transmission link corresponding to the first service module, and transmitting a second message instruction to the second service module through a second message transmission link corresponding to the second service module, includes: generating a first message instruction carrying first status information and first service module information, and generating a second message instruction carrying second status information and second service module information, wherein the first status information is used to indicate that the service transmission link between the first service module and the processor is in a fault state, the first service module information is used to indicate the second service module, the second status information is used to indicate that the service transmission link between the second service module and the processor is in a working state, and the second service module information is used to indicate the first service module; transmitting the first message instruction through the first message transmission link, and transmitting the second message instruction through the second message transmission link.
[0008] Optionally, transmitting service data between the first service module and the data transmission link and the second service transmission link includes at least one of the following: transmitting first service data to the second service module via the second service transmission link, wherein the first service data is used to instruct the second service module to transmit the first service data to the first service module via the data transmission link; receiving second service data transmitted via the second service transmission link, wherein the second service data is transmitted from the first service module to the second service module via the data transmission link, and the second service data is used to instruct the second service module to transmit the second service data to the processor.
[0009] According to another embodiment of this application, a method for transmitting business data is provided, applied to a first business module, comprising: receiving a first message instruction transmitted by a processor to the first business module through a first message transmission link corresponding to the first business module, wherein the processor, the first business module, and the second business module are deployed on a server, and a business transmission link and a message transmission link are established between the processor and each business module, the business transmission link is used to transmit business data, the message transmission link is used to transmit message instructions, the first message instruction is transmitted when the processor detects that the first business transmission link with the first business module is in a fault state and determines the second business module, the second business module's corresponding second business link is in a working state, and the first message instruction is used to instruct the establishment of a data transmission link between the first business module and the second business module; responding to the first message instruction, establishing the data transmission link with the second business module; and transmitting business data with the processor through the data transmission link and the second business link.
[0010] Optionally, the step of responding to the first message instruction and establishing the data transmission link with the second service module includes: determining the second service module from the service modules connected to the first service module via a computing power sharing link according to the first message instruction; converting the target computing power sharing link connected to the second service module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second service module and the first service module.
[0011] Optionally, determining the second service module from the service modules connected to the first service module via a computing power sharing link according to the first message instruction includes: identifying first status information carried in the first message instruction, wherein the first status information is used to indicate the working status of the service transmission link between the first service module and the processor; and determining the service module indicated by the first service module information carried in the first message instruction as the second service module when the first status information indicates that the service transmission link between the first service module and the processor is in a fault state.
[0012] Optionally, converting the target computing power sharing link connected to the second service module into the data transmission link includes: obtaining a pre-stored target data transmission protocol; converting the transmission protocol used on the target computing power sharing link into the target data transmission protocol to obtain the data transmission link.
[0013] According to another embodiment of this application, a method for transmitting business data is provided, applied to a second business module, comprising: receiving a second message instruction transmitted by a processor to the second business module through a second message transmission link corresponding to the second business module, wherein the processor, the first business module, and the second business module are deployed on a server, and a business transmission link and a message transmission link are established between the processor and each business module, the business transmission link is used to transmit business data, the message transmission link is used to transmit message instructions, the second message instruction is transmitted when the processor detects that the first business transmission link with the first business module is in a fault state and determines the second business module, the second business transmission link corresponding to the second business module is in a working state, and the second message instruction is used to instruct the establishment of a data transmission link between the first business module and the second business module; responding to the second message instruction, establishing the data transmission link with the first business module; and transmitting business data between the first business module and the processor through the data transmission link and the second business link.
[0014] Optionally, the step of responding to the second message instruction and establishing the data transmission link with the first service module includes: determining the first service module from the service modules connected to the second service module via a computing power sharing link according to the second message instruction; converting the target computing power sharing link connected to the first service module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second service module and the first service module.
[0015] Optionally, determining the first service module from the service modules connected to the second service module via the computing power sharing link according to the second message instruction includes: identifying second status information carried in the second message instruction, wherein the second status information is used to indicate the working status of the service transmission link between the second service module and the processor; and determining the service module indicated by the second service module information carried in the second message instruction as the first service module when the second status information indicates that the service transmission link between the second service module and the processor is in a working state.
[0016] Optionally, converting the target computing power sharing link connected to the first service module into the data transmission link includes: obtaining a pre-stored target data transmission protocol; converting the transmission protocol used on the target computing power sharing link into the target data transmission protocol to obtain the data transmission link.
[0017] According to another embodiment of this application, a server is provided, including: a processor, a first service module, and a second service module, wherein the processor establishes a service transmission link and a message transmission link with each service module, the service transmission link being used to transmit service data, and the message transmission link being used to transmit message instructions; the processor is configured to, when detecting that the first service transmission link with the first service module is in a fault state, determine the second service module, wherein the second service transmission link corresponding to the second service module is in a working state; transmit a first message instruction to the first service module through the first message transmission link corresponding to the first service module, and transmit a second message instruction to the second service module through the second message transmission link corresponding to the second service module, wherein the first message instruction and the message transmission link are used to transmit message instructions. The second message instruction is used to instruct the establishment of a data transmission link between the first service module and the second service module; through the data transmission link and the second service transmission link corresponding to the second service module, service data is transmitted between the first service module and the processor; the first service module is used to receive the first message instruction; respond to the first message instruction to establish the data transmission link with the second service module; and transmit service data between the first service module and the processor through the data transmission link and the second service transmission link; the second service module is used to receive the second message instruction; respond to the second message instruction to establish the data transmission link with the first service module; and transmit service data between the first service module and the processor through the data transmission link and the second service transmission link.
[0018] Optionally, the server deploys multiple service modules. The processor is further configured to: select a third service module from the multiple service modules, wherein the third service module is connected to the first service module via a computing power sharing link, and the third service transmission link corresponding to the third service module is in operation; the computing power sharing link is used to enable computing power sharing between the third service module and the first service module; select a service module with a service volume less than a target service volume from the third service modules as the second service module; the first service module is further configured to: determine the second service module from the service modules connected to the first service module via the computing power sharing link according to the first message instruction; convert the target computing power sharing link connected to the second service module into the data transmission link, wherein the target computing power sharing link is used to enable computing power sharing between the second service module and the first service module; the second service module is further configured to: determine the first service module from the service modules connected to the second service module via the computing power sharing link according to the second message instruction; convert the target computing power sharing link connected to the first service module into the data transmission link.
[0019] Optionally, the first service module is configured with a first cache, and the second service module is configured with a second cache, wherein the first cache is used to store the first message instruction, and the second cache is used to store the second message instruction.
[0020] According to another embodiment of this application, a service data transmission apparatus is provided, applied to a processor, comprising: a determining module, configured to determine a second service module when a first service transmission link between the processor and a first service module is detected to be in a fault state, wherein the processor, the first service module, and the second service module are deployed on a server, and a service transmission link and a message transmission link are established between the processor and each service module, the service transmission link being used to transmit service data, the message transmission link being used to transmit message instructions, and the second service transmission link corresponding to the second service module being in a working state; a first transmission module, configured to transmit a first message instruction to the first service module through the first message transmission link corresponding to the first service module, and transmit a second message instruction to the second service module through the second message transmission link corresponding to the second service module, wherein both the first message instruction and the second message instruction are used to instruct the establishment of a data transmission link between the first service module and the second service module; and a second transmission module, configured to transmit service data with the first service module through the data transmission link and the second service link.
[0021] According to another embodiment of this application, a service data transmission apparatus is provided, applied to a first service module, comprising: a first receiving module, configured to receive a first message instruction transmitted by a processor to the first service module through a first message transmission link corresponding to the first service module, wherein the processor, the first service module, and the second service module are deployed on a server, and a service transmission link and a message transmission link are established between the processor and each service module, the service transmission link being used to transmit service data, and the message transmission link being used to transmit message instructions, the first message instruction being transmitted when the processor detects that the first service transmission link between itself and the first service module is in a fault state and determines the second service module, the second service module corresponding to the second service module being in a working state, and the first message instruction being used to instruct the establishment of a data transmission link between the first service module and the second service module; a first processing module, configured to respond to the first message instruction and establish the data transmission link with the second service module; and a third transmission module, configured to transmit service data with the processor through the data transmission link and the second service link.
[0022] According to another embodiment of this application, a service data transmission apparatus is provided, applied to a second service module, comprising: a second receiving module, configured to receive a second message instruction transmitted by a processor to the second service module through a second message transmission link corresponding to the second service module, wherein the processor, the first service module, and the second service module are deployed on a server, and a service transmission link and a message transmission link are established between the processor and each service module, the service transmission link being used to transmit service data, the message transmission link being used to transmit message instructions, the second message instruction being transmitted when the processor detects that the first service transmission link between itself and the first service module is in a fault state and determines the second service module, the second service transmission link corresponding to the second service module being in a working state, and the second message instruction being used to instruct the establishment of a data transmission link between the first service module and the second service module; a second processing module, configured to respond to the second message instruction and establish the data transmission link with the first service module; and a fourth transmission module, configured to transmit service data between the first service module and the processor through the data transmission link and the second service link.
[0023] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, and the computer program is configured to perform the steps in any of the above method embodiments when it is run.
[0024] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0025] This application establishes a data transmission link between the processor and each service module deployed on the server via two links: a service transmission link and a message transmission link. The service transmission link transmits service data, and the message transmission link transmits message commands. Therefore, when a fault is detected in the first service transmission link between the processor and the first service module, a second service module with a working service transmission link to the processor is identified from the service modules deployed on the server. Message commands are then transmitted to both the first and second service modules via the message transmission link, instructing them to establish a data transmission link between them. This allows for the transmission of service data between the first service module and the processor through both the data transmission link and the second service transmission link. This achieves the goal of selecting a second service module with a working service transmission link to assist in transmitting service data between the first service module and the processor when the first service transmission link of the first service module deployed on the server is faulty. This ensures the server's service functionality and effective control over the service modules deployed on the server. Therefore, it solves the problem of low control efficiency for service modules in related technologies, achieving the technical effect of improving the control efficiency of service modules. Attached Figure Description
[0026] Figure 1 This is a flowchart of a service data transmission method according to an embodiment of this application;
[0027] Figure 2 This is a flowchart of another method for transmitting service data according to an embodiment of this application;
[0028] Figure 3 This is a flowchart of another method for transmitting business data according to an embodiment of this application;
[0029] Figure 4 This is a schematic diagram of a server structure according to an embodiment of this application;
[0030] Figure 5 This is a schematic diagram of an optional server connection structure according to an embodiment of this application;
[0031] Figure 6 This is a schematic diagram of an optional buffer according to an embodiment of this application;
[0032] Figure 7This is a structural block diagram of a service data transmission apparatus according to an embodiment of this application;
[0033] Figure 8 This is a structural block diagram of another service data transmission apparatus according to an embodiment of this application;
[0034] Figure 9 This is a structural block diagram of another service data transmission device according to an embodiment of this application. Detailed Implementation
[0035] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.
[0036] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0037] This embodiment provides a method for transmitting business data. Figure 1 This is a flowchart of a service data transmission method according to an embodiment of this application, such as... Figure 1 As shown, applied to a processor, this process includes the following steps:
[0038] Step S102: If the first service transmission link between the processor and the first service module is detected to be in a fault state, the second service module is determined. The processor, the first service module and the second service module are deployed on the server. The processor establishes a service transmission link and a message transmission link with each service module. The service transmission link is used to transmit service data and the message transmission link is used to transmit message instructions. The second service transmission link corresponding to the second service module is in a working state.
[0039] Step S104: Transmit a first message instruction to the first service module through the first message transmission link corresponding to the first service module, and transmit a second message instruction to the second service module through the second message transmission link corresponding to the second service module, wherein the first message instruction and the second message instruction are both used to indicate the establishment of a data transmission link between the first service module and the second service module.
[0040] Step S106: Transmit service data between the first service module and the data transmission link and the second service transmission link.
[0041] This application establishes a data transmission link between the processor and each service module deployed on the server via two links: a service transmission link and a message transmission link. The service transmission link transmits service data, and the message transmission link transmits message commands. Therefore, when a fault is detected in the first service transmission link between the processor and the first service module, a second service module with a working service transmission link to the processor is identified from the service modules deployed on the server. Message commands are then transmitted to both the first and second service modules via the message transmission link, instructing them to establish a data transmission link between them. This allows for the transmission of service data between the first service module and the processor through both the data transmission link and the second service transmission link. This achieves the goal of selecting a second service module with a working service transmission link to assist in transmitting service data between the first service module and the processor when the first service transmission link of the first service module deployed on the server is faulty. This ensures the server's service functionality and effective control over the service modules deployed on the server. Therefore, it solves the problem of low control efficiency for service modules in related technologies, achieving the technical effect of improving the control efficiency of service modules.
[0042] In the embodiment provided in step S102 above, the processor is a device deployed on the server to control the running status of the business module. It can send business data to the business module, or it can receive feedback business data obtained by the business module in response to the business data (such as calculation or business operation). The processor may include, but is not limited to, CPU, BMC, etc., and this solution does not limit it.
[0043] Optionally, in this embodiment, the business module is used to execute business functions that implement server functions, which may include, but are not limited to, data operation, logic control, data storage, image processing and other business functions. The business module may be, but is not limited to, an OAM (OCP Accelerator Module) computing acceleration module, a storage module, a graphics card, etc.
[0044] Optionally, in this embodiment, the first business module and the second business module can be business modules of the same type or business modules of different types. For example, the first business module is an OAM computing acceleration module, and the second business module can be other OAM computing acceleration modules deployed on the server, or it can be a storage module or a graphics card deployed on the server, etc.
[0045] Optionally, in this embodiment, detecting that the first service transmission link is in a fault state can be done by detecting whether the service message was successfully sent to the server, or it can be done by periodically sending communication messages with the service module. If no communication message is received from the service module, it is determined that the service transmission link of the service module is in a fault state.
[0046] Optionally, in this embodiment, the second service module can be any service module deployed on the server with a working service transmission link, or it can be the service module with the strongest data processing capability and / or the smallest service load selected from the service modules with working service transmission links.
[0047] In the embodiment provided in step S104 above, the contents carried in the first message instruction and the second message instruction can be the same, for example, both the first service module information and the second service module information that need to establish a data transmission link can be carried. The contents carried in the first message instruction and the second message instruction can also be different, for example, the first message instruction carries the second service module information that needs to establish a data transmission link, and the second message instruction carries the first service module information that needs to establish a data transmission link.
[0048] Optionally, in this embodiment, the data transmission link between the first business module and the second business module can be established by establishing a data transmission link between functional modules without any connection relationship, or by modifying other existing functional links between business modules to create a data transmission link. For example, if the business module is an OAM module, there is a computing power sharing link between OAM modules, which can share computing power with each other. The backend has a QSFP (QuadSmall Form-factor Pluggable) connector, which can connect to each node, and the nodes can share each other's resources. However, this computing power sharing link cannot realize the transmission of business data between OAM modules. By modifying the communication protocol of the computing power sharing link, the computing power sharing link can be changed into a data transmission link.
[0049] In the embodiment provided in step S106 above, transmitting service data between the processor and the first service module via the data transmission link and the second service transmission link can be as follows: the processor transmits the service data to the second service module via the second service transmission link, and the second service module then transmits the service data to the first service module via the data transmission link between the processor and the first service module. Alternatively, the first service module can transmit the service data to the second service module via the data transmission link, and the second service module then transmits the service data to the processor via the second service transmission link. This solution does not limit this to any particular method.
[0050] As an optional embodiment, determining the second business module includes:
[0051] A third business module is selected from multiple business modules deployed on the server. The third business module is connected to the first business module through a computing power sharing link, and the third business transmission link corresponding to the third business module is in working state. The computing power sharing link is used to realize the sharing of computing power among business modules.
[0052] The business modules whose business volume is less than the target business volume are selected from the third business modules and designated as the second business modules.
[0053] Optionally, in this embodiment, among the multiple functional modules deployed in the server, there may be a computing power sharing link between any two business modules, or there may be a computing power sharing link between some business modules.
[0054] Optionally, in this embodiment, the target traffic volume can be a pre-set fixed value, or it can be determined based on the traffic volume of each third business module. For example, the smallest traffic volume among the third business modules can be used as the target traffic volume.
[0055] Through the above steps, by screening multiple business modules, a third business module is selected from among the multiple business modules that has a computing power sharing link between the first business modules and whose business transmission link is working normally. The third business module is then further screened to select a business module with a business volume less than the target business volume as the second business module. This ensures the transmission efficiency and speed of the second business module for transmitting business data between the first business module and the processor.
[0056] As an optional embodiment, the step of transmitting a first message instruction to the first service module through a first message transmission link corresponding to the first service module, and transmitting a second message instruction to the second service module through a second message transmission link corresponding to the second service module, includes:
[0057] Generate a first message instruction carrying first status information and first service module information, and generate a second message instruction carrying second status information and second service module information, wherein the first status information is used to indicate that the service transmission link between the first service module and the processor is in a fault state, the first service module information is used to indicate the second service module, the second status information is used to indicate that the service transmission link between the second service module and the processor is in a working state, and the second service module information is used to indicate the first service module.
[0058] The first message instruction is transmitted through the first message transmission link, and the second message instruction is transmitted through the second message transmission link.
[0059] Optionally, in this embodiment, the message instruction can be in the form of a string, which includes character positions corresponding to status information and character positions corresponding to business module information. The character positions of the business module information are set corresponding to the business module. The second business module is determined according to the value of the character position of the business module information. For example, if 8 business modules are deployed on the server, the message instruction is a 9-bit string, with 8 character positions for business module information and 1 character position for status information. The character position of the status information can be in any position in the string, and the value of the character position is "0" or "1". When the value of the character position corresponding to the business module information is "1", the business module corresponding to that character position is determined to be the second business module. When the value of the character position corresponding to the status information is "1", the working status of the business transmission link between the business module and the processor is identified as normal.
[0060] As an optional embodiment, the transmission of service data between the first service module and the data transmission link and the second service transmission link includes at least one of the following:
[0061] The first service data is transmitted to the second service module via the second service transmission link, wherein the first service data is used to instruct the second service module to transmit the first service data to the first service module via the data transmission link;
[0062] The system receives second service data transmitted via the second service transmission link, wherein the second service data is transmitted from the first service module to the second service module via the data transmission link, and the second service data is used to instruct the second service module to transmit the second service data to the processor.
[0063] Optionally, in this embodiment, in the event of a failure in the first service transmission link of the first service module, service data transmission between the first service module and the processor can be performed through the second service module. That is, the processor transmits the service data line that needs to be transmitted to the first service module to the second service module, and then the second service module transmits it to the first service module. Furthermore, after the first service module completes the related operations on the service data (such as service calculations and data processing), it will also return the processed service data to the processor through the second service module. The service data returned to the processor through the second service module can be obtained by the first service module performing calculations on the service data received from the processor before the failure of the first service transmission link.
[0064] This embodiment provides a method for transmitting business data. Figure 2 This is a flowchart of another method for transmitting service data according to an embodiment of this application, such as... Figure 2 As shown, this process, applied to the first business module, includes the following steps:
[0065] Step S202: Receive a first message instruction transmitted by the processor to the first service module through the first message transmission link corresponding to the first service module. The processor, the first service module, and the second service module are deployed on a server. A service transmission link and a message transmission link are established between the processor and each service module. The service transmission link is used to transmit service data, and the message transmission link is used to transmit message instructions. The first message instruction is transmitted when the processor detects that the first service transmission link with the first service module is in a fault state and determines that the second service module is identified. The second service transmission link corresponding to the second service module is in a working state. The first message instruction is used to instruct the establishment of a data transmission link between the first service module and the second service module.
[0066] Step S204: In response to the first message instruction, establish the data transmission link with the second service module;
[0067] Step S206: Transmit service data between the processor and the data transmission link and the second service transmission link.
[0068] This application establishes a data transmission link between the processor and each service module deployed on the server via two links: a service transmission link and a message transmission link. The service transmission link transmits service data, and the message transmission link transmits message commands. Therefore, when a fault is detected in the first service transmission link between the processor and the first service module, a second service module with a working service transmission link to the processor is identified from the service modules deployed on the server. Message commands are then transmitted to both the first and second service modules via the message transmission link, instructing them to establish a data transmission link between them. This allows for the transmission of service data between the first service module and the processor through both the data transmission link and the second service transmission link. This achieves the goal of selecting a second service module with a working service transmission link to assist in transmitting service data between the first service module and the processor when the first service transmission link of the first service module deployed on the server is faulty. This ensures the server's service functionality and effective control over the service modules deployed on the server. Therefore, it solves the problem of low control efficiency for service modules in related technologies, achieving the technical effect of improving the control efficiency of service modules.
[0069] In the embodiment provided by step S202 above, the first message instruction may, but is not limited to, carry first status information for indicating the working status of the service transmission link between the first service module and the processor, and first service module information for indicating the establishment of a data transmission link with the first service module.
[0070] In the embodiment provided in step S204 above, the first service module can send a data transmission link creation instruction to the second service module to establish a data transmission link when there is no connection link between the first service module and the second service module. Alternatively, it can modify the protocol of the existing link with the second service module, that is, the first service module modifies the transmission protocol of the existing computing power sharing link between the first service module and the second service module to establish a data transmission link with the second service module.
[0071] In the embodiment provided in step S206 above, the transmission of service data between the processor may include, but is not limited to, receiving service data sent by the processor through the second service module, and returning service data to the server through the second service module.
[0072] As an optional embodiment, the step of responding to the first message instruction and establishing the data transmission link with the second service module includes:
[0073] The second business module is determined from the business modules connected to the first business module via a computing power sharing link according to the first message instruction;
[0074] The target computing power sharing link connecting the second business module is converted into the data transmission link, wherein the target computing power sharing link is used to enable the sharing of computing power between the second business module and the first business module.
[0075] Optionally, in this embodiment, the first message instruction carries business module information for indicating a second business module that transmits business data to the first business module. This business module information may be the identifier or ID (Identity Document) of the business module, or it may be in the form of a string. The character positions of the string are set to correspond to the business modules deployed on the server. By identifying the character values of each character position in the string, the business module corresponding to the character position with the target value is determined as the second business module.
[0076] Optionally, in this embodiment, the computing power sharing link is used to realize computing power sharing between business modules. This computing power sharing link only has the function of sharing computing power, but does not have the function of business data transmission. The way to convert the target computing power sharing link into a data transmission link can be, but is not limited to, by converting the transmission protocol of the computing power sharing link. For example, if the transmission protocol used by the computing power sharing link is PAM4 (4Pulse Amplitude Modulation), the target computing power sharing link can be converted into a data transmission link by converting the PAM4 protocol into the PCIe (Peripheral Component Interconnect Express) protocol used for transmitting business data.
[0077] As an optional embodiment, determining the second service module from the service modules connected to the first service module via a computing power sharing link according to the first message instruction includes:
[0078] Identify the first status information carried in the first message instruction, wherein the first status information is used to indicate the working status of the service transmission link between the first service module and the processor;
[0079] When the first status information indicates that the service transmission link between the first service module and the processor is in a fault state, the service module indicated by the first service module information carried in the first message instruction is identified as the second service module.
[0080] Optionally, in this embodiment, the first message instruction may be, but is not limited to, a string carrying first status information and first service module information. The first status information and the first service module information are different character positions in the string. Furthermore, this embodiment does not limit the position of the first status information and the first service module information in character transmission. For example, the first status information may be at the beginning or end of the string, or it may be set in the middle of the first service module information.
[0081] As an optional embodiment, converting the target computing power sharing link connected to the second service module into the data transmission link includes:
[0082] Obtain the pre-stored target data transmission protocol;
[0083] The transmission protocol used on the target computing power sharing link is converted into the target data transmission protocol to obtain the data transmission link.
[0084] Optionally, in this embodiment, the method of converting the transmission protocol used on the target computing power sharing link to the target data transmission protocol can be by changing the data transmission protocol used by the first service module. For example, the first service module changes the data protocol of the computing power sharing link to the target data transmission protocol, so that the first service module sends the service data in the manner indicated by the target data transmission protocol and receives the service data sent by the second service module in the manner indicated by the target data transmission protocol.
[0085] This embodiment provides a method for transmitting business data. Figure 3 This is a flowchart of another method for transmitting service data according to an embodiment of this application, such as... Figure 3 As shown, this process, applied to the second business module, includes the following steps:
[0086] Step S302: Receive a second message instruction transmitted by the processor to the second service module through the second message transmission link corresponding to the second service module. The processor, the first service module, and the second service module are deployed on a server. A service transmission link and a message transmission link are established between the processor and each service module. The service transmission link is used to transmit service data, and the message transmission link is used to transmit message instructions. The second message instruction is transmitted when the processor detects that the first service transmission link with the first service module is in a fault state and determines that the second service module is located. The second service transmission link corresponding to the second service module is in a working state. The second message instruction is used to instruct the establishment of a data transmission link between the first service module and the second service module.
[0087] Step S304: In response to the second message instruction, establish the data transmission link with the first service module;
[0088] Step S306: Transmit service data between the first service module and the processor through the data transmission link and the second service transmission link.
[0089] This application establishes a data transmission link between the processor and each service module deployed on the server via two links: a service transmission link and a message transmission link. The service transmission link transmits service data, and the message transmission link transmits message commands. Therefore, when a fault is detected in the first service transmission link between the processor and the first service module, a second service module with a working service transmission link to the processor is identified from the service modules deployed on the server. Message commands are then transmitted to both the first and second service modules via the message transmission link, instructing them to establish a data transmission link between them. This allows for the transmission of service data between the first service module and the processor through both the data transmission link and the second service transmission link. This achieves the goal of selecting a second service module with a working service transmission link to assist in transmitting service data between the first service module and the processor when the first service transmission link of the first service module deployed on the server is faulty. This ensures the server's service functionality and effective control over the service modules deployed on the server. Therefore, it solves the problem of low control efficiency for service modules in related technologies, achieving the technical effect of improving the control efficiency of service modules.
[0090] In the embodiment provided by step S302 above, the second message instruction may, but is not limited to, carry second status information for indicating the working status of the service transmission link between the second service module and the processor, and second service module information for indicating the service module that establishes a data transmission link with the second service module.
[0091] In the embodiment provided in step S304 above, the second service module can send a data transmission link creation instruction to the first service module to establish a data transmission link when there is no connection link between the first service module and the second service module. Alternatively, it can modify the protocol of the existing link with the first service module, that is, the second service module modifies the transmission protocol of the existing computing power sharing link between the first service module and the second service module to establish a data transmission link with the second service module.
[0092] In the embodiment provided in step S306 above, the method of transmitting service data between the first service module and the processor may include, but is not limited to, forwarding the service data sent by the processor to the first service module, and forwarding the service data sent by the first service module to the processor.
[0093] As an optional embodiment, the step of responding to the second message instruction and establishing the data transmission link with the first service module includes:
[0094] The first service module is determined from the service modules connected to the second service module via a computing power sharing link according to the second message instruction;
[0095] The target computing power sharing link connecting the first business module is converted into the data transmission link, wherein the target computing power sharing link is used to enable the sharing of computing power between the second business module and the first business module.
[0096] Optionally, in this embodiment, the second message instruction carries business module information for indicating the second business module of the first business module. The business module information may be the identifier or ID of the business module, or it may be in the form of a string. The character positions of the string are set to correspond to the business modules deployed on the server. By identifying the character values of each character position in the string, the business module corresponding to the character position with the target value is determined as the first business module.
[0097] Optionally, in this embodiment, the computing power sharing link is used to realize computing power sharing between business modules. This computing power sharing link only has the function of sharing computing power, but does not have the function of business data transmission. The way to convert the target computing power sharing link into a data transmission link can be, but is not limited to, by converting the transmission protocol of the computing power sharing link. For example, if the transmission protocol used by the computing power sharing link is the PAM4 protocol, the target computing power sharing link can be converted into a data transmission link by converting the PAM4 protocol into the PCIe protocol used for transmitting business data.
[0098] As an optional embodiment, determining the first service module from the service modules connected to the second service module via a computing power sharing link according to the second message instruction includes:
[0099] Identify the second status information carried in the second message instruction, wherein the second status information is used to indicate the working status of the service transmission link between the second service module and the processor;
[0100] When the second status information indicates that the service transmission link between the second service module and the processor is in a working state, the service module indicated by the second service module information carried in the second message instruction is identified as the first service module.
[0101] Optionally, in this embodiment, the second message instruction may be, but is not limited to, a string carrying second status information and second service module information. The second status information and the second service module information are different character positions in the string. Furthermore, this embodiment does not limit the position of the second status information and the second service module information in character transmission. For example, the second status information may be at the beginning or end of the string, or it may be set in the middle of the second service module information.
[0102] As an optional embodiment, converting the target computing power sharing link connected to the first service module into the data transmission link includes:
[0103] Obtain the pre-stored target data transmission protocol;
[0104] The transmission protocol used on the target computing power sharing link is converted into the target data transmission protocol to obtain the data transmission link.
[0105] Optionally, in this embodiment, the method of converting the transmission protocol used on the target computing power sharing link to the target data transmission protocol can be by changing the data transmission protocol used by the second service module. For example, the second service module changes the data protocol of the computing power sharing link to the target data transmission protocol, so that the second service module sends the service data to the first service module in accordance with the method indicated by the target data transmission protocol, and receives the service data sent by the first service module in accordance with the method indicated by the target data transmission protocol.
[0106] Figure 4 This is a schematic diagram of a server structure according to an embodiment of this application, such as... Figure 4 As shown, it includes: a processor 42, a first service module 44, and a second service module 46, wherein,
[0107] The processor 42 establishes a service transmission link and a message transmission link with each service module. The service transmission link is used to transmit service data, and the message link is used to transmit message instructions.
[0108] The processor 42 is configured to, upon detecting a fault in the first service transmission link with the first service module, determine the second service module, wherein the second service transmission link corresponding to the second service module is in a working state; transmit a first message instruction to the first service module through the first message transmission link corresponding to the first service module, and transmit a second message instruction to the second service module through the second message transmission link corresponding to the second service module, wherein both the first message instruction and the second message instruction are used to instruct the establishment of a data transmission link between the first service module and the second service module; and transmit service data with the first service module through the data transmission link and the second service transmission link corresponding to the second service module.
[0109] The first service module 44 is configured to receive the first message instruction; respond to the first message instruction to establish the data transmission link with the second service module; and transmit service data with the processor through the data transmission link and the second service transmission link.
[0110] The second service module 46 is configured to receive the second message instruction; respond to the second message instruction to establish the data transmission link with the first service module; and transmit service data between the first service module and the processor through the data transmission link and the second service transmission link.
[0111] This application establishes a data transmission link between the processor and each service module deployed on the server via two links: a service transmission link and a message transmission link. The service transmission link transmits service data, and the message transmission link transmits message commands. Therefore, when a fault is detected in the first service transmission link between the processor and the first service module, a second service module with a working service transmission link to the processor is identified from the service modules deployed on the server. Message commands are then transmitted to both the first and second service modules via the message transmission link, instructing them to establish a data transmission link between them. This allows for the transmission of service data between the first service module and the processor through both the data transmission link and the second service transmission link. This achieves the goal of selecting a second service module with a working service transmission link to assist in transmitting service data between the first service module and the processor when the first service transmission link of the first service module deployed on the server is faulty. This ensures the server's service functionality and effective control over the service modules deployed on the server. Therefore, it solves the problem of low control efficiency for service modules in related technologies, achieving the technical effect of improving the control efficiency of service modules.
[0112] Optionally, in this embodiment, the processor can detect whether the first service transmission link of the first service module is faulty by sending communication data to the service module at fixed intervals. For example, the processor sends first communication data to the first service module, and after the first service module receives the first communication data, it returns second communication data corresponding to the first communication data. If the second communication data is not received within the target time, it is determined that the first service transmission link is in a faulty state. Alternatively, the server can transmit service data to the first service module, and if the service data transmission fails, it is determined that the first service transmission link is in a faulty state.
[0113] Optionally, in this embodiment, the second service module can be any service module among the service modules deployed on the server with the second service transmission link in working state, or it can be a service module whose service volume is less than the target service volume, and / or a service module whose service data processing capability is greater than the target threshold.
[0114] Figure 5 This is a schematic diagram of an optional server connection structure according to an embodiment of this application, which can, but is not limited to, be used in the OAI architecture, such as... Figure 5 As shown in the diagram, any two connecting lines are not intersecting. The server deploys eight business modules (OAM0-OAM7), two Switch terminals, and one Host terminal. The OAM modules are connected to the Switch terminals, which in turn connect to the Host terminal. There are interconnecting signals between the OAM modules, allowing them to share computing power (i.e., the computing power sharing link mentioned above). The backend has QSFP connectors that can connect to various nodes, enabling each node to share its resources and making the entire system architecture more efficient and powerful.
[0115] In terms of hardware design, all PCIe connections (i.e., the service transmission links mentioned above) are connected to the Switch. The Switch then connects to the CPU. Under the OAI architecture defined by the OCP Association, the eight OAM modules correspond to two Switches each. OAM0 to OAM3 correspond to Switch A, and OAM4 to OAM7 correspond to Switch B. Switch A and Switch B then correspond to the HOST, which can be an Intel, AMD, or ARM CPU, and can consist of one or two CPUs; this application does not impose any limitations on this. Within the OAI architecture, the OAM modules have their own interconnection rules. For example, OAM0 connects to OAM1, 2, 3, and 4 modules, and OAM1 connects to OAM0, 2, 3, and 5 modules. Each OAM has its own connection method, and the OAM modules connect to each other via the PAM4 protocol. Furthermore, this application also designs an I2C line (message transmission link, used to transmit message instructions to the OAM module) connecting the OAM module and the CPU. A set of buffers is added to the OAM module to store message instructions. With the CPU and driver software detection, after any OAM module's service transmission link with the CPU fails, it can use the service transmission links of other service modules to reconnect to the HOST, ensuring that the data being processed or calculated will not be lost due to the failure of the PCIe link. After the service transmission link fails, the I2C link is used to transmit data to change the value of the buffer. When the buffer changes, the OAM module knows that the PCIe link with the HOST has been interrupted, and then switches to using the PAM4 connection link with other OAM modules for transmission. Through the PAM4 link, the data is transmitted to other OAM modules, and the OAM module then sends the data being processed back to the HOST CPU. This ensures that even after the PCIe link fails, the data can be accurately transmitted back to the HOST, where the HOST can perform further data processing, such as sending the data back to the user via the network or performing data merging and analysis.
[0116] In the above embodiment, under normal system operation, the CPU transmits the data that needs to be calculated and processed to the corresponding Switch and the corresponding OAM via the PCIe link. Under normal operation, the system will continuously provide services. At this time, the cache of each OAM in the system will be 00000001. If the PCIe link between OAM0 and the HOST is interrupted, the HOST will know that the OAM0 link has been interrupted and will immediately use the I2C (Inter-Integrated Circuit, two-wire serial bus) signal to communicate with the system. In the MUX, the I2C_OAM0 link sends the command 010000000 to the OAM0 buffer, and immediately the I2C_OAM1 sends the command 100000001 to the OAM1 buffer. When OAM0 receives 010000000, it knows that the PCIe link with the host has been interrupted and needs to convert the PAM4 protocol link with OAM1 to PCIe functionality. When the OAM1 buffer receives the command 100000001, it knows that its own PCIe link with the host is still running normally. Since the PCIe link between OAM0 and the host has been interrupted, it needs to convert the computing power sharing link with OAM0 to a PCIe link and send the data received from OAM0 back to the host to help OAM0 reconnect to the host. The same applies to other OAM operations. Suppose that the PCIe links between devices OAM0 and OAM1 and the host are both interrupted today. The host can determine which OAM has a lower workload and freely assign OAM0 or OAM1 to the OAM that is still connected to the host to perform takeover. The current buffer design is as follows: the buffer has a total of 9 bits. The 8th bit indicates the PCIe connection status with the host. A value of 1 indicates a normal connection, and 0 indicates an interruption. Bits 1 to 7 represent other OAMs.
[0117] As an optional embodiment, multiple business modules are deployed on the server, wherein,
[0118] The processor is further configured to select a third service module from the plurality of service modules, wherein the third service module is connected to the first service module via a computing power sharing link, and the third service transmission link corresponding to the third service module is in operation, the computing power sharing link being used to enable the sharing of computing power between the third service module and the first service module; and to select a service module whose service volume is less than the target service volume from the third service module as the second service module;
[0119] The first service module is further configured to determine the second service module from the service modules connected to the first service module through the computing power sharing link according to the first message instruction; and convert the target computing power sharing link connected to the second service module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second service module and the first service module;
[0120] The second service module is further configured to determine the first service module from the service modules connected to the second service module via the computing power sharing link according to the second message instruction; and convert the target computing power sharing link connected to the first service module into the data transmission link.
[0121] As an optional embodiment, the first service module is configured with a first cache, and the second service module is configured with a second cache, wherein the first cache is used to store the first message instruction, and the second cache is used to store the second message instruction.
[0122] Optionally, in this embodiment, the buffer can store message instructions, and the storage format in the buffer matches the format of the message instructions. For example, if the message instructions are in string form, the buffer stores the characters of the string in sequence. Figure 6 This is a schematic diagram of an optional buffer according to an embodiment of this application, such as... Figure 6 As shown, eight business modules are deployed on the server. A total of nine bits (nine character positions) are set in the buffer. The first eight character positions correspond to the eight business modules, with each character position being either "0" or "1," indicating the business module that has established a data transmission link with the current module. The ninth character position indicates the working status of the business transmission link between the current business module and the processor, with a value of either "0" or "1." A value of "0" indicates that the business transmission link between the business module and the processor is broken, and a data connection needs to be established with the second business module whose character position in the first eight character positions is "1" to transmit business data between the second business module and the processor. When the ninth character position is "1," it indicates that the business transmission link between the business module and the processor is in a normal state, and a data connection needs to be established with the first business module whose character position in the first eight character positions is "1" to facilitate the transmission of business data between the first business module and the processor. Figure 6The string stored in the buffer is 000010001, which means that the character bit corresponding to OAM4 is 1, and the PCIe connection status character bit is 1, while the other character bits are 0. Therefore, it can be known that the current business transmission link between OAM and the processor is in a normal state, and a data transmission link needs to be established between OAM4 and OAM4 to help OAM4 transmit business data with the processor.
[0123] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0124] This embodiment also provides a business data transmission device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0125] Figure 7 This is a structural block diagram of a service data transmission apparatus according to an embodiment of this application, such as... Figure 7As shown, the device, applied to a processor, includes: a determining module 72, configured to determine a second service module when a first service transmission link between the processor and a first service module is detected to be in a faulty state, wherein the processor, the first service module, and the second service module are deployed on a server, and a service transmission link and a message transmission link are established between the processor and each service module, the service transmission link being used to transmit service data, the message transmission link being used to transmit message instructions, and the second service transmission link corresponding to the second service module being in a working state; a first transmission module 74, configured to transmit a first message instruction to the first service module through the first message transmission link corresponding to the first service module, and transmit a second message instruction to the second service module through the second message transmission link corresponding to the second service module, wherein both the first message instruction and the second message instruction are used to instruct the establishment of a data transmission link between the first service module and the second service module; and a second transmission module 76, configured to transmit service data with the first service module through the data transmission link and the second service link.
[0126] This application establishes a data transmission link between the processor and each service module deployed on the server via two links: a service transmission link and a message transmission link. The service transmission link transmits service data, and the message transmission link transmits message commands. Therefore, when a fault is detected in the first service transmission link between the processor and the first service module, a second service module with a working service transmission link to the processor is identified from the service modules deployed on the server. Message commands are then transmitted to both the first and second service modules via the message transmission link, instructing them to establish a data transmission link between them. This allows for the transmission of service data between the first service module and the processor through both the data transmission link and the second service transmission link. This achieves the goal of selecting a second service module with a working service transmission link to assist in transmitting service data between the first service module and the processor when the first service transmission link of the first service module deployed on the server is faulty. This ensures the server's service functionality and effective control over the service modules deployed on the server. Therefore, it solves the problem of low control efficiency for service modules in related technologies, achieving the technical effect of improving the control efficiency of service modules.
[0127] Optionally, the determining module includes: a first filtering unit, configured to filter out a third business module from multiple business modules deployed on the server, wherein the third business module is connected to the first business module via a computing power sharing link, and the third business transmission link corresponding to the third business module is in a working state, the computing power sharing link being used to realize the sharing of computing power among business modules; and a second filtering unit, configured to filter out business modules from the third business modules whose business volume is less than the target business volume as the second business module.
[0128] Optionally, the first transmission module includes: a generation unit, configured to generate a first message instruction carrying first status information and first service module information, and to generate a second message instruction carrying second status information and second service module information, wherein the first status information is used to indicate that the service transmission link between the first service module and the processor is in a fault state, the first service module information is used to indicate the second service module, the second status information is used to indicate that the service transmission link between the second service module and the processor is in a working state, and the second service module information is used to indicate the first service module; and a first transmission unit, configured to transmit the first message instruction through the first message transmission link and transmit the second message instruction through the second message transmission link.
[0129] Optionally, the second transmission module includes at least one of the following: a second transmission unit, configured to transmit a first service data to the second service module via the second service transmission link, wherein the first service data is used to instruct the second service module to transmit the first service data to the first service module via the data transmission link; and a receiving unit, configured to receive second service data transmitted via the second service transmission link, wherein the second service data is transmitted from the first service module to the second service module via the data transmission link, and the second service data is used to instruct the second service module to transmit the second service data to the processor.
[0130] Figure 8 This is a structural block diagram of another service data transmission apparatus according to an embodiment of this application, such as... Figure 8As shown, the device, applied to a first service module, includes: a first receiving module 82, configured to receive a first message instruction transmitted by a processor to the first service module via a first message transmission link corresponding to the first service module, wherein the processor, the first service module, and the second service module are deployed on a server, and a service transmission link and a message transmission link are established between the processor and each service module. The service transmission link is used to transmit service data, and the message transmission link is used to transmit message instructions. The first message instruction is transmitted when the processor detects that the first service transmission link between itself and the first service module is in a fault state and determines the second service module. The second service module's corresponding second service link is in a working state. The first message instruction is used to instruct the establishment of a data transmission link between the first service module and the second service module; a first processing module 84, configured to respond to the first message instruction and establish the data transmission link with the second service module; and a third transmission module 86, configured to transmit service data with the processor via the data transmission link and the second service link.
[0131] This application establishes a data transmission link between the processor and each service module deployed on the server via two links: a service transmission link and a message transmission link. The service transmission link transmits service data, and the message transmission link transmits message commands. Therefore, when a fault is detected in the first service transmission link between the processor and the first service module, a second service module with a working service transmission link to the processor is identified from the service modules deployed on the server. Message commands are then transmitted to both the first and second service modules via the message transmission link, instructing them to establish a data transmission link between them. This allows for the transmission of service data between the first service module and the processor through both the data transmission link and the second service transmission link. This achieves the goal of selecting a second service module with a working service transmission link to assist in transmitting service data between the first service module and the processor when the first service transmission link of the first service module deployed on the server is faulty. This ensures the server's service functionality and effective control over the service modules deployed on the server. Therefore, it solves the problem of low control efficiency for service modules in related technologies, achieving the technical effect of improving the control efficiency of service modules.
[0132] Optionally, the processing module includes: a first determining unit, configured to determine the second business module from business modules connected to the first business module via a computing power sharing link according to the first message instruction; and a first conversion unit, configured to convert the target computing power sharing link connected to the second business module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second business module and the first business module.
[0133] Optionally, the first determining unit is configured to: identify first status information carried in the first message instruction, wherein the first status information is used to indicate the working status of the service transmission link between the first service module and the processor; and, when the first status information indicates that the service transmission link between the first service module and the processor is in a fault state, determine the service module indicated by the first service module information carried in the first message instruction as the second service module.
[0134] Optionally, the first conversion unit is configured to: acquire a pre-stored target data transmission protocol; convert the transmission protocol used on the target computing power sharing link into the target data transmission protocol to obtain the data transmission link.
[0135] Figure 9 This is a structural block diagram of another service data transmission apparatus according to an embodiment of this application, such as... Figure 9 As shown, the device, applied to a second service module, includes: a second receiving module 92, configured to receive a second message instruction transmitted by a processor to the second service module via a second message transmission link corresponding to the second service module, wherein the processor, the first service module, and the second service module are deployed on a server, and a service transmission link and a message transmission link are established between the processor and each service module. The service transmission link is used to transmit service data, and the message transmission link is used to transmit message instructions. The second message instruction is transmitted when the processor detects that the first service transmission link between itself and the first service module is in a fault state and determines the second service module. The second service transmission link corresponding to the second service module is in a working state, and the second message instruction is used to instruct the establishment of a data transmission link between the first service module and the second service module; a second processing module 94, configured to respond to the second message instruction and establish the data transmission link with the first service module; and a fourth transmission module 96, configured to transmit service data between the first service module and the processor via the data transmission link and the second service link.
[0136] This application establishes a data transmission link between the processor and each service module deployed on the server via two links: a service transmission link and a message transmission link. The service transmission link transmits service data, and the message transmission link transmits message commands. Therefore, when a fault is detected in the first service transmission link between the processor and the first service module, a second service module with a working service transmission link to the processor is identified from the service modules deployed on the server. Message commands are then transmitted to both the first and second service modules via the message transmission link, instructing them to establish a data transmission link between them. This allows for the transmission of service data between the first service module and the processor through both the data transmission link and the second service transmission link. This achieves the goal of selecting a second service module with a working service transmission link to assist in transmitting service data between the first service module and the processor when the first service transmission link of the first service module deployed on the server is faulty. This ensures the server's service functionality and effective control over the service modules deployed on the server. Therefore, it solves the problem of low control efficiency for service modules in related technologies, achieving the technical effect of improving the control efficiency of service modules.
[0137] Optionally, the second processing module includes: a second determining unit, configured to determine the first business module from the business modules connected to the second business module via a computing power sharing link according to the second message instruction; and a second conversion unit, configured to convert the target computing power sharing link connected to the first business module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second business module and the first business module.
[0138] Optionally, the second determining unit is configured to: identify the second status information carried in the second message instruction, wherein the second status information is used to indicate the working status of the service transmission link between the second service module and the processor; and when the second status information indicates that the service transmission link between the second service module and the processor is in a working state, determine the service module indicated by the second service module information carried in the second message instruction as the first service module.
[0139] Optionally, the second conversion unit is configured to: acquire a pre-stored target data transmission protocol; convert the transmission protocol used on the target computing power sharing link into the target data transmission protocol to obtain the data transmission link.
[0140] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0141] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.
[0142] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0143] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0144] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0145] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0146] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0147] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method for transmitting business data, characterized in that, Applied to a processor, the method for transmitting the service data includes: If the first service transmission link between the processor and the first service module is detected to be in a fault state, the second service module is determined, wherein the processor, the first service module and the second service module are deployed on the server, and the processor establishes a service transmission link and a message transmission link with each service module. The service transmission link is used to transmit service data, and the message link is used to transmit message instructions. The second service transmission link corresponding to the second service module is in a working state. A first message instruction is transmitted to the first service module via a first message transmission link corresponding to the first service module, and a second message instruction is transmitted to the second service module via a second message transmission link corresponding to the second service module. Both the first and second message instructions are used to instruct the establishment of a data transmission link between the first and second service modules. The first service module is configured to determine the second service module from among the service modules connected to it via a computing power sharing link according to the first message instruction; and convert the target computing power sharing link connected to the second service module into the data transmission link, wherein the target computing power sharing link is used to enable computing power sharing between the second and first service modules. The second service module is configured to determine the first service module from among the service modules connected to it via a computing power sharing link according to the second message instruction; and convert the target computing power sharing link connected to it into the data transmission link, wherein the target computing power sharing link is used to enable computing power sharing between the second and first service modules. Service data is transmitted between the first service module and the data transmission link and the second service transmission link.
2. The method according to claim 1, characterized in that, The determination of the second business module includes: A third business module is selected from multiple business modules deployed on the server. The third business module is connected to the first business module through a computing power sharing link, and the third business transmission link corresponding to the third business module is in working state. The computing power sharing link is used to realize the sharing of computing power among business modules. The business modules whose business volume is less than the target business volume are selected from the third business modules and designated as the second business modules.
3. The method according to claim 1, characterized in that, The step of transmitting a first message instruction to the first service module through the first message transmission link corresponding to the first service module, and transmitting a second message instruction to the second service module through the second message transmission link corresponding to the second service module, includes: Generate a first message instruction carrying first status information and first service module information, and generate a second message instruction carrying second status information and second service module information, wherein the first status information is used to indicate that the service transmission link between the first service module and the processor is in a fault state, the first service module information is used to indicate the second service module, the second status information is used to indicate that the service transmission link between the second service module and the processor is in a working state, and the second service module information is used to indicate the first service module. The first message instruction is transmitted through the first message transmission link, and the second message instruction is transmitted through the second message transmission link.
4. The method according to claim 1, characterized in that, The transmission of service data between the first service module and the data transmission link and the second service transmission link includes at least one of the following: The first service data is transmitted to the second service module via the second service transmission link, wherein the first service data is used to instruct the second service module to transmit the first service data to the first service module via the data transmission link; The system receives second service data transmitted via the second service transmission link, wherein the second service data is transmitted from the first service module to the second service module via the data transmission link, and the second service data is used to instruct the second service module to transmit the second service data to the processor.
5. A method for transmitting business data, characterized in that, Applied to the first service module, the method for transmitting the service data includes: The receiving processor transmits a first message instruction to the first service module through a first message transmission link corresponding to the first service module. The processor, the first service module, and the second service module are deployed on a server. A service transmission link and a message transmission link are established between the processor and each service module. The service transmission link is used to transmit service data, and the message transmission link is used to transmit message instructions. The first message instruction is transmitted when the processor detects a fault in the first service transmission link with the first service module and identifies the second service module. The second service transmission link corresponding to the second service module is in a working state. The first message instruction is used to instruct the establishment of a data transmission link between the first service module and the second service module. In response to the first message instruction, establish the data transmission link with the second service module; Service data is transmitted between the processor and the data transmission link and the second service transmission link. The step of responding to the first message instruction and establishing the data transmission link with the second business module includes: determining the second business module from the business modules connected to the first business module via a computing power sharing link according to the first message instruction; converting the target computing power sharing link connected to the second business module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second business module and the first business module.
6. The method according to claim 5, characterized in that, The step of determining the second service module from the service modules connected to the first service module via a computing power sharing link according to the first message instruction includes: Identify the first status information carried in the first message instruction, wherein the first status information is used to indicate the working status of the service transmission link between the first service module and the processor; When the first status information indicates that the service transmission link between the first service module and the processor is in a fault state, the service module indicated by the first service module information carried in the first message instruction is identified as the second service module.
7. The method according to claim 5, characterized in that, The step of converting the target computing power sharing link connected to the second business module into the data transmission link includes: Obtain the pre-stored target data transmission protocol; The transmission protocol used on the target computing power sharing link is converted into the target data transmission protocol to obtain the data transmission link.
8. A method for transmitting business data, characterized in that, Applied to the second service module, the method for transmitting the service data includes: The receiving processor transmits a second message instruction to the second service module through the second message transmission link corresponding to the second service module. The processor, the first service module, and the second service module are deployed on a server. A service transmission link and a message transmission link are established between the processor and each service module. The service transmission link is used to transmit service data, and the message transmission link is used to transmit message instructions. The second message instruction is transmitted when the processor detects a fault in the first service transmission link with the first service module and identifies the second service module. The second service transmission link corresponding to the second service module is in a working state. The second message instruction is used to instruct the establishment of a data transmission link between the first service module and the second service module. In response to the second message instruction, establish the data transmission link with the first service module; The first service module and the processor are transmitted through the data transmission link and the second service transmission link; The step of responding to the second message instruction and establishing the data transmission link with the first service module includes: determining the first service module from the service modules connected to the second service module via a computing power sharing link according to the second message instruction; converting the target computing power sharing link connected to the first service module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second service module and the first service module.
9. The method according to claim 8, characterized in that, The step of determining the first service module from the service modules connected to the second service module via a computing power sharing link according to the second message instruction includes: Identify the second status information carried in the second message instruction, wherein the second status information is used to indicate the working status of the service transmission link between the second service module and the processor; When the second status information indicates that the service transmission link between the second service module and the processor is in a working state, the service module indicated by the second service module information carried in the second message instruction is identified as the first service module.
10. The method according to claim 8, characterized in that, The step of converting the target computing power sharing link connected to the first service module into the data transmission link includes: Obtain the pre-stored target data transmission protocol; The transmission protocol used on the target computing power sharing link is converted into the target data transmission protocol to obtain the data transmission link.
11. A server, characterized in that, include: Processor, first service module and second service module, wherein, The processor establishes a service transmission link and a message transmission link with each service module. The service transmission link is used to transmit service data, and the message link is used to transmit message instructions. The processor is configured to, upon detecting a fault in the first service transmission link between the first service module and the first service module, determine the second service module, wherein the second service transmission link corresponding to the second service module is in a working state; transmit a first message instruction to the first service module through the first message transmission link corresponding to the first service module, and transmit a second message instruction to the second service module through the second message transmission link corresponding to the second service module, wherein both the first message instruction and the second message instruction are used to instruct the establishment of a data transmission link between the first service module and the second service module; and transmit service data between the processor and the first service module through the data transmission link and the second service transmission link corresponding to the second service module. The first service module is configured to receive the first message instruction; respond to the first message instruction to establish the data transmission link with the second service module; and transmit service data with the processor through the data transmission link and the second service transmission link. The second service module is configured to receive the second message instruction; respond to the second message instruction to establish the data transmission link with the first service module; and transmit service data between the first service module and the processor through the data transmission link and the second service transmission link. Multiple business modules are deployed on the server, among which, The processor is further configured to select a third service module from the plurality of service modules, wherein the third service module is connected to the first service module via a computing power sharing link, and the third service transmission link corresponding to the third service module is in operation, the computing power sharing link being used to enable the sharing of computing power between the third service module and the first service module; and to select a service module whose service volume is less than the target service volume from the third service module as the second service module; The first service module is further configured to determine the second service module from the service modules connected to the first service module through the computing power sharing link according to the first message instruction; and convert the target computing power sharing link connected to the second service module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second service module and the first service module; The second service module is further configured to determine the first service module from the service modules connected to the second service module via the computing power sharing link according to the second message instruction; and convert the target computing power sharing link connected to the first service module into the data transmission link.
12. The server according to claim 11, characterized in that, The first service module is configured with a first cache, and the second service module is configured with a second cache, wherein the first cache is used to store the first message instruction, and the second cache is used to store the second message instruction.
13. A business data transmission device, characterized in that, Applied to a processor, the data transmission device includes: The determination module is used to determine the second service module when the first service transmission link between the processor and the first service module is detected to be in a fault state. The processor, the first service module and the second service module are deployed on the server. The processor establishes a service transmission link and a message transmission link with each service module. The service transmission link is used to transmit service data and the message link is used to transmit message instructions. The second service transmission link corresponding to the second service module is in a working state. A first transmission module is configured to transmit a first message instruction to the first service module via a first message transmission link corresponding to the first service module, and to transmit a second message instruction to the second service module via a second message transmission link corresponding to the second service module, wherein both the first message instruction and the second message instruction are used to instruct the establishment of a data transmission link between the first service module and the second service module; the first service module is configured to determine the second service module from service modules connected to the first service module via a computing power sharing link according to the first message instruction; and convert the target computing power sharing link connected to the second service module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second service module and the first service module; the second service module is configured to determine the first service module from service modules connected to the second service module via a computing power sharing link according to the second message instruction; and convert the target computing power sharing link connected to the first service module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second service module and the first service module; The second transmission module is used to transmit service data with the first service module through the data transmission link and the second service transmission link.
14. A business data transmission device, characterized in that, The data transmission device, applied to the first service module, includes: The first receiving module is configured to receive a first message instruction transmitted by the processor to the first service module through a first message transmission link corresponding to the first service module. The processor, the first service module, and the second service module are deployed on a server. A service transmission link and a message transmission link are established between the processor and each service module. The service transmission link is used to transmit service data, and the message transmission link is used to transmit message instructions. The first message instruction is transmitted when the processor detects a fault in the first service transmission link with the first service module and identifies the second service module. The second service transmission link corresponding to the second service module is in a working state. The first message instruction is used to instruct the establishment of a data transmission link between the first service module and the second service module. The first processing module is configured to respond to the first message instruction and establish the data transmission link with the second service module; The third transmission module is used to transmit service data with the processor through the data transmission link and the second service transmission link; The first processing module includes: a first determining unit, configured to determine the second business module from business modules connected to the first business module via a computing power sharing link according to the first message instruction; and a first conversion unit, configured to convert the target computing power sharing link connected to the second business module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second business module and the first business module.
15. A business data transmission device, characterized in that, The data transmission device for the second service module includes: The second receiving module is used to receive a second message instruction transmitted by the processor to the second service module through the second message transmission link corresponding to the second service module. The processor, the first service module, and the second service module are deployed on a server. A service transmission link and a message transmission link are established between the processor and each service module. The service transmission link is used to transmit service data, and the message transmission link is used to transmit message instructions. The second message instruction is transmitted when the processor detects that the first service transmission link with the first service module is in a fault state and determines that the second service module is located. The second service transmission link corresponding to the second service module is in a working state. The second message instruction is used to instruct the establishment of a data transmission link between the first service module and the second service module. The second processing module is used to respond to the second message instruction and establish the data transmission link with the first service module; The fourth transmission module is used to transmit service data between the first service module and the processor through the data transmission link and the second service transmission link; The second processing module includes: a second determining unit, configured to determine the first business module from business modules connected to the second business module via a computing power sharing link according to the second message instruction; and a second conversion unit, configured to convert the target computing power sharing link connected to the first business module into the data transmission link, wherein the target computing power sharing link is used to realize the sharing of computing power between the second business module and the first business module.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4, or the steps of the method according to any one of claims 5 to 7, or the steps of the method according to any one of claims 8 to 10.
17. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 4, or the steps of the method described in any one of claims 5 to 7, or the steps of the method described in any one of claims 8 to 10.
Citation Information
Patent Citations
Network equipment and link conversion method and device
CN109302359A
Rear-end load balancing method, device and system and storage medium
CN111565216A