A method for identifying and operating multi-redundant heterogeneous networks based on virtual links

The method forms a multi-redundant heterogeneous network topology using real-time Ethernet modules and gateway modules with virtual links, addressing the limitations of existing networks by enhancing redundancy and reliability through dynamic link management.

CN118713988BActive Publication Date: 2024-12-06ZHEJIANG SUPCON RES
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411204501.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-06
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

Existing industrial real-time Ethernet networks lack the ability to increase redundancy through virtual links, failing to meet high reliability requirements and complex topological needs, particularly in star, line, and ring networks.

Method used

A method to form a multi-redundant heterogeneous hybrid topology using real-time Ethernet communication modules and gateway modules, implementing virtual links to create ring, linear, and star networks, with real-time link status detection and fault detection mechanisms to manage network redundancy and fault switching.

Benefits of technology

Enhances network topology structure with increased redundancy, ensuring reliable multi-redundant data transmission and meeting high reliability demands by dynamically managing link types and faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713988B_ABST
    Figure CN118713988B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of industrial communication technology, and in particular to a multi-redundant heterogeneous network identification and operation method based on a virtual link, comprising the following steps: S1: realizing multi-redundant connections between bus communication modules through virtual links; S2: after power-on, checking the online status of Ethernet communication modules and gateway module ports, waiting for a certain period of time or receiving a link status information message from the opposite end, and sending its own link status information message; S3: judging the link type according to the link status information message from the opposite end; S4: the Ethernet communication module starts the clock synchronization process, and realizes that the bus communication module with a virtual link partially opens the data operation authority of the virtual link, so that the corresponding port completes the basic configuration work; S5: when a fault is detected, starting a link fault detection mechanism, and switching the virtual link to a communication link. The present invention realizes increasing topology redundancy and network topology reliability through the virtual link formed by the Ethernet communication module and the gateway module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial communication technology, and in particular to a method, device and storage medium for identifying and operating multiple redundant heterogeneous networks based on virtual links. Background Art

[0002] Ethernet has a tendency to be further applied to industrial sites due to its openness, wide application and low price. As the core technology of industrial real-time Ethernet, network topology technology is gaining more and more attention.

[0003] With the deepening of application, in actual applications, different occasions have put forward different requirements for the reliability and topological complexity of the real-time Ethernet used. That is, it is required that the real-time Ethernet can realize multi-redundant data transmission, link communication self-identification and self-management by adding redundant virtual links under the existing topological structure, eliminating the original cumbersome configuration and marking process, and meeting the plug-and-play needs of users. At present, the topological structure of the industrial real-time Ethernet network is relatively simple. For example, if a star, line, ring or hybrid network is used, it is impossible to increase the network redundancy through virtual links, and it cannot meet the requirements of users with high reliability requirements for network topological reliability. It can be seen that the limitations and defects of the existing industrial network topology cannot meet the requirements of the network for high reliability. Summary of the invention

[0004] The purpose of the present invention is to solve the shortcomings of the prior art and provide a multi-redundant heterogeneous network identification and operation method based on virtual links, comprising the following steps:

[0005] S1: In the network system, multiple redundant connections between bus communication modules are realized through virtual links to form a multiple redundant heterogeneous hybrid topology including a ring network, a linear network and a star network, wherein the multiple redundant topology includes a plurality of real-time Ethernet communication modules and a plurality of gateway modules;

[0006] S2: After the network system is powered on, the online status of the real-time Ethernet communication module and the gateway module port is checked in real time, and after waiting for a certain period of time or receiving the peer link status information message sent by the peer device, the self-link status information message including the self-module type, the number of online ports, the port number, the self-corresponding port and the link type is sent;

[0007] S3: the real-time Ethernet communication module receives the peer link status information message sent from the peer device, does not forward the peer link status information message, and determines the link type according to the peer link status information message;

[0008] S4: After determining the link type in the network system, the real-time Ethernet communication module starts the clock synchronization process in the local network, and partially opens the data operation rights of the bus communication module with the virtual link to the virtual link, so that the corresponding port can perform data communication after completing the basic configuration work;

[0009] S5: Perform fault detection on the normal communication link of the bus communication module. When a fault is detected, start the link fault detection mechanism and switch the virtual link to the communication link.

[0010] Preferably, in step S3, judging the link type according to the content of the peer link status information message includes:

[0011] First, determine whether it is connected to the gateway. If it is connected to the gateway, the link type is a communication link. If it is not connected to the gateway, determine whether the opposite device determines the link type, and determine the link type according to the opposite link status information message.

[0012] Preferably, judging whether the peer device determines the link type, and determining the link type according to the peer link status information message, further includes:

[0013] If the peer device has not determined the link type, the link type is determined based on the communication port connected to the peer device;

[0014] If the peer device determines the link type and informs itself through the peer link status information message, it determines the link type according to the link type specified in its own link status information message;

[0015] When the real-time Ethernet communication module receives more than one different peer link status information messages and confirms that it is in a star network, the ports receiving the more than one peer link status information messages are communication links, and the remaining ports are virtual links.

[0016] Preferably, the determining the link type according to the communication port connected to the opposite end device further comprises:

[0017] In a ring network and a linear network, if the real-time Ethernet communication module itself has three online communication ports, if two of the online communication ports receive link status messages from the peer device, it is confirmed as a communication link. If the peer device has a device with three online communication ports or a device with two online communication ports, the link connected to the device with three online communication ports is a virtual link, and the remaining links are communication links, and the link type is sent to the peer device;

[0018] In a linear network, if the real-time Ethernet communication module itself has three online communication ports and the virtual link cannot be determined, the judgment is made according to the characteristic values ​​of the messages received at the respective ports.

[0019] Preferably, the judging according to the message feature values ​​received by the respective ports further comprises:

[0020] When the real-time Ethernet module receives the message characteristic value, the link type is determined according to the time of the received message characteristic value including the static characteristic value and the dynamic characteristic value. If the received one is slow, it is a virtual link, and the others are communication links. The static characteristic values ​​include static characteristics including IP, mac, and priority identifier, and the dynamic characteristic values ​​include dynamic characteristics including message arrival time and the actual number of message communications.

[0021] Preferably, step S4 further includes:

[0022] During the data communication process, the virtual link in the network system does not forward valid data communication messages through the virtual link non-forwarding mechanism. When the normal redundant link is disconnected, the bus communication device that owns the virtual link develops the normal data communication service authority of the virtual link. At the same time, through the virtual link authority management mechanism, the forwarded messages are counted, the feature values ​​in the messages are extracted, and the feature value comparison is performed to avoid repeated forwarding of the same message;

[0023] The virtual link authority management mechanism performs data monitoring and management based on CRC, IP or MAC on non-data communication messages on the port connected to the virtual link to ensure that the forwarded data messages are no longer forwarded to avoid network storms.

[0024] Preferably, the virtual link non-forwarding mechanism does not forward valid data communication messages, further comprising:

[0025] During data communication, data received by the port connected to the virtual link is not forwarded to other ports through the virtual link non-forwarding mechanism, while data received by other ports can be forwarded to the port connected to the virtual link.

[0026] Preferably, in step S5, the bus communication module performs fault detection on the normal communication link, further comprising:

[0027] The bus communication module selects a normal communication link to determine whether there is a link failure by comparing the characteristic values ​​of the messages on the communication link and the virtual link or directly determining whether the link is connected;

[0028] The feature value comparison to confirm link failure is to determine whether the communication link is faulty by comparing the CRC cache of the message received by the communication link and the virtual link.

[0029] Based on the same concept, the present invention also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the multi-redundant heterogeneous network identification and operation method based on virtual links as described in the embodiment.

[0030] Based on the same concept, the present invention also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the multi-redundant heterogeneous network identification and operation method based on virtual links as described in the embodiment.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] The present invention forms a multi-redundant heterogeneous hybrid topology including a star network, a linear network, and a ring network through a real-time Ethernet communication module and a gateway module, thereby increasing the rich network topology structure in the industry;

[0033] The present invention increases the redundancy of the multi-redundant topology by adding redundant virtual links to the multi-redundant heterogeneous hybrid topology, so as to realize multi-redundant data transmission and meet the high requirements for network topology reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting the invention.

[0035] Figure 1 It is a flow chart of the method for identifying and operating multiple redundant heterogeneous networks based on virtual links of the present invention;

[0036] Figure 2 This is an example diagram of the method for identifying and operating multiple redundant heterogeneous networks based on virtual links of the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0038] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0039] Example 1

[0040] See also Figure 1 and Figure 2 As shown, this embodiment provides a method for identifying and operating a multi-redundant heterogeneous network based on a virtual link, comprising the following steps:

[0041] S1: In the network system, multiple redundant connections between bus communication modules are realized through virtual links to form a multi-redundant heterogeneous hybrid topology including a ring network, a linear network and a star network, wherein the multi-redundant topology includes a plurality of real-time Ethernet communication modules and a plurality of gateway modules. Specifically, in this embodiment, 11 real-time Ethernet communication modules and 1 gateway module are formed, which are respectively recorded as real-time Ethernet communication module 1, real-time Ethernet communication module 2, real-time Ethernet communication module 3, real-time Ethernet communication module 4, real-time Ethernet communication module 5, real-time Ethernet communication module 6, real-time Ethernet communication module 7, real-time Ethernet communication module 8, real-time Ethernet communication module 9, real-time Ethernet communication module 10, real-time Ethernet communication module 11 and gateway module.

[0042] More preferably, real-time Ethernet communication module 1, real-time Ethernet communication module 2, real-time Ethernet communication module 3, real-time Ethernet communication module 4, real-time Ethernet communication module 5 and the gateway module form a ring-type main network, real-time Ethernet communication module 6, real-time Ethernet communication module 7, real-time Ethernet communication module 8 and the gateway module form a linear slave network, real-time Ethernet communication module 9, real-time Ethernet communication module 10, real-time Ethernet communication module 11 and the gateway module form a star network, wherein the real-time Ethernet communication module 2 and the real-time Ethernet communication module 5, the real-time Ethernet communication module 6 and the real-time Ethernet communication module 8, and the real-time Ethernet communication module 9 and the real-time Ethernet communication module 11 are connected via virtual links, and the real-time Ethernet communication module 4 and the gateway module are connected via communication links.

[0043] S2: After the network system is powered on, the online status of the real-time Ethernet communication module and the gateway module ports is checked in real time. After waiting for a certain period of time or receiving the peer link status information message sent by the peer device, the peer link status information message including its own module type, number of online ports, port number, its own corresponding port and link type is sent.

[0044] S3: The real-time Ethernet communication module receives the peer link status information message sent from the peer device, does not forward the peer link status information message, and determines the link type according to the peer link status information message.

[0045] Preferably, in step S3, judging the link type according to the content of the peer link status information message includes:

[0046] First, determine whether it is connected to the gateway. If it is connected to the gateway, the link type is a communication link. If it is not connected to the gateway, determine whether the opposite device determines the link type, and determine the link type according to the opposite link status information message.

[0047] Preferably, judging whether the peer device determines the link type, and determining the link type according to the peer link status information message, further includes:

[0048] If the peer device has not determined the link type, the link type is determined based on the communication port connected to the peer device;

[0049] If the peer device determines the link type and informs itself through the peer link status information message, it determines the link type according to the link type specified in its own link status information message;

[0050] When the real-time Ethernet communication module receives more than one different peer link status information messages and confirms that it is in a star network, the ports receiving the more than one peer link status information messages are communication links, and the remaining ports are virtual links.

[0051] Preferably, the determining the link type according to the communication port connected to the opposite end device further comprises:

[0052] In a ring network and a linear network, if the real-time Ethernet communication module itself has three online communication ports, if two of the online communication ports receive link status messages from the peer device, it is confirmed as a communication link. If the peer device has a device with three online communication ports or a device with two online communication ports, the link connected to the device with three online communication ports is a virtual link, and the remaining links are communication links, and the link type is sent to the peer device;

[0053] In a linear network, if the real-time Ethernet communication module itself has three online communication ports and the virtual link cannot be determined, the judgment is made according to the characteristic values ​​of the messages received at the respective ports.

[0054] Preferably, the judging according to the message feature values ​​received by the respective ports further comprises:

[0055] When the real-time Ethernet module receives the message characteristic value, the link type is determined according to the time of the received message characteristic value including the static characteristic value and the dynamic characteristic value. If the received one is slow, it is a virtual link, and the others are communication links. The static characteristic values ​​include static characteristics including IP, mac, and priority identifier, and the dynamic characteristic values ​​include dynamic characteristics including message arrival time and the actual number of message communications.

[0056] For real-time Ethernet communication module 1: after power-on, real-time Ethernet communication module 1 learns its two ports, including port 1 and port 2, which are online ports, and sends its own module type, the number of online ports of its own module, and the port number to the peer device through the two connected ports; at the same time, it receives the same type of message sent by the peer device, and it can be known that port 1 is connected to the communication module (that is, connected to port 1 of real-time Ethernet module 2), and the number of online ports of real-time Ethernet module 2 is 3; port 2 is connected to the gateway module, and the number of online ports of real-time Ethernet module 2 is 4, thereby determining that the connection of port 2 is a communication link;

[0057] Real-time Ethernet communication module 2: After power-on, real-time Ethernet communication module 2 learns its own three ports, including port 1, port 2, and port 3, which are online ports, and sends its own module type and the number of online ports of its own module to the opposite device (i.e., real-time Ethernet module 3 connected to port 2 and real-time Ethernet module 5 connected to port 3) through the three connected ports; at the same time, it receives the same type of messages sent by the opposite device, and it can be known that the communication modules connected to ports 1 and 2 have 2 online ports; the communication module connected to port 3 has 3 online ports, so it is determined that the link connected to port 3 is a virtual link, and the link connected to ports 1 and 2 is a communication link.

[0058] At this time, the module sends the link judgment result to the opposite module, and the sending content adds port 1 and port 2 of the real-time Ethernet communication module 2 as communication links, and port 3 as a virtual link; real-time Ethernet communication module 1 and real-time Ethernet communication module 3 determine that port 1 connected to them is a communication link; real-time Ethernet communication module 5 determines that its own port 3 is a virtual link.

[0059] Real-time Ethernet communication module 5: After power-on, the real-time Ethernet communication module 5 learns its three online ports, including port 1, port 2, and port 3, and sends its own module type and the number of online module ports to the opposite device through the three connected ports; at the same time, it receives the same type of messages sent by the opposite device, and it can be known that port 2 is connected to the gateway module, and the number of its online ports is 4; port 1 and port 3 are connected to the communication module, and the number of its online ports is 2, and port 3 is determined to be a virtual link, thereby determining that the link connected by port 1 and port 2 is a communication link, and sending the link result to real-time Ethernet communication module 2 and real-time Ethernet communication module 4.

[0060] Real-time Ethernet communication module 3, real-time Ethernet communication module 4: after power-on, real-time Ethernet communication module 3 and real-time Ethernet communication module 4 learn that their two ports, including port 1 and port 2, are online, and send their own module type, the number of online ports of their own module, and the port number to the opposite device through the two connected ports; at the same time, receiving the same type of message sent by the opposite device, it can be known that the communication module connected to port 1 has 2 online ports; the communication module connected to port 2 has 2 online ports, and it is determined that the connection between port 1 and port 2 is a communication link;

[0061] Real-time Ethernet communication module 6: After power-on, it is learned that its three ports, including port 1, port 2, and port 3, are online, and its own module type, the number of its own module ports online, and the port number are sent to the opposite device through the two connected ports; at the same time, it receives the same type of messages sent by the opposite device, and it can be known that ports 2 and 3 are connected to the communication module, and the number of their online ports is 2; port 1 is connected to the gateway module, and the number of its online ports is 4, thereby determining that the connection link of port 1 is a communication link;

[0062] Real-time Ethernet communication module 7, real-time Ethernet communication module 8: after power-on, real-time Ethernet communication module 7 and real-time Ethernet communication module 8 learn that their two ports, including port 1 and port 2, are online, and send their own module type, the number of their own module ports online, and the port number to the opposite device through the two connected ports; at the same time, receiving the same type of message sent by the opposite device, it can be known that port 2 is connected to the communication module, and the number of its ports online is 2; port 1 is connected to the communication module, and the number of its ports online is 3, thereby determining that the connection of each port 2 is a communication link;

[0063] At this time, port 2 and port 3 of the real-time Ethernet communication module 6 receive the message sent by the real-time Ethernet communication module 7 and the real-time Ethernet communication module 8. Since the two have the same status, the real-time Ethernet communication module 6 finally determines according to the IP address in the received message that the connection of its own port 2 is a communication link and the connection of port 3 is a virtual link. At the same time, the result is notified to the real-time Ethernet communication module 7 and the real-time Ethernet communication module 8 through the message. The real-time Ethernet communication module 7 receives the message and determines that the connection of its own port 1 is a communication link; the real-time Ethernet communication module 8 receives the message and determines that the connection of its own port 1 is a virtual link.

[0064] Real-time Ethernet communication module 9, real-time Ethernet communication module 10, real-time Ethernet communication module 11: after power-on, real-time Ethernet communication module 9, real-time Ethernet communication module 10, real-time Ethernet communication module 11 learn that one of their own ports 1 is online, and send their own module type, the number of their own module ports online, and the port number to the opposite device through the connected port; at the same time, receiving the same type of message sent by the opposite device, it can be known that port 1 is connected to the communication module and the gateway module, thereby determining that they are in a star network and connected to the gateway module, and determining that the connection of port 1 is a communication link;

[0065] Real-time Ethernet communication module 9 and real-time Ethernet communication module 11: After determining that their own port 1 is a communication link, the remaining ports are determined as virtual links.

[0066] S4: After determining the link type in the network system, the real-time Ethernet communication module starts the clock synchronization process in the local network, and implements the bus communication module with the virtual link to partially open the data operation permission of the virtual link, so that the corresponding port can perform data communication after completing the basic configuration work. Specifically, in this embodiment, the basic configuration work includes interface type, connection status, connection rate, duplex attribute, link type, etc.

[0067] Preferably, step S4 further includes:

[0068] During the data communication process, the virtual link in the network system does not forward valid data communication messages through the virtual link non-forwarding mechanism. When the normal redundant link is disconnected, the bus communication device that owns the virtual link develops the normal data communication service authority of the virtual link. At the same time, through the virtual link authority management mechanism, the forwarded messages are counted, the feature values ​​in the messages are extracted, and the feature value comparison is performed to avoid repeated forwarding of the same message;

[0069] The virtual link authority management mechanism performs data monitoring and management based on CRC, IP or MAC on non-data communication messages on the port connected to the virtual link to ensure that the forwarded data messages are no longer forwarded to avoid network storms.

[0070] Preferably, the virtual link non-forwarding mechanism does not forward valid data communication messages, further comprising:

[0071] During data communication, data received by the port connected to the virtual link is not forwarded to other ports through the virtual link non-forwarding mechanism, while data received by other ports can be forwarded to the port connected to the virtual link.

[0072] Then the real-time Ethernet communication module starts the clock synchronization process in the local network. At this time, the bus communication module with the virtual link partially opens the data operation rights of the virtual link, and uses the message sequence number and message sending timestamp in the bus message sent by the master clock device to allow it to perform clock synchronization and time synchronization services, ensuring that the port connected to the virtual link can complete the clock synchronization with the master clock device, but the virtual link at this time still does not support the authority to forward normal communication services. When the normal redundant link is disconnected, the bus communication device with the virtual link develops the normal data communication service rights of the virtual link.

[0073] Preferably, the data operation authority of the virtual link further includes:

[0074] The data operation permissions of the virtual link are only open to non-data communication messages of the virtual link.

[0075] S5: Perform fault detection on the normal communication link of the bus communication module. When a fault is detected, start the link fault detection mechanism and switch the virtual link to the communication link.

[0076] Preferably, in step S5, the bus communication module performs fault detection on the normal communication link, further comprising:

[0077] The bus communication module selects a normal communication link to determine whether there is a link failure by comparing the characteristic values ​​of the messages on the communication link and the virtual link or directly determining whether the link is connected;

[0078] The feature value comparison to confirm link failure is to determine whether the communication link is faulty by comparing the CRC cache of the message received by the communication link and the virtual link.

[0079] Example 2

[0080] In some embodiments of the present application, a computer device is also provided, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the multi-redundant heterogeneous network identification and operation method based on virtual links in an embodiment of the present invention.

[0081] The present invention also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of a multi-redundant heterogeneous network identification and operation method based on virtual links in an embodiment of the present invention.

[0082] It is understandable that, for the aforementioned multi-redundant heterogeneous network identification and operation method based on virtual links, if they are all implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0083] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.

[0084] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A method for identifying and operating a multi-redundant heterogeneous network based on a virtual link, characterized in that: The following steps are involved: S1: In the network system, multiple redundant connections between bus communication modules are realized through virtual links to form a multiple redundant heterogeneous hybrid topology including a ring network, a linear network and a star network, wherein the multiple redundant heterogeneous hybrid topology includes a plurality of real-time Ethernet communication modules and a plurality of gateway modules; S2: After the network system is powered on, the online status of the real-time Ethernet communication module and the gateway module port is checked in real time, and after waiting for a certain period of time or receiving the peer link status information message sent by the peer device, the self-link status information message including the self-module type, the number of online ports, the port number, the self-corresponding port and the link type is sent; S3: the real-time Ethernet communication module receives the peer link status information message sent from the peer device, does not forward the peer link status information message, and determines the link type according to the peer link status information message; S4: After determining the link type in the network system, the real-time Ethernet communication module starts the clock synchronization process in the local network, and partially opens the data operation rights of the bus communication module with the virtual link to the virtual link, so that the corresponding port can perform data communication after completing the basic configuration work; S5: performing fault detection on the normal communication link of the bus communication module, and when a fault is detected, starting a link fault detection mechanism to switch the virtual link to the communication link; Wherein, in step S3, judging the link type according to the content of the peer link status information message includes: First, determine whether it is connected to the gateway. If it is connected to the gateway, the link type is a communication link. If it is not connected to the gateway, determine whether the opposite device determines the link type, and determine the link type according to the opposite link status information message.

2. The method for identifying and operating a multi-redundant heterogeneous network based on a virtual link according to claim 1, characterized in that: Determining whether the peer device determines the link type, and determining the link type according to the peer link status information message, further includes: If the peer device has not determined the link type, the link type is determined based on the communication port connected to the peer device; If the peer device determines the link type and informs itself through the peer link status information message, it determines the link type according to the link type specified in its own link status information message; When the real-time Ethernet communication module receives more than one different peer link status information messages and confirms that it is in a star network, the ports receiving the more than one peer link status information messages are communication links, and the remaining ports are virtual links.

3. The method for identifying and operating a multi-redundant heterogeneous network based on a virtual link according to claim 2, characterized in that: The step of determining the link type according to the communication port connected to the opposite end device further includes: In a ring network and a linear network, if the real-time Ethernet communication module itself has three online communication ports, if two of the online communication ports receive link status messages from the peer device, it is confirmed as a communication link. If the peer device has a device with three online communication ports or a device with two online communication ports, the link connected to the device with three online communication ports is a virtual link, and the remaining links are communication links, and the link type is sent to the peer device; In a linear network, if the real-time Ethernet communication module itself has three online communication ports and the virtual link cannot be determined, the judgment is made according to the characteristic values ​​of the messages received at the respective ports.

4. The method for identifying and operating a multi-redundant heterogeneous network based on a virtual link according to claim 3 is characterized in that: The step of judging according to the characteristic values ​​of the messages received by the respective ports further includes: When the real-time Ethernet communication module receives the message characteristic value, the link type is determined according to the time of the received message characteristic value including the static characteristic value and the dynamic characteristic value. If the received one is slow, it is a virtual link, and the others are communication links. The static characteristic value includes static characteristics including IP, mac, and priority identifier, and the dynamic characteristic value includes dynamic characteristics including message arrival time and the actual number of message communications.

5. The method for identifying and operating multiple redundant heterogeneous networks based on virtual links according to claim 4 is characterized in that: Step S4 also includes: During the data communication process, the virtual link in the network system does not forward valid data communication messages through the virtual link non-forwarding mechanism. When the normal redundant link is disconnected, the bus communication device that owns the virtual link develops the normal data communication service authority of the virtual link. At the same time, through the virtual link authority management mechanism, the forwarded messages are counted, the feature values ​​in the messages are extracted, and the feature value comparison is performed to avoid repeated forwarding of the same message; The virtual link authority management mechanism performs data monitoring and management based on CRC, IP or MAC on non-data communication messages on the port connected to the virtual link to ensure that the forwarded data messages are no longer forwarded to avoid network storms.

6. The method for identifying and operating multiple redundant heterogeneous networks based on virtual links according to claim 5 is characterized in that: The virtual link non-forwarding mechanism does not forward valid data communication messages, further comprising: During data communication, data received by the port connected to the virtual link is not forwarded to other ports through the virtual link non-forwarding mechanism, while data received by other ports can be forwarded to the port connected to the virtual link.

7. The method for identifying and operating multiple redundant heterogeneous networks based on virtual links according to claim 6 is characterized in that: In step S5, the bus communication module performs fault detection on the normal communication link, further comprising: The bus communication module selects a normal communication link by comparing the characteristic values ​​of the messages on the communication link and the virtual link or directly judging whether the link is connected to determine whether the link is faulty; The feature value comparison to confirm link failure is to determine whether the communication link is faulty by comparing the CRC cache of the message received by the communication link and the virtual link.

8. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the method for identifying and operating multiple redundant heterogeneous networks based on virtual links as described in any one of claims 1 to 7.

9. A storage medium storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the method for identifying and operating multiple redundant heterogeneous networks based on virtual links according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Identification method, recognition method and equipment for link types

    CN101753413A

  • Topology discovery method for virtual switch system

    CN104821917A