Data transmission control system, method, electronic device, and storage medium
By coordinating the transmission and monitoring modules of the dual-node control system, faults are detected and backup modules are restarted or switched, thus solving the problem of data transmission reliability between the business host and storage devices and realizing data transmission recovery in the event of a fault.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2023-06-28
- Publication Date
- 2026-06-23
AI Technical Summary
In existing technologies, the reliability of data transmission between business hosts and storage devices is low. Data transmission errors or losses may lead to significant losses, and redundant storage cannot guarantee the correctness of data transmission.
A dual-node control system is adopted. The transmission module and monitoring module of the first and second control devices work together. When a fault occurs, the monitoring module synchronizes information, triggers the faulty module to restart or switches to the backup module for data transmission, and ensures the restoration of the communication link.
In the event of a failure of one or both control devices, data transmission can be quickly restored, data transmission errors can be avoided, and the reliability of data transmission between the business host and storage devices can be improved.
Smart Images

Figure CN116795580B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of server technology, and more specifically, to a data transmission control system, method, electronic device, and storage medium. Background Technology
[0002] Many enterprises use dedicated storage devices to store critical data, which places high demands on the reliability of data transmission between the mainframe and the storage devices. Even a small error or loss in data transmission can cause significant damage. Relying on redundant data storage not only drastically reduces data transmission speed but also fails to guarantee data accuracy, as the redundant data may also be corrupted or lost during transmission.
[0003] Therefore, improving the reliability of data transmission between business hosts and storage devices has become a pressing technical problem for the industry. Summary of the Invention
[0004] This application provides a data transmission control system, method, electronic device, and storage medium to solve the technical problem of how to improve the reliability of data transmission between a business host and a storage device.
[0005] This application provides a data transmission control system, including a first control device and a second control device interconnected with each other; each control device is connected to a storage device and is used to control the reading or writing of data on the storage device; each control device is provided with a transmission module and a monitoring module;
[0006] The monitoring module of the first control device is used to send the port configuration information of the transmission module to the second control device when a fault is detected in the transmission module of the first control device, so that the second control device can perform data transmission based on the port configuration information; or, if it is determined that both the transmission modules of the first control device and the transmission modules of the second control device are faulty, it triggers the transmission module of the first control device to restart.
[0007] In some embodiments, each control device is connected to a switching device;
[0008] The monitoring module of the first control device is used to disconnect the communication link between the transmission module of the first control device and the switching device when a fault is detected in the transmission module of the first control device; and to send the operational fault information of the transmission module of the first control device and the port configuration information to the second control device.
[0009] The monitoring module of the second control device is used to send the port configuration information to the transmission module of the second control device when it receives the operation fault information, so that the transmission module of the second control device can establish a communication link with the switching device and perform data transmission based on the port configuration information.
[0010] In some embodiments, if the transmission module of the first control device successfully restarts, it re-establishes the communication link with the switching device based on the port configuration information;
[0011] The monitoring module of the first control device is also used to send a restart success message of the transmission module of the first control device to the monitoring module of the second control device when the transmission module of the first control device restarts successfully.
[0012] The monitoring module of the second control device is also used to send the restart success information to the transmission module of the second control device, so that the transmission module of the second control device disconnects the communication link with the switching device.
[0013] In some embodiments, the monitoring module of the first control device is further configured to generate operational fault information of the transmission module of the first control device when a fault is detected in the transmission module of the first control device, and send the operational fault information to the second control device;
[0014] Receive operational fault information of the transmission module of the second control device sent by the monitoring module of the second control device;
[0015] Based on the operational fault information of the transmission module of the first control device and the operational fault information of the transmission module of the second control device, it is determined that all transmission modules in the data transmission control system have failed.
[0016] The transmission module of the first control device is triggered to restart, and the communication link between the transmission module of the first control device and the switching device is maintained.
[0017] Accordingly, if the monitoring module of the second control device determines that all transmission modules in the data transmission control system have failed, it will trigger the transmission modules of the second control device to restart.
[0018] The first control device and the second control device are interconnected based on at least one of optical fiber, network cable and wireless network.
[0019] In some embodiments, each control device is provided with a communication module connected to the switching device, and a direct memory access area corresponding to the communication module;
[0020] The direct memory access area is used to store transmission control information and port control information;
[0021] The transmission module and the monitoring module of each control device are both used to access the direct memory access region.
[0022] In some embodiments, the monitoring module of the first control device is further configured to obtain the transmission control information and the port control information from the direct memory access area when it is determined that all transmission modules in the data transmission control system have failed.
[0023] Based on the transmission control information, the communication module is controlled to stop data transmission;
[0024] Based on the port control information, the communication module is controlled to maintain the communication link between the transmission module of the first control device and the switching device.
[0025] This application provides a data transmission control method, applied to the monitoring module in the first control device, comprising:
[0026] If a fault is detected in the transmission module of the first control device, the communication link between the transmission module of the first control device and the switching device shall be disconnected.
[0027] The first control device sends its transmission module's operational fault information and the port configuration information to the second control device, so that the second control device's transmission module can establish a communication link with the switching device and perform data transmission based on the port configuration information.
[0028] In some embodiments, it also includes:
[0029] If a fault is detected in the transmission module of the first control device, the fault information of the transmission module of the first control device is sent to the monitoring module of the second control device.
[0030] Receive operational fault information of the transmission module of the second control device sent by the monitoring module of the second control device;
[0031] Based on the operational fault information of the transmission module of the first control device and the operational fault information of the transmission module of the second control device, it is determined that all transmission modules in the data transmission control system have failed.
[0032] The transmission module of the first control device is triggered to restart, and the communication link between the transmission module of the first control device and the switching device is maintained.
[0033] This application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the data transmission control method.
[0034] This application provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the data transmission control method described above.
[0035] The data transmission control system, method, electronic device, and storage medium provided in this application employ a first control device and a second control device to control data reading or writing to the storage device. Each control device internally includes a transmission module and a monitoring module. The monitoring module monitors the operating status of the transmission module and synchronizes information. If the transmission module of the first control device detects a fault, the second control device initiates data transmission. If both the transmission modules of the first and second control devices are found to be faulty, the transmission modules are restarted to restore data transmission control. This enables the data transmission control system to take corresponding measures to restore data transmission control in the event of a single control device failure or a failure of both control devices, preventing data transmission errors and improving the reliability of data transmission between the service host and the storage device. Attached Figure Description
[0036] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0037] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is a schematic diagram of the data transmission control system provided in this application;
[0039] Figure 2 This is a schematic diagram of the direct memory access region provided in this application;
[0040] Figure 3 This is one of the flowcharts illustrating the data transmission control method provided in this application;
[0041] Figure 4 This is a storage service topology diagram provided in this application;
[0042] Figure 5 This is a schematic diagram of the fault handling strategy for a single control device provided in this application;
[0043] Figure 6 This is the second flowchart illustrating the data transmission control method provided in this application;
[0044] Figure 7 This is a schematic diagram of the fault handling strategy for dual-control equipment provided in this application;
[0045] Figure 8 This is a schematic diagram of the structure of the electronic device provided in this application. Detailed Implementation
[0046] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0047] It should be noted that the terms "first," "second," etc., used in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0048] Figure 1 This is a schematic diagram of the data transmission control system provided in this application, as shown below. Figure 1 As shown, the data transmission control system 100 includes a first control device 110 and a second control device 120 that are interconnected; each control device is connected to a storage device and is used to control the reading or writing of data on the storage device.
[0049] Both the first control device 110 and the second control device 120 are equipped with a transmission module 101 and a monitoring module 102. The monitoring module 102 of the first control device 110 is used to send the port configuration information of the transmission module 101 to the second control device 120 when a fault is detected in the transmission module 101 of the first control device 110, so that the second control device 120 can perform data transmission based on the port configuration information. Alternatively, if it is determined that both the transmission module 101 of the first control device 110 and the transmission module 101 of the second control device 120 have failed, it triggers the transmission module 101 of the first control device 110 to restart.
[0050] Specifically, the storage device in this application embodiment can be a computer, server, or server cluster with data storage function.
[0051] The data transmission control system connects to the storage device and the business host, primarily controlling the data transmission process between the business host and the storage device, i.e., providing a data transmission channel. The business host is a computer or server that processes business data. The data transmission process includes writing data generated by the business host to the storage device and reading data from the storage device to the business host.
[0052] Structurally, the data transmission control system includes redundantly configured first and second control devices. Specifically, the first and second control devices can be computers or similar devices with data transmission control functions. The hardware and software configurations of the first and second control devices are identical, together forming a dual-node control system, where each control device can function as a control node.
[0053] Both the first and second control devices are connected to the storage device and are used to control the reading or writing of data to the storage device. The connection between the control devices and the storage device can use fiber optic cables or network cables to achieve high-speed data transmission. The first and second control devices are also interconnected, which can be achieved through wired connections such as fiber optic cables or network cables, or through wireless networks, enabling information exchange between the control devices.
[0054] Each control device is equipped with a transmission module and a monitoring module. The transmission module is mainly used for data transmission, writing data to or reading data from the storage device. The monitoring module is mainly used to monitor the operating status of the transmission module.
[0055] The transmission module and monitoring module can be hardware modules installed in the control device, or they can be application programs running in the control device. If both the transmission module and the monitoring module are hardware modules, the monitoring module can interact with the transmission module to obtain its operating status. If both the transmission module and the monitoring module are application programs, the monitoring module can monitor the process corresponding to the transmission module to obtain its operating status.
[0056] A port is the communication exit point between a control device and a service host, or a switch connected to a service host. Ports can be virtual or physical. Port configuration information includes the port number and port type. Each control device's transmission module establishes a communication link with the service host through this port configuration information, thereby enabling data transmission.
[0057] If the monitoring module of the first control device detects a fault in its transmission module, it sends the port configuration information of the transmission module to the second control device. Upon receiving the port configuration information, the second control device can generate a virtual port corresponding to the configuration information, and continue data transmission between the service host and the storage device through this virtual port.
[0058] In addition, the monitoring modules of the first and second control devices also synchronize information. That is, if a fault is detected in the transmission module of the first control device, the monitoring module will send the fault information of the transmission module to the monitoring module of the other control device.
[0059] Taking a first control device currently transmitting data as an example, its monitoring module might detect a fault in its transmission module and send fault information to the second control device's monitoring module. Simultaneously, it might receive fault information from the second control device's monitoring module regarding its transmission module's operation. In other words, both transmission modules in the data transmission control system might be faulty. The first control device's monitoring module can determine that all transmission modules are faulty based on its own fault information and the received fault information from the second control device's transmission module. In this case, it can trigger a restart of the first control device's transmission modules. Similarly, the second control device's monitoring module can also trigger a restart of its transmission modules.
[0060] After restarting, the first and second control devices resume control over data reading or writing to the storage device.
[0061] The data transmission control system provided in this application uses a first control device and a second control device to control data reading or writing to the storage device. Each control device internally includes a transmission module and a monitoring module. The monitoring module monitors the operating status of the transmission module and synchronizes information. If the transmission module of the first control device detects a fault, the second control device initiates data transmission. If both the transmission modules of the first and second control devices are found to be faulty, the transmission modules are restarted to restore data transmission control. This allows the data transmission control system to take corresponding measures to restore data transmission control in the event of a single control device failure or a failure of both control devices, preventing data transmission errors and improving the reliability of data transmission between the service host and the storage device.
[0062] In some embodiments, each control device is connected to a switching device;
[0063] The monitoring module of the first control device is used to disconnect the communication link between the transmission module of the first control device and the switching device when a fault is detected in the transmission module of the first control device; and to send the operational fault information and port configuration information of the transmission module of the first control device to the second control device.
[0064] The monitoring module of the second control device is used to send port configuration information to the transmission module of the second control device when it receives operational fault information, so that the transmission module of the second control device can establish a communication link with the switching device and perform data transmission based on the port configuration information.
[0065] Specifically, the first and second control devices can be connected to the service host via switching equipment. Switching equipment may include fiber optic (FC) switches, etc.
[0066] A communication link is the physical channel between two devices in a network. Each control device can establish a communication link with a switching device to enable data transmission.
[0067] The monitoring module of the first control device monitors for operational faults in the transmission module within the control device. Upon detecting a fault in the transmission module, it disconnects the communication link between the transmission module and the switching device, for example, by shutting down the fiber optic interface in the control device that connects to the switching device. The monitoring module of the first control device generates operational fault information and port configuration information for the transmission module, and sends this information to the second control device via a connection.
[0068] Upon receiving the operational fault information, the monitoring module of the second control device determines that the transmission module of the first control device has failed, and then sends the port configuration information to the transmission module of the second control device.
[0069] The transmission module of the second control device generates a virtual port with the same configuration as the port used by the transmission module of the first control device through the port configuration information, and logs into the switching device through the virtual port to establish a communication link with the switching device and perform data transmission.
[0070] From the perspective of the business host, the port configuration information has not changed, and the port for data transmission has not changed. Therefore, the communication connection with the storage device will not be interrupted, and data transmission will continue.
[0071] The data transmission control system provided in this application embodiment enables the second control device to establish a communication link with the switching device and perform data transmission when the transmission module of the first control device detects a fault in the transmission module of the first control device. The generated communication link has the same port configuration as the disconnected communication link, which allows the data transmission control system to take corresponding measures to restore data transmission control when a single control device fails, without generating data transmission errors, thus improving the reliability of data transmission between the service host and the storage device.
[0072] In some embodiments, if the transmission module of the first control device successfully restarts, it re-establishes the communication link with the switching device based on the port configuration information.
[0073] The monitoring module of the first control device is also used to send a restart success message of the transmission module of the first control device to the monitoring module of the second control device when the transmission module of the first control device restarts successfully.
[0074] The monitoring module of the second control device is also used to send a successful restart message to the transmission module of the second control device, so that the transmission module of the second control device disconnects the communication link with the switching device.
[0075] Specifically, when the transmission module of the first control device malfunctions, the fault is typically cleared by restarting, including hardware or software restarts. If the restart is successful, the communication link with the switching device is re-established based on the previous port configuration information.
[0076] Upon successful restart of the transmission module of the first control device, the monitoring module of the first control device sends a restart success message to the monitoring module of the second control device. The monitoring module of the second control device then sends this restart success message to its own transmission module, causing the transmission module to disconnect its communication link with the switching device. Through this mechanism, the first control device resumes control of the data transmission process.
[0077] The data transmission control system provided in this application re-establishes the communication link when the transmission module of the first control device restarts successfully. Through information interaction between monitoring modules, the second control device disconnects the communication link established through the virtual port, enabling the data transmission control system to continue data transmission, writing data to or reading data from the storage device without generating data transmission errors, thus improving the reliability of data transmission between the business host and the storage device.
[0078] In some embodiments, the monitoring module of the first control device is further configured to generate operational fault information of the transmission module of the first control device and send the operational fault information to the second control device when a fault is detected in the transmission module of the first control device.
[0079] Receive operational fault information of the transmission module of the second control device sent by the monitoring module of the second control device;
[0080] Based on the operational fault information of the transmission module of the first control device and the operational fault information of the transmission module of the second control device, it is determined that all transmission modules in the data transmission control system have failed.
[0081] Trigger the transmission module of the first control device to restart, and maintain the communication link between the transmission module of the first control device and the switching device;
[0082] Accordingly, if the monitoring module of the second control device determines that all transmission modules in the data transmission control system have failed, it will trigger the transmission modules of the second control device to restart.
[0083] Specifically, when the monitoring module of the first control device detects a fault in the transmission module of the first control device, it generates operational fault information for the transmission module of the first control device and sends it to the monitoring module of the second control device. Simultaneously, the monitoring module of the first control device may also receive operational fault information for the transmission module of the second control device from the monitoring module of the second control device.
[0084] Based on the operational fault information of the transmission module of the first control device and the operational fault information of the transmission module of the second control device, the monitoring module of the first control device will determine that all transmission modules in the data transmission control system have failed.
[0085] At this time, the monitoring module in the data transmission control system will trigger the corresponding transmission module to quickly restart. For the monitoring module of the first control device, since the transmission module of the first control device is controlling the data transmission process, the monitoring module also controls the communication link between the transmission module of the first control device and the switching device, ensuring that the communication link remains open so that data can be transmitted directly through this communication link after the transmission module of the first control device quickly restarts.
[0086] Similarly, for the monitoring module of the second control device, based on the generated operational fault information of the transmission module of the second control device and the received operational fault information of the transmission module of the first control device, this module will also determine that all transmission modules in the data transmission control system have failed. At this time, the monitoring module of the second control device will also trigger the transmission module of the second control device to restart, so as to restore the transmission function.
[0087] The data transmission control system provided in this application restarts the transmission modules to restore data transmission control when both the transmission modules of the first control device and the second control device fail. This enables the data transmission control system to take corresponding measures to restore data transmission control even when both control devices fail, preventing data transmission errors and improving the reliability of data transmission between the service host and the storage device.
[0088] In some embodiments, each control device is provided with a communication module connected to the switching device, and a direct memory access area corresponding to the communication module;
[0089] The direct memory access area is used to store transfer control information and port control information;
[0090] The transmission module and monitoring module of each control device are used to access the direct memory access area.
[0091] Specifically, each control device can be equipped with a dedicated communication module that connects to the switching equipment. For example, when the switching equipment is a fiber optic switch, the control device can be configured with a fiber optic communication module to establish a fiber optic communication link with the fiber optic switch, thereby enabling data transmission.
[0092] When a communication module is connected to each control device, each control device can create a Direct Memory Access (DMA) region in the system memory corresponding to the communication module. Transmission control information and port control information are stored in the DMA region.
[0093] Transmission control information controls the transmission of data for writing and reading from the storage device. Port control information controls the ports in the communication module of the control device, such as port control commands and register addresses.
[0094] Both the transmission module and the monitoring module of each control device are used to access the direct memory access area. In other words, both the transmission module and the monitoring module can control the port and control whether data is written to or read from the storage device.
[0095] Figure 2 This is a schematic diagram of the direct memory access region provided in this application, such as... Figure 2 As shown, taking the first control device as an example, this control device is equipped with a fiber optic communication module (also known as a fiber optic communication card). After the fiber optic communication module is inserted into the first control device, the first control device allocates a space in its memory as the direct memory access area corresponding to the module. The dashed lines in the figure represent the access relationship.
[0096] The direct memory access region can be further divided into the first direct memory access sub-region 210 and the second direct memory access sub-region 220.
[0097] The first direct memory access sub-area is primarily used to store data received by the transmission module of the first control device. This data is then sent to a storage device or a switching device, and after being forwarded by the switching device, it is sent to the service host. The first direct memory access sub-area allows access by the transmission module.
[0098] The second direct memory access sub-region is primarily used to store transmission control information and port control information. This sub-region is shared by both the transmission module and the monitoring module, allowing access from both modules.
[0099] The storage capacity of the first direct memory access sub-region is greater than that of the second direct memory access sub-region, allowing the direct memory access region to provide more storage resources for data transmission, thus avoiding waste of storage resources. At the same time, a small portion of storage resources is reserved for sharing by the two modules, enabling both modules to operate on the port through the information stored in the memory space.
[0100] The data transmission control system provided in this application embodiment allows the transmission module and the monitoring module to access each other by setting a direct memory access area in the memory space of the control device. This enables both modules to operate on the port, so that the monitoring module can also operate on the port when the transmission module fails, thereby improving the reliability of data transmission between the service host and the storage device.
[0101] In some embodiments, the monitoring module of the first control device is further configured to obtain transmission control information and port control information from the direct memory access area when it is determined that all transmission modules in the data transmission control system have failed.
[0102] Based on the transmission control information, the control communication module stops data transmission;
[0103] Based on port control information, the control communication module maintains the communication link between the transmission module of the first control device and the switching device.
[0104] Specifically, when it is determined that all transmission modules in the data transmission control system have failed, the monitoring module of the first control device not only triggers the transmission modules of the first control device to quickly restart, but also obtains transmission control information and port control information from the direct memory access area of the first control device.
[0105] The monitoring module controls the communication module to stop data transmission based on the transmission control information; based on the port control information, it controls the communication module to maintain the communication link between the transmission module of the first control device and the switching device, so that after the transmission module restarts quickly, it can directly use the maintained communication link to transmit data, saving the time of re-establishing the communication link, reducing system overhead, and improving the reliability of data transmission between the service host and the storage device.
[0106] Figure 3 This is one of the flowcharts illustrating the data transmission control method provided in this application, such as... Figure 3 As shown, the method is applied to the monitoring module in the first control device in the above embodiment, including:
[0107] Step 310: If a fault is detected in the transmission module of the first control device, disconnect the communication link between the transmission module of the first control device and the switching device.
[0108] Step 320: Send the operation fault information and port configuration information of the transmission module of the first control device to the second control device, so that the transmission module of the second control device can establish a communication link with the switching device and perform data transmission based on the port configuration information.
[0109] Specifically, Figure 4This is a storage service topology diagram provided in this application, such as... Figure 4 As shown, the system includes a data transmission control system 100, a storage device 430, a fiber optic switch 410, and a service host 420. The data transmission control system 100 includes a first control device 110 and a second control device 120 (connection relationship not shown) that are interconnected. Solid lines in the figure represent fiber optic links.
[0110] Figure 5 This is a schematic diagram of the fault handling strategy for a single control device provided in this application, such as... Figure 5 As shown, with each control device as a control node, the data transmission control system executes the following strategy:
[0111] The monitoring module of the first control device starts up and establishes the intrinsic representation data structure Aport[N] for the fiber optic ports (FC ports). Aport can be an array, and N represents the number of FC ports. Each FC port corresponds to an element in Aport and is mapped to the DMA memory region in the first control device. Then, the monitoring module starts the transmission module.
[0112] The transmission module starts up, establishes the internal representation data structure Bport[N] for the FC port, where Bport can be an array. It then logs into the switch, establishes a fiber optic connection with the service host, and begins data transmission.
[0113] If the first control device (current node) fails, specifically its transmission module, its monitoring module will detect the failure. The monitoring module will then disable the FC port of that control device and send the failure information to the second control device (peer node).
[0114] The second control device will emulate the same FC port number as the first control device on its FC port, log in to the switch, and maintain the FC connection with the service host without interruption, and then transmit data.
[0115] Once the transmission module of the first control device restarts successfully, the monitoring module will notify the second control device of a successful restart. The second control device will deregister the virtual FC port, and the recovered faulty node will re-register the FC port to the switch. The FC link with the service host will remain in place, and data transmission services will not be interrupted.
[0116] The data transmission control method provided in this application embodiment enables the second control device to establish a communication link with the switching device and perform data transmission when the transmission module of the first control device detects a fault in the transmission module of the first control device. The generated communication link has the same port configuration as the disconnected communication link, which allows the data transmission control system to take corresponding measures to restore data transmission control when a single control device fails, without generating data transmission errors, thus improving the reliability of data transmission between the service host and the storage device.
[0117] Figure 6 This is the second flowchart illustrating the data transmission control method provided in this application, as shown below. Figure 6 As shown, the method also includes:
[0118] Step 610: If a fault is detected in the transmission module of the first control device, send the operational fault information of the transmission module of the first control device to the monitoring module of the second control device;
[0119] Step 620: Receive the operation fault information of the transmission module of the second control device sent by the monitoring module of the second control device;
[0120] Step 630: Based on the operational fault information of the transmission module of the first control device and the operational fault information of the transmission module of the second control device, determine that all transmission modules in the data transmission control system have failed.
[0121] Step 640: Trigger the restart of the transmission module of the first control device and maintain the communication link between the transmission module of the first control device and the switching device.
[0122] Specifically, Figure 7 This is a schematic diagram of the fault handling strategy for dual-control equipment provided in this application, such as... Figure 7 As shown, if both control devices fail, the monitoring module of each control device receives a failure message from the transmission module. The two control device monitoring modules then synchronize their information. Next, each monitoring module uses shared DMA memory data to suspend any unfinished data transmissions and quickly resets the link. A few seconds later, the transmission module restarts successfully, and the FC link with the service host remains active, ensuring uninterrupted data transmission.
[0123] The data transmission control method provided in this application restarts the transmission modules to restore data transmission control when both the transmission modules of the first control device and the second control device are found to be faulty. This enables the data transmission control system to take corresponding measures to restore data transmission control even when both control devices are faulty, preventing data transmission errors and improving the reliability of data transmission between the service host and the storage device.
[0124] Figure 8 This is a schematic diagram of the structure of the electronic device provided in this application, such as... Figure 8 As shown, the electronic device may include a processor 810, a communications interface 820, a memory 830, and a communications bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other via the communications bus 840. The processor 810 can call logical commands stored in the memory 830 to execute the methods described in the above embodiments, for example:
[0125] If a fault is detected in the transmission module of the first control device, the communication link between the transmission module of the first control device and the switching device is disconnected; the fault information and port configuration information of the transmission module of the first control device are sent to the second control device, so that the transmission module of the second control device can establish a communication link with the switching device based on the port configuration information and perform data transmission.
[0126] Alternatively, if a fault is detected in the transmission module of the first control device, the system sends the operational fault information of the transmission module of the first control device to the monitoring module of the second control device; receives the operational fault information of the transmission module of the second control device sent by the monitoring module of the second control device; based on the operational fault information of the transmission modules of the first and second control devices, it determines that all transmission modules in the data transmission control system have failed; triggers the transmission module of the first control device to restart, and maintains the communication link between the transmission module of the first control device and the switching device.
[0127] Furthermore, when the logical commands in the aforementioned memory can be implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several commands to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0128] The processor in the electronic device provided in this application embodiment can call logical instructions in the memory to implement the above method. Its specific implementation method is the same as the aforementioned method implementation method and can achieve the same beneficial effect, which will not be repeated here.
[0129] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the methods provided in the above embodiments.
[0130] The specific implementation method is the same as the aforementioned method implementation method and can achieve the same beneficial effects, so it will not be repeated here.
[0131] This application provides a computer program product, including a computer program that, when executed by a processor, implements the method described above.
[0132] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0133] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, 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 can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A data transmission control system, characterized in that, It includes a first control device and a second control device that are interconnected; each control device is connected to a storage device and is used to control the reading or writing of data to the storage device; each control device is equipped with a transmission module and a monitoring module; The monitoring module of the first control device is used to send the port configuration information of the transmission module to the second control device when a fault is detected in the transmission module of the first control device, so that the second control device can perform data transmission based on the port configuration information; or, if it is determined that both the transmission module of the first control device and the transmission module of the second control device are faulty, it triggers the transmission module of the first control device to restart. The monitoring module of the first control device is also used for: If a fault is detected in the transmission module of the first control device, an operational fault information of the transmission module of the first control device is generated and the operational fault information is sent to the second control device. Receive operational fault information of the transmission module of the second control device sent by the monitoring module of the second control device; Based on the operational fault information of the transmission module of the first control device and the operational fault information of the transmission module of the second control device, it is determined that all transmission modules in the data transmission control system have failed. The transmission module of the first control device is triggered to restart, and the communication link between the transmission module of the first control device and the switching device is maintained. Accordingly, if the monitoring module of the second control device determines that all transmission modules in the data transmission control system have failed, it will trigger the transmission modules of the second control device to restart. The first control device and the second control device are interconnected based on at least one of optical fiber, network cable and wireless network. Each control device is equipped with a communication module connected to the switching device, and a direct memory access area corresponding to the communication module; The direct memory access area is used to store transmission control information and port control information; The transmission module and the monitoring module of each control device are both used to access the direct memory access region; The monitoring module of the first control device is also used to obtain the transmission control information and the port control information from the direct memory access area when it is determined that all transmission modules in the data transmission control system have failed. Based on the transmission control information, the communication module is controlled to stop data transmission; Based on the port control information, the communication module is controlled to maintain the communication link between the transmission module of the first control device and the switching device.
2. The data transmission control system according to claim 1, characterized in that, Each control device is connected to a switching device; The monitoring module of the first control device is used to disconnect the communication link between the transmission module of the first control device and the switching device when a fault is detected in the transmission module of the first control device; and to send the operational fault information of the transmission module of the first control device and the port configuration information to the second control device. The monitoring module of the second control device is used to send the port configuration information to the transmission module of the second control device when it receives the operation fault information, so that the transmission module of the second control device can establish a communication link with the switching device and perform data transmission based on the port configuration information.
3. The data transmission control system according to claim 2, characterized in that, If the transmission module of the first control device restarts successfully, it re-establishes the communication link with the switching device based on the port configuration information. The monitoring module of the first control device is also used to send a restart success message of the transmission module of the first control device to the monitoring module of the second control device when the transmission module of the first control device restarts successfully. The monitoring module of the second control device is also used to send the restart success information to the transmission module of the second control device, so that the transmission module of the second control device disconnects the communication link with the switching device.
4. A data transmission control method, characterized in that, The monitoring module applied in the first control device according to any one of claims 1 to 3 comprises: If a fault is detected in the transmission module of the first control device, the communication link between the transmission module of the first control device and the switching device shall be disconnected. The first control device sends its transmission module's operational fault information and the port configuration information to the second control device, so that the second control device's transmission module can establish a communication link with the switching device and perform data transmission based on the port configuration information.
5. The data transmission control method according to claim 4, characterized in that, Also includes: If a fault is detected in the transmission module of the first control device, the fault information of the transmission module of the first control device is sent to the monitoring module of the second control device. Receive operational fault information of the transmission module of the second control device sent by the monitoring module of the second control device; Based on the operational fault information of the transmission module of the first control device and the operational fault information of the transmission module of the second control device, it is determined that all transmission modules in the data transmission control system have failed. The transmission module of the first control device is triggered to restart, and the communication link between the transmission module of the first control device and the switching device is maintained.
6. 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 data transmission control method as described in claim 4 or 5.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the data transmission control method as described in claim 4 or 5.