CN110380916B - Self-adaptive switching Ethernet cross redundancy backup system and method - Google Patents
Self-adaptive switching Ethernet cross redundancy backup system and method Download PDFInfo
- Publication number
- CN110380916B CN110380916B CN201910793175.5A CN201910793175A CN110380916B CN 110380916 B CN110380916 B CN 110380916B CN 201910793175 A CN201910793175 A CN 201910793175A CN 110380916 B CN110380916 B CN 110380916B
- Authority
- CN
- China
- Prior art keywords
- optical fiber
- physical channel
- fiber physical
- backup
- ethernet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
- H04L41/0836—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
Abstract
The invention provides a self-adaptive switching Ethernet cross redundancy backup system and a self-adaptive switching Ethernet cross redundancy backup method, wherein the self-adaptive switching Ethernet cross redundancy backup system comprises a master circuit and a backup circuit which are independently powered; the main circuit and the backup circuit both comprise a redundancy control module; the master circuit also comprises an optical fiber physical channel M _ A and an optical fiber physical channel M _ B; the backup circuit also comprises an optical fiber physical channel S _ A and an optical fiber physical channel S _ B; the optical fiber physical channel M _ A and the optical fiber physical channel S _ A are both connected with a network switch master, and the optical fiber physical channel M _ B and the optical fiber physical channel S _ B are both connected with a network switch backup; and the redundancy control module is used for realizing the self-adaptive switching of each optical fiber physical channel. The invention improves the reliability of the interface circuit and the topology, and is suitable for the high-reliability application fields of space navigation and the like; the self-adaptive switching can be carried out when the link has problems, the real-time performance, flexibility and effectiveness of switching are improved, and the phenomenon that a large amount of data is lost due to link interruption in the switching process is avoided.
Description
Technical Field
The present invention relates to the field of network technologies, and in particular, to a system and a method for ethernet cross redundancy backup with adaptive switching.
Background
The ethernet, as a commercial mature bus technology, has many advantages of flexible topology structure, large throughput, supporting optical fiber transmission, and the like. In aerospace applications, the primary problem facing ethernet technology is how to improve the reliability of the ethernet interface. In the high-reliability application field of aerospace and the like, in order to improve the reliability of a system interface, a method of cross redundancy backup on hardware is generally adopted. The traditional backup mode of multi-purpose physical layers of interfaces such as LVDS, RS422 and the like directly connects main and backup interface signals together through an internal connector and an interface chip, and performs main-standby switching through instructions.
In the current industrial field, a redundant backup network port for reliable application generally directly adopts a mode of parallel work of a plurality of network cards to improve reliability, so that the consideration of the connection topology reliability of a system layer is lacked. In the network port switching method, switching is usually performed based on the link state of the PHY chip or switching of application layer software. The switching time of the application layer switching is long, the real-time performance is low, and a large amount of data is inevitably lost in the switching process; although the switching instantaneity is improved by physical layer switching, switching is carried out simply by judging the on-off state of a physical link, so that the switching criterion is single, and the effectiveness and flexibility of link detection and switching are lower.
Therefore, for special requirements of high-reliability aerospace applications, an ethernet backup circuit and a switching control method which are flexible and effective and have high system interconnection reliability and high real-time performance are still lacking at present.
Disclosure of Invention
In view of the defects in the prior art, the present invention aims to provide an adaptive switching ethernet cross redundancy backup system and method.
In a first aspect, the present invention provides an adaptive switching ethernet cross redundancy backup system, including: the backup circuit is connected with the main circuit; the main circuit and the backup circuit both comprise a redundancy control module; the master circuit further comprises an optical fiber physical channel M _ A and an optical fiber physical channel M _ B; the backup circuit also comprises an optical fiber physical channel S _ A and an optical fiber physical channel S _ B; the optical fiber physical channel M _ A and the optical fiber physical channel S _ A are both connected with a network switch master, and the optical fiber physical channel M _ B and the optical fiber physical channel S _ B are both connected with a network switch backup; the network switch adopts a hot backup mode; the redundancy control module is used for realizing self-adaptive switching of each optical fiber physical channel.
Optionally, the redundancy module is specifically configured to:
if the optical fiber physical channel M _ A has a fault, automatically switching to the optical fiber physical channel M _ B; if the optical fiber physical channel M _ B fails, automatically switching to the optical fiber physical channel M _ A;
if the optical fiber physical channel M _ A and the optical fiber physical channel M _ B both have faults, the optical fiber physical channel M _ A and the optical fiber physical channel M _ B can be switched to a backup circuit under the control of the main/standby circuit switching module and automatically switched to the optical fiber physical channel S _ A; if the optical fiber physical channel S _ A has a fault, the optical fiber physical channel S _ B is automatically switched to.
Optionally, the optical fiber physical channel M _ a includes a photoelectric conversion module U1M _ A, PHY chip U2M _ A, MAC controller U3M _ a which are sequentially connected in a communication manner; the MAC controller U3M _ A is in communication connection with a redundant control module U4M;
the optical fiber physical channel M _ B comprises a photoelectric conversion module U1M _ B, PHY chip U2M _ B, MAC controller U3M _ B which are sequentially connected in a communication mode; the MAC controller U3M _ B is in communication connection with a redundant control module U4M;
the optical fiber physical channel S _ A comprises a photoelectric conversion module U1S _ A, PHY chip U2S _ A, MAC controller U3S _ A which are sequentially connected in a communication manner; the MAC controller U3S _ A is in communication connection with a redundant control module U4S;
the optical fiber physical channel S _ B comprises a photoelectric conversion module U1S _ B, PHY chip U2S _ B, MAC controller U3S _ B which are sequentially connected in a communication mode; the MAC controller U3S _ B is communicatively coupled to a redundant control module U4S.
Optionally, the master circuit further comprises: user logic U5M and link state telemetry processing module U6M; wherein the MAC controller U3M _ A, the MAC controller U3M _ B, the redundancy control module U4M, the user logic U5M, and the link state telemetry processing module U6M are implemented by programmable logic devices;
the backup circuit further comprises: user logic U5S and link state telemetry processing module U6S; wherein the MAC controller U3S _ a, the MAC controller U3S _ B, the redundant control module U4S, the user logic U5S, and the link state telemetry processing module U6S are implemented by programmable logic devices.
Optionally, the photoelectric conversion module U1M _ a, the photoelectric conversion module U1M _ B, the photoelectric conversion module U1S _ a, and the photoelectric conversion module U1S _ B are configured to perform conversion between a high-speed serial differential electrical signal and an optical signal suitable for optical fiber transmission;
the PHY chip U2M _ A, the PHY chip U2M _ B, the PHY chip U2S _ A and the PHY chip U2S _ B are used for realizing an Ethernet physical layer standard defined by IEEE802.3 and supporting a 1000BASE-X optical fiber interface;
the MAC controller U3M _ A, the MAC controller U3M _ B, the MAC controller U3S _ A and the MAC controller U3S _ B are used for realizing Ethernet data link layer control standard defined by IEEE 802.3;
the redundancy control module U4M and the redundancy control module U4S are used for realizing adaptive switching between optical fiber physical channels and shielding the backup function of an Ethernet physical layer for upper layer user logic;
the user logic U5M and the user logic U5S are used for realizing high-level TCP/IP protocol processing and other functions customized by users;
the link state telemetry processing module U6M and the link state telemetry processing module U6S are configured to package and download the generated telemetry data according to the link state information provided by the redundancy control module U4M and the redundancy control module U4S, so that a ground control center or a satellite device controls power switches of a master circuit and a backup circuit according to the telemetry information, and performs switching control on the master circuit and the backup circuit.
In a second aspect, the present invention provides an adaptively switched ethernet cross redundancy backup method, which is applied in the adaptively switched ethernet cross redundancy backup system described in any one of the first aspects, and the method includes:
s1: after the master circuit or the backup circuit is powered on, the master circuit or the backup circuit is switched to a default optical fiber physical channel, a timing counter is started, and the overflow time threshold of the counter is TovStep S2 is executed;
s2: reading the state of a physical layer (PHY) chip, judging whether the optical fiber physical channel is disconnected, if so, executing a step S4, and if not, executing a step S3;
s3: judging whether an Ethernet packet is received, if so, executing the step S5; if the ethernet packet is not received, determining whether the counting time of the counter exceeds a threshold value Tov, if so, executing step S4, and if not, returning to execute step S2;
s4: switching to another fiber physical channel and returning to execute the step S2;
s5: performing error frame check on the data in the Ethernet packet, calculating an error frame rate according to a check result, and returning to execute the step S4 if the error frame rate reaches a threshold value Pe; if the frame error rate does not reach the threshold, go to step S6;
s6: checking the data type and the validity of the Ethernet packet, calculating the frame error rate according to the checking result, and returning to execute the step S4 if the frame error rate reaches the threshold value Pm; if the frame error rate does not reach the threshold Pm, the process returns to step S2.
Optionally, the overflow time threshold Tov, the frame error rate threshold Pe, and the frame error rate threshold Pm are adjustable parameters.
Optionally, the error frame check refers to: and based on CRC in the Ethernet frame format, the method is used for performing CRC calculation on each received Ethernet packet according to the protocol, comparing the calculation result with the CRC area in the packet, and if the calculation result is different from the CRC area in the packet, judging that the corresponding frame is an error frame.
Optionally, the frame error check is to: and based on the Ethernet frame format and type check, if the Ethernet frame format and type are not in accordance with the preset conditions, judging that the corresponding frame is a wrong frame.
Compared with the prior art, the invention has the following beneficial effects:
the self-adaptive switching Ethernet cross redundancy backup system provided by the invention has the advantages that the internal dual-channel backup of the main and standby circuits and the cross connection backup between the main and standby circuits are arranged, so that the reliability of the interface circuit and the topology is greatly improved, and the self-adaptive switching Ethernet cross redundancy backup system is suitable for high-reliability application fields such as space navigation. The invention can carry out self-adaptive switching when the link has problems, does not need to manually send instructions for switching, has nanosecond switching time, greatly improves the real-time property, flexibility and effectiveness of switching, and avoids a great deal of data loss caused by link interruption in the switching process.
In addition, in an alternative scheme, the self-adaptive switching of the invention is realized by a redundancy control module, and the module provides a uniform network layer interface for upper layer users, so that the bottom layer switching is transparent to the upper layer users, the design of the original user layer is not required to be changed, and the migration and realization of user logic are facilitated; the MAC controller, the redundancy control module, the user logic and other key modules are all realized in the FPGA, so that the FPGA-based high-reliability data transmission system has high flexibility, portability and expandability, can adopt a high-grade radiation-resistant FPGA chip to be matched with reliability reinforcement measures such as readback refreshing and the like, and is suitable for application in high-reliability fields such as space navigation and the like.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a schematic block diagram of an adaptive switching Ethernet cross redundancy backup system provided by the present invention;
FIG. 2 is a functional block diagram of a redundant control module provided by the present invention;
fig. 3 is a schematic flow chart of an ethernet cross redundancy backup method with adaptive switching according to the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that variations and modifications can be made by persons skilled in the art without departing from the concept of the invention. All falling within the scope of the present invention.
FIG. 1 is a schematic block diagram of an adaptive switching Ethernet cross redundancy backup system provided by the present invention; as shown in fig. 1, a master circuit and a backup circuit may be included, where the master circuit includes a fiber physical channel M _ a and a fiber physical channel M _ B; the backup circuit comprises an optical fiber physical channel S _ A and an optical fiber physical channel S _ B; the optical fiber physical channel M _ A and the optical fiber physical channel S _ A are both connected with the network switch master, and the optical fiber physical channel M _ B and the optical fiber physical channel S _ B are both connected with the network switch backup. Both switches adopt a hot backup mode.
Referring to fig. 1, the master circuit and the backup circuit are designed by identical hardware, and the master circuit and the backup circuit mainly include a photoelectric conversion module, a PHY chip, an MAC controller, a redundancy control module, a user logic, and other functional modules. Each fibre channel implements 1-drop standard 1000BASE-X fibre ethernet interface processing.
Specifically, the master circuit includes: the photoelectric conversion module U1M _ A/U1M _ B, PHY chip U2M _ A/U2M _ B, MAC controller U3M _ A/U3M _ B, redundant control module U4M, user logic U5M and link state telemetry processing module U6M. The backup circuit includes: the photoelectric conversion module U1S _ A/U1S _ B, PHY chip U2S _ A/U2S _ B, MAC controller U3S _ A/U3S _ B, redundant control module U4S, user logic U5S and link state telemetry processing module U6S. The MAC controller, the redundant control module, the user logic and link state telemetry processing module are implemented by a programmable logic device (FPGA). Optionally, a high-grade radiation-resistant FPGA chip can be adopted to match with reinforcement measures such as readback refreshing and the like to improve the reliability of the system, and the method is suitable for aerospace application.
In the embodiment, the photoelectric conversion module is used for realizing photoelectric signal conversion and completing conversion between a high-speed serial differential electrical signal and an optical signal suitable for optical fiber transmission, and the transmission rate of the optical module is not lower than 1.25 Gbps; the PHY chip is used for realizing an Ethernet physical layer protocol, accords with the Ethernet physical layer standard defined by IEEE802.3, and supports a 1000BASE-X optical fiber interface. The MAC controller implements Ethernet link layer protocol processing, conforming to the Ethernet data link layer control standard defined by IEEE 802.3. The redundancy control module realizes the self-adaptive switching among 2 network channels and shields the backup function of the Ethernet physical layer for the upper layer user logic. User logic implements high level TCP/IP protocol processing and user defined other functions. The link state remote sensing processing module generates corresponding remote sensing according to the link state information provided by the redundancy control module to package and download, and the ground control center or the satellite equipment controls the power switch of the main and standby circuits according to the remote sensing information, so that the main and standby circuits are switched and controlled.
In this embodiment, a differential serial signal is used between the photoelectric conversion module and the PHY chip; and a GMII/RGMII standard communication interface is adopted between the PHY chip and the MAC controller. The same standard network layer interface is adopted between the MAC controller and the redundancy control module and between the redundancy control module and the user logic. And the redundancy control module automatically makes a decision according to the link state of the PHY chip of the physical layer and the data detection condition of the link layer, and adaptively switches to another channel when the link has a problem or is interrupted.
In this embodiment, the redundancy control module includes a data cache and a switching protection module, the redundancy control module provides a single interface for upper layer user logic, and a standard network layer clock, data, enable and control interface is used, so that continuity and stability of a data packet are guaranteed in a switching process, and a network port switching process is transparent relative to a user layer.
Optionally, a differential serial signal is adopted between the photoelectric conversion module and the PHY chip, and includes two groups of signals, namely TX +, TX- (transmitting), RX +, and RX- (receiving), and the two groups of signals are usually connected in an ac coupling manner by adopting a CML level; and a GMII/RGMII standard communication interface is adopted between the PHY chip and the MAC controller, and a transmission interface comprises TX _ CLK, TX _ DATA [ 7: 0, TX _ ERR, TX _ EN signals, the receive interface includes RX _ CLK, RX _ DATA [ 7: 0], RX _ ERR, RX _ EN signals; the MAC controller and the redundancy control module, and the redundancy control module and the user logic adopt the same standard network layer interface.
In this embodiment, the redundancy control module makes an automatic decision according to the link state of the PHY chip of the physical layer and the data detection condition of the link layer, and adaptively switches to another channel when the link is in a problem or an interruption, without human instruction intervention. Two optical fiber network channels in the master or backup circuit work simultaneously, and the switch adopts a hot backup mode, so that network connection does not need to be interrupted when the redundant control module switches the link, and data communication can be established quickly.
Specifically, initially, the master circuit is powered up, the M _ a channel of the fiber physical channel is connected to the master of the network switch, and the M _ B channel of the fiber physical channel is connected to the backup of the network switch. Because the network switch is hot standby, the fiber physical channel M _ A and the fiber physical channel M _ B are both in Ethernet data communication. The redundancy control module initially selects data of only one channel (default to M _ A), shields the data of the other channel, and the user logic establishes data communication with the network switch master through the fiber physical channel M _ A. In the communication process, if the optical fiber physical channel M _ A fails, and the generated communication error frame, the frame error number or the communication interruption time reaches the switching threshold value of the redundancy control module, the redundancy control module automatically shields the data of the optical fiber physical channel M _ A and switches the data to the optical fiber physical channel M _ B, so that the user logic establishes data communication with the network switch backup through the optical fiber physical channel M _ B. This switching process is transparent to the user layer since the link layer item user layer provides a uniform network layer interface.
Further, when the communication of the fiber physical channel M _ B fails, the redundancy control module switches to the fiber physical channel M _ A again based on the same strategy. Meanwhile, the link state telemetry processing module packs and downloads the switching state, and the ground control center or the on-satellite equipment controls the power switch of the main and standby circuits according to the telemetry information, so that the main and standby circuits are switched and controlled. When two channels of the primary circuit have faults, the power circuit can autonomously decide to switch to the backup circuit according to the use environment. At the moment, the master circuit is powered off, the backup circuit is powered on, the optical fiber physical channel S _ A is connected with the master of the network switch, and the optical fiber physical channel S _ B is connected with the backup of the network switch and is respectively used for establishing data communication with the master backup machine of the network switch. Similarly, in the communication process, if the optical fiber physical channel S _ A or the optical fiber physical channel S _ B fails, the redundancy control module in the backup circuit automatically switches between the two channels.
In this embodiment, the same master circuit and backup circuit are used to implement the redundant backup of the network interface, and the two independent physical channels included in the master circuit and backup circuit are used to implement the cross backup of the network interface, so that any two master and backup interfaces between the interface circuit and the switch can perform network communication, thereby greatly improving the reliability of the topology structure.
FIG. 2 is a functional block diagram of a redundant control module provided by the present invention; as shown in fig. 2, the method mainly includes functional modules such as interface processing, data caching, data decision, link selection, and timer. The network data transceiving process is as follows:
(1) when the network data is received, the data is stored in the data cache after being processed by the link layer interface, the link selection module reads the data from the cache corresponding to the current working channel and sends the data to the user interface cache, and finally the data is output to the user layer through the user interface processing module. When data is received, the data judgment module can carry out frame error and frame error detection on the data, meanwhile, a timer is started to count, and the link selection module decides whether to switch channels according to the data detection result and the timer state.
(2) When the network data is sent, the data is received by the user interface processing module and stored in the cache, the link selection module reads the data from the cache, writes the data into the data cache corresponding to the current working channel, and finally the data is sent to the link layer by the link layer interface processing module.
The redundancy control module isolates the user layer and the link layer, so that the physical switching process below the link layer is transparent to the user layer, and the smoothness of the switching process is ensured through the cache and the switching logic inside the module, and the disorder and the loss of data can not be caused.
FIG. 3 is a schematic flow chart of a method for cross-redundancy backup of Ethernet by adaptive switching according to the present invention; as shown in fig. 3, the control method of the redundant control module includes the steps of:
s1: after the circuit is powered on, the redundancy control module is switched to a default network channel, a timing counter is started, the overflow time threshold of the counter is Tov, and the step S2 is skipped;
s2: reading the state of the physical layer PHY chip, judging whether a LINK is disconnected (namely LINK DOWN), if disconnected, jumping to the step S4, and if not disconnected, jumping to the step S3;
s3: judging whether an Ethernet packet is received, and if the Ethernet packet is received, jumping to the step S5; if the ethernet packet is not received, determining whether the counting time of the timer counter exceeds the threshold value Tov (i.e. overflow), if so, jumping to step S4, otherwise, jumping to step S2;
s4: the redundancy control module switches to another network channel and jumps to step S2;
s5: performing error frame check on the data, calculating an error frame rate according to a check result, and jumping to the step S4 if the error frame rate reaches a threshold value Pe; if the frame error rate does not reach the threshold, go to step S6;
s6: checking the type and the validity of the Ethernet data, calculating the frame error rate according to the checking result, and jumping to the step S4 if the frame error rate reaches the threshold value Pm; if the frame error rate does not reach the threshold Pm, the process goes to step S2.
Three parameters of overflow time threshold value Tov, error frame rate threshold value Pe and error frame rate threshold value Pm are variable parameters, and in a certain aerospace model, Tov is set to be 1s, and Pe is set to be 10-8,Pm=10-12And the higher reliability of the physical link is ensured.
In this embodiment, the overflow time threshold Tov, the frame error rate threshold Pe, and the frame error rate threshold Pm are variable parameters, and may be determined comprehensively according to the application environment and the use requirement of a specific system.
In this embodiment, the error frame check is based on CRC check in an ethernet frame format, CRC calculation is performed on each received ethernet packet according to a protocol, a calculation result is compared with a CRC area in the packet, and if the calculation result is not the same as the CRC area in the packet, the frame is determined to be an error frame.
Specifically, the computational polynomial is: g (x) ═ x32+ x26+ x23+ x22+ x16+ x12+ x11+ x10+ x8+ x7+ x5+ x4+ x2+ x1+ x0, and the calculation result is compared with the CRC area in the packet, and if the calculation result is not the same as the CRC area, the frame is determined to be an error frame.
In this embodiment, the error frame check is based on the ethernet frame format and the type check, and is performed by using field information such as "type/frame length" and "physical address" in the ethernet frame format, and if the field information does not meet a preset condition, the frame is determined to be an error frame. Wherein the preset conditions are as follows:
(1) the source physical address or the destination physical address does not match the specified value;
(2) the length of the received data packet is less than 64 bytes;
(3) when the field of the frame length is between 0x0000 and 0x002D, the shortest frame filling is not carried out according to the requirement of the protocol;
(4) when the "frame length" field is between 0x002E and 0x0600, but the actual frame length is not consistent with the field indication;
(5) the "type" field is a value other than 0x0806(ARP packet) and 0x0800(IP packet).
It should be noted that, the steps in the adaptively switched ethernet cross redundancy backup method provided in the present invention may be implemented by using corresponding modules, devices, units, and the like in the adaptively switched ethernet cross redundancy backup system, and those skilled in the art may refer to the technical solution of the system to implement the step flow of the method, that is, the embodiment in the system may be understood as a preferred example for implementing the method, and will not be described herein again.
Those skilled in the art will appreciate that, in addition to implementing the system and its various devices provided by the present invention in purely computer readable program code means, the method steps can be fully programmed to implement the same functions by implementing the system and its various devices in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system and various devices thereof provided by the present invention can be regarded as a hardware component, and the devices included in the system and various devices thereof for realizing various functions can also be regarded as structures in the hardware component; means for performing the functions may also be regarded as structures within both software modules and hardware components for performing the methods.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.
Claims (8)
1. An adaptively switched ethernet cross-redundancy backup system, comprising: the backup circuit is connected with the main circuit; the main circuit and the backup circuit both comprise a redundancy control module; the master circuit further comprises an optical fiber physical channel M _ A and an optical fiber physical channel M _ B; the backup circuit also comprises an optical fiber physical channel S _ A and an optical fiber physical channel S _ B; the optical fiber physical channel M _ A and the optical fiber physical channel S _ A are both connected with a network switch master, and the optical fiber physical channel M _ B and the optical fiber physical channel S _ B are both connected with a network switch backup; the network switch adopts a hot backup mode; the redundancy control module is used for realizing self-adaptive switching of each optical fiber physical channel;
the redundancy control module is specifically configured to:
if the optical fiber physical channel M _ A has a fault, automatically switching to the optical fiber physical channel M _ B; if the optical fiber physical channel M _ B fails, automatically switching to the optical fiber physical channel M _ A;
if the optical fiber physical channel M _ A and the optical fiber physical channel M _ B both have faults, switching to a backup circuit under the control of the main/standby circuit switching module, and automatically switching to the optical fiber physical channel S _ A; if the optical fiber physical channel S _ A has a fault, the optical fiber physical channel S _ B is automatically switched to.
2. The adaptive switching Ethernet cross redundancy backup system of claim 1,
the optical fiber physical channel M _ A comprises a photoelectric conversion module U1M _ A, PHY chip U2M _ A, MAC controller U3M _ A which are sequentially connected in a communication manner; the MAC controller U3M _ A is in communication connection with a redundant control module U4M;
the optical fiber physical channel M _ B comprises a photoelectric conversion module U1M _ B, PHY chip U2M _ B, MAC controller U3M _ B which are sequentially connected in a communication mode; the MAC controller U3M _ B is communicatively connected with a redundant control module U4M;
the optical fiber physical channel S _ A comprises a photoelectric conversion module U1S _ A, PHY chip U2S _ A, MAC controller U3S _ A which are sequentially connected in a communication manner; the MAC controller U3S _ A is in communication connection with a redundant control module U4S;
the optical fiber physical channel S _ B comprises a photoelectric conversion module U1S _ B, PHY chip U2S _ B, MAC controller U3S _ B which are sequentially connected in a communication mode; the MAC controller U3S _ B is communicatively coupled to a redundant control module U4S.
3. The adaptive switching Ethernet cross-redundancy backup system of claim 2,
the master circuit further comprises: user logic U5M and link state telemetry processing module U6M; wherein the MAC controller U3M _ A, the MAC controller U3M _ B, the redundancy control module U4M, the user logic U5M, and the link state telemetry processing module U6M are implemented by programmable logic devices;
the backup circuit further comprises: user logic U5S and link state telemetry processing module U6S; wherein the MAC controller U3S _ a, the MAC controller U3S _ B, the redundant control module U4S, the user logic U5S, and the link state telemetry processing module U6S are implemented by programmable logic devices.
4. The adaptive switching Ethernet cross redundancy backup system of claim 3,
the photoelectric conversion module U1M _ A, the photoelectric conversion module U1M _ B, the photoelectric conversion module U1S _ A and the photoelectric conversion module U1S _ B are used for performing conversion between a high-speed serial differential electrical signal and an optical signal suitable for optical fiber transmission;
the PHY chip U2M _ A, the PHY chip U2M _ B, the PHY chip U2S _ A and the PHY chip U2S _ B are used for realizing an Ethernet physical layer standard defined by IEEE802.3 and supporting a 1000BASE-X optical fiber interface;
the MAC controller U3M _ A, the MAC controller U3M _ B, the MAC controller U3S _ A and the MAC controller U3S _ B are used for realizing Ethernet data link layer control standard defined by IEEE 802.3;
the redundancy control module U4M and the redundancy control module U4S are used for realizing adaptive switching between optical fiber physical channels and shielding the backup function of an Ethernet physical layer for upper layer user logic;
the user logic U5M and the user logic U5S are used for realizing high-level TCP/IP protocol processing and other functions customized by users;
the link state telemetry processing module U6M and the link state telemetry processing module U6S are configured to package and download the generated telemetry data according to the link state information provided by the redundancy control module U4M and the redundancy control module U4S, so that a ground control center or a satellite device controls power switches of a master circuit and a backup circuit according to the telemetry data, and performs switching control on the master circuit and the backup circuit.
5. An adaptively switched ethernet cross redundancy backup method applied in the adaptively switched ethernet cross redundancy backup system of any one of claims 1 to 4, the method comprising:
s1: after the master circuit or the backup circuit is powered on, switching to a default optical fiber physical channel, starting a timing counter, wherein the overflow time threshold of the counter is Tov, and executing step S2;
s2: reading the state of a physical layer (PHY) chip, judging whether the optical fiber physical channel is disconnected, if so, executing a step S4, and if not, executing a step S3;
s3: judging whether an Ethernet packet is received, if so, executing the step S5; if the ethernet packet is not received, determining whether the counting time of the counter exceeds a threshold value Tov, if so, executing step S4, and if not, returning to execute step S2;
s4: switching to another fiber physical channel and returning to execute the step S2;
s5: performing error frame check on the data in the ethernet packet, performing error frame rate calculation according to the check result, and returning to execute step S4 if the error frame rate reaches a threshold Pe; if the frame error rate does not reach the threshold, go to step S6;
s6: checking the data type and the validity in the Ethernet packet, calculating the frame error rate according to the checking result, and returning to execute the step S4 if the frame error rate reaches the threshold value Pm; if the frame error rate does not reach the threshold Pm, the process returns to step S2.
6. The self-adaptive switching Ethernet cross redundancy backup method according to claim 5, characterized in that the three parameters of the overflow time threshold Tov, the frame error rate threshold Pe and the frame error rate threshold Pm are adjustable parameters.
7. The adaptively switched ethernet cross-redundancy backup method according to claim 5, wherein said error frame check is: and based on CRC in the Ethernet frame format, the method is used for performing CRC calculation on each received Ethernet packet according to the protocol, comparing the calculation result with the CRC area in the packet, and if the calculation result is different from the CRC area in the packet, judging that the corresponding frame is an error frame.
8. The adaptively switched ethernet cross-redundancy backup method according to claim 5, wherein the frame error check refers to: and based on the Ethernet frame format and type check, if the Ethernet frame format and type are not in accordance with the preset conditions, judging that the corresponding frame is a wrong frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910793175.5A CN110380916B (en) | 2019-08-26 | 2019-08-26 | Self-adaptive switching Ethernet cross redundancy backup system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910793175.5A CN110380916B (en) | 2019-08-26 | 2019-08-26 | Self-adaptive switching Ethernet cross redundancy backup system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110380916A CN110380916A (en) | 2019-10-25 |
CN110380916B true CN110380916B (en) | 2022-05-27 |
Family
ID=68260862
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910793175.5A Active CN110380916B (en) | 2019-08-26 | 2019-08-26 | Self-adaptive switching Ethernet cross redundancy backup system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110380916B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111158961B (en) * | 2019-12-28 | 2023-06-23 | 浪潮商用机器有限公司 | Cable redundancy device and cable redundancy method |
CN111654359B (en) * | 2020-06-23 | 2023-08-11 | 中国民用航空总局第二研究所 | Hot standby redundant communication system and method |
CN112526979B (en) * | 2020-12-16 | 2023-06-09 | 中国兵器装备集团自动化研究所 | Serial communication interface diagnosis system and method with multiple redundancy architecture |
CN113300885B (en) * | 2021-05-21 | 2022-04-26 | 湖南兴天电子科技有限公司 | Network switching equipment and method |
CN114024646A (en) * | 2021-10-27 | 2022-02-08 | 中航光电科技股份有限公司 | Satellite-borne wavelength division multiplexing system capable of being redundantly interconnected |
CN114401184B (en) * | 2021-12-07 | 2023-12-22 | 成都市联洲国际技术有限公司 | Network communication equipment and method thereof, electronic equipment and medium |
CN114003441B (en) * | 2021-12-31 | 2022-06-21 | 北京国科天迅科技有限公司 | Hot backup redundancy processing method and device for switch |
CN114124858B (en) * | 2022-01-29 | 2022-05-17 | 飞腾信息技术有限公司 | Control method and control device |
CN115038136B (en) * | 2022-05-25 | 2024-04-09 | 中国科学院国家空间科学中心 | Multi-channel self-adaptive bandwidth switching method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1596539A1 (en) * | 2003-02-21 | 2005-11-16 | Nippon Telegraph and Telephone Corporation | Device and method for correcting a path trouble in a communication network |
CN102684782A (en) * | 2012-05-08 | 2012-09-19 | 成都瑞凌科信息技术有限公司 | Protection device of Ethernet passive optical network (EPON) system and data redundancy backup method and monitoring method |
CN202454072U (en) * | 2012-02-09 | 2012-09-26 | 北京空间机电研究所 | Intersection double-primary-fiber data uploading device of space optical remote sensor |
CN204145498U (en) * | 2014-09-25 | 2015-02-04 | 国家电网公司 | Multi-channel optical fibre communication check warning switching device shifter |
CN106533811A (en) * | 2016-12-30 | 2017-03-22 | 中国电子科技集团公司第三十四研究所 | SDH (Synchronous Digital Hierarchy) based redundant communication system and redundancy protection method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102448095A (en) * | 2012-01-20 | 2012-05-09 | 杭州华三通信技术有限公司 | Dual homing protection method and equipment |
-
2019
- 2019-08-26 CN CN201910793175.5A patent/CN110380916B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1596539A1 (en) * | 2003-02-21 | 2005-11-16 | Nippon Telegraph and Telephone Corporation | Device and method for correcting a path trouble in a communication network |
CN202454072U (en) * | 2012-02-09 | 2012-09-26 | 北京空间机电研究所 | Intersection double-primary-fiber data uploading device of space optical remote sensor |
CN102684782A (en) * | 2012-05-08 | 2012-09-19 | 成都瑞凌科信息技术有限公司 | Protection device of Ethernet passive optical network (EPON) system and data redundancy backup method and monitoring method |
CN204145498U (en) * | 2014-09-25 | 2015-02-04 | 国家电网公司 | Multi-channel optical fibre communication check warning switching device shifter |
CN106533811A (en) * | 2016-12-30 | 2017-03-22 | 中国电子科技集团公司第三十四研究所 | SDH (Synchronous Digital Hierarchy) based redundant communication system and redundancy protection method thereof |
Non-Patent Citations (2)
Title |
---|
"双环冗余工业以太网的研究与设计";肖贺;《中国优秀硕士学位论文全文数据库 信息科技辑》;20120715;全文 * |
佚名."Veritas NetBackup™SAN Client and Fibre Transport Guide".《http://itdoc.hitachi.co.jp/manuals/oem/veritas/JP1V115VERINBU04300/NetBackup81_SANClient_Guide_e.PDF》.2017, * |
Also Published As
Publication number | Publication date |
---|---|
CN110380916A (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110380916B (en) | Self-adaptive switching Ethernet cross redundancy backup system and method | |
KR101025529B1 (en) | Rstp processing method | |
CN104426731B (en) | The method and apparatus that a kind of spanning tree calculates | |
EP3214822B1 (en) | Network on chip, communication control method and controller | |
CN101001165A (en) | Network failure recovery method with redundancy port | |
Tao et al. | A field programmable gate array implemented fibre channel switch for big data communication towards smart manufacturing | |
US9019959B2 (en) | Node, switch, and system | |
CN102880143A (en) | Single control area network (CAN) controller hot-redundant CAN bus system and implementation method thereof | |
CN105406982A (en) | CAN bus double redundancy heat backup method | |
CN105207902A (en) | Main-standby virtual gateway system and method based on SDN | |
CN103441940B (en) | The network equipment is by the switching method, device and the network equipment for state to major state | |
CN103731303A (en) | Method and device of vertical converged framework for achieving multi-active detection | |
US8842574B2 (en) | Energy efficient networking | |
CN107222380A (en) | Support the two-wire EtherCAT method for converting protocol and device of link redundancy | |
CN105005232A (en) | Degradable triple redundancy synchronous voting computer control system and method | |
CN104618057B (en) | A kind of Packet Transport Network not damaged protection reverse method and system | |
CN101951303B (en) | A kind of method and node device realizing bidirectional linear protection switch of multiplex section | |
US20120195186A1 (en) | Method and system for preventing traffic loss caused by wait-to-restore mechanisms in service protection networks | |
CN103036610B (en) | A kind of system for chain type energy storage communication implementation method with redundancy and system | |
CN103684945A (en) | General spacewire node device | |
CN104796287A (en) | Method for detecting faults of looped EPON (Ethernet passive optical networks) | |
CN104199799A (en) | Baud rate self-adaptation method and device based on CPLD | |
CN103095464A (en) | System for reducing power-on and power-off recovery delay of Ethernet shunt network side | |
CN106411616B (en) | A kind of device and method by 1553B bus management ethernet terminal | |
CN202870586U (en) | Single CAN controller hot-redundancy CAN bus system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |