CN115529222B - Dual-redundancy network card switching device based on cascading switch - Google Patents

Dual-redundancy network card switching device based on cascading switch Download PDF

Info

Publication number
CN115529222B
CN115529222B CN202211115392.7A CN202211115392A CN115529222B CN 115529222 B CN115529222 B CN 115529222B CN 202211115392 A CN202211115392 A CN 202211115392A CN 115529222 B CN115529222 B CN 115529222B
Authority
CN
China
Prior art keywords
network
switch
card
network card
working state
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
Application number
CN202211115392.7A
Other languages
Chinese (zh)
Other versions
CN115529222A (en
Inventor
赵昶宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin Jinhang Computing Technology Research Institute
Original Assignee
Tianjin Jinhang Computing Technology Research Institute
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tianjin Jinhang Computing Technology Research Institute filed Critical Tianjin Jinhang Computing Technology Research Institute
Priority to CN202211115392.7A priority Critical patent/CN115529222B/en
Publication of CN115529222A publication Critical patent/CN115529222A/en
Application granted granted Critical
Publication of CN115529222B publication Critical patent/CN115529222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a dual-redundancy network card switching device based on a cascade switch, belonging to the technical field of network communication technology and redundancy management. The invention can monitor the working state of the network switch in real time and select which network card of the network equipment to use for working according to the working state of the network switch; when communication faults occur between network devices, fault reasons can be located timely, namely whether network card faults or network switch faults are located.

Description

Dual-redundancy network card switching device based on cascading switch
Technical Field
The invention belongs to the technical field of network communication and redundancy management, and particularly relates to a dual-redundancy network card switching device based on a cascade switch.
Background
In order to improve the reliability of network transmission in the control system, each network terminal device in the control system adopts a working mode of double redundant network cards, and each network terminal device is connected to a switch for mutual communication. The network device a includes a network card 1 and a network card 2, and the network device B includes a network card 11 and a network card 22. In order to ensure that the dual redundant network cards in the network device a and the network device B work normally, the network card 1 in the network device a is connected to the network switch a, the network card 2 in the network device a is connected to the network switch B, the network card 11 in the network device B is connected to the network switch a, and the network card 22 in the network device B is connected to the network switch B. The network switch a and the network switch B are physically connected through a cascade port.
In the above control system, if the network switch a and the network switch B both work normally, when one network card of the network device a and the network device B fails, the network device a and the network device B can switch to the other network card and perform normal communication. If the network switch A or the network switch B fails, and the network card connected with the failed switch does not detect that the communication link fails, the network device corresponding to the network card cannot be switched to another network card to work, that is, the network device cannot use another network switch to communicate with other network devices, and finally the network device A and the network device B are caused to have communication failure.
Disclosure of Invention
First, the technical problem to be solved
The invention aims to solve the technical problems that: how to solve the problem that the network equipment dual redundancy network card can not be switched normally caused by the failure of the cascade network switch in the existing control system.
(II) technical scheme
In order to solve the technical problems, the invention provides a dual-redundancy network card switching device based on a cascade switch, which comprises two network devices, namely a first network device and a second network device, wherein the first network device can send message data to the first network switch or the second network switch through an Ethernet; the first network switch or the second network switch can send the message data to the second network device through the Ethernet; then, the second network device can send the message data to the first network switch or the second network switch through the Ethernet; finally, the first network switch or the second network switch can send the message data to the first network device through the Ethernet;
Both network devices include:
The first self-checking module is used for detecting which network card has normal link state after the first network equipment and the second network equipment are electrified and working by using one network card with normal link state;
the first acquisition module is used for receiving network message data sent by the first network switch or the second network switch and a working state message of the network switch;
The network card switching module is used for judging whether network card switching is needed according to whether a working state message sent by the first network switch or the second network switch is received or whether the working state of the first network switch or the second network switch is abnormal or not, and if the network card switching is needed, corresponding switching operation is carried out;
The first sending module is used for sending network message data to the first network switch or the second network switch;
Both network switches include:
the second self-checking module is used for detecting the working states of the PHY chip and the switching chip in the first network switch and the second network switch in real time;
the second acquisition module is used for receiving network message data sent by the first network equipment or the second network equipment;
The second sending module is used for sending network message data to the first network equipment or the second network equipment and sending working states of the first network switch and the second network switch to the first network equipment and the second network equipment.
Preferably, the first network device adopts a dual redundancy network card, which is marked as a first network card and a second network card; the first network card is connected to the first network switch through the Ethernet, and the second network card is connected to the second network switch through the Ethernet;
Firstly, starting a first network switch and a second network switch to work, and then starting first network equipment and second network equipment to work;
the second self-checking module is specifically configured to perform self-checking on the PHY chip and the switching chip after the first network switch is powered on, and determine whether the current switch working state is normal by reading the values of the status registers of the chips, where the second sending module periodically sends the current switch working state to the first network device and the second network device;
The first network switch or the second network switch sends the period of the working state of the first network switch or the second network switch to the first network equipment through the Ethernet to be smaller than the minimum value Tmin of the switching time of the double redundant network cards in the first network equipment, and the Tmin is larger than 0;
The first self-checking module in the first network device is specifically configured to: after the first network equipment is powered on, if the working state message of the first network switch is received within the time of not more than 3 Tmin and the working state is normal, indicating that the network communication link between the first network card and the first network switch is normal, using the first network card and the second network equipment for communication; and if the working state message of the second network switch is received within the time of not more than 3 x Tmin and the working state is normal, indicating that the network communication link between the second network card and the second network switch is normal, using the second network card to communicate with the second network device.
Preferably, the network card switching module in the first network device is specifically configured to: if the first network equipment works by using the first network card, in the power-on process, if the working state message sent by the first network switch is not received or the received working state is abnormal for 3 times continuously, indicating that a network communication link between the first network card and the first network switch has a fault; at this time, judging whether the link state of the second network card is normal, if the link state is abnormal, reporting the network card fault by the first network equipment; otherwise, the first network device works by using the second network card; if the second network card continuously receives no working state message sent by the second network switch or the received working state is abnormal in the power-on working process, indicating that a network communication link between the second network card and the second network switch has a fault, reporting the network switch fault; each time duration is the minimum value of the switching time of the dual-redundancy network card of the first network equipment;
if the first network device works by using the second network card, continuously receiving the working state message sent by the second network switch for 3 times or receiving the working state abnormality in the power-on process, and indicating that a network communication link between the second network card and the second network switch has a fault; at this time, judging whether the link state of the first network card is normal, if the link state is abnormal, reporting the network card fault by the first network equipment; otherwise, the first network device works by using the first network card; if the first network card continuously receives no working state message sent by the first network switch or the received working state is abnormal for 3 times in the power-on working process, the network communication link between the first network card and the first network switch is indicated to have faults, and the network switch faults are reported.
Preferably, after the first network device is powered on, the first network card and the second network card are set to the same MAC address, and the link states of the first network card and the second network card are monitored in real time; if the link state of the first network card is normal, setting the current working network card as the first network card; if the link state of the first network card is monitored to be abnormal, judging the link state of the second network card, and if the link state of the second network card is normal, switching the first network equipment to the second network card for working.
Preferably, the first network switch and the second network switch are connected through respective cascading ports.
Preferably, after receiving a data frame sent by a first network device or a second network device from a port, a first network switch or a second network switch reads a source MAC address of the data frame, fills the MAC address and a port corresponding to the MAC address in a MAC address table of the first network switch or the second network switch, and establishes mapping between the MAC address and a switch port;
the first network switch or the second network switch transmits the received network message data to the second network device from a port being used by the second network device through the ethernet.
Preferably, the second network device adopts a dual redundancy network card, which is marked as a third network card and a fourth network card; the third network card is connected to the first network switch through the Ethernet, and the fourth network card is connected to the second network switch through the Ethernet;
The first self-checking module in the second network device is specifically configured to: after the second network switch is powered on, self-checking is carried out on PHY chips and switching chips in the second network switch, whether the working state of the current switch is normal or not is judged by reading the values of the state registers of the chips, and the working state period of the current switch is sent to the first network device and the second network device;
The period of the first network switch or the second network switch sending the working state of the first network switch or the second network switch to the second network equipment through the Ethernet is smaller than the minimum value Tmin of the switching time of the double redundant network cards in the second network equipment, and the Tmin is larger than 0;
After the second network device is powered on, if the working state message of the first network switch is received within the time of not more than 3 Tmin and the working state is normal, which indicates that the network communication link between the third network card and the first network switch is normal, the second network device uses the third network card to communicate with the first network device; and if the working state message of the second network switch is received within the time of not more than 3 x Tmin and the working state is normal, indicating that the network communication link between the fourth network card and the second network switch is normal, the second network device uses the fourth network card to communicate with the first network device.
Preferably, the network card switching module in the second network device is specifically configured to: if the second network device works by using the third network card, continuously receiving the working state message sent by the first network switch for 3 times or receiving the working state abnormality in the power-on process, and indicating that a network communication link between the third network card and the first network switch has a fault; at this time, the second network device judges whether the link state of the fourth network card is normal, if the link state is abnormal, the second network device reports the network card fault; otherwise, the second network device works by using the fourth network card; if the fourth network card continuously receives no working state message sent by the second network switch or the received working state is abnormal in the power-on working process, indicating that a network communication link between the fourth network card and the second network switch has a fault, reporting the network switch fault by the second network equipment;
if the second network device works by using the fourth network card, continuously receiving the working state message sent by the second network switch for 3 times or receiving the working state abnormality in the power-on process, and indicating that a network communication link between the fourth network card and the second network switch has a fault; at this time, the second network device judges whether the link state of the third network card is normal, if the link state is abnormal, the second network device reports the network card fault; otherwise, the second network device works by using the third network card; if the third network card continuously receives no working state message sent by the first network switch or the received working state is abnormal for 3 times in the power-on working process, the network communication link between the third network card and the first network switch is indicated to have faults, and the second network equipment reports the faults of the network switch.
Preferably, after the second network device is powered on, setting the third network card and the fourth network card to the same MAC address, and monitoring the link states of the network card and the fourth network card in real time; if the link state of the third network card is normal, setting the current working network card as the third network card; if the link state of the third network card is monitored to be abnormal, judging the link state of the fourth network card, and if the link state of the fourth network card is normal, switching the second network equipment to the fourth network card for working.
Preferably, the first network switch or the second network switch transmits the received network packet data to the first network device from a port being used by the first network device through the ethernet.
(III) beneficial effects
Compared with the prior art, the invention has the advantages that:
1. The device can monitor the working state of the network switch in real time and select which network card of the network equipment to use for working according to the working state of the network switch;
2. When communication faults occur between network devices, fault reasons can be located timely, namely whether network card faults or network switch faults are located.
Drawings
FIG. 1 is a schematic diagram of network device connections on a cascaded switch;
Fig. 2 is a block diagram of network equipment a and network equipment B in the apparatus of the present invention;
Fig. 3 is a block diagram of a network switch a and a network switch B in the device of the present invention.
Detailed Description
To make the objects, contents and advantages of the present invention more apparent, the following detailed description of the present invention will be given with reference to the accompanying drawings and examples.
The invention provides a dual-redundancy network card switching device based on a cascade switch, which monitors the working state of a network switch in real time and selects which network card of network equipment to use for working according to the working state of the network switch. On the premise of cascading network switches, the device can ensure that when one of two cascading network switches fails, the dual-redundancy network card in the network equipment can still work normally, so that the normal operation of the dual-redundancy network card switching mechanism in each network equipment connected to the network switch can be ensured.
As shown in fig. 1, fig. 2 and fig. 3, the dual-redundancy network card switching device based on the cascade switch provided by the invention has two network devices in a network, namely a network device a and a network device B, wherein the network device a sends message data to the network switch a or the network switch B through an ethernet; the network switch A or the network switch B sends the message data to the network equipment B through the Ethernet; the network equipment B sends the message data to the network switch A or the network switch B through the Ethernet; the network switch A or the network switch B sends the message data to the network equipment A through the Ethernet;
Both network devices include:
The first self-checking module 11 is configured to detect which network card has a normal link state after the network device a and the network device B are powered on, and work with one network card having a normal link state;
The first obtaining module 12 is configured to receive network message data sent by the network switch a or the network switch B and a working state message of the network switch itself;
The network card switching module 13 is configured to determine whether network card switching is required according to whether a working state message sent by the network switch a or the network switch B is received or whether the working state of the network switch a or the network switch B is abnormal, and if network card switching is required, perform corresponding switching operation;
a first sending module 14, configured to send network message data to the network switch a or the network switch B;
Both network switches include:
A second self-checking module 21, configured to detect working states of PHY chips and switching chips in the network switch a and the network switch B in real time;
A second obtaining module 22, configured to receive network message data sent by the network device a or the network device B;
the second sending module 23 is configured to send network packet data to the network device a or the network device B, and send working states of the network switch a and the network switch B to the network device a and the network device B.
The network equipment A adopts a dual-redundancy network card, which is marked as a network card 1 and a network card 2; the network card 1 is connected to the network switch a via ethernet, and the network card 2 is connected to the network switch B via ethernet.
First, network switch a and network switch B are started to operate, and then network device a and network device B are started to operate.
The second self-checking module 21 is specifically configured to perform self-checking on PHY (Physical) chips and switching chips after the network switch a is powered on, and determine whether the current switch operating state is normal by reading the values of the status registers of the chips, where the second sending module 23 periodically sends the current switch operating state to the network device a and the network device B.
The period of sending the working state of the network switch A or the network switch B to the network equipment A through the Ethernet is smaller than the minimum value Tmin (Tmin & gt 0) of the switching time of the double redundant network cards in the network equipment A.
The first self-checking module 11 in the network device a is specifically configured to: after the network equipment A is powered on, if the working state message of the network switch A is received within a specified time (not more than 3 x Tmin) and the working state is normal, indicating that a network communication link between the network card 1 and the network switch A is normal, the network equipment A uses the network card 1 to communicate with the network equipment B; if the working state message of the network switch B is received within a specified time (not more than 3×tmin) and the working state is normal, which indicates that the network communication link between the network card 2 and the network switch B is normal, the network device a uses the network card 2 to communicate with the network device B.
The network card switching module 13 in the network device a is specifically configured to: if the network device a works by using the network card 1, in the power-on working process, if the working state message sent by the network switch a cannot be received or the received working state is abnormal continuously for 3 times (the duration time is the minimum value of the switching time of the dual-redundancy network card of the network device a), indicating that a network communication link between the network card 1 and the network switch a has a fault; at this time, the network device a judges whether the link state of the network card 2 is normal, and if the link state is abnormal, the network device a reports the network card failure; otherwise, the network equipment A works by using the network card 2; if the network card 2 continuously receives no working state message sent by the network switch B or the received working state is abnormal in the power-on working process for 3 times (the duration of each time is the minimum value of the switching time of the dual-redundancy network card of the network equipment A), the network equipment A reports the network switch failure.
If the network device a works by using the network card 2, in the power-on working process, the working state message sent by the network switch B or the received working state abnormality cannot be received continuously for 3 times (the duration time of each time is the minimum value of the switching time of the dual-redundancy network card of the network device a), which indicates that the network communication link between the network card 2 and the network switch B has a fault; at this time, the network device a judges whether the link state of the network card 1 is normal, and if the link state is abnormal, the network device a reports the network card failure; otherwise, the network device a works with the network card 1. If the network card 1 does not receive the working state message sent by the network switch A or the received working state is abnormal in the power-on working process for 3 times continuously (the duration time is the minimum value of the switching time of the dual-redundancy network card of the network equipment A), the network equipment A reports the network switch failure.
After the network equipment A is electrified, setting the network card 1 and the network card 2 to the same MAC (MEDIA ACCESS Control) address, and monitoring the link states of the network card 1 and the network card 2 in real time; if the link state of the network card 1 is monitored to be normal, setting the current working network card as the network card 1; if the link state of the network card 1 is monitored to be abnormal, the link state of the network card 2 is judged, and if the link state of the network card 2 is normal, the network equipment A is switched to the network card 2 to work.
The network switch A and the network switch B are connected through respective cascade ports.
After receiving a data frame sent by network equipment A or network equipment B from a certain port, the network switch A or network switch B reads the source MAC address of the data frame, fills the MAC address and the port corresponding to the MAC address in the MAC address table of the network switch A or the network switch B, and establishes the mapping between the MAC address and the switch port.
The network switch a or the network switch B transmits the received network message data from the port being used by the network device B to the network device B through the ethernet.
The network equipment B adopts a dual-redundancy network card, which is marked as a network card 11 and a network card 22; the network card 11 is connected to the network switch a via ethernet, and the network card 22 is connected to the network switch B via ethernet.
The first self-checking module 11 in the network device B is specifically configured to: after the network switch B is powered on, self-checking is firstly carried out on PHY chips and switching chips in the network switch B, whether the current switch working state is normal or not is judged by reading the values of the chip state registers, and the current switch working state period is sent to the network equipment A and the network equipment B.
The period of sending the working state of the network switch A or the network switch B to the network equipment B through the Ethernet is smaller than the minimum value Tmin (Tmin & gt 0) of the switching time of the double-redundancy network card in the network equipment B.
After the network equipment B is powered on, if the working state message of the network switch A is received within a specified time (not more than 3 x Tmin) and the working state is normal, which indicates that a network communication link between the network card 11 and the network switch A is normal, the network equipment B uses the network card 11 to communicate with the network equipment A; if the working state message of the network switch B is received within a specified time (not more than 3×tmin) and the working state is normal, which indicates that the network communication link between the network card 22 and the network switch B is normal, the network device B uses the network card 22 to communicate with the network device a.
The network card switching module 13 in the network device B is specifically configured to: if the network device B works by using the network card 11, in the power-on process, the network device B continuously receives no working state message sent by the network switch a or the received working state is abnormal for 3 times (the duration time is the minimum value of the switching time of the dual-redundancy network card of the network device B), which indicates that a network communication link between the network card 11 and the network switch a has a fault; at this time, the network device B determines whether the link state of the network card 22 is normal, and if the link state is abnormal, the network device B reports the network card failure; otherwise, the network device B works with the network card 22; if the network card 22 does not receive the working state message sent by the network switch B or the received working state is abnormal in the power-on working process for 3 times continuously (the duration of each time is the minimum value of the switching time of the dual-redundancy network card of the network device B), which indicates that the network communication link between the network card 22 and the network switch B has a fault, the network device B reports the network switch fault.
If the network device B works by using the network card 22, in the power-on process, the network device B continuously receives no working state message sent by the network switch B or the received working state is abnormal for 3 times (the duration is the minimum value of the switching time of the dual-redundancy network card of the network device B), which indicates that the network communication link between the network card 22 and the network switch B has a fault; at this time, the network device B judges whether the link state of the network card 11 is normal, and if the link state is abnormal, the network device B reports the network card failure; otherwise, the network device B works by using the network card 11; if the network card 11 does not receive the working state message sent by the network switch a or the received working state is abnormal in the power-on working process for 3 times continuously (the duration of each time is the minimum value of the switching time of the dual-redundancy network card of the network device B), which indicates that the network communication link between the network card 11 and the network switch a has a fault, the network device B reports the network switch fault.
After the network equipment B is electrified, setting the network card 11 and the network card 22 to the same MAC address, and monitoring the link states of the network card 11 and the network card 22 in real time; if the link state of the network card 11 is monitored to be normal, setting the current working network card as the network card 11; if the link state of the network card 11 is abnormal, the link state of the network card 22 is determined, and if the link state of the network card 22 is normal, the network device B switches to the network card 22 to operate.
S4: the network switch A or the network switch B sends the message data to the network equipment A through the Ethernet.
The network switch a or the network switch B transmits the received network message data to the network device a from the port being used by the network device a through the ethernet.
According to the invention, the communication fault reasons among the network devices can be positioned in time, and the reliability of communication among the network devices of the control system is improved. By adopting the scheme of the invention, the problem that the network equipment double-redundancy network card cannot be switched normally due to the failure of the cascade network switch can be perfectly solved.
The foregoing is merely a preferred embodiment of the present invention, and it should be noted that modifications and variations could be made by those skilled in the art without departing from the technical principles of the present invention, and such modifications and variations should also be regarded as being within the scope of the invention.

Claims (9)

1. The double-redundancy network card switching device based on the cascade switch is characterized by comprising two network devices, namely a first network device and a second network device, wherein the first network device can send message data to the first network switch or the second network switch through an Ethernet; the first network switch or the second network switch can send the message data to the second network device through the Ethernet; then, the second network device can send the message data to the first network switch or the second network switch through the Ethernet; finally, the first network switch or the second network switch can send the message data to the first network device through the Ethernet;
Both network devices include:
The first self-checking module is used for detecting which network card has normal link state after the first network equipment and the second network equipment are electrified and working by using one network card with normal link state;
the first acquisition module is used for receiving network message data sent by the first network switch or the second network switch and a working state message of the network switch;
The network card switching module is used for judging whether network card switching is needed according to whether a working state message sent by the first network switch or the second network switch is received or whether the working state of the first network switch or the second network switch is abnormal or not, and if the network card switching is needed, corresponding switching operation is carried out;
The first sending module is used for sending network message data to the first network switch or the second network switch;
Both network switches include:
the second self-checking module is used for detecting the working states of the PHY chip and the switching chip in the first network switch and the second network switch in real time;
the second acquisition module is used for receiving network message data sent by the first network equipment or the second network equipment;
The second sending module is used for sending network message data to the first network equipment or the second network equipment and sending working states of the first network switch and the second network switch to the first network equipment and the second network equipment;
The first network device adopts a dual-redundancy network card, and is marked as a first network card and a second network card; the first network card is connected to the first network switch through the Ethernet, and the second network card is connected to the second network switch through the Ethernet;
Firstly, starting a first network switch and a second network switch to work, and then starting first network equipment and second network equipment to work;
the second self-checking module is specifically configured to perform self-checking on the PHY chip and the switching chip after the first network switch is powered on, and determine whether the current switch working state is normal by reading the values of the status registers of the chips, where the second sending module periodically sends the current switch working state to the first network device and the second network device;
The first network switch or the second network switch sends the period of the working state of the first network switch or the second network switch to the first network equipment through the Ethernet to be smaller than the minimum value Tmin of the switching time of the double redundant network cards in the first network equipment, and the Tmin is larger than 0;
the first self-checking module in the first network device is specifically configured to: after the first network equipment is powered on, if the working state message of the first network switch is received within the time of not more than 3 Tmin and the working state is normal, indicating that the network communication link between the first network card and the first network switch is normal, using the first network card and the second network equipment for communication; if the working state message of the second network switch is received within the time of not more than 3 x Tmin and the working state is normal, indicating that the network communication link between the second network card and the second network switch is normal, using the second network card and the second network device for communication;
2. The apparatus of claim 1, wherein the network card switching module in the first network device is specifically configured to: if the first network equipment works by using the first network card, in the power-on process, if the working state message sent by the first network switch is not received or the received working state is abnormal for 3 times continuously, indicating that a network communication link between the first network card and the first network switch has a fault; at this time, judging whether the link state of the second network card is normal, if the link state is abnormal, reporting the fault of the second network card by the first network equipment; otherwise, the first network device works by using the second network card; if the working state message sent by the second network switch is not received or the received working state is abnormal for 3 times continuously in the power-on working process of the second network card, the network communication link between the second network card and the second network switch is indicated to have a fault, and the second network switch fault is reported; each time duration is the minimum value of the switching time of the dual-redundancy network card of the first network equipment;
If the first network device works by using the second network card, continuously receiving the working state message sent by the second network switch for 3 times or receiving the working state abnormality in the power-on process, and indicating that a network communication link between the second network card and the second network switch has a fault; at this time, judging whether the link state of the first network card is normal, if the link state is abnormal, reporting the first network card fault by the first network equipment; otherwise, the first network device works by using the first network card; if the first network card continuously receives no working state message sent by the first network switch or the received working state is abnormal in the power-on working process at this time, indicating that a network communication link between the first network card and the first network switch has a fault, reporting the fault of the first network switch.
3. The apparatus of claim 2, wherein after the first network device is powered on, the first network card and the second network card are set to the same MAC address, and link states of the first network card and the second network card are monitored in real time; if the link state of the first network card is normal, setting the current working network card as the first network card; if the link state of the first network card is monitored to be abnormal, judging the link state of the second network card, and if the link state of the second network card is normal, switching the first network equipment to the second network card for working.
4. The apparatus of claim 3, wherein the first network switch and the second network switch are connected via respective tandem ports.
5. The apparatus of claim 4, wherein the first network switch or the second network switch reads a source MAC address of the data frame after receiving the data frame sent by the first network device or the second network device from one port, and fills the MAC address and its corresponding port in a MAC address table of the first network switch or the second network switch, and establishes a mapping of the MAC address and the switch port;
the first network switch or the second network switch transmits the received network message data to the second network device from a port being used by the second network device through the ethernet.
6. The apparatus of claim 5, wherein the second network device employs dual redundant network cards, denoted as a third network card and a fourth network card; the third network card is connected to the first network switch through the Ethernet, and the fourth network card is connected to the second network switch through the Ethernet;
The first self-checking module in the second network device is specifically configured to: after the second network switch is powered on, self-checking is carried out on PHY chips and switching chips in the second network switch, whether the working state of the current switch is normal or not is judged by reading the values of the state registers of the chips, and the working state period of the current switch is sent to the first network device and the second network device;
The period of the first network switch or the second network switch sending the working state of the first network switch or the second network switch to the second network equipment through the Ethernet is smaller than the minimum value Tmin of the switching time of the double redundant network cards in the second network equipment, and the Tmin is larger than 0;
After the second network device is powered on, if the working state message of the first network switch is received within the time of not more than 3 Tmin and the working state is normal, which indicates that the network communication link between the third network card and the first network switch is normal, the second network device uses the third network card to communicate with the first network device; and if the working state message of the second network switch is received within the time of not more than 3 x Tmin and the working state is normal, indicating that the network communication link between the fourth network card and the second network switch is normal, the second network device uses the fourth network card to communicate with the first network device.
7. The apparatus of claim 6, wherein the network card switching module in the second network device is specifically configured to: if the second network device works by using the third network card, continuously receiving the working state message sent by the first network switch for 3 times or receiving the working state abnormality in the power-on process, and indicating that a network communication link between the third network card and the first network switch has a fault; at this time, the second network device judges whether the link state of the fourth network card is normal, if the link state is abnormal, the second network device reports the fault of the fourth network card; otherwise, the second network device works by using the fourth network card; if the fourth network card continuously receives no working state message sent by the second network switch or the received working state is abnormal in the power-on working process, indicating that a network communication link between the fourth network card and the second network switch has a fault, reporting the fault of the second network switch by the second network equipment;
If the second network device works by using the fourth network card, continuously receiving the working state message sent by the second network switch for 3 times or receiving the working state abnormality in the power-on process, and indicating that a network communication link between the fourth network card and the second network switch has a fault; at this time, the second network device judges whether the link state of the third network card is normal, if the link state is abnormal, the second network device reports the fault of the third network card; otherwise, the second network device works by using the third network card; if the third network card continuously receives no working state message sent by the first network switch or the received working state is abnormal for 3 times in the power-on working process, the fault of the network communication link between the third network card and the first network switch is indicated, and the second network equipment reports the fault of the first network switch.
8. The apparatus of claim 7, wherein after the second network device is powered on, setting the third network card and the fourth network card to the same MAC address, and monitoring link states of the network card and the fourth network card in real time; if the link state of the third network card is normal, setting the current working network card as the third network card; if the link state of the third network card is monitored to be abnormal, judging the link state of the fourth network card, and if the link state of the fourth network card is normal, switching the second network equipment to the fourth network card for working.
9. The apparatus of claim 8, wherein the first network switch or the second network switch transmits the received network message data to the first network device over ethernet from a port being used by the first network device.
CN202211115392.7A 2022-09-14 2022-09-14 Dual-redundancy network card switching device based on cascading switch Active CN115529222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211115392.7A CN115529222B (en) 2022-09-14 2022-09-14 Dual-redundancy network card switching device based on cascading switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211115392.7A CN115529222B (en) 2022-09-14 2022-09-14 Dual-redundancy network card switching device based on cascading switch

Publications (2)

Publication Number Publication Date
CN115529222A CN115529222A (en) 2022-12-27
CN115529222B true CN115529222B (en) 2024-05-28

Family

ID=84696793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211115392.7A Active CN115529222B (en) 2022-09-14 2022-09-14 Dual-redundancy network card switching device based on cascading switch

Country Status (1)

Country Link
CN (1) CN115529222B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404568A (en) * 2008-11-17 2009-04-08 国电南瑞科技股份有限公司 Double-network card hot backup redundancy method
CN103139018A (en) * 2013-04-03 2013-06-05 国电南瑞科技股份有限公司 Network card condition monitoring and transmission control protocol (TCP) communication method in dispatching and transformer substation integrated system
CN107054255A (en) * 2017-05-03 2017-08-18 北京电子工程总体研究所 A kind of vehicle-mounted complex control system of land equipment vehicle
CN108322364A (en) * 2018-03-06 2018-07-24 国电南瑞科技股份有限公司 A kind of mutual Preparation Method of double netcard redundancy suitable for wide area dispatch automated system
CN109474466A (en) * 2018-11-13 2019-03-15 天津津航计算技术研究所 The method of dual redundant network interface card switching is realized on DDS middleware
CN109831341A (en) * 2019-03-19 2019-05-31 中国电子科技集团公司第三十六研究所 A kind of fast switch over method and device of redundancy double netcard

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404568A (en) * 2008-11-17 2009-04-08 国电南瑞科技股份有限公司 Double-network card hot backup redundancy method
CN103139018A (en) * 2013-04-03 2013-06-05 国电南瑞科技股份有限公司 Network card condition monitoring and transmission control protocol (TCP) communication method in dispatching and transformer substation integrated system
CN107054255A (en) * 2017-05-03 2017-08-18 北京电子工程总体研究所 A kind of vehicle-mounted complex control system of land equipment vehicle
CN108322364A (en) * 2018-03-06 2018-07-24 国电南瑞科技股份有限公司 A kind of mutual Preparation Method of double netcard redundancy suitable for wide area dispatch automated system
CN109474466A (en) * 2018-11-13 2019-03-15 天津津航计算技术研究所 The method of dual redundant network interface card switching is realized on DDS middleware
CN109831341A (en) * 2019-03-19 2019-05-31 中国电子科技集团公司第三十六研究所 A kind of fast switch over method and device of redundancy double netcard

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
VxWorks下基于82551ER双网卡冗余技术的实现;石刚;朱新星;吴永刚;;水雷战与舰船防护;20100215(第01期);全文 *
一种双冗余网络快速切换方法;徐雄斌;杨胜钊;高焘;;舰船电子工程;20181120(第11期);第 2 节,图 1 *
浅谈VxWorks环境下双网卡冗余备份技术的实现;郑猛;;中国水运(下半月);20081120(第11期);第 1-2 节 *
船载交换式网络使用双冗余网卡对网络性能的影响;朱严峰, 李峭, 熊华钢, 顾桔, 刘幼文;电子技术应用;20020530(第04期);第一到三节 *

Also Published As

Publication number Publication date
CN115529222A (en) 2022-12-27

Similar Documents

Publication Publication Date Title
US7861110B2 (en) System, method, and adapter for creating fault-tolerant communication busses from standard components
CN101110663B (en) Method, system and device for implementing periodic line failure processing
CN103401696A (en) Dual-network redundant communication system in industrial equipment and communication method thereof
WO2008119288A1 (en) System, device, equipment and method for monitoring management
JPH0376620B2 (en)
CN111628944B (en) Switch and switch system
CN115529222B (en) Dual-redundancy network card switching device based on cascading switch
CN115529223B (en) Dual-redundancy network card switching method based on cascade switch
CN204633800U (en) The switch of a kind of administrative unit and the two redundancy of crosspoint
CN103067205A (en) Switchover method of receiver-transmitter (RT) and back-up RT using same address under same host management
CN110838994B (en) Link state monitoring method of redundant Ethernet based on broadcast protocol
CN102271049A (en) Method, device and system for setting state of communication equipment
Cisco Processor Cards
KR101345512B1 (en) Digital Protective Relay with Duplex Function
CN101483527B (en) Dual engine switch device and engine switching method
JP3753496B2 (en) Fault detection apparatus and method in data communication switching system
KR100388965B1 (en) Apparatus for cross duplication of each processor board in exchange
CN115766411A (en) Method for accurately judging and switching double machine states of multiplexing process bus
CN115766509A (en) Parallel operation method and parallel operation system
JP2000078159A (en) Vp changeover device, connection monitor method used for it and recording medium recording its control program
CN116302697A (en) Full-interface redundant high-reliability computer system
CN117459368A (en) Control method for energy storage system
KR920007140B1 (en) Electronic switching maintenance system
CN117520101A (en) Integrated machine operation monitoring method and device
KR100458829B1 (en) Device for Switching Automatically in ATM Switching 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