Node, industrial communication network and data transmission method

By introducing redundant ports and mapping forwarding relationships into industrial network nodes, the direct data transmission between the first ring network and the second ring network is realized, and the problem of data loss in the failure recovery process of ring network redundancy technology is solved. Improves the reliability and stability of data transmission.

CN119172200APending Publication Date: 2024-12-20SHENZHEN INOVANCE TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411325271.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In industrial networks, ring network redundancy technology needs to perform fault detection and path selection algorithms after a failure occurs, resulting in a certain amount of time in the path recovery process, resulting in unreliable data transmission and data loss.

Method used

Design a node that has redundant ports in the first ring network and establishes a mapping forwarding relationship with the second ring network nodes to realize direct transmission of data between the first ring network and the second ring network to avoid The fault detection and path selection process is carried out to ensure that the data can still be transmitted normally in the event of a failure.

Benefits of technology

It effectively avoids data loss, ensures reliable data transmission, reduces fault processing time, and improves the reliability and stability of industrial networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172200A_ABST
    Figure CN119172200A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a node, an industrial communication network and a data transmission method, and relates to the technical field of industrial communication, the node is located in a first ring network, and ports of the first ring network node comprise a first port and a second port; wherein the second port is a redundant port of the first port; a mapping forwarding relationship of forwarding data exists between the second port of the first ring network node and at least one port of the second ring network node; and the first looped network node performs data transmission with at least one port of the second looped network node through the second port and the mapping forwarding relationship. According to the embodiment of the invention, the second port of the first looped network node and at least one port of the second looped network node carry out data transmission through the mapping forwarding relation, and after the communication path of the first looped network or the second looped network breaks down, data transmission can still be normally carried out between the first looped network and the second looped network. The situation of data loss is avoided, and reliable transmission of data is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial communication technology, and in particular to a node, an industrial communication network and a data transmission method. Background Art

[0002] In industrial network systems, in order to avoid the influence of harsh environmental conditions, which may cause data errors or loss during the data transmission process, the relevant technology uses ring network redundancy technology, adopts multiple devices to form a ring topology network (i.e., ring network), and constructs an industrial communication network based on multiple ring networks. Data transmission is achieved by establishing communication connections between different ring networks.

[0003] During the operation of the industrial communication network, corresponding equipment and link monitoring systems are equipped to monitor the status of each node and link in the ring network in real time. When a fault is detected, a timely response can be made. A normal communication path is selected from multiple communication paths through a path selection algorithm for data transmission, and path switching recovery is achieved to avoid communication failures caused by failures in certain paths that prevent normal data transmission. This solves the problem of telegram errors or failures in data transmission caused by harsh environments, and ensures reliable data transmission.

[0004] However, the above method needs to execute fault detection and path selection algorithm after the fault occurs, resulting in a certain recovery time for the path recovery process. During this recovery time, data loss may still occur due to the continued existence of the fault, thereby affecting the normal operation of the industrial network system and making data transmission unreliable. Summary of the invention

[0005] The main purpose of the present application is to provide a node, an industrial communication network and a data transmission method. After a communication path failure occurs in the first ring network or the second ring network, data transmission can still be carried out normally between the first ring network and the second ring network, thereby effectively avoiding data loss and ensuring reliable data transmission.

[0006] To achieve the above object, the present application provides a node, the node is located in a first ring network, and the ports of the first ring network node include: a first port and a second port;

[0007] The second port of the first ring network node is a redundant port of the first port;

[0008] There is a mapping forwarding relationship for forwarding data between the second port of the first ring network node and at least one port of the second ring network node;

[0009] The first ring network node transmits data through the second port and at least one port of the second ring network node through the mapping and forwarding relationship.

[0010] In one embodiment, the first ring network establishes a coupling connection with at least one port of the second ring network node through the first port of the first ring network node and the second port of the first ring network node to form different communication paths.

[0011] In one embodiment, the port of the first ring network node further includes: a third port and a fourth port;

[0012] The fourth port of the first ring network node is a redundant port of the third port of the first ring network node;

[0013] The first ring network establishes a coupling connection with a first port of any second ring network node through a first port of the first ring network node and a second port of the first ring network node to form a first communication path;

[0014] The first ring network establishes a coupling connection with a first port of another second ring network node through the third port of the first ring network node and the fourth port of the first ring network node to form a second communication path.

[0015] In one embodiment, the mapping-forwarding relationship includes: a first mapping-forwarding relationship and a second mapping-forwarding relationship;

[0016] There exists the first mapping forwarding relationship between the second port of the first ring network node and the first port of any second ring network node;

[0017] In the first communication path, the first ring network node transmits data with the first port of any second ring network node through the second port of the first ring network node based on the first mapping forwarding relationship;

[0018] There exists the second mapping forwarding relationship between the fourth port of the first ring network node and the first port of the another second ring network node;

[0019] In the second communication path, the first ring network node transmits data with the first port of the another second ring network node through the fourth port of the first ring network node based on the second mapping forwarding relationship.

[0020] In one embodiment, the first ring network node includes: a first node and a second node;

[0021] The first port of the first node and the second port of the first node are coupled to the first port of any second ring network node to form a third communication path;

[0022] The first port of the second node and the second port of the second node establish a coupling connection with the first port of another second ring network node to form a fourth communication path.

[0023] In one embodiment, the mapping-forwarding relationship includes: a third mapping-forwarding relationship and a fourth mapping-forwarding relationship;

[0024] There exists the third mapping and forwarding relationship between the second port of the first node and the first port of any second ring network node;

[0025] In the third communication path, the first node transmits data with the first port of any second ring network node through the second port of the first node based on the third mapping forwarding relationship;

[0026] There exists the fourth mapping and forwarding relationship between the second port of the second node and the first port of another second ring network node;

[0027] In the fourth communication path, the second node transmits data with the first port of the another second ring network node through the second port of the second node based on the fourth mapping and forwarding relationship.

[0028] In addition, to achieve the above objectives, the present application also proposes an industrial communication network, which includes the nodes mentioned above.

[0029] In addition, to achieve the above purpose, the present application also proposes a data transmission method, which is applied to the industrial communication network described above, and the data transmission method includes:

[0030] Reading a mapping forwarding relationship between a second port of the first ring network node and at least one port of the second ring network node;

[0031] The message to be transmitted in the first ring network node is forwarded to the port of the corresponding second ring network node through the mapping forwarding relationship.

[0032] In one embodiment, the step of forwarding the message to be transmitted in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship includes:

[0033] When the second port of the first ring network node receives the message to be transmitted in the first ring network, reading the preset relationship table;

[0034] Wherein, the preset relationship table includes the association relationship between the second port of the first ring network node and the address information of each node in the second ring network;

[0035] Searching the preset relationship table for node address information corresponding to the second port of the first ring network node in the second ring network;

[0036] The message to be transmitted is forwarded to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information.

[0037] In one embodiment, the step of forwarding the message to be transmitted to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information includes:

[0038] Determining whether the message to be transmitted is a broadcast message;

[0039] If it is the broadcast message, reading the source address information of the message to be transmitted;

[0040] Determining whether the message to be transmitted originates from other nodes in the first ring network according to the source address information;

[0041] If so, forwarding the message to be transmitted to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information;

[0042] If not, the message to be transmitted is not forwarded.

[0043] In one embodiment, the step of forwarding the message to be transmitted in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship further includes:

[0044] When the second port of the first ring network node receives a message to be transmitted, determining whether the message to be transmitted is a combined message;

[0045] If it is the combined message, intercepting a local message whose destination node address is a local address from the message to be transmitted;

[0046] taking the intercepted message to be transmitted which does not contain the local message as the next transmission message;

[0047] The next transmission message is forwarded to the port of the corresponding second ring network node through the mapping forwarding relationship.

[0048] In one embodiment, the step of forwarding the message to be transmitted in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship further includes:

[0049] When the second port of the first ring network node receives the message to be transmitted, determining whether the destination node address information of the message to be transmitted is the same as that of another message to be transmitted, the other message to be transmitted being a message that has not yet been transmitted to the next node;

[0050] If yes, combining the message to be transmitted with the other message to be transmitted to obtain a combined message;

[0051] If not, the message to be transmitted is used as the next transmission message;

[0052] The combined message or the next transmission message is forwarded to the port of the corresponding second ring network node through the mapping forwarding relationship.

[0053] In one embodiment, before the step of forwarding the message to be transmitted in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship, the step further includes:

[0054] When the second port of the first ring network node receives a message to be transmitted, and the destination node address information of the message to be transmitted is consistent with the local address information, the message to be transmitted is compared with the locally received message, and the locally received message is a message that does not need to be transmitted to the next node;

[0055] When the node address, address information and sequence number of the message to be transmitted are consistent with those of the locally received message, the message to be transmitted or the locally received message is selected for discarding;

[0056] When the node address, address information or sequence number of the message to be transmitted is inconsistent with that of the locally received message, verifying the message to be transmitted;

[0057] If the verification is passed, the message to be transmitted is saved locally;

[0058] If the check fails, the message to be transmitted is discarded.

[0059] In addition, to achieve the above-mentioned purpose, the present application also proposes an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, it implements the data transmission method as described in any of the above items.

[0060] In addition, to achieve the above-mentioned purpose, the present application also proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the data transmission method as described in any of the above items is implemented.

[0061] One or more technical solutions proposed in this application have at least the following technical effects:

[0062] The node disclosed in the embodiment of the present application is located in the first ring network, and the port of the first ring network node includes: a first port and a second port; wherein the second port of the first ring network node is a redundant port of the first port; there is a mapping forwarding relationship for forwarding data between the second port of the first ring network node and at least one port of the second ring network node; the first ring network node transmits data through the second port and at least one port of the second ring network node through the mapping forwarding relationship. Since the first ring network node of the embodiment of the present application is also provided with a redundant second port on the basis of the first port, the second port of the first ring network node transmits data through the mapping forwarding relationship with at least one port of the second ring network node, therefore, during operation, even if the communication path of the first ring network or the second ring network fails, data transmission can still be carried out normally between the first ring network and the second ring network. Compared with the prior art, the present application effectively avoids the occurrence of data loss and ensures reliable data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0065] Figure 1 This is a schematic diagram of the structure of the first embodiment of the node of this application;

[0066] Figure 2 This is a schematic diagram of the structure of the second embodiment of the node of this application;

[0067] Figure 3 This is a schematic diagram of the structure of the third embodiment of the node of this application;

[0068] Figure 4 This is a schematic diagram of the mapping forwarding relationship in the third embodiment of the node of this application;

[0069] Figure 5 This is a schematic diagram of the structure of the fourth embodiment of the node of the present application;

[0070] Figure 6 This is a schematic diagram of the mapping forwarding relationship in the fourth embodiment of the node of this application;

[0071] Figure 7 This is a flow chart of the first embodiment of the data transmission method of the present application;

[0072] Figure 8This is a flow chart of the second embodiment of the data transmission method of the present application;

[0073] Fig. 9 This is a flowchart of the third embodiment of the data transmission method of the present application;

[0074] Fig.10 This is a schematic diagram of the structure of a combined message in the third embodiment of the data transmission method of the present application;

[0075] Fig.11 This is a schematic diagram of the structure of a non-combined message in the third embodiment of the data transmission method of the present application;

[0076] Fig.12 This is a schematic diagram of transmission of a combined message in the third embodiment of the data transmission method of the present application;

[0077] Fig.13 This is a schematic diagram of combined transmission of messages in the third embodiment of the data transmission method of the present application;

[0078] Fig.14 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0079] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0080] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0081] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0082] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0083] The main solution of the embodiment of the present application is: the node is located in the first ring network, and the port of the first ring network node includes: a first port and a second port; the second port of the node is a redundant port of the first port; there is a mapping forwarding relationship for forwarding data between the second port of the first ring network node and at least one port of the node of the second ring network; the first ring network node transmits data through the second port and at least one port of the second ring network node through the mapping forwarding relationship.

[0084] The network architecture of industrial network systems usually adopts the master / slave mode, in which the master acts as the central control node of the network, responsible for coordinating and managing the operation of the entire network. The master establishes connections with multiple slaves to monitor field devices and sensors, collect data, and issue instructions. As a peripheral node of the master, the slave is responsible for executing the instructions issued by the master, collecting field data and transmitting it back to the master for processing and analysis.

[0085] In industrial network systems, data transmission is affected by electromagnetic interference, conducted interference of long-distance transmission, other harsh environmental conditions, and link disconnection, resulting in data errors or loss during the transmission process. In order to solve the problem of data errors, related technologies usually use ring network redundancy technology to ensure the correct transmission of data, thereby improving the reliability and stability of the system. Ring network redundancy technology usually uses multiple devices to form a ring topology network (or ring network), and an industrial communication network is formed based on multiple ring networks. Data transmission is achieved by establishing communication connections between different ring networks. This design ensures that even if a certain path fails, the data can continue to be transmitted by switching to the backup path, thereby improving the reliability and fault tolerance of the network.

[0086] In order to ensure the effectiveness of ring network redundancy, industrial networks are usually equipped with corresponding equipment and link monitoring systems to monitor the status of each node and link in the ring network in real time, respond in time when a fault is detected, and select a normal communication path from multiple communication paths as a backup communication path for data transmission through a path selection algorithm to achieve path switching recovery, thereby avoiding communication failures caused by failures in the main path that cannot transmit data normally, thereby solving the problem of telegram errors or failures during data transmission caused by harsh environments, and ensuring reliable data transmission. However, the above method needs to execute fault detection and path selection algorithms after the fault occurs, resulting in a certain recovery time required for the path recovery process. During this recovery time, since the fault still exists, data loss will still occur, thereby affecting the normal operation of the industrial network system and unreliable data transmission.

[0087] The present application provides a solution and proposes a node located in the first ring network. The first ring network node is further provided with a redundant second port based on the first port. The second port of the first ring network node and at least one port of the second ring network node transmit data through a mapping forwarding relationship. Therefore, during operation, even if the communication path of the first ring network or the second ring network fails, data transmission can still be carried out normally between the first ring network and the second ring network. Compared with the prior art, the present application effectively avoids the occurrence of data loss and ensures reliable data transmission.

[0088] Based on this, the embodiment of the present application provides a node, referring to Figure 1 , Figure 1 This is a schematic diagram of the structure of the first embodiment of the node of this application.

[0089] In this embodiment, the node is located in a first ring network, and the ports of the first ring network node include: a first port and a second port.

[0090] The second port of the first ring network node is a redundant port of the first port.

[0091] There is a mapping and forwarding relationship for forwarding data between the second port of the first ring network node and at least one port of the second ring network node.

[0092] The first ring network node may be a node in the first ring network, and the second ring network node may be a node in the second ring network.

[0093] The first ring network node transmits data through the second port and at least one port of the second ring network node through the mapping and forwarding relationship.

[0094] It should be noted that the above mapping forwarding relationship is a data forwarding relationship between the second port of a node in the first ring network and the corresponding port of a node in the second ring network.

[0095] like Figure 1 As shown, this embodiment uses node 2 as the first ring network node and node 5 as the second ring network node for explanation, but this solution is not limited thereto, and nodes with a mapping forwarding relationship may also be set in the second ring network. Port 2a of node 2 is the first port, and port 2c of node 2 is the second port. Port 2a is used to transmit data with other nodes in the first ring network. On the basis of port 2c, port 2c is provided, and port 2c is used as a redundant port of port 2a, so that node 2 forms a redundant manager. Port 2c may have a mapping forwarding relationship for forwarding data with at least one port of the second ring network node, that is, port 5a.

[0096] In a specific implementation, other nodes in the first ring network do not have a second port. Other nodes in the first ring network can forward the message to be transmitted to node 2. After receiving the message to be transmitted, port 2a of node 2 can send the message to be transmitted to port 2c. Node 2 feeds back the message to be transmitted of port 2c to port 5a of the corresponding node 5 in the second ring network through a mapping forwarding relationship, thereby realizing data transmission between the first ring network and the second ring network.

[0097] The node provided in this embodiment is located in the first ring network, and the ports of the first ring network include: a first port and a second port; wherein the second port of the first ring network node is a redundant port of the first port; there is a mapping forwarding relationship for forwarding data between the second port of the first ring network node and at least one port located in the second ring network node; the first ring network node transmits data through the second port and at least one port of the second ring network node through the mapping forwarding relationship. Since the first ring network node of this embodiment is also provided with a redundant second port on the basis of the first port, the second port of the first ring network node transmits data through the mapping forwarding relationship with at least one port of the second ring network node, therefore, during operation, even if the communication path of the first ring network or the second ring network fails, data transmission can still be carried out normally between the first ring network and the second ring network. Compared with the prior art, this embodiment effectively avoids the occurrence of data loss and ensures reliable data transmission.

[0098] Based on the first embodiment of the node of the present application, the second embodiment of the node of the present application is proposed. In the second embodiment of the node of the present application, the same or similar contents as those of the first embodiment of the node can be referred to the above introduction, and will not be repeated later. On this basis, please refer to 2, Figure 2 This is a schematic diagram of the structure of the second embodiment of the node of this application.

[0099] In this embodiment, the first ring network establishes a coupling connection with at least one port of the second ring network node through the first port of the first ring network node and the second port of the first ring network node to form different communication paths.

[0100] It should be noted that if the first ring network node is used as the master node, other nodes in the first ring network can be used as slave nodes. If the first ring network node with the second port does not communicate with the second ring network node using a mapping forwarding relationship, it can be used as the master node.

[0101] It should be noted that the above master node may be a central control node in the industrial communication network responsible for coordinating and managing the entire network. The master node is a device in the industrial network system that monitors the status of each node and link in the ring network.

[0102] It is understandable that the slave node can be a peripheral node of the master node, responsible for executing the instructions issued by the master node, collecting field data and transmitting it back to the master node for processing and analysis. The slave node is, for example, a field device or sensor in an industrial network system.

[0103] like Figure 2 As shown, the first ring network includes node 1, node 2, node 3 and node 4. The second ring network may include node 5, node 6 and node 7.

[0104] in, Figure 2 The number of ring networks in the industrial communication network, the number of nodes in the same ring network, and the number of ports of each node shown in the figure are not limited to this application and can be selected according to the actual scenario. For the description of other numbers of ring networks, nodes, and ports, please refer to the subsequent description of Figure 2 For ease of understanding, this embodiment and the following embodiments are described with reference to the first ring network and the second ring network.

[0105] It should be noted that the nodes in the same ring network are connected in series with each other, such as nodes 1, 2, 3 and 4 in the first ring network are connected in series with each other, and nodes 5, 6 and 7 in the second ring network are connected in series with each other.

[0106] It is understandable that the nodes in the first ring network may be provided with multiple nodes with mapping forwarding relationships, and the nodes with mapping forwarding relationships may serve as redundancy managers, and the second port of the redundancy manager may be a coupling port connected to the port of the second ring network node. Figure 2 In the example, port 2c and port 2d with a mapping forwarding relationship can be set in node 2, so that node 2 acts as a redundancy manager, and port 2c and port 2d of node 2 can be coupling ports; port 4c with a mapping forwarding relationship can also be set in node 4, so that node 4 acts as a redundancy manager, and port 4c of node 4 can be a coupling port. Other nodes except the redundant optical path device have no coupling ports. The coupling ports of each redundancy manager can establish communication connections with nodes in the same ring network or different ring networks, so that the redundancy manager can communicate with other nodes through different communication paths.

[0107] It should be noted that the second port of the node in the first ring network can establish a mapping forwarding relationship with the node in the second ring network, thereby establishing a communication connection between the first ring network and the second ring network. The coupling port with a mapping forwarding relationship (i.e., the second port of the node) can be set in at least one node. Specifically, the coupling port with a mapping forwarding relationship can be provided with multiple, and each coupling port with a mapping forwarding relationship can be concentrated in the same node or respectively set in different nodes.

[0108] like Figure 2As shown, in a feasible implementation, node 2 can be used as a redundant manager with a mapping and forwarding relationship, and its port 2c can establish a mapping and forwarding relationship with port 5a of node 5 in the second ring network, and port 2d can establish a mapping and forwarding relationship with port 7b of node 7 in the second ring network, forming a communication path composed of node 1, node 2, node 5, node 6 and node 7. At the same time, a communication path composed of node 1, node 2, node 7, node 6 and node 5 can also be formed. Data transmission between each node in the first ring network and each node in the second ring network can be realized through the different communication paths formed.

[0109] In another feasible implementation, both node 2 and node 4 can serve as redundancy managers with a mapping forwarding relationship, port 2c of node 2 can establish a mapping forwarding relationship with port 5a of node 5 in the second ring network, and port 4c of node 4 can establish a mapping forwarding relationship with port 7b of node 7 in the second ring network. A communication path consisting of node 1, node 2, node 5, node 6 and node 7 is formed, and at the same time, a communication path consisting of node 1, node 4, node 7, node 6 and node 5 can also be formed, and data transmission between each node in the first ring network and each node in the second ring network can be realized through the different communication paths formed.

[0110] It should be noted that in the above implementation, the port with a mapping forwarding relationship can also be set in node 3, and the second ring network can also be provided with a port with a mapping forwarding relationship to establish a communication path with other ring networks, such as ring network C, which is not limited in this embodiment.

[0111] In addition, in different implementations, a communication path consisting of node 1, node 2, node 3 and node 4 can be formed to achieve data transmission between the nodes in the first ring network.

[0112] In a specific implementation, for different communication paths formed by nodes with a mapping forwarding relationship, the nodes in the first ring network can simultaneously transmit the same data to the nodes in the second ring network through various communication paths, and the nodes in the second ring network can also transmit the same data to the nodes in the first ring network through various communication paths. In this data transmission mode, there is no need to execute fault detection and path selection algorithms. Even if any communication path fails, data transmission can still be continued through other normal communication paths. While solving the problem of telegram errors or failures in data transmission caused by harsh environments, it has the characteristic of zero recovery time after failure, effectively ensuring reliable data transmission. And different communication paths can provide a richer networking structure.

[0113] For example, reference Figure 2, taking node 1 as the master node for illustration, port 1b of node 1 can be the first port, port 1a of node 2 can be the second port, and port 1a is the redundant port of port 1b. Port 1a and port 1b of node 1 are connected in series with each slave node in the first ring network, that is, port 1b of node 1 is connected with port 2b of node 2, port 2b of node 2 is connected with port 3a of node 3, port 3b of node 3 is connected with port 4a of node 4, and port 4b of node 4 is connected with port 1a of node 1. Node 2, node 3, node 4, node 5, node 6 and node 7 are all slave nodes.

[0114] In this connection mode, a first main ring network communication path consisting of port 1b of node 1, port 2a of node 2, port 2b of node 2, port 3a of node 3, port 3b of node 3, port 4a of node 4 and port 4b of node 4 is formed, and at the same time, a second main ring network communication path consisting of port 1a of node 1, port 4b of node 4, port 4a of node 4, port 3b of node 3, port 3a of node 3, port 2b of node 2 and port 2a of node 2 can also be formed. Node 1 can simultaneously transmit data with node 2, node 3 and node 4 through the first main ring network communication path and the second main ring network communication path, so that when any main ring network communication path fails, data transmission can continue through the other main ring network communication path, avoiding the occurrence of data loss in the first ring network and ensuring reliable data transmission.

[0115] like Figure 2 As shown, when node 2 is provided with port 2c having a mapping forwarding relationship with port 5a of node 5, and port 2d having a mapping forwarding relationship with port 7b of node 7, node 3, node 4, node 5, node 6 and node 7 can all be slave nodes. Node 2 can be connected to port 1b of node 1 through port 2a, and port 2b of node 2 is connected to port 1a of node 1 through node 2, node 3 and node 4.

[0116] When node 2 is provided with port 2c having a mapping forwarding relationship with port 5a of node 5, and node 4 is provided with port 4c having a mapping forwarding relationship with port 7b of node 7, nodes 3, 5, 6, and 7 are all slave nodes, port 2a of node 2 is connected to port 1b of node 1, and port 2b of node 2 is connected to port 1a of node 1 through nodes 2, 3, and 4. Port 4b of node 4 is connected to port 1a of node 1, and port 4a of node 4 is connected to port 1b of node 1 through nodes 3 and 2.

[0117] In a specific implementation, when the above-mentioned node receives a message to be transmitted at the second port, it can forward the received message to be transmitted to the port of the corresponding node in the second ring network through a mapping forwarding relationship; it can also receive the message to be transmitted forwarded by the node of the second ring network through a mapping forwarding relationship through the second port, and feed back the received message to be transmitted to other nodes in the first ring network through the first port, so as to accurately forward the message to be transmitted of the first ring network to the second ring network, and accurately forward the message to be transmitted of the second ring network to the first ring network, thereby effectively improving the accuracy of data transmission.

[0118] Based on the second embodiment of the node of the present application, the third embodiment of the node of the present application is proposed. In the third embodiment of the node of the present application, the same or similar contents as those of the first embodiment of the node and the second embodiment can be referred to the above introduction, and will not be repeated later. On this basis, please refer to 3, Figure 3 This is a schematic diagram of the structure of the third embodiment of the node of this application.

[0119] In this embodiment, the ports of the node further include: a third port and a fourth port.

[0120] The fourth port of the first ring network node is a redundant port of the third port of the first ring network node.

[0121] like Figure 3 As shown, this embodiment is described by taking node 2 as a node with a mapping forwarding relationship, port 2a of node 2 is the first port, port 2c is the second port, port 2b is the third port, port 2d is the fourth port, port 2c is the redundant port of port 2a, and port 2d is the redundant port of port 2b. Port 2a of node 2 is connected to port 1b of node 1, and port 2b of node 2 is connected to port 1a of node 1 through node 3 and node 4, forming a centralized multi-ring industrial communication network.

[0122] The first ring network establishes a coupling connection with a first port of any second ring network node through a first port of the first ring network node and a second port of the first ring network node to form a first communication path.

[0123] The first ring network establishes a coupling connection with a first port of another second ring network node through the third port of the first ring network node and the fourth port of the first ring network node to form a second communication path.

[0124] like Figure 3As shown, port 2c of node 2 and port 5a of node 5 have a mapping forwarding relationship, and port 2d and port 7b of node 7 have a mapping forwarding relationship. Based on the mapping forwarding relationship, the first ring network can establish a coupling connection with node 5 and node 7 through port 2c and port 2d of node 2, forming a first communication path composed of port 1b of node 1, port 2a of node 2 and port 2c of node 2, port 5a of node 5, port 5b of node 5, port 6a of node 6, port 6b of node 6 and port 7a of node 7, and a second communication path composed of port 1a of node 1, port 4b of node 4, port 4a of node 4, port 3b of node 3, port 3a of node 3, port 2b of node 2, port 2d of node 2, port 7b of node 7, port 7a of node 7, port 6b of node 6, port 6a of node 6, port 5b of node 5 and port 5a of node 5.

[0125] In a specific implementation, node 1 in the first ring network can simultaneously transmit data with nodes 5, 6 and 7 in the second ring network through the first communication path and the second communication path, so that when any communication path fails, data transmission can continue through the other communication path, avoiding data loss and ensuring reliable data transmission.

[0126] Furthermore, in this embodiment, the mapping-forwarding relationship includes: a first mapping-forwarding relationship and a second mapping-forwarding relationship.

[0127] There exists the first mapping forwarding relationship between the second port of the first ring network node and the first port of any second ring network node;

[0128] In the first communication path, the first ring network node transmits data with the first port of any second ring network node through the second port of the first ring network node based on the first mapping forwarding relationship;

[0129] There exists the second mapping forwarding relationship between the fourth port of the first ring network node and the first port of the another second ring network node;

[0130] In the second communication path, the first ring network node transmits data with the first port of the another second ring network node through the fourth port of the first ring network node based on the second mapping forwarding relationship.

[0131] Reference Figure 4 , Figure 4 This is a schematic diagram of the mapping forwarding relationship in the third embodiment of the node of this application. Figure 4In the figure, port 2c and port 2d of node 2, port 5a of node 5 and port 7b of node 7 all have TX (transmit) and RX (receive) functions. Since port 2b of node 2 will first receive the data transmitted by port 1b of node 1 through port 2a, a first mapping forwarding relationship 10 can be established between port 2c of node 2 and port 5a of node 5. Since port 2d of node 2 can receive the data transmitted by port 1a of node 1 through node 3 and node 4 via port 2b, a second mapping forwarding relationship 20 can be established between port 2d of node 2 and port 7b of node 7.

[0132] In the first communication path, node 1 can forward data to port 2a of node 2 through port 1b, and node 2 forwards the data to port 2c. Node 2 can forward the data to port 5a of node 5 in the second ring network through the first mapping forwarding relationship 10, and then forward the data to node 6 and node 7 through port 5b of node 5. Node 5 can also forward the data to port 2c through port 5a based on the first mapping forwarding relationship 10, and node 2 feeds the data back to node 1 through port 2a, thereby realizing accurate transmission of data between node 1 and each slave node in the second ring network.

[0133] In the second communication path, node 1 can forward data to port 4b of node 4 through port 1a, and then the data enters port 2b of node 2 after passing through node 4 and node 3, and node 2 then forwards the data to port 2d, and node 2 forwards the data to port 7b of node 7 in the second ring network through the second mapping forwarding relationship 20, and then forwards the data to node 5 and node 6 through port 7a of node 7. Node 7 can also forward the data to port 2d through port 7b based on the second mapping forwarding relationship 20, and node 2 feeds the data back to node 1 through port 2b, via nodes 3 and 4, to achieve accurate data transmission between node 1 and each slave node in the second ring network.

[0134] In this embodiment, when there are a first port, a second port, a third port and a fourth port in the first ring network node, the data in the first ring network can be accurately transmitted to the second ring network through the first mapping forwarding relationship and the second mapping forwarding relationship, or the data of the second ring network can be accurately fed back to the first ring network, thereby effectively improving the accuracy of data transmission.

[0135] Based on the second embodiment of the node of the present application, the fourth embodiment of the node of the present application is proposed. In the fourth embodiment of the node of the present application, the same or similar contents as those of the first embodiment of the node, the second embodiment of the node, and the third embodiment of the node can be referred to the above introduction, and will not be repeated later. On this basis, please refer to 5, Figure 5 This is a schematic diagram of the structure of the fourth embodiment of the node of this application.

[0136] In this embodiment, the node first ring network includes: a first node and a second node.

[0137] like Figure 5 As shown, this embodiment is described with node 2 as the first node and node 4 as the second node. Port 2c of node 2 is used as the second port of node 2, and port 4c of node 4 is used as the second port of node 4. Port 2a of node 2 is connected to port 1b of node 1, port 2b of node 2 is connected to port 3a of node 3, port 4b of node 4 is connected to port 1a of node 1, and port 4a of node 4 is connected to port 3b of node 3, forming a distributed multi-ring industrial communication network.

[0138] The first port of the first node and the second port of the first node establish a coupling connection with the first port of any second ring network node to form a third communication path.

[0139] The first port of the second node and the second port of the second node establish a coupling connection with the first port of another second ring network node to form a fourth communication path.

[0140] like Figure 5 As shown, port 2c of node 2 and port 5a of node 5 have a mapping forwarding relationship, and port 4b of node 4 and port 7b of node 7 have a mapping forwarding relationship. Based on the mapping forwarding relationship, the first ring network can establish a coupling connection with node 5 through port 2c of node 2, and establish a coupling connection with port 7b of node 7 through port 4c of node 4, to form a third communication path composed of port 1b of node 1, port 2a of node 2, port 2c of node 2, port 5a of node 5, port 5b of node 5, port 6a of node 6, port 6b of node 6 and port 7a of node 7, and a fourth communication path composed of port 1a of node 1, port 4b of node 4, port 4c of node 4, port 7b of node 7, port 7a of node 7, port 6b of node 6, port 6a of node 6, port 5b of node 5 and port 5a of node 5.

[0141] In a specific implementation, node 1 can simultaneously transmit data with nodes 5, 6 and 7 in the second ring network through the third communication path and the fourth communication path, so that when any communication path fails, data transmission can continue through the other communication path, avoiding data loss and ensuring reliable data transmission.

[0142] Furthermore, in this embodiment, the mapping-forwarding relationship includes: a third mapping-forwarding relationship and a fourth mapping-forwarding relationship.

[0143] There exists the third mapping and forwarding relationship between the second port of the first node and the first port of any second ring network node;

[0144] In the third communication path, the first node transmits data with the first port of any second ring network node through the second port of the first node based on the third mapping forwarding relationship;

[0145] There exists the fourth mapping and forwarding relationship between the second port of the second node and the first port of another second ring network node;

[0146] In the fourth communication path, the second node transmits data with the first port of the another second ring network node through the second port of the second node based on the fourth mapping and forwarding relationship.

[0147] Reference Figure 6 , Figure 6 This is a schematic diagram of the mapping forwarding relationship in the fourth embodiment of the node of this application. Figure 6 In the figure, port 2a, port 2c of node 2 and port 5a of node 5 all have TX (transmit) and RX (receive) functions, and ports 4a, 4c of node 4 and port 7b of node 7 all have TX (transmit) and RX (receive) functions. Since port 2c of node 2 is closer to port 1b of node 1 in terms of hop count, it will first receive the data transmitted by port 1b of node 1 through port 2a, so a third mapping forwarding relationship 30 can be established between port 2c of node 2 and port 5a of node 5. Since port 4c of node 4 is closer to port 1a of node 1 in terms of hop count, it can receive the data transmitted by port 1b of node 1 through port 4b, so a fourth mapping forwarding relationship 40 can be established between port 4c of node 4 and port 7b of node 7.

[0148] In the third communication path, node 1 can forward data to port 2a of node 2 through port 1b, and node 2 forwards the data to port 2c. Node 2 can forward the data to port 5a of node 5 through the third mapping forwarding relationship 30, and then forward the data to node 6 and node 7 through port 5b of node 5. Node 5 can also forward the data to port 2c through port 5a based on the third mapping forwarding relationship 30, and node 2 feeds the data back to node 1 through port 2a, thereby realizing accurate data transmission between node 1 and each slave node in the second ring network.

[0149] In the fourth communication path, node 1 can forward data to port 4b of node 4 through port 1a, and node 4 forwards the data to port 4c. Node 4 can forward the data to port 7b of node 7 through the fourth mapping forwarding relationship 40, and then forward the data to node 5 and node 6 through port 7a of node 7. Node 7 can also forward the data to port 4c through port 7b based on the fourth mapping forwarding relationship 40, and node 4 feeds the data back to node 1 through port 4b, thereby realizing accurate transmission of data between node 1 and each slave node in the second ring network.

[0150] When there is a first node with a third mapping forwarding relationship and a second node with a fourth mapping forwarding relationship in this embodiment, the data in the first ring network can be accurately transmitted to the second ring network through the third mapping forwarding relationship and the fourth mapping forwarding relationship, or the data of the second ring network can be accurately fed back to the first ring network, thereby effectively improving the accuracy of data transmission.

[0151] The present application also provides an industrial communication network, which includes the nodes described in the above embodiments.

[0152] The industrial communication network provided in this application adopts the nodes in the above embodiments. Compared with the prior art, the beneficial effects of the industrial communication network provided in this application are the same as the beneficial effects of the nodes provided in the above embodiments, and other technical features in the industrial communication network are the same as the features disclosed in the above node embodiments, which will not be repeated here.

[0153] The present application also provides a data transmission method applied to the industrial communication network described above. In the first embodiment of the data transmission method of the present application, since the industrial communication network described above includes the node embodiment described above, the same or similar content as the node described above can refer to the relevant introduction of the node embodiment described above, and this embodiment will not be repeated. On this basis, please refer to Figure 7 , Figure 7 This is a flowchart of the first embodiment of the data transmission method of the present application.

[0154] like Figure 7 As shown, in this embodiment, the data transmission method includes:

[0155] Step S10: reading a mapping and forwarding relationship between a second port of a first ring network node and at least one port of a second ring network node.

[0156] Step S20: forwarding the message to be transmitted in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship.

[0157] It should be noted that the execution subject of this embodiment and the following embodiments is the first ring network node.

[0158] In a specific implementation, the communication path in the above industrial communication network can be composed of the second port of the first ring network node and other nodes. For any node in the first ring network, the mapping forwarding relationship of the second port can be used directly or indirectly to transmit data with the remaining nodes through different communication paths. When performing data transmission, the first ring network node can first read the established mapping forwarding relationship and multiple communication paths, and then forward the message to be transmitted forwarded by the previous node to the corresponding port of the second ring network through each communication path using the mapping forwarding relationship. Among them, for any node, the previous node and the next node can be different nodes adjacent to the first ring network node.

[0159] The present embodiment provides a data transmission method, which reads the mapping forwarding relationship between the second port of the first ring network node and at least one port of the second ring network node; forwards the message to be transmitted in the first ring network node to the corresponding port of the second ring network node through the mapping forwarding relationship. Since the present embodiment performs data transmission through the mapping forwarding relationship, during operation, even if the communication path of the first ring network or the second ring network fails, data transmission can still be performed normally. Compared with the prior art, the present embodiment effectively avoids the occurrence of data loss and ensures reliable data transmission.

[0160] Based on the first embodiment of the data transmission method of the present application, the second embodiment of the data transmission method of the present application is proposed. In the second embodiment of the data transmission method of the present application, the same or similar contents as those of the first embodiment of the data transmission method can refer to the relevant introduction of the first embodiment of the data transmission method, and will not be repeated later. Figure 8 , Figure 8 This is a flow chart of the second embodiment of the data transmission method of the present application.

[0161] In this embodiment, step S20 may include:

[0162] Step S211: when the second port of the first ring network node receives a message to be transmitted in the first ring network, a preset relationship table is read.

[0163] The preset relationship table includes the association relationship between the second port of the first ring network node and the address information of each node in the second ring network.

[0164] In a specific implementation, a preset relationship table including the association relationship between the second port of the first ring network node and the address information of each node in the second ring network may be pre-built. Figure 2 The centralized multi-ring industrial communication network shown in the figure has a preset relationship table as shown in Table 1 below:

[0165] Table 1: Preset relationship table corresponding to node 2

[0166]

[0167]

[0168] Among them, Address1 is the address information of node 1, Address5 is the address information of node 5, Address6 is the address information of node 6, Address7 is the address information of node 7, and broadcast is a broadcast message.

[0169] Taking node 2 as a node with a mapping forwarding relationship, port 2a of node 2 corresponds to Address1, broadcast, indicating that the message to be transmitted and the broadcast message can be sent to node 1; port 2b of node 2 corresponds to Address1, broadcast, indicating that the message to be transmitted and the broadcast message can be sent to node 1; port 2c of node 2 corresponds to Address5, Address6, Address7, broadcast, indicating that the message to be transmitted and the broadcast message can be sent to node 5, node 6 and node 7; port 2d of node 2 corresponds to Address5, Address6, Address7, broadcast, indicating that the message to be transmitted and the broadcast message can be sent to node 5, node 6 and node 7.

[0170] for Figure 4 The distributed multi-ring industrial communication network shown in the figure has a preset relationship table as shown in Table 2 below:

[0171] Table 2: Preset relationship table corresponding to node 2 and node 4

[0172] port Node Address Port 2a Address1, broadcast Port 2b Address1, broadcast Port 2c Address5, Address6, Address7, broadcast Port 4a Address1, broadcast Port 4b Address1, broadcast Port 4c Address5, Address6, Address7, broadcast

[0173] Among them, Address1 is the address information of node 1, Address5 is the address information of node 5, Address6 is the address information of node 6, Address7 is the address information of node 7, and broadcast is a broadcast message.

[0174] Taking node 2 and node 4 as nodes with mapping forwarding relationship, port 2a of node 2 corresponds to Address1, broadcast, which means that the message to be transmitted and the broadcast message can be sent to node 1; port 2b of node 2 corresponds to Address1, broadcast, which means that the message to be transmitted and the broadcast message can be sent to node 1; port 2c of node 2 corresponds to Address5, Address6, Address7, broadcast, which means that the message to be transmitted and the broadcast message can be sent to node 5, node 6 and node 7. Port 4a of node 4 corresponds to Address1, broadcast, which means that the message to be transmitted and the broadcast message can be sent to node 1; port 4b of node 4 corresponds to Address1, broadcast, which means that the message to be transmitted and the broadcast message can be sent to node 1; port 4c of node 4 corresponds to Address5, Address6, Address7, broadcast, which means that the message to be transmitted and the broadcast message can be sent to node 5, node 6 and node 7.

[0175] Step S212: searching the preset relationship table for node address information corresponding to the second port of the first ring network node in the second ring network.

[0176] In a specific implementation, the first ring network node can query the preset relationship table based on the second port to find the node address information corresponding to the second port. For example, the node 5 address information, the node 6 address information and the node 7 address information corresponding to port 2c can be used as the node address information.

[0177] Step S213: forwarding the message to be transmitted to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information.

[0178] It should be noted that for Figure 2 In the centralized multi-ring redundant networking shown in FIG. 1 , the mapping-forwarding relationship includes the first mapping-forwarding relationship and the second mapping-forwarding relationship described in the above embodiment; Figure 4 In the distributed multi-ring redundant networking shown, the mapping relationship includes the third mapping-forwarding relationship and the fourth mapping-forwarding relationship described in the above embodiment.

[0179] In a specific implementation, after finding the node address information, the node can first find the target address information corresponding to the second port, and then forward the message to be transmitted to the port of the next node in the second ring network whose address information is the node address information through the second port based on the mapping forwarding relationship. If there are multiple nodes corresponding to the target address information, the node directly connected to the second port in the second ring network can be used as the next node.

[0180] Furthermore, in this embodiment, step S213 includes:

[0181] Step S2131, determining whether the message to be transmitted is a broadcast message.

[0182] In a specific implementation, when the first ring network node receives a message to be transmitted sent by the previous node at its first port, it can determine whether the message to be transmitted is a broadcast message based on whether a corresponding broadcast address (such as "FF:FF:FF:FF:FF:FF") exists in the message to be transmitted. That is, when the corresponding broadcast address exists in the message to be transmitted, the message to be transmitted is determined to be a broadcast message; when the corresponding broadcast address does not exist in the message to be transmitted, the message to be transmitted is determined not to be a broadcast message.

[0183] In addition, for the previous node and the next node of the first ring network node, refer to the above Figure 2 , when the single node 2 is a node with a mapping forwarding relationship, if its previous node is node 1, then its next node is node 3 or node 5.

[0184] Step S2132: If it is the broadcast message, read the source address information of the message to be transmitted.

[0185] It should be noted that the above source address information may be address information identifying the first node that sends the message to be transmitted, so as to enable the node to know the initial source of the message to be transmitted.

[0186] Step S2133: determine whether the message to be transmitted originates from other nodes in the first ring network according to the source address information.

[0187] In a specific implementation, the first ring network node may parse the source address information to determine the source of the message to be transmitted as the broadcast message, that is, determine whether the message to be transmitted is sent by other nodes in the first ring network.

[0188] Step S2134: If yes, the message to be transmitted is forwarded to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information.

[0189] Step S2135: If not, the message to be transmitted is not forwarded.

[0190] In a specific implementation, if a broadcast message is forwarded between different ring networks, a loop will be formed in the network, causing the broadcast traffic to circulate infinitely, thereby causing a broadcast storm. In addition, the first ring network node is in the first ring network, so when the first ring network node detects that the message to be transmitted originates from the first ring network, it forwards the message to be transmitted to the next node in the second ring network with the same node address information through a mapping forwarding relationship. On the contrary, when it is detected that the message to be transmitted does not originate from the first ring network, it may not be forwarded to prevent a broadcast storm.

[0191] This embodiment reads the source address information of the message to be transmitted when the message to be transmitted is a broadcast message, and when it is determined according to the source address information that the message to be transmitted originates from other nodes in the first ring network, the message to be transmitted is forwarded to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information; when it is determined according to the source address information that the message to be transmitted does not originate from other nodes in the first ring network, the message to be transmitted is not forwarded, thereby preventing broadcast storms.

[0192] Based on the second embodiment of the data transmission method of the present application, the third embodiment of the data transmission method of the present application is proposed. In the third embodiment of the data transmission method of the present application, the same or similar contents as those of the first and second embodiments of the data transmission method can refer to the relevant introduction of the first and second embodiments of the data transmission method, and will not be repeated later. Fig. 9 , Fig. 9 This is a flowchart of the third embodiment of the data transmission method of the present application.

[0193] In this embodiment, step S20 may further include:

[0194] Step S221: when the second port of the first ring network node receives a message to be transmitted, determining whether the message to be transmitted is a combined message.

[0195] It should be noted that the above-mentioned combined message is a message containing multiple node data. For combined messages transmitted by different paths, the sub-messages in the message to be transmitted can be sorted based on the distance between the sender and the destination. Among them, the sub-message can be the node data of the corresponding node.

[0196] like Fig.10 As shown, Fig.10 This is a schematic diagram of the structure of the combined message in the third embodiment of the data transmission method of the present application. Fig.10In the example, the first ring network where node 1 is located is taken as an example. If port 1b of node 1 is the sending end and node 4 is the destination end, the combined message 100 needs to be sent through port 1b of node 1, and transmitted to port 4a of node 4 through port 2a of node 2, port 2b of node 2, port 3a of node 3, and port 3b of node 3. Under this path, the distances of each node from port 1b are ranked from large to small: node 4, node 3, node 2. Therefore, the order of each part of the combined message 100 under this path is: 100a (Head, i.e., telegram header), 100b (Subdata-Node4, i.e., data of node 4 address), 100c (Subdata-Node3, i.e., data of node 3 address), 100d (Subdata-Node2, i.e., data of node 2 address) and 100e (FCS, i.e., check segment), where the check segment is used to check the correctness of the data. In this sorting method, the combined message 100 first passes through node 2, which can intercept 100d, then passes through node 3, which can intercept 100c, and finally passes through node 4, which can intercept 100b, ensuring that the data of each node is always at the end of the sub-message, so that each node can obtain its data by directly intercepting the end position, thereby improving the efficiency of data interception.

[0197] Correspondingly, if port 1a of node 1 is the sending end and node 2 is the destination end, the combined message 200 needs to be sent through port 1a of node 1, and transmitted to port 2b of node 2 through port 4b of node 4, port 3b of node 3, and port 3a of node 3. Under this path, the distances of each node from port 1b are ranked from large to small: node 2, node 3, and node 4. Therefore, the order of the parts in the combined message 200 under this path is: 200a (Head, i.e., telegram header), 200b (Subdata-Node2, i.e., data of node 2 address), 200c (Subdata-Node3, i.e., data of node 3 address), 200d (Subdata-Node4, i.e., data of node 4 address) and 200e (FCS, i.e., check segment), where the check segment is used to check the correctness of the data. In this sorting method, the combined message 200 first passes through node 4, which can intercept 200d, then passes through node 3, which can intercept 200c, and finally passes through node 2, which can intercept 200b, ensuring that the data of each node is always at the end of the sub-message, so that each node can directly obtain its data by intercepting the end position, thereby improving the efficiency of data interception.

[0198] The sub-message in the combined message may be composed of node data between the telegram header and the check segment. The end position of the sub-message may be the position of the last sub-message adjacent to the check segment.

[0199] Step S222: If it is the combined message, a local message whose destination node address is a local address is intercepted from the message to be transmitted.

[0200] In a specific implementation, when the first ring network node receives the message to be transmitted forwarded by the previous node, it can determine whether the sub-message in the message to be transmitted is composed of multiple node data. If so, it determines that the message to be transmitted is a combined message. If not, it determines that the message to be transmitted is not a combined message. When the message to be transmitted is a combined message, the message to be transmitted can be intercepted, and the node data with the destination node address as the local address can be obtained and stored locally to form a local message. For example, node 2 receives the combined message 100 sent by port 1b of node 1 through port 2a, then 100d with the destination node address as the address of node 2 can be intercepted, and 100d can be saved locally to form a local message.

[0201] It should be understood that if no sub-message whose destination node address is a local address is detected in the message to be transmitted, the message to be transmitted may not be intercepted and the message to be transmitted may continue to be forwarded to the next node.

[0202] Step S223: The intercepted message to be transmitted that does not contain the local message is used as the next transmission message.

[0203] Step S224: forwarding the next transmission message to the corresponding port of the second ring network node through the mapping forwarding relationship.

[0204] In a specific implementation, after intercepting the local message, the first ring network node reassembles the remaining sub-messages in the message to be transmitted to form the next transmission message that does not contain the local message. For example, if node 2 receives the combined message 100 sent by port 1b of node 1 through port 2a, after intercepting 100d in the combined message 100, the message composed of 100a, 100b, 100c and 100e is used as the next transmission message, and the next transmission message is forwarded to the corresponding node in the second ring network through each communication path based on the mapping forwarding relationship. The next node can continue to repeat the above steps of the current node until the message is forwarded to the destination node.

[0205] Furthermore, in this embodiment, step S20 may also include:

[0206] Step S231, when the second port of the first ring network node receives a message to be transmitted, it is determined whether the destination node address information of the message to be transmitted is the same as that of another message to be transmitted, where the other message to be transmitted is a message that has not yet been transmitted to the next node.

[0207] In a specific implementation, the previous node of the first ring network node may be multiple, such as Figure 2As shown, when node 2 receives a message to be transmitted transmitted by port 1b of node 1 through port 2a, node 2 can also receive another message to be transmitted transmitted by port 1a of node 1 through node 4 and node 3 through port 2b. When the current node receives a message to be transmitted and another message to be transmitted transmitted by different nodes, it can determine whether the destination node address information of the message to be transmitted and the other message to be transmitted are the same.

[0208] Step S232: If yes, then combine the message to be transmitted with the other message to be transmitted to obtain a combined message.

[0209] Step S233: If not, the message to be transmitted is used as the next transmission message.

[0210] Step S234: forwarding the combined message or the next transmission message to a port of a corresponding second ring network node through the mapping forwarding relationship.

[0211] In a specific implementation, when the first ring network node detects that the destination node address information of the message to be transmitted is the same as that of another message to be transmitted, it determines that the message to be transmitted and the other message to be transmitted need to be transmitted to the same node in the end. Therefore, the message to be transmitted and the other message to be transmitted can be combined to form a combined message and then forwarded to the next node in the ring network to improve transmission efficiency. Accordingly, when the destination node address information of the message to be transmitted and the other message to be transmitted is different, the message to be transmitted and the other message to be transmitted can be forwarded as different next transmission messages. If the message needs to be forwarded to the second ring network, the message can be forwarded to the corresponding node in the second ring network through each communication path based on the mapping forwarding relationship.

[0212] Furthermore, in this embodiment, step S20 may also include:

[0213] Step S241, when the second port of the first ring network node receives a message to be transmitted and the destination node address information of the message to be transmitted is consistent with the local address information, the message to be transmitted is compared with the locally received message, and the locally received message is a message that does not need to be transmitted to the next node.

[0214] It should be noted that the above-mentioned locally received message may be a message whose destination address is local and does not need to be forwarded to the next node.

[0215] It is understandable that the first ring network node can intercept the message with the destination address as the local address as the local received message based on the transmission mode of the above combined message, or receive the non-combined message with the destination node address as the local address transmitted by the previous node as the local received message. The non-combined message is a message containing a single node data.

[0216] It is understandable that for non-combined messages, the message structure is as follows Fig.11 shown. Fig.11 This is a schematic diagram of the structure of a non-combined message in the third embodiment of the data transmission method of this application. Fig.11 In the figure, a non-combined message 300 with a destination node address of node 6 is used for illustration. Head is the message header of the combined message 300, Subdata-Node6 indicates data with a destination node address of node 6, and FCS is the check segment of the combined message 300. Head includes address information 300a, and Subdata-Node6 includes a node address 300b, a sequence number 300c, and a data segment 300d.

[0217] In addition, for non-combined messages, when any node receives multiple non-combined messages at the same time, it can splice the non-combined messages and remove duplicate message headers and check segments, that is, retain one message header and check segment and then splice them to form a combined message and then forward it to the next node, so as to reduce the time consumption of public protocol overhead such as the message header, check segment and inter-frame gap, and improve the efficiency of data transmission.

[0218] In a specific implementation, when the first ring network node receives a message to be transmitted through the second port, it can compare the destination node address information of the message to be transmitted with the local address information. When the destination node address information of the message to be transmitted is consistent with the local address information, it determines whether the destination address of the message to be transmitted is a local address, and obtains the message to be transmitted and compares it with the locally received message to determine whether the address information, node address and serial number of the two are consistent.

[0219] Step S242, when the node address, address information and sequence number of the message to be transmitted are consistent with those of the locally received message, the message to be transmitted or the locally received message is selected for discarding.

[0220] In a specific implementation, when the first ring network node detects that the node address, address information and serial number of the message to be transmitted are consistent with the node address, address information and serial number of the locally received message, it determines that the data content of the message to be transmitted is consistent with the data content of the locally received message, and can randomly select any message from the message to be transmitted or the locally received message to be discarded to eliminate duplicate messages and avoid receiving duplicate messages locally.

[0221] Step S243, when the node address, address information or sequence number of the message to be transmitted is inconsistent with that of the locally received message, verify the message to be transmitted.

[0222] Step S244: If the verification is passed, the message to be transmitted is saved locally.

[0223] Step S245: If the check fails, the message to be transmitted is discarded.

[0224] In a specific implementation, when the first ring network node detects that the node address, address information or sequence number of the message to be transmitted is inconsistent with any of the information of the node address, address information or sequence number of the message to be transmitted and the message to be received locally, it can be determined that the data content of the message to be transmitted is inconsistent with the data content of the message to be received locally. At this time, a cyclic redundancy check can be performed through the check segment in the message to be transmitted. When the check passes, it is determined that the data content of the message to be transmitted is correct and the message to be transmitted is saved locally. On the contrary, when the check passes, it is determined that the data content of the message to be transmitted is incorrect and the message to be transmitted is discarded.

[0225] For example, refer to Fig.12 ,based on Figure 2 The centralized multi-ring redundant networking shown is used to illustrate the transmission method of the combined message. Fig.12 This is a schematic diagram of transmission of a combined message in the third embodiment of the data transmission method of the present application. Fig.12 In the figure, combined message 400 is composed of 400a (Head, i.e. telegram header), 400c (Subdata-Node7, i.e. data of node 7 address), 400d (Subdata-Node6, i.e. data of node 6 address) and 400e (FCS, i.e. check segment). Combined message 500 is composed of 500a (Head, i.e. telegram header), 500c (Subdata-Node6, i.e. data of node 6 address), 500d (Subdata-Node7, i.e. data of node 7 address) and 500e (FCS, i.e. check segment). Non-combined message 401 is composed of 400a, 400c and 400e. Non-combined message 402 is composed of 400a, 400d and 400e. Non-combined message 501 is composed of 500a, 500d and 400e. Non-combined message 502 is composed of 500a, 500c and 500e. Among them, the data of 400d and 500c are the same, and the data of 400c and 500d are the same.

[0226] like Fig.12 As shown, node 1 forwards the combined message 400 to port 2a of node 2 through port 1b, then forwards the combined message 400 to port 2c through port 2a, and forwards the combined message 400 to port 5a of node 5 through port 2c based on the first mapping forwarding relationship, and node 5 forwards the combined message 400 to port 6a of node 6 through port 5b. Node 6 intercepts 400d in the combined message 400 and saves it locally, forms non-combined message 402 and non-combined message 401 locally, and then forwards the non-combined message 401 to port 7a of node 7 through port 6b.

[0227] Correspondingly, node 1 forwards the combined message 500 to node 2 via the path of port 1a, port 4b of node 4, port 4a of node 4, port 3b of node 3, port 3a of node 3 and port 2b of node 2, and then node 2 forwards the combined message 500 to port 2d via port 2b, and forwards the combined message 500 to port 7b of node 7 through port 2d based on the second mapping forwarding relationship, and node 7 intercepts 500d in the combined message 500 and saves it locally, forms non-combined message 501 and non-combined message 502 locally, and then forwards the non-combined message to port 6b of node 6 through port 7a.

[0228] After the above-mentioned combined transmission process, node 6 receives non-combined messages 402 and non-combined messages 502 with the same information. Node 6 can verify the check segments in non-combined messages 402 and non-combined messages 502, and retain the non-combined messages that have been successfully verified. When both non-combined messages 402 and non-combined messages 502 are successfully verified, any non-combined message in non-combined messages 402 and non-combined messages 502 is randomly discarded. Node 7 receives non-combined messages 401 and non-combined messages 501 with the same information. Node 7 can verify the check segments in non-combined messages 401 and non-combined messages 501, and retain the non-combined messages that have been successfully verified. When both non-combined messages 401 and non-combined messages 501 are successfully verified, any non-combined message in non-combined messages 401 and non-combined messages 501 is randomly discarded, thereby completing the transmission of the combined message, which can reduce the time consumption of public protocol overheads such as message headers, check segments, and interframe gaps of the message, and improve data transmission efficiency.

[0229] For example, refer to Fig.13 ,based on Figure 2 The centralized multi-ring redundant networking shown is used to illustrate the combined transmission mode of messages. Fig.13 This is a schematic diagram of combined transmission of messages in the third embodiment of the data transmission method of this application. Fig.13In the figure, non-combined message 601 is composed of 800a (Head, i.e. telegram header), 600b (Subdata-Node6-1, i.e. data sent from node 6 address to node 1 address) and 800e (FCS, i.e. check segment). Non-combined message 602 is composed of 900a (Head, i.e. telegram header), 600c (Subdata-Node6-1, i.e. data sent from node 6 address to node 1 address) and 900e (FCS, i.e. check segment). Non-combined message 701 is composed of 800a, 700b (Subdata-Node7-1, i.e. data sent from node 7 address to node 1 address) and 800e. Non-combined message 702 is composed of 900a, 700c (Subdata-Node7-1, i.e. data sent from node 7 address to node 1 address) and 900e. Combined message 401 is composed of 400a, 400c and 400e. Non-combined message 402 is composed of 400a, 400d and 400e. Non-combined message 501 is composed of 500a, 500d and 400e. Non-combined message 502 is composed of 500a, 500c and 500e. Among them, the data of 600b and 600c are the same, and the data of 700b and 700c are the same.

[0230] like Fig.13 As shown, node 6 forwards the non-combined message 601 to port 2c of node 2 via the path of port 6a, port 5b of node 5, port 5a of node 5 and port 2c of node 2 by using the first mapping forwarding relationship, then forwards the non-combined message 601 of port 2c to port 2a, and finally forwards the non-combined message 601 to port 1b of node 1 via port 2a. Node 6 sends the non-combined message 602 to port 2d of node 2 via the path of port 6b, port 7a of node 7, port 7b of node 7 and port 2d of node 2 by using the second mapping forwarding relationship, then forwards the non-combined message 602 of port 2d to port 2b, and node 2 forwards the non-combined message 602 to port 1a of node 1 via the path of port 2b, port 3a of node 3, port 3b of node 3, port 4a of node 4, port 4b of node 4 and port 1a of node 1.

[0231] Correspondingly, node 7 forwards the non-combined message 701 to port 2c of node 2 via the path of port 7a, port 6b of node 6, port 6a of node 6, port 5b of node 5, port 5a of node 5, and port 2c of node 2 by using the first mapping forwarding relationship, then forwards the non-combined message 701 of port 2c to port 2a of node 2, and finally forwards the non-combined message 701 to port 1b of node 1 via port 2a. Node 7 sends the non-combined message 702 to port 2d of node 2 via the path of port 7b and port 2d of node 2 by using the second mapping forwarding relationship, then forwards the non-combined message 702 of port 2d to port 2b of node 2, and node 2 forwards the non-combined message 702 to port 1a of node 1 via the path of port 2b, port 3a of node 3, port 3b of node 3, port 4a of node 4, port 4b of node 4, and port 1a of node 1.

[0232] Based on the above message transmission process, any node will splice the received non-combined message 601 and non-combined message 701 with the destination address of node 1 to form a combined message 800, and splice the non-combined message 602 and non-combined message 702 to form a combined message 900. The information of the combined message 800 and the combined message 900 is the same. After being transmitted to node 1, node 1 can perform duplicate data check on the check segments in the combined message 800 and the combined message 900, and discard the late combined message in the combined message 800 and the combined message 900, thereby completing the combined transmission of the message, which can reduce the time consumption of the public protocol overhead such as the message header, check segment and inter-frame gap of the message, and improve the data transmission efficiency.

[0233] In addition, an embodiment of the present application also provides an electronic device, and the above-mentioned data transmission method applied to the node device in the network topology can be executed by a data transmission device, which can be implemented by software and / or hardware and integrated in the electronic device.

[0234] As an example, the electronic device may be a PC (personal computer), a mobile phone, a notebook, a tablet computer, or other terminal device that can be arranged in a network topology to establish an Ethernet connection with other node devices.

[0235] Reference Fig.14 , Fig.14 The hardware structure diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.14As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0236] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Fig.14 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a computer program.

[0237] exist Fig.14 In the electronic device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in this embodiment can be set in the electronic device, and the electronic device calls the computer program stored in the memory 1005 through the processor 1001, and executes the data transmission method provided in any of the above embodiments for the node device in the network topology.

[0238] The electronic device proposed in this embodiment and the data transmission method applied to the node device in the network topology proposed in the above embodiment belong to the same technical concept. The technical details not described in detail in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the data transmission method.

[0239] In addition, an embodiment of the present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the data transmission method provided in any of the above embodiments is implemented.

[0240] In addition, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the data transmission method provided by any of the above embodiments.

[0241] The computer program product provided in the present application and the data transmission method proposed in the above-mentioned embodiment belong to the same technical concept. Compared with the related art, the beneficial effects of the computer program product provided in the present application are the same as the beneficial effects of the data transmission method provided in the above-mentioned embodiment, which will not be elaborated here.

[0242] The above are only specific embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A node, the node being located in a first ring network, characterized in that: The ports of the first ring network node include: a first port and a second port; The second port of the first ring network node is a redundant port of the first port; There is a mapping forwarding relationship for forwarding data between the second port of the first ring network node and at least one port of the second ring network node; The first ring network node transmits data through the second port and at least one port of the second ring network node through the mapping and forwarding relationship.

2. The node according to claim 1, characterized in that The first ring network establishes a coupling connection with at least one port of the second ring network node through the first port of the first ring network node and the second port of the first ring network node, forming different communication paths.

3. The node according to claim 2, characterized in that The ports of the first ring network node further include: a third port and a fourth port; The fourth port of the first ring network node is a redundant port of the third port of the first ring network node; The first ring network establishes a coupling connection with a first port of any second ring network node through a first port of the first ring network node and a second port of the first ring network node to form a first communication path; The first ring network establishes a coupling connection with a first port of another second ring network node through the third port of the first ring network node and the fourth port of the first ring network node to form a second communication path.

4. The node according to claim 3, characterized in that The mapping-forwarding relationship includes: a first mapping-forwarding relationship and a second mapping-forwarding relationship; There exists the first mapping forwarding relationship between the second port of the first ring network node and the first port of any second ring network node; In the first communication path, the first ring network node transmits data with the first port of any second ring network node through the second port of the first ring network node based on the first mapping forwarding relationship; There exists the second mapping forwarding relationship between the fourth port of the first ring network node and the first port of the another second ring network node; In the second communication path, the first ring network node transmits data with the first port of the another second ring network node through the fourth port of the first ring network node based on the second mapping forwarding relationship.

5. The node according to claim 2, characterized in that The first ring network node includes: a first node and a second node; The first port of the first node and the second port of the first node are coupled to the first port of any second ring network node to form a third communication path; The first port of the second node and the second port of the second node establish a coupling connection with the first port of another second ring network node to form a fourth communication path.

6. The node according to claim 5, characterized in that The mapping-forwarding relationship includes: a third mapping-forwarding relationship and a fourth mapping-forwarding relationship; There exists the third mapping and forwarding relationship between the second port of the first node and the first port of any second ring network node; In the third communication path, the first node transmits data with the first port of any second ring network node through the second port of the first node based on the third mapping forwarding relationship; There exists the fourth mapping and forwarding relationship between the second port of the second node and the first port of another second ring network node; In the fourth communication path, the second node transmits data with the first port of the another second ring network node through the second port of the second node based on the fourth mapping and forwarding relationship.

7. An industrial communication network, characterized in that: The industrial communication network comprises the node according to any one of claims 1 to 6.

8. A data transmission method, characterized in that: The data transmission method is applied to the industrial communication network according to claim 7, and the data transmission method comprises: Reading a mapping forwarding relationship between a second port of the first ring network node and at least one port of the second ring network node; The message to be transmitted in the first ring network node is forwarded to the port of the corresponding second ring network node through the mapping forwarding relationship.

9. The data transmission method according to claim 8, characterized in that: The step of forwarding the message to be transmitted in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship includes: When the second port of the first ring network node receives the message to be transmitted in the first ring network, reading the preset relationship table; Wherein, the preset relationship table includes the association relationship between the second port of the first ring network node and the address information of each node in the second ring network; Searching the preset relationship table for node address information corresponding to the second port of the first ring network node in the second ring network; The message to be transmitted is forwarded to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information.

10. The data transmission method according to claim 9, characterized in that: The step of forwarding the message to be transmitted to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information includes: Determining whether the message to be transmitted is a broadcast message; If it is the broadcast message, reading the source address information of the message to be transmitted; Determining whether the message to be transmitted originates from other nodes in the first ring network according to the source address information; If so, forwarding the message to be transmitted to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information; If not, the message to be transmitted is not forwarded.

11. The data transmission method according to claim 8, characterized in that: The step of forwarding the message to be transmitted in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship also includes: When the second port of the first ring network node receives a message to be transmitted, determining whether the message to be transmitted is a combined message; If it is the combined message, intercepting a local message whose destination node address is a local address from the message to be transmitted; taking the intercepted message to be transmitted which does not contain the local message as the next transmission message; The next transmission message is forwarded to the port of the corresponding second ring network node through the mapping forwarding relationship.

12. The data transmission method according to claim 8, characterized in that: The step of forwarding the message to be transmitted in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship also includes: When the second port of the first ring network node receives the message to be transmitted, determining whether the destination node address information of the message to be transmitted is the same as that of another message to be transmitted, the other message to be transmitted being a message that has not yet been transmitted to the next node; If yes, combining the message to be transmitted with the other message to be transmitted to obtain a combined message; If not, the message to be transmitted is used as the next transmission message; The combined message or the next transmission message is forwarded to the port of the corresponding second ring network node through the mapping forwarding relationship.

13. The data transmission method according to claim 8, characterized in that: Before the step of forwarding the message to be transmitted in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship, the method further includes: When the second port of the first ring network node receives a message to be transmitted, and the destination node address information of the message to be transmitted is consistent with the local address information, the message to be transmitted is compared with the locally received message, and the locally received message is a message that does not need to be transmitted to the next node; When the node address, address information and sequence number of the message to be transmitted are consistent with those of the locally received message, the message to be transmitted or the locally received message is selected for discarding; When the node address, address information or sequence number of the message to be transmitted is inconsistent with that of the locally received message, verifying the message to be transmitted; If the verification is passed, the message to be transmitted is saved locally; If the check fails, the message to be transmitted is discarded.

14. An electronic device, characterized in that: The electronic device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the data transmission method according to any one of claims 8 to 13 when executed by the processor.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data transmission method according to any one of claims 8 to 13 is implemented.

Citation Information

Cited By

  • Node, industrial communication network, and data transmission method

    WO2026061195A1