CN112995070B - Double-card switching system and method - Google Patents

Double-card switching system and method Download PDF

Info

Publication number
CN112995070B
CN112995070B CN202110555200.3A CN202110555200A CN112995070B CN 112995070 B CN112995070 B CN 112995070B CN 202110555200 A CN202110555200 A CN 202110555200A CN 112995070 B CN112995070 B CN 112995070B
Authority
CN
China
Prior art keywords
switching
card
main control
network
local area
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
CN202110555200.3A
Other languages
Chinese (zh)
Other versions
CN112995070A (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.)
Hunan Xingtian Electronic Technology Co.,Ltd.
Original Assignee
Hunan Xing Tian Electronic Technology Co ltd
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 Hunan Xing Tian Electronic Technology Co ltd filed Critical Hunan Xing Tian Electronic Technology Co ltd
Priority to CN202110555200.3A priority Critical patent/CN112995070B/en
Publication of CN112995070A publication Critical patent/CN112995070A/en
Application granted granted Critical
Publication of CN112995070B publication Critical patent/CN112995070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/351Switches specially adapted for specific applications for local area network [LAN], e.g. Ethernet switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors

Abstract

The application provides a dual-card switching system and a dual-card switching method. And the switching unit starts the communication between the first local area network and the third local area network in an initial state to realize the communication between the master control card and the external equipment through the aerial plug network interface. When the switching unit judges that the main control card is in an abnormal working state according to the heartbeat signals fed back by the main control card and the standby card, the switching unit disconnects the communication between the first local area network and the third local area network, starts the communication between the second local area network and the third local area network and realizes the communication between the standby card and the external equipment through the aerial plug-in network interface. The method and the device can realize quick seamless switching according to the corresponding network switching command, overcome the defect that the electronic switch causes physical layer interruption during switching, save the system cost and enhance the system reliability.

Description

Double-card switching system and method
Technical Field
The invention relates to the technical field of computers, in particular to a dual-card switching system and method.
Background
Computer systems are widely used in our lives, and are essential for computers in the fields of civil use, military use, aviation and the like. The reliability and stability of computer systems are long sought goals, and the proposal of redundancy technology provides an effective way for ensuring the reliability of computer systems. Redundancy generally refers to redundant or repeated portions, and artificial redundancy is widely used in order to enhance system reliability. Common redundancy techniques are hardware redundancy and software redundancy.
At present, most bus switching systems in computer redundancy application adopt electronic switch chips to realize network switching, and the problems of system physical layer interruption, network protocol layer reconnection and the like can occur in the method, so that the reliability of the system is reduced.
Disclosure of Invention
In order to solve the technical problem, the invention provides a dual-card switching system and a method, and the specific scheme is as follows:
in a first aspect, an embodiment of the present application provides a dual-card switching system, where the system includes a main control module and a switching module; the main control module comprises a main control card and a standby card, the main control card and the standby card both comprise an intranet net port and a heartbeat net port, and the switching module comprises a switching unit, an exchange unit and a heartbeat net port; the heartbeat network port of the main control card and the heartbeat network port of the standby card are both connected with the heartbeat network port of the switching unit; the switching unit comprises a switch for connecting external equipment, and the switch comprises a first local area network port, a second local area network port and a third local area network port; the intranet network port of the main control card is connected with the first local area network port, and the main control card is positioned in the first local area network; the intranet port of the standby card is connected with the second local area network port, and the standby card is positioned in the second local area network; the third local area network port is used for being connected with the external equipment through an aerial plug network port, and the aerial plug network port is positioned in a third local area network;
the switching unit is used for judging whether the main control card is in an abnormal working state or not according to the heartbeat signals fed back by the main control card and the standby card and feeding back the working state of the main control card to the switching unit;
the exchange unit is used for starting the communication between the first local area network and the third local area network in an initial state, and realizing the communication between the master card and the external equipment through the aerial network interface;
the exchange unit is further configured to disconnect the communication between the first local area network and the third local area network and start the communication between the second local area network and the third local area network when the main control card is in an abnormal working state, so that the standby card communicates with the external device through the air-insertion network interface.
According to a specific embodiment disclosed in the present application, the master control card and the standby card each include a device serial port, and the switching module further includes a switching serial port;
the device serial port of the main control card and the device serial port of the standby card are respectively connected with the switching serial port;
the switching unit is also used for disconnecting the communication between the equipment serial port of the main control card and the switching serial port of the switching module and starting the communication between the equipment serial port of the standby card and the switching serial port of the switching module when the main control card is in an abnormal working state.
According to a specific embodiment disclosed in the present application, the main control card and the standby card each further include an equipment interface, and the switching module further includes a switching interface;
the equipment interface of the main control card and the equipment interface of the standby card are respectively connected with the switching interface;
the switching unit is further used for disconnecting the communication between the equipment interface of the main control card and the switching interface of the switching module and starting the communication between the equipment interface of the standby card and the switching interface of the switching module when the main control card is judged to be in an abnormal working state according to the heartbeat signals fed back by the main control card and the standby card.
According to a specific embodiment disclosed in the present application, the heartbeat network port of the master control card is further connected to the heartbeat network port of the standby card;
and the standby card is used for transferring the currently executed software task on the main control card to the standby card to be executed when the main control card is judged to be in an abnormal working state according to the heartbeat signal fed back by the main control card.
According to a specific embodiment disclosed in the present application, the switching unit further includes a logic processor, a communication bus switching chip and a switching control chip, the logic processor is connected to the heartbeat network port of the switching module, the logic processor is respectively connected to the communication bus switching chip and the switching control chip, the communication bus switching chip is connected to the device serial port of the main control card and the device serial port of the standby card through the switching serial port, and the communication bus switching chip is connected to the device interface of the main control card and the device interface of the standby card through the switching interface;
the logic processor is used for receiving heartbeat signals fed back by the main control card and the standby card through a heartbeat network port of the switching module, sending a switching network port control command to the switching control chip when the main control card is judged to be in an abnormal working state according to the heartbeat signals, and sending a switching interface control command and a switching serial port control command to the communication bus switching chip;
the communication bus switching chip is used for disconnecting the communication between the equipment interface of the main control card and the switching interface of the switching module according to the switching interface control command and starting the communication between the equipment interface of the standby card and the switching interface of the switching module;
the communication bus switching chip is also used for disconnecting the communication between the equipment serial port of the main control card and the switching serial port of the switching module according to the switching serial port control command and starting the communication between the equipment serial port of the standby card and the switching serial port of the switching module;
the switching control chip is used for converting the switching network port control command into a network switching command with a preset format and sending the network switching command to the switching unit.
According to a specific embodiment disclosed in the present application, the switching unit includes a central processing unit, the switch includes a network switch chip and a physical interface transceiver group, the central processing unit, the network switch chip and the physical interface transceiver group are sequentially connected, the network switch chip is respectively connected to the first lan port, the second lan port and the third lan port through the physical interface transceiver group;
the central processing unit is used for receiving the network switching command sent by the switching unit and sending the network switching command to the network switch chip;
the network switch chip is used for receiving the network switching command, generating a corresponding local area network control command based on the network switching command, and sending the local area network control command to the physical interface transceiver group.
In a second aspect, an embodiment of the present application provides a dual card switching method, which is applied to the system described in any embodiment of the first aspect, and the method includes:
the switching unit starts the communication between the first local area network and the third local area network in an initial state to realize the communication between the master card and the external equipment through the aerial plug network port;
the switching unit receives heartbeat signals fed back by the main control card and the standby card and judges whether the main control card is in an abnormal working state or not according to the heartbeat signals fed back by the main control card and the standby card;
if the master control card is in an abnormal working state, the switch disconnects the communication between the first local area network and the third local area network, and starts the communication between the second local area network and the third local area network, so that the standby card is communicated with the external equipment through the aerial insertion network port.
According to a specific embodiment disclosed in the present application, the master control card and the standby card both include an equipment serial port and an equipment interface, the switching module further includes a switching serial port and a switching interface, if the master control card is in an abnormal working state, the method further includes:
the switching unit disconnects the communication between the equipment serial port of the main control card and the switching serial port of the switching module, and starts the communication between the equipment serial port of the standby card and the switching serial port of the switching module;
the switching unit disconnects the communication between the equipment interface of the main control card and the switching interface of the switching module, and starts the communication between the equipment interface of the standby card and the switching interface of the switching module.
According to a specific embodiment disclosed in the present application, the heartbeat portal of the master control card is further connected to the heartbeat portal of the standby card, and the method further includes:
the standby card receives a heartbeat signal fed back by the main control card;
the standby card judges whether the main control card is in an abnormal working state or not according to the heartbeat signal fed back by the main control card;
and if the main control card is in an abnormal working state, the standby card transfers the software task currently executed on the main control card to the standby card for execution.
According to a specific embodiment disclosed in the present application, the switching unit further includes a logic processor, a communication bus switching chip, and a switching control chip, and the method further includes:
the logic processor receives heartbeat signals fed back by the main control card and the standby card;
the logic processor judges whether the main control card is in an abnormal working state or not according to the heartbeat signal;
if the master control card is in an abnormal working state, the logic processor sends a network port switching control command to the switching control chip, and sends a switching interface control command and a switching serial port control command to the communication bus switching chip;
the communication bus switching chip disconnects the communication between the equipment interface of the main control card and the switching interface of the switching module according to the switching interface control command, and starts the communication between the equipment interface of the standby card and the switching interface of the switching module;
the communication bus switching chip disconnects the communication between the equipment serial port of the main control card and the switching serial port of the switching module according to the switching serial port control command, and starts the communication between the equipment serial port of the standby card and the switching serial port of the switching module;
and the switching control chip converts the switching network port control command into a network switching command with a preset format and sends the network switching command to the switching unit.
Compared with the prior art, the method has the following beneficial effects:
this application is through connecting the intranet net gape with the intranet net gape of master control card and reserve card in same switch, and two kinds of intranet net gapes all establish physical link with the switch. And the switching unit starts the communication between the first local area network and the third local area network in an initial state to realize the communication between the master control card and the external equipment through the aerial plug network interface. When the switching unit judges that the main control card is in an abnormal working state according to the heartbeat signals fed back by the main control card and the standby card, the switching unit disconnects the communication between the first local area network and the third local area network, starts the communication between the second local area network and the third local area network and realizes the communication between the standby card and the external equipment through the aerial plug-in network interface. The method and the device can realize quick seamless switching according to the corresponding network switching command, overcome the defect that the electronic switch causes physical layer interruption during switching, save the system cost and enhance the system reliability.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic diagram of a system configuration of a dual card switching system according to an embodiment of the present disclosure;
fig. 2 is a second schematic diagram illustrating a system configuration of a dual card switching system according to an embodiment of the present application;
fig. 3 is a third schematic diagram illustrating a system configuration of a dual card switching system according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a dual card switching method according to an embodiment of the present disclosure;
fig. 5 is a second flowchart of a dual card switching method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1 and fig. 2, fig. 1 is a first schematic diagram of a system composition of a dual card switching system according to an embodiment of the present disclosure, and fig. 2 is a second schematic diagram of the system composition of the dual card switching system according to the embodiment of the present disclosure. In the embodiment of the application, the dual-card switching system can realize rapid seamless switching according to the corresponding network switching command, overcomes the defect that the physical layer is interrupted when an electronic switch is switched, can save the system cost and enhance the system reliability. The system comprises a main control module 10 and a switching module 11.
In this embodiment, the main control module 10 includes a main control card 1010 and a standby card 1020.
In the system, the main control card 1010 and the standby card 1020 refer to replaceable control chips having the same function. When the system timing is on, the system default host card 1010 is connected to the external system or the external device 12. When the system is started, the first-started host card 1010 is switched to the external device 12. If the switching module 11 detects that the main control card 1010 fails to work normally, the main control card 1010 is switched to another standby card 1020 which can work normally. When the main control card 1010 and the standby card 1020 both work normally or abnormally at the same time, switching is not performed, and the original state is maintained.
The main control card 1010 and the standby card 1020 both include an intranet port 1012 and a heartbeat port 1011, and the switching module 11 includes a switching unit 1110, a switching unit 1120, and a heartbeat port 1011; the heartbeat network port 1011 of the main control card 1010 and the heartbeat network port 1011 of the standby card 1020 are both connected to the heartbeat network port 1011 of the switching unit 1110.
The heartbeat network interface 1011 is configured to send heartbeat signals of the main control card 1010 and the standby card 1020 to the switching module 11, so that the switching module 11 can determine whether the corresponding main control card 1010 or the standby card 1020 works normally according to the heartbeat signals. Specifically, the heartbeat signal is one of two parties interconnected with each other, and sends a small data packet to the other party, and the other party judges whether the other party can work normally according to whether the data packet is received or not.
The switch unit 1120 includes a switch 1121 for connecting the external device 12, and the switch 1121 includes a first lan port 1122, a second lan port 1123, and a third lan port 1124. The intranet port 1012 of the master control card 1010 is connected to the first lan port 1122, so that the master control card 1010 is in a first lan; the intranet port 1012 of the standby card 1020 is connected to the second lan port 1123, so that the standby card 1020 is in a second lan; the third lan port 1124 is configured to connect to the external device 12 through the aviation plug network port 1210, so that the aviation plug network port 1210 is in a third lan.
In an initial state, the switching unit 1120 starts communication between the first lan and the third lan, so that the main control card 1010 communicates with the external device 12 through the air-insertion network interface 1210, that is, when the system timing sequence is power on, the system defaults that the main control card 1010 is connected with the external device 12, and at this time, the main control card 1010 controls the external device 12.
The switching unit 1120 is further configured to disconnect the communication between the first local area network and the third local area network and start the communication between the second local area network and the third local area network when it is determined that the main control card 1010 is in an abnormal working state according to the heartbeat signal fed back by the main control card 1010 and the standby card 1020, so that the standby card 1020 communicates with the external device 12 through the aviation plug network interface 1210. Specifically, the heartbeat signal may be set to be sent regularly and intermittently at a preset time, for example, 5 seconds, if the switching module 11 does not receive the heartbeat signal of the main control card 1010 within the preset time, it is determined that the main control card 1010 has a fault and cannot work normally, and then network switching is performed.
The switching unit 1110 not only can provide a judgment basis for the switching unit 1120 to perform network switching between the main control card 1010 and the standby card 1020, but also can be used to perform switching between corresponding serial ports and interfaces according to the heartbeat signal.
Specifically, the main control card 1010 and the standby card 1020 both include a device serial port 1014, and the switching module 11 further includes a switching serial port 1112;
the device serial port 1014 of the main control card 1010 and the device serial port 1014 of the standby card 1020 are respectively connected with the switching serial port 1112;
the switching unit 1110 is further configured to disconnect the communication between the device serial port 1014 of the main control card 1010 and the switching serial port 1112 of the switching module 11 and open the communication between the device serial port 1014 of the standby card 1020 and the switching serial port 1112 of the switching module 11 when it is determined that the main control card 1010 is in the abnormal working state according to the heartbeat signal fed back by the main control card 1010 and the standby card 1020.
The main control card 1010 and the standby card 1020 each further include a device interface 1013, and the switching module 11 further includes a switching interface 1111;
the device interface 1013 of the main control card 1010 and the device interface 1013 of the standby card 1020 are respectively connected to the switching interface 1111;
the switching unit 1110 is further configured to disconnect the communication between the device interface 1013 of the master card 1010 and the switching interface 1111 of the switching module 11 and open the communication between the device interface 1013 of the standby card 1020 and the switching interface 1111 of the switching module 11 when it is determined that the master card 1010 is in the abnormal operating state according to the heartbeat signal fed back by the master card 1010 and the standby card 1020.
The heartbeat network port 1011 of the main control card 1010 is further connected with the heartbeat network port 1011 of the standby card 1020. The reason why the heartbeat signals of the main control card 1010 and the standby card 1020 are respectively sent to the switching module 11 is to switch the corresponding interface, serial port and network in time when any one of the control cards cannot work normally. The heartbeat signals of the master card 1010 and the standby card 1020 may also be transmitted and received from each other.
The standby card 1020 is configured to transfer a currently executed software task on the main control card 1010 to the standby card 1020 for execution when it is determined that the main control card 1010 is in an abnormal working state according to the heartbeat signal fed back by the main control card 1010.
Through the technical means, the dual-card switching system provided by the application can simultaneously switch software and hardware, and can continuously and comprehensively work.
The switching unit 1110 further includes a logic processor 1113, a communication bus switching chip 1114 and a switching control chip 1115, wherein the logic processor 1113 is connected to the heartbeat network port 1011 of the switching module 11, the logic processor 1113 is connected to the communication bus switching chip 1114 and the switching control chip 1115 respectively, the communication bus switching chip 1114 is connected to the device serial port 1014 of the main control card 1010 and the device serial port 1014 of the standby card 1020 through the switching serial port 1112, and the communication bus switching chip 1114 is connected to the device interface 1013 of the main control card 1010 and the device interface 1013 of the standby card 1020 through the switching interface 1111;
the logic processor 1113 is configured to receive, through the heartbeat network port 1011 of the switching module 11, the heartbeat signals fed back by the main control card 1010 and the standby card 1020, and send a network port switching control command to the switching control chip 1115 when it is determined that the main control card 1010 is in an abnormal working state according to the heartbeat signals, and send a switching interface 1111 control command and a switching serial port 1112 control command to the communication bus switching chip 1114;
the communication bus switching chip 1114 is configured to disconnect the communication between the device interface 1013 of the master card 1010 and the switching interface 1111 of the switching module 11 according to the switching interface 1111 control command, and open the communication between the device interface 1013 of the standby card 1020 and the switching interface 1111 of the switching module 11;
the communication bus switching chip 1114 is further configured to disconnect the communication between the device serial port 1014 of the main control card 1010 and the switching serial port 1112 of the switching module 11 according to the switching serial port 1112 control command, and open the communication between the device serial port 1014 of the standby card 1020 and the switching serial port 1112 of the switching module 11.
In a specific implementation, as shown in fig. 3, the switching control chip 1115 may convert the switching portal control command sent by the logic processor 1113 into a network switching command, and send the network switching command to the switching unit 1120. The network switching command is a control command with a preset format that can be received by the central processing unit 1125 of the switching unit 1120, for example, the network switching command may be a VLAN switching character.
The central processor 1125 may establish a connection with the network switch chip 1126 through a specific communication method, so that the network switch command can be accurately recognized and received by the network switch chip 1126, for example, an I2C bus or a PCIE bus may be used.
In addition, the physical interface transceiver group 1127 may also be connected to another network port, such as an external network port, which may be under the control of the fourth lan, so that the physical interface transceiver may switch a device controlled by the external network to the path of the standby card 1020.
It should be noted that, there is no sequential restriction on the time when the communication bus switching chip 1114 receives the switching interface 1111 control command and the switching serial port 1112 control command, and the two actions of switching the interface according to the switching interface 1111 control command and switching the serial port according to the switching serial port 1112 control command by the communication bus switching chip 1114 are also not restricted by the execution sequence, and may be performed simultaneously or may be performed sequentially.
The switch unit 1120 further comprises a central processor 1125, the switch 1121 comprises a network switch chip 1126 and a physical interface transceiver group 1127, the central processor 1125, the network switch chip 1126 and the physical interface transceiver group 1127 are sequentially connected, and the network switch chip 1126 is respectively connected with the first lan port 1122, the second lan port 1123 and the third lan port 1124 through the physical interface transceiver group 1127;
the central processor 1125 is configured to receive the network switching command sent by the switching unit 1110 and send the network switching command to the network switch chip 1126;
the network switch chip 1126 is configured to receive the network switch command, generate a corresponding lan control command based on the network switch command, and send the lan control command to the physical interface transceiver group 1127.
The physical interface transceiver group 1127 includes more than one physical interface transceiver group and transformer. Although a physical interface transceiver directly connected to the external device 12 may also work, the transmission distance may be limited. The network port level of the external device 12 is not fixed, and is affected when the network ports with different levels are externally connected, and external interference can greatly affect the device. The physical interface transceiver in the application is connected with the transformer, can be used for signal level coupling and isolation of external interference, and realizes impedance matching, so that the transmission distance can be increased. Meanwhile, the network switch chip 1126 can be isolated from the outside, and the anti-interference capability is enhanced.
In the dual-card switching system provided by the application, the intranet network port 1012 of the master control card 1010 and the intranet network port 1012 of the standby card 1020 are connected in the same switch 1121, and physical links are established between the two intranet network ports 1012 and the switch 1121, so that the system can realize quick seamless switching according to a corresponding network switching command, the defect that an electronic switch causes physical layer interruption during switching is overcome, the system cost can be saved, and the system reliability is enhanced. And the dual-card switching system provided by the application can simultaneously switch software and hardware, so that the system can continuously and comprehensively work.
Corresponding to the above system embodiment, referring to fig. 4, the present application further provides a dual card switching method, where the method includes:
step S401, the switching unit 1110, in an initial state, starts communication between the first local area network and the third local area network, so as to enable the main control card 1010 to communicate with the external device 12 through the aerial plug network interface 1210;
in an initial state, the intranet port 1012 of the main control card 1010 is connected to the first lan port 1122, so that the main control card 1010 is in the first lan; the intranet port 1012 of the standby card 1020 is connected to the second lan port 1123, so that the standby card 1020 is in the second lan; the third lan port 1124 is used to connect to the external device 12 through the avionic port 1210, such that the avionic port 1210 is in a third lan. The communication connection between the first lan and the second lan is opened, so that the main control card 1010 controls the external device 12 through the air-insertion network interface 1210.
Step S402, the switching unit 1110 receives the heartbeat signals fed back by the main control card 1010 and the standby card 1020, and determines whether the main control card 1010 is in an abnormal working state according to the heartbeat signals fed back by the main control card 1010 and the standby card 1020;
the switching unit 1110 determines whether the corresponding main control card 1010 fails according to whether the heartbeat signal is received within a preset time, and further determines whether a corresponding control instruction needs to be sent to the switch 1121.
In step S403, if the main control card 1010 is in an abnormal working state, the switch 1121 disconnects the communication between the first lan and the third lan through the physical interface transceiver group 1127, and starts the communication between the second lan and the third lan, so as to enable the standby card 1020 to communicate with the external device 12 through the air-add network interface 1210.
As shown in fig. 5, when both the main control card 1010 and the standby card 1020 work normally or abnormally, the switching is not performed and the original state is maintained.
In specific implementation, if the main control card 1010 is in an abnormal working state, the method further includes:
the switching unit 1110 disconnects the communication between the device serial port 1014 of the main control card 1010 and the switching serial port 1112 of the switching module 11, and starts the communication between the device serial port 1014 of the standby card 1020 and the switching serial port 1112 of the switching module 11;
the switching unit 1110 disconnects the communication between the device interface 1013 of the master card 1010 and the switching interface 1111 of the switching module 11, and starts the communication between the device interface 1013 of the standby card 1020 and the switching interface 1111 of the switching module 11.
In specific implementation, the method further comprises:
the standby card 1020 receives the heartbeat signal fed back by the main control card 1010;
the standby card 1020 judges whether the main control card 1010 is in an abnormal working state according to the heartbeat signal fed back by the main control card 1010;
if the main control card 1010 is in an abnormal working state, the standby card 1020 transfers the software task currently executed on the main control card 1010 to the standby card 1020 for execution.
In specific implementation, the method further comprises:
the logic processor 1113 receives the heartbeat signals fed back by the main control card 1010 and the standby card 1020;
the logic processor 1113 determines whether the main control card 1010 is in an abnormal working state according to the heartbeat signal;
if the host card 1010 is in an abnormal working state, the logic processor 1113 sends a switching network port control command to the switching control chip 1115, and sends a switching interface 1111 control command and a switching serial port 1112 control command to the communication bus switching chip 1114;
the communication bus switching chip 1114 disconnects the communication between the device interface 1013 of the master card 1010 and the switching interface 1111 of the switching module 11 according to the switching interface 1111 control command, and starts the communication between the device interface 1013 of the standby card 1020 and the switching interface 1111 of the switching module 11;
the communication bus switching chip 1114 disconnects the communication between the device serial port 1014 of the main control card 1010 and the switching serial port 1112 of the switching module 11 according to the switching serial port 1112 control command, and starts the communication between the device serial port 1014 of the standby card 1020 and the switching serial port 1112 of the switching module 11;
the switching control chip 1115 converts the switching port control command into a network switching command with a preset format and sends the network switching command to the switching unit 1120.
In the dual-card switching method provided by the application, in an initial state, communication between the first local area network and the third local area network is started, so that the main control card 1010 is communicated with the external device 12 through the air insertion network interface 1210. Then, when it is determined that the main control card 1010 is in the abnormal working state, the communication between the first lan and the third lan is disconnected, and the communication between the second lan and the third lan is opened, so that the standby card 1020 communicates with the external device 12 through the air-insertion network interface 1210. The method and the device can realize quick seamless switching according to the corresponding network switching command, and overcome the defect that the electronic switch causes physical layer interruption during switching.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (6)

1. A dual-card switching system is characterized by comprising a main control module and a switching module; the main control module comprises a main control card and a standby card, the main control card and the standby card respectively comprise an intranet net port, a heartbeat net port, an equipment serial port and an equipment interface, and the switching module comprises a switching unit, an exchange unit and a heartbeat net port; the heartbeat network port of the main control card and the heartbeat network port of the standby card are both connected with the heartbeat network port of the switching unit; the switching unit comprises a switch for connecting external equipment, and the switch comprises a first local area network port, a second local area network port and a third local area network port; the intranet network port of the main control card is connected with the first local area network port, and the main control card is positioned in the first local area network; the intranet port of the standby card is connected with the second local area network port, and the standby card is positioned in the second local area network; the third local area network port is used for being connected with the external equipment through an aerial plug network port, and the aerial plug network port is positioned in a third local area network;
the switching unit is used for judging whether the main control card is in an abnormal working state or not according to the heartbeat signals fed back by the main control card and the standby card and feeding back the working state of the main control card to the switching unit;
the exchange unit is used for starting the communication between the first local area network and the third local area network in an initial state, and realizing the communication between the master card and the external equipment through the aerial network interface;
the exchange unit is further configured to disconnect the communication between the first local area network and the third local area network and start the communication between the second local area network and the third local area network when the main control card is in an abnormal working state, so that the standby card communicates with the external device through the air-insertion network interface;
the switching unit further comprises a logic processor, a communication bus switching chip, a switching control chip, a switching serial port and a switching interface, wherein the logic processor is connected with a heartbeat network port of the switching module, the logic processor is respectively connected with the communication bus switching chip and the switching control chip, the communication bus switching chip is connected with the equipment serial port of the main control card and the equipment serial port of the standby card through the switching serial port, and the communication bus switching chip is connected with the equipment interface of the main control card and the equipment interface of the standby card through the switching interface;
the logic processor is used for receiving heartbeat signals fed back by the main control card and the standby card through a heartbeat network port of the switching module, sending a switching network port control command to the switching control chip when the main control card is judged to be in an abnormal working state according to the heartbeat signals, and sending a switching interface control command and a switching serial port control command to the communication bus switching chip;
the communication bus switching chip is used for disconnecting the communication between the equipment interface of the main control card and the switching interface of the switching module according to the switching interface control command and starting the communication between the equipment interface of the standby card and the switching interface of the switching module;
the communication bus switching chip is also used for disconnecting the communication between the equipment serial port of the main control card and the switching serial port of the switching module according to the switching serial port control command and starting the communication between the equipment serial port of the standby card and the switching serial port of the switching module;
the switching control chip is used for converting the switching network port control command into a network switching command with a preset format and sending the network switching command to the switching unit;
the switching unit further comprises a central processing unit, the switch comprises a network switch chip and a physical interface transceiver group, the central processing unit, the network switch chip and the physical interface transceiver group are sequentially connected, and the network switch chip is respectively connected with the first local area network port, the second local area network port and the third local area network port through the physical interface transceiver group;
the central processing unit is used for receiving the network switching command sent by the switching unit and sending the network switching command to the network switch chip;
the network switch chip is used for receiving the network switching command, generating a corresponding local area network control command based on the network switching command, and sending the local area network control command to the physical interface transceiver group.
2. The system of claim 1, wherein the heartbeat network port of the master card is further connected to the heartbeat network port of the standby card;
and the standby card is used for transferring the currently executed software task on the main control card to the standby card to be executed when the main control card is judged to be in an abnormal working state according to the heartbeat signal fed back by the main control card.
3. A dual card switching method applied to the dual card switching system according to any one of claims 1 to 2, the method comprising:
the exchange unit starts the communication between the first local area network and the third local area network in an initial state, and the master control card is communicated with the external equipment through the aerial plug network port;
the switching unit receives heartbeat signals fed back by the main control card and the standby card and judges whether the main control card is in an abnormal working state or not according to the heartbeat signals fed back by the main control card and the standby card;
if the master control card is in an abnormal working state, the switch disconnects the communication between the first local area network and the third local area network, and starts the communication between the second local area network and the third local area network, so that the standby card is communicated with the external equipment through the aerial insertion network port.
4. The method of claim 3, wherein if the master card is in an abnormal operating state, the method further comprises:
the switching unit disconnects the communication between the equipment serial port of the main control card and the switching serial port of the switching module, and starts the communication between the equipment serial port of the standby card and the switching serial port of the switching module;
the switching unit disconnects the communication between the equipment interface of the main control card and the switching interface of the switching module, and starts the communication between the equipment interface of the standby card and the switching interface of the switching module.
5. The method of claim 3, wherein the heartbeat portal of the master card is further connected to the heartbeat portal of the standby card, the method further comprising:
the standby card receives a heartbeat signal fed back by the main control card;
the standby card judges whether the main control card is in an abnormal working state or not according to the heartbeat signal fed back by the main control card;
and if the main control card is in an abnormal working state, the standby card transfers the software task currently executed on the main control card to the standby card for execution.
6. The method of claim 3, wherein the method further comprises:
the logic processor receives heartbeat signals fed back by the main control card and the standby card;
the logic processor judges whether the main control card is in an abnormal working state or not according to the heartbeat signal;
if the master control card is in an abnormal working state, the logic processor sends a network port switching control command to the switching control chip, and sends a switching interface control command and a switching serial port control command to the communication bus switching chip;
the communication bus switching chip disconnects the communication between the equipment interface of the main control card and the switching interface of the switching module according to the switching interface control command, and starts the communication between the equipment interface of the standby card and the switching interface of the switching module;
the communication bus switching chip disconnects the communication between the equipment serial port of the main control card and the switching serial port of the switching module according to the switching serial port control command, and starts the communication between the equipment serial port of the standby card and the switching serial port of the switching module;
and the switching control chip converts the switching network port control command into a network switching command with a preset format and sends the network switching command to the switching unit.
CN202110555200.3A 2021-05-21 2021-05-21 Double-card switching system and method Active CN112995070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110555200.3A CN112995070B (en) 2021-05-21 2021-05-21 Double-card switching system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110555200.3A CN112995070B (en) 2021-05-21 2021-05-21 Double-card switching system and method

Publications (2)

Publication Number Publication Date
CN112995070A CN112995070A (en) 2021-06-18
CN112995070B true CN112995070B (en) 2021-08-10

Family

ID=76337100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110555200.3A Active CN112995070B (en) 2021-05-21 2021-05-21 Double-card switching system and method

Country Status (1)

Country Link
CN (1) CN112995070B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225590B (en) * 2022-05-25 2023-08-04 西安电子科技大学 Dual-mode hundred-mega network switch system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450666A (en) * 2018-10-12 2019-03-08 新华三技术有限公司成都分公司 Distributed system network management method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6779054B2 (en) * 2001-10-05 2004-08-17 Intel Corporation Method and apparatus for operating a network controller
CN103384212A (en) * 2013-07-24 2013-11-06 佳都新太科技股份有限公司 Double-machine high availability scheme for communication application system and implementation thereof
CN104753710B (en) * 2013-12-30 2019-09-10 北京大唐高鸿软件技术有限公司 The active-standby switch system and method for double WAN mouthfuls of network equipments
CN109831341B (en) * 2019-03-19 2021-10-15 中国电子科技集团公司第三十六研究所 Method and device for rapidly switching redundant double network cards

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450666A (en) * 2018-10-12 2019-03-08 新华三技术有限公司成都分公司 Distributed system network management method and device

Also Published As

Publication number Publication date
CN112995070A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN100511192C (en) Method used for storing channel with bit channel multifunction on-line recovery, device and system thereof
US9160451B2 (en) Active optical cable connector plug and active optical cable using same
EP2391061B1 (en) Method, apparatus and system for configuring master-slave network devices
US20120093203A1 (en) Data communication method, communication device, and communication system
CN111427824B (en) Serial port communication circuit
CN112995070B (en) Double-card switching system and method
US20090077275A1 (en) Multiple I/O interfacing system for a storage device and communicating method for the same
CN113032187A (en) High-speed dual-computer hot standby redundancy communication method
CN113300885B (en) Network switching equipment and method
CN101188822B (en) Method and system for master/slave switching of interface board and its implementation interface board
US20070147412A1 (en) Automatic configuration system and method
CN114095462B (en) Fault-tolerant method and system for SRIO communication system of radar processor
CN108737673B (en) Network telephone equipment, external connection card and communication method of network telephone equipment
CN106330357B (en) A kind of transfer check method, node and the system of SERDES
KR100532779B1 (en) Apparatus And Method For Dual Link In Ethernet Interface Equipment
CN100362793C (en) Physic separated controlling circuit and computer system of physic separated network
JPH0697445B2 (en) Recovery device for switching error that may occur in computer I / O system
KR100367428B1 (en) LAN Interface Unit for Internet Interface Units_
JP2010136038A (en) Transmitter, and method for switching system in redundant configuration
KR100296039B1 (en) Method for selecting duplicated link in atm swiching system
JP3149047B2 (en) Redundant data processor
CN113746713B (en) Asynchronous serial bus dynamic configuration method capable of improving communication reliability
CN112596369B (en) Multi-machine redundancy seamless switching system and method thereof
KR102177230B1 (en) Apparatus and method for serial communication control discriminating
US20040042575A1 (en) Communications 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
CP03 Change of name, title or address

Address after: 410000 room 801, accelerator production workshop, building B1, Haichuang science and Technology Industrial Park, No. 627 Lugu Avenue, Changsha high tech Development Zone, Changsha City, Hunan Province

Patentee after: Hunan Xingtian Electronic Technology Co.,Ltd.

Address before: 8a01, building B1, Lugu new Changhai center, Yuelu District, Changsha, Hunan 410000

Patentee before: HUNAN XING TIAN ELECTRONIC TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address