Data transmission method and device, medium and program product
By establishing a management communication link between data transmission devices and determining port information, ensuring that both devices establish the same transmission path, the data leakage problem caused by site abnormalities 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
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2045-05-30
AI Technical Summary
During data transmission, data leakage problems caused by site abnormalities (such as communication protocol abnormalities, backup sites being attacked by networks, etc.) affect the stability of data transmission.
By establishing a management communication link between the first transmission device and the second transmission device, obtaining and determining port information, ensuring that both parties establish the same management communication link and the target transmission path, data transmission is only performed.
Improve the stability of data transmission, avoid data leakage caused by site abnormalities, and ensure the security and reliability of data transmission.
Smart Images

Figure CN120238564A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of data processing, and in particular, to a data transmission method, device, medium, and program product. Background Art
[0002] In various technical fields, data security is a very important topic. Among them, data storage is an important link to ensure data security. Technicians usually set up a backup site in a different location and store data at the backup site for data backup.
[0003] However, in the process of data transmission of the related data storage method for off-site backup, there may be a problem of data leakage caused by site anomalies (such as communication protocol anomalies, network attacks on business sites or backup sites, etc.), thus affecting the stability of data transmission. Summary of the Invention
[0004] This application provides a data transmission method, device, medium, and program product to at least solve the problem of data leakage caused by site anomalies in the process of data transmission in the related art, which affects the stability of data transmission.
[0005] This application provides a data transmission method, including:
[0006] Establish a first management communication link with a second transmission device, 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;
[0007] Determine 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;
[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 a first data transmission instruction, send first target data to the second transmission device based on the first target transmission path.
[0009] This application provides a data transmission method, including:
[0010] Establish a first management communication link with a first transmission device, obtain the first port information of the first transmission device based on the first management communication link, and determine the second port information of the second transmission device;
[0011] Determine a first target transmission path based on the first port information and the second port information;
[0012] When a first management communication link is also established between a first transmission device and a second transmission device, and a first target transmission path is also determined based on first port information and second port information, 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 the first target transmission path based on the first port information and the second port information;
[0018] In response to receiving a first data transmission instruction, the first transmission device sends 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] This application also provides an electronic device, including: a memory for storing a computer program; a processor for implementing the steps of any of the above data transmission methods when executing the computer program.
[0021] This application also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above data transmission methods are implemented.
[0022] This application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of any of the above data transmission methods are implemented.
[0023] Through this 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 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 technical problem of data leakage caused by site anomalies during data transmission, which affects the stability of data transmission, can be solved, and the technical effect of performing data transmission only when both the first transmission device and the second transmission device can successfully establish a management communication link and determine the same target transmission path can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings required for the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0025] Figure 1 Schematic diagram of the architecture of a data transmission system provided by an embodiment of the present application;
[0026] Figure 2 Schematic diagram of the flow of a data transmission method provided by an embodiment of the present application;
[0027] Figure 3 Schematic diagram of the flow of another data transmission method provided by an embodiment of the present application;
[0028] Figure 4 Schematic diagram of the application of a data transmission method provided by an embodiment of the present application;
[0029] Figure 5 Schematic diagram of the application of another data transmission method provided by an embodiment of the present application;
[0030] Figure 6 Schematic diagram of the application of a data transmission method provided by an embodiment of the present application;
[0031] Figure 7 Schematic diagram of the flow of a data transmission method provided by an embodiment of the present application;
[0032] Figure 8 Schematic diagram of the flow of a data transmission method provided by an embodiment of the present application;
[0033] Figure 9 Schematic diagram of the flow of another data transmission method provided by an embodiment of the present application;
[0034] Figure 10 One of the schematic flowcharts of another data transmission method provided by the embodiments of the present application;
[0035] Figure 11 A schematic structural diagram of an electronic device provided by the embodiments of the present application. Detailed implementation manners
[0036] Next, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.
[0037] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device including a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0038] The Remote Direct Memory Access over Converged Ethernet (RoCE RDMA) technology refers to a technology that applies the Remote Direct Memory Access (RDMA) technology to the existing Ethernet.
[0039] The Remote Direct Memory Access (RDMA) technology refers to a high-performance network communication technology in which computers in a network can directly exchange main memory data without the intervention of a processor, cache, or operating system.
[0040] The Internet Protocol (IP) is the core protocol for computer network communication and can achieve interconnection communication between different networks or devices.
[0041] Data security is a very important topic in various technical fields (such as big data management, cloud computing to artificial intelligence). Among them, data storage is an important link to ensure data security. That is to say, how to efficiently and securely back up data so that the system can back up data under the condition of meeting real-time business requirements is an important topic in the field of data storage. For the security of data, technicians usually set up a standby site in a different location and back up the data by storing the data at the standby site.
[0042] For example, when using a backup site in a different location to save the data of the storage system of the business main site, data backup and replication can be carried out through multiple physical links (such as fiber optic Ethernet, FC fiber, RoCE fiber network, etc.).
[0043] However, in the process of data transmission of the related off-site backup data storage method, there may be a problem of data leakage caused by site anomalies (such as communication protocol anomalies, network attacks on the business site or standby site, etc.), thus affecting the stability of data transmission.
[0044] To solve the above problems, the embodiments of the present application provide a data transmission method, device, medium and program product. The first transmission device establishes a first management communication link with the second transmission device, and based on the first port information of the first transmission device and the second port information of the second transmission device to determine the target transmission path between the second transmission device, only when the second transmission device also establishes the same management communication link and determines the same target transmission path, can it respond to the data transmission instruction and send the target data to the second transmission device based on the above target transmission path. Therefore, data transmission can be carried out only when both the first transmission device and the second transmission device can normally establish a management communication link and determine the same target transmission path, improving the stability of data transmission.
[0045] In order to enable those skilled in the art of this technology to better understand the solution of the present application, the following further details the present application in conjunction with the accompanying drawings and specific embodiments.
[0046] Combined 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 herein. Refer to Figure 1 , Figure 1 is a schematic diagram of the architecture of a data transmission system 100 provided by an embodiment of the present application.
[0047] See Figure 1, the data transmission system 100 includes a first transmission device 101 and a second transmission device 102. Among them, the first transmission device 101 is used to establish a management communication link with the second transmission device 102, transmit port information (such as the first port information of the first transmission device 101 and the second port information of the second transmission device 102) with the second transmission device 102 based on the management communication link, and determine the target transmission path between the first transmission device 101 and the second transmission device 102 based on the port information. When the second transmission device 102 also establishes a management communication link and determines the same target transmission path, the first transmission device 101 transmits target data to the second transmission device 102 through the target transmission path. The second transmission device 102 is used to establish a management communication link with the first transmission device 101, transmit port information (such as the first port information of the first transmission device 101 and the second port information of the second transmission device 102) with the first transmission device 101 based on the management communication link, and determine the target transmission path between the second transmission device 102 and the first transmission device 101 based on the port information. When the first transmission device 101 also establishes a management communication link and determines the same target transmission path, the second transmission device 102 transmits target data to the first transmission device 101 through the target transmission path.
[0048] Figure 2 One of the flow diagrams of a data transmission method provided by an embodiment of the present application is as Figure 2 shown, an embodiment of the present application provides a data transmission method, and the method is described in detail as follows:
[0049] S201: Establish a first management communication link with the second transmission device, 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.
[0050] Optionally, the data transmission method provided in this embodiment can be used in the first transmission device.
[0051] Optionally, the first transmission device establishes a first management communication link with the second transmission device, and the first management communication link is used to indicate a data transmission link established through a communication protocol (license). The first transmission device can 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 a plurality of first nodes and a plurality of first ports, and the second transmission device has a plurality of second nodes and a plurality of second ports. The first transmission device can select one node from the plurality of first nodes as the first management node, and the second transmission device can select one node from the plurality of second nodes as the 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 can establish a first management communication link (which can also be referred to as a partnership) with the second transmission device through the stored cluster network.
[0054] S202: Determine 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.
[0055] Optionally, the first transmission device creates first port information, pairs it with the second port information of the second transmission device based on the first port information to obtain multiple paths, and determines a first target transmission path between the first transmission device and the second transmission device from the multiple paths.
[0056] Optionally, when the port information of one first port in the first transmission device is successfully paired with the port information of one second port in the second transmission device, a path can be formed. When 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 a first target transmission path based on the first port information and the second port information, in response to receiving a first data transmission instruction, send first target data to the second transmission device based on the first target transmission path.
[0058] Optionally, on the basis that the first transmission device and the second transmission device establish a management communication link and determine a 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, in response to receiving a first data transmission instruction, determine the first target data corresponding to 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 can be understood that since the first transmission device and the second transmission device build paths based on the same information (such as the first port information and the second port information), and can determine the target transmission path in the same way among the multiple built paths, the target transmission paths (such as the first target transmission path) determined by the first transmission device and the second transmission device are also the same. In this way, both parties have built and determined the same transmission path, and data transmission can be achieved based on the above-mentioned same transmission path. In the case where one party (such as the first transmission device and / or the second transmission device) changes (such as the port information changes due to a network attack, or the communication protocol changes), the path changes, that is, the first transmission device and the second transmission device can no longer transmit data, avoiding problems such as data loss and leakage caused by device (or site) anomalies.
[0060] Based on the characteristics of redundant links (such as management communication links), storage multi-nodes (such as each first node, each second node), and storage multi-remote replication groups (such as multiple paths) in the transmission device, the embodiments of this application determine the target transmission path between both ends, improving the performance of remote replication 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 Fibre Channel (RDMA over Converged Ethernet, RoCE) network is different from that of media such as Ethernet. The RoCE network realizes direct memory access with low latency and high throughput between the data center and the storage system, and at the same time requires a zero error rate for data transmission, taking into account the security and performance of data transmission during the remote replication process. To address the above problems, the embodiments of this application can provide a unified port information synchronization process and path selection method for the remote replication paths between devices of different media, and add a remote replication function based on the storage system, so it can be applied to remote replication backup of data of different media.
[0062] Optionally, Figure 3 This is the second flowchart of a data transmission method provided by the embodiments of this application. As Figure 3 shown, after step S201, it includes:
[0063] S301: When detecting an update of the first port information, send a management communication link update instruction to the second transmission device, and establish a second management communication link with the second transmission device;
[0064] S302: Send 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 the first target port information;
[0065] S303: When receiving the first target port information sent by the second transmission device, determine a second target transmission path based on the new first port information and the first target port information;
[0066] S304: When the second transmission device also establishes a second management communication link with the first transmission device and also determines a 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, send second target data 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, it 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 it is necessary to re-establish the management communication link and re-determine the target transmission path. For example, when the first transmission device sends a 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 a 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. The new first port information can indicate the updated first port information.
[0069] Optionally, when establishing the second management communication link, the first transmission device can 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. The first information acquisition instruction is used to control the second transmission device to send the first target port information to the first transmission device. The first target port information is the 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 a second target transmission path between it 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 a second management communication link is also established between the second transmission device and the first transmission device, and the same second target transmission path is also determined based on the new first port information and the first target port information, the first transmission device, in response to receiving a second data transmission instruction, determines second target data corresponding to the second transmission instruction, and sends the second target data to the second transmission device based on the second target transmission path.
[0074] Similarly, when establishing the second management communication link, 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 second transmission device and the first transmission device based on the new first port information and the first target port information. Therefore, when the first transmission device establishes the second management communication link and determines the second target transmission path, the second transmission device receives the second target data sent by the first transmission device based on the second target transmission path.
[0075] Optionally, the reasons for the change of port information include, but are not limited to, node crash, node recovery, port connection disconnection, port connection establishment, port rate change, user insertion or removal of the network card of the transmission device, etc.
[0076] Among them, 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 can communicate with each other.
[0077] Exemplarily, the first transmission device obtains the service IP of the second transmission device from the second transmission device, and then creates a remote replication partnership with the second transmission device on the first transmission device. After the creation on the first transmission device is successful, the first transmission device establishes a network connection (which can also be called a management communication link) with the second transmission device through a tcp / ip connection request using the service IP of the second transmission device. The first transmission device sends a request to the second transmission device through the above tcp / ip connection to obtain the second port information. At this time, the second transmission device has not established a remote replication partnership with the first transmission device and cannot process the request for the second port information sent by the first transmission device. The second transmission device obtains the service IP of the first transmission device on the first transmission device, and then creates a remote replication partnership with the first transmission device. After the creation is successful, the second transmission device establishes a network connection (which can also be called a management communication link) with the first transmission device through a tcp / ip connection request using the service IP of the first transmission device, and sends a request to the first transmission device through the above tcp / ip connection to obtain the first port information. After receiving the request for the first port information sent by the second transmission device, the first transmission device determines that the second transmission device has established a remote replication partnership and sends a request for network port information to the second transmission device again. At this time, the second transmission device listens to the service IP of the first transmission device. When the second transmission device receives the request for the first port information sent by the first transmission device, it encapsulates the second transmission device into a data packet and transmits it to the first transmission device. The first transmission device receives the port information of the second transmission device, obtains the local port information, and then selects a path for remote replication (which can also be called a 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] Based on the first port information and the second port information, establish at least one candidate data transmission path with the second transmission device; the first port information includes parameters of at least one first port, and 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 parameters of at least one second port, and 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 the parameters in the first port information and the second port information, select at least one candidate data transmission path from the candidate data transmission paths and determine it as the first target transmission path.
[0081] Optionally, the first port information includes the parameters of at least one first port, and the parameters of the first port include the first node ID, the first port ID, and the first port transmission rate. The second port information includes the parameters of at least one second port, and 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 each second port information to establish at least one candidate data transmission path with the second transmission device. Among them, a pair of a first port and a second port 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 parameters of the second port are the same.
[0082] Optionally, obtain 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. Based on the priority order of each parameter, sequentially select a candidate data transmission path from the above-mentioned candidate data transmission paths and determine it as the first target transmission path.
[0083] Optionally, the parameters of the port 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] Exemplarily, 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] Third priority: 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 valid, 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 paths already selected on the node can be counted, and the node with a larger number has a lower priority.
[0092] Optionally, when the priority orders of two or more paths of a node are the same, the path corresponding to the node with a smaller number of 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, before sending 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, it includes:
[0094] Obtain the number of the first target transmission paths;
[0095] When the number of the first target transmission paths is greater than one, among the first target transmission paths, select one first target transmission path and determine it as the main transmission path;
[0096] Among the first target transmission paths, determine each non-first target transmission path as a standby transmission path.
[0097] Optionally, when determining the first target transmission path, the number of the first target transmission paths can be obtained. When the number of the first target transmission paths is greater than one, select one first target transmission path among the first target transmission paths and determine it as the main transmission path.
[0098] Optionally, the method of selecting the main transmission path can be specifically set according to the actual situation. Exemplarily, one can be randomly selected as the main transmission path among the first target transmission paths. Another exemplarily, the first target transmission path with the maximum port transmission rate can be selected as the main transmission path.
[0099] Optionally, after determining the main transmission path, the other paths (i.e., non-first target transmission paths) among the first target transmission paths are determined as standby transmission paths. Among them, the main transmission path is used as the path for the first transmission device to transmit data to the second transmission device when the status is normal. The standby transmission path is used as the path for the first transmission device to transmit data to the second transmission device when the status of the main transmission path is abnormal.
[0100] Optionally, 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, in response to receiving a first data transmission instruction, sending 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 of the first transmission device and the second port information, in response to receiving a first data transmission instruction, determining first target data corresponding to the first data transmission instruction and obtaining the status of the primary transmission path;
[0102] When the status of the primary transmission path indicates 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 primary transmission path indicates abnormal, selecting a new primary transmission path from each standby transmission path and sending the first target data to the second transmission device based on the new primary transmission path.
[0105] Optionally, when the first transmission device establishes a first management communication link with the second transmission device and determines a 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, in response to receiving a first data transmission instruction, determines first target data corresponding to the first data transmission instruction and obtains the status of the primary transmission path in the first target transmission path.
[0106] Optionally, when the status of the primary transmission path indicates 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 abnormal, the first transmission device may select a new primary transmission path from each standby transmission path and send the first target data to the second transmission device based on the new primary transmission path.
[0108] Optionally, the method for selecting the new primary transmission path can be specifically set according to the actual situation. Exemplarily, a new primary transmission path is randomly selected from each standby transmission path. Another example is to select the standby transmission path with the maximum port transmission rate from each standby transmission path as the new primary storage transmission path. Still another example is to select the standby transmission path corresponding to the node closest to the first management node from each standby transmission path and determine it as the new primary transmission path. Herein, the first management node is used to indicate the node corresponding to the first management communication link in the first transmission device.
[0109] Optionally, step S201 includes:
[0110] Establish a first management communication link with the second transmission device, and send 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 the preset time period, determine the first port information of the first transmission device;
[0112] Or,
[0113] 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, update the first management communication link to a stop state; wherein, the stop state is used to indicate the state where the data transmission between the two transmission devices corresponding to the management communication link is paused.
[0114] Optionally, when the first transmission device establishes the first management communication link with the second transmission device, it can 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 the 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 the preset time period, obtain the first port information of the first transmission device. Or, 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, update the first management communication link to a stop state. The stop state is used to indicate the state where the data transmission between the two transmission devices corresponding to the management communication link is paused. For example, when the first management communication link is updated to the stop state, it indicates that the data transmission of both the first transmission device and the second transmission device corresponding to the first management communication link is paused.
[0115] Herein, the preset time period can be specifically set according to the actual situation. Exemplarily, the preset time period indicates 1 minute after the above instruction is sent. Another example is that the preset time period indicates 3 minutes after the instruction is sent.
[0116] Figure 4 This is one of the application schematic diagrams of the data transmission method provided by the embodiments of the present application.
[0117] As shown Figure 4 in the figure, the first transmission device establishes a first management communication link with the second transmission device, and sends a second information acquisition instruction to the second transmission device based on the first management communication link. Determine whether the second port information sent by the second transmission device is received within a preset time period. When the second port information is received within the preset time period, obtain the first port information of the first transmission device. Alternatively, when the second port information is not received within the preset time period, update the first management communication link to a stopped state.
[0118] Optionally, the first transmission device includes at least one non-management node; after step S201, it further includes:
[0119] When it is detected that a non-management node is lost, send 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;
[0120] When the second target port information sent by the second transmission device is not received within the preset time period, update the first management communication link to a stopped state.
[0121] Optionally, the first transmission device includes multiple nodes, wherein, one node that establishes the management communication link is the first management node, and the nodes that do not establish the management communication link are non-management nodes.
[0122] Optionally, when the first transmission device establishes the first management communication link with the second transmission device and obtains the second port information, if it is detected that one or more non-management nodes are lost, generate a third information acquisition instruction and send 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 (when the third information acquisition instruction is received) to the first transmission device.
[0123] Optionally, when the first transmission device does not receive the second target port information sent by the second transmission device within the preset time period, update the first management communication link to a stopped state, so that the first transmission device and the second transmission device pause operations such as using the first management communication link to transmit port information and determining the target transmission path, thereby pausing data transmission between the first transmission device and the second transmission device.
[0124] Figure 5 This is the second application schematic diagram of a data transmission method provided by the embodiments of the present application.
[0125] As Figure 5As shown, 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. When it is detected that there is a loss of non-management nodes, a third information acquisition instruction is sent to the second transmission device. It is determined whether the second target port information sent by the second transmission device is received within a preset time period. When the second target port information sent by the second transmission device is received within the preset time period, a new target transmission path between the first transmission device and the second transmission device is determined based on the target first port information of the first transmission device and the second target port information. When 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 second transmission device based on the target first port information and the second target port information, in response to a new data transmission instruction, the fourth target data is sent to the second transmission device based on the new target transmission path. Alternatively, when 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 can be understood that at the initial moment, the cluster systems of the first transmission device and the second transmission device are in an invalid state. When the first transmission device and the second transmission device create a remote replication partnership, it becomes an active state of the remote replication partnership. During the process of creating a remote replication partnership, the first transmission device (or the second transmission device) can send a request for obtaining port information to the remote partner relationship cluster (such as the second transmission device or the first transmission device), and at this time, it is updated to the state of discovering port information.
[0127] Optionally, when the first transmission device (or the second transmission device) does not receive port information or when a certain node is lost, a discovery port information retry operation is triggered, and a request for obtaining port information can be resent every once in a while until the port information is successfully received.
[0128] Optionally, the first transmission device further includes a first management node; after step S201, it further includes:
[0129] When it is detected 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 with the second transmission device based on the new first management node; wherein, the first management node is used to indicate the node corresponding to the first management communication link in the first transmission device;
[0130] A fourth information acquisition instruction is sent to the second transmission device based on the third management communication link, and the fourth target port information corresponding to the new first management node is obtained;
[0131] When the third target port information sent by the second transmission device is received within a preset time period, based on the fourth target port information and the third target port information, determine the third target transmission path between the first transmission device and the second transmission device;
[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, send the third target data 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, select a new first management node from each non-management node, and establish 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 corresponding to the first management communication link.
[0134] Among them, the method of selecting the new first management node can be specifically set according to the actual situation. Exemplarily, randomly select a node from each non-management node and determine it as the new first management node. Another example is to select the non-management node closest to the first management node from each non-management node and determine it as the new first management node.
[0135] Optionally, send a fourth information acquisition instruction to the second transmission device based on the third management communication link, and obtain the fourth target port information corresponding to the new first management node in the first transmission device. 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, when the third target port information sent by the second transmission device is received within a preset time period, based on the fourth target port information of the first transmission device and the third target port information of the second transmission device, determine the third target transmission path between the first transmission device and the second transmission device. Among them, the second target port information is the new port information sent by the second transmission device (when 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, in response to receiving the third data transmission instruction, 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, update the third management communication link to a stopped state to suspend data transmission between the first transmission device and the second transmission device.
[0139] Figure 6 FIG. 3 is a schematic diagram of the application of a data transmission method provided by an embodiment of the present application.
[0140] As Figure 6 shown, the first transmission device and the second transmission device establish a first management communication link, 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. In the case of detecting the loss of the first management node, select a new first management node from each non-management node, establish a third management communication link with the second transmission device based on the new first management node, send a fourth information acquisition instruction to the second transmission device based on the third management communication link, and obtain the fourth target port information corresponding to the new first management node. Determine whether the third target port information sent by the second transmission device is received within a preset time period. When the third target port information sent by the second transmission device is received within the preset time period, determine the third target transmission path between the first transmission device and the second transmission device based on the fourth target port information and the third target 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 a third data transmission instruction, send third target data to the second transmission device based on the third target transmission path. Alternatively, when the third target port information sent by the second transmission device is not received within a preset time period, update the first management communication link to a stopped state.
[0141] Optionally, Figure 7 FIG. 3 is a schematic flowchart of a data transmission method provided by an embodiment of the present application. As Figure 7 shown, after step S201, the method further includes:
[0142] S701: In response to receiving a deletion instruction, update 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. If a deletion instruction is received, the first management communication link is updated to a stopped state, the data transmission between the first transmission device and the second transmission device is paused, and then the first management communication link is deleted, and the management communication link becomes invalid. This can avoid problems such as data leakage or loss caused by directly deleting the management communication link.
[0145] Optionally, Figure 8 FIG. 4 is a schematic flow chart of a data transmission method provided by an embodiment of the present application. As Figure 8 shown, after step S202, it includes:
[0146] S801: When there is an abnormality in the communication protocol corresponding to the first target transmission path, update the first management communication link to a stopped state.
[0147] Optionally, when the first transmission device determines the first target transmission path between the first transmission device and the second transmission device, it can obtain the status of the communication protocol (or called license) corresponding to the first target transmission path in real time. When it detects that the status indication of the communication protocol corresponding to the first target transmission path is abnormal, to avoid problems such as 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 pause operations such as using the first management communication link to transmit port information and determining the target transmission path, thereby pausing the data transmission between the first transmission device and the second transmission device.
[0148] In each embodiment of the present application, when the port information changes are detected, the port information is resynchronized, which improves the consistency of the port information of the first transmission device and the second transmission device, optimizes the path selection method, improves the performance of data backup based on remote replication, and improves the security of data remote transmission. Moreover, it can fully consider abnormal scenarios while supporting normal scenarios, improving the stability of the system.
[0149] Figure 9 FIG. 1 is a schematic flow chart of another data transmission method provided by an embodiment of the present application. As Figure 9 shown, an embodiment of the present application also provides a data transmission method, including:
[0150] S901: Establish a first management communication link with the first transmission device, obtain the first port information of the first transmission device based on the first management communication link, and determine the second port information of the 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 a first management communication link is also established between the first transmission device and the second transmission device, and the first target transmission path is determined based on the first port information and the second port information, receive the first target data sent by the first transmission device based on the first target transmission path.
[0153] Optionally, the data transmission method provided in this embodiment can be used in the 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, so as to determine the first target transmission path based on the first port information and the second port information. When the first transmission device also 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, receive the first target data sent by the first transmission device based on the first target transmission path. The specific implementation manner can refer to the foregoing embodiments and will not be elaborated here.
[0155] Optionally, after establishing a first management communication link with the first transmission device, obtaining the first port information of the first transmission device based on the first management communication link, and determining the second port information of the second transmission device, it further includes:
[0156] When receiving a management communication link update instruction sent by the first transmission device, establish a second management communication link with the first transmission device based on the management communication link update instruction;
[0157] When receiving a first information acquisition instruction sent by the first transmission device, send the first target port information to the first transmission device and send a new first port information acquisition instruction to the first transmission device;
[0158] When receiving the new first port information sent by the first transmission device, determine a 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 determines the second target transmission path based on the new first port information and the first target port information, receive the second target data sent by the first transmission device 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] Based on the first port information and the second port information, establish at least one candidate data transmission path with the first transmission device; the first port information includes the parameters of at least one first port, and the parameters of the first port include the first node ID, the first port ID, and the first port transmission rate. The second port information includes the parameters of at least one second port, and the parameters of the second port include the second node ID, the second port ID, and the second port transmission rate;
[0162] Based on the priority order of the parameters in the first port information and the second port information, select at least one candidate data transmission path from the candidate data transmission paths and determine it as the first target transmission path.
[0163] Optionally, when a first management communication link is also established between the first transmission device and the second transmission device, and the first target transmission path is also determined 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, it includes:
[0164] Obtain the number of the first target transmission paths;
[0165] When the number of the first target transmission paths is greater than one, select one first target transmission path from the first target transmission paths and determine it as the main transmission path;
[0166] Among the first target transmission paths, determine each non-first target transmission path as a standby transmission path;
[0167] When a first management communication link is also established between the first transmission device and the second transmission device, and the first target transmission path is also determined based on the first port information and the second port information, receiving the first target data sent by the first transmission device based on the first target transmission path includes:
[0168] When a first management communication link is also established between the first transmission device and the second transmission device, and the first target transmission path is also determined based on the first port information and the second port information, obtain the status of the main transmission path;
[0169] When the status of the main transmission path indicates normal, receive the first target data sent by the first transmission device based on the main transmission path;
[0170] Or,
[0171] When the status of the main transmission path indicates abnormal, select a new main transmission path from the standby transmission paths, and receive the first target data sent by 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 the 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 a first target transmission path based on the first port information and the second port information, obtain the status of the primary transmission path in the first target transmission path;
[0174] When the status of the primary transmission path indicates normal, receive the first target data sent by the first transmission device based on the primary transmission path;
[0175] Or,
[0176] When the status of the primary transmission path indicates abnormal, select a new primary transmission path from the first target transmission path, and receive the first target data sent by the first transmission device based on the new primary transmission path; the new primary transmission path is a non-primary 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 the first port information of the first transmission device based on the first management communication link, and determining the second port information of the second transmission device, it further includes:
[0178] When it is detected that there is a loss of a second non-management node, send a fifth information acquisition instruction 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, update the first management communication link to a stopped state.
[0180] Optionally, after establishing a first management communication link with the first transmission device, obtaining the first port information of the first transmission device based on the first management communication link, and determining the second port information of the second transmission device, it further includes:
[0181] When receiving a third information acquisition instruction, send the second target port information to the first transmission device, and send a target first port information acquisition instruction to the first transmission device;
[0182] When the target first port information acquisition instruction sent by the second transmission device is not received within a preset time period, update the first management communication link to a stopped state;
[0183] Or,
[0184] When receiving a target first port information acquisition instruction sent by a second transmission device within a preset time period, determine a new target transmission path with 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 has a new target transmission path with the second transmission device based on the target first port information and the second target port information, receive fourth target data sent by the first transmission device based on the new target transmission path.
[0186] Optionally, after establishing a first management communication link with the first transmission device, obtaining the first port information of the first transmission device based on the first management communication link, and determining the second port information of the second transmission device, further include:
[0187] In response to receiving a deletion instruction, update the first management communication link to a stopped state;
[0188] Delete the first management communication link.
[0189] Optionally, after determining a first target transmission path with the first transmission device based on the first port information and the second port information, include:
[0190] When there is an abnormality in the communication protocol corresponding to the first target transmission path, update the first management communication link to a stopped state.
[0191] Figure 10 This is one of the flow diagrams of another data transmission method provided by the embodiments of the present application. As Figure 10 shown, the embodiments of the present application also provide a data transmission method, including:
[0192] S1001: 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;
[0193] S1002: The first transmission device determines a first target transmission path with 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 the first port information based on the first management communication link, and determines the 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 a first data transmission instruction, the first transmission device sends first target data to the second transmission device based on a 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 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, so as to determine 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 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, so as to also determine the first target transmission path based on the first port information and the second port information. In this way, the first transmission device can, in response to receiving the first data transmission instruction, send the first target data to the second transmission device based on the first target transmission path, so that the second transmission device receives the first target data sent by the first transmission device based on the first target transmission path. For the specific implementation manners, reference may be made to the foregoing embodiments and will not be elaborated herein.
[0199] Through the description of the above implementation manners, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation manner.
[0200] Figure 11 This is a schematic structural diagram of an electronic device provided by the present application. As Figure 11 shown, the electronic device provided in this embodiment includes at least one processor 1101 and a memory 1102. Optionally, the electronic device further includes a communication component 1103. Among them, the processor 1101, the memory 1102, and the communication component 1103 are connected through a bus.
[0201] In a specific implementation process, at least one processor 1101 executes computer execution instructions stored in the memory 1102, so that at least one processor 1101 executes the data transmission method embodiment described above.
[0202] For the specific implementation process of the processor 1101, reference may be made to the above method embodiment. The implementation principle and technical effects are similar and will not be elaborated herein.
[0203] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with the application can be directly implemented by the execution of the hardware processor, or implemented by the combination of hardware and software modules in the processor.
[0204] The memory may include a random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory.
[0205] The bus may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
[0206] The embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, and the computer program is configured to execute the steps in any of the above data transmission method embodiments when running.
[0207] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs, etc., various media that can store computer programs.
[0208] The embodiments of the present application also provide a computer program product, the above computer program product includes a computer program, and when the computer program is executed by a processor, the steps in any of the above data transmission method embodiments are implemented.
[0209] Embodiments of the present application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, and the computer program, when executed by a processor, implements the steps in any of the above-described embodiments of the data transmission method.
[0210] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0211] The above has introduced in detail a data transmission method, device, medium, and program product provided by the present application. Specific examples are used herein to illustrate the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A data transmission method, characterized in that, Including: 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 a first transmission device; Determine 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; 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 a first data transmission instruction, send first target data to the second transmission device based on the first target transmission path.
2. The data transmission method according to claim 1, wherein After establishing the 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, it includes: When it is detected that the first port information is updated, send a management communication link update instruction to the second transmission device and establish a second management communication link with the second transmission device; Send 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; When receiving the first target port information sent by the second transmission device, determine a second target transmission path based on the new first port information and the first target 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, send second target data to the second transmission device based on the second target transmission path.
3. The data transmission method according to claim 1, wherein The determining 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 includes: Based on the first port information and the second port information, establish at least one candidate data transmission path between the first transmission device and the second transmission device; the first port information includes parameters of at least one first port, the parameters of the first port include a first node ID, a first port ID, and a first port transmission rate, and the second port information includes parameters of at least one 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 the parameters in the first port information and the second port information, select at least one candidate data transmission path from the candidate data transmission paths and determine it as the first target transmission path.
4. The data transmission method according to claim 3, wherein When a first management communication link is also established between the second transmission device and the first transmission device, and the first target transmission path is also determined based on the first port information and the second port information, before sending first target data to the second transmission device based on the first target transmission path in response to receiving a first data transmission instruction, it includes: Obtain the number of the first target transmission paths; When the number of the first target transmission paths is greater than one, select one first target transmission path from each of the first target transmission paths and determine it as the main transmission path; Among each of the first target transmission paths, determine each non-first target transmission path as a standby transmission path; When a first management communication link is also established between the second transmission device and the first transmission device, and the first target transmission path is also determined based on the first port information and the second port information, sending first target data to the second transmission device based on the first target transmission path in response to receiving a first data transmission instruction includes: When a first management communication link is also established between the second transmission device and the first transmission device, and the first target transmission path is also determined based on the first port information of the first transmission device and the second port information, in response to receiving the first data transmission instruction, determine the first target data corresponding to the first data transmission instruction, and obtain the status of the main transmission path; When the status of the main transmission path indicates normal, send the first target data to the second transmission device based on the main transmission path; Or, When the status of the main transmission path indicates abnormal, select a new main transmission path from each of the standby transmission paths, and send the first target data to the second transmission device based on the new main transmission path.
5. The data transmission method according to claim 1, characterized in that, Establishing the 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 includes: Establish a first management communication link with the second transmission device, and send 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, determine 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 second port information, update the first management communication link to a stopped state; wherein, the stopped state is used to indicate the state where data transmission between two transmission devices corresponding to the management communication link is paused.
6. The data transmission method according to claim 1, characterized in that The first transmission device includes at least one non-management node; after establishing the 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, it further includes: When it is detected that there is a loss of a non - management node, send 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, update the first management communication link to a stopped state.
7. The data transmission method according to claim 6, 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, it further includes: When it is detected that the first management node is lost, select a new first management node from each of the non - management nodes, and establish 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 the node in the first transmission device corresponding to the first management communication link. Send a fourth information acquisition instruction to the second transmission device based on the third management communication link, and obtain fourth target port information corresponding to the new first management node. When the third target port information sent by the second transmission device is received within a preset time period, determine a third target transmission path between the first transmission device and the second transmission device based on the fourth target port information and the third target 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 a third data transmission instruction, send third target data to the second transmission device based on the third target transmission path.
8. The data transmission method according to claim 1, characterized in that 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, it further includes: In response to receiving a deletion instruction, update the first management communication link to a stopped state. Delete the first management communication link.
9. The data transmission method according to claim 1, wherein After determining 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, it includes: When there is an abnormality in the communication protocol corresponding to the first target transmission path, update the first management communication link to a stopped state.
10. A data transmission method, characterized in that, It includes: Establish a first management communication link with the first transmission device, obtain the first port information of the first transmission device based on the first management communication link, and determine the second port information of the second transmission device. Determine a first target transmission path based on the first port information and the second port information. 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, receive the first target data sent by the first transmission device based on the first target transmission path.
11. The data transmission method according to claim 10, wherein 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, it further includes: When receiving a 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; When receiving a first information acquisition instruction sent by the first transmission device, sending first target port information to the first transmission device and sending a new first port information acquisition instruction to the first transmission device; When receiving 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, receiving second target data sent by the first transmission device based on the second target transmission path.
12. The data transmission method according to claim 10, 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 the status of the main transmission path in the first target transmission path; When the status of the main transmission path indicates normal, receiving first target data sent by the first transmission device based on the main transmission path; Or, When the status of the main transmission path indicates abnormal, selecting a new main transmission path from the first target transmission path and receiving first target data sent by the first transmission device based on the new main transmission path; the new main transmission path is a non-main transmission path in the first target transmission path.
13. A data transmission method, characterized in that, It includes: 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; 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, 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 a first data transmission instruction, the first transmission device sends 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.
14. An electronic device, characterized in that, Comprising: A memory for storing computer programs; A processor, when the electronic device is the first transmission device and executes the computer program, implements the steps of the data transmission method according to any one of claims 1 to 9, and when the electronic device is the second transmission device and executes the computer program, implements the steps of the data transmission method according to any one of claims 10 to 12.
15. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, 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 9 or 10 to 12 are implemented.
16. 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 9 or 10 to 12 are implemented.
Citation Information
Patent Citations
Method and device for establishing data transmission route
CN104283780A
Methods and systems for transmitting packets through aggregated end-to-end connection
CN105579989A
Data processing method and device for transport layer and user mode protocol stack
CN108737413A
Method and device for improving communication performance of storage system and medium
CN114328317A
Session connection method, interaction method, device, equipment and medium
CN117978851A
Cited By
Data upgrading method and device and electronic equipment
CN120560700A