CN105760260A - Backup system and backup method - Google Patents

Backup system and backup method Download PDF

Info

Publication number
CN105760260A
CN105760260A CN201610094329.8A CN201610094329A CN105760260A CN 105760260 A CN105760260 A CN 105760260A CN 201610094329 A CN201610094329 A CN 201610094329A CN 105760260 A CN105760260 A CN 105760260A
Authority
CN
China
Prior art keywords
plate
forwarding module
sent
status information
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.)
Granted
Application number
CN201610094329.8A
Other languages
Chinese (zh)
Other versions
CN105760260B (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.)
ZHEJIANG DAHUA SYSTEM ENGINEERING CO LTD
Original Assignee
ZHEJIANG DAHUA SYSTEM ENGINEERING 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 ZHEJIANG DAHUA SYSTEM ENGINEERING CO LTD filed Critical ZHEJIANG DAHUA SYSTEM ENGINEERING CO LTD
Priority to CN201610094329.8A priority Critical patent/CN105760260B/en
Publication of CN105760260A publication Critical patent/CN105760260A/en
Application granted granted Critical
Publication of CN105760260B publication Critical patent/CN105760260B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/1608Error detection by comparing the output signals of redundant hardware
    • G06F11/1616Error detection by comparing the output signals of redundant hardware where the redundant component is an I/O device or an adapter therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/1608Error detection by comparing the output signals of redundant hardware
    • G06F11/1625Error detection by comparing the output signals of redundant hardware in communications, e.g. transmission, interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a backup system and a backup method.In the backup system, a configuration station, a dispatching desk and terminals are connected with two service panels through an interface panel, and a switching switch is arranged between the interface panel and the service panels to control one of the service panels to be connected with the configuration station, the dispatching desk and the terminals; switching chips of the service panels are connected so that data transmission between the service panels can be achieved, data transmitted by the main panel can be transmitted to the backup panel after being copied, dispatching, configuration and state received by a processor of the main panel can also be received by a processor of the backup panel, intermediate states of the service panels are consistent, media access control addresses of first network cards of the service panels are the same, and internet protocol addresses are the same.In this way, when the main panel breaks down, the switching switch switches the configuration station, the dispatching desk and the terminals to be connected with the backup panel, seamless switching between the main panel and the backup panel can be achieved, and it is guaranteed that services are uninterrupted after dispatching and configuration are switched, and display is restored in real time after the state is switched.

Description

A kind of standby system and backup method
Technical field
The present invention relates to communication technical field, particularly relate to a kind of standby system and backup method.
Background technology
Internet protocol (InternetProtocol, IP) soft dispatching patcher is with its attributes of network, abundant terminal transparency and powerful multimedia access capability flexibly, it has also become the development trend of dispatching communication.
In the soft dispatching patcher of IP, as shown in Figure 1, service board 100 is deployed with dispatch server 101, call server 102 and data base 103, dispatching desk 110 and configuration station 120 are connected to dispatch server 101 by the external network interface card 104 on interface board network interface 130 and service board 100, and terminal 140 is connected to call server 102 by the external network interface card 104 on interface board network interface 130 and service board 100.Dispatch server 101 can be carried out the configuration work such as terminal configuration, set of terminal configuration, dispatching desk configuration by configuration station 120.Dispatch server 101 can be carried out meeting by dispatching desk 110, group is exhaled, collection call, switching, maintenance, monitoring, intrusion, toll breakdown and the SOT state of termination such as shows at the scheduling operation.Dispatch server 101 is after the configuration order receiving configuration station 120, by relevant configuration item write into Databasce 103;Call server 102, after the order receiving dispatching desk 110, through logical judgment, is sent relevant instruction by dispatch server 101, and call server 102 carries out calling associative operation, finally terminal 140 is controlled.Terminal 140 is all registered to call server 102, it is possible to communicated with each other by call server 102.When call server 102 receives the call request of certain terminal 140, request can be uploaded to dispatch server 101, by whether dispatch server 101 is legal according to configuration determination calling, if it is illegal, then this terminal is carried out on-hook operation by notice call server 102, if legal, then notice call server 102 carries out next step call operation, finally sets up the communication between calling terminal and terminal called.Terminal 140 can be common IP phone, or gentle words machine, or transfers the analog station of digital signal to through gateway.
The soft dispatching patcher of above-mentioned IP is capable of the complicated calling such as exhaling by dispatching desk initiating conference, group, and communication process is transferred, monitors, intrusion, tolls breakdown etc. and to control operation, can show the current talking state of each terminal simultaneously;And, it is also possible to support can actively initiate between the terminal configured calling, and talking state is shown in real time dispatching desk.
In the soft dispatching patcher of IP, when certain service link generation hardware and software failure, will cause that systemic-function lost efficacy, and dispatch, configure and the situation of the service disconnection such as state, accordingly, it would be desirable to dispatching, configure and the business such as state being backed-up.In existing scheduling backup method, although master scheduling server is correspondingly arranged one for dispatch server, but when certain service link generation hardware and software failure, needs re-start registration, the seamless switching of the soft dispatch service of IP can not be realized, it is impossible to ensure scheduling and be arranged in service after switching and do not interrupt and state real-time recovery after handover shows.
Summary of the invention
In view of this, a kind of standby system and backup method are embodiments provided, in order to realize the seamless switching of dispatch service, it is ensured that dispatch and be arranged in service after switching and do not interrupt and state real-time recovery after handover shows.
Therefore, embodiments provide a kind of standby system, including: configuration station, dispatching desk, terminal, interface board, two active and standby each other service board and the switch of the switching between described interface board and two service board;Wherein,
One end of described interface board is connected with described configuration station, described dispatching desk and described terminal respectively, and the other end is connected with described switching switch;
Each described service board includes: exchange chip, processor, the first network interface card and the second network interface card;
In each service board, described exchange chip is connected with described switching switch, and is connected with described processor with described second network interface card respectively through described first network interface card;Exchange chip in two service board is connected for transmitting data between two service board;
In each service board, described processor is connected with described switching switch by switching thread switching control, for controlling described switching switch when the state of this plate is main, the exchange chip of described interface board with this plate is turned on, and be sent to plate by the second network interface card and the exchange chip of this plate after the data transmitted at this plate duplication;Processor in two service board is connected for detection to whether plate breaks down by hardware heartbeat;Processor in two service board is connected for determining the activestandby state to plate by logical judgment line;
The media access control address of the first network interface card in two service board is identical, and Internet protocol address is identical;The media access control address of the second network interface card in two service board is different, and Internet protocol address is different.
In a kind of possible implementation, in the said system that the embodiment of the present invention provides, described processor, specifically for plate being sent by hardware heart beating alignment the level signal in cycle, in current period, determine whether plate is main by logical judgment line;When determining that the state to plate is standby, it is determined that whether the state of this plate is main;If so, next cycle is waited;If it is not, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master.
In a kind of possible implementation, in the said system that the embodiment of the present invention provides, described processor, it is additionally operable in current period, when determining that the state to plate is main by logical judgment line, it is determined that whether the state of this plate is main;When the state determining this plate is standby, determine whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
In a kind of possible implementation, in the said system that the embodiment of the present invention provides, described processor, it is additionally operable in current period, when determining that the state to plate be the main and follow-up state determining this plate is main by logical judgment line, this board status is set to standby, determines whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
In a kind of possible implementation, the embodiment of the present invention provide said system in, described processor, specifically include: to upper forwarding module, dispatch server, data base, to lower forwarding module and call server;Wherein,
Described to upper forwarding module, for after receiving traffic order that dispatching desk sends or the configuration order that configuration station sends and determining that the state of this plate is main, the traffic order of reception or configuration order are copied as two parts, portion is sent to the dispatch server of this plate, by another distribution give to plate to upper forwarding module;Receive to plate on the traffic order that sends of forwarding module or configuration order and determine the state of this plate for standby afterwards, the traffic order of reception or configuration order are sent to the dispatch server of this plate;After the status information receiving the terminal of dispatch server transmission of this plate, it is determined that whether the state of this plate is main, if so, the status information of reception is sent to dispatching desk, if it is not, do not forward the status information of reception;
Described dispatch server, for receive this plate on forwarding module send traffic order after, the traffic order of reception is resolved to call command, store described call command and described call command is sent to this plate to lower forwarding module;Receive this plate on forwarding module send configuration order after, store described configuration order and described configuration order write the data base of this plate;After the status information to the terminal that lower forwarding module sends receiving this plate, store described status information and described status information is sent to this plate to upper forwarding module;After the call request that lower forwarding module is sent receiving this plate, it is judged that whether described call request legal, if so, to this plate to lower forwarding module send call command, if it is not, to this plate to lower forwarding module send hangup command;
Described to lower forwarding module, after the call command sent at the dispatch server receiving this plate or hangup command, whether the state determining this plate is main, if, the call command of reception or hangup command are sent to the call server of this plate, if it is not, do not forward call command or the hangup command of reception;The status information of terminal sent at the call server receiving this plate or call request and after determining that the state of this plate is main, the status information of reception or call request are copied as two parts, portion is sent to the dispatch server of this plate, another part is sent to plate to lower forwarding module;Receive the status information that lower forwarding module is sent to plate or call request and determine the state of this plate for standby afterwards, the status information of reception or call request are sent to the dispatch server of this plate;
Described call server, for after the call command that lower forwarding module is sent receiving this plate or hangup command, it is sent to terminal after described call command or hangup command being resolved, amendment corresponding terminal status information, and the status information of amended terminal is sent to this plate to lower forwarding module;Receive terminal send call request after, the call request of reception is sent to this plate to lower forwarding module.
In a kind of possible implementation, in the said system that the embodiment of the present invention provides, described processor, also include: calling forwarding module;
Described call server, is additionally operable to the status information according to the call command received or hangup command amendment corresponding terminal, and the status information of amended terminal is sent to the calling forwarding module of this plate;
Described calling forwarding module, for after receiving the status information of the terminal that call server sends and determining that the state of this plate is main, the status information of the terminal of reception is copied as two parts, portion is stored in the Information recovering queue of this plate, another part is sent to the calling forwarding module to plate;Receive the terminal that the calling forwarding module to plate sends status information and determine the state of this plate for standby afterwards, the status information of the terminal of reception is stored in the Information recovering queue of this plate.
The embodiment of the present invention additionally provides a kind of backup method, including:
To upper forwarding module after receiving traffic order that dispatching desk sends or the configuration order that configuration station sends and determining that the state of this plate is main, the traffic order of reception or configuration order are copied as two parts, portion is sent to the dispatch server of this plate, by another distribution give to plate to upper forwarding module;To upper forwarding module receive to plate on the traffic order that sends of forwarding module or configuration order and determine the state of this plate for standby afterwards, the traffic order of reception or configuration order are sent to the dispatch server of this plate;
Dispatch server receive this plate on forwarding module send traffic order after, the traffic order of reception is resolved to call command, store described call command and described call command is sent to this plate to lower forwarding module;Dispatch server receive this plate on forwarding module send configuration order after, store described configuration order and described configuration order write the data base of this plate;
To lower forwarding module after the call command that the dispatch server receiving this plate sends, it is determined that whether the state of this plate is main;If so, the call command of reception is sent to the call server of this plate;If it is not, do not forward the call command of reception;
Call server after the call command that lower forwarding module is sent receiving this plate, will described call command resolve after be sent to terminal, the status information of amendment corresponding terminal, and the status information of amended terminal is sent to this plate to lower forwarding module;
The status information of the terminal that lower forwarding module is sent at the call server receiving this plate and after determining that the state of this plate is main, the status information of reception is copied as two parts, portion is sent to the dispatch server of this plate, another part is sent to plate to lower forwarding module;To lower forwarding module receive the status information that lower forwarding module is sent to plate and the state of determining this plate for standby afterwards, the status information of reception is sent to the dispatch server of this plate;
Dispatch server after the status information to the terminal that lower forwarding module sends receiving this plate, store described status information and described status information is sent to this plate to upper forwarding module;
To upper forwarding module after the status information receiving the terminal of dispatch server transmission of this plate, it is determined that whether the state of this plate is main;If so, the status information of reception is sent to dispatching desk;If it is not, do not forward the status information of reception.
In a kind of possible implementation, in the said method that the embodiment of the present invention provides, after call server receives call command, also include:
The call server status information according to the call command amendment corresponding terminal received, and the status information of amended terminal is sent to the calling forwarding module of this plate;
Calling forwarding module is after receiving the status information of the terminal that call server sends and determining that the state of this plate is main, the status information of the terminal of reception is copied as two parts, portion is stored in the Information recovering queue of this plate, another part is sent to the calling forwarding module to plate;Calling forwarding module receive the terminal that the calling forwarding module to plate sends status information and determine the state of this plate for standby afterwards, the status information of the terminal of reception is stored in the Information recovering queue of this plate.
In a kind of possible implementation, in the said method that the embodiment of the present invention provides, the original state of two service board is standby;Also include:
By hardware heart beating alignment, plate is sent the level signal in cycle, in current period, determines whether plate is main by logical judgment line;When determining that the state to plate is standby, it is determined that whether the state of this plate is main;If so, next cycle is waited;If it is not, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master.
In a kind of possible implementation, in the said method that the embodiment of the present invention provides, also include:
In current period, when determining that the state to plate is main by logical judgment line, it is determined that whether the state of this plate is main;When the state determining this plate is standby, determine whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
In a kind of possible implementation, in the said method that the embodiment of the present invention provides, in current period, when determining that the state to plate be the main and follow-up state determining this plate is main by logical judgment line, this board status is set to standby, determines whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
The embodiment of the present invention additionally provides a kind of backup method, including:
Call server receive terminal send call request after, the call request of reception is sent to this plate to lower forwarding module;
Call request that lower forwarding module is sent at the call server receiving this plate and after determining that the state of this plate is main, the call request of reception is copied as two parts, portion is sent to the dispatch server of this plate, another part is sent to plate to lower forwarding module;To lower forwarding module receive the call request that lower forwarding module is sent to plate and the state of determining this plate for standby afterwards, the call request of reception is sent to the dispatch server of this plate;
Dispatch server is after the call request that lower forwarding module is sent receiving this plate, it is judged that whether described call request is legal;If so, to this plate to lower forwarding module send call command;If it is not, to this plate to lower forwarding module send hangup command;
To lower forwarding module after receiving the call command of dispatch server transmission of this plate or hangup command, it is determined that whether the state of this plate is main;If so, the call command of reception or hangup command are sent to the call server of this plate;If it is not, do not forward call command or the hangup command of reception;
Call server is after the call command that lower forwarding module is sent receiving this plate or hangup command, it is sent to terminal after described call command or hangup command being resolved, amendment corresponding terminal status information, and the status information of amended terminal is sent to this plate to lower forwarding module;
The status information of the terminal that lower forwarding module is sent at the call server receiving this plate and after determining that the state of this plate is main, the status information of reception is copied as two parts, portion is sent to the dispatch server of this plate, another part is sent to plate to lower forwarding module;To lower forwarding module receive the status information that lower forwarding module is sent to plate and the state of determining this plate for standby afterwards, the status information of reception is sent to the dispatch server of this plate;
Dispatch server after the status information to the terminal that lower forwarding module sends receiving this plate, store described status information and described status information is sent to this plate to upper forwarding module;
To upper forwarding module after the status information receiving the terminal of dispatch server transmission of this plate, it is determined that whether the state of this plate is main;If so, the status information of reception is sent to dispatching desk;If it is not, do not forward the status information of reception.
In a kind of possible implementation, in the said method that the embodiment of the present invention provides, receive call command or hangup command at call server after, also include:
The call server status information according to the call command received or hangup command amendment corresponding terminal, and the status information of amended terminal is sent to the calling forwarding module of this plate;
Calling forwarding module is after receiving the status information of the terminal that call server sends and determining that the state of this plate is main, the status information of the terminal of reception is copied as two parts, portion is stored in the Information recovering queue of this plate, another part is sent to the calling forwarding module to plate;Calling forwarding module receive the terminal that the calling forwarding module to plate sends status information and determine the state of this plate for standby afterwards, the status information of the terminal of reception is stored in the Information recovering queue of this plate.
In a kind of possible implementation, in the said method that the embodiment of the present invention provides, the original state of two service board is standby;Also include:
By hardware heart beating alignment, plate is sent the level signal in cycle, in current period, determines whether plate is main by logical judgment line;When determining that the state to plate is standby, it is determined that whether the state of this plate is main;If so, next cycle is waited;If it is not, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master.
In a kind of possible implementation, in the said method that the embodiment of the present invention provides, also include:
In current period, when determining that the state to plate is main by logical judgment line, it is determined that whether the state of this plate is main;When the state determining this plate is standby, determine whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
In a kind of possible implementation, in the said method that the embodiment of the present invention provides, in current period, when determining that the state to plate be the main and follow-up state determining this plate is main by logical judgment line, this board status is set to standby, determines whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
The above-mentioned standby system of embodiment of the present invention offer and backup method, in this standby system, configuration station, dispatching desk and terminal are connected with two active and standby each other service board by interface board, switching switch it is provided with, it is possible to control one of two service board and be connected with configuration station, dispatching desk and terminal between interface board and two service board;Transmission data between two service board can be realized owing to the exchange chip in two service board is connected, can transmit to slave board after the data of mainboard transmission replicate, the scheduling that the processor of mainboard receives, configuration and state, the processor of slave board can receive equally, the intermediateness of two service board is consistent, and, the media access control address of the first network interface card of two service board is identical and Internet protocol address is identical, so, when mainboard breaks down, switching switch is by configuration station, dispatching desk and terminal switch to and are connected with slave board, the seamless switching between active and standby plate can be realized, ensure scheduling and be arranged in service after switching and do not interrupt and state real-time recovery after handover shows.
Accompanying drawing explanation
Fig. 1 is the structural representation of the soft dispatching patcher of existing IP;
The structural representation of the standby system that Fig. 2 and Fig. 3 respectively embodiment of the present invention provides;
The flow chart of the backup method that Fig. 4-Fig. 9 respectively embodiment of the present invention provides.
Detailed description of the invention
Below in conjunction with accompanying drawing, the standby system provide the embodiment of the present invention and the detailed description of the invention of backup method are described in detail.
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, all other embodiments that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
A kind of standby system that the embodiment of the present invention provides, as in figure 2 it is shown, include: configuration station 1, dispatching desk 2, terminal 3, interface board 4, two active and standby each other service board 5 and the switch of the switching between interface board 4 and two service board 56;Wherein,
One end of interface board 4 is connected with configuration station 1, dispatching desk 2 and terminal 3 respectively, and the other end is connected with switching switch 6;
Each service board 5 includes: exchange chip 51, processor the 52, first network interface card 53 and the second network interface card 54;
In each service board 5, exchange chip 51 is connected with switching switch 6, and is connected with processor 52 with the second network interface card 54 respectively through the first network interface card 53;Exchange chip 51 in two service board 5 is connected for transmitting data between two service board 5;
In each service board 5, processor 52 is connected with switching switch 6 by switching thread switching control 7, for controlling switching switch 6 when the state of this plate is main, the exchange chip 51 of interface board 4 with this plate is turned on, and be sent to after the data transmitted at this plate duplication plate by the second network interface card 54 and the exchange chip 51 of this plate;Processor 52 in two service board 5 is connected for detection to whether plate breaks down by hardware heartbeat 8;Processor 52 in two service board 5 is connected for determining the activestandby state to plate by logical judgment line 9;
It is identical that the media interviews of the first network interface card 53 in two service board 5 control (MediaAccessControl, MAC) address, and Internet protocol (InternetProtocol, IP) address is identical;The MAC Address of the second network interface card 54 in two service board 5 is different, and IP address is different.
The said system that the embodiment of the present invention provides, configuration station, dispatching desk and terminal are connected with two active and standby each other service board by interface board, switching switch it is provided with, it is possible to control one of two service board and be connected with configuration station, dispatching desk and terminal between interface board and two service board;Transmission data between two service board can be realized owing to the exchange chip in two service board is connected, can transmit to slave board after the data of mainboard transmission replicate, the scheduling that the processor of mainboard receives, configuration and state, the processor of slave board can receive equally, the intermediateness of two service board is consistent, and, the media access control address of the first network interface card of two service board is identical and Internet protocol address is identical, so, when mainboard breaks down, switching switch is by configuration station, dispatching desk and terminal switch to and are connected with slave board, the seamless switching between active and standby plate can be realized, ensure scheduling and be arranged in service after switching and do not interrupt and state real-time recovery after handover shows.
In the specific implementation, in the said system that the embodiment of the present invention provides, as in figure 2 it is shown, interface board 4 specifically can include multiple network interface 40, one end of each network interface 40 is connected with configuration station 1, dispatching desk 2 and terminal 3 respectively, and the other end of each network interface 40 is connected with switching switch 6 respectively.Certainly, interface board can also only include a network interface, and this network interface is connected with configuration station, dispatching desk and terminal respectively by router, does not limit at this.
In the specific implementation, in the said system that the embodiment of the present invention provides, the first network interface card respectively and transmits data for two service board between configuration station, dispatching desk and terminal, the second network interface card is for transmission data between two service board.
It should be noted that in the said system that the embodiment of the present invention provides, the transfer rate of the first network interface card and the second network interface card all can reach gigabit, and the transfer rate of each port of exchange chip all can reach gigabit.
It should be noted that in the said system that the embodiment of the present invention provides, configuration station, dispatching desk and terminal are all be connected with interface board by network.Configuration station both can realize on webpage, it is also possible to realizing on client software, no matter configuration station is with which kind of implementation, and its function is all send configuration information by network.
In the specific implementation, in the said system that the embodiment of the present invention provides, complicated programmable logic device (ComolexProgrammbleLogicDevice can also be set in each service board, CPLD) chip, CPLD chip in each service board is connected with the processor in this plate, it is connected with logical judgment line by hardware heartbeat between CPLD chip in two service board, CPLD chip detection whether plate is broken down and determine the activestandby state to plate, not limiting at this.
It is preferred that in the said system that the embodiment of the present invention provides, it is possible to switching switch is arranged in interface board, as such, it is possible to simplify the structure of standby system.
Certainly, in the said system that the embodiment of the present invention provides, it is also possible to switching switch is separately provided, as in figure 2 it is shown, the said system that the embodiment of the present invention provides can also include: for carrying the backboard 10 of switching switch 6.
In the specific implementation, in the said system that the embodiment of the present invention provides, two service board, can be connected by insertion slot type between interface board and backboard;Or, it is also possible to directly two service board, interface board and backboard are integrated, do not limit at this.
In the specific implementation, in the said system that the embodiment of the present invention provides, the active and standby monitoring programme of a starting up can be all disposed in the processor of two service board, this program can be run in whole backup procedure always, switches the switching of switch in the transmission of the level signal in this program primary responsibility cycle and judgement, the setting of activestandby state of this plate and backboard.When arbitrary service board generation hardware and software failure, active and standby monitoring programme can actively or passively stop, and namely stops to plate transmission level signal.In the said system below embodiment of the present invention provided, the work-based logic of the processor of two service board is described in detail.
In the specific implementation, in the said system that the embodiment of the present invention provides, as in figure 2 it is shown, processor 52 specifically may be used for by hardware heartbeat 8 to the level signal that plate sends the cycle, in current period, determine whether plate is main by logical judgment line 9;When determining that the state to plate is standby, it is determined that whether the state of this plate is main;If so, next cycle is waited;If it is not, write the information that this plate is master, by switching thread switching control 7 control switching switch 6, the exchange chip 51 of interface board 4 and this plate is turned on, this board status is set to master.
In the specific implementation, in the said system that the embodiment of the present invention provides, as in figure 2 it is shown, processor 52 can be also used in current period, when determining that the state to plate is main by logical judgment line 9, it is determined that whether the state of this plate is main;When the state determining this plate is standby, determine whether plate breaks down by hardware heartbeat 8;If so, write the information that this plate is master, by switching thread switching control 7 control switching switch 6, the exchange chip 51 of interface board 4 and this plate is turned on, this board status is set to master;If it is not, wait next cycle.
In the specific implementation, in the said system that the embodiment of the present invention provides, as shown in Figure 2, processor 52 can be also used in current period, when determining that the state to plate be the main and follow-up state determining this plate is main by logical judgment line 9, this board status is set to standby, determines whether plate breaks down by hardware heartbeat 8;If so, write the information that this plate is master, by switching thread switching control 7 control switching switch 6, the exchange chip 51 of interface board 4 and this plate is turned on, this board status is set to master;If it is not, wait next cycle.
It should be noted that, in the said system that the embodiment of the present invention provides, processor in two service board all can send the level signal in cycle by hardware heart beating alignment the other side, simply there is sequencing in the processor transmission level signal in two service board, further, the sequencing of the processor transmission level signal in two service board is random.Specifically, when the state determining two service board is all standby, in two service board, the preferential service board writing the information that this plate is master is then mainboard, and another service board is then slave board;Such as, the information that this plate is main can be write in the CPLD chip of this plate, service board in the preferential CPLD chip that the information that this plate is main writes this plate is then mainboard, and it is main information thus being slave board that the CPLD chip in another service board can stop the processor in this plate to write this plate.
In the specific implementation, in the said system that the embodiment of the present invention provides, as it is shown on figure 3, processor 52, specifically may include that to upper forwarding module 521, dispatch server 522, data base 523, to lower forwarding module 524 and call server 525;Wherein,
Upper forwarding module 521 can be obtained from active and standby monitoring programme the activestandby state of this plate, for after receiving traffic order that dispatching desk 2 sends or the configuration order that configuration station 1 sends and determining that the state of this plate is main, the traffic order of reception or configuration order are copied as two parts, portion is sent to the dispatch server 522 of this plate, by another distribution give to plate to upper forwarding module 521;Receive to plate on the traffic order that sends of forwarding module 521 or configuration order and determine the state of this plate for standby afterwards, the traffic order of reception or configuration order are sent to the dispatch server 522 of this plate;After the status information receiving the terminal of dispatch server 522 transmission of this plate, it is determined that whether the state of this plate is main, if so, the status information of reception is sent to dispatching desk 2, if it is not, do not forward the status information of reception;
Dispatch server 522, for receive this plate on after the traffic order that sends of forwarding module 521, the traffic order of reception is resolved to call command, storage call command and call command is sent to this plate to lower forwarding module 524;Receive this plate on after the configuration order that sends of forwarding module 521, configuration order is also write the data base 523 of this plate by storage configuration order;Receive this plate to lower forwarding module 524 send terminal 3 status information after, storage status information and status information is sent to this plate to upper forwarding module 521;After the call request that lower forwarding module 524 is sent receiving this plate, it is judged that whether call request is legal, if so, to this plate, lower forwarding module 524 is sent call command, if it is not, lower forwarding module 524 is sent hangup command to this plate;
To lower forwarding module 524, the activestandby state of this plate can be obtained from active and standby monitoring programme, after the call command sent at the dispatch server 522 receiving this plate or hangup command, whether the state determining this plate is main, if, the call command of reception or hangup command are sent to the call server 525 of this plate, if it is not, do not forward call command or the hangup command of reception;The status information of terminal sent at the call server 525 receiving this plate or call request and after determining that the state of this plate is main, the status information of reception or call request are copied as two parts, portion is sent to the dispatch server 522 of this plate, another part is sent to plate to lower forwarding module 524;Receive the status information that lower forwarding module 524 is sent to plate or call request and determine the state of this plate for standby afterwards, the status information of reception or call request are sent to the dispatch server 522 of this plate;
Call server 525, for after the call command that lower forwarding module 524 is sent receiving this plate or hangup command, it is sent to terminal 3 after call command or hangup command being resolved, the status information (such as ring, off-hook, on-hook, the state such as busy) of amendment corresponding terminal, and the status information of amended terminal 3 is sent to this plate to lower forwarding module 524;Receive terminal 3 send call request after, the call request of reception is sent to this plate to lower forwarding module 524;So, scheduling, configuration and the state that the dispatch server 522 of mainboard receives, the dispatch server 522 of slave board can receive equally, and the intermediateness of the two is consistent;When mainboard breaks down, oneself can be set to master by active and standby monitoring programme by slave board, and by switching switch 6, configuration station 1, dispatching desk 2 and terminal 3 is switched to this plate;Owing to the MAC Address of the first network interface card 53 of two service board 5 is identical and IP address is identical, therefore, after handover, configuration station 1, dispatching desk 2 and terminal 3 all can not find that dispatch server 522 switches, and, the intermediateness of the dispatch server 522 of the mainboard after switching all exists, such that it is able to realize the Hot Spare seamless switching of dispatch server 522;Can inquiring the configuration before switching in configuration station 1, dispatching desk 2 can inquire the scheduler task before switching and intermediateness, thus ensureing scheduling and being arranged in service after switching and do not interrupt and state real-time recovery after handover shows.
In the specific implementation, in the said system that the embodiment of the present invention provides, upper forwarding module can be merged in dispatch server, and/or, lower forwarding module can be merged in dispatch server, do not limit at this.
It should be noted that in the said system that the embodiment of the present invention provides, receive after the message of dispatch server and terminal at call server, can go to create or destroy channel information and the session information that call needs according to type of message.Each channel information and session information can have respective identity card (Identification, ID) number, and this No. ID is that characteristic according to call server randomly generates.If the call server of two service board receives the message from dispatch server and terminal simultaneously, for same information, the call server of mainboard and the call server of slave board may be respectively created channel information or the session information of different No. ID, so, may result in the channel information before and after switching, No. ID of session information inconsistent, consequently, it is possible to cause call server Hot Spare handoff failure, namely when mainboard breaks down, it is impossible to fast quick-recovery communication process, guarantee communication process do not interrupt.
Based on this, in the said system that the embodiment of the present invention provides, as it is shown on figure 3, processor 52, it is also possible to including: calling forwarding module 526;
Call server 525, is additionally operable to the status information (i.e. channel information and session information) according to the call command received or hangup command amendment corresponding terminal, and the status information of amended terminal is sent to the calling forwarding module 526 of this plate;
Calling forwarding module 526, the activestandby state of this plate can be obtained from active and standby monitoring programme, for after receiving the status information of the terminal that call server 525 sends and determining that the state of this plate is main, the status information of the terminal of reception is copied as two parts, portion is stored in the Information recovering queue of this plate, another part is sent to the calling forwarding module 526 to plate;Receive the terminal that the calling forwarding module 526 to plate sends status information and determine the state of this plate for standby afterwards, the status information of the terminal of reception is stored in the Information recovering queue of this plate;So, after mainboard breaks down, oneself can be set to master by active and standby monitoring programme by slave board, and by switching switch 6, configuration station 1, dispatching desk 2 and terminal 3 is switched to this plate;Owing to the MAC Address of the first network interface card 53 of two service board 5 is identical and IP address is identical, therefore, after handover, terminal 3 can not find that call server 525 switches, and, the active and standby monitoring programme of the mainboard after switching is notified that the call server 525 of this plate takes out existing channel information and session information from Information recovering queue, and the content according to passage and session information, relevant terminal 3 is exhaled again, so that the terminal 3 being in talking state before switching can realize continuing call, it is achieved communication process does not interrupt.
It should be noted that, in the said system that the embodiment of the present invention provides, the status information of terminal is a kind of status information that call server is arranged for terminal after receiving the call command or hangup command that lower forwarding module is sent, such as, the state of this terminal is set to hook state by call server after receiving hangup command, and this hook state is the status information of this terminal.Further, call server can produce two kinds of SOT states of termination, a kind of for ring, off-hook, on-hook, the status information such as busy, and these status informations can show for the state of dispatching desk by lower forwarding module is sent to dispatch server;Another kind is channel information and session information, and the two status information can be sent to the call server to plate for ensureing fast quick-recovery of conversing after active-standby switch by calling forwarding module.
In sum, the said system that the embodiment of the present invention provides can meet the Hot Spare of dispatching desk scheduling and terminal call simultaneously, when fault occurs, it is capable of the soft dispatch service of seamless switching IP, ensure scheduling and be arranged in service after switching and do not interrupt and state real-time recovery after handover shows, and, it is also possible to fast quick-recovery communication process, it is ensured that communication process does not interrupt.
It should be noted that, the said system that the embodiment of the present invention provides is by the frame mode of single IP address and single MAC Address, it is achieved whole machine frame is externally transparent, and extraneous business device not can recognise that the inside is two independent service board, as such, it is possible to be substantially reduced the requirement of business device to external world.If two service board do not adopt single IP address and the mode of single MAC Address, to realize warm standby function, just require that extraneous business device attempts the ability using two IP addresses to carry out reconnecting after possessing broken string, and it is unpractical for requiring that the equipment that third party manufacturer produces all has this ability, further, the time also resulting in the cost of whole handoff procedure is greatly increased.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of backup method, as shown in Figure 4, comprises the steps:
S401, to upper forwarding module after receiving traffic order that dispatching desk sends or the configuration order that configuration station sends and determining that the state of this plate is main, the traffic order of reception or configuration order are copied as two parts, portion is sent to the dispatch server of this plate, by another distribution give to plate to upper forwarding module;To upper forwarding module receive to plate on the traffic order that sends of forwarding module or configuration order and determine the state of this plate for standby afterwards, the traffic order of reception or configuration order are sent to the dispatch server of this plate;
S402, dispatch server receive this plate on after the traffic order that sends of forwarding module, the traffic order of reception is resolved to call command, storage call command and call command is sent to this plate to lower forwarding module;Dispatch server receive this plate on after the configuration order that sends of forwarding module, configuration order is also write the data base of this plate by storage configuration order;
S403, to lower forwarding module receive this plate dispatch server send call command after, it is determined that whether the state of this plate is main;If so, step S404 is then performed;If it is not, then perform step S405;
S404, the call command of reception is sent to by lower forwarding module the call server of this plate;
S405, lower forwarding module is not forwarded the call command of reception;
S406, call server are after the call command that lower forwarding module is sent receiving this plate, it is sent to terminal after call command being resolved, amendment corresponding terminal status information, and the status information of amended terminal is sent to this plate to lower forwarding module;The status information of terminal herein is ring, off-hook, on-hook, busy etc.;
S407, the status information of the terminal that lower forwarding module is sent at the call server receiving this plate and after determining that the state of this plate is main, the status information of reception is copied as two parts, portion is sent to the dispatch server of this plate, another part is sent to plate to lower forwarding module;To lower forwarding module receive the status information that lower forwarding module is sent to plate and the state of determining this plate for standby afterwards, the status information of reception is sent to the dispatch server of this plate;
S408, dispatch server after the status information to the terminal that lower forwarding module sends receiving this plate, storage status information and status information is sent to this plate to upper forwarding module;
S409, to upper forwarding module receive this plate dispatch server send terminal status information after, it is determined that whether the state of this plate is main;If so, step S410 is then performed;If it is not, then perform step S411;
S410, the status information of reception is sent to dispatching desk by upper forwarding module;
S411, upper forwarding module is not forwarded the status information of reception.
The said method that the embodiment of the present invention provides, scheduling, configuration and the state that the dispatch server of mainboard receives, the dispatch server of slave board can receive equally, and the intermediateness of the two is consistent;When mainboard breaks down and switches to slave board, owing to the MAC Address of the first network interface card of two service board is identical and IP address is identical, therefore, after handover, configuration station, dispatching desk and terminal all can not find that dispatch server switches, further, the intermediateness of the dispatch server of the mainboard after switching all exists, such that it is able to realize the Hot Spare seamless switching of dispatch server;Can inquiring the configuration before switching in configuration station, dispatching desk can inquire the scheduler task before switching and intermediateness, thus ensureing scheduling and being arranged in service after switching and do not interrupt and state real-time recovery after handover shows.
It should be noted that, the said method that the embodiment of the present invention provides, it is actively initiated configuration, call by configuration station, dispatching desk, in the specific implementation, before step S401 in performing the said method that the embodiment of the present invention provides, can also include: configuration station by interface board to mainboard to upper forwarding module send configuration order, dispatching desk by interface board to mainboard to upper forwarding module send traffic order.
It is preferred that in the said method that the embodiment of the present invention provides, after call server receives call command, as shown in Figure 5, it is also possible to comprise the steps:
S501, the call server status information according to the call command amendment corresponding terminal received, and the status information of amended terminal is sent to the calling forwarding module of this plate;The status information of terminal herein is channel information and session information;
S502, calling forwarding module are after receiving the status information of the terminal that call server sends and determining that the state of this plate is main, the status information of the terminal of reception is copied as two parts, portion is stored in the Information recovering queue of this plate, another part is sent to the calling forwarding module to plate;Calling forwarding module receive the terminal that the calling forwarding module to plate sends status information and determine the state of this plate for standby afterwards, the status information of the terminal of reception is stored in the Information recovering queue of this plate;So, when mainboard breaks down and switches to slave board, owing to the MAC Address of the first network interface card of two service board is identical and IP address is identical, therefore, after handover, terminal can not find that call server switches, and, the active and standby monitoring programme of the mainboard after switching is notified that the call server of this plate takes out existing channel information and session information from Information recovering queue, and the content according to passage and session information, relevant terminal is exhaled again, so that the terminal being in talking state before switching can realize continuing call, realize communication process not interrupt.
It should be noted that, in the said method that the embodiment of the present invention provides, the status information of terminal is a kind of status information that call server is arranged for terminal after receiving the call command or hangup command that lower forwarding module is sent, such as, the state of this terminal is set to hook state by call server after receiving hangup command, and this hook state is the status information of this terminal.Further, call server can produce two kinds of SOT states of termination, a kind of for ring, off-hook, on-hook, the status information such as busy, and these status informations can show for the state of dispatching desk by lower forwarding module is sent to dispatch server;Another kind is channel information and session information, and the two status information can be sent to the call server to plate for ensureing fast quick-recovery of conversing after active-standby switch by calling forwarding module.
In sum, the said method that the embodiment of the present invention provides can meet the Hot Spare of dispatching desk scheduling and terminal call simultaneously, when fault occurs, it is capable of the soft dispatch service of seamless switching IP, ensure scheduling and be arranged in service after switching and do not interrupt and state real-time recovery after handover shows, and, it is also possible to fast quick-recovery communication process, it is ensured that communication process does not interrupt.
In the specific implementation, in the said method that the embodiment of the present invention provides, can be carried out the setting of activestandby state of the transmission of level signal in cycle and judgement, this plate and backboard switch the operation such as switching of switch by the active and standby monitoring programme of starting up, this program can be run in whole backup procedure always, this program is mainly when arbitrary service board generation hardware and software failure, active and standby monitoring programme can actively or passively stop, and namely stops to plate transmission level signal.The said method below embodiment of the present invention provided being determined, the work-based logic of the activestandby state of two service board is described in detail.
In the specific implementation, in the said method that the embodiment of the present invention provides, the original state of two service board is standby;As shown in Figure 6, it is also possible to comprise the steps:
S601, by hardware heart beating alignment to plate send the cycle level signal;
S602, in current period, determine whether plate is main by logical judgment line;If it is not, then perform step S603;
Whether S603, the state determining this plate are main;If so, then wait next cycle, namely return step S601;If it is not, then perform step S604-step S606;
S604, to write this plate be main information;
S605, the exchange chip of interface board with this plate is turned on by switching on-off control line traffic control switching switch;
S606, this board status is set to master.
In the specific implementation, perform the embodiment of the present invention provide said method in step S602, in current period, by logical judgment line determine whether be main to plate time, if so, as shown in Figure 6, it is also possible to comprise the steps:
Whether S607, the state determining this plate are main;If it is not, then perform step S608;
S608, determine whether plate breaks down by hardware heartbeat;If so, step S604-step S606 is then performed;If it is not, then wait next cycle, namely return step S601.
In the specific implementation, the step S607 in performing the said method that the embodiment of the present invention provides, determine when whether the state of this plate is main, if so, as shown in Figure 6, it is also possible to comprise the steps:
S609, this board status is set to standby;
Step S609 in performing the said method that the embodiment of the present invention provides, is set to this board status for afterwards, performs the step S608 in the said method that the embodiment of the present invention provides.
In the specific implementation, in the said method that the embodiment of the present invention provides, complicated programmable logic device (ComolexProgrammbleLogicDevice can also be set in each service board, CPLD) chip, CPLD chip in each service board is connected with the processor in this plate, it is connected with logical judgment line by hardware heartbeat between CPLD chip in two service board, CPLD chip detection whether plate is broken down and determine the activestandby state to plate, not limiting at this.
It should be noted that, in the said method that the embodiment of the present invention provides, two service board all can send the level signal in cycle by hardware heart beating alignment the other side, simply there is sequencing in two service board transmission level signals, further, the sequencing of two service board transmission level signals is random.Specifically, when the state determining two service board is all standby, in two service board, the preferential service board writing the information that this plate is master is then mainboard, and another service board is then slave board;Such as, the information that this plate is main can be write in the CPLD chip of this plate, service board in the preferential CPLD chip that the information that this plate is main writes this plate is then mainboard, and it is main information thus being slave board that the CPLD chip in another service board can stop this plate to write this plate.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of backup method, as it is shown in fig. 7, comprises following steps:
S701, call server receive terminal send call request after, the call request of reception is sent to this plate to lower forwarding module;
S702, the call request that lower forwarding module is sent at the call server receiving this plate and after determining that the state of this plate is main, the call request of reception is copied as two parts, portion is sent to the dispatch server of this plate, another part is sent to plate to lower forwarding module;To lower forwarding module receive the call request that lower forwarding module is sent to plate and the state of determining this plate for standby afterwards, the call request of reception is sent to the dispatch server of this plate;
S703, dispatch server are after the call request that lower forwarding module is sent receiving this plate, it is judged that whether call request is legal;If so, step S704 is then performed;If it is not, then perform step S705;
S704, dispatch server to this plate to lower forwarding module send call command;
S705, dispatch server to this plate to lower forwarding module send hangup command;
S706, to lower forwarding module receive this plate dispatch server send call command or hangup command after, it is determined that whether the state of this plate is main;If so, step S707 is then performed;If it is not, then perform step S708;
S707, the lower forwarding module call command by reception or hangup command are sent to the call server of this plate;
S708, lower forwarding module is not forwarded call command or the hangup command of reception;
S709, call server are after the call command that lower forwarding module is sent receiving this plate or hangup command, it is sent to terminal after call command or hangup command being resolved, amendment corresponding terminal status information, and the status information of amended terminal is sent to this plate to lower forwarding module;The status information of terminal herein is ring, off-hook, on-hook, busy etc.;
S710, the status information of the terminal that lower forwarding module is sent at the call server receiving this plate and after determining that the state of this plate is main, the status information of reception is copied as two parts, portion is sent to the dispatch server of this plate, another part is sent to plate to lower forwarding module;To lower forwarding module receive the status information that lower forwarding module is sent to plate and the state of determining this plate for standby afterwards, the status information of reception is sent to the dispatch server of this plate;
S711, dispatch server after the status information to the terminal that lower forwarding module sends receiving this plate, storage status information and status information is sent to this plate to upper forwarding module;
S712, to upper forwarding module receive this plate dispatch server send terminal status information after, it is determined that whether the state of this plate is main;If so, step S713 is then performed;If it is not, then perform step S714;
S713, the status information of reception is sent to dispatching desk by upper forwarding module;
S714, upper forwarding module is not forwarded the status information of reception.
The said method that the embodiment of the present invention provides, scheduling, configuration and the state that the dispatch server of mainboard receives, the dispatch server of slave board can receive equally, and the intermediateness of the two is consistent;When mainboard breaks down and switches to slave board, owing to the MAC Address of the first network interface card of two service board is identical and IP address is identical, therefore, after handover, configuration station, dispatching desk and terminal all can not find that dispatch server switches, further, the intermediateness of the dispatch server of the mainboard after switching all exists, such that it is able to realize the Hot Spare seamless switching of dispatch server;Can inquiring the configuration before switching in configuration station, dispatching desk can inquire the scheduler task before switching and intermediateness, thus ensureing scheduling and being arranged in service after switching and do not interrupt and state real-time recovery after handover shows.
It should be noted that, the said method that the embodiment of the present invention provides, is actively initiated call by terminal, in the specific implementation, before step S701 in performing the said method that the embodiment of the present invention provides, it is also possible to including: terminal sends call request by interface board to the call server of mainboard.
It is preferred that the step S709 in performing the said method that the embodiment of the present invention provides, receive call command or hangup command at call server after, as shown in Figure 8, it is also possible to comprise the steps:
S801, the call server status information according to the call command received or hangup command amendment corresponding terminal, and the status information of amended terminal is sent to the calling forwarding module of this plate;The status information of terminal herein is channel information and session information;
S802, calling forwarding module are after receiving the status information of the terminal that call server sends and determining that the state of this plate is main, the status information of the terminal of reception is copied as two parts, portion is stored in the Information recovering queue of this plate, another part is sent to the calling forwarding module to plate;Calling forwarding module receive the terminal that the calling forwarding module to plate sends status information and determine the state of this plate for standby afterwards, the status information of the terminal of reception is stored in the Information recovering queue of this plate;So, when mainboard breaks down and switches to slave board, owing to the MAC Address of the first network interface card of two service board is identical and IP address is identical, therefore, after handover, terminal can not find that call server switches, and, the active and standby monitoring programme of the mainboard after switching is notified that the call server of this plate takes out existing channel information and session information from Information recovering queue, and the content according to passage and session information, relevant terminal is exhaled again, so that the terminal being in talking state before switching can realize continuing call, realize communication process not interrupt.
It should be noted that, in the said method that the embodiment of the present invention provides, the status information of terminal is a kind of status information that call server is arranged for terminal after receiving the call command or hangup command that lower forwarding module is sent, such as, the state of this terminal is set to hook state by call server after receiving hangup command, and this hook state is the status information of this terminal.Further, call server can produce two kinds of SOT states of termination, a kind of for ring, off-hook, on-hook, the status information such as busy, and these status informations can show for the state of dispatching desk by lower forwarding module is sent to dispatch server;Another kind is channel information and session information, and the two status information can be sent to the call server to plate for ensureing fast quick-recovery of conversing after active-standby switch by calling forwarding module.
In sum, the said method that the embodiment of the present invention provides can meet the Hot Spare of dispatching desk scheduling and terminal call simultaneously, when fault occurs, it is capable of the soft dispatch service of seamless switching IP, ensure scheduling and be arranged in service after switching and do not interrupt and state real-time recovery after handover shows, and, it is also possible to fast quick-recovery communication process, it is ensured that communication process does not interrupt.
In the specific implementation, in the said method that the embodiment of the present invention provides, can be carried out the setting of activestandby state of the transmission of level signal in cycle and judgement, this plate and backboard switch the operation such as switching of switch by the active and standby monitoring programme of starting up, this program can be run in whole backup procedure always, this program is mainly when arbitrary service board generation hardware and software failure, active and standby monitoring programme can actively or passively stop, and namely stops to plate transmission level signal.The said method below embodiment of the present invention provided being determined, the work-based logic of the activestandby state of two service board is described in detail.
In the specific implementation, in the said method that the embodiment of the present invention provides, the original state of two service board is standby;As shown in Figure 9, it is also possible to comprise the steps:
S901, by hardware heart beating alignment to plate send the cycle level signal;
S902, in current period, determine whether plate is main by logical judgment line;If it is not, then perform step S903;
Whether S903, the state determining this plate are main;If so, then wait next cycle, namely return step S901;If it is not, then perform step S904-step S906;
S904, to write this plate be main information;
S905, the exchange chip of interface board with this plate is turned on by switching on-off control line traffic control switching switch;
S906, this board status is set to master.
In the specific implementation, perform the embodiment of the present invention provide said method in step S902, in current period, by logical judgment line determine whether be main to plate time, if so, as shown in Figure 9, it is also possible to comprise the steps:
Whether S907, the state determining this plate are main;If it is not, then perform step S908;
S908, determine whether plate breaks down by hardware heartbeat;If so, step S904-step S906 is then performed;If it is not, then wait next cycle, namely return step S901.
In the specific implementation, the step S907 in performing the said method that the embodiment of the present invention provides, determine when whether the state of this plate is main, if so, as shown in Figure 9, it is also possible to comprise the steps:
S909, this board status is set to standby;
Step S909 in performing the said method that the embodiment of the present invention provides, is set to this board status for afterwards, performs the step S908 in the said method that the embodiment of the present invention provides.
In the specific implementation, in the said method that the embodiment of the present invention provides, complicated programmable logic device (ComolexProgrammbleLogicDevice can also be set in each service board, CPLD) chip, CPLD chip in each service board is connected with the processor in this plate, it is connected with logical judgment line by hardware heartbeat between CPLD chip in two service board, CPLD chip detection whether plate is broken down and determine the activestandby state to plate, not limiting at this.
It should be noted that, in the said method that the embodiment of the present invention provides, two service board all can send the level signal in cycle by hardware heart beating alignment the other side, simply there is sequencing in two service board transmission level signals, further, the sequencing of two service board transmission level signals is random.Specifically, when the state determining two service board is all standby, in two service board, the preferential service board writing the information that this plate is master is then mainboard, and another service board is then slave board;Such as, the information that this plate is main can be write in the CPLD chip of this plate, service board in the preferential CPLD chip that the information that this plate is main writes this plate is then mainboard, and it is main information thus being slave board that the CPLD chip in another service board can stop this plate to write this plate.
A kind of standby system of embodiment of the present invention offer and backup method, in this standby system, configuration station, dispatching desk and terminal are connected with two active and standby each other service board by interface board, switching switch it is provided with, it is possible to control one of two service board and be connected with configuration station, dispatching desk and terminal between interface board and two service board;Transmission data between two service board can be realized owing to the exchange chip in two service board is connected, can transmit to slave board after the data of mainboard transmission replicate, the scheduling that the processor of mainboard receives, configuration and state, the processor of slave board can receive equally, the intermediateness of two service board is consistent, and, the media access control address of the first network interface card of two service board is identical and Internet protocol address is identical, so, when mainboard breaks down, switching switch is by configuration station, dispatching desk and terminal switch to and are connected with slave board, the seamless switching between active and standby plate can be realized, ensure scheduling and be arranged in service after switching and do not interrupt and state real-time recovery after handover shows.
Obviously, the present invention can be carried out various change and modification without deviating from the spirit and scope of the present invention by those skilled in the art.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (16)

1. a standby system, it is characterised in that including: configuration station, dispatching desk, terminal, interface board, two active and standby each other service board and the switch of the switching between described interface board and two service board;Wherein,
One end of described interface board is connected with described configuration station, described dispatching desk and described terminal respectively, and the other end is connected with described switching switch;
Each described service board includes: exchange chip, processor, the first network interface card and the second network interface card;
In each service board, described exchange chip is connected with described switching switch, and is connected with described processor with described second network interface card respectively through described first network interface card;Exchange chip in two service board is connected for transmitting data between two service board;
In each service board, described processor is connected with described switching switch by switching thread switching control, for controlling described switching switch when the state of this plate is main, the exchange chip of described interface board with this plate is turned on, and be sent to plate by the second network interface card and the exchange chip of this plate after the data transmitted at this plate duplication;Processor in two service board is connected for detection to whether plate breaks down by hardware heartbeat;Processor in two service board is connected for determining the activestandby state to plate by logical judgment line;
The media access control address of the first network interface card in two service board is identical, and Internet protocol address is identical;The media access control address of the second network interface card in two service board is different, and Internet protocol address is different.
2. the system as claimed in claim 1, it is characterised in that described processor, specifically for plate is sent the level signal in cycle by hardware heart beating alignment, in current period, determines whether plate is main by logical judgment line;When determining that the state to plate is standby, it is determined that whether the state of this plate is main;If so, next cycle is waited;If it is not, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master.
3. system as claimed in claim 2, it is characterised in that described processor, is additionally operable in current period, when determining that the state to plate is main by logical judgment line, it is determined that whether the state of this plate is main;When the state determining this plate is standby, determine whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
4. system as claimed in claim 3, it is characterised in that described processor, it is additionally operable in current period, when determining that the state to plate be the main and follow-up state determining this plate is main by logical judgment line, this board status is set to standby, determines whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
5. the system as described in any one of claim 1-4, it is characterised in that described processor, specifically includes: to upper forwarding module, dispatch server, data base, to lower forwarding module and call server;Wherein,
Described to upper forwarding module, for after receiving traffic order that dispatching desk sends or the configuration order that configuration station sends and determining that the state of this plate is main, the traffic order of reception or configuration order are copied as two parts, portion is sent to the dispatch server of this plate, by another distribution give to plate to upper forwarding module;Receive to plate on the traffic order that sends of forwarding module or configuration order and determine the state of this plate for standby afterwards, the traffic order of reception or configuration order are sent to the dispatch server of this plate;After the status information receiving the terminal of dispatch server transmission of this plate, it is determined that whether the state of this plate is main, if so, the status information of reception is sent to dispatching desk, if it is not, do not forward the status information of reception;
Described dispatch server, for receive this plate on forwarding module send traffic order after, the traffic order of reception is resolved to call command, store described call command and described call command is sent to this plate to lower forwarding module;Receive this plate on forwarding module send configuration order after, store described configuration order and described configuration order write the data base of this plate;After the status information to the terminal that lower forwarding module sends receiving this plate, store described status information and described status information is sent to this plate to upper forwarding module;After the call request that lower forwarding module is sent receiving this plate, it is judged that whether described call request legal, if so, to this plate to lower forwarding module send call command, if it is not, to this plate to lower forwarding module send hangup command;
Described to lower forwarding module, after the call command sent at the dispatch server receiving this plate or hangup command, whether the state determining this plate is main, if, the call command of reception or hangup command are sent to the call server of this plate, if it is not, do not forward call command or the hangup command of reception;The status information of terminal sent at the call server receiving this plate or call request and after determining that the state of this plate is main, the status information of reception or call request are copied as two parts, portion is sent to the dispatch server of this plate, another part is sent to plate to lower forwarding module;Receive the status information that lower forwarding module is sent to plate or call request and determine the state of this plate for standby afterwards, the status information of reception or call request are sent to the dispatch server of this plate;
Described call server, for after the call command that lower forwarding module is sent receiving this plate or hangup command, it is sent to terminal after described call command or hangup command being resolved, amendment corresponding terminal status information, and the status information of amended terminal is sent to this plate to lower forwarding module;Receive terminal send call request after, the call request of reception is sent to this plate to lower forwarding module.
6. system as claimed in claim 5, it is characterised in that described processor, also includes: calling forwarding module;
Described call server, is additionally operable to the status information according to the call command received or hangup command amendment corresponding terminal, and the status information of amended terminal is sent to the calling forwarding module of this plate;
Described calling forwarding module, for after receiving the status information of the terminal that call server sends and determining that the state of this plate is main, the status information of the terminal of reception is copied as two parts, portion is stored in the Information recovering queue of this plate, another part is sent to the calling forwarding module to plate;Receive the terminal that the calling forwarding module to plate sends status information and determine the state of this plate for standby afterwards, the status information of the terminal of reception is stored in the Information recovering queue of this plate.
7. the backup method of the standby system as described in claim 5 or 6, it is characterised in that including:
To upper forwarding module after receiving traffic order that dispatching desk sends or the configuration order that configuration station sends and determining that the state of this plate is main, the traffic order of reception or configuration order are copied as two parts, portion is sent to the dispatch server of this plate, by another distribution give to plate to upper forwarding module;To upper forwarding module receive to plate on the traffic order that sends of forwarding module or configuration order and determine the state of this plate for standby afterwards, the traffic order of reception or configuration order are sent to the dispatch server of this plate;
Dispatch server receive this plate on forwarding module send traffic order after, the traffic order of reception is resolved to call command, store described call command and described call command is sent to this plate to lower forwarding module;Dispatch server receive this plate on forwarding module send configuration order after, store described configuration order and described configuration order write the data base of this plate;
To lower forwarding module after the call command that the dispatch server receiving this plate sends, it is determined that whether the state of this plate is main;If so, the call command of reception is sent to the call server of this plate;If it is not, do not forward the call command of reception;
Call server after the call command that lower forwarding module is sent receiving this plate, will described call command resolve after be sent to terminal, the status information of amendment corresponding terminal, and the status information of amended terminal is sent to this plate to lower forwarding module;
The status information of the terminal that lower forwarding module is sent at the call server receiving this plate and after determining that the state of this plate is main, the status information of reception is copied as two parts, portion is sent to the dispatch server of this plate, another part is sent to plate to lower forwarding module;To lower forwarding module receive the status information that lower forwarding module is sent to plate and the state of determining this plate for standby afterwards, the status information of reception is sent to the dispatch server of this plate;
Dispatch server after the status information to the terminal that lower forwarding module sends receiving this plate, store described status information and described status information is sent to this plate to upper forwarding module;
To upper forwarding module after the status information receiving the terminal of dispatch server transmission of this plate, it is determined that whether the state of this plate is main;If so, the status information of reception is sent to dispatching desk;If it is not, do not forward the status information of reception.
8. method as claimed in claim 7, it is characterised in that after call server receives call command, also include:
The call server status information according to the call command amendment corresponding terminal received, and the status information of amended terminal is sent to the calling forwarding module of this plate;
Calling forwarding module is after receiving the status information of the terminal that call server sends and determining that the state of this plate is main, the status information of the terminal of reception is copied as two parts, portion is stored in the Information recovering queue of this plate, another part is sent to the calling forwarding module to plate;Calling forwarding module receive the terminal that the calling forwarding module to plate sends status information and determine the state of this plate for standby afterwards, the status information of the terminal of reception is stored in the Information recovering queue of this plate.
9. method as claimed in claim 7 or 8, it is characterised in that the original state of two service board is standby;Also include:
By hardware heart beating alignment, plate is sent the level signal in cycle, in current period, determines whether plate is main by logical judgment line;When determining that the state to plate is standby, it is determined that whether the state of this plate is main;If so, next cycle is waited;If it is not, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master.
10. method as claimed in claim 9, it is characterised in that also include:
In current period, when determining that the state to plate is main by logical judgment line, it is determined that whether the state of this plate is main;When the state determining this plate is standby, determine whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
11. method as claimed in claim 10, it is characterized in that, in current period, when determining that the state to plate be the main and follow-up state determining this plate is main by logical judgment line, this board status is set to standby, determines whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
12. the backup method of the standby system as described in claim 5 or 6, it is characterised in that including:
Call server receive terminal send call request after, the call request of reception is sent to this plate to lower forwarding module;
Call request that lower forwarding module is sent at the call server receiving this plate and after determining that the state of this plate is main, the call request of reception is copied as two parts, portion is sent to the dispatch server of this plate, another part is sent to plate to lower forwarding module;To lower forwarding module receive the call request that lower forwarding module is sent to plate and the state of determining this plate for standby afterwards, the call request of reception is sent to the dispatch server of this plate;
Dispatch server is after the call request that lower forwarding module is sent receiving this plate, it is judged that whether described call request is legal;If so, to this plate to lower forwarding module send call command;If it is not, to this plate to lower forwarding module send hangup command;
To lower forwarding module after receiving the call command of dispatch server transmission of this plate or hangup command, it is determined that whether the state of this plate is main;If so, the call command of reception or hangup command are sent to the call server of this plate;If it is not, do not forward call command or the hangup command of reception;
Call server is after the call command that lower forwarding module is sent receiving this plate or hangup command, it is sent to terminal after described call command or hangup command being resolved, amendment corresponding terminal status information, and the status information of amended terminal is sent to this plate to lower forwarding module;
The status information of the terminal that lower forwarding module is sent at the call server receiving this plate and after determining that the state of this plate is main, the status information of reception is copied as two parts, portion is sent to the dispatch server of this plate, another part is sent to plate to lower forwarding module;To lower forwarding module receive the status information that lower forwarding module is sent to plate and the state of determining this plate for standby afterwards, the status information of reception is sent to the dispatch server of this plate;
Dispatch server after the status information to the terminal that lower forwarding module sends receiving this plate, store described status information and described status information is sent to this plate to upper forwarding module;
To upper forwarding module after the status information receiving the terminal of dispatch server transmission of this plate, it is determined that whether the state of this plate is main;If so, the status information of reception is sent to dispatching desk;If it is not, do not forward the status information of reception.
13. method as claimed in claim 12, it is characterised in that receive call command or hangup command at call server after, also include:
The call server status information according to the call command received or hangup command amendment corresponding terminal, and the status information of amended terminal is sent to the calling forwarding module of this plate;
Calling forwarding module is after receiving the status information of the terminal that call server sends and determining that the state of this plate is main, the status information of the terminal of reception is copied as two parts, portion is stored in the Information recovering queue of this plate, another part is sent to the calling forwarding module to plate;Calling forwarding module receive the terminal that the calling forwarding module to plate sends status information and determine the state of this plate for standby afterwards, the status information of the terminal of reception is stored in the Information recovering queue of this plate.
14. the method as described in claim 12 or 13, it is characterised in that the original state of two service board is standby;Also include:
By hardware heart beating alignment, plate is sent the level signal in cycle, in current period, determines whether plate is main by logical judgment line;When determining that the state to plate is standby, it is determined that whether the state of this plate is main;If so, next cycle is waited;If it is not, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master.
15. method as claimed in claim 14, it is characterised in that also include:
In current period, when determining that the state to plate is main by logical judgment line, it is determined that whether the state of this plate is main;When the state determining this plate is standby, determine whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
16. method as claimed in claim 15, it is characterized in that, in current period, when determining that the state to plate be the main and follow-up state determining this plate is main by logical judgment line, this board status is set to standby, determines whether plate breaks down by hardware heartbeat;If so, write the information that this plate is master, by switching on-off control line traffic control switching switch, the exchange chip of described interface board with this plate is turned on, this board status is set to master;If it is not, wait next cycle.
CN201610094329.8A 2016-02-19 2016-02-19 A kind of standby system and backup method Active CN105760260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610094329.8A CN105760260B (en) 2016-02-19 2016-02-19 A kind of standby system and backup method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610094329.8A CN105760260B (en) 2016-02-19 2016-02-19 A kind of standby system and backup method

Publications (2)

Publication Number Publication Date
CN105760260A true CN105760260A (en) 2016-07-13
CN105760260B CN105760260B (en) 2018-07-06

Family

ID=56330971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610094329.8A Active CN105760260B (en) 2016-02-19 2016-02-19 A kind of standby system and backup method

Country Status (1)

Country Link
CN (1) CN105760260B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656617A (en) * 2016-12-29 2017-05-10 杭州迪普科技股份有限公司 Master-slave switching method and device
CN108762992A (en) * 2018-04-20 2018-11-06 平安科技(深圳)有限公司 Main/standby switching method, device, computer equipment and storage medium
CN109474475A (en) * 2018-12-07 2019-03-15 天津津航计算技术研究所 The switching system of dual redundant network interface card under windows XPE
CN109728915A (en) * 2018-12-07 2019-05-07 天津津航计算技术研究所 The switching method of dual redundant network interface card under windows XPE
CN111474885A (en) * 2020-04-29 2020-07-31 江苏建筑职业技术学院 Solar wireless intelligent networking control platform
CN111722880A (en) * 2020-05-11 2020-09-29 深圳市共进电子股份有限公司 Equipment production method, device, terminal equipment and medium
CN112436953A (en) * 2020-08-14 2021-03-02 上海幻电信息科技有限公司 Page data backup and disaster tolerance page display method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257541A (en) * 2008-01-30 2008-09-03 天地(常州)自动化股份有限公司 Digital program controlled scheduling communication system based on IP technique and its working method
CN102843263A (en) * 2012-09-18 2012-12-26 浙江省电力公司 Remote backup method for dispatcher station
CN103064769A (en) * 2012-12-30 2013-04-24 长沙湘计海盾科技有限公司 Dual hot standby server system
US20140072115A1 (en) * 2012-09-12 2014-03-13 Petr Makagon System and method for dynamic configuration of contact centers via templates

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257541A (en) * 2008-01-30 2008-09-03 天地(常州)自动化股份有限公司 Digital program controlled scheduling communication system based on IP technique and its working method
US20140072115A1 (en) * 2012-09-12 2014-03-13 Petr Makagon System and method for dynamic configuration of contact centers via templates
CN102843263A (en) * 2012-09-18 2012-12-26 浙江省电力公司 Remote backup method for dispatcher station
CN103064769A (en) * 2012-12-30 2013-04-24 长沙湘计海盾科技有限公司 Dual hot standby server system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656617A (en) * 2016-12-29 2017-05-10 杭州迪普科技股份有限公司 Master-slave switching method and device
CN108762992B (en) * 2018-04-20 2021-10-08 平安科技(深圳)有限公司 Main/standby switching method and device, computer equipment and storage medium
CN108762992A (en) * 2018-04-20 2018-11-06 平安科技(深圳)有限公司 Main/standby switching method, device, computer equipment and storage medium
WO2019200751A1 (en) * 2018-04-20 2019-10-24 平安科技(深圳)有限公司 Host and backup computer switching method, apparatus, computing device and storage medium
CN109474475A (en) * 2018-12-07 2019-03-15 天津津航计算技术研究所 The switching system of dual redundant network interface card under windows XPE
CN109728915A (en) * 2018-12-07 2019-05-07 天津津航计算技术研究所 The switching method of dual redundant network interface card under windows XPE
CN109474475B (en) * 2018-12-07 2020-12-01 天津津航计算技术研究所 Switching system of dual-redundancy network card under windows XPE
CN109728915B (en) * 2018-12-07 2020-12-01 天津津航计算技术研究所 Switching method of dual-redundancy network card under windows XPE
CN111474885A (en) * 2020-04-29 2020-07-31 江苏建筑职业技术学院 Solar wireless intelligent networking control platform
CN111722880A (en) * 2020-05-11 2020-09-29 深圳市共进电子股份有限公司 Equipment production method, device, terminal equipment and medium
CN111722880B (en) * 2020-05-11 2024-02-09 深圳市共进电子股份有限公司 Equipment production method and device, terminal equipment and medium
CN112436953A (en) * 2020-08-14 2021-03-02 上海幻电信息科技有限公司 Page data backup and disaster tolerance page display method and device
CN112436953B (en) * 2020-08-14 2023-11-24 上海幻电信息科技有限公司 Page data backup and disaster recovery page display method and device

Also Published As

Publication number Publication date
CN105760260B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN105760260A (en) Backup system and backup method
CN109151807B (en) Method and system for binding main card and auxiliary card of dual-card dual-standby mobile terminal
CN101051883B (en) Service switching method and system after main voice server fault restoring
CN101150439A (en) A method, system and device for realizing master/slave switching
CN102143288B (en) Disaster recovery method and disaster recovery device in call center
CN105871592A (en) Duplicated hot-redundancy method of telephone dispatching device in distributed system architecture
CN112532452B (en) Method, device, equipment and storage medium for switching main server and standby server of communication terminal
CN101208941B (en) Method and system for automatic contact distribution utilizing presence detection
CN101753339B (en) Method for realizing conference backup function of multi-point control unit and system thereof
CN103702065A (en) Backup system and method of video conference system
CN104967732A (en) Information processing method and electronic device
CN113055539A (en) Communication system based on VoIP dual-redundancy exchange server
CN101123603A (en) Configurable Ethernet interface backup system and method
CN101217293B (en) Media operation trusteeship switching system and method
CN101247499B (en) Network port backup method of MCU, MCU and video system
CN103051484B (en) Session service processing method, system and Session Border Controll
CN101188787B (en) Disaster tolerance method and system for home register
CN103179102A (en) Method, device and system for desktop virtualization
CN103200148A (en) Method, device and system of registration of internet protocol (IP) private branch exchange (PBX)
CN100499696C (en) Method for solving interior and exterior simultaneous robbing under signaling and service separate structure
CN102571310B (en) The disaster recovery method of Voice Mail Service and device
CN102215272B (en) Method and system for emergency switching
CN101938496B (en) Call control method, device and system for attendant console
CN202334584U (en) Integrated services digital network (ISDN) gateway
CN208094697U (en) Video conferencing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant