CN100581272C - Stacked switchboard system and keep-alive method of stacked switchboard system - Google Patents

Stacked switchboard system and keep-alive method of stacked switchboard system Download PDF

Info

Publication number
CN100581272C
CN100581272C CN200710178400A CN200710178400A CN100581272C CN 100581272 C CN100581272 C CN 100581272C CN 200710178400 A CN200710178400 A CN 200710178400A CN 200710178400 A CN200710178400 A CN 200710178400A CN 100581272 C CN100581272 C CN 100581272C
Authority
CN
China
Prior art keywords
switch
stacking opening
host exchange
state
exchange
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200710178400A
Other languages
Chinese (zh)
Other versions
CN101159883A (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN200710178400A priority Critical patent/CN100581272C/en
Publication of CN101159883A publication Critical patent/CN101159883A/en
Application granted granted Critical
Publication of CN100581272C publication Critical patent/CN100581272C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a slave system and a slave system keep-alive method. The slave system keep-alive method includes: a subordinate switch detects the state of the subordinate switch stacking port; the subordinate switch judges whether the stacking port state changes; when the subordinate switch stacking port state changes from connected to cut-off, the subordinate switch detected change is the subordinate switch stacking port type in cut-off state; if the subordinate stacking port in cut-off state is far stacking port, the subordinate switch sends out cut-off message to a master switch. The invention has the advantages of realizing stacking equipment keep-alive method by detecting the switch stacking port state in the stacking switch system, and notifying stacking connection lost and resumed information to other switches in the stacking system, by sending out message and delivering stacking port, when the switch detects the stacking port cut-off or connected.

Description

The keepalive method of stacked switchboard system and stacked switchboard system
Technical field
The present invention is about switch technology, especially in regard to keep-alive (keepalive) method of stacked switchboard system and stacked switchboard system.
Background technology
In catenet, the mode that adopts stacked switch usually is to satisfy the requirement of catenet to port number.Special-purpose stube cable that provides by manufacturer or common cable are connected the stacking opening of switch with the stacking opening of another switch, to realize the expansion of entire equipment port number.Generally have only stackable switch just to possess stack port, nearly stacking opening " up " as shown in fig. 1 and stacking opening " down " far away.Effect when a plurality of switches link together by the mode of piling up manages so that be taken as a switch just as a switch.The Stackable switch can be realized the expansion to network easily, ideal selection when being New-deployed Network, but not only increased the user port number of unified management, can also the unified management of many switches also be used to the user and provide convenient.
Generally speaking, when a plurality of exchange pilings together the time, be divided into host exchange and from switch according to the function of each switch in piling up.In order to realize piling up down management to many switches, host exchange with from needing to utilize some particular type message to carry out information interaction between the switch by stacking opening, with the realization host exchange to managing from switch.Host exchange need move variety of protocol and directly receive user's management information, and is communicated to from switch after resolving.From switch mainly is to receive the information that host exchange transmits, and gives host exchange with the information announcement of oneself.Neither move agreement from switch, also directly do not accept user's management.
Host exchange with generally comprise administrative message and data message from the mutual information of inter-exchange.Administrative message be host exchange with from the mutual message of exchanger information.Need certain is configured from switch in for example piling up, after host exchange is packaged into special packet with relevant configuration information, be dealt into from switch by stacking opening from the CPU of host exchange, receive this message from switch, message is sealed off again, convert relevant configuration information to, be set to from switch.Data message is meant the exchanges data message under stack manner, is meant all messages that the non-management message is outer.Administrative message and data message are shared cpu resource.In addition, these data messages send and reception on by other port of non-stacking opening when piling up that subset is inner to be transmitted, and data message need pass through stacking opening when transmitting equally between subset.
As shown in Figure 2, stacked switch by host exchange and from switch totally two switches form.Host exchange with from switch 20 ports and 1 stacking opening are arranged all.Dotted line is represented data message among Fig. 2, and solid line is represented administrative message, as can be seen from Figure 2, host exchange with all need to pass through stacking opening from the administrative message and the data message of inter-exchange; And host exchange and also will handle simultaneously from the data message on the port with from the data message and the administrative message of stacking opening from switch CPU separately.
Because user port bandwidth summation generally all surpasses the bandwidth of stack port, as shown in Figure 2, from switch 20 ports is arranged, the maximum bandwidth of each port is 100Mbps, and is 1000Mbps from the stacking opening bandwidth that switch links to each other with host exchange.When all of the port from switch all with 100Mbps speed when host exchange sends message, the speed that at this moment is sent to the data message of stacking opening just reaches 24*100Mbps, 2400Mbps altogether is considerably beyond the bandwidth of stacking opening.
Thereby in system shown in Figure 2, because host exchange and from the administrative message of switch processes and data message share this equipment cpu resource and host exchange and from the data message speed of inter-exchange stacking opening surpass host exchange with from problems such as inter-exchange stacking opening bandwidth, host exchange with just may be dropped from the administrative message of inter-exchange because bandwidth is not enough, thereby caused the accident of administrative message under big flow to abandon.
And being used for guaranteeing the equipment of stacked switch, prior art confirms that each other whether the keep-alive that keepalive method adopted (keepalive) message of operate as normal is exactly a kind of administrative message of particular type; whether host exchange is by the keepalive administrative message and from switch communication, normal to guarantee host exchange and all to understand the present operation of the other side in real time from switch.And occur just initiatively stopping to send the Keepalive message when unusual from switch operation when a certain, host exchange will not have this from the Keepalive message of switch and think from switch and break down because of receiving in limiting time like this, at this moment main equipment also stops to send the Keepalive message to other all slave units, and other slave unit also in limiting time, can't receive main equipment Keepalive message and the system of recognizing breaks down.All devices in piling up like this is not all owing to receive that in time the Keepalive message resets oneself, thereby causes whole system to reset.
Therefore in Fig. 2 system, if host exchange and from switch because cpu resource or stacking opening bandwidth deficiency cause administrative message to be lost, so host exchange with just might in a period of time, can't receive the Keepalive message from switch, break down and take for the other side's switch, thus the situation of generation wrong report fault.
Summary of the invention
For solving the problems of the technologies described above, a purpose of the present invention provides a kind of keepalive method of stacked switchboard system.
An order of the present invention provides a kind of keepalive method of host exchange.
Another object of the present invention is to provide a kind of host exchange in the stacked switchboard system.
Still a further object of the present invention provides a kind of from switch in the stacked switchboard system.
The present invention does not detect the identification switch running status by detecting the stacking opening state recognition switch running status of switch and do not re-use existing keep-alive (keepalive) message.
For achieving the above object, the invention provides a kind of keepalive method of stacked switchboard system, this stacked switchboard system keepalive method comprises: detect from exchange piling mouth state from switch; Judge whether change from switch from exchange piling mouth state; When judged result for becoming when disconnecting by connection from exchange piling mouth state, be the type from the exchange piling mouth of off-state from the switch change detected; If testing result be changed to off-state when the exchange piling mouth is stacking opening far away, send from switch and to disconnect message to host exchange; Host exchange detects whether receive the disconnection message; If testing result is that host exchange has been received the disconnection message, the stacking opening far away state from switch far away that the ratio of host exchange system mode registration form record disconnects the message correspondence is set to lose, and what the stacking opening far away that the stacking opening far away of disconnection message correspondence and ratio disconnect the message correspondence was far away is set to disconnect from the state of exchange piling mouth the system mode registration form; Whether host exchange detects the host exchange timer and starts; If testing result is that the host exchange timer does not start, host exchange starts the host exchange timer.The invention provides a kind of stacked switchboard system, this stacked switchboard system comprises host exchange and from switch, host exchange and be interconnected to constitute stacked switchboard system by stacking opening from switch and from switch and between the switch, wherein host exchange comprises: the host exchange detecting unit, be used to detect host exchange stacking opening off-state or connection status and export the host exchange control unit to;
The host exchange timer is used for the host exchange of host exchange control unit setting is counted resetting time, and exports the host exchange reset signal during resetting time to the host exchange control unit at counting arrival host exchange;
The host exchange memory cell is used for the storage system status registration form, and the system mode registration form is used for record: host exchange stacking opening state, from the state of exchange piling mouth and from switch status;
The host exchange communication unit is used for the stacking opening of message by host exchange that reset transferred to stacking opening from switch; The disconnection message that the stacking opening of host exchange is received be connected message and be forwarded to the host exchange control unit;
The host exchange control unit is used to the startup or the cancellation that are set host exchange resetting time and control the host exchange timer, the host exchange stacking opening state of system mode registration form record is set, from the state of exchange piling mouth, from switch status; Generate the message that resets according to the host exchange reset signal, after the message that will reset exports the host exchange communication unit to host exchange is resetted;
Comprise from switch:
From the switch detecting unit, be used to detect from the off-state or the connection status of the stacking opening of switch and export to from the switch control unit;
From the switch timer, be used for according to counting and exporting during resetting time from the switch reset signal extremely from the switch control unit from switch resetting time from the setting of switch control unit in counting arrival from switch;
From the switch memory cell, be used to store this equipment state registration form from switch, this equipment state registration form is used to write down type from the exchange piling mouth, from exchange piling mouth state, close preceding state from the exchange piling mouth; From the switch communication unit, the message that resets that receives is transmitted to control unit from switch; To disconnect message from the connection that the switch control unit generates and be connected message transmissions to host exchange.
Beneficial effect of the present invention is that by sending the mode of message and the state that transmits stacking opening, the ruuning situation of each switch in the identification stacked switchboard system is to realize keep-alive (Keepalive) method of stack equipment.Compare with the stacked switchboard system that uses the keep-alive message; switch in the stacked switchboard system of the present invention no longer needs to handle a large amount of keep-alive messages and improved detection efficiency, thereby is specially adapted to adopt the switch cluster of stack manner centralized management.
In addition, when fault that stacked switchboard system of the present invention causes because of non-stacking opening connectivity problem, switch is by initiatively closing stacking opening and can reach and stacking opening disconnecting identical effect.
Description of drawings
The following drawings only is intended to the present invention done and schematically illustrates and explain, not delimit the scope of the invention.Wherein,
Figure 1 shows that exchange piling cause for gossip thing connection layout
Figure 2 shows that the forwarding schematic diagram of administrative message and data message between stacked switch.
Figure 3 shows that the stacked switchboard system structural representation;
Figure 4 shows that another stacked switchboard system structural representation;
Figure 5 shows that stacked switchboard system detects stacking opening among Fig. 3 and Fig. 4 disconnects the flow chart that is connected;
Figure 6 shows that the flow chart of host exchange joint detection method among Fig. 3 and Fig. 4;
Figure 7 shows that and pile up master/slave switch architecture schematic diagram among Fig. 3 and Fig. 4.
Embodiment
Understand for technical characterictic of the present invention, purpose and effect being had more clearly, now contrast description of drawings the specific embodiment of the present invention.Wherein, identical parts adopt identical label.
Fig. 3, Figure 4 shows that the stacked switchboard system structural representation, wherein the difference of Fig. 3 and Fig. 4 be system pile up in the residing position of host exchange different.
Among Fig. 3, switch S4 is a host exchange, switch S1, S2, S3, S5, S6 be connected with host exchange S4 from switch.A, B, C, D, E, H, I, J represent respectively the stacking opening from switch S1, S2, S3, S5, S6 respectively.Connecting the stacking opening of host exchange and connect from the near stacking opening from switch of host exchange from switch from switch is nearly stacking opening from switch.Stacking opening A among Fig. 3, C, E, H, J are respectively the nearly stacking opening from switch S1, S2, S3, S5 and S6.Connecting than it from switch is stacking opening far away from switch from the host exchange stacking opening from switch far away.Stacking opening B, D, I are respectively the stacking opening far away from switch S2, S3, S5 among Fig. 3.
In like manner, among Fig. 4, from switch S2 ', S3 ', S4 ', S5 ', the nearly stacking opening of S6 ' is B ', D ', F ', H ', J '; From switch S2 ', S3 ', S4 ', the stacking opening far away of S5 ' is C ', E ', G ', I '.
In Fig. 3, stacked switchboard system shown in Figure 4, the switch more farther than stacking opening represent than this stacking opening from host exchange farther from switch, the stacking opening more farther than stacking opening represent from the switch stacking opening far away and than from the stacking opening far away of switch from the host exchange stacking opening from switch far away.
Among Fig. 3, than stacking opening E farther be from switch S2, S1 from switch.The stacking opening more farther than stacking opening E has stacking opening D far away and stacking opening B, C, the A from switch S2, S1 on more farther apart from host exchange than switch S3.For the stacking opening G on the host exchange, the equipment more farther than stacking opening G has switch S5, S6, and the stacking opening more farther than stacking opening G is stacking opening H, I, the J of switch S5 and S6.
Figure 7 shows that the structural representation of the master/slave switch of stacked switchboard system among Fig. 3 and Fig. 4, master/slave switch is provided with timer, port detecting unit, memory cell, control unit, communication unit.
Main exchange comprises: the port detecting unit of host exchange, detect the off-state or the connection status of host exchange stacking opening and export the host exchange control unit to.
The host exchange timer is counted the host exchange of host exchange control unit setting resetting time, when the counting arrival host exchange of host exchange timer is exported the host exchange reset signal to the host exchange control unit during resetting time.
The host exchange memory cell is used for the storage system status registration form, and the system mode registration form records: number, the host exchange stacking opening of host exchange stacking opening state, host exchange stacking opening are closed preceding state; From exchange piling mouth state and from switch status.
The host exchange communication unit, the message that will reset transfers to from the exchange piling mouth by the host exchange stacking opening; The disconnection message that the host exchange stacking opening is received be connected message and be forwarded to the host exchange control unit.
The host exchange control unit is used to the startup that is set host exchange resetting time and controls the host exchange timer or cancellation to the host exchange counting of resetting time.The host exchange control unit generates according to the host exchange reset signal and host exchange is resetted after resetting message and exporting the host exchange stacking opening to.The disconnection message that the host exchange control unit is transmitted according to the host exchange communication unit or connect message and revise in the system mode registration form from the state of exchange piling mouth and/or from the state of switch; The state that the host exchange control unit is revised the host exchange stacking opening of system mode registration form record according to the off-state and the connection status of the host exchange stacking opening of host exchange port detecting unit detection; The control module of host exchange according to the host exchange stacking opening off-state of the number of host exchange stacking opening in the system mode registration form and host exchange Port detecting unit inspection the host exchange stacking opening is carried out closing control and the host exchange stacking opening closed front state recording in the system mode registration form or close according to the host exchange stacking opening number that records in the connection status of the host exchange stacking opening of host exchange Port detecting unit inspection and the system mode registration form and host exchange stacking opening before state, to the carrying out of host exchange stacking opening closing control not.
In addition, host exchange can also select to be provided with display unit.The content that the system mode registration form that display control interface and host exchange control unit read of being used for display unit writes down.
Comprise from switch: the port detecting unit is used to detect off-state and recovery connection status from the exchange piling mouth.
From the switch control unit, be used to be provided with start from switch resetting time and control from the switch timer or cancellation to from the switch counting of resetting time.From the switch control unit according to the message or reset from switch of resetting from the count value control to from switch resetting time of switch timer from the switch communication unit forwards; From the switch control unit according to detect from the switch ports themselves detecting unit from the off-state of exchange piling mouth and recover connection status and generate the disconnection message and be connected message and state from the exchange piling mouth is set this equipment state registration form; From the switch control unit according to this equipment state registration form from switch the off-state of nearly stacking opening and recover connection status, the stacking opening far away from switch is closed/is not closed and starts or cancel from the switch timer from the switch counting of resetting time.
This equipment state of cell stores registration form from switch.This equipment state registration form is used for the state of minute book from the nearly stacking opening and the stacking opening far away of switch;
Be transmitted to from the switch control unit by the message that resets that receives from the exchange piling mouth from the communication unit of switch; The disconnection message that will generate from the switch control unit be connected message by transport to the stacking opening of host exchange from the exchange piling oral instructions.
Below in conjunction with Fig. 3-Fig. 6, by a plurality of execution modes being elaborated to stacked switchboard system among the present invention and keepalive method thereof:
Execution mode one
Please consult Fig. 3, Fig. 5, Fig. 6 earlier.After all switch S1-S6 started among Fig. 3, each switch ports themselves detecting unit adopted existing detection mode to detect the operating state of each port on this equipment.Because embodiment of the present invention relates generally to the operating state of exchange piling mouth, thus in embodiment of the present invention only the operating state to the detected stacking opening of port detecting unit describe.The operating state of the detected stacking opening of port detecting unit mainly is divided into connection (linkup) and disconnects (linkdown) two kinds.Wherein: connect expression exchange piling mouth and be in connection status, can E-Packet.Disconnect (Linkdown), the stacking opening of expression switch is in off-state, can not E-Packet.
When the stacking opening B from switch S2 hinders disconnection for some reason, detect the off-state of stacking opening B and export to from the port detecting unit of switch S2 from the control unit of switch S2, the state that will receive the stacking opening B that writes down the off-state of stacking opening B and this equipment state registration form from the control unit of switch S2 compares, and judges whether the state of stacking opening B changes.If the state of the stacking opening B of this equipment state registration form that control unit reads record is for connecting, then control unit is by the state of the stacking opening B that relatively receives and the state of the stacking opening B of this equipment state registration form record, and the state of judgement stacking opening B is changed to disconnection by connection.The control unit of host exchange S2 judges that according to the stacking opening type that writes down in this equipment state registration form the type of stacking opening B is a stacking opening far away, and the state of the stacking opening B from this equipment state of control unit registration form of switch S2 is set to disconnect.Generate stacking opening B from the control unit of switch S2 according to the off-state of the stacking opening B far away of this equipment state registration form record and disconnect message and export communication unit to, in existing connection-oriented mode stacking opening B is disconnected message is sent to host exchange S4 by nearly stacking opening C stacking opening F by communication unit.
Because of stacking opening B disconnects, be connected disconnection between stacking opening A and the stacking opening B.Detect the off-state of stacking opening A and export to from the port detecting unit of switch S1 from the control unit of switch S1.From the control unit of switch S1 the off-state of the stacking opening A that receives and state from the stacking opening A of this equipment state of switch S1 registration form record are compared.When the state of judging stacking opening A from the control unit of switch S1 is changed to disconnection by connection, judge the type of stacking opening A according to the stacking opening type of this equipment state registration form record from the control unit of switch S1.When the type of stacking opening A is that nearly stacking opening and stacking opening A are during from the unique stacking opening of switch S1, from the control unit of switch S1 earlier the state of the stacking opening A of this equipment state registration form record be set to disconnect, off-state according to the nearly stacking opening A of this equipment state registration form record starts timer again, by from switch S1 timer to counting resetting time from the setting of switch S1 control unit from switch S1.
The communication unit of host exchange S4 receives stacking opening B by stacking opening F and disconnects the control unit that is forwarded to host exchange S4 behind the message.The state with stacking opening B disconnects the corresponding stacking opening B of message of the control unit system mode registration form of host exchange S4 record is set to disconnect, than stacking opening B far away be set to lose from the state of switch S1 the system mode registration form, stacking opening A the state in system state table far away than stacking opening B is set to disconnect.
The control unit of host exchange S4 receives when stacking opening B disconnects message judges whether the timer of host exchange S4 starts.If the timer of host exchange S4 does not start, then the control unit of host exchange S4 startup host exchange S4 timer is counted the host exchange S4 of host exchange S4 control unit setting resetting time.
The control unit of host exchange S4 also can read write down in the system mode registration form from the state of switch and stacking opening and be sent to display unit so that by the state notifying user of display unit with stacked switchboard system.
Before the counting that the counting from switch S1 timer arrives its resetting time and host exchange S4 timer arrives its resetting time, if be excluded from the fault of the stacking opening B of switch S2, to detect stacking opening B state be connection status and export the control unit from switch S2 to from the port detecting unit of switch S2.From the control unit of switch S2 the stacking opening B connection status that the receives state with the stacking opening B of this equipment state registration form record is compared, the state of judgement stacking opening B is changed to connection by disconnection.Judge that according to the type of the stacking opening of this equipment state registration form record stacking opening B is a stacking opening far away from the control unit of switch S2.Generating stacking opening B from the control unit of switch S2 according to the connection status of the stacking opening B of this equipment state registration form record connects message and exports communication unit to.From the communication unit of switch S2 stacking opening B is connected message is sent to host exchange S4 by nearly stacking opening C stacking opening F.
Because stacking opening B recover to connect, be connected recovery between stacking opening A and the stacking opening B.Detect the connection status of stacking opening A and export control unit to from the port detecting unit of switch S1 from switch S1.From switch S1 control unit the stacking opening A connection status that the receives state with the stacking opening A of this equipment state registration form record is compared, the state of judgement stacking opening A is changed to connection by disconnection.Judge that from the stacking opening type that switch S1 control unit writes down according to this equipment state registration form stacking opening A is that nearly stacking opening and stacking opening A are from the unique stacking opening of switch S1, the state of the stacking opening A from this equipment state of control unit registration form of switch S1 is set to connect and cancels from the counting of the timer of switch S1 according to the connection status of nearly stacking opening A.Generate stacking opening A from the control unit of switch S1 according to the connection status of stacking opening A this equipment state registration form and connect message and export communication unit to, by stacking opening A stacking opening A is connected the stacking opening F that message is sent to host exchange S4 by communication unit from switch S1.
The communication unit of host exchange S4 will receive by stacking opening F and be forwarded to host exchange S4 control unit after stacking opening A connects message and stacking opening B is connected message.The stacking opening A of host exchange S4 control unit system mode registration form record and the state of stacking opening B are set to be connected.
Whole stacking opening states in the host exchange S4 detection system state registration form judge whether the stacking opening of system mode registration form record all is connection status.If the testing result of host exchange S4 control unit is the stacking opening of system mode registration form record when all being connection status, the control unit of host exchange S4 will all be set to normally and cancel the timer of host exchange S4 from the state of switch in the system mode registration form.
Write down in the host exchange S4 control unit reading system state registration form from the state of switch and stacking opening and be sent to display unit.The user understands the system failure and is excluded by the stacking opening of the display unit demonstration of host exchange S4 and the state of switch.
Because from switch S2 only is that stacking opening B far away disconnects and connecting, thereby still be in connection status from the nearly stacking opening C of switch S2 and stacking opening D from switch S3.Still can transmit or receive message from switch S2 by nearly stacking opening C.
If the fault of stacking opening B is not got rid of, recover to have arrived resetting time from switch S1 timer counting before the connection from the stacking opening A of switch S1 from switch S1, generate reset signal and export to from switch S1 timer from the control unit of switch S1, by from the control unit of switch S1 to resetting from switch S1.
If the counting of host exchange S4 timer arrived host exchange S4 before resetting time, what the system mode registration form write down still is in lost condition from switch S 1, and the timer of host exchange S4 generates reset signal and also exports host exchange S4 control unit to.Host exchange S4 control unit generates according to reset signal and resets message and export host exchange S4 communication unit to.By host exchange S4 communication unit by stacking opening F or G will reset message be sent to stacking opening C respectively from switch S2, from the stacking opening E of switch S3, from the stacking opening H of switch S5, from the stacking opening J of switch S6.Treating that host exchange S4 sends to finish resets after the message, and host exchange S4 control unit control host exchange S4 resets.Receive the message that resets of host exchange from switch S2, S3, S5, S6 after, each switch control unit resets to this equipment respectively, makes all switches of the stacked switchboard system among Fig. 3 can realize resetting.
In the present embodiment, no longer send the operation conditions that keep-alive (keepalive) message is discerned other switch between the switch.When the stacking opening B from switch S2 breaks down, send message to host exchange S4 detect the off-state of stacking opening B from switch S2 after, host exchange S4 is recognized from the operation conditions of switch S2.Because stacking opening B and stacking opening A interconnection, the off-state of stacking opening B is passed to from switch S1 by stacking opening A, recognize from the operation conditions of switch S2 by the off-state of detected stacking opening A from switch S1, promptly send and the mode of stacking opening state transfer, guaranteed that other switch of stacked switchboard system can discern the operation conditions of other switch by message.And, also can be under the situation that fault is not excluded, realization resets to whole system, with the interconnection of each inter-exchange stacking opening in the recovery system.
Need to prove, when disconnecting when being connected also applicable present embodiment from the stacking opening between switch S5 ' and S6 ' among Fig. 4.
Execution mode two
Still please refer to Fig. 3, Fig. 5, Fig. 6.Suppose to hinder disconnection for some reason from the stacking opening E of switch S3, detect stacking opening E off-state and export to from the port detecting unit of switch S3 from the control unit of switch S3, compare from the control unit of the switch S3 state with the stacking opening E that writes down the off-state of the stacking opening E that receives and this equipment state registration form, the state of judgement stacking opening E is changed to disconnection by connection.Judge that according to the stacking opening type of this equipment state registration form record stacking opening E is nearly stacking opening and also is provided with stacking opening D far away from switch S3 from the control unit of switch S3, be set to disconnect from the state that the control unit of switch S3 is closed (shut down) stacking opening D far away, connection status before stacking opening D far away is closed is recorded in stacking opening E, the D of this equipment state registration form, this equipment state registration form record.Start timer to counting resetting time from the control unit of switch S3 according to the off-state of the nearly stacking opening E of this equipment state registration form record from the setting of switch S3 control unit from switch S3.
Close (Shutdown) stacking opening of master/slave switch is forced to be in off-state.That is, whether no matter stacking opening is current is in physical connection state (Linkup), in case stacking opening is closed, then this stacking opening must be in off-state.
Because stacking opening D is closed, be connected disconnection between stacking opening C and stacking opening D.The state that detects stacking opening C from the port detecting unit of switch S2 is off-state and exports to from the control unit of switch S2, from the control unit of switch S2 the off-state of the stacking opening C that the receives state with the stacking opening C of this equipment state registration form record is compared, the state of judgement stacking opening C is changed to disconnection by connection.Judge that according to the stacking opening type of this equipment state registration form record stacking opening C is nearly stacking opening and also is provided with stacking opening B far away from switch S2 from the control unit of switch S2, be set to disconnect from the state that the control appliance control unit of switch S2 is closed stacking opening B far away, connection status before stacking opening B far away is closed is recorded in stacking opening C, the B of this equipment state registration form, this equipment state registration form record.Start from switch S2 timer counting resetting time from the control unit of switch S2 off-state from the setting of switch S2 control unit from switch S2 according to the nearly stacking opening C of this equipment state registration form record.
Because stacking opening B is closed, detect the off-state of stacking opening A and export to from the port detecting unit of switch S1 from the control unit of switch S1, compare from the control unit of the switch S1 state with the stacking opening A that writes down the off-state of the stacking opening A that receives and this equipment state registration form, the state of judgement stacking opening A is changed to disconnection by connection.Judge that according to the stacking opening type of this equipment state registration form record stacking opening A is that nearly stacking opening and stacking opening A are from the unique stacking opening of switch S1 from switch S1 control unit.Be set to disconnect from the state of the stacking opening A of this equipment state of control unit registration form of switch S1 record.Start from switch S1 timer counting resetting time from the control unit of switch S1 off-state from the setting of switch S1 control unit from switch S1 according to the nearly stacking opening A of this equipment state registration form record.
The port detecting unit of host exchange S4 detects stacking opening F off-state and exports the control unit of host exchange S4 to, the control unit of host exchange S4 compares the state of the stacking opening F that writes down in the off-state of the stacking opening F that receives and the system mode registration form, and the state of judgement stacking opening F is disconnection by connection status.Control unit stacking opening F state in the system mode registration form of host exchange S4 is set to disconnect, than stacking opening F far away from the state of switch (S3-S1) the system mode registration form be set to lose, than stacking opening F far away be set to disconnect from the state of exchange piling mouth (stacking opening A-E) the system mode registration form.That is, the state of control unit stacking opening A-F in the system mode registration form of host exchange S4 is set to disconnect, and is set to lose from the state of switch S1 to S3.
When the control unit of host exchange S4 detected stacking opening F disconnection, host exchange judged that the host exchange timer does not start, and then host exchange S4 startup timer is counted the host exchange S4 of host exchange S4 control unit setting resetting time.
Before switch S1, S2, S3, S4 timer are counted the resetting time that arrives separately, if fail to recover, then generate reset signal separately respectively and export separately control unit to from the timer of switch S1, S2, S3, S4 from being connected between switch S3 and host exchange S4.Wherein, the control unit of switch S1, S2, S3 resets to this equipment (this switch) respectively.The control unit of host exchange S4 generates and resets message and export communication unit to, is sent to from switch S5, S6 by stacking opening G by the communication unit of the host exchange S4 message that will reset.
If in all switches resetting time of stacked switchboard system overtime before, recover to connect from the stacking opening E of switch S3.Detect the connection status of stacking opening E and export to from the port detecting unit of switch S3 from the control unit of switch S3.From switch S3 control unit the connection status of the stacking opening E that the receives state with the stacking opening E of this equipment state registration form record is compared, the state of judgement stacking opening E is changed to connection by disconnection.Judge that according to the stacking opening type of this equipment state registration form record stacking opening E is nearly stacking opening and is provided with stacking opening D far away from switch S3 from the control unit of switch S3, the connection status before closing according to the stacking opening D far away of this equipment state registration form record from the control unit of switch S3 is carried out not closing control (no Shutdown) to stacking opening D far away.Not closing (noShutdown) is that the stacking opening that will be closed (shutdown) returns to (shutdown) state before that is closed.Because the state before closing from the stacking opening of this equipment state registration form of switch S3 record is a connection status, be that stacking opening D far away is reverted to connection status to the not closing control of stacking opening D from switch S3.
Be set to connect and count from switch S3 timer from the state of stacking opening E, the D of this equipment state of control unit registration form of switch S3 record according to the connection status cancellation of nearly stacking opening E.Be connected message and export communication unit to stacking opening D from the connection status generation stacking opening E connection message of switch S3 control unit according to the stacking opening E this equipment state registration form, D.By passing through stacking opening E, stacking opening E connection message, stacking opening D are connected message and be sent to host exchange S4 stacking opening F from switch S3 communication unit.
Because of stacking opening D recover to connect, recover to be connected between stacking opening C and stacking opening D.Detect the connection status of stacking opening C and export control unit to from the port detecting unit of switch S2 from switch S2.From the control unit of switch S2 the stacking opening C connection status that the receives state with the stacking opening C of this equipment state registration form record is compared, the state of judgement stacking opening C is changed to connection by disconnection.
Judge that according to the stacking opening type of this equipment state registration form record stacking opening C is nearly stacking opening and also is provided with stacking opening B far away from switch S2 from the control unit of switch S3.Connection status before the control unit of switch S2 is closed according to the stacking opening B far away that writes down this equipment state registration form is carried out not closing control to stacking opening B far away.The state of stacking opening C, B is set to connect and according to the connection status cancellation of nearly stacking opening C in this equipment state registration form counting from switch S2 timer from this equipment state of control unit registration form of switch S2.
Generating stacking opening B from the control unit of switch S2 according to the connection status of stacking opening B, C this equipment state registration form connects message and is connected message and exports communication unit to stacking opening C.By passing through stacking opening C, stacking opening B connection message is connected message is sent to host exchange S4 stacking opening F with stacking opening C by stacking opening C from switch S2 communication unit.
Detect the connection status of stacking opening A and export control unit to from switch S1 port from switch S1.From switch S1 control unit the connection status of the stacking opening A that the receives state with the stacking opening A of this equipment state registration form record is compared, the state of judgement stacking opening A is changed to connection by disconnection.Judge that according to the stacking opening type of this equipment state registration form record stacking opening A is that nearly stacking opening and stacking opening A are the stacking opening unique far away from switch S1 from the control unit of switch S1.The state of stacking opening A is set to connect and according to the connection status cancellation of the nearly stacking opening A of this equipment state registration form record counting from switch S1 timer from this equipment state of control unit registration form of switch S1.
Generate stacking opening A connection message and export communication unit to according to the connection status that this equipment state registration form writes down nearly stacking opening A from the control unit of switch S1.By stacking opening A stacking opening A is connected message by communication unit and be sent to host exchange S4 from switch S1.
And the communication unit of host exchange S4 will connect message by stacking opening A connection message, the stacking opening B that stacking opening F receives, stacking opening C connects the control unit that message is forwarded to host exchange S4.Stacking opening A, the B of the control unit system mode registration form record of host exchange S4, the state of C are set to connect.
The port detecting unit of host exchange S4 detects the connection status of stacking opening F and exports host exchange S4 control unit to.The control unit of host exchange S4 compares the stacking opening F connection status that the receives state with the stacking opening F of system mode registration form record, and the state of judgement stacking opening F is changed to connection by disconnection.
Those skilled in the art also can obtain following execution mode according to the present embodiment content change:
The off-state that host exchange S4 detects stacking opening F exports the control unit of host exchange S4 to, the state that the control unit of host exchange S4 changes the stacking opening A-F of system mode registration form record is set to disconnect, after being set to lose from the state of switch S3-S1, the control unit of host exchange S4 judges that according to the stacking opening number of system mode registration form record host exchange S4 is provided with another stacking opening G, the control unit of host exchange S4 is closed stacking opening G, the connection status before record stacking opening G closes, with stacking opening G, H, I, J is disconnection at the state of system mode registration form record, will be from switch S5, S6 at the state of system mode registration form record for losing.The control unit of host exchange S4 judges whether host exchange S4 timer starts.When host exchange S4 timer was not activated, host exchange S4 control unit was counted according to the stacking opening F off-state startup host exchange S4 timer of system mode registration form record.
If host exchange S4 control unit is closed stacking opening G, then can be set to disconnect and startup is counted from switch S5 timer according to the state of closing stacking opening H, the I of connection status closing before of stacking opening I far away, record stacking opening I, this equipment state registration form record from the execution mode of switch S2 the present embodiment from switch S5.
Because of stacking opening I far away is closed, can count from switch S6 timer according to being set to disconnect and starting from the state of the nearly stacking opening J of this equipment state of execution mode registration form record of switch S1 the present embodiment from switch S6.
The port detecting unit of host exchange S4 detects the connection status of stacking opening F and exports host exchange S4 control unit to.The control unit of host exchange S4 compares the stacking opening F connection status that the receives state with the stacking opening F of system mode registration form record, and the state of judgement stacking opening F is changed to connection status by off-state.The control unit of host exchange S4 judges that according to the stacking opening number of system mode registration form record host exchange S4 also is provided with another stacking opening G, and the connection status before the control unit of host exchange S4 is closed according to the stacking opening G of system mode registration form record is set to connect to the state that stacking opening G carries out stacking opening F, G in closing control not and the system mode registration form.
G returns to connection because of stacking opening, can be set to connect, cancel from switch S5 timer according to the state that stacking opening I far away is carried out stacking opening H, I not closing control, this equipment state registration form from the execution mode of switch S2 the present embodiment, generate stacking opening H and connect the stacking opening G that message is connected message with stacking opening I and is sent to host exchange S4 from switch S5.
Because of stacking opening I is not returning to connection status after the closing control, from switch S6 can according to the present embodiment from this equipment state of execution mode registration form of switch S1 the state of stacking opening J be set to connect, cancel from switch S6 timer, generate the stacking opening G that stacking opening J connects message and is sent to host exchange S4.
Before switch S1, S2, S3, S4, S5, S6 timer are counted the resetting time that arrives separately, fail to recover from being connected between switch S3 and host exchange S4, the timer of then change planes S1, S2, S3, S4, S5, S6 generates reset signal separately and exports separately control unit to.Wherein, the control unit from switch S1, S2, S3, S5, S6 resets to this equipment (this switch) respectively.The control unit of host exchange S4 generates and resets message and export communication unit to.But because stacking opening F disconnects and stacking opening G is closed, the communication unit of host exchange S4 can't be sent to the message that resets from switch S1, S2, S3, S5, S6 by stacking opening F, G.The control unit of host exchange S4 resets to this equipment host exchange S4 after generating the message that resets.
In Fig. 3 system, another preferred implementation is because stacking opening F disconnects, stacking opening G is closed, in the host exchange S4 system mode registration form all from the state of switch S1, S2, S3, S5, S6 all for losing.Host exchange S4 can be according to the off-state of stacking opening F and G in the system mode registration form or all from the lost condition of switch S1, S2, S3, S5, the S6 regeneration message that resets not.
Host exchange S4 control unit receives all behind the connection message of switch transmission by communication unit, and the control unit stacking opening A of host exchange S4, B, C, D, E, H, I, J state in the system mode registration form are set to connect.The control unit of host exchange S4 judges when the stacking opening A to J of system mode registration form record is connection status that the control unit of host exchange S4 all is set to whole states from switch S1, S2, S3, S5, S6 of system mode registration form record normally and cancels the counting of host exchange S4 timer.
In the foregoing of present embodiment, by to the closing control of the closing of each exchange piling mouth/not, disconnection/the connection status of stacking opening is delivered to adjacent switch, thereby each switch of stacked switchboard system can recognize the operation conditions of neighboring switch.
Need to prove, if the host exchange S1 ' among Fig. 4 breaks down or host exchange S1 ' with from the disconnection that is connected between switch S2 ', can realize the keep-alive of stacked switchboard system among Fig. 4 according to the method for present embodiment record.
Execution mode three
In Fig. 3 system, when the port detecting unit of each switch detected this equipment running status and breaks down, the control unit of each switch was closed the stacking opening of each this equipment of switch and the state before the pent stacking opening of record is closed again in this equipment state registration form or system mode registration form.For example: the port detecting unit of host exchange S4 detects host exchange and breaks down, the control unit of host exchange S4 is closed stacking opening F, G, stacking opening F, G are closed preceding connection status or disconnection be recorded in the system mode registration form, the state of stacking opening F, the G of system mode registration form record is set to disconnect.Host exchange S4 starts the timer of host exchange S4 when closing first host exchange stacking opening counts.Can when closing near stacking opening, start from switch in the system other and to count from the timer of switch.Present embodiment can realize the keep-alive of stacked switchboard system according to the method that execution mode two discloses.
Can adopt prior art to detect the running status of switch in the present embodiment.But unlike the prior art be, the self-operating state that the present invention detects switch breaks down then, switch passes fault message by initiatively closing stacking opening.And in the prior art, when switch detects the self-operating state and breaks down, will send the keepalive message.
Execution mode four
Please refer to Fig. 4 to Fig. 6, suppose that the stacking opening I ' from switch S5 ' among Fig. 4 hinders disconnection for some reason, detect stacking opening I ' off-state and export control unit to from switch S5 ' from the port detecting unit of switch S5 '.Compare from the state of switch S5 ' control unit with stacking opening I ' the off-state of the stacking opening I ' that receives and this equipment state registration form, the state of judgement stacking opening I ' is changed to disconnection by connection.Judge that according to the stacking opening type of this equipment state registration form record stacking opening I ' is a stacking opening far away from the control unit of switch S5 '.Be set to disconnect from the state of the stacking opening I ' of this equipment state of control unit registration form of switch S5 ' record.Generate stacking opening I ' disconnection message and export communication unit to from the off-state of switch S5 ' control unit, stacking opening I ' is disconnected message is sent to host exchange S1 ' by nearly stacking opening H ' stacking opening A ' by communication unit according to stacking opening I ' this equipment state registration form.
Detect stacking opening J ' off-state and export control unit to from the port detecting unit of switch S6 ' from switch S6 '.Compare from the control unit of the switch S6 ' state with stacking opening J ' the off-state of the stacking opening J ' that receives and this equipment state registration form, the state of judgement stacking opening J ' is changed to disconnection by connection.Judge that according to the stacking opening type of this equipment state registration form record stacking opening J ' is from the unique stacking opening of switch S6 ' for nearly stacking opening and stacking opening J ' from the control unit of switch S6 ', be set to disconnect and start timer from the state of the stacking opening J ' of this equipment state of control unit registration form record of switch S6 ' and count according to the off-state of nearly stacking opening J '.
The communication unit of host exchange S1 ' receives the stacking opening I ' that sends from switch S5 ' by stacking opening A ' and disconnects the control unit that is forwarded to host exchange S1 ' behind the message.The state of stacking opening J ', the I ' of the control unit system mode registration form of host exchange S1 ' record is set to disconnect, be set to lose from the state of switch S6 '.
If also disconnect connection from the stacking opening G ' of switch S4 '.Detect stacking opening G ' off-state and export control unit to from the port detecting unit of switch S4 ' from switch S4 '.From switch S4 ' control unit the off-state of the stacking opening G ' that the receives state with the stacking opening G ' of this equipment state registration form record is compared, the state of judgement stacking opening G ' is changed to off-state by connection status.Judge that according to the stacking opening type of this equipment state registration form record stacking opening G ' is a stacking opening far away from the control unit of switch S4 ', the state of stacking opening G ' is set to disconnect from this equipment state of switch S4 ' registration form.Generate stacking opening G ' disconnection message and export communication unit to from the off-state of switch S4 ' control unit, be sent to host exchange S1 ' stacking opening A ' by nearly stacking opening H ' by stacking opening G ' being disconnected message from switch S4 ' communication unit according to stacking opening G ' this equipment state registration form.
From switch S4 ' with from the disconnection that is connected between the switch S5 '.Detect stacking opening H ' off-state and export control unit to from the port detecting unit of switch S5 ' from switch S5 '.Judge that according to the stacking opening type of this equipment state registration form record stacking opening H ' also is provided with stacking opening I ' far away for nearly stacking opening and from switch S5 ' from switch S5 ' control unit.Close stacking opening I ' from the control unit of switch S5 ', the state that writes down stacking opening H ', I ' that off-state writes down, this equipment state registration form writes down before stacking opening I ' far away closes in this equipment state registration form is set to disconnect.Count from switch S5 ' timer according to the off-state startup of nearly stacking opening H ' this equipment state registration form from switch S5 '.
The state of the stacking opening G ' of the control unit system mode registration form of host exchange S1 ' record is set to disconnect, be set to lose from the state of switch S5 '.When the control unit of host exchange S1 ' is received from stacking opening H ' the disconnection message of switch S4 ', the control unit of host exchange S1 ' judges whether timer starts, (timer of host exchange does not start expression host exchange S1 ' stacking opening and do not disconnect and do not receive the disconnection message of the switch transmission of associating) is because host exchange S1 ' has started timer.Thereby host exchange S1 ' receives that behind the disconnection message of switch S4 ', the control unit of host exchange S1 ' will not restarted timer.With avoid host exchange repeat, continually to resetting in this equipment and the system from switch.
If stacking opening G ' is recovering connection before the timer expiry of switch S5 ', S6 ' and host exchange S1 ', detect stacking opening G ' connection status and export to from the port detecting unit of switch S4 ' from the control unit of switch S4 ', compare from the control unit of the switch S4 ' state with stacking opening G ' the connection status of the stacking opening G ' that receives and this equipment state registration form, the state of judgement stacking opening G ' is changed to connection by disconnection.Judge that according to the stacking opening type of this equipment state registration form record stacking opening G ' is a stacking opening far away from the control unit of switch S5 ', be set to connect from the state of the stacking opening G ' of this equipment state of control unit registration form of switch S4 ' record, generate stacking opening G ' from the control unit of switch S4 ' according to the connection status of the stacking opening G ' of this equipment state registration form record and connect message and export communication unit to, by by stacking opening F ' stacking opening G ' connection message being sent to host exchange S1 ' from switch S4 ' communication unit.
Stacking opening G ' recovers connection status, is connected recovery between stacking opening H ' and stacking opening G '.Detect the connection status of stacking opening H ' and export to from switch S5 ' from the control unit of switch S5 ', compare from the control unit of the switch S5 ' off-state with the stacking opening H ' that writes down the connection status of the stacking opening H ' that receives and this equipment state registration form, the state of judgement stacking opening H ' is changed to connection by disconnection.Judge that according to the stacking opening type of this equipment state registration form record stacking opening H ' also is provided with stacking opening I ' far away for nearly stacking opening and from switch S5 ' from the control unit of switch S5 '.Off-state before being closed according to the stacking opening I ' of this equipment state registration form record from the control unit of switch S5 ' is carried out not closing control to stacking opening I ' far away, and stacking opening I ' far away still is in off-state.
From the state of the stacking opening H ' of this equipment state of control unit registration form of switch S5 ' record be set to connect and according to the connection status cancellation of the nearly stacking opening H ' of this equipment state registration form record from switch S5 ' timer.Generate stacking opening H ' from the control unit of switch S5 ' according to the connection status of stacking opening H ' this equipment state registration form and connect message, communication unit sends stacking opening H ' by stacking opening H ' and connects the stacking opening A ' of message to host exchange S1 '.
The control unit of host exchange S1 ' is set to connect according to stacking opening G ' the connection message that receives is connected stacking opening G ', the H ' of message system mode registration form record with stacking opening H ' state.Stacking opening A ' is to the state of J ' in host exchange S1 ' the detected state registration form.Because the state of stacking opening I ', J ' still is an off-state in the system mode registration form, the timer of host exchange S1 ' continues counting.As host exchange S1 ' with from the timer expiry of switch S6 ', then each switch in the stacked switchboard system resets, and concrete repositioning method is asked for an interview execution mode one, two.
If before the timer expiry of switch S6 ' and host exchange S1 ', recover to connect from switch S5 ' stacking opening I ', detect stacking opening I ' connection status and export to from the port detecting unit of switch S5 ' from the control unit of switch S5.From switch S5 the connection status of the stacking opening I ' that the receives connection status with the stacking opening I ' of this equipment state registration form record is compared, the state of judgement stacking opening I ' is changed to connection by disconnection.Judge that according to this equipment state registration form stacking opening I ' be a stacking opening far away from the control unit of switch S5 ', be set to connection at the state of this equipment state registration form record from the control unit stacking opening I ' of switch S5 '.Generate stacking opening I ' from the control unit of switch S5 ' according to the connection status of stacking opening I ' this equipment state registration form and connect message and export communication unit to, by by stacking opening H ' stacking opening I ' connection message being sent to host exchange S1 ' from switch S5 communication unit.
Detect stacking opening J ' from switch S6 ' and recover connection status, judge that according to the stacking opening type of this equipment state registration form record stacking opening J ' is unique stacking opening from switch S6 ' for nearly stacking opening and stacking opening J ' from switch S6 ', the state of nearly stacking opening J ' is set to connect and according to the connection status cancellation timer of nearly stacking opening J ' from this equipment state of switch S6 ' control unit registration form.Generate stacking opening J ' connection message and export communication unit to from the connection status of switch S6 ' control unit, by stacking opening J ' stacking opening J ' is connected message by communication unit and be sent to host exchange S1 ' from switch S6 according to this equipment state registration form record stacking opening J '.
The control unit stacking opening I ' of host exchange S1 ', the state of J ' in the system mode registration form are set to connect.When the state that the control unit of host exchange S1 ' determines stacking opening A '-J ' in the system mode registration form is connection status, in the control unit system mode registration form of host exchange S1 ' all the state from switch S2 '-S5 ' be set to normal condition and cancel timer.
The beneficial effect of present embodiment is; realize keep-alive (Keepalive) method of stack equipment by the state that detects each exchange piling mouth in the stacked switchboard system; after switch detects the stacking opening disconnection or connects; by sending the mode of message and the state that transmits stacking opening, will pile up to connect to lose and announce to other switch in the pile system with recovering information.
Compare with the stacked switchboard system that uses the keep-alive message; switch in the stacked switchboard system of the present invention no longer needs to handle a large amount of keep-alive messages and improved detection efficiency, thereby is specially adapted to adopt the switch cluster of stack manner centralized management.
In addition, when fault that stacked switchboard system of the present invention causes because of non-stacking opening connectivity problem, switch is by initiatively closing stacking opening and can reach and stacking opening disconnecting identical effect.
Need to prove at this, though the time difference that exist the start-up time of the timer that (comprises from switch and between the switch and between switch and the host exchange) between each switch in the above-mentioned execution mode of the present invention, it is very small that but those skilled in the art can predict this time difference fully, according to disclosed execution mode, this time difference is not enough to influence resetting of stacked switchboard system.
The above only is the schematic embodiment of the present invention, is not in order to limit scope of the present invention.Any those skilled in the art, equivalent variations of having done under the prerequisite that does not break away from design of the present invention and principle and modification all should belong to the scope of protection of the invention.

Claims (19)

1. the keepalive method of a stacked switchboard system is characterized in that, described stacked switchboard system keepalive method comprises:
Detect from exchange piling mouth state from switch;
Describedly judge describedly whether change from exchange piling mouth state from switch;
When judged result is describedly to be become when disconnecting by connection from exchange piling mouth state, described is the described type from the exchange piling mouth of off-state from the switch change detected;
If testing result is be changed to off-state described when the exchange piling mouth is stacking opening far away, the described transmission from switch disconnects message to host exchange;
Described host exchange detects whether receive described disconnection message;
If testing result is that described host exchange is received described disconnection message, the stacking opening described far away described state from switch far away of the described disconnection message of the ratio correspondence of described host exchange system mode registration form record is set to lose, the stacking opening described far away of described disconnection message correspondence and be set to disconnect from the state of exchange piling mouth described system mode registration form than far away described of the stacking opening described far away of described disconnection message correspondence;
Whether described host exchange detects the host exchange timer and starts;
If testing result is that described host exchange timer does not start, described host exchange starts described host exchange timer.
2. the keepalive method of stacked switchboard system according to claim 1 is characterized in that, the described transmission from switch disconnects message to host exchange mouth step, and described stacked switchboard system keepalive method is further comprising the steps of:
Describedly be set to disconnect from the state of the described stacking opening far away of switch this equipment state registration form.
3. the keepalive method of stacked switchboard system according to claim 1 is characterized in that, if testing result is be changed to off-state described when the exchange piling mouth is near stacking opening, described stacked switchboard system keepalive method is further comprising the steps of:
Describedly detect describedly whether to be provided with described stacking opening far away from switch from switch;
If testing result is described when switch is provided with described stacking opening far away, describedly closes described stacking opening far away and start from the switch timer from switch.
4. the keepalive method of stacked switchboard system according to claim 3; it is characterized in that; start describedly before switch timer step, described stacked switchboard system keepalive method is further comprising the steps of: described state recording before switch is closed described stacking opening far away is set to disconnection at described equipment state registration form, described nearly stacking opening and the state of described stacking opening far away described equipment state registration form.
5. the keepalive method of stacked switchboard system according to claim 3, it is characterized in that, if testing result is described when switch is not provided with described stacking opening far away, described stacked switchboard system keepalive method is further comprising the steps of: describedly be set to disconnection from the state of the described nearly stacking opening of switch described equipment state registration form; Described described from the switch timer from the switch startup.
6. the keepalive method of stacked switchboard system according to claim 1 is characterized in that, described stacked switchboard system keepalive method is further comprising the steps of:
When judged result is describedly to be changed to connection from exchange piling mouth state by disconnection;
Described is the described type from the exchange piling mouth of connection status from the switch change detected;
If testing result is be changed to connection status described when the exchange piling mouth is described stacking opening far away, describedly be set to connection from the state of the described stacking opening far away of switch described equipment state registration form;
The described generation according to the state of the described stacking opening far away of described equipment state registration form record from switch connects message and is sent to described host exchange.
7. the keepalive method of stacked switchboard system according to claim 6; it is characterized in that; if testing result is be changed to connection status described when the exchange piling mouth is described nearly stacking opening, described stacked switchboard system keepalive method is further comprising the steps of:
Describedly detect describedly whether to be provided with described stacking opening far away from switch from switch;
If testing result is describedly to be provided with described stacking opening far away from switch, described state before closing according to the stacking opening described far away of described equipment state registration form record from switch returns to the preceding state of closing with described stacking opening far away;
Described described near stacking opening state from described equipment state registration form of switch record is set to connect, the state that the state of described described stacking opening far away from described equipment state registration form record of switch is set to described stacking opening far away before closing;
Describedly generate described connection message and be sent to described host exchange according to the state of the described nearly stacking opening of described equipment state registration form record and/or the connection status of described stacking opening far away from switch.
8. the keepalive method of stacked switchboard system according to claim 7 is characterized in that, if testing result is describedly not to be provided with described stacking opening far away from switch, described stacked switchboard system keepalive method is further comprising the steps of:
Describedly be set to connect from the state of the described nearly stacking opening of switch described equipment state registration form; Describedly generate described connection message and be sent to described host exchange from the connection status of switch according to the described nearly stacking opening of described equipment state registration form record.
9. the keepalive method of stacked switchboard system according to claim 1 is characterized in that, described stacked switchboard system keepalive method is further comprising the steps of:
Described host exchange detects whether receive described connection message;
If testing result is that described host exchange is received described connection message, the stacking opening described far away of the described connection message of described host exchange correspondence and/or the state of described nearly stacking opening in described system mode registration form are set to connect.
10. the keepalive method of stacked switchboard system according to claim 3 is characterized in that, described stacked switchboard system keepalive method is further comprising the steps of:
Described host exchange detects the state of host exchange stacking opening;
Described host exchange judges whether described host exchange stacking opening state changes;
Become when disconnecting by connection when judged result is described host exchange stacking opening state, the described host exchange stacking opening described state from switch far away that the described host exchange stacking opening described state from the exchange piling mouth far away that the state of the described host exchange stacking opening that becomes disconnection of the described system mode registration form record of described host exchange is set to disconnect, the ratio of described system mode registration form record becomes disconnection is set to disconnect, the ratio of described system mode registration form record disconnects is set to lose;
Whether described host exchange detects described host exchange timer and starts;
If testing result is that described host exchange timer does not start, described host exchange starts the host exchange timer.
11. the keepalive method of stacked switchboard system according to claim 10 is characterized in that, is become when disconnecting by connection when judged result is described host exchange stacking opening state, described stacked switchboard system keepalive method is further comprising the steps of:
Described host exchange detects described host exchange and whether also is provided with another described host exchange stacking opening;
When described host exchange also was provided with another described host exchange stacking opening, described host exchange was closed another described host exchange stacking opening;
Described host exchange writes down the state before closing before the pent described host exchange stacking opening in described system mode registration form and the state of described host exchange stacking opening in described system mode registration form of closing is set to disconnect, be set to disconnect from the state of exchange piling mouth described system mode registration form than far away described of the described host exchange stacking opening of closing, and is set to lose from the state of switch described system mode registration form than far away described of the described host exchange stacking opening of closing.
12. the keepalive method of stacked switchboard system according to claim 10; it is characterized in that; when described host exchange judged that described host exchange stacking opening state is changed to connection by disconnection, described stacked switchboard system keepalive method was further comprising the steps of:
The state of described host exchange stacking opening in described system mode registration form that described host exchange becomes connection is set to connect.
13. the keepalive method of stacked switchboard system according to claim 12; it is characterized in that; when described host exchange judged that described host exchange stacking opening state is changed to connection by disconnection, described stacked switchboard system keepalive method was further comprising the steps of:
Described host exchange detects described host exchange and whether also is provided with another described host exchange stacking opening;
If testing result is described host exchange when also being provided with another described host exchange stacking opening, the described host exchange stacking opening that the state before described host exchange is closed according to another host exchange stacking opening of described system mode registration form record will be closed returns to the state before closing;
State before the state of another described host exchange stacking opening of the described system mode registration form record of described host exchange is set to close.
14. the keepalive method according to claim 1 or 2 or 4 or 5 or 8 or 9 or 11 or 13 described stacked switchboard systems is characterized in that, described stacked switchboard system keepalive method is further comprising the steps of:
Described host exchange detects host exchange stacking opening described in the described system mode registration form and described state from the exchange piling mouth;
When host exchange stacking opening described in the system mode registration form and described when the exchange piling mouth all is connection status, the described state from switch in the described system mode registration form of described host exchange is set to normal and cancels described host exchange timer.
15. the keepalive method according to claim 1 or 2 or 5 or 8 or 9 or 11 or 13 described stacked switchboard systems is characterized in that, described off-state from the nearly stacking opening of switch basis starts from the switch timer; Describedly close described according to the connection status of described nearly stacking opening from the switch timer from switch.
16. stacked switchboard system, this stacked switchboard system comprises host exchange and from switch, described host exchange and described from switch and described from switch and describedly be interconnected to constitute stacked switchboard system by stacking opening between the switch, it is characterized in that described host exchange comprises:
The host exchange detecting unit, be used to detect described host exchange described stacking opening off-state or connection status and export the host exchange control unit to;
The host exchange timer is used for the host exchange of described host exchange control unit setting is counted resetting time, and exports the host exchange reset signal during resetting time to described host exchange control unit at the described host exchange of counting arrival;
The host exchange memory cell is used for the storage system status registration form, and described system mode registration form is used for record: host exchange stacking opening state, from the state of exchange piling mouth and from switch status;
The host exchange communication unit is used for the described stacking opening of message by described host exchange that reset transferred to described described stacking opening from switch; The disconnection message that the described stacking opening of described host exchange is received be connected message and be forwarded to described host exchange control unit;
Described host exchange control unit, the startup or the cancellation that are used to that be set described host exchange resetting time and control described host exchange timer are provided with described host exchange stacking opening state, described state from the exchange piling mouth, described from switch status that described system mode registration form writes down; Generate the described message that resets according to the host exchange reset signal, described host exchange is resetted after exporting the described message that resets to described host exchange communication unit;
Describedly comprise from switch:
From the switch detecting unit, be used to detect the off-state or the connection status of described stacking opening from switch and export to from the switch control unit;
From the switch timer, be used for according to counting resetting time and arriving from switch and describedly export from the switch reset signal extremely described during resetting time from the setting of switch control unit from the switch control unit from switch at counting;
From the switch memory cell, be used to store described this equipment state registration form from switch, described equipment state registration form be used to write down type from the exchange piling mouth, from exchange piling mouth state, close preceding state from the exchange piling mouth;
From the switch communication unit, be transmitted to the message that resets that receives described from the switch control unit; The described connection that generates from the switch control unit is disconnected message and is connected message transmissions to described host exchange;
From the switch control unit, be used for being provided with from switch and also control from startup of switch timer or cancellation resetting time; According to reset message or describedly reset from switch to described from switch communication unit forwards described from the switch reset signal; Be provided with described in this equipment state registration form from the state of the described stacking opening of switch; According to from the described off-state of the described stacking opening type of switch and the described described stacking opening that detects from the switch detecting unit described described stacking opening from switch being carried out closing control described in this equipment state registration form; According to from the connection status of the described stacking opening type of switch and the described described stacking opening that detects from the switch detecting unit described described stacking opening from switch being carried out not closing control described in this equipment state registration form.
17. stacked switchboard system according to claim 16 is characterized in that, described system mode registration form also records host exchange stacking opening number, the host exchange stacking opening is closed preceding state;
Described host exchange control unit is closed/closing control not the stacking opening of described host exchange according to described host exchange stacking opening number and described host exchange stacking opening state, and before the stacking opening of described host exchange closed state recording in described system mode registration form.
18. stacked switchboard system according to claim 16, it is characterized in that described host exchange control unit is cancelled described host exchange timer to the described host exchange counting of resetting time according to described normal conditions from switch whole in the described system mode registration form.
19. stacked switchboard system according to claim 16 is characterized in that,
The type of the described described stacking opening from switch of described equipment state registration form record comprises: nearly stacking opening and stacking opening far away;
Described from the switch control unit according to the state of nearly stacking opening described in described the equipment state registration form start or cancel described from the switch timer to described from the switch counting of resetting time.
CN200710178400A 2007-11-29 2007-11-29 Stacked switchboard system and keep-alive method of stacked switchboard system Active CN100581272C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710178400A CN100581272C (en) 2007-11-29 2007-11-29 Stacked switchboard system and keep-alive method of stacked switchboard system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710178400A CN100581272C (en) 2007-11-29 2007-11-29 Stacked switchboard system and keep-alive method of stacked switchboard system

Publications (2)

Publication Number Publication Date
CN101159883A CN101159883A (en) 2008-04-09
CN100581272C true CN100581272C (en) 2010-01-13

Family

ID=39307778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710178400A Active CN100581272C (en) 2007-11-29 2007-11-29 Stacked switchboard system and keep-alive method of stacked switchboard system

Country Status (1)

Country Link
CN (1) CN100581272C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164056B (en) * 2011-03-17 2013-07-24 杭州华三通信技术有限公司 Stacked link aggregation fault detection method and stacked devices
CN102255751A (en) * 2011-06-30 2011-11-23 杭州华三通信技术有限公司 Stacking conflict resolution method and equipment
EP2912792A4 (en) * 2012-10-29 2016-06-29 Ikanos Communications Inc Mechanism to facilitate timing recovery in time division duplex systems
CN116962325A (en) * 2022-04-20 2023-10-27 华为技术有限公司 Communication method and device

Also Published As

Publication number Publication date
CN101159883A (en) 2008-04-09

Similar Documents

Publication Publication Date Title
CN102315975B (en) Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
CN101094157B (en) Method for implementing network interconnection by using link aggregation
CN101262401B (en) A method for realizing network recovery in loop network
CN101478435B (en) Topology collecting method for stacking system and dual control board equipment
CN101610193B (en) Method for automatically discovering Ethernet ring and generating ring
CN101442484B (en) Method, system and equipment for detecting stacking multi-Active
CN101558609B (en) Method, device and system for ring protection
CN101127674B (en) Initialization method for transmission nodes of Ethernet loop network system
CN102347879A (en) D-BUS high-speed bus technology based on ring type Ethernet and auxiliary network
CN101127675A (en) Initialization method for main nodes of Ethernet loop network system
EP1982447A2 (en) System and method for detecting and recovering from virtual switch link failures
CN100581272C (en) Stacked switchboard system and keep-alive method of stacked switchboard system
CN102055794A (en) Communication sytem in an aircraft and aircraft
EP1839051B1 (en) Dual-purpose uplinks used in a fault-tolerant stack
CN100435524C (en) Equipment topology structure forming method in stack system
CN100479411C (en) Processing method for node link switching of the distributed system and its device
CN101841432A (en) Port backup method, device and system for service access router
CN101677267A (en) Method for retransmitting protocol frames in transannular way and sharing nodes in multiple rings of Ethernet
CN102158383B (en) Data transmission method, device and system for E1 bidirectional ring network
CN104113428A (en) Apparatus management device and method
CN100566277C (en) Communications network system and the method that is used to the information that transmits
CN102244589B (en) Method and opposite terminal apparatus for processing link fault in virtual switch unit system
CN101599906B (en) Method and device for setting port state
WO2013078997A1 (en) Method for processing fault in mrp ring network, and mrp ring network
GB2422509A (en) Gateway unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 350015 M9511 Industrial Park, fast road, Mawei District, Fujian, Fuzhou

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: 350015 M9511 Industrial Park, fast road, Mawei District, Fujian, Fuzhou

Patentee before: Beijing Star-Net Ruijie Networks Co.,Ltd.

CP01 Change in the name or title of a patent holder