Node, industrial communication network, and data transmission method

By setting up redundant ports at the first ring network node and establishing a mapping and forwarding relationship with the second ring network node, the problem of data loss in industrial communication networks during failures is solved, and reliable data transmission with no recovery time is achieved.

WO2026061195A1PCT designated stage Publication Date: 2026-03-26SHENZHEN INOVANCE TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-08-19
Publication Date
2026-03-26

AI Technical Summary

Technical Problem

Existing industrial communication networks require fault detection and path selection algorithms after a failure, which takes time for path recovery and still results in data loss, affecting the reliability of data transmission.

Method used

Redundant ports are set up on the basis of the first ring network node, and a mapping and forwarding relationship is established with the second ring network node to realize data transmission between the first and second ring networks and avoid data loss in case of failure.

Benefits of technology

Even if the communication path fails, the first and second ring networks can still transmit data normally, avoiding data loss, ensuring reliable data transmission, and eliminating the need for recovery time from fault detection and path selection algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025115662_26032026_PF_FP_ABST
    Figure CN2025115662_26032026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of industrial communications. Disclosed in the embodiments are a node, an industrial communication network and a data transmission method. The node is located in a first ring network, ports of the first ring network node comprising a first port and a second port, and the second port serving as a redundant port of the first port. A mapping and forwarding relationship for forwarding data is present between the second port of the first ring network node and at least one port located on a second ring network node. The first ring network node performs data transmission with the at least one port of the second ring network node through the second port by means of the mapping and forwarding relationship. In the embodiments of the present application, data transmission is performed between the second port of the first ring network node and the at least one port of the second ring network node by means of the mapping and forwarding relationship, such that even if a fault occurs in a communication path of the first ring network or a second ring network, data transmission can still be normally performed between the first ring network and the second ring network, thereby preventing data loss and ensuring reliable data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Node, industrial communication network and data transmission method

[0001] Related applications

[0002] The present application claims priority to Chinese Patent Application No. 202411325271.4, filed on September 23, 2024, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD

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

[0004] In an industrial network system, in order to avoid the influence of harsh environmental conditions, resulting in data errors or loss during data transmission. Related technologies use ring network redundancy technology, adopt multiple devices to form a ring topology network (i.e. ring network), based on multiple ring networks to constitute an industrial communication network, and different ring networks are connected through communication to realize data transmission.

[0005] During the operation of the industrial communication network, the corresponding devices and link monitoring system are equipped to monitor the status of each node and link in the ring network in real time, and when a fault is detected, a response can be made in time, and a normal communication path is selected from multiple communication paths through a path selection algorithm for data transmission, realizing path switching recovery, avoiding the failure of some paths to normally transmit data and causing communication failure, thereby solving the problem of telegram error or failure of data in the transmission process caused by harsh environment, and ensuring reliable transmission of data.

[0006] However, the above-mentioned method needs to perform fault detection and path selection algorithm after the fault occurs, resulting in a certain recovery time during the path recovery process. During this recovery time, since the fault still exists, there will still be a data loss situation, thereby affecting the normal operation of the industrial network system, and the data transmission is unreliable. SUMMARY

[0007] The main purpose of the present application is to provide a node, an industrial communication network and a data transmission method, which can still normally transmit data between the first ring network and the second ring network after the communication path of the first ring network or the second ring network fails, effectively avoiding the occurrence of data loss, and ensuring reliable transmission of data.

[0008] To achieve the above-mentioned purpose, the present application provides a node, which is located in a first ring network, and a port of the first ring network node includes a first port and a second port.

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

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

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

[0012] In an embodiment, the first ring network is coupled with the first port of the first ring network node and the at least one port of the second ring network node via the second port of the first ring network node, forming different communication paths.

[0013] In an embodiment, the ports of the first ring network node further include a third port and a fourth port.

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

[0015] The first ring network is coupled with the first port of any second ring network node via the first port of the first ring network node and the second port of the first ring network node, forming a first communication path.

[0016] The first ring network is coupled with the first port of another second ring network node via the third port of the first ring network node and the fourth port of the first ring network node, forming a second communication path.

[0017] In an embodiment, the mapping forwarding relationship includes a first mapping forwarding relationship and a second mapping forwarding relationship.

[0018] The first mapping forwarding relationship exists between the second port of the first ring network node and the first port of the any second ring network node.

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

[0020] The second mapping forwarding relationship exists between the fourth port of the first ring network node and the first port of the another second ring network node.

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

[0022] In an embodiment, the first ring network node includes a first node and a second node.

[0023] 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;

[0024] The first port of the second node and the second port of the second node are coupled to the first port of another second ring network node to form a fourth communication path.

[0025] In an embodiment, the mapping forwarding relationship includes a third mapping forwarding relationship and a fourth mapping forwarding relationship;

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

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

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

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

[0030] In addition, to achieve the above object, the present application further provides an industrial communication network, which comprises the node described above.

[0031] In addition, to achieve the above object, the present application further provides a data transmission method, which is applied to the industrial communication network described above, and the data transmission method comprises:

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

[0033] Forwarding a to-be-transmitted packet in the first ring network node to a corresponding port of the second ring network node through the mapping forwarding relationship.

[0034] In an embodiment, the step of forwarding a to-be-transmitted packet in the first ring network node to a corresponding port of the second ring network node through the mapping forwarding relationship includes:

[0035] When a to-be-transmitted packet in the first ring network is received at the second port of the first ring network node, reading a preset relationship table;

[0036] The preset relationship table comprises an association relationship between the second port of the first ring network node and node address information in the second ring network.

[0037] The node address information corresponding to the second port of the first ring network node in the second ring network is searched in the preset relationship table.

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

[0039] In an embodiment, the step of forwarding the to-be-transmitted packet to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information comprises:

[0040] It is judged whether the to-be-transmitted packet is a broadcast packet.

[0041] If the to-be-transmitted packet is the broadcast packet, the source address information of the to-be-transmitted packet is read.

[0042] It is judged whether the to-be-transmitted packet is from other nodes in the first ring network according to the source address information.

[0043] If yes, the to-be-transmitted packet is forwarded to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information.

[0044] If no, the to-be-transmitted packet is not forwarded.

[0045] In an embodiment, the step of forwarding the to-be-transmitted packet in the first ring network node to the port of the corresponding second ring network node based on the mapping forwarding relationship comprises:

[0046] When the to-be-transmitted packet is received at the second port of the first ring network node, it is judged whether the to-be-transmitted packet is a combined packet.

[0047] If the to-be-transmitted packet is the combined packet, a local packet with a local node address is intercepted from the to-be-transmitted packet.

[0048] The to-be-transmitted packet after the interception and without the local packet is taken as a next to-be-transmitted packet.

[0049] The next to-be-transmitted packet is forwarded to the port of the corresponding second ring network node based on the mapping forwarding relationship.

[0050] In an embodiment, the step of forwarding the to-be-transmitted packet in the first ring network node to the port of the corresponding second ring network node based on the mapping forwarding relationship comprises:

[0051] receiving a to-be-transmitted message at a second port of the first ring network node;

[0052] If yes, the to-be-transmitted message and another to-be-transmitted message are spliced to obtain a combined message, the another to-be-transmitted message being a message that has not been transmitted to a next node;

[0053] If no, the to-be-transmitted message is taken as a next to-be-transmitted message;

[0054] The combined message or the next to-be-transmitted message is forwarded to a port of a corresponding second ring network node through the mapping forwarding relationship.

[0055] In an embodiment, before the step of forwarding the to-be-transmitted message in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship, the method further comprises:

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

[0057] When the node address, address information and sequence number of the to-be-transmitted message and the locally received message are all consistent, the to-be-transmitted message or the locally received message is selected to be discarded;

[0058] When the node address, address information or sequence number of the to-be-transmitted message and the locally received message are inconsistent, the to-be-transmitted message is checked;

[0059] If the check passes, the to-be-transmitted message is saved locally;

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

[0061] In addition, to achieve the above object, the present application further provides an electronic device, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the computer program is executed by the processor to implement the data transmission method according to any one of the preceding embodiments.

[0062] In addition, to achieve the above object, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the data transmission method according to any one of the preceding embodiments.

[0063] The one or more technical solutions provided in the application have at least the following technical effects:

[0064] The node disclosed in the embodiment of the application is located in a first ring network. A port of the first ring network node includes 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 a second ring network node. The first ring network node transmits data through the mapping forwarding relationship between the second port and the at least one port of the second ring network node. Since the first ring network node has the redundant second port in addition to the first port, and the second port of the first ring network node transmits data through the mapping forwarding relationship with the at least one port of the second ring network node, even if the communication path of the first ring network or the second ring network fails during operation, the first ring network and the second ring network can still normally transmit data between each other. Compared with the prior art, the application effectively avoids the occurrence of data loss and ensures reliable data transmission. BRIEF DESCRIPTION OF DRAWINGS

[0065] The accompanying drawings, which are incorporated into and form part of the specification, illustrate embodiments consistent with the application and, together with the specification, serve to explain the principles of the application.

[0066] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the accompanying drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.

[0067] FIG. 1 is a structural schematic diagram of a first embodiment of a node of the application;

[0068] FIG. 2 is a structural schematic diagram of a second embodiment of a node of the application;

[0069] FIG. 3 is a structural schematic diagram of a third embodiment of a node of the application;

[0070] FIG. 4 is a schematic diagram of a mapping forwarding relationship in the third embodiment of the node of the application;

[0071] FIG. 5 is a structural schematic diagram of a fourth embodiment of a node of the application;

[0072] FIG. 6 is a schematic diagram of a mapping forwarding relationship in the fourth embodiment of the node of the application;

[0073] FIG. 7 is a flowchart of a first embodiment of a data transmission method of the application;

[0074] FIG. 8 is a flowchart of a second embodiment of a data transmission method of the application;

[0075] Fig. 9 is a flow diagram of a third embodiment of the data transmission method of the present application;

[0076] Fig. 10 is a structure diagram of a combined packet in the third embodiment of the data transmission method of the present application;

[0077] Fig. 11 is a structure diagram of a non-combined packet in the third embodiment of the data transmission method of the present application;

[0078] Fig. 12 is a transmission diagram of a combined packet in the third embodiment of the data transmission method of the present application;

[0079] Fig. 13 is a combined transmission diagram of a packet in the third embodiment of the data transmission method of the present application;

[0080] Fig. 14 is a hardware structure diagram of an electronic device provided by the embodiment of the present application.

[0081] The implementation, functional features and advantages of the present application will be further explained with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION

[0082] It should be understood that the specific embodiments described herein merely serve to explain the technical solutions of the present application and do not serve to limit the present application.

[0083] In order to better understand the technical solutions of the present application, the following will be described in detail in conjunction with the accompanying drawings and specific embodiments.

[0084] It should be noted that in this document, the terms "comprise", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or system. Without more limitations, the element defined by the statement "comprises a" does not exclude the presence of another identical element in the process, method, article or system including the element.

[0085] The main solution of the embodiment of the present application is that the node is located in a first ring network, the ports of the node of the first ring network include 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 of forwarding data between the second port of the node of the first ring network and at least one port of a node of a second ring network, and the node of the first ring network transmits data through the mapping forwarding relationship between the second port and the at least one port of the node of the second ring network.

[0086] The network architecture of an industrial network system usually adopts a master / slave mode, in which the master station serves as the central control node of the network and is responsible for coordinating and managing the operation of the entire network. The master station realizes monitoring, data acquisition and instruction issuing of field devices and sensors by establishing connections with multiple slave stations. The slave station, as a peripheral node of the master station, is responsible for executing the instructions issued by the master station, collecting field data and transmitting them back to the master station for processing and analysis.

[0087] In an industrial network system, data transmission is affected by electromagnetic interference, conduction interference of long-distance transmission, other harsh environmental conditions and link disconnection, resulting in data errors or loss during transmission. In order to solve the problem of data errors, the related technology usually adopts ring network redundancy technology to ensure correct transmission of data, thereby improving the reliability and stability of the system. Ring network redundancy technology usually adopts multiple devices to form a ring topology network (or called ring network), and based on multiple ring networks to constitute an industrial communication network, and different ring networks realize data transmission by establishing communication connection. This design can ensure that even if a path fails, data can still continue to be transmitted by switching to a backup path, thereby improving the reliability and fault tolerance of the network.

[0088] In order to ensure the effectiveness of ring network redundancy, the industrial network usually has corresponding devices and link monitoring systems to monitor the state of each node and link in the ring network in real time, and to respond in time when a fault is detected. By selecting a normal communication path as a backup communication path for data transmission from multiple communication paths through a path selection algorithm, path switching recovery is realized, communication failure caused by main path failure unable to normally transmit data is avoided, thereby solving the problem of telegram error or failure of data in the transmission process caused by harsh environment, and ensuring reliable transmission of data. However, the above-mentioned method needs to perform fault detection and path selection algorithm after the fault occurs, resulting in a certain recovery time during the path recovery process. During this recovery time, there is still a fault, so there is still a situation of data loss, thereby affecting the normal operation of the industrial network system and making the data transmission unreliable.

[0089] The present application provides a solution, which proposes a node located in a first ring network, the first ring network node is 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 a second ring network node perform data transmission 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 between the first ring network and the second ring network can still be normal. Compared with the prior art, the present application effectively avoids the occurrence of data loss and ensures reliable transmission of data.

[0090] Based on this, the embodiment of the application provides a node. Referring to FIG. 1, FIG. 1 is a structural schematic diagram of a first embodiment of a node of the application.

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

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

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

[0094] The first ring network node can be a node in the first ring network, and the second ring network node can be a node in the second ring network.

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

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

[0097] As shown in FIG. 1, the embodiment takes node 2 as the first ring network node and takes node 5 as the second ring network node for illustration, but the scheme is not limited thereto, and nodes with the mapping forwarding relationship can also be located 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 for data transmission with other nodes in the first ring network. On the basis of port 2c, port 2c is provided as a redundant port of port 2a, so that node 2 forms a redundant manager. Port 2c can have a mapping forwarding relationship for forwarding data with at least one port of the second ring network node, i.e., port 5a.

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

[0099] The node provided in the embodiment is located in a first ring network, ports of the first ring network 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; a mapping forwarding relationship for forwarding data exists between the second port of the first ring network node and at least one port of a second ring network node; and the first ring network node transmits data with the at least one port of the second ring network node through the mapping forwarding relationship via the second port. Since the first ring network node in the embodiment has the redundant second port in addition to the first port, and the second port of the first ring network node transmits data with the at least one port of the second ring network node through the mapping forwarding relationship, in the running process, even if the communication path of the first ring network or the second ring network fails, the first ring network and the second ring network can still normally transmit data, compared with the prior art, the embodiment effectively avoids the occurrence of data loss, and ensures reliable transmission of data.

[0100] Based on the first embodiment of the node, the second embodiment of the node is provided, in which the same or similar contents as the first embodiment of the node can be referred to the foregoing description, and will not be described hereinafter. On this basis, please refer to FIG. 2, which is a structural schematic diagram of the second embodiment of the node.

[0101] In the embodiment, the first ring network is coupled to the 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, and different communication paths are formed.

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

[0103] It should be noted that the master node can be a central control node responsible for coordinating and managing the entire network in the industrial communication network. The master node is, for example, a device for monitoring the states of the nodes and links in the ring network in the industrial network system.

[0104] It can be understood 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 the field data back to the master node for processing and analysis. The slave node is, for example, a field device or a sensor provided in the industrial network system.

[0105] As shown in FIG. 2, the first ring network includes node 1, node 2, node 3 and node 4. The second ring network can include node 5, node 6 and node 7.

[0106] The number of ring networks in the industrial communication network shown in FIG. 2, the number of nodes in the same ring network, and the number of ports of each node are not limited by the present application, and can be selected according to actual scenarios. Descriptions of other numbers of ring networks, nodes, and ports can be referred to the subsequent description of FIG. 2, which will not be described here again. For ease of understanding, the first ring network and the second ring network are described in the present embodiment and the following embodiments.

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

[0108] It can be understood that the nodes in the first ring network can be provided with a plurality of nodes having a mapping forwarding relationship, and the nodes having the mapping forwarding relationship can serve as a redundancy manager, and the second port of the redundancy manager can be a coupling port connected with the port of the node of the second ring network. For example, as shown in FIG. 2, the node 2 can be provided with the port 2c and the port 2d having the mapping forwarding relationship, so that the node 2 serves as a redundancy manager, and the port 2c and the port 2d of the node 2 can be coupling ports; or the node 4 can be provided with the port 4c having the mapping forwarding relationship, so that the node 4 serves as a redundancy manager, and the port 4c of the node 4 can be a coupling port. The nodes other than the redundancy optical line terminal do not have coupling ports. The coupling ports of each redundancy manager can be connected with the nodes in the same ring network or different ring networks to enable the redundancy manager to communicate with other nodes through different communication paths.

[0109] 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 having the mapping forwarding relationship (i.e., the second port of the node) can be provided in at least one node, and specifically, a plurality of coupling ports having the mapping forwarding relationship can be provided, and each coupling port having the mapping forwarding relationship can be concentrated in the same node or provided in different nodes.

[0110] As shown in FIG. 2, in a feasible implementation, the node 2 can serve as a redundancy manager having the mapping forwarding relationship, the port 2c of the node 2 can establish a mapping forwarding relationship with the port 5a of the node 5 in the second ring network, and the port 2d can establish a mapping forwarding relationship with the port 7b of the node 7 in the second ring network, thereby forming a communication path composed of the node 1, the node 2, the node 5, the node 6, and the node 7, and simultaneously forming a communication path composed of the node 1, the node 2, the node 7, the node 6, and the node 5, so that the data transmission between the nodes in the first ring network and the nodes in the second ring network can be realized through different communication paths.

[0111] In another possible implementation, node 2 and node 4 can both serve as redundant managers with mapping forwarding relationship, port 2c of node 2 can establish mapping forwarding relationship with port 5a of node 5 in the second ring network, and port 4c of node 4 can establish mapping forwarding relationship with port 7b of node 7 in the second ring network. A communication path composed of node 1, node 2, node 5, node 6 and node 7 is formed, and a communication path composed of node 1, node 4, node 7, node 6 and node 5 is also formed, so that data transmission between nodes in the first ring network and nodes in the second ring network can be realized through different communication paths.

[0112] It should be noted that in the above implementation, the port with mapping forwarding relationship can also be arranged in node 3, and a port with mapping forwarding relationship can also be arranged in the second ring network to establish a communication path with other ring networks, such as ring network C, and the present embodiment does not limit this.

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

[0114] In a specific implementation, for different communication paths formed by nodes with mapping forwarding relationship, nodes in the first ring network can simultaneously transmit the same data to nodes in the second ring network through each communication path, and nodes in the second ring network can also transmit the same data to nodes in the first ring network through each communication path. In this data transmission mode, it is not necessary to perform fault detection and path selection algorithm, even if any communication path fails, data transmission can still be continued through other normal communication paths, which solves the problem of telegraph error or failure of data in the transmission process caused by harsh environment, has the characteristic of zero recovery time after failure, and effectively ensures reliable transmission of data. Moreover, different communication paths can provide more abundant networking structure.

[0115] Exemplarily, referring to FIG. 2, node 1 is taken as a master node for illustration, port 1b of node 1 can be a first port, and port 1a of node 2 can be a second port, and port 1a is a 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.

[0116] In the connection mode, a first main ring network communication path is formed by 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, and a second main ring network communication path is also formed by 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. Node 1 can simultaneously transmit data to 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 data transmission can continue through the other main ring network communication path when any one of the main ring network communication paths fails, the data loss in the first ring network is avoided, and the reliable data transmission is ensured.

[0117] As shown in FIG. 2, 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 are all slave nodes. Node 2 can be connected to port 1b of node 1 through port 2a, and port 2b of node 2 can be connected to port 1a of node 1 through node 2, node 3 and node 4.

[0118] 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, node 3, node 5, node 6 and node 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 node 2, node 3 and node 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 node 3 and node 2.

[0119] In a specific implementation, when the node receives a to-be-transmitted packet through the second port, the node can forward the received to-be-transmitted packet to the port of the corresponding node in the second ring network through the mapping forwarding relationship, or receive the to-be-transmitted packet forwarded by the node of the second ring network through the mapping forwarding relationship through the second port, and feed back the received to-be-transmitted packet to other nodes in the first ring network through the first port, so that the to-be-transmitted packet in the first ring network can be accurately forwarded to the second ring network, and the to-be-transmitted packet in the second ring network can be accurately forwarded to the first ring network, and the accuracy of data transmission is effectively improved.

[0120] Based on the second embodiment of the node, the third embodiment of the node is provided. In the third embodiment of the node, the same or similar contents as the first embodiment and the second embodiment of the node can be referred to the above description, and will not be described hereinafter. On this basis, please refer to FIG. 3, which is a structural schematic diagram of the third embodiment of the node.

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

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

[0123] As shown in FIG. 3, the second node is taken as the node with the mapping forwarding relationship for description in this embodiment, the port 2a of the second node is the first port, the port 2c is the second port, the port 2b is the third port, and the port 2d is the fourth port. The port 2c is the redundant port of the port 2a, and the port 2d is the redundant port of the port 2b. The port 2a of the second node is connected with the port 1b of the first node, the port 2b of the second node is connected with the port 1a of the first node through the third node and the fourth node, and a centralized multi-ring industrial communication network is formed.

[0124] The first ring network is coupled with the first port of any second ring network node through the first port of the first ring network node and the second port of the first ring network node, and a first communication path is formed.

[0125] The first ring network is coupled with the 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, and a second communication path is formed.

[0126] As shown in FIG. 3, the port 2c of the second node has a mapping forwarding relationship with the port 5a of the fifth node, and the port 2d has a mapping forwarding relationship with the port 7b of the seventh node. Based on the mapping forwarding relationship, the first ring network can be coupled with the fifth node and the seventh node through the port 2c and the port 2d of the second node, and a first communication path formed by the port 1b of the first node, the port 2a of the second node, the port 2c of the second node, the port 5a of the fifth node, the port 5b of the fifth node, the port 6a of the sixth node, the port 6b of the sixth node, and the port 7a of the seventh node is formed, and a second communication path formed by the port 1a of the first node, the port 4b of the fourth node, the port 4a of the fourth node, the port 3b of the third node, the port 3a of the third node, the port 2b of the second node, the port 2d of the second node, the port 7b of the seventh node, the port 7a of the seventh node, the port 6b of the sixth node, the port 6a of the sixth node, the port 5b of the fifth node, and the port 5a of the fifth node is formed.

[0127] In the specific implementation, the node 1 in the first ring network can simultaneously perform data transmission with the node 5, the node 6 and the node 7 in the second ring network through the first communication path and the second communication path, so that the data transmission can be continued by the other communication path when any communication path fails, and the data loss is avoided and the reliable data transmission is ensured.

[0128] Further, in the embodiment, the mapping forwarding relationship includes a first mapping forwarding relationship and a second mapping forwarding relationship.

[0129] The first mapping forwarding relationship exists between the second port of the first ring network node and the first port of any of the second ring network nodes;

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

[0131] The second mapping forwarding relationship exists between the fourth port of the first ring network node and the first port of the other second ring network node;

[0132] In the second communication path, the first ring network node performs data transmission with the first port of the other second ring network node based on the second mapping forwarding relationship through the fourth port of the first ring network node.

[0133] Referring to FIG. 4, FIG. 4 is a mapping forwarding relationship diagram in the third embodiment of the node. In FIG. 4, the port 2c and the port 2d of the node 2, the port 5a of the node 5 and the port 7b of the node 7 all have TX (transmit) and RX (receive) functions. Since the port 2b of the node 2 can first receive the data transmitted by the port 1b of the node 1 through the port 2a, the first mapping forwarding relationship 10 between the port 2c of the node 2 and the port 5a of the node 5 can be established. Since the port 2d of the node 2 can receive the data transmitted by the port 1a of the node 1 through the node 3 and the node 4 via the port 2b, the second mapping forwarding relationship 20 between the port 2d of the node 2 and the port 7b of the node 7 can be established.

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

[0135] 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 via node 4 and node 3, and node 2 forwards the data to port 2d and 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 nodes 5 and 6 through port 7a of node 7. Node 7 can also forward the data to port 2d based on the second mapping forwarding relationship 20 through port 7b, and node 2 feeds back the data to node 1 through port 2b via node 3 and node 4, so as to realize accurate transmission of data between node 1 and each slave node in the second ring network.

[0136] In the embodiment, the data in the first ring network can be accurately transmitted to the second ring network or the data in the second ring network can be accurately fed back to the first ring network through the first mapping forwarding relationship and the second mapping forwarding relationship when the first port, the second port, the third port and the fourth port exist in the node in the first ring network, and the accuracy of data transmission is effectively improved.

[0137] Based on the second embodiment of the node, the fourth embodiment of the node is provided. In the fourth embodiment of the node, the same or similar contents as the first embodiment of the node, the second embodiment of the node and the third embodiment of the node can be referred to the foregoing description, and will not be described hereinafter. On this basis, please refer to FIG. 5, which is a structural schematic diagram of the fourth embodiment of the node.

[0138] In the embodiment, the first ring network of the node comprises a first node and a second node.

[0139] As shown in FIG. 5, the embodiment takes node 2 as the first node and node 4 as the second node for illustration. Port 2c of node 2 is taken as the second port of node 2, and port 4c of node 4 is taken as the second port of node 4. Port 2a of node 2 is connected with port 1b of node 1, port 2b of node 2 is connected with port 3a of node 3, port 4b of node 4 is connected with port 1a of node 1, and port 4a of node 4 is connected with port 3b of node 3, so as to form a distributed multi-ring industrial communication network.

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

[0141] The first port of the second node and the second port of the second node are coupled with the first port of another second ring network node to form a fourth communication path.

[0142] As shown in FIG. 5, the port 2c of the node 2 and the port 5a of the node 5 have a mapping forwarding relationship, and the port 4b of the node 4 and the port 7b of the node 7 have a mapping forwarding relationship. Based on the mapping forwarding relationship, the first ring network can be coupled with the node 5 through the port 2c of the node 2, and coupled with the node 7 through the port 4c of the node 4 and the port 7b of the node 7, to form a third communication path composed of the port 1b of the node 1, the port 2a of the node 2, the port 2c of the node 2, the port 5a of the node 5, the port 5b of the node 5, the port 6a of the node 6, the port 6b of the node 6, and the port 7a of the node 7, and a fourth communication path composed of the port 1a of the node 1, the port 4b of the node 4, the port 4c of the node 4, the port 7b of the node 7, the port 7a of the node 7, the port 6b of the node 6, the port 6a of the node 6, the port 5b of the node 5, and the port 5a of the node 5.

[0143] In a specific implementation, the node 1 can simultaneously transmit data to the node 5, the node 6, and the node 7 in the second ring network through the third communication path and the fourth communication path, so that data transmission can continue through another communication path when any communication path fails, and the occurrence of data loss is avoided, and reliable data transmission is ensured.

[0144] Further, in the embodiment, the mapping forwarding relationship includes a third mapping forwarding relationship and a fourth mapping forwarding relationship.

[0145] The third mapping forwarding relationship exists between the second port of the first node and the first port of any node in the second ring network;

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

[0147] The fourth mapping forwarding relationship exists between the second port of the second node and the first port of another node in the second ring network;

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

[0149] Referring to FIG. 6, FIG. 6 is a schematic diagram of mapping forwarding relationship in the fourth embodiment of the node. In FIG. 6, the port 2a and the port 2c of the node 2, the port 5a of the node 5 all have TX (transmit) and RX (receive) functions, and the port 4a and the port 4c of the node 4, the port 7b of the node 7 all have TX (transmit) and RX (receive) functions. Since the port 2c of the node 2 is closer to the port 1b of the node 1 in the number of hops, the data transmitted by the port 1b of the node 1 through the port 2a can be received first, and thus the third mapping forwarding relationship 30 between the port 2c of the node 2 and the port 5a of the node 5 can be established. Since the port 4c of the node 4 is closer to the port 1a of the node 1 in the number of hops, the data transmitted by the port 1b of the node 1 through the port 4b can be received, and thus the fourth mapping forwarding relationship 40 between the port 4c of the node 4 and the port 7b of the node 7 can be established.

[0150] In the third communication path, the node 1 can forward data to the port 2a of the node 2 through the port 1b, the node 2 can forward data to the port 2c, the node 2 can forward data to the port 5a of the node 5 through the third mapping forwarding relationship 30, and the node 5 can forward data to the node 6 and the node 7 through the port 5b. The node 5 can also forward data to the port 2c through the port 5a based on the third mapping forwarding relationship 30, and the node 2 can feed back data to the node 1 through the port 2a, so as to realize accurate transmission of data between the node 1 and each slave node in the second ring network.

[0151] In the fourth communication path, the node 1 can forward data to the port 4b of the node 4 through the port 1a, the node 4 can forward data to the port 4c, the node 4 can forward data to the port 7b of the node 7 through the fourth mapping forwarding relationship 40, and the node 7 can forward data to the node 5 and the node 6 through the port 7a. The node 7 can also forward data to the port 4c through the port 7b based on the fourth mapping forwarding relationship 40, and the node 4 can feed back data to the node 1 through the port 4b, so as to realize accurate transmission of data between the node 1 and each slave node in the second ring network.

[0152] When the first node with the third mapping forwarding relationship and the second node with the fourth mapping forwarding relationship exist in the embodiment, the data in the first ring network can be accurately transmitted to the second ring network or the data in the second ring network can be accurately fed back to the first ring network through the third mapping forwarding relationship and the fourth mapping forwarding relationship, and the accuracy of data transmission is effectively improved.

[0153] The application further provides an industrial communication network, which comprises the node described in the above embodiments.

[0154] The industrial communication network provided in the present application adopts the node in the above embodiment. Compared with the prior art, the industrial communication network provided in the present application has the same beneficial effects as the node provided in the above embodiment, and other technical features in the industrial communication network are the same as those disclosed in the node embodiment, which will not be repeated here.

[0155] 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 comprises the node embodiment described above, the same or similar contents as the node described above can refer to the related introduction of the node embodiment, and this embodiment will not be repeated here. On this basis, please refer to FIG. 7, which is a flowchart of the first embodiment of the data transmission method of the present application.

[0156] As shown in FIG. 7, in this embodiment, the data transmission method comprises:

[0157] Step S10, reading the mapping forwarding relationship between the second port of the first ring network node and the at least one port of the second ring network node.

[0158] Step S20, forwarding the to-be-transmitted packet in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship.

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

[0160] In a specific implementation, the communication path in the industrial communication network described above 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 directly or indirectly used to perform data transmission 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 the plurality of communication paths, and then simultaneously forwards the to-be-transmitted packet forwarded by the previous node to the port of the corresponding second ring network node through 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.

[0161] The embodiment provides a data transmission method. The method comprises the following steps: reading a mapping forwarding relationship between a second port of a first ring network node and at least one port of a second ring network node; and forwarding a to-be-transmitted message in the first ring network node to a corresponding port of the second ring network node through the mapping forwarding relationship. Since the data transmission is performed through the mapping forwarding relationship, even if a communication path of the first ring network or the second ring network fails, the data transmission can still be performed normally. Compared with the prior art, the embodiment effectively avoids the data loss and ensures the reliable data transmission.

[0162] Based on the first embodiment of the data transmission method, the second embodiment of the data transmission method is provided. In the second embodiment of the data transmission method, the same or similar contents as those of the first embodiment of the data transmission method can be referred to the related description of the first embodiment of the data transmission method, and the subsequent description is omitted. On this basis, please refer to FIG. 8, which is a flowchart of the second embodiment of the data transmission method.

[0163] In the embodiment, the step S20 can comprise:

[0164] Step S211: reading a preset relationship table when the to-be-transmitted message in the first ring network is received at the second port of the first ring network node.

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

[0166] In the specific implementation, the preset relationship table comprising 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 can be constructed in advance. For the centralized multi-ring industrial communication network shown in FIG. 2, the preset relationship table is shown in Table 1 as follows:

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

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

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

[0170] For the distributed multi-ring industrial communication network shown in FIG. 4, the preset relationship table is shown in Table 2 as follows:

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

[0172] Wherein, Address1 is node 1 address information, Address5 is node 5 address information, Address6 is node 6 address information, Address7 is node 7 address information, and broadcast is a broadcast packet.

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

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

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

[0176] In step S213, the node address information is used to forward the to-be-transmitted packet to a port of a corresponding second ring network node based on a mapping forwarding relationship.

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

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

[0179] Further, in this embodiment, step S213 includes:

[0180] In step S2131, it is determined whether the to-be-transmitted packet is a broadcast packet.

[0181] In a specific implementation, when the first ring network node receives the to-be-transmitted packet sent by the previous node through the first port, it can determine whether the to-be-transmitted packet is a broadcast packet according to whether there is a corresponding broadcast address (such as “FF:FF:FF:FF:FF:FF”) in the to-be-transmitted packet. That is, when there is a corresponding broadcast address in the to-be-transmitted packet, it is determined that the to-be-transmitted packet is a broadcast packet; and when there is no corresponding broadcast address in the to-be-transmitted packet, it is determined that the to-be-transmitted packet is not a broadcast packet.

[0182] In addition, for the previous node and the next node of the first ring network node, referring to FIG. 2, when the single node 2 is a node with a mapping forwarding relationship, if the previous node of the single node 2 is node 1, the next node of the single node 2 is node 3 or node 5.

[0183] In step S2132, if the to-be-transmitted packet is a broadcast packet, source address information of the to-be-transmitted packet is read.

[0184] It should be noted that the source address information can be address information identifying a first node sending the to-be-transmitted message, so that the node knows the initial source of the to-be-transmitted message.

[0185] In step S2133, it is judged according to the source address information whether the to-be-transmitted message is from other nodes in the first ring network.

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

[0187] In step S2134, if yes, the to-be-transmitted message is forwarded to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information.

[0188] In step S2135, if no, the to-be-transmitted message is not forwarded.

[0189] In a specific implementation, if the broadcast message is forwarded between different ring networks, a loop will be formed in the network, causing the broadcast traffic to circulate indefinitely, and further causing a broadcast storm. The first ring network node is in the first ring network, so when the first ring network node detects that the to-be-transmitted message is from the first ring network, the to-be-transmitted message is forwarded to the next node in the second ring network consistent with the node address information based on the mapping forwarding relationship, and conversely, when it is detected that the to-be-transmitted message is not from the first ring network, the to-be-transmitted message is not forwarded, so as to prevent the broadcast storm.

[0190] In this embodiment, when the to-be-transmitted message is a broadcast message, the source address information of the to-be-transmitted message is read, and when it is judged according to the source address information that the to-be-transmitted message is from other nodes in the first ring network, the to-be-transmitted message 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 judged according to the source address information that the to-be-transmitted message is not from other nodes in the first ring network, the to-be-transmitted message is not forwarded, so as to prevent the broadcast storm.

[0191] Based on the second embodiment of the data transmission method, a third embodiment of the data transmission method is proposed. In the third embodiment of the data transmission method, the same or similar contents as the first and second embodiments of the data transmission method can refer to the related descriptions of the first and second embodiments of the data transmission method, and will not be described hereinafter. On this basis, please refer to FIG. 9, which is a flowchart of the third embodiment of the data transmission method.

[0192] In this embodiment, step S20 can further include:

[0193] Step S221, when the second port of the first ring network node receives a to-be-transmitted packet, judging whether the to-be-transmitted packet is a combined packet.

[0194] It should be noted that the combined packet is a packet containing multiple node data. For the combined packet transmitted through different paths, each sub-packet in the to-be-transmitted packet can be sorted based on the distance between the sending end and the destination.

[0195] As shown in FIG. 10, FIG. 10 is a structure diagram of a combined packet in the third embodiment of the data transmission method. In FIG. 10, the first ring network in which node 1 is located is taken as an example. If the port 1b of node 1 is the sending end and node 4 is the destination, the combined packet 100 needs to be transmitted through the port 1b of node 1, the port 2a of node 2, the port 2b of node 2, the port 3a of node 3, the port 3b of node 3, and the port 4a of node 4. Under this path, the distance of each node from the port 1b is sorted from large to small as follows: node 4, node 3, node 2, and therefore, the sorting manner of each part in the combined packet 100 under this path is as follows: 100a (Head, i.e., telegram head), 100b (Subdata-Node4, i.e., node 4 address data), 100c (Subdata-Node3, i.e., node 3 address data), 100d (Subdata-Node2, i.e., node 2 address data), and 100e (FCS, i.e., check section), wherein the check section is used to check the correctness of the data. The combined packet 100 under this sorting manner first passes through node 2, node 2 can intercept 100d, then passes through node 3, node 3 can intercept 100c, and finally passes through node 4, node 4 can intercept 100b, which ensures that the data of each node is always at the end of the sub-packet, so that each node can directly intercept the end position to obtain its data, thereby improving the efficiency of data interception.

[0196] Correspondingly, if port 1a of node 1 is a sending end and node 2 is a destination end, the combined message 200 needs to be sent through port 1a of node 1, transmitted through port 4b of node 4, port 3b of node 3, port 3a of node 3 to port 2b of node 2. In this path, the distance of each node from port 1b is ranked from large to small as: node 2, node 3, node 4, and thus the sorting manner of each part in the combined message 200 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), wherein the check segment is used to check the correctness of the data. The combined message 200 in this sorting manner first passes through node 4, node 4 can intercept 200d, then passes through node 3, node 3 can intercept 200c, and finally passes through node 2, node 2 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 intercept the end position to obtain its data, improving the efficiency of data interception.

[0197] In the combined message, the sub-message can be composed of node data between the telegram header and the check segment. The end of the sub-message can be adjacent to the check segment, and the position of the last sub-message.

[0198] Step S222, if the combined message, intercepting a local message with a local address as a destination node address from the to-be-transmitted message.

[0199] In a specific implementation, the first ring network node can determine whether the sub-message in the to-be-transmitted message is composed of multiple node data when receiving the to-be-transmitted message forwarded by the previous node, if yes, determining that the to-be-transmitted message is a combined message, if no, determining that the to-be-transmitted message is not a combined message. When the to-be-transmitted message is a combined message, the to-be-transmitted message can be intercepted to obtain node data with a local address as a destination node address 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, and can intercept 100d with the address of node 2 as a destination node address and save 100d to the local to form a local message.

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

[0201] Step S223, taking the to-be-transmitted message after interception and not containing the local message as a next to-be-transmitted message.

[0202] Step S224, forwarding the next transmission packet into the port of the corresponding second ring network node through the mapping forwarding relationship.

[0203] In a specific implementation, after intercepting the local packet, the first ring network node reassembles the remaining sub-packets in the to-be-transmitted packet to form a next transmission packet which does not contain the local packet. For example, if node 2 receives the combined packet 100 sent by port 1b of node 1 through port 2a, after intercepting 100d in the combined packet 100, the packet composed of 100a, 100b, 100c and 100e is taken as the next transmission packet, and the next transmission packet is simultaneously forwarded to the corresponding nodes 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 packet is forwarded to the destination node.

[0204] Further, in the embodiment, step S20 can further include:

[0205] Step S231, when the to-be-transmitted packet is received at the second port of the first ring network node, judging whether the destination node address information of the to-be-transmitted packet is same as that of another to-be-transmitted packet, the another to-be-transmitted packet being a packet which has not been transmitted to the next node.

[0206] In a specific implementation, the previous node of the first ring network node can be multiple. As shown in FIG. 2, when node 2 receives the to-be-transmitted packet transmitted by port 1b of node 1 through port 2a, it can also receive another to-be-transmitted packet transmitted by port 1a of node 1 through node 4 and node 3 through port 2b. When the current node receives the to-be-transmitted packet and the another to-be-transmitted packet transmitted by different nodes, it can judge whether the destination node address information of the to-be-transmitted packet is same as that of the another to-be-transmitted packet.

[0207] Step S232, if yes, splicing the to-be-transmitted packet and the another to-be-transmitted packet to obtain a combined packet.

[0208] Step S233, if no, taking the to-be-transmitted packet as a next transmission packet.

[0209] Step S234, forwarding the combined packet or the next transmission packet into the port of the corresponding second ring network node through the mapping forwarding relationship.

[0210] In a specific implementation, when the first ring network node detects that the destination node address information of the to-be-transmitted message is the same as that of another to-be-transmitted message, it is determined that the to-be-transmitted message and the other to-be-transmitted message need to be finally transmitted to the same node, and therefore, the to-be-transmitted message and the other to-be-transmitted message can be spliced to form a combined message which is then forwarded to the next node in the ring network, so as to improve the transmission efficiency. Correspondingly, when the destination node address information of the to-be-transmitted message is different from that of the other to-be-transmitted message, the to-be-transmitted message and the other to-be-transmitted message can be forwarded as different next to-be-transmitted messages. If the to-be-transmitted message needs to be forwarded to the second ring network, the to-be-transmitted message can be forwarded to the corresponding node in the second ring network through each communication path based on the mapping forwarding relationship.

[0211] Further, in the embodiment, step S20 can further include:

[0212] In step S241, when the to-be-transmitted message is received at the second port of the first ring network node and the destination node address information of the to-be-transmitted message is consistent with the local address information, the to-be-transmitted message is compared with a local received message, which is a message that does not need to be transmitted to the next node.

[0213] It should be noted that the local received message can be a message whose destination address is local and does not need to be forwarded to the next node.

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

[0215] It can be understood that for a non-combined message, its message structure is shown in FIG. 11. FIG. 11 is a structure diagram of a non-combined message in the third embodiment of the data transmission method of the application. In FIG. 11, a non-combined message 300 whose destination node address is node 6 is used for illustration. Head is the message header of the combined message 300, Subdata-Node6 represents data whose destination node address is the address of node 6, and FCS is the check segment of the combined message 300. The Head contains address information 300a, the Subdata-Node6 contains node address 300b, sequence number 300c, and data segment 300d.

[0216] In addition, for the non-combination packet, when any node receives multiple non-combination packets at the same time, the node can splice the non-combination packets, remove the repeated packet header and check section, i.e. retain one packet header and check section, splice the combination packet, and then forward the combination packet to the next node, so as to reduce the time consumption of the common protocol overheads such as the packet header, check section and interframe gap of the packet, and improve the efficiency of data transmission.

[0217] In a specific implementation, when the first ring network node receives the to-be-transmitted packet through the second port, the first ring network node can compare the destination node address information of the to-be-transmitted packet with the local address information, determine whether the destination address of the to-be-transmitted packet is the local address when the destination node address information of the to-be-transmitted packet is consistent with the local address information, and obtain the to-be-transmitted packet and the local received packet for comparison to determine whether the address information, node address and sequence number of the two packets are consistent.

[0218] Step S242, when the node address, address information and sequence number of the to-be-transmitted packet and the local received packet are consistent, the to-be-transmitted packet or the local received packet is selected for discarding.

[0219] In a specific implementation, when the first ring network node detects that the node address, address information and sequence number of the to-be-transmitted packet are consistent with the node address, address information and sequence number of the local received packet, the first ring network node determines that the data content of the to-be-transmitted packet is consistent with the data content of the local received packet, and randomly selects any one of the to-be-transmitted packet or the local received packet for discarding, so as to eliminate the repeated packet and avoid receiving the repeated packet locally.

[0220] Step S243, when the node address, address information or sequence number of the to-be-transmitted packet and the local received packet are inconsistent, the to-be-transmitted packet is checked.

[0221] Step S244, if the checking passes, the to-be-transmitted packet is saved to the local.

[0222] Step S245, if the checking does not pass, the to-be-transmitted packet is discarded.

[0223] In a specific implementation, when the first ring network node detects that any one of the node address, address information or sequence number of the to-be-transmitted packet and the local received packet is inconsistent, the first ring network node determines that the data content of the to-be-transmitted packet is inconsistent with the data content of the local received packet. At this time, the to-be-transmitted packet can be subjected to cyclic redundancy check through the check section in the to-be-transmitted packet. If the checking passes, it is determined that the data content of the to-be-transmitted packet is correct, and the to-be-transmitted packet is saved to the local. On the contrary, if the checking does not pass, it is determined that the data content of the to-be-transmitted packet is incorrect, and the to-be-transmitted packet is discarded.

[0224] Exemplarily, referring to FIG. 12, the transmission mode of the combined message based on the centralized multi-ring redundant networking shown in FIG. 2 is exemplified. FIG. 12 is a transmission diagram of the combined message in the third embodiment of the data transmission method of the present application. In FIG. 12, the combined message 400 is composed of 400a (Head, i.e., the telegram header), 400c (Subdata-Node7, i.e., the data of the address of Node7), 400d (Subdata-Node6, i.e., the data of the address of Node6) and 400e (FCS, i.e., the check segment). The combined message 500 is composed of 500a (Head, i.e., the telegram header), 500c (Subdata-Node6, i.e., the data of the address of Node6), 500d (Subdata-Node7, i.e., the data of the address of Node7) and 500e (FCS, i.e., the check segment). The non-combined message 401 is composed of 400a, 400c and 400e. The non-combined message 402 is composed of 400a, 400d and 400e. The non-combined message 501 is composed of 500a, 500d and 400e. The non-combined message 502 is composed of 500a, 500c and 500e. The data of 400d and 500c is the same, and the data of 400c and 500d is the same.

[0225] As shown in FIG. 12, Node1 forwards the combined message 400 to the port 2a of Node2 through the port 1b, then forwards the combined message 400 to the port 2c through the port 2a, and forwards the combined message 400 to the port 5a of Node5 through the port 2c based on the first mapping forwarding relationship. Node5 forwards the combined message 400 to the port 6a of Node6 through the port 5b. Node6 intercepts 400d in the combined message 400 and saves it to the local, forms the non-combined message 402 and the non-combined message 401 in the local, and then forwards the non-combined message 401 to the port 7a of Node7 through the port 6b.

[0226] Correspondingly, Node1 forwards the combined message 500 to Node2 through the path of the port 1a, the port 4b of Node4, the port 4a of Node4, the port 3b of Node3, the port 3a of Node3 and the port 2b of Node2, then Node2 forwards the combined message 500 to the port 2d through the port 2b, forwards the combined message 500 to the port 7b of Node7 through the port 2d based on the second mapping forwarding relationship, Node7 intercepts 500d in the combined message 500 and saves it to the local, forms the non-combined message 501 and the non-combined message 502 in the local, and then forwards the non-combined message to the port 6b of Node6 through the port 7a.

[0227] After the above combination transmission process, the non-combination message 402 and the non-combination message 502 with the same information are received in the node 6, the node 6 can check the check section in the non-combination message 402 and the non-combination message 502, and retain the non-combination message with successful check. When the non-combination message 402 and the non-combination message 502 are both successfully checked, any one of the non-combination message 402 and the non-combination message 502 is discarded at random. The non-combination message 401 and the non-combination message 501 with the same information are received in the node 7, the node 7 can check the check section in the non-combination message 401 and the non-combination message 501, and retain the non-combination message with successful check. When the non-combination message 401 and the non-combination message 501 are both successfully checked, any one of the non-combination message 401 and the non-combination message 501 is discarded at random, so as to complete the transmission of the combination message, reduce the time consumption of the common protocol overhead such as the message header, the check section and the interframe gap of the message, and improve the data transmission efficiency.

[0228] Exemplarily, with reference to FIG. 13, the combination transmission mode of the message based on the centralized multi-ring redundancy networking shown in FIG. 2 is exemplified. FIG. 13 is a combination transmission schematic diagram of the message in the third embodiment of the data transmission method. In FIG. 13, the non-combination message 601 is composed of 800a (Head, i.e., the telegraph header), 600b (Subdata-Node6-1, i.e., the data sent from the node 6 address to the node 1 address) and 800e (FCS, i.e., the check section). The non-combination message 602 is composed of 900a (Head, i.e., the telegraph header), 600c (Subdata-Node6-1, i.e., the data sent from the node 6 address to the node 1 address) and 900e (FCS, i.e., the check section). The non-combination message 701 is composed of 800a, 700b (Subdata-Node7-1, i.e., the data sent from the node 7 address to the node 1 address) and 800e. The non-combination message 702 is composed of 900a, 700c (Subdata-Node7-1, i.e., the data sent from the node 7 address to the node 1 address) and 900e. The combination message 401 is composed of 400a, 400c and 400e. The non-combination message 402 is composed of 400a, 400d and 400e. The non-combination message 501 is composed of 500a, 500d and 400e. The non-combination message 502 is composed of 500a, 500c and 500e. The data of 600b and 600c is the same, and the data of 700b and 700c is the same.

[0229] As shown in Fig. 13, node 6 forwards the non-combined packet 601 to port 2c of node 2 through the path of port 6a of node 6, port 5b of node 5, port 5a of node 5 and port 2c of node 2, and uses the first mapping forwarding relationship to forward the non-combined packet 601 at port 2c of node 2 to port 2a of node 2, and finally forwards the non-combined packet 601 at port 2a to port 1b of node 1. Node 6 forwards the non-combined packet 602 to port 2d of node 2 through the path of port 6b of node 6, port 7a of node 7, port 7b of node 7 and port 2d of node 2, and uses the second mapping forwarding relationship to forward the non-combined packet 602 at port 2d of node 2 to port 2b of node 2, and node 2 forwards the non-combined packet 602 to port 1a of node 1 through the path of port 2b of node 2, 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.

[0230] Accordingly, node 7 forwards the non-combined packet 701 to port 2c of node 2 through the path of port 7a of node 7, 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, and uses the first mapping forwarding relationship to forward the non-combined packet 701 at port 2c of node 2 to port 2a of node 2, and finally forwards the non-combined packet 701 at port 2a to port 1b of node 1. Node 7 forwards the non-combined packet 702 to port 2d of node 2 through the path of port 7b of node 7 and port 2d of node 2, and uses the second mapping forwarding relationship to forward the non-combined packet 702 at port 2d of node 2 to port 2b of node 2, and node 2 forwards the non-combined packet 702 to port 1a of node 1 through the path of port 2b of node 2, 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] After the above packet transmission process, any node will receive the non-combined packet 601 and the non-combined packet 701 with the destination address of node 1 to splice and form the combined packet 800, and splice the non-combined packet 602 and the non-combined packet 702 to form the combined packet 900. The combined packet 800 and the combined packet 900 have the same information, and after being transmitted to node 1, node 1 can perform repeated data check on the check segment in the combined packet 800 and the combined packet 900, and discard the combined packet which arrives later among the combined packet 800 and the combined packet 900, thereby completing the combined transmission of the packets, reducing the time consumption of the public protocol overheads such as the packet header, the check segment and the interframe gap of the packets, and improving the data transmission efficiency.

[0232] In addition, the application further provides an electronic device, and the data transmission method applied to the node device in the network topology can be executed by a data transmission apparatus, which can be implemented in a software and / or hardware manner and integrated in the electronic device.

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

[0234] Referring to FIG. 14, FIG. 14 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the application. As shown in FIG. 14, the electronic device can 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. The communication bus 1002 is configured to realize the connection and communication between the components. The user interface 1003 can include a display, an input unit such as a keyboard, and optionally a standard wired interface and a wireless interface. The network interface 1004 can optionally include a standard wired interface and a wireless interface (such as a WIreless-FIdelity (WI-FI) interface). The memory 1005 can be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk memory. The memory 1005 can also be a storage device independent of the processor 1001.

[0235] Those skilled in the art can understand that the structure shown in FIG. 14 does not constitute a limitation on the electronic device, and can include more or fewer components than those shown, or combine certain components, or different component arrangements. As shown in FIG. 14, the memory 1005 as a storage medium can include an operating system, a data storage module, a network communication module, a user interface module, and a computer program.

[0236] In the electronic device shown in FIG. 14, 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 the embodiment can be disposed in the electronic device, and the electronic device invokes the computer program stored in the memory 1005 through the processor 1001, and executes the data transmission method applied to the node device in the network topology provided in any of the above embodiments.

[0237] The electronic device provided in the embodiment belongs to the same technical concept as the data transmission method applied to the node device in the network topology provided in the above embodiments, and the technical details not described in detail in the embodiment can be seen from any of the above embodiments, and the embodiment has the same beneficial effects as the data transmission method.

[0238] In addition, the embodiment of the present application further provides a computer readable storage medium, which can be a non-volatile computer readable storage medium, and a computer program is stored on the computer readable storage medium. The computer program is executed by the processor to implement the data transmission method provided in any of the above embodiments.

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

[0240] The computer program product provided in the present application belongs to the same technical concept as the data transmission method provided in the above embodiments, and compared with the related art, the computer program product provided in the present application has the same beneficial effects as the data transmission method provided in the above embodiments, which will not be described here.

[0241] The above is only a specific embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, is also included in the patent protection scope of the present application.

Claims

1. A node, the node being located in a first ring network, wherein, 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 a second ring network node; The first ring network is coupled to the 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.

2. The node of claim 1, wherein, The ports of the first ring network node further include a third port and a fourth port; 3. The node of claim 2, wherein, 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 is coupled to a first port of any 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 a first communication path; The first ring network is coupled to 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, forming a second communication path. The mapping forwarding relationship includes a first mapping forwarding relationship and a second mapping forwarding relationship; 4. The node of claim 3, wherein, There is the first mapping forwarding relationship between the second port of the first ring network node and the first port of the any second ring network node; In the first communication path, the first ring network node performs data transmission with the first port of the any second ring network node through the second port of the first ring network node based on the first mapping forwarding relationship; There is 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 performs data transmission 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. The first ring network node includes a first node and a second node; 5. The node of claim 2, wherein, The first port of the first node and the second port of the first node are coupled to a first port of any second ring network node, forming a third communication path; The first port of the second node and the second port of the second node are coupled to a first port of another second ring network node, forming a fourth communication path. The mapping forwarding relationship includes a third mapping forwarding relationship and a fourth mapping forwarding relationship; 6. The node of claim 5, wherein, There is the third mapping forwarding relationship between the second port of the first node and the first port of the any second ring network node; In the third communication path, the first node performs data transmission with the first port of the any second ring network node through the second port of the first node based on the third mapping forwarding relationship; There is the fourth mapping forwarding relationship between the second port of the second node and the first port of the another second ring network node; In the fourth communication path, the second node performs data transmission with the first port of the another second ring network node through the second port of the second node based on the fourth mapping forwarding relationship. In the fourth communication path, the second node forwards data with the first port of the another second ring network node based on the fourth mapping forwarding relationship through the second port of the second node.

7. An industrial communication network, wherein, The industrial communication network comprises the node according to any one of claims 1 to 6.

8. A data transmission method, wherein, 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 the second port of the first ring network node and at least one port of the second ring network node; forwarding a to-be-transmitted packet in the first ring network node to a port of a corresponding second ring network node through the mapping forwarding relationship.

9. The data transmission method of claim 8, wherein, The step of forwarding the to-be-transmitted packet in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship comprises: reading a preset relationship table when the to-be-transmitted packet in the first ring network is received at the second port of the first ring network node; wherein the preset relationship table comprises an association relationship between the second port of the first ring network node and node address information in the second ring network; finding the node address information corresponding to the second port of the first ring network node in the second ring network in the preset relationship table; forwarding the to-be-transmitted packet 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 of claim 9, wherein, The step of forwarding the to-be-transmitted packet to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information comprises: determining whether the to-be-transmitted packet is a broadcast packet; if the to-be-transmitted packet is the broadcast packet, reading source address information of the to-be-transmitted packet; determining whether the to-be-transmitted packet is from other nodes in the first ring network according to the source address information; if yes, forwarding the to-be-transmitted packet to the port of the corresponding second ring network node based on the mapping forwarding relationship through the node address information; if no, not forwarding the to-be-transmitted packet.

11. The data transmission method of claim 8, wherein, The step of forwarding the to-be-transmitted packet in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship further comprises: when the to-be-transmitted packet is received at the second port of the first ring network node, determining whether the to-be-transmitted packet is a combined packet; if the to-be-transmitted packet is the combined packet, intercepting a local packet with a local address as a destination node address from the to-be-transmitted packet; taking the to-be-transmitted packet after intercepting the local packet as a next to-be-transmitted packet; forwarding the next to-be-transmitted packet to the port of the corresponding second ring network node through the mapping forwarding relationship.

12. The data transmission method of claim 8, wherein, The step of forwarding the to-be-transmitted packet in the first ring network node to the port of the corresponding second ring network node through the mapping forwarding relationship further comprises: when the to-be-transmitted packet is received at the second port of the first ring network node, determining whether destination node address information of the to-be-transmitted packet is same as that of another to-be-transmitted packet, the another to-be-transmitted packet being a packet not yet transmitted to a next node; if yes, combining the to-be-transmitted packet with the another to-be-transmitted packet to obtain a combined packet; If not, the to-be-transmitted packet is taken as a next to-be-transmitted packet; forwarding the combined packet or the next to-be-transmitted packet to a port of a corresponding second ring network node through the mapping forwarding relationship.

13. The data transmission method of claim 8, wherein, Before the step of forwarding the to-be-transmitted packet in the first ring network node to a port of a corresponding second ring network node through the mapping forwarding relationship, the method further comprises: receiving a to-be-transmitted packet at the second port of the first ring network node, and comparing the to-be-transmitted packet with a locally received packet when destination node address information of the to-be-transmitted packet is consistent with local address information, the locally received packet being a packet that does not need to be transmitted to a next node; selecting the to-be-transmitted packet or the locally received packet to be discarded when node address, address information and sequence number of the to-be-transmitted packet and the locally received packet are all consistent; checking the to-be-transmitted packet when node address, address information or sequence number of the to-be-transmitted packet and the locally received packet are inconsistent; if the checking passes, saving the to-be-transmitted packet locally; if the checking fails, discarding the to-be-transmitted packet.

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

15. A computer readable storage medium, wherein, The computer program is stored on the computer readable storage medium and, when executed by the processor, implements the data transmission method according to any one of claims 8 to 13.

Citation Information

Patent Citations

  • Redundancy network system and message sending method based on same

    CN102082696A

  • Message processing method for tangent ring networks and Ethernet switch

    CN102215165A

  • Link switching method, link redundancy backup network and computer readable storage medium

    CN109462533A

  • Link switching methods, link redundancy backup network and computer readable memory medium

    CN109525445A

  • Message forwarding method, device and system

    CN115567342A