CN101686187A - Method, device and system for prevention of interruption of service - Google Patents
Method, device and system for prevention of interruption of service Download PDFInfo
- Publication number
- CN101686187A CN101686187A CN200810216512A CN200810216512A CN101686187A CN 101686187 A CN101686187 A CN 101686187A CN 200810216512 A CN200810216512 A CN 200810216512A CN 200810216512 A CN200810216512 A CN 200810216512A CN 101686187 A CN101686187 A CN 101686187A
- Authority
- CN
- China
- Prior art keywords
- port
- message
- control message
- port status
- sends
- 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.)
- Pending
Links
Images
Abstract
The embodiment of the invention discloses a method, device and system for prevention of interruption of service. The method includes that: a first device sends a control message for locking the post state of a second device, so that the second device does not change the working state of the port when protocol message is not received within preset time and continues to receive service message fromthe port; and the first device restarts CPU after receiving a response message for locking the port state from the second device. The device comprises a transmitting module, a receiving module and a restart module; wherein the transmitting module is used for locking the control message of the port state of the second device, so that the second device does not change the working state of the port when protocol message is not received within preset time and continues to receive service message from the port; the receiving module is used for receiving response message for locking the port state from the second device; and the restart module is used for restarting CPU after the receiving module receives the response message. By applying the embodiment of the invention, prevention of interruption of service can be realized in soft reset of the device.
Description
Technical field
The present invention relates to the communications field, relevant especially a kind of methods, devices and systems that prevent service disconnection.
Background technology
LACP (Link Aggregation Control Protocol link aggregate control protocol), STP (Spanning Tree Protocol Spanning-Tree Protocol), RSTP agreements such as (Rapid Spanning Tree Protocol RSTPs) all have timeout mechanism.Timeout mechanism is meant after the protocol negotiation success, the working port that is in operating conditions can be kept agreement by protocol massages of per second transmission, and wherein certain working port of an end device surpasses the scheduled time, when can not receive protocol massages such as 6 seconds, this port can be changed to non-operation, not bearer service.
Be example with the LACP agreement below, describe the timeout mechanism of these agreements in detail, as shown in Figure 1: working port port1, port2 and port3 on the device A form a LAG (Link AggregationGroup link aggregation group); The working port of device B is port1 ', port2 ' and port3 ', also form a LAG, professional port1, port2, port3 and port1 ', port2 ', the port3 ' that also is carried on two devices, CPU sends protocol massages by working port port1, port2 and port3, professional retransmission unit sends service message by working port port1, port2 and port3, and promptly protocol massages and service message all are to send by working port port1, port2 and port3.
When warm reset takes place device A, that is: the CPU of device A is restarted, and CPU does not send protocol massages, and professional retransmission unit is still normally transmitted professional.Usually the time of soft reset device is all above 6 seconds, the all of the port that links to each other with this LAG group of meeting initiation other end device B (port1 ', port2 ', port3 ') overtime owing to can not receive protocol massages in 6 seconds, thereby the LAG group port of device B (port1 ', port2 ', port3 ') switches to non-operation by operating conditions, and the LAG group port of device A bearer service remains the preceding LAG group working port (port1 of warm reset, port2, port3), though these three ports do not send protocol massages, but still send service message, and three ports of device B have switched to non-operation and have not received service message, thereby cause service disconnection.
Summary of the invention
Use the embodiment of the invention, can make agreement with timeout mechanism, when protocol massages interrupts surpassing the scheduled time, non-interrupting service.
The embodiment of the invention provides a kind of method that prevents service disconnection, comprising:
First installs the control message of the port status that sends locking second device, so that second device when can not receive protocol massages above the scheduled time, does not change the operating state of port, and continues from port to receive service message;
First device is restarted CPU after receiving the response message of the latched port state that second device sends.
The embodiment of the invention also provides a kind of device that prevents service disconnection, comprising:
Sending module is used to send the control message that locks second port status that installs, so that second device when can not receive protocol massages above the scheduled time, does not change the operating state of port, and continues from port reception service message;
Receiver module is used to receive the response message of the latched port state that second device sends;
Restart module, after being used for described receiver module and receiving described response message, restart CPU.
The embodiment of the invention also provides a kind of device that prevents service disconnection, comprising:
Receiver module is used to receive the control message of the port status of the described device of locking that first device sends, so that described device does not change the operating state of port, and continues from port to receive service message surpassing the scheduled time when can not receive protocol massages;
Locking module, after being used for described receiver module and receiving described control message, the latched port state.
The embodiment of the invention also provides a kind of system that prevents service disconnection, comprising: first device and second device,
Described first device is used to send the control message that locks second port status that installs, so that second device when can not receive protocol massages above the scheduled time, does not change the operating state of port, and continues from port reception service message;
Described second device is used for according to described control message latched port state, and is used for behind the latched port state, sends the response message of latched port state;
Described first device also is used for restarting CPU after receiving described response message.
Use the embodiment of the invention, send the control message of the port status of locking second device by first device, so that second device is when can not receive protocol massages above the scheduled time, do not change the operating state of port, and continue from port to receive service message, and behind the response message of the latched port state that receives the second device transmission, restart CPU, make to have the agreement of timeout mechanism for LACP, STP, RSTP etc., when protocol massages interrupted surpassing the scheduled time, business was not interrupted.
Description of drawings
Fig. 1 is that the protocol massages and the service message of prior art sends principle schematic;
Fig. 2 is a kind of flow chart that prevents the method for service disconnection of the embodiment of the invention one;
Fig. 3 is a kind of control message format schematic diagram of the embodiment of the invention;
Fig. 4 is the another kind control message format schematic diagram of the embodiment of the invention;
Fig. 5 is a kind of flow chart that prevents the method for service disconnection of the embodiment of the invention two;
Fig. 6 is a kind of device schematic diagram that prevents service disconnection of the embodiment of the invention three and embodiment four;
Fig. 7 is a kind of device schematic diagram that prevents service disconnection of the embodiment of the invention five;
Fig. 8 is a kind of device schematic diagram that prevents service disconnection of the embodiment of the invention six;
Fig. 9 is a kind of system schematic that prevents service disconnection of the embodiment of the invention seven and embodiment eight.
Embodiment
The embodiment of the invention provides a kind of methods, devices and systems that prevent service disconnection, first device sends the control message of the port status of locking second device, so that second device is when can not receive protocol massages above the scheduled time, do not change the operating state of port, and continue from port to receive service message; First device is restarted CPU after receiving the response message of the latched port state that second device sends.Use the embodiment of the invention and can make agreement with timeout mechanism, when protocol massages interrupts surpassing the scheduled time, non-interrupting service.
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is carried out clear, complete description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Embodiment one, describe in detail referring to Fig. 2, Fig. 2 is the method flow schematic diagram of present embodiment.
Step S1, first installs the control message of the port status that sends locking second device, so that second device when can not receive protocol massages above the scheduled time, does not change the operating state of port, and continues from port to receive service message;
First device and second device are when operate as normal, and protocol state machine also moves normally.When a certain moment first, device received the warm reset order, first device sent the control message of the port status of locking second device to second device.
Concrete the embodiment of the invention can be by each port of first device as shown in Figure 3, by the reserve bytes Reserved of LACP protocol massages, carries the information of second port status that installs that locking links to each other with each port.
When the embodiment of the invention has agreements such as the STP of timeout mechanism or RSTP at other; reserve bytes Reserved by STP or RSTP protocol massages; carry the information of the port status of second device that locking links to each other with each port; the present invention is not limited this, all in protection range of the present invention.
As shown in Figure 4, the embodiment of the invention also can a kind of message of redetermination, and message format can be arranged by terminal device, in the message format shown in Figure 4, and DA=01-80-c2-00-00-02; The MAC Address of SA=equipment; ETHTYPE=0x8809; The still undefined types value of SUBTYPE=represents to lock message; The protocol type of PROTOCOL TYPE=definition, such as the LACP agreement, RSTP agreement etc.; PORT NO=port numbers; LOCK STATE=locking Peer-Port state, 0 for unlocking, and 1 is locking.
Step S2, first device are restarted CPU after receiving the response message of the latched port state that second device sends.
After second device receives the control message of port status of locking second device that first device sends, the latched port state, be the operation of latched port state machine, so state machine can be because of not overtime and port is changed to non-operation, port also just still receives the business that first device sends; Second device sends the response message of latched port state to first device behind the latched port state; After first device receives response message, restart CPU.
A kind of method that prevents service disconnection of the embodiment of the invention one can make the agreement with timeout mechanism, when protocol massages interrupts surpassing the scheduled time, and non-interrupting service.
Embodiment two, describe in detail referring to Fig. 5, Fig. 5 is the method flow schematic diagram of present embodiment.
Present embodiment, carried out with on behind the identical or similar step S1 of an embodiment and the S2, also to carry out following step:
S3, after CPU started, first device sent the control message of the port status of second device that unlocks, with the port status of second device that unlocks.
First device finishes in warm reset, after CPU restarts, sends the control message of the port status of second device that unlocks to second device; The control message of the port status of concrete second device that unlocks can adopt the protocol massages identical with the control message of the port status that locks second device or the message of redetermination, and the present invention does not limit this, all in protection range of the present invention.
After second device receives the control message of second port status that installs that unlocks, the port status that unlocks, the agreement of first device and second device is recovered normal and is moved.
A kind of method that prevents service disconnection of the embodiment of the invention two, can be during the device warm reset non-interrupting service, warm reset finishes the normal operation that the port agreement is recovered in the back.
Embodiment three, describe in detail referring to Fig. 6, Fig. 6 is a kind of device schematic diagram that prevents service disconnection of present embodiment.This device comprises:
Sending module is used to send the control message that locks second port status that installs, so that second device when can not receive protocol massages above the scheduled time, does not change the operating state of port, and continues from port reception service message;
Receiver module is used to receive the response message of the latched port state that second device sends;
Restart module, after being used for described receiver module and receiving described response message, restart CPU.
Contents such as concrete signal processing, implementation between the said apparatus module and since with the inventive method embodiment based on same conception, can repeat no more referring to the narration of the inventive method embodiment herein.
A kind of device that prevents service disconnection of the embodiment of the invention three can make the agreement with timeout mechanism, when protocol massages interrupts surpassing the scheduled time, and non-interrupting service.
Embodiment four, the embodiment of the invention also provide a kind of device that prevents service disconnection, this device has the module that embodiment three comprises, described in addition sending module, after also being used for described CPU startup, the unlock control message of port status of second device of transmission is with the port status of second device that unlocks.
A kind of device that prevents service disconnection of the embodiment of the invention four, can be during the device warm reset non-interrupting service, warm reset finishes the normal operation that the port agreement is recovered in the back.
Embodiment five, describe in detail referring to Fig. 7, Fig. 7 is a kind of device schematic diagram that prevents service disconnection of present embodiment.This device comprises:
Receiver module is used to receive the control message of the port status of the described device of locking that first device sends, so that described device does not change the operating state of port, and continues from port to receive service message surpassing the scheduled time when can not receive protocol massages;
Locking module, after being used for described receiver module and receiving described control message, the latched port state.
Contents such as concrete signal processing, implementation between the said apparatus module and since with the inventive method embodiment based on same conception, can repeat no more referring to the narration of the inventive method embodiment herein.
A kind of device that prevents service disconnection of the embodiment of the invention five can make the agreement with timeout mechanism, when protocol massages interrupts surpassing the scheduled time, and non-interrupting service.
Embodiment six, describe in detail referring to Fig. 8, Fig. 8 is that the embodiment of the invention also provides a kind of device that prevents service disconnection, this device has the module that embodiment five comprises, described in addition receiver module also is used to receive the control message that first device is restarted the port status of the described device that unlocks that sends behind the CPU;
Described device also comprises the module that unlocks, be used for the control message of port status that described receiver module receives the described described device that unlocks after, port status unlocks.
A kind of device that prevents service disconnection of the embodiment of the invention six, can be during the device warm reset non-interrupting service, warm reset finishes the normal operation that the port agreement is recovered in the back.
Embodiment seven, describe in detail referring to Fig. 9, Fig. 9 is a kind of system schematic that prevents service disconnection of present embodiment.This system comprises: first device and second device,
Described first device is used to send the control message that locks second port status that installs;
Described second device is used for according to described control message latched port state, and is used for behind the latched port state, sends the response message of latched port state;
Described first device also is used for restarting CPU after receiving described response message.
Contents such as concrete signal processing, implementation between the said apparatus and since with the inventive method embodiment based on same conception, can repeat no more referring to the narration of the inventive method embodiment herein.
A kind of system that prevents service disconnection of the embodiment of the invention seven can make the agreement with timeout mechanism, when protocol massages interrupts surpassing the scheduled time, and non-interrupting service.
Embodiment eight, the embodiment of the invention also provide a kind of system that prevents service disconnection, and this system has the device that embodiment seven comprises, described in addition first device also is used to send the control message of port status of second device of unlocking;
Described second device also is used for the control message according to the port status of described second device that unlocks, and port status unlocks.
A kind of system that prevents service disconnection of the embodiment of the invention eight, can be during the device warm reset non-interrupting service, warm reset finishes the normal operation that the port agreement is recovered in the back.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement, but the former is better execution mode under a lot of situation by hardware.Based on such understanding, all or part of can the embodying that technical scheme of the present invention contributes to background technology with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.
Claims (10)
1, a kind of method that prevents service disconnection is characterized in that, comprising:
First installs the control message of the port status that sends locking second device, so that second device when can not receive protocol massages above the scheduled time, does not change the operating state of port, and continues from port to receive service message;
First device is restarted CPU after receiving the response message of the latched port state that second device sends.
2, the method for claim 1 is characterized in that, described method also comprises:
After CPU started, first device sent the control message of the port status of second device that unlocks, with the port status of second device that unlocks.
3, the method for claim 1 is characterized in that, first device sends before the control message of the port status that locks second device, and described method also comprises: first device receives the warm reset order.
4, the method for claim 1, it is characterized in that, the control message of the port status of the first device transmission locking, second device is specially first device and sends described protocol massages, and the reserve bytes of described protocol massages carries the information of the port status that locks second device; Perhaps first device sends the control message that locks second port status that installs and is specially the message that first device sends the redetermination of the information of carrying locking Peer-Port state.
5, a kind of device that prevents service disconnection is characterized in that, comprising:
Sending module is used to send the control message that locks second port status that installs, so that second device when can not receive protocol massages above the scheduled time, does not change the operating state of port, and continues from port reception service message;
Receiver module is used to receive the response message of the latched port state that second device sends;
Restart module, after being used for described receiver module and receiving described response message, restart CPU.
6, device as claimed in claim 5 is characterized in that,
Described sending module after also being used for described CPU and starting, sends the control message of the port status of second device that unlocks, with the port status of second device that unlocks.
7, a kind of device that prevents service disconnection is characterized in that, comprising:
Receiver module is used to receive the control message of the port status of the described device of locking that first device sends, so that described device does not change the operating state of port, and continues from port to receive service message surpassing the scheduled time when can not receive protocol massages;
Locking module, after being used for described receiver module and receiving described control message, the latched port state.
8, device as claimed in claim 7 is characterized in that, described receiver module also is used to receive the control message that first device is restarted the port status of the described device that unlocks that sends behind the CPU;
Described device also comprises the module that unlocks, be used for the control message of port status that described receiver module receives the described described device that unlocks after, port status unlocks.
9, a kind of system that prevents service disconnection is characterized in that, comprising: first device and second device,
Described first device is used to send the control message that locks second port status that installs, so that second device when can not receive protocol massages above the scheduled time, does not change the operating state of port, and continues from port reception service message;
Described second device is used for according to described control message latched port state, and is used for behind the latched port state, sends the response message of latched port state;
Described first device also is used for restarting CPU after receiving described response message.
10, system as claimed in claim 9 is characterized in that,
Described first device also is used to send the control message of port status of second device of unlocking;
Described second device also is used for the control message according to the port status of described second device that unlocks, and port status unlocks.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810216512A CN101686187A (en) | 2008-09-27 | 2008-09-27 | Method, device and system for prevention of interruption of service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810216512A CN101686187A (en) | 2008-09-27 | 2008-09-27 | Method, device and system for prevention of interruption of service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101686187A true CN101686187A (en) | 2010-03-31 |
Family
ID=42049168
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810216512A Pending CN101686187A (en) | 2008-09-27 | 2008-09-27 | Method, device and system for prevention of interruption of service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101686187A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103501298A (en) * | 2013-09-29 | 2014-01-08 | 杭州华三通信技术有限公司 | Method and device for ensuring continuous flow in a link circuit during no-break service upgrade process |
CN103517303A (en) * | 2012-06-25 | 2014-01-15 | 中兴通讯股份有限公司 | Microwave transmission apparatus, and data processing method and device for the same |
CN107493219A (en) * | 2016-06-12 | 2017-12-19 | 中兴通讯股份有限公司 | File transmitting method and packet transmission device |
CN107864094A (en) * | 2017-11-15 | 2018-03-30 | 新华三技术有限公司 | A kind of traffic routing method, device and machinable medium |
-
2008
- 2008-09-27 CN CN200810216512A patent/CN101686187A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103517303A (en) * | 2012-06-25 | 2014-01-15 | 中兴通讯股份有限公司 | Microwave transmission apparatus, and data processing method and device for the same |
CN103501298A (en) * | 2013-09-29 | 2014-01-08 | 杭州华三通信技术有限公司 | Method and device for ensuring continuous flow in a link circuit during no-break service upgrade process |
CN103501298B (en) * | 2013-09-29 | 2016-07-20 | 杭州华三通信技术有限公司 | A kind of non-interrupting service escalation process ensures the method and apparatus that link does not stop |
CN107493219A (en) * | 2016-06-12 | 2017-12-19 | 中兴通讯股份有限公司 | File transmitting method and packet transmission device |
CN107864094A (en) * | 2017-11-15 | 2018-03-30 | 新华三技术有限公司 | A kind of traffic routing method, device and machinable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1914939B1 (en) | A method for the triggering failure detection of bidirectional forwarding detection | |
CN101542980B (en) | Method for the operation of an ethernet-compatible field bus device | |
WO2009023996A1 (en) | Method for implementing network interconnect via link aggregation | |
CN101984606A (en) | Device-level redundancy protection method and system based on LACP | |
CN100388721C (en) | Method for protecting coupling based on flow control transfer protocol | |
US20160080842A1 (en) | Data transmission method, apparatus, and system | |
WO2012006852A1 (en) | Method, system and clock board for transmitting synchronization status message | |
CN101686187A (en) | Method, device and system for prevention of interruption of service | |
EP2445160B1 (en) | Method for automatically negotiating type of service and aggregation apparatus therefor | |
CN102142999B (en) | Method, equipment and system for recovering links | |
CN100379205C (en) | Method for speeding ARP table entry aging for switch board | |
CN103514121B (en) | A kind of network card redundancy switching method under WindowsXp operating system | |
CN1567919A (en) | A method for primary and standby machine to take turns on TCP connection | |
CN104753754A (en) | Method and apparatus for transmitting messages | |
CN1855838B (en) | Interface inverting method | |
CN101951680A (en) | Link protection method and device thereof | |
CN101599882B (en) | Method and device for achieving point-to-point far end loopback of Ethernet | |
US7991132B2 (en) | Billing method and system, and billing server | |
WO2021027353A1 (en) | Method for processing packet and first network device | |
EP1810453A1 (en) | A wlan station and a method of operating the station in infrastructure mode and in independent (ad-hoc) mode simultaneously. | |
CN102271045A (en) | Virtual private network (VPN)-instance-based inter-equipment backup method, equipment and system | |
CN100493019C (en) | Method and device for implementing ring configuration in ring network | |
CN101237644B (en) | Control method of a GPRS/CDMA integrated mobile terminal | |
KR100512625B1 (en) | Method for Resource Management in Mobile Communication System | |
US20060104239A1 (en) | Apparatus and method for updating packet data session parameters by PDSN in mobile communications system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20100331 |