Data transmission method, device, medium and program product
By establishing management communication links and determining the same transmission path between off-site backup sites, the problem of data leakage caused by site anomalies is solved, and the stability and security of data transmission are achieved.
Patent Information
- Application Number
- CN202510714542.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2045-05-30
AI Technical Summary
During the data transmission process, data leakage caused by site abnormalities (such as communication protocol abnormalities, backup sites being attacked by network attacks, etc.) affects the stability of data transmission.
By establishing a management communication link between the first transmission device and the second transmission device, obtaining and determining the port information, and ensuring that both parties have established the same management communication link and target transmission path, data transmission is performed.
Improves the stability of data transmission and avoids data leakage and loss due to site anomalies.
Smart Images

Figure CN120238564B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data transmission method, device, medium and program product. Background Art
[0002] Data security is a crucial issue across all technological fields. Data storage is a crucial component of ensuring data security. Technicians typically set up a backup site in a different location to store data for backup purposes.
[0003] However, the storage method of related off-site backup data may have data leakage problems during the data transmission process due to site anomalies (such as communication protocol anomalies, business sites or backup sites being attacked by network attacks, etc.), thereby affecting the stability of data transmission. Summary of the Invention
[0004] The present application provides a data transmission method, device, medium and program product to at least solve the problem of data leakage caused by site abnormalities during data transmission in the related art, which affects the stability of data transmission.
[0005] This application provides a data transmission method, including:
[0006] Establishing a first management communication link with the second transmission device, obtaining second port information of the second transmission device based on the first management communication link, and determining first port information of the first transmission device;
[0007] Determining a first target transmission path with a second transmission device based on the first port information and the second port information;
[0008] When the second transmission device also establishes a first management communication link with the first transmission device and also determines the first target transmission path based on the first port information and the second port information, in response to receiving the first data transmission instruction, the first target data is sent to the second transmission device based on the first target transmission path.
[0009] This application provides a data transmission method, including:
[0010] Establishing a first management communication link with the first transmission device, obtaining first port information of the first transmission device based on the first management communication link, and determining second port information of the second transmission device;
[0011] determining a first target transmission path based on the first port information and the second port information;
[0012] When the first transmission device also establishes a first management communication link with the second transmission device and also determines a first target transmission path based on the first port information and the second port information, the first target data sent by the first transmission device is received based on the first target transmission path.
[0013] This application also provides a data transmission method, including:
[0014] The first transmission device establishes a first management communication link with the second transmission device, obtains second port information of the second transmission device based on the first management communication link, and determines first port information of the first transmission device;
[0015] The first transmission device determines a first target transmission path between the first transmission device and the second transmission device based on the first port information and the second port information;
[0016] The second transmission device also establishes a first management communication link with the first transmission device, obtains the first port information based on the first management communication link, and determines the second port information;
[0017] The second transmission device also determines a first target transmission path based on the first port information and the second port information;
[0018] In response to receiving the first data transmission instruction, the first transmission device sends the first target data to the second transmission device based on the first target transmission path;
[0019] The second transmission device receives the first target data sent by the first transmission device based on the first target transmission path.
[0020] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned data transmission methods when executing the computer program.
[0021] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned data transmission methods are implemented.
[0022] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned data transmission methods when executed by a processor.
[0023] Through the present application, since the first transmission device establishes a first management communication link with the second transmission device and determines the target transmission path between the first transmission device and the second transmission device based on the first port information of the first transmission device and the second port information of the second transmission device, the target data can be sent to the second transmission device based on the above-mentioned target transmission path only when the second transmission device also establishes the same management communication link and determines the same target transmission path. Therefore, the problem of data leakage caused by site abnormalities during data transmission and the technical problem affecting the stability of data transmission can be solved, and the technical effect of data transmission can be achieved only when the first transmission device and the second transmission device can normally establish management communication links and determine the same target transmission path. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0025] Figure 1 A schematic diagram of the architecture of a data transmission system provided in an embodiment of the present application;
[0026] Figure 2 This is a flowchart of a data transmission method provided in an embodiment of the present application;
[0027] Figure 3 A second flow chart of a data transmission method provided in an embodiment of the present application;
[0028] Figure 4 This is one of the application diagrams of a data transmission method provided in an embodiment of the present application;
[0029] Figure 5 This is a second application diagram of a data transmission method provided in an embodiment of the present application;
[0030] Figure 6 The third application diagram of a data transmission method provided in an embodiment of the present application;
[0031] Figure 7 The third flowchart of a data transmission method provided in an embodiment of the present application;
[0032] Figure 8 A fourth flowchart of a data transmission method provided in an embodiment of the present application;
[0033] Figure 9 One of the flowcharts of another data transmission method provided in an embodiment of the present application;
[0034] Figure 10 One of the flow charts of another data transmission method provided in an embodiment of the present application;
[0035] Figure 11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0037] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0038] Remote Direct Memory Access over Converged Ethernet (RoCE RDMA over ConvergedEthernet) is a technology that applies Remote Direct Memory Access (RDMA) technology to existing Ethernet.
[0039] Remote Direct Memory Access (RDMA) is a high-performance network communication technology that allows computers on a network to exchange main memory data directly without the intervention of the processor, cache, or operating system.
[0040] Internet Protocol (IP) refers to the core protocol of computer network communication, which can realize interconnection and communication between different networks or devices.
[0041] Data security is a crucial issue across various technological fields, from big data management and cloud computing to artificial intelligence. Data storage plays a crucial role in ensuring data security. Specifically, how to efficiently and securely back up data while ensuring that systems can meet real-time business needs is a crucial issue in the data storage field. To ensure data security, technicians typically set up off-site backup sites and store data there for backup purposes.
[0042] For example, when a backup site is used off-site to store data from the storage system of the primary business site, data backup and replication can be performed through multiple physical links (such as fiber optic Ethernet, FC fiber, RoCE fiber optic network, etc.).
[0043] However, the storage method of related off-site backup data may have data leakage problems during the data transmission process due to site anomalies (such as communication protocol anomalies, business sites or backup sites being attacked by network attacks, etc.), thereby affecting the stability of data transmission.
[0044] In order to solve the above problems, the embodiments of the present application provide a data transmission method, device, medium and program product. After the first transmission device establishes a first management communication link with the second transmission device and determines the target transmission path between the first transmission device and the second transmission device based on the first port information of the first transmission device and the second port information of the second transmission device, the first transmission device can respond to the data transmission instruction and send the target data to the second transmission device based on the above target transmission path only when the second transmission device also establishes the same management communication link and determines the same target transmission path. Therefore, data transmission can be performed only when the first transmission device and the second transmission device can normally establish the management communication link and determine the same target transmission path, thereby improving the stability of data transmission.
[0045] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0046] In conjunction with the specific application environment architecture or specific hardware architecture on which the execution of the data transmission method depends, the specific application environment architecture or specific hardware architecture is described here. Figure 1 , Figure 1 A schematic diagram of the architecture of a data transmission system 100 provided in an embodiment of the present application.
[0047] See also Figure 1The data transmission system 100 includes a first transmission device 101 and a second transmission device 102. The first transmission device 101 is configured to establish a management communication link with the second transmission device 102, transmit port information (e.g., the first port information of the first transmission device 101 and the second port information of the second transmission device 102) to the second transmission device 102 based on the management communication link, and determine a target transmission path between the first transmission device 101 and the second transmission device 102 based on the port information. If the second transmission device 102 also establishes a management communication link and determines the same target transmission path, target data is transmitted to the second transmission device 102 via the target transmission path. The second transmission device 102 is configured to establish a management communication link with the first transmission device 101, transmit port information (e.g., the first port information of the first transmission device 101 and the second port information of the second transmission device 102) to the first transmission device 101 based on the management communication link, and determine a target transmission path between the first transmission device 101 and the second transmission device 102 based on the port information. If the first transmission device 101 also establishes a management communication link and determines the same target transmission path, target data is transmitted to the second transmission device 102 via the target transmission path.
[0048] Figure 2 This is one of the flow charts of a data transmission method provided in an embodiment of the present application, such as Figure 2 As shown, an embodiment of the present application provides a data transmission method, which is described in detail as follows:
[0049] S201: Establish a first management communication link with a second transmission device, obtain second port information of the second transmission device based on the first management communication link, and determine first port information of the first transmission device.
[0050] Optionally, the data transmission method provided in this embodiment may be used in a first transmission device.
[0051] Optionally, the first transmission device establishes a first management communication link with the second transmission device, where the first management communication link is used to indicate a data transmission link established via a communication protocol (license). The first transmission device may obtain the second port information of the second transmission device based on the first management communication link and determine the first port information of the first transmission device.
[0052] Optionally, the first transmission device has multiple first nodes and multiple first ports, and the second transmission device has multiple second nodes and multiple second ports. The first transmission device can select one of the multiple first nodes as a first management node, and the second transmission device can select one of the multiple second nodes as a second management node. The first transmission device can establish a management communication link with the second transmission device based on the first management node, and the second transmission device can establish a management communication link with the first transmission device based on the second management node. The port information of each first port in the first transmission device can be referred to as first port information, and the port information of each second port in the second transmission device can be referred to as second port information.
[0053] Optionally, the first transmission device may establish a first management communication link (also referred to as a partnership) with the second transmission device through the stored cluster network.
[0054] S202: Determine a first target transmission path with a second transmission device based on the first port information and the second port information.
[0055] Optionally, the first transmission device creates first port information, obtains multiple paths based on pairing the first port information with second port information of the second transmission device, and determines a first target transmission path with the second transmission device from the multiple paths.
[0056] Optionally, when the port information of a first port on the first transmission device is successfully paired with the port information of a second port on the second transmission device, a path can be formed. If both the first transmission device and the second transmission device have multiple ports, multiple paths can be formed based on the first port information and the second port information.
[0057] S203: When the second transmission device also establishes a first management communication link with the first transmission device and also determines the first target transmission path based on the first port information and the second port information, in response to receiving the first data transmission instruction, the first target data is sent to the second transmission device based on the first target transmission path.
[0058] Optionally, on the basis of establishing a management communication link between the first transmission device and the second transmission device and determining the first target transmission path based on the first port information and the second port information, if the second transmission device also establishes a first management communication link and also determines the same first target transmission path based on the first port information and the second port information, the first transmission device can determine the first target data corresponding to the first data transmission instruction in response to receiving the first data transmission instruction, and send the first target data to the second transmission device based on the first target transmission path.
[0059] It is understandable that, because the first transmission device and the second transmission device construct paths based on the same information (e.g., first port information and second port information), and can determine the target transmission path in the same manner among the multiple constructed paths, the target transmission paths (e.g., first target transmission path) determined by the first transmission device and the second transmission device are also the same. Thus, both parties construct and determine the same transmission path, and can implement data transmission based on this same transmission path. If one party (e.g., the first transmission device and / or the second transmission device) changes (e.g., a change in port information due to a network attack, or a change in the communication protocol), the path changes, meaning that the first and second transmission devices cannot continue to transmit data, thus avoiding data loss or leakage caused by device (or site) anomalies.
[0060] The embodiments of the present application determine the target transmission path between the two ends based on the characteristics of redundant links (such as management communication links), multiple storage nodes (such as first nodes and second nodes), and multiple storage remote replication groups (such as multiple paths) in the transmission equipment, thereby improving the performance of remote replication-based data backup transmission.
[0061] Remote replication of different media has different characteristics. For example, the remote replication function of the storage system of the Ethernet fiber communication (RDMA over Converged Ethernet, RoCE) network is different from that of media such as Ethernet. The RoCE network realizes low-latency, high-throughput direct memory access between the data center and the storage system, while also requiring a zero error rate for data transmission, taking into account the security and performance of data transmission during the remote replication of data. In response to the above problems, the embodiments of the present application can provide a unified port information synchronization process and path selection method for the remote replication path between devices of different media, and add a remote replication function based on the storage system, so it can be applied to remote replication and backup of data of different media.
[0062] Optionally, Figure 3 This is a second flow chart of a data transmission method provided in an embodiment of the present application, such as Figure 3 As shown, after step S201, the following steps are included:
[0063] S301: When detecting that the first port information is updated, sending a management communication link update instruction to the second transmission device, and establishing a second management communication link with the second transmission device;
[0064] S302: Sending a first information acquisition instruction to the second transmission device based on the second management communication link; wherein the first information acquisition instruction is used to control the second transmission device to send first target port information;
[0065] S303: upon receiving the first destination port information sent by the second transmission device, determining a second destination transmission path based on the new first port information and the first destination port information;
[0066] S304: When the second transmission device also establishes a second management communication link with the first transmission device and also determines the second target transmission path based on the new first port information and the first target port information, in response to receiving the second data transmission instruction, the second target data is sent to the second transmission device based on the second target transmission path.
[0067] Optionally, after the first transmission device establishes a first management communication link with the second transmission device and obtains the second port information, if it detects that the first port information of the first transmission device has been updated, the first transmission device sends a management communication link update instruction to the second transmission device. The management communication link update instruction is used to indicate to the peer device that the current management communication link is abnormal and that it is necessary to re-establish the management communication link and redetermine the target transmission path. For example, when the first transmission device sends the management communication link update instruction to the second transmission device, the second transmission device is the peer device, or when the second transmission device sends the management communication link update instruction to the first transmission device, the first transmission device is the peer device.
[0068] Optionally, the first transmission device determines new first port information and establishes a second management communication link with the second transmission device, wherein the new first port information may indicate updated first port information.
[0069] Optionally, when establishing the second management communication link, the first transmission device may update the first management communication link to a stopped state, or delete the first management communication link.
[0070] Optionally, the first transmission device sends a first information acquisition instruction to the second transmission device based on the second management communication link, where the first information acquisition instruction is used to control the second transmission device to send first target port information to the first transmission device. The first target port information is new port information sent by the second transmission device to the first transmission device.
[0071] Optionally, when receiving the first target port information sent by the second transmission device, the first transmission device determines the second target transmission path between itself and the second transmission device based on the new first port information of the first transmission device and the first target port information of the second transmission device.
[0072] It can be understood that when the first port information of the first transmission device is updated, the second target transmission path determined based on the new first port information is different from the first target transmission path.
[0073] Optionally, when the second transmission device also establishes a second management communication link with the first transmission device and also determines the same second target transmission path based on the new first port information and the first target port information, the first transmission device determines the second target data corresponding to the second transmission instruction in response to receiving the second data transmission instruction, and sends the second target data to the second transmission device based on the second target transmission path.
[0074] Similarly, when the second management communication link is established, the second transmission device can also obtain the new first port information of the first transmission device based on the second management communication link, and determine the second target transmission path between the first transmission device and the first transmission device based on the new first port information and the first target port information, so as to receive the second target data sent by the first transmission device based on the second target transmission path when the second management communication link is established and the second target transmission path is determined on the first transmission device.
[0075] Optionally, the reasons for the change in port information include but are not limited to node crash, node recovery, port connection disconnection, port connection connection, port rate change, user plugging or unplugging the network card of the transmission device, etc.
[0076] The prerequisite for establishing a management communication link (or remote replication partnership) between two transmission devices is that the ports (IP / FC / ROCE) of the two transmission devices are configured for remote replication and the service IPs (TCP / IP protocol) of the two systems are interconnected.
[0077] Exemplarily, a first transmission device obtains the service IP address of the second transmission device from the second transmission device and then establishes a remote replication partnership with the second transmission device on the first transmission device. After the partnership is successfully established on the first transmission device, the first transmission device uses the service IP address of the second transmission device to establish a network connection (also known as a management communication link) with the second transmission device via a TCP / IP connection request. The first transmission device then sends a request to the second transmission device via the TCP / IP connection to obtain second port information. At this point, the second transmission device does not have a remote replication partnership established with the first transmission device and cannot process the request for second port information sent by the first transmission device. The second transmission device obtains the service IP address of the first transmission device from the first transmission device and then establishes a remote replication partnership with the first transmission device. After the partnership is successfully established, the second transmission device uses the service IP address of the first transmission device to establish a network connection (also known as a management communication link) with the first transmission device via a TCP / IP connection request. Then, it sends a request to the first transmission device via the TCP / IP connection to obtain first port information. Upon receiving the request for first port information from the second transmission device, the first transmission device determines that a remote replication partnership has been established with the second transmission device and sends another request for network port information to the second transmission device. At this point, the second transmission device monitors the service IP address of the first transmission device. When the second transmission device receives the first port information request from the first transmission device, it encapsulates the second transmission device information into a data packet and transmits it to the first transmission device. The first transmission device receives the port information from the second transmission device, obtains the local port information, and then selects a path for remote replication (also called the target transmission path).
[0078] Optionally, determining a first target transmission path with the second transmission device based on the first port information and the second port information includes:
[0079] At least one candidate data transmission path is established with the second transmission device based on the first port information and the second port information; the first port information includes at least one parameter of the first port, the parameters of the first port include a first node ID, a first port ID, and a first port transmission rate; the second port information includes at least one parameter of the second port, the parameters of the second port include a second node ID, a second port ID, and a second port transmission rate;
[0080] Based on the priority order of each parameter in the first port information and the second port information, at least one candidate data transmission path is selected from each candidate data transmission path and determined as the first target transmission path.
[0081] Optionally, the first port information includes parameters of at least one first port, the parameters of the first port include the first node ID, the first port ID and the first port transmission rate, and the second port information includes parameters of at least one second port, the parameters of the second port include but are not limited to the second node ID, the second port ID and the second port transmission rate; the first transmission device pairs the parameters of each first port in the first port information with the parameters of each second port in the second port information, and establishes at least one candidate data transmission path with the second transmission device. A pair of first ports and second ports with successfully paired parameters constitutes a candidate data transmission path. The first node ID is used to indicate the identity ID of the node corresponding to the first port in the first transmission device. The first port ID is used to indicate the identity ID of the first port in the first transmission device, and the first port transmission rate is used to indicate the data transmission rate of the first port in the first transmission device. The same applies to the parameters of the second port.
[0082] Optionally, the priority order of each parameter (such as node ID, port ID and port transmission rate, etc.) in the first port information and the second port information is obtained, and based on the priority order of each parameter, a candidate data transmission path is selected from the above-mentioned candidate data transmission paths in sequence and determined as the first target transmission path.
[0083] Optionally, the port parameters include but are not limited to node ID, port ID, port transmission rate, port type (such as FC / IP / RoCE, etc.), port IP, port subnet mask, port gateway, port IP address, port name, etc.
[0084] For example, the priority order of each parameter in the port information is as follows:
[0085] First priority: the first node ID is equal to the second node ID, the first port ID is equal to the second port ID, and the first port transmission rate is equal to the second port transmission rate;
[0086] Second priority: the first node ID is equal to the second node ID and the first port transmission rate is equal to the second port transmission rate;
[0087] Priority 3: The modulo 2 of the first node ID is equal to the modulo 2 of the second node ID, and the first port transmission rate is equal to the second port transmission rate;
[0088] Fourth priority: the first node ID is equal to the second node ID;
[0089] Fifth priority: the modulo 2 of the first node ID is equal to the modulo 2 of the second node ID.
[0090] Optionally, when none of the first to fifth priorities are met, the priority order is not distinguished and the target transmission path is selected according to the traversal order.
[0091] Optionally, when a single node has two or more remote replication paths, the number of selected paths on the node may be counted, and a node with a larger number of selected paths has a lower priority.
[0092] Optionally, when a node has two or more paths with the same priority order, the path corresponding to the node with fewer paths is preferentially selected.
[0093] Optionally, when the second transmission device also establishes a first management communication link with the first transmission device and also determines the first target transmission path based on the first port information and the second port information, in response to receiving the first data transmission instruction, before sending the first target data to the second transmission device based on the first target transmission path, the method includes:
[0094] Obtaining the number of first target transmission paths;
[0095] When the number of the first target transmission paths is greater than one, selecting one first target transmission path from among the first target transmission paths and determining it as a main transmission path;
[0096] In each first target transmission path, each non-first target transmission path is determined as a backup transmission path.
[0097] Optionally, when determining the first target transmission path, the number of the first target transmission paths may be obtained. When the number of the first target transmission paths is greater than one, one first target transmission path is selected from the first target transmission paths and determined as the main transmission path.
[0098] Optionally, the method for selecting the primary transmission path can be specifically set according to actual circumstances. For example, one of the first target transmission paths can be randomly selected as the primary transmission path. Another example is that the first target transmission path with the highest port transmission rate can be selected as the primary transmission path.
[0099] Optionally, after determining the primary transmission path, other paths in each first target transmission path (i.e., non-first target transmission paths) are determined as backup transmission paths. The primary transmission path is used as a path for transmitting data from the first transmission device to the second transmission device when the primary transmission path is in a normal state. The backup transmission path is used as a path for transmitting data from the first transmission device to the second transmission device when the primary transmission path is in an abnormal state.
[0100] Optionally, when the second transmission device also establishes a first management communication link with the first transmission device and also determines the first target transmission path based on the first port information and the second port information, in response to receiving the first data transmission instruction, sending the first target data to the second transmission device based on the first target transmission path includes:
[0101] When the second transmission device also establishes a first management communication link with the first transmission device and also determines a first target transmission path based on the first port information and the second port information of the first transmission device, in response to receiving the first data transmission instruction, determines first target data corresponding to the first data transmission instruction, and obtains a status of the primary transmission path;
[0102] When the status indication of the primary transmission path is normal, sending the first target data to the second transmission device based on the primary transmission path;
[0103] or,
[0104] When the status of the main transmission path indicates an abnormality, a new main transmission path is selected from the backup transmission paths, and the first target data is sent to the second transmission device based on the new main transmission path.
[0105] Optionally, when the first transmission device establishes a first management communication link with the second transmission device and determines the first target transmission path based on the first port information and the second port information, and the second transmission device also establishes the same first management communication link and also determines the same first target transmission path, the first transmission device determines the first target data corresponding to the first data transmission instruction in response to receiving the first data transmission instruction, and obtains the status of the main transmission path in the first target transmission path.
[0106] Optionally, when the status indication of the primary transmission path is normal, the first transmission device sends the first target data to the second transmission device based on the primary transmission path.
[0107] Optionally, when the status of the primary transmission path indicates an abnormality, the first transmission device may select a new primary transmission path from the backup transmission paths, and send the first target data to the second transmission device based on the new primary transmission path.
[0108] Optionally, the method for selecting a new primary transmission path can be specifically configured based on actual circumstances. For example, a new primary transmission path is randomly selected from each backup transmission path. For another example, the backup transmission path with the highest port transmission rate is selected from each backup transmission path as the new primary backup transmission path. For another example, the backup transmission path corresponding to the node closest to the first management node is selected from each backup transmission path and determined as the new primary transmission path. The first management node is used to indicate the node in the first transmission device that corresponds to the first management communication link.
[0109] Optionally, step S201 includes:
[0110] Establishing a first management communication link with the second transmission device, and sending a second information acquisition instruction to the second transmission device based on the first management communication link;
[0111] When the second port information is received within a preset time period, determining the first port information of the first transmission device;
[0112] or,
[0113] When the second port information is not received within a preset time period, or the received port information does not match the second port information, the first management communication link is updated to a stop state; wherein the stop state is used to indicate the state in which the two transmission devices corresponding to the management communication link suspend data transmission.
[0114] Optionally, when establishing a first management communication link with a second transmission device, the first transmission device may send a second information acquisition instruction to the second transmission device based on the first management communication link to control the second transmission device to send second port information to the first transmission device, and receive the second port information sent by the second transmission device based on the first management communication link. When the second port information is received within a preset time period, the first port information of the first transmission device is acquired. Alternatively, when the second port information is not received within the preset time period or the received port information does not match the second port information, the first management communication link is updated to a stopped state. The stopped state is used to indicate the state in which the two transmission devices corresponding to the management communication link have suspended data transmission. For example, when the first management communication link is updated to a stopped state, it indicates the state in which both the first transmission device and the second transmission device corresponding to the first management communication link have suspended data transmission.
[0115] The preset time period can be set according to actual conditions. For example, the preset time period indicates 1 minute after the instruction is sent, and for another example, the preset time period indicates 3 minutes after the instruction is sent.
[0116] Figure 4 This is one of the application diagrams of a data transmission method provided in an embodiment of the present application.
[0117] like Figure 4 As shown, a first transmission device establishes a first management communication link with a second transmission device and sends a second information acquisition instruction to the second transmission device based on the first management communication link. A determination is made as to whether the second port information sent by the second transmission device is received within a preset time period. If the second port information is received within the preset time period, the first port information of the first transmission device is acquired. Alternatively, if the second port information is not received within the preset time period, the first management communication link is updated to a stopped state.
[0118] Optionally, the first transmission device includes at least one non-management node; after step S201, the method further includes:
[0119] When it is detected that a non-management node is lost, a third information acquisition instruction is sent to the second transmission device; wherein the third information acquisition instruction is used to control the second transmission device to send the second target port information;
[0120] When the second target port information sent by the second transmission device is not received within a preset time period, the first management communication link is updated to a stopped state.
[0121] Optionally, the first transmission device includes multiple nodes, wherein a node with which a management communication link is established is a first management node, and a node with which no management communication link is established is a non-management node.
[0122] Optionally, when the first transmission device establishes a first management communication link with the second transmission device and obtains the second port information, if it detects that one or more non-management nodes are missing, it generates a third information acquisition instruction and sends it to the second transmission device. The third information acquisition instruction is used to control the second transmission device to send second target port information. The second target port information is the new port information sent by the second port information to the first transmission device (upon receipt of the third information acquisition instruction).
[0123] Optionally, when the first transmission device does not receive the second target port information sent by the second transmission device within a preset time period, the first management communication link is updated to a stopped state, so that the first transmission device and the second transmission device suspend operations such as using the first management communication link to transmit port information, determining the target transmission path, and thereby suspending data transmission between the first transmission device and the second transmission device.
[0124] Figure 5 This is a second application diagram of a data transmission method provided in an embodiment of the present application.
[0125] like Figure 5As shown, a first transmission device establishes a first management communication link with a second transmission device, obtains the second port information of the second transmission device based on the first management communication link, and determines the first port information of the first transmission device. Upon detecting the loss of a non-management node, a third information acquisition instruction is sent to the second transmission device. A determination is made as to whether the second target port information sent by the second transmission device is received within a preset time period. Upon receiving the second target port information sent by the second transmission device within the preset time period, a new target transmission path is determined between the first transmission device and the second transmission device based on the target first port information and the second target port information. If the second transmission device also establishes a first management communication link with the first transmission device and also determines a new target transmission path between the first transmission device and the first transmission device based on the target first port information and the second target port information, the device sends fourth target data to the second transmission device based on the new target transmission path in response to the new data transmission instruction. Alternatively, if the second target port information sent by the second transmission device is not received within the preset time period, the first management communication link is updated to a stopped state.
[0126] It is understood that initially, the cluster system between the first transmission device and the second transmission device is in an invalid state. Once the first and second transmission devices have established a remote replication partnership, the remote replication partnership becomes active. During the remote replication partnership creation process, the first transmission device (or the second transmission device) can send a request to the remote partner cluster (e.g., the second transmission device or the first transmission device) to obtain port information, at which point the state is updated to "discovering port information."
[0127] Optionally, when the first transmission device (or the second transmission device) does not receive the port information or when a node is lost, a port information discovery retry operation is triggered, and a request for obtaining the port information can be resent at regular intervals until the port information is successfully received.
[0128] Optionally, the first transmission device further includes a first management node; after step S201, the following steps are further included:
[0129] When the loss of the first management node is detected, a new first management node is selected from each non-management node, and a third management communication link is established with the second transmission device based on the new first management node; wherein the first management node is used to indicate the node in the first transmission device corresponding to the first management communication link;
[0130] Sending a fourth information acquisition instruction to the second transmission device based on the third management communication link, and acquiring fourth target port information corresponding to the new first management node;
[0131] When receiving the third destination port information sent by the second transmission device within a preset time period, determining a third destination transmission path between the second transmission device and the fourth destination port information and the third destination port information;
[0132] When the second transmission device also establishes a third management communication link with the first transmission device and also determines the third target transmission path based on the fourth target port information and the third target port information, in response to receiving the third data transmission instruction, the third target data is sent to the second transmission device based on the third target transmission path.
[0133] Optionally, when the first transmission device establishes a first management communication link with the second transmission device and obtains the second port information, if it detects that the first management node is lost, the first transmission device selects a new first management node from each non-management node and establishes a third management communication link with the second transmission device based on the new first management node. The first management node is used to indicate the node in the first transmission device that corresponds to the first management communication link.
[0134] The method for selecting the new first management node can be specifically set based on actual circumstances. For example, a node is randomly selected from each non-management node to be determined as the new first management node. For another example, the non-management node closest to the first management node is selected from each non-management node and determined as the new first management node.
[0135] Optionally, a fourth information acquisition instruction is sent to the second transmission device based on the third management communication link, and fourth target port information corresponding to the new first management node in the first transmission device is acquired. The fourth information acquisition instruction is used to control the second transmission device to send the third target port information to the first transmission device.
[0136] Optionally, upon receiving the third destination port information sent by the second transmission device within a preset time period, determining a third destination transmission path with the second transmission device based on the fourth destination port information of the first transmission device and the third destination port information of the second transmission device. The second destination port information is new port information sent by the second transmission device (upon receiving the fourth information acquisition instruction).
[0137] In this way, when the second transmission device also establishes the same third management communication link and also determines the same third target transmission path based on the fourth target port information and the third target port information, the first transmission device responds to receiving the third data transmission instruction and sends the third target data corresponding to the third data transmission instruction to the second transmission device based on the third target transmission path.
[0138] Optionally, when the third target port information sent by the second transmission device is not received within a preset time period, the third management communication link is updated to a stopped state to suspend data transmission between the first transmission device and the second transmission device.
[0139] Figure 6 This is a third application diagram of a data transmission method provided in an embodiment of the present application.
[0140] like Figure 6 As shown, a first transmission device establishes a first management communication link with a second transmission device, obtains the second port information of the second transmission device based on the first management communication link, and determines the first port information of the first transmission device. Upon detecting that the first management node is lost, a new first management node is selected from each non-management node, and a third management communication link is established between the new first management node and the second transmission device based on the new first management node. A fourth information acquisition instruction is sent to the second transmission device based on the third management communication link, and fourth target port information corresponding to the new first management node is acquired. A determination is made as to whether the third target port information sent by the second transmission device is received within a preset time period. If the third target port information sent by the second transmission device is received within the preset time period, a third target transmission path is determined between the second transmission device and the second transmission device based on the fourth target port information and the third target port information. If the second transmission device also establishes a third management communication link with the first transmission device and also determines the third target transmission path based on the fourth target port information and the third target port information, in response to receiving the third data transmission instruction, third target data is sent to the second transmission device based on the third target transmission path. Alternatively, if the third target port information sent by the second transmission device is not received within the preset time period, the first management communication link is updated to a stopped state.
[0141] Optionally, Figure 7 This is a flow chart of a data transmission method provided in an embodiment of the present application, as shown in FIG. Figure 7 As shown, after step S201, the following steps are further included:
[0142] S701: In response to receiving a deletion instruction, updating the first management communication link to a stopped state;
[0143] S702: Delete the first management communication link.
[0144] Optionally, when the first transmission device establishes a first management communication link with the second transmission device and obtains the second port information, the management communication link is in an active state. Upon receiving a deletion instruction, the first management communication link is updated to a stopped state, suspending data transmission between the first transmission device and the second transmission device. The first management communication link is then deleted, and the management communication link becomes inactive. This avoids data leakage or loss caused by directly deleting the management communication link.
[0145] Optionally, Figure 8 This is a fourth flow chart of a data transmission method provided in an embodiment of the present application, as shown in FIG. Figure 8 As shown, after step S202, the following steps are included:
[0146] S801: When an abnormality occurs in the communication protocol corresponding to the first target transmission path, the first management communication link is updated to a stopped state.
[0147] Optionally, when the first transmission device determines the first target transmission path between it and the second transmission device, it can obtain the status of the communication protocol (or license) corresponding to the first target transmission path in real time. When it is detected that the status indication of the communication protocol corresponding to the first target transmission path is abnormal, in order to avoid data leakage or loss, the first management communication link is updated to a stopped state, so that the first transmission device and the second transmission device suspend the use of the first management communication link transmission port information, determine the target transmission path, and other operations, thereby suspending data transmission between the first transmission device and the second transmission device.
[0148] The embodiment of the present application resynchronizes port information whenever a port information change is detected, improving the consistency of port information between the first and second transmission devices, optimizing path selection, improving the performance of remote replication-based data backup, and enhancing the security of remote data transmission. Furthermore, while supporting normal scenarios, it fully considers abnormal scenarios, thereby improving system stability.
[0149] Figure 9 This is one of the flow charts of another data transmission method provided in the embodiment of the present application. Figure 9 As shown, an embodiment of the present application further provides a data transmission method, including:
[0150] S901: Establishing a first management communication link with a first transmission device, obtaining first port information of the first transmission device based on the first management communication link, and determining second port information of a second transmission device;
[0151] S902: Determine a first target transmission path based on the first port information and the second port information;
[0152] S903: When the first transmission device also establishes a first management communication link with the second transmission device and also determines a first target transmission path based on the first port information and the second port information, first target data sent by the first transmission device is received based on the first target transmission path.
[0153] Optionally, the data transmission method provided in this embodiment may be used in a second transmission device.
[0154] Optionally, the second transmission device establishes a first management communication link with the first transmission device, obtains the first port information of the first transmission device based on the first management communication link, and determines the second port information of the second transmission device, thereby determining the first target transmission path based on the first port information and the second port information. Furthermore, when the first transmission device also establishes a first management communication link with the second transmission device and also determines the first target transmission path based on the first port information and the second port information, the first target data sent by the first transmission device is received based on the first target transmission path. For specific implementation methods, please refer to the aforementioned embodiments and will not be repeated here.
[0155] Optionally, after establishing a first management communication link with the first transmission device, acquiring first port information of the first transmission device based on the first management communication link, and determining second port information of the second transmission device, the method further includes:
[0156] Upon receiving the management communication link update instruction sent by the first transmission device, establishing a second management communication link with the first transmission device based on the management communication link update instruction;
[0157] Upon receiving the first information acquisition instruction sent by the first transmission device, sending the first target port information to the first transmission device, and sending a new first port information acquisition instruction to the first transmission device;
[0158] Upon receiving the new first port information sent by the first transmission device, determining the second target transmission path based on the new first port information and the first target port information;
[0159] When the first transmission device also establishes a second management communication link with the second transmission device and also determines a second target transmission path based on the new first port information and the first target port information, the second target data sent by the first transmission device is received based on the second target transmission path.
[0160] Optionally, determining the first target transmission path based on the first port information and the second port information includes:
[0161] At least one candidate data transmission path is established with the first transmission device based on the first port information and the second port information; the first port information includes at least one parameter of the first port, the parameters of the first port include a first node ID, a first port ID, and a first port transmission rate; the second port information includes at least one parameter of the second port, the parameters of the second port include a second node ID, a second port ID, and a second port transmission rate;
[0162] Based on the priority order of each parameter in the first port information and the second port information, at least one candidate data transmission path is selected from each candidate data transmission path and determined as the first target transmission path.
[0163] Optionally, when the first transmission device also establishes a first management communication link with the second transmission device and also determines the first target transmission path based on the first port information and the second port information, before receiving the first target data sent by the first transmission device based on the first target transmission path, the method includes:
[0164] Obtaining the number of first target transmission paths;
[0165] When the number of the first target transmission paths is greater than one, selecting one first target transmission path from among the first target transmission paths and determining it as a main transmission path;
[0166] In each first target transmission path, determining each non-first target transmission path as a backup transmission path;
[0167] When the first transmission device also establishes a first management communication link with the second transmission device and also determines a first target transmission path based on the first port information and the second port information, receiving first target data sent by the first transmission device based on the first target transmission path includes:
[0168] When the first transmission device also establishes a first management communication link with the second transmission device and also determines a first target transmission path based on the first port information and the second port information, obtaining a status of the primary transmission path;
[0169] When the status indication of the primary transmission path is normal, receiving first target data sent by the first transmission device based on the primary transmission path;
[0170] or,
[0171] When the status of the main transmission path indicates an abnormality, a new main transmission path is selected from the backup transmission paths, and the first target data is sent based on the first transmission device based on the new main transmission path.
[0172] Optionally, when the first transmission device also establishes a first management communication link with the second transmission device and also determines a first target transmission path based on the first port information and the second port information, receiving first target data sent by the first transmission device based on the first target transmission path includes:
[0173] When the first transmission device also establishes a management communication link with the second transmission device and also determines the first target transmission path based on the first port information and the second port information, obtaining a status of the main transmission path in the first target transmission path;
[0174] When the status indication of the primary transmission path is normal, receiving first target data sent by the first transmission device based on the primary transmission path;
[0175] or,
[0176] When the status indication of the main transmission path is abnormal, a new main transmission path is selected from the first target transmission path, and the first target data sent by the first transmission device is received based on the new main transmission path; the new main transmission path is a non-main transmission path in the first target transmission path.
[0177] Optionally, the second transmission device includes at least one second non-management node; after establishing a first management communication link with the first transmission device, obtaining first port information of the first transmission device based on the first management communication link, and determining second port information of the second transmission device, further comprising:
[0178] When it is detected that the second non-management node is lost, a fifth information acquisition instruction is sent to the first transmission device; wherein the fifth information acquisition instruction is used to control the first transmission device to send fifth target port information;
[0179] When the fifth target port information sent by the first transmission device is not received within a preset time period, the first management communication link is updated to a stopped state.
[0180] Optionally, after establishing a first management communication link with the first transmission device, obtaining first port information of the first transmission device based on the first management communication link, and determining second port information of the second transmission device, the method further includes:
[0181] Upon receiving the third information acquisition instruction, sending the second target port information to the first transmission device, and sending the target first port information acquisition instruction to the first transmission device;
[0182] When no target first port information acquisition instruction sent by the second transmission device is received within a preset time period, updating the first management communication link to a stopped state;
[0183] or,
[0184] When receiving a target first port information acquisition instruction sent by the second transmission device within a preset time period, determining a new target transmission path between the first transmission device and the first transmission device based on the target first port information and the second target port information;
[0185] When the first transmission device also establishes a first management communication link with the second transmission device, and also establishes a new target transmission path between the first transmission device and the second transmission device based on the target first port information and the second target port information, the fourth target data sent by the first transmission device is received based on the new target transmission path.
[0186] Optionally, after establishing a first management communication link with the first transmission device, acquiring first port information of the first transmission device based on the first management communication link, and determining second port information of the second transmission device, the method further includes:
[0187] In response to receiving the deletion instruction, updating the first management communication link to a stopped state;
[0188] The first management communication link is deleted.
[0189] Optionally, after determining the first target transmission path to the first transmission device based on the first port information and the second port information, the method further includes:
[0190] When an abnormality occurs in the communication protocol corresponding to the first target transmission path, the first management communication link is updated to a stopped state.
[0191] Figure 10 This is one of the flow charts of another data transmission method provided in the embodiment of the present application. Figure 10 As shown, an embodiment of the present application further provides a data transmission method, including:
[0192] S1001: A first transmission device establishes a first management communication link with a second transmission device, obtains second port information of the second transmission device based on the first management communication link, and determines first port information of the first transmission device;
[0193] S1002: The first transmission device determines a first target transmission path between the first transmission device and the second transmission device based on the first port information and the second port information;
[0194] S1003: The second transmission device also establishes a first management communication link with the first transmission device, obtains first port information based on the first management communication link, and determines second port information;
[0195] S1004: The second transmission device also determines a first target transmission path based on the first port information and the second port information;
[0196] S1005: In response to receiving the first data transmission instruction, the first transmission device sends the first target data to the second transmission device based on the first target transmission path;
[0197] S1006: The second transmission device receives the first target data sent by the first transmission device based on the first target transmission path.
[0198] Optionally, the first transmission device establishes a first management communication link with the second transmission device, obtains the second port information of the second transmission device based on the first management communication link, and determines the first port information of the first transmission device, thereby determining the first target transmission path between the first transmission device and the second transmission device based on the first port information and the second port information. The second transmission device also establishes a first management communication link with the first transmission device, obtains the first port information based on the first management communication link, and determines the second port information, thereby also determining the first target transmission path based on the first port information and the second port information. In this way, the first transmission device can send the first target data to the second transmission device based on the first target transmission path in response to receiving the first data transmission instruction, so that the second transmission device receives the first target data sent by the first transmission device based on the first target transmission path. The specific implementation method can be referred to the aforementioned embodiment and will not be repeated here.
[0199] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0200] Figure 11 This is a schematic diagram of the structure of an electronic device provided by this application. Figure 11 As shown, the electronic device provided by this embodiment includes: at least one processor 1101 and a memory 1102. Optionally, the electronic device further includes a communication component 1103. The processor 1101, the memory 1102 and the communication component 1103 are connected via a bus.
[0201] During the specific implementation process, at least one processor 1101 executes the computer-executable instructions stored in the memory 1102, so that the at least one processor 1101 executes the above-mentioned data transmission method embodiment.
[0202] The specific implementation process of the processor 1101 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.
[0203] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the application may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.
[0204] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage.
[0205] A bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.
[0206] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above-mentioned data transmission method embodiments when running.
[0207] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0208] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above-mentioned data transmission method embodiments are implemented.
[0209] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above-mentioned data transmission method embodiments are implemented.
[0210] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0211] The above is a detailed introduction to a data transmission method, device, medium, and program product provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only intended to help understand the method and core ideas of the present application. It should be pointed out that, for those skilled in the art, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A data transmission method, characterized in that: include: The first transmission device establishes a first management communication link with the second transmission device through a connection request, obtains second port information of the second transmission device based on the first management communication link, and determines first port information of the first transmission device; Determine a first target transmission path with the second transmission device based on the first port information and the second port information; The second transmission device establishes a first management communication link with the first transmission device through a connection request, and also determines the first target transmission path based on the first port information and the second port information. In response to receiving the first data transmission instruction, the second transmission device sends the first target data to the second transmission device based on the first target transmission path; The first transmission device includes at least one non-management node; after establishing a first management communication link with the second transmission device, obtaining second port information of the second transmission device based on the first management communication link, and determining the first port information of the first transmission device, further comprising: When it is detected that a non-management node is lost, a third information acquisition instruction is sent to the second transmission device; wherein the third information acquisition instruction is used to control the second transmission device to send the second target port information; When the second target port information sent by the second transmission device is not received within a preset time period, the first management communication link is updated to a stopped state.
2. The data transmission method according to claim 1, wherein: After establishing a first management communication link with the second transmission device, acquiring second port information of the second transmission device based on the first management communication link, and determining first port information of the first transmission device, the method includes: When detecting that the first port information is updated, sending a management communication link update instruction to the second transmission device, and establishing a second management communication link with the second transmission device; Sending a first information acquisition instruction to the second transmission device based on the second management communication link; wherein the first information acquisition instruction is used to control the second transmission device to send first target port information; Upon receiving the first destination port information sent by the second transmission device, determining a second destination transmission path based on the new first port information and the first destination port information; When the second transmission device also establishes a second management communication link with the first transmission device and also determines the second target transmission path based on the new first port information and the first target port information, in response to receiving a second data transmission instruction, second target data is sent to the second transmission device based on the second target transmission path.
3. The data transmission method according to claim 1, wherein: The determining, based on the first port information and the second port information, a first target transmission path between the second transmission device and the second transmission device includes: At least one candidate data transmission path is established with the second transmission device based on the first port information and the second port information; the first port information includes at least one parameter of the first port, the parameters of the first port include a first node ID, a first port ID, and a first port transmission rate; the second port information includes at least one parameter of the second port, the parameters of the second port include a second node ID, a second port ID, and a second port transmission rate; Based on the priority order of each parameter in the first port information and the second port information, at least one candidate data transmission path is selected from each candidate data transmission path and determined as the first target transmission path.
4. The data transmission method according to claim 3, wherein: When the second transmission device also establishes a first management communication link with the first transmission device and also determines the first target transmission path based on the first port information and the second port information, in response to receiving the first data transmission instruction, before sending the first target data to the second transmission device based on the first target transmission path, the method includes: Obtaining the number of the first target transmission paths; When the number of the first target transmission paths is greater than one, selecting one first target transmission path from each of the first target transmission paths and determining it as a main transmission path; In each of the first target transmission paths, determining each non-first target transmission path as a backup transmission path; When the second transmission device also establishes a first management communication link with the first transmission device and also determines the first target transmission path based on the first port information and the second port information, in response to receiving the first data transmission instruction, sending first target data to the second transmission device based on the first target transmission path includes: When the second transmission device also establishes a first management communication link with the first transmission device and also determines the first target transmission path based on the first port information and the second port information of the first transmission device, in response to receiving the first data transmission instruction, determines the first target data corresponding to the first data transmission instruction, and obtains the status of the main transmission path; When the status indication of the primary transmission path is normal, sending the first target data to the second transmission device based on the primary transmission path; or, When the status of the main transmission path indicates an abnormality, a new main transmission path is selected from each of the backup transmission paths, and the first target data is sent to the second transmission device based on the new main transmission path.
5. The data transmission method according to claim 1, wherein: The establishing a first management communication link with the second transmission device, acquiring second port information of the second transmission device based on the first management communication link, and determining first port information of the first transmission device includes: Establishing a first management communication link with the second transmission device, and sending a second information acquisition instruction to the second transmission device based on the first management communication link; When the second port information is received within a preset time period, determining the first port information of the first transmission device; or, When the second port information is not received within a preset time period, or the received port information does not match the first port information, the first management communication link is updated to a stop state; wherein, the stop state is used to indicate the state in which the two transmission devices corresponding to the management communication link suspend data transmission.
6. The data transmission method according to claim 1, wherein: The first transmission device further includes a first management node; after establishing a first management communication link with the second transmission device, obtaining the second port information of the second transmission device based on the first management communication link, and determining the first port information of the first transmission device, the method further includes: In the event that the first management node is detected to be lost, selecting a new first management node from each of the non-management nodes, and establishing a third management communication link with the second transmission device based on the new first management node; wherein the first management node is used to indicate a node in the first transmission device corresponding to the first management communication link; Sending a fourth information acquisition instruction to the second transmission device based on the third management communication link, and acquiring fourth target port information corresponding to the new first management node; When receiving the third destination port information sent by the second transmission device within a preset time period, determining a third destination transmission path between the second transmission device and the fourth destination port information and the third destination port information; When the second transmission device also establishes a third management communication link with the first transmission device and also determines the third target transmission path based on the fourth target port information and the third target port information, in response to receiving the third data transmission instruction, the third target data is sent to the second transmission device based on the third target transmission path.
7. The data transmission method according to claim 1, wherein: After establishing the first management communication link with the second transmission device, acquiring the second port information of the second transmission device based on the first management communication link, and determining the first port information of the first transmission device, the method further includes: In response to receiving the deletion instruction, updating the first management communication link to a stopped state; The first management communication link is deleted.
8. The data transmission method according to claim 1, wherein: After determining the first target transmission path with the second transmission device based on the first port information and the second port information, the method includes: When an abnormality occurs in the communication protocol corresponding to the first target transmission path, the first management communication link is updated to a stopped state.
9. A data transmission method, characterized in that: include: The second transmission device establishes a first management communication link with the first transmission device through a connection request, obtains first port information of the first transmission device based on the first management communication link, and determines second port information of the second transmission device; determining a first target transmission path based on the first port information and the second port information; The first transmission device establishes a first management communication link with the second transmission device through a connection request, and also determines the first target transmission path based on the first port information and the second port information, and receives first target data sent by the first transmission device based on the first target transmission path; The first transmission device includes at least one non-management node; after establishing a first management communication link with the first transmission device, obtaining first port information of the first transmission device based on the first management communication link, and determining second port information of the second transmission device, further comprising: When the first transmission device detects that a non-management node is lost, it sends a third information acquisition instruction to the second transmission device; wherein the third information acquisition instruction is used to control the second transmission device to send second target port information; when the second target port information sent by the second transmission device is not received within a preset time period, the first management communication link is updated to a stopped state.
10. The data transmission method according to claim 9, characterized in that: After establishing a first management communication link with the first transmission device, acquiring first port information of the first transmission device based on the first management communication link, and determining second port information of the second transmission device, the method further includes: Upon receiving the management communication link update instruction sent by the first transmission device, establishing a second management communication link with the first transmission device based on the management communication link update instruction; Upon receiving the first information acquisition instruction sent by the first transmission device, sending the first target port information to the first transmission device, and sending a new first port information acquisition instruction to the first transmission device; Upon receiving the new first port information sent by the first transmission device, determining a second target transmission path based on the new first port information and the first target port information; When the first transmission device also establishes a second management communication link with the second transmission device and also determines the second target transmission path based on the new first port information and the first target port information, the second target data sent by the first transmission device is received based on the second target transmission path.
11. The data transmission method according to claim 9, wherein: When the first transmission device also establishes a first management communication link with the second transmission device and also determines the first target transmission path based on the first port information and the second port information, receiving first target data sent by the first transmission device based on the first target transmission path includes: When the first transmission device also establishes a management communication link with the second transmission device and also determines the first target transmission path based on the first port information and the second port information, obtaining a status of a primary transmission path in the first target transmission path; When the status indication of the primary transmission path is normal, receiving first target data sent by the first transmission device based on the primary transmission path; or, When the status indication of the main transmission path is abnormal, a new main transmission path is selected from the first target transmission path, and the first target data sent by the first transmission device is received based on the new main transmission path; the new main transmission path is a non-main transmission path in the first target transmission path.
12. A data transmission method, characterized in that: include: The first transmission device establishes a first management communication link with the second transmission device through a connection request, obtains second port information of the second transmission device based on the first management communication link, and determines first port information of the first transmission device; The first transmission device determines a first target transmission path between the first transmission device and the second transmission device based on the first port information and the second port information; The second transmission device also establishes the first management communication link with the first transmission device through a connection request, obtains the first port information based on the first management communication link, and determines the second port information; The second transmission device also determines the first target transmission path based on the first port information and the second port information; In response to receiving the first data transmission instruction, the first transmission device sends the first target data to the second transmission device based on the first target transmission path; The second transmission device receives the first target data sent by the first transmission device based on the first target transmission path; The first transmission device includes at least one non-management node; after the first transmission device establishes a first management communication link with a second transmission device, obtains second port information of the second transmission device based on the first management communication link, and determines the first port information of the first transmission device, further comprising: When the first transmission device detects that a non-management node is lost, the first transmission device sends a third information acquisition instruction to the second transmission device; wherein the third information acquisition instruction is used to control the second transmission device to send the second target port information; When the first transmission device does not receive the second target port information sent by the second transmission device within a preset time period, the first management communication link is updated to a stopped state.
13. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the data transmission method according to any one of claims 1 to 8 when the electronic device is a first transmission device and executes the computer program, and to implement the steps of the data transmission method according to any one of claims 9 to 11 when the electronic device is a second transmission device and executes the computer program.
14. 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, the steps of the data transmission method according to any one of claims 1 to 8 or 9 to 11 are implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 8 or 9 to 11 are implemented.
Citation Information
Patent Citations
Method and device for establishing data transmission route
CN104283780A
Scale-out of database systems in cloud computing environments
US20230409599A1