Summary of the invention
Main purpose of the present invention is to provide a kind of board switchover method, switching board, processing veneer and system, to solve the slow-footed problem of the existing switching services of above-mentioned exchanging system at least.
According to an aspect of the present invention, a kind of board switchover method is provided, has comprised: handled veneer and do not receive arrived at cell in the given time, then break off business transmission with first switching board from first switching board; Handle veneer with switching services to the second switching board.
Further; Handle veneer and do not receive arrived at cell in the given time from first switching board; Before then the business of the disconnection and first switching board transmits, also comprise: first switching board stops can to arrive at cell to handling the veneer transmission when detecting fault.
Further, first switching board stops can to arrive at cell to handling the veneer transmission when detecting fault, comprising: when first switching board detects fault, produce a relevant hardware and interrupt, and write the relevant chip register according to hardware interrupts; According to the operating state of the content control that is write in the chip register first switching board, and stop to arrive at cell to handling the veneer transmission.
Further, when first switching board detected fault, stop before the transmission of processing veneer can be arrived at cell, also to comprise: first switching board and second switching board periodically can arrive at cell to handling the veneer transmission through hardware logic.
Further, when first switching board detected fault, stop before the transmission of processing veneer can be arrived at cell, also to comprise: first switching board and second switching board carried out business through the mode of load sharing with the processing veneer and transmit.
According to a further aspect in the invention, a kind of switching board is provided, has comprised: fault detection unit is used to carry out the fault detect of switching board; Transmitting element is used for periodically can arriving at cell to carrying out the professional processing veneer transmission that transmits with switching board; Control unit is used for when switching board breaks down, and the control transmitting element stops can to arrive at cell to handling the veneer transmission.
Further, also comprise: interrupt location, be used for when fault detection unit detects fault, produce a relevant hardware and interrupt; The interrupt response unit, the hardware interrupts that is used for producing according to interrupt location is upgraded the operating state flag bit of switching board at the relevant chip register cell; Then the control unit flag bit control transmitting element that also is used for being preserved according to the chip register unit stops to send and can arriving at cell to handling veneer.
According to another aspect of the invention, a kind of processing veneer is provided, has comprised: receiving element, be used to receive from handle the arrived at cell that veneer carries out the professional switching board that transmits; Switch unit, when being used for not receiving in the given time the arrived at cell from switching board, the business of breaking off with switching board transmits, and with switching services to other switching board.
In accordance with a further aspect of the present invention, a kind of board switchover system is provided, first switching board, second switching board and handle veneer, wherein, first switching board comprises: fault detection unit is used for the fault detect of first switching board; Transmitting element is used for periodically can arriving at cell to carrying out the professional processing veneer transmission that transmits with switching board; Control unit is used for when switching board breaks down, and the control transmitting element stops can to arrive at cell to handling the veneer transmission.The processing veneer comprises: receiving element is used to receive the arrived at cell from first switching board; Switch unit, when being used for not receiving in the given time the arrived at cell from first switching board, the business of breaking off with first switching board transmits, and with switching services to the second switching board.
Further, first switching board and second switching board carry out the business transmission through the mode of load sharing with the processing veneer.
In the present invention; Switching board can arrive at cell with the hardware logic of handling veneer through transmission and confirm whether switching board moves normally; And the cycle that can arrive at cell is us (microsecond) level, and treatment effeciency is high, when breaking down in system; Can realize that professional quick nondestructive switches, guarantee the exchange capacity of system.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Fig. 1 is the board switchover method flow diagram according to the embodiment of the invention, as shown in Figure 1 may further comprise the steps:
Step S102 handles veneer and does not receive the arrived at cell from first switching board in the given time, then breaks off the business transmission with first switching board.
Step S104 handles veneer with switching services to the second switching board.
In said method; Switching board can arrive at cell with the hardware logic of handling veneer through transmission and confirm whether switching board moves normally; And the cycle that can arrive at cell is us (microsecond) level, and treatment effeciency is high, when breaking down in system; Can realize that professional quick nondestructive switches, guarantee the exchange capacity of system.
Wherein, before step S102, also comprise: first switching board stops can to arrive at cell to handling the veneer transmission when detecting fault.Concrete handling process is: when first switching board detects fault, produce a relevant hardware and interrupt, and write the relevant chip register according to hardware interrupts; According to the operating state of the content control that is write in the chip register first switching board, and stop to arrive at cell to handling the veneer transmission.In the present embodiment, adopt the mode of hardware interrupts to notify single board default, make that the response of fault is real-time.
Wherein, before first switching board broke down, first switching board and second exchange were carried out business through the mode of load sharing with the processing veneer and are transmitted.The mode of this load sharing has been practiced thrift system resource to a certain extent.First switching board and second switching board all can arrive at cell through hardware logic to periodically sending to the processing veneer; When the processing veneer is not received the arrived at cell of a certain switching board in the given time; Think that then this switching board breaks down, with the switching board of switching services to another operate as normal.
Fig. 2 is the switching board structural representation according to the embodiment of the invention, and is as shown in Figure 2, and this switching board comprises:fault detection unit 101,control unit 102 and transmittingelement 103, and wherein,fault detection unit 101 is used to carry out the fault detect of switching board; Transmittingelement 103 is used for periodically can arriving at cell to carrying out the professional processing veneer transmission that transmits with switching board;Control unit 102 is used for when switching board breaks down, and control transmittingelement 103 stops can to arrive at cell to handling the veneer transmission.
In this enforcement, switching board can arrive at cell through the hardware logic transmission and give handle veneer, and the cycle that can arrive at cell is us (microsecond) level, makes treatment effeciency high, when breaking down in system, can realize that professional quick nondestructive switches.
Wherein, in above-mentioned veneer, also comprise: interrupt location, be used for when fault detection unit detects fault, produce a relevant hardware and interrupt; The interrupt response unit, the hardware interrupts that is used for producing according to interrupt location is upgraded the operating state flag bit of switching board at the relevant chip register cell; Then the control unit flag bit control transmitting element that also is used for being preserved according to the chip register unit stops to send and can arriving at cell to handling veneer.
Fig. 3 is the processing single plate structure sketch map according to the embodiment of the invention; As shown in Figure 3, this processing veneer comprises: receivingelement 201 andswitch unit 202, wherein; Receivingelement 201, be used to receive from handle the arrived at cell that veneer carries out the professional switching board that transmits;Switch unit 202, when being used for not receiving in the given time the arrived at cell from switching board, the business of breaking off with switching board transmits, and with switching services to other switching board.
In this enforcement; Handle and to arrive at cell through the hardware logic transmission between veneer and the switching board and confirm whether crosspoint moves normally, and the cycle that can arrive at cell is us (microsecond) grade, make the treatment effeciency height; When system breaks down, can realize that professional quick nondestructive switches.
Fig. 4 is the board switchover system configuration sketch map according to the embodiment of the invention; As shown in Figure 4; This system comprises:first switching board 10,second switching board 11 andhandle veneer 20, and wherein,first switching board 10 is identical with second switching board, 11 structures; Include:fault detection unit 101 is used for the fault detect of first switching board; Transmittingelement 103 is used for periodically can arriving at cell to carrying out the professional processing veneer transmission that transmits with switching board;Control unit 102 is used for when switching board breaks down, and the control transmitting element stops can to arrive at cell to handling the veneertransmission.Handling veneer 20 comprises: receivingelement 201 is used to receive the arrived at cell from first switching board;Switch unit 202, when being used for not receiving in the given time the arrived at cell from first switching board, the business of breaking off with first switching board transmits, and with switching services to the second switching board.
In above-mentioned system configuration; Whenfirst switching board 10 andsecond switching board 20 are all in proper working order;First switching board 10 and second switching board, 20 load sharing transport services, but certain crosspoint is handledveneer 20 and is switched the business on the normal operation switching board when breaking down.
Above-mentioned board switchover system can be applied to the redundancy protecting of distributed switching system, can save system resource; Simultaneously, because the relevant information transmission all is to adopt hardware to realize, efficient is high, can realize that the quick nondestructive of business is switched.
Embodiment one
Present embodiment is a board switchover system in the practical application, in the present embodiment, needs switching board software, hardware and processing board software, hardware cooperation to accomplish and switch, and guarantees the exchange capacity of system.The condition that needs is following:
(1) cycle is transmitted " can arrive at cell " (logic realization) between switching board and the processing veneer.When switching board is not worked, will can not send this cell.
(2) the switching board logic needs a register, can control switching board and is in work or off position through operating this register.
(3) hardware provides an interruption, need produce interrupt notification software in the switching board situation of breaking down, and comprises that equipment pulls out switching board, button hard reset, webmaster hard reset etc.
(4) handle the veneer logic and can operate equalizer, the business of controlling this processing veneer transmits toward certain switching board bus.
Fig. 5 is the board switchover system configuration sketch map according to the embodiment of the invention one, and is as shown in Figure 5, comprising: switching board (10,11,12), processing veneer (20,21) and master control veneer 30.Wherein each switching board is handled veneer and is realized that through back board service bus full-mesh is connected each switching board load sharing transport service with each.Each switching board includes aFPGA register 104, can control switching board and is in work or off position through operating this register.Each is handled veneer and includes an equalizer, handles the veneer logic and can operate equalizer, and the business of controlling this processing veneer transmits toward certain switching board bus.Master control veneer 30 comprises a control unit.Switching board, processing veneer are connected through soft HW line (Ethernet) with master control veneer.As shown in Figure 5, when switchingboard 10 produces faults, handleveneer 20 withhandle veneer 21 can be with the switching services ofswitching board 10 to exchangingveneer 11 and/switching board 21.
Embodiment two
Present embodiment is an example with concrete veneer generation hard reset, explains and switches the practical implementation step, and Fig. 6 is the board switchover method flow diagram according to the embodiment of the invention two, and is as shown in Figure 6, may further comprise the steps:
Step S602, the switching board hard reset, hardware detection is pressed to sensitive switch, produces to interrupt.
Step S604, software responses interrupts, and writes the respective chip register, and switching board is not worked.
Step S606, switching board stop to mail to the arrived at cell of handling the veneer direction.
Step S608, processing veneer do not receive and can arrive at cell, handle the business that veneer logical operation equalizer stops to mail to this switching board, switch the business on another switching board.
In the above embodiment of the present invention; Adopt the mode of interruption to notify the software single board default, respond in real time, the while switching board can arrive at cell with processing single plate hardware logic through transmission and confirm whether switching board moves normally (cycle that can arrive at cell is the us level); Treatment effeciency is high; When system breaks down, can realize that professional quick nondestructive switches, guarantee the exchange capacity of system.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.