CN103634131A - A method and device for detecting interconnection links of virtualization network devices - Google Patents

A method and device for detecting interconnection links of virtualization network devices Download PDF

Info

Publication number
CN103634131A
CN103634131A CN201210304042.5A CN201210304042A CN103634131A CN 103634131 A CN103634131 A CN 103634131A CN 201210304042 A CN201210304042 A CN 201210304042A CN 103634131 A CN103634131 A CN 103634131A
Authority
CN
China
Prior art keywords
link
state
fault
interconnected
interconnected link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210304042.5A
Other languages
Chinese (zh)
Other versions
CN103634131B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201210304042.5A priority Critical patent/CN103634131B/en
Publication of CN103634131A publication Critical patent/CN103634131A/en
Application granted granted Critical
Publication of CN103634131B publication Critical patent/CN103634131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and device for detecting interconnection links of virtualization network devices. According to the method, each member device of the virtualization network devices respectively sends a fault detection message to an opposite-end member device through each interconnection link, of which the port physical state is normal, and sets corresponding interconnection link state based on the reception conditions of the fault detection message of each interconnection link, so that health detection can be performed on all interconnection links between the member devices, and corresponding fault processing is performed based on detection results.

Description

The interconnected chain circuit detecting method of a kind of virtual network equipment and equipment
Technical field
The present invention relates to the Intel Virtualization Technology of the communications field, relate in particular to the interconnected chain circuit detecting method of a kind of virtual network equipment and equipment.
Background technology
The technical development of current network device virtualization is extremely rapid, and Adoption Network device virtualization technology can be interconnected at many switches together, forms distributed switching architecture, and as a logic switching entity operation.From the angle of management and configuration, a distributed switching architecture seems just as a switching equipment; From the angle of performance, every switch in distributed switching architecture can be formulated local forwarding decision for the communication service of the second layer on its port/three laminar flow amount.It provides a kind of novel Intel Virtualization Technology to user.Typical network equipment Intel Virtualization Technology comprises IRF2 (Intelligent Resilient Framework, intelligent elastic framework) technology and VSS (Virtual Switching System, virtual exchange system) technology.
The virtual of the network equipment is that the network equipment of many platform independent is combined by link connection, and the equipment of every platform independent is called frame or the member device of virtual network entity.In order to support better across frame traffic forwarding, between ordinary circumstance lower frame, interconnected link is all more than one, as shown in fig. 1, across the interconnected link of frame elasticity, has 4 (as link1~4 in figure).
At present, to what detect employing across frame link health, be that primary link hello packet interoperability detects.As shown in Figure 2, after virtual the completing of equipment, two frames are virtualized into a virtual network entity, now two frames can consult and select a primary link as the control interactive link of pseudo-entity, and only for primary link, detect, confirm viability the mutual corresponding message of controlling of virtual opposite equip., the health of other links is not checked, rely on the physics DOWN state (abnormal condition or malfunction) of port to judge link failure, make flow switch.
Network equipment Intel Virtualization Technology by the equipment of many platform independent by link combinations together, when the flow of virtual system need to forward between inner each frame of virtual system, will pass through across the interconnected link of frame elasticity, so in order to strengthen across frame forwarding performance, across generally all more than one in actual applications of the interconnected link of frame elasticity.In addition, along with the development of network equipment Intel Virtualization Technology, can carry out Long-range links by trunking and realize virtually, as shown in Figure 3, this Health Check to interconnected link is had higher requirement.
Summary of the invention
The embodiment of the present invention provides the interconnected chain circuit detecting method of a kind of virtual network equipment and equipment, in order to realize, each interconnected link between the member device in virtual network device is carried out to health detection.
In the interconnected chain circuit detecting method of the virtual network equipment that the embodiment of the present invention provides, the described virtual network equipment comprises at least two member devices, and between member device, by interconnected link connection, the method comprises:
Each member device, according to the detect cycle of setting, sends fault-finding message by normal each the interconnected chain road direction opposite end member device of ports physical state respectively;
Each member device is according to the Link State maintenance period of setting, in statistic chain line state maintenance period, the fault-finding message amount receiving from the normal interconnected link of each ports physical state, whether the corresponding interconnected link of fault-finding message amount judgement obtaining according to statistics fault, and when judgement is while having interconnected link failure, judgement is set to UP/FAULT state for the interconnected link of fault; Wherein, after the interconnected link of member device UP/NORMAL state is set to UP/FAULT state, the interconnected link that UP/FAULT state is set is unavailable, the flow that is set to disabled interconnected link is adjusted to other available interconnected link, and when being set to disabled interconnected link while being control link, carry out control link switching;
Wherein, the ports physical state of the interconnected link of UP/FAULT state representation is that normal, interconnected link forwarding state is unsuccessfully, the ports physical state of the interconnected link of UP/NORMAL state representation is that normal, interconnected link forwarding state is normal, and the length of described Link State maintenance period is not less than the length of described detect cycle.
The network equipment that the embodiment of the present invention provides, as the member device in virtual network device, and passes through interconnected link connection between other member device in virtual network device, this network equipment can comprise:
Detecting module, for according to the detect cycle of setting, sends fault-finding message by normal each the interconnected chain road direction opposite end member device of ports physical state respectively, and receives the fault-finding message that opposite end member device sends;
Link State maintenance module, be used for according to the Link State maintenance period of setting, in statistic chain line state maintenance period, the fault-finding message amount receiving from the normal interconnected link of each ports physical state, whether the corresponding interconnected link of fault-finding message amount judgement obtaining according to statistics fault, and when judgement is while having interconnected link failure, judgement is set to UP/FAULT state for the interconnected link of fault;
Fault processing module, for after the interconnected link of UP/NORMAL state is set to UP/FAULT state, the interconnected link that UP/FAULT state is set is unavailable, the flow that is set to disabled interconnected link is adjusted to other available interconnected link, and when being set to disabled interconnected link while being control link, carry out control link switching;
Wherein, the ports physical state of the interconnected link of UP/FAULT state representation is that normal, interconnected link forwarding state is unsuccessfully, the ports physical state of the interconnected link of UP/NORMAL state representation is that normal, interconnected link forwarding state is normal, and the length of described Link State maintenance period is not less than the length of described detect cycle.
In the above embodiment of the present invention, because each member device in virtual network device sends fault-finding message by normal each the interconnected chain road direction opposite end member device of ports physical state respectively, and the state of corresponding interconnected link is set according to the reception condition of fault-finding message on each interconnected link, thereby can carry out health detection to all interconnected link between member device, and carry out corresponding failure processing according to testing result.
Accompanying drawing explanation
Fig. 1 is the virtual example schematic of the network equipment in prior art;
Fig. 2 is the schematic diagram that only master control link is carried out to hello packet intercommunication detection in prior art;
Fig. 3 is the virtual network device schematic diagram that available technology adopting trunking connects;
Fig. 4 is the state transition diagram of the interconnected link in the embodiment of the present invention;
Fig. 5 is the signalling trouble message transmission flow schematic diagram in the embodiment of the present invention;
Fig. 6 is that UP/RECOVER state in the embodiment of the present invention is to the switching schematic diagram of UP/NORMAL state;
The structural representation of the network equipment that Fig. 7 provides for the embodiment of the present invention.
Embodiment
By the analysis to above-mentioned prior art, inventor finds that existing scheme at least exists defect aspect following two:
(1) only at the enterprising line link of primary link, detect, ignored the Health Check of other interconnected links.When more than one of interconnected link, the control message that primary link is used between mutual two member devices is safeguarded virtual system, and primary link can come together to bear with other interconnected link the traffic forwarding of striding equipment simultaneously.When any appearance in interconnected link forwards fault, all can have influence on data service, cause a large amount of packet losses.The physical state of current dependence device port becomes DOWN and judges this link failure; but along with the application of (as shown in Figure 3) of virtual trunk technology; likely occur that trunking forwards abnormal but physical port does not still have the situation of DOWN; so; current fault judgment method is inaccurate; link forwarding is obstructed can not be reflected to the urgent switch protecting processing that relevant business module carries out business timely and accurately, causes a large amount of packet losses of network traffics.
(2) in current processing scheme, there is no link failure recovery mechanism.Fault disappearance when interconnected link, after can normally forwarding, does not have corresponding mechanism to allow this link again participate in traffic forwarding effectively to utilize system resource.
The problems referred to above that exist for prior art; the embodiment of the present invention provides a solution; consider the problem of the aspects such as system stability, service protection and the utilization of resources of virtual interconnected systems comprehensively; realize the fault fast detecting of each interconnected link of striding equipment elasticity, and further realize fault recovery.
In the embodiment of the present invention, three kinds of message and four kinds of interconnected Link States that detect for interconnected link health have been defined, and in conjunction with the explorer of having given out a contract for a project the changing the mechanism and corresponding treatment mechanism between various interconnected Link States of having formulated justice, with realize in virtual network device between member device the health of each interconnected link detect and fault recovery.
Three kinds of messages that detect for interconnected link health of embodiment of the present invention definition, comprising:
(1) fault-finding message: this message sends according to the detect cycle of setting, for link failure detection.Each member device in virtual network device can adopt polling mode to pass through each interconnected chain road direction opposite end member device and send fault-finding message, and according to the reception condition of the fault-finding message on interconnected link, judge whether corresponding interconnected link breaks down, and whether fault recovery of the interconnected link breaking down, this process is called interconnected link detecting process.
(2) signalling trouble message: this message breaks down for notifying link.When member device detects interconnected link occurs fault, by this interconnected chain road direction opposite end member device, send signalling trouble message, by this advisory opposite end member device, in order to trigger opposite end member device, carry out interconnected Link State switching and carry out corresponding failure treatment mechanism.
Need explanation, the present invention relies on reception fault-finding message to determine whether corresponding interconnected link breaks down, and the fault therefore detecting is the fault on interconnected link receive direction, not necessarily has fault on the sending direction of this interconnected link.And then local terminal member device can send signalling trouble message by this interconnected chain road direction opposite end member device.And, directly by this interconnected link, send signalling trouble message, be conducive to opposite end member device and know in time the interconnected link breaking down, simplified signalling trouble flow process.
(3) fault recovery message: this message is for notifying link fault recovery.When member device detects the interconnected link failure releasing of breaking down, by this interconnected chain road direction opposite end member device, send fault recovery message, by this advisory opposite end member device, in order to trigger member device, carry out interconnected Link State switching and carry out corresponding failure Recovery processing mechanism.
For interconnected link, it is defined the state of two aspects here: the physical state of link port and link forwarding state.Wherein, the physical state of link port comprises: UP (normally) and DOWN (fault); Link forwarding state comprises: NORMAL (normally), FAULT (failure) and RECOVER (recovery).Because the forwarding state one of interconnected link under ports physical DOWN state is decided to be FAULT state, so from a member device self, interconnected link has four kinds of operating states, respectively: DOWN/FAULT, UP/NORMAL, UP/FAULT, UP/RECOVER, only the interconnected link in UP/NORMAL state just has the qualification that participates in data traffic forwarding.The various states of above-mentioned interconnected link are all arranged on the corresponding port of equipment, it is a kind of description of device port state, be different from port status of the prior art, this state in the embodiment of the present invention can be described the physical state of device port, can describe again the forwarding state of corresponding interconnected link.
Below in conjunction with the state transition diagram of the interconnected link shown in Fig. 4, the interconnected link detecting flow process of the virtual network equipment that the embodiment of the present invention is provided is elaborated.
As shown in Figure 4, member device is when initial, and the interconnected Link State on this member device can be DOWN/FAULT or UP/NORMAL.
If the initial condition of interconnected link is DOWN/FAULT, after the ports physical state on the member device of the two ends of this interconnected link is UP, this two ends member device adopts respectively the mechanism that the embodiment of the present invention provides to send fault-finding message to opposite end member.If it is normal that member device is adjudicated corresponding interconnected Link State according to the message reception condition on interconnected link, link is set up, and the interconnected link of local terminal enters UP/NORMAL state (A is as shown in FIG. to the process of B).
If the initial condition of interconnected link is UP/NORMAL, the two ends member device of this interconnected link adopts respectively the mechanism that the embodiment of the present invention provides to send fault-finding message to opposite end member device.If the interconnected link that member device is UP/NORMAL according to the message reception condition judgement state on interconnected link does not break down, keep the current UP/NORMAL state of this interconnected link (B is as shown in FIG. to the process of B).
The interconnected link that is UP/NORMAL for state, there are following four kinds of situations in its state conversion:
Situation 1: if member device is by interconnected link detecting, judgement state is the interconnected link occurs fault of UP/NORMAL, but the physical port UP of this interconnected link, this interconnected link is switched to UP/FAULT state (as the process from B to C figure) from UP/NORMAL state, and carry out corresponding failure processing, and further by this interconnected chain road direction opposite end member device, send signalling trouble message.
Situation 2: if the interconnected link that member device is UP/NORMAL from state receives the signalling trouble message that opposite end member device sends, this interconnected link is switched to UP/FAULT state (as the process from B to C figure) from UP/NORMAL state, and carry out corresponding failure processing.
Situation 3: if member device by interconnected link detecting, the interconnected link that judgement state is UP/NORMAL does not break down, and the physical port UP of this interconnected link, keeps the UP/NORMAL state (as the process from B to B in figure) of this interconnected link.
Situation 4: if the physical port DOWN of the interconnected link that member device Discovery Status is UP/NORMAL switches to DOWN/FAULT (as the process from B to A figure) by the state of this interconnected link from UP/NORMAL.Interconnected link under DOWN/FAULT state, the process of its state conversion ditto described in.
The interconnected link that is UP/FAULT for state, there are following three kinds of situations in its state conversion:
Situation 1: if member device is by interconnected link detecting, judgement state is the interconnected link failure recovery of UP/FAULT, and the physical port UP of this interconnected link, this interconnected link is switched to UP/RECOVER state (as the process from C to D figure) from UP/FAULT state, and further by this interconnected chain road direction opposite end member device, send fault recovery message, wait for the fault recovery message that opposite end member device returns.
Situation 2: if member device by interconnected link detecting, the interconnected link occurs fault that judgement state is UP/FAULT, and the physical port UP of this interconnected link, keep the UP/FAULT state (as the process from C to C in figure) of this interconnected link.
Situation 3: if the physical port DOWN of the interconnected link that member device Discovery Status is UP/FAULT switches to DOWN/FAULT (as the process from C to A figure) by the state of this interconnected link from UP/FAULT.
Interconnected link enters after UP/RECOVER state, member device can be according to setting cycle by the interconnected chain road direction opposite end member device transmission link-recovery message of UP/RECOVER state, and wait for opposite end member device response link-recovery message, until this interconnected link exits UP/RECOVER state.The interconnected link that is UP/RECOVER for state, there are following four kinds of situations in its state conversion:
Situation 1: if the interconnected link that member device is UP/RECOVER from state sends link-recovery message, from this interconnected link, receive the link-recovery message that opposite end member device returns, the state of this interconnected link is switched to UP/NORMAL (as the process from D to B figure) from UP/RECOVER, and can further carry out corresponding failure Recovery processing.
Situation 2: if the interconnected link that member device is UP/RECOVER from state sends link-recovery message, from this interconnected link, do not receive the link-recovery message that opposite end member device returns, keep the UP/RECOVER state (as the process from D to D in figure) of this interconnected link, and the interconnected chain road direction opposite end member device that can to continue according to setting cycle be UP/RECOVER by this state sends link-recovery message.
Situation 3: if member device is by interconnected link detecting, judgement state is that the interconnected link of UP/RECOVER breaks down at receive direction, and the physical port UP of this interconnected link, this interconnected link is switched to UP/FAULT from UP/RECOVER state, and the sending direction that can further pass through this interconnected link is to opposite end member device transmission signalling trouble message (as the process from D to C in figure).
Situation 4: if the physical port DOWN of the interconnected link that member device Discovery Status is UP/RECOVER switches to DOWN/FAULT (as the process from D to A figure) by the state of this interconnected link from UP/RECOVER.
In the status change process of above-mentioned interconnected link, if member device is by interconnected link detecting, adjudicate interconnected link occurs fault, when sending signalling trouble message to opposite end member device, can to opposite end member device, send signalling trouble message by number of times according to the rules, such as only send three signalling trouble messages to member device interval, opposite end, no longer continue afterwards to send, whether be indifferent to opposite end member device receives, because if opposite end member device is not received, the another one direction that this interconnected link is described is also obstructed, opposite end member device must detect, situation as shown in Figure 5.
In the status change process of above-mentioned interconnected link, member device is received after the fault-finding message of opposite end member device transmission at every turn, can first judge the current state of the corresponding interconnected link of this equipment, if this message does not belong to the message category that this current state should be processed, do not process this message, continue to maintain the current state of this interconnected link.For example, if member device receives from the interconnected link of UP/FAULT state the fault recovery message that opposite end member device sends, do not process.For each state of interconnected link, the regulation whether message is processed can be as shown in table 1:
The regulation whether table 1, interconnected link are processed three kinds of messages under each state
Figure BSA00000768104700081
Figure BSA00000768104700091
Status change flow process by above-mentioned interconnected link can be found out; three kinds of messages that detect for interconnected link health all send by corresponding interconnected link; can guarantee the accuracy of interconnected link detecting like this, also can facilitate the failure condition of the interconnected link of clear and definite specifically any bar of opposite end member device.
In addition, the definition of UP/RECOVER state has solved the problem of interconnected link single-pass judgement, has guaranteed the stable of interconnected Link State.As shown in Figure 6, member device detects after interconnected link failure recovery, in fact just the receive direction of local terminal has recovered, can not acknowledged to being normal, so increased the state of UP/RECOVER, sent fault recovery message to opposite end under this state, until receive that the fault recovery message of opposite end just illustrates that the interconnected link of both direction is all normal, just can carry out state switching, guarantee like this stability of system.
In the state transition flow process of above-mentioned interconnected link, whether related to member device adjudicates interconnected link by interconnected link detecting and breaks down, and the step of fault recovery whether, describe the interconnected link detecting mechanism that the embodiment of the present invention adopts below in detail and how to carry out above-mentioned judgement.
The embodiment of the present invention, for the situation that has many available interconnected links in virtual network device, adopts the mode of automatic regular polling, after the timer cycle arrives, according to polling sequence, selects an interconnected link to send fault-finding message.Based on this fault-finding message transmit mechanism, whether the decision algorithm whether interconnected link breaks down and interconnected link the decision algorithm of fault recovery, as described below.
(1) decision algorithm that whether interconnected link breaks down
Member device, in a Link State maintenance period (referred to herein as the T cycle), according to aforesaid state migration rules, is regularly safeguarded the state of each interconnected link.Definite method in T cycle is:
T=Interval*Packet_Number*Link_Number
Wherein, Interval is for sending the time interval (being the above-mentioned timer cycle) of fault-finding message; Link_Number is the interconnected number of links between each member device in virtual network device; Packet_Number represents fault-finding message amount, and this value is for set point, and for being more than or equal to 1 integer, preferred, Packet_Number desirable 2~5.That is the time of, every interconnected link being received to Packet_Number message is as a Link State maintenance period.
At a T in the cycle, the state of each interconnected link is carried out to full maintenance, if at T in the cycle, the fault-finding message amount receiving from interconnected link is less than a T desired fault-finding message amount receiving in the cycle, adjudicates this interconnected link occurs fault.Concrete, when the T cycle arrives, the fault-finding message amount that the member device statistics interconnected link that in the cycle, (as just pass by T cycle) is IP from every port at corresponding T receives, therefrom selects maximum Max as benchmark.Then, the fault-finding message receiving from every interconnected link is counted to P and Max compares, if have interconnected link to meet: (Max-P) < threshold value V, show to detect this interconnected link occurs fault, and then the state of this interconnected link is switched to UP/FAULT state.According to the definition in T cycle, at a T, in the cycle, it is Packet_Number that each interconnected link receives message maximum number Max in theory, therefore, fiducial value Max can not surpass Packet_Number, once Max surpasses Packet_Number, fiducial value is relatively got Packet_Number.
Certainly, also can when a T end cycle, add up the fault-finding message amount of receiving from every interconnected link in this T cycle, and according to statistics, carry out interconnected link health judgement in the manner described above.
(2) the interconnected link decision algorithm of fault recovery whether
Define a link-recovery detect cycle (being referred to as the M cycle here), when the M cycle arrives, member device is for the interconnected link under UP/FAULT state, statistics is every fault-finding message amount X that interconnected link is received in the cycle at a M wherein, and compare with the fault-finding message amount Y that should receive in theory, if (A is one and is greater than 0 parameter that is less than 1 (Y-X)/Y < A here, according to system, need to determine this value), think link failure recovery, and then be UP/RECOVER state by the interconnected link switching of this UP/FAULT state.
Preferably, the systematic function of above-mentioned relevant parameter based on different arranges.Concrete, in the situation that systematic function is satisfied, the length in T cycle and M cycle is more short better; Threshold value V is preferably not less than 90% (being the bigger the better in the high situation of the stability of a system) of Max; A can value for being less than 0.1 (the smaller the better in the high situation of the stability of a system).
In another embodiment of the present invention, for the situation that has many available interconnected links in virtual network device, replace in the following ways the mode of above-mentioned employing automatic regular polling to send fault-finding message: after the timer cycle arrives, by each interconnected link, to send fault-finding message respectively.Based on this fault-finding message transmit mechanism, the decision algorithm whether interconnected link breaks down and interconnected link whether the decision algorithm of fault recovery basic the same described in, do not repeat them here.
In the state transition flow process of above-mentioned interconnected link, relate to troubleshooting operation, below for different interconnected Link State handoff scenario, described the troubleshooting operation that the embodiment of the present invention adopts in detail.
Here need the state switching of interconnected link and the traffic management of virtual network device to combine; quick protection and the reasonable distribution of realization to Network; when the state that detects interconnected link when member device changes, need to notify the virtual system management module of virtual network device to carry out flow migration.
The embodiment of the present invention, for following three kinds of interconnected Link State handoff scenario, provides corresponding failure to process operation or Petri Nets operation.
Scene 1: when member device is switched to UP/FAULT state by interconnected link from UP/NORMAL state, the virtual system management module triggering in virtual network device is handled as follows: the interconnected link that UP/FAULT state is set is unavailable; Call the flow of traffic management module adjustment faulty link to other available interconnected link.
If being switched to the interconnected link of UP/FAULT is interconnected control link, further carry out control link switching, be switched to other available interconnected link.This is because should have a link in interconnected link is control link (primary link), therefore in control link, switches to after UP/FAULT state, should carry out control link switching, to guarantee still there is control link after link switching.
Scene 2: when member device is switched to DOWN/FAULT state by interconnected link from UP/NORMAL state, handling process is with the handling process under scene 1.
Scene 3: when member device is switched to UP/NORMAL state by interconnected link from UP/RECOVER state, the virtual system management module triggering in virtual network device is handled as follows: the interconnected link that the state of setting is UP/NORMAL can be used, and calls the flow of traffic management module adjustment normal link to reverting to available interconnected link.
Transformation between each state of other of interconnected link, the virtual system management module that can not trigger in virtual network device is moved, to strengthen the stability of system.
Above troubleshooting operation is all based at least there being the situation of two effective interconnected links in virtual network device, and for the interconnected link of the virtual network device situation of remaining only, the embodiment of the present invention provides corresponding failure treatment mechanism.
While only having an available interconnected link in virtual network device, it must be the control link of virtual network device, if the state of this link changes, to virtualization system, will produce material impact.Because the reaction time of link failure fast detecting is very fast, failure response action to the interconnected link of the last item easily causes unsettled hidden danger to virtual interconnected systems, so, while only having an available interconnected link, if member device detects this link failure.Can not be reported to the virtual system management module in virtual network device.For the detection of link viability, adopt the scheme of previous embodiment description, to improve the reliability of virtual network device.
In sum, what the embodiment of the present invention proposed detects the fault detect of interconnected link and fault recovery, can detect virtual interconnected all links (comprising primary link and other links), not only can link failure be made and quick and precisely being reacted and the business of making is switched, can after fault recovery being detected, carry out virtual system business recovery simultaneously, for fault recovery, detect, it is configurable that the embodiment of the present invention is considered to be designed in realization, and provide the function that whether selection opens link failure recovery voluntarily for user.
Technical conceive based on identical, the embodiment of the present invention also provides a kind of network equipment.
Referring to Fig. 7, the structural representation of the network equipment providing for the embodiment of the present invention, this network equipment has the function to the sending and receiving for interconnected link health detection messages concurrently.This network equipment is as the member device in virtual network device, and between other member device in virtual network device by interconnected link connection.This network equipment can comprise: detecting module 701, Link State maintenance module 702 and fault processing module 703, wherein:
Detecting module 701, for according to the detect cycle of setting, sends fault-finding message by normal each the interconnected chain road direction opposite end member device of ports physical state respectively, and receives the fault-finding message that opposite end member device sends;
Link State maintenance module 702, be used for according to the Link State maintenance period (length of described Link State maintenance period is not less than the length of described detect cycle) of setting, in statistic chain line state maintenance period, the fault-finding message amount receiving from the normal interconnected link of each ports physical state, whether the corresponding interconnected link of fault-finding message amount judgement obtaining according to statistics fault, and when judgement is while having interconnected link failure, judgement is set to UP/FAULT state for the interconnected link of fault;
Fault processing module 703, for after the interconnected link of UP/NORMAL state is set to UP/FAULT state, the interconnected link that UP/FAULT state is set is unavailable, the flow that is set to disabled interconnected link is adjusted to other available interconnected link, and when being set to disabled interconnected link while being control link, carry out control link switching.
Further, detecting module 701 also for: after the state of the interconnected link of described Link State maintenance module is set to UP/FAULT, by being set to the sending direction of the interconnected link of UP/FAULT state, to opposite end member device, send signalling trouble message, and receive the signalling trouble message that opposite end member device sends; Accordingly, Link State maintenance module 702 also for: when the interconnected link that is UP/NORMAL from state receives the signalling trouble message that opposite end member device sends, the interconnected link that described state is UP/NORMAL is set to UP/FAULT state.
Further, Link State maintenance module 702 also for: according to the link-recovery detect cycle of setting, in statistics link-recovery detect cycle, the fault-finding message amount that the interconnected link that is UP/FAULT from state receives, whether the corresponding interconnected link failure of fault-finding message amount judgement obtaining according to statistics recovers, and when judgement has interconnected link failure recovery, the interconnected link of fault recovery is set to UP/RECOVER state; Wherein, described link-recovery detect cycle is not less than described detect cycle.
Concrete, when Link State maintenance module 702 can be worked as the fault-finding message amount receiving from interconnected link and met the following conditions, adjudicate corresponding interconnected link failure recovery: (Y-X)/Y < A; Wherein, X represents the fault-finding message amount receiving from interconnected link, and Y represents the desired fault-finding message amount receiving in a Link State maintenance period, and A is parameter preset, 0 < A < 1.
Further, detecting module 701 also for: after the interconnected link of UP/FAULT state is set to UP/RECOVER state, according to setting cycle, the interconnected chain road direction opposite end member device that switches to UP/RECOVER by UP/FAULT by state sends fault recovery message, and waits for the fault recovery message that described opposite end member device returns; Accordingly, Link State maintenance module 702 also for: when switched to the interconnected link of UP/RECOVER by UP/FAULT from described state, receive the fault recovery message that opposite end member device sends, the state that described state switches to the interconnected link of UP/RECOVER by UP/FAULT is set to UP/NORMAL; Accordingly, fault processing module 703 also for: after the state that is switched to the interconnected link of UP/RECOVER at described state by UP/FAULT is set to UP/NORMAL, the state of setting is that the interconnected link of UP/NORMAL can be used, and flow is adjusted to and reverted to available interconnected link.
In the network equipment that the various embodiments described above provide, Link State maintenance module 702 also for: when the ports physical state of interconnected link becomes abnormal condition from normal condition, the interconnected link that ports physical state becomes abnormal condition is set to DOWN/FAULT state; Accordingly, fault processing module 703 also for: after the interconnected link that becomes abnormal condition at ports physical state is set to DOWN/FAULT state, the interconnected link that UP/FAULT state is set is unavailable, the flow that is set to disabled interconnected link is adjusted to other available interconnected link, and when being set to disabled interconnected link while being control link, carry out control link switching.
In the network equipment that the various embodiments described above provide, when Link State maintenance module 702 can be adjudicated corresponding interconnected link failure according to the fault-finding message amount receiving from interconnected link, for every normal interconnected link of ports physical state, if the fault-finding message amount receiving from current interconnected link meets the following conditions, adjudicate current interconnected link failure: (Max-P) < V; Wherein, the fault-finding message amount of P for receiving from current interconnected link within the respective link state-maintenance cycle; Max is within the respective link state-maintenance cycle, the maximum the fault-finding message amount receiving from the normal interconnected link of each ports physical state; V is predetermined threshold value, represents the maximum tolerance degree of the difference of P and Max.
In the network equipment that the various embodiments described above provide, interconnected Link State maintenance period is not less than the product of described detect cycle and interconnected number of links.Detecting module 702, when detect cycle arrives, is normal interconnected link according to setting a ports physical state of polling sequence selection, and sends fault-finding message from selected interconnected chain road direction opposite end member device.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a station terminal equipment (can be mobile phone, personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.

Claims (16)

1. the interconnected chain circuit detecting method of the virtual network equipment, the described virtual network equipment comprises at least two member devices, between member device, by interconnected link connection, it is characterized in that, the method comprises:
Each member device, according to the detect cycle of setting, sends fault-finding message by normal each the interconnected chain road direction opposite end member device of ports physical state respectively;
Each member device is according to the Link State maintenance period of setting, in statistic chain line state maintenance period, the fault-finding message amount receiving from the normal interconnected link of each ports physical state, whether the corresponding interconnected link of fault-finding message amount judgement obtaining according to statistics fault, and when judgement is while having interconnected link failure, judgement is set to UP/FAULT state for the interconnected link of fault; Wherein, after the interconnected link of member device UP/NORMAL state is set to UP/FAULT state, the interconnected link that UP/FAULT state is set is unavailable, the flow that is set to disabled interconnected link is adjusted to other available interconnected link, and when being set to disabled interconnected link while being control link, carry out control link switching;
Wherein, the ports physical state of the interconnected link of UP/FAULT state representation is that normal, interconnected link forwarding state is unsuccessfully, the ports physical state of the interconnected link of UP/NORMAL state representation is that normal, interconnected link forwarding state is normal, and the length of described Link State maintenance period is not less than the length of described detect cycle.
2. the method for claim 1, is characterized in that, the method also comprises:
After the state of the interconnected link of member device is set to UP/FAULT, by this interconnected chain road direction opposite end member device, send signalling trouble message;
The interconnected link that member device is UP/NORMAL from state receives the signalling trouble message of opposite end member device transmission, and the interconnected link that described state is UP/NORMAL is set to UP/FAULT state.
3. method as claimed in claim 2, is characterized in that, the method also comprises:
Each member device is according to the link-recovery detect cycle of setting, in statistics link-recovery detect cycle, the fault-finding message amount that the interconnected link that is UP/FAULT from state receives, whether the corresponding interconnected link failure of fault-finding message amount judgement obtaining according to statistics recovers, and when judgement has interconnected link failure recovery, the interconnected link of fault recovery is set to UP/RECOVER state, take the ports physical state that represents interconnected link as normal, interconnected link forwarding state be recovery; Wherein, described link-recovery detect cycle is not less than described detect cycle.
4. method as claimed in claim 3, is characterized in that, when the fault-finding message amount receiving from interconnected link meets the following conditions, adjudicates corresponding interconnected link failure recovery:
(Y-X)/Y<A
Wherein, X represents the fault-finding message amount receiving from interconnected link, and Y represents the desired fault-finding message amount receiving in a Link State maintenance period, and A is parameter preset, 0 < A < 1.
5. method as claimed in claim 3, is characterized in that, the method also comprises:
After the interconnected link of member device UP/FAULT state is set to UP/RECOVER state, according to setting cycle, the interconnected chain road direction opposite end member device that switches to UP/RECOVER by UP/FAULT by state sends fault recovery message, and waits for the fault recovery message that described opposite end member device returns;
The interconnected link that is switched to UP/RECOVER when member device from described state by UP/FAULT receives the fault recovery message of opposite end member device transmission, the state that described state switches to the interconnected link of UP/RECOVER by UP/FAULT is set to UP/NORMAL, and the state that arranges is that the interconnected link of UP/NORMAL can be used, flow is adjusted to and reverted to available interconnected link.
6. the method as described in one of claim 1-5, is characterized in that, the method also comprises:
When the ports physical state of the interconnected link on member device becomes abnormal condition from normal condition, the interconnected link that described member device ports physical state becomes abnormal condition is set to DOWN/FAULT state, take represent interconnected link ports physical state as improper, interconnected link forwarding state is unsuccessfully, and the interconnected link that UP/FAULT state is set is unavailable, the flow that is set to disabled interconnected link is adjusted to other available interconnected link, and when being set to disabled interconnected link while being control link, carry out control link switching.
7. the method as described in one of claim 1-5, is characterized in that, the corresponding interconnected link failure of fault-finding message amount judgement according to receiving from interconnected link, is specially:
For every normal interconnected link of ports physical state, if the fault-finding message amount receiving from current interconnected link meets the following conditions, adjudicate current interconnected link failure:
(Max-P)<V;
Wherein, the fault-finding message amount of P for receiving from current interconnected link within the respective link state-maintenance cycle; Max is within the respective link state-maintenance cycle, the maximum the fault-finding message amount receiving from the normal interconnected link of each ports physical state; V is predetermined threshold value, represents the maximum tolerance degree of the difference of P and Max.
8. the method as described in one of claim 1-5, is characterized in that, described interconnected Link State maintenance period is not less than the product of described detect cycle and interconnected number of links;
Described each member device is according to the detect cycle of setting, by normal each the interconnected chain road direction opposite end member device of ports physical state, send fault-finding message respectively, be specially: each member device is when detect cycle arrives, according to setting a ports physical state of polling sequence selection, be normal interconnected link, and send fault-finding message from selected interconnected chain road direction opposite end member device.
9. a network equipment, as the member device in virtual network device, and passes through interconnected link connection between other member device in virtual network device, it is characterized in that, comprising:
Detecting module, for according to the detect cycle of setting, sends fault-finding message by normal each the interconnected chain road direction opposite end member device of ports physical state respectively, and receives the fault-finding message that opposite end member device sends;
Link State maintenance module, be used for according to the Link State maintenance period of setting, in statistic chain line state maintenance period, the fault-finding message amount receiving from the normal interconnected link of each ports physical state, whether the corresponding interconnected link of fault-finding message amount judgement obtaining according to statistics fault, and when judgement is while having interconnected link failure, judgement is set to UP/FAULT state for the interconnected link of fault;
Fault processing module, for after the interconnected link of UP/NORMAL state is set to UP/FAULT state, the interconnected link that UP/FAULT state is set is unavailable, the flow that is set to disabled interconnected link is adjusted to other available interconnected link, and when being set to disabled interconnected link while being control link, carry out control link switching;
Wherein, the ports physical state of the interconnected link of UP/FAULT state representation is that normal, interconnected link forwarding state is unsuccessfully, the ports physical state of the interconnected link of UP/NORMAL state representation is that normal, interconnected link forwarding state is normal, and the length of described Link State maintenance period is not less than the length of described detect cycle.
10. equipment as claimed in claim 9, it is characterized in that, described detecting module also for, after the state of the interconnected link of described Link State maintenance module is set to UP/FAULT, by this interconnected chain road direction opposite end member device, send signalling trouble message, and receive the signalling trouble message that opposite end member device sends;
Described Link State maintenance module also for, when the interconnected link that is UP/NORMAL from state receives the signalling trouble message that opposite end member device sends, the interconnected link that described state is UP/NORMAL is set to UP/FAULT state.
11. equipment as claimed in claim 10, it is characterized in that, described Link State maintenance module also for, according to the link-recovery detect cycle of setting, in statistics link-recovery detect cycle, the fault-finding message amount that the interconnected link that is UP/FAULT from state receives, whether the corresponding interconnected link failure of fault-finding message amount judgement obtaining according to statistics recovers, and when judgement has interconnected link failure recovery, the interconnected link of fault recovery is set to UP/RECOVER state, take represent interconnected link ports physical state as normal, interconnected link forwarding state is for recovering, wherein, described link-recovery detect cycle is not less than described detect cycle.
12. equipment as claimed in claim 11, it is characterized in that, described Link State maintenance module specifically for, when the fault-finding message amount receiving from interconnected link meets the following conditions, adjudicate corresponding interconnected link failure recovery: (Y-X)/Y < A; Wherein, X represents the fault-finding message amount receiving from interconnected link, and Y represents the desired fault-finding message amount receiving in a Link State maintenance period, and A is parameter preset, 0 < A < 1.
13. equipment as claimed in claim 11, it is characterized in that, described detecting module also for, after the interconnected link of UP/FAULT state is set to UP/RECOVER state, according to setting cycle, the interconnected chain road direction opposite end member device that switches to UP/RECOVER by UP/FAULT by state sends fault recovery message, and waits for the fault recovery message that described opposite end member device returns;
Described Link State maintenance module also for, when switched to the interconnected link of UP/RECOVER by UP/FAULT from described state, receive the fault recovery message of opposite end member device transmission, the state that described state switches to the interconnected link of UP/RECOVER by UP/FAULT is set to UP/NORMAL;
Described fault processing module also for, after the state that is switched to the interconnected link of UP/RECOVER at described state by UP/FAULT is set to UP/NORMAL, the state of setting is that the interconnected link of UP/NORMAL can be used, and flow is adjusted to and reverted to available interconnected link.
14. equipment as described in one of claim 9-13, it is characterized in that, described Link State maintenance module also for, when the ports physical state of interconnected link becomes abnormal condition from normal condition, the interconnected link that ports physical state becomes abnormal condition is set to DOWN/FAULT state, take the ports physical state that represents interconnected link as improper, interconnected link forwarding state be failure;
Described fault processing module also for, after the interconnected link that becomes abnormal condition at ports physical state is set to DOWN/FAULT state, the interconnected link that UP/FAULT state is set is unavailable, the flow that is set to disabled interconnected link is adjusted to other available interconnected link, and when being set to disabled interconnected link while being control link, carry out control link switching.
15. equipment as described in one of claim 9-13, it is characterized in that, described Link State maintenance module specifically for, while adjudicating corresponding interconnected link failure according to the fault-finding message amount receiving from interconnected link, for every normal interconnected link of ports physical state, if the fault-finding message amount receiving from current interconnected link meets the following conditions, adjudicate current interconnected link failure: (Max-P) < V;
Wherein, the fault-finding message amount of P for receiving from current interconnected link within the respective link state-maintenance cycle; Max is within the respective link state-maintenance cycle, the maximum the fault-finding message amount receiving from the normal interconnected link of each ports physical state; V is predetermined threshold value, represents the maximum tolerance degree of the difference of P and Max.
16. equipment as described in one of claim 9-13, is characterized in that, described interconnected Link State maintenance period is not less than the product of described detect cycle and interconnected number of links;
Described detecting module specifically for, when detect cycle arrives, according to setting polling sequence, to select a ports physical state be normal interconnected link, and send fault-finding message from selected interconnected chain road direction opposite end member device.
CN201210304042.5A 2012-08-24 2012-08-24 One kind virtualization network equipment inter-connection links detection method and equipment Active CN103634131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210304042.5A CN103634131B (en) 2012-08-24 2012-08-24 One kind virtualization network equipment inter-connection links detection method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210304042.5A CN103634131B (en) 2012-08-24 2012-08-24 One kind virtualization network equipment inter-connection links detection method and equipment

Publications (2)

Publication Number Publication Date
CN103634131A true CN103634131A (en) 2014-03-12
CN103634131B CN103634131B (en) 2018-04-27

Family

ID=50214787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210304042.5A Active CN103634131B (en) 2012-08-24 2012-08-24 One kind virtualization network equipment inter-connection links detection method and equipment

Country Status (1)

Country Link
CN (1) CN103634131B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016095406A1 (en) * 2014-12-16 2016-06-23 中兴通讯股份有限公司 Method and device for controlling network port
CN106100905A (en) * 2016-08-08 2016-11-09 湖州经典网络安防科技有限公司 Safety-protection system
CN106411731A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Method and device of self-negotiation link aggregation control protocol (LACP) reference system and reference port
CN109450738A (en) * 2018-12-19 2019-03-08 迈普通信技术股份有限公司 Chain circuit detecting method, device and server
CN110768848A (en) * 2019-10-31 2020-02-07 杭州迪普科技股份有限公司 Method and device for switching main server and standby server
CN111510345A (en) * 2020-04-03 2020-08-07 网宿科技股份有限公司 Method and device for detecting edge node abnormity
CN112073270A (en) * 2020-09-15 2020-12-11 新华三信息安全技术有限公司 Link fault detection method and device
CN112383471A (en) * 2020-10-30 2021-02-19 新华三信息技术有限公司 Method, device and equipment for managing knife box link and machine readable storage medium
CN112525981A (en) * 2020-10-16 2021-03-19 南京智数科技有限公司 Intelligent organic compound on-line monitoring instrument and transfer method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207529A (en) * 2007-11-22 2008-06-25 杭州华三通信技术有限公司 Method for link circuit fault detection and recovery based on PMD and corresponding apparatus
CN101640629A (en) * 2008-07-29 2010-02-03 华为技术有限公司 Method for monitoring link packet loss and bidirectional forwarding detector
CN102164056A (en) * 2011-03-17 2011-08-24 杭州华三通信技术有限公司 Stacked link aggregation fault detection method and stacked devices
CN102185711A (en) * 2011-04-26 2011-09-14 中兴通讯股份有限公司 Method and equipment for detecting link failure in hybrid network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207529A (en) * 2007-11-22 2008-06-25 杭州华三通信技术有限公司 Method for link circuit fault detection and recovery based on PMD and corresponding apparatus
CN101640629A (en) * 2008-07-29 2010-02-03 华为技术有限公司 Method for monitoring link packet loss and bidirectional forwarding detector
CN102164056A (en) * 2011-03-17 2011-08-24 杭州华三通信技术有限公司 Stacked link aggregation fault detection method and stacked devices
CN102185711A (en) * 2011-04-26 2011-09-14 中兴通讯股份有限公司 Method and equipment for detecting link failure in hybrid network

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016095406A1 (en) * 2014-12-16 2016-06-23 中兴通讯股份有限公司 Method and device for controlling network port
CN105763413A (en) * 2014-12-16 2016-07-13 中兴通讯股份有限公司 Method and device for controlling network port
CN106411731B (en) * 2015-07-27 2020-06-05 中兴通讯股份有限公司 Method and device for auto-negotiation LACP protocol reference system and reference port
CN106411731A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Method and device of self-negotiation link aggregation control protocol (LACP) reference system and reference port
CN106100905A (en) * 2016-08-08 2016-11-09 湖州经典网络安防科技有限公司 Safety-protection system
CN109450738A (en) * 2018-12-19 2019-03-08 迈普通信技术股份有限公司 Chain circuit detecting method, device and server
CN110768848A (en) * 2019-10-31 2020-02-07 杭州迪普科技股份有限公司 Method and device for switching main server and standby server
CN111510345A (en) * 2020-04-03 2020-08-07 网宿科技股份有限公司 Method and device for detecting edge node abnormity
CN111510345B (en) * 2020-04-03 2022-04-26 网宿科技股份有限公司 Method and device for detecting edge node abnormity
CN112073270A (en) * 2020-09-15 2020-12-11 新华三信息安全技术有限公司 Link fault detection method and device
CN112073270B (en) * 2020-09-15 2022-03-25 新华三信息安全技术有限公司 Link fault detection method and device
CN112525981A (en) * 2020-10-16 2021-03-19 南京智数科技有限公司 Intelligent organic compound on-line monitoring instrument and transfer method
CN112383471A (en) * 2020-10-30 2021-02-19 新华三信息技术有限公司 Method, device and equipment for managing knife box link and machine readable storage medium

Also Published As

Publication number Publication date
CN103634131B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
CN103634131A (en) A method and device for detecting interconnection links of virtualization network devices
CN101399737A (en) Protection method and apparatus used for link convergence group of loop Ethernet
CN102769568B (en) A kind of flow forwarding method based on virtual switch cluster and system
CN101753397B (en) System, method and device for rapidly self-healing Ethernet ring
CN101060485B (en) Topology changed messages processing method and processing device
CN102014019B (en) Aggregated link switching method and device
TWI455525B (en) Recovery method for ring-based network
CN103346944B (en) The looped network of multi-point cooperative detection link
CN103001799A (en) Method and node for achieving redundancy on basis of chain network
CN103152210B (en) Repair method and the stack equipment of Spanning-Tree Protocol forwarding state exception
CN102255757A (en) Link switching method and device
CN101652963A (en) Method for reconfiguring a communications network
CN101378333B (en) System, apparatus and method for transmitting and receiving check information message continuously
CN102970157A (en) Link failure processing method, intelligent resilient framework (IRF) member device and data communication device
CN107612754A (en) Two-way conversion link fault detection method, device and apparatus for network node
US9246751B2 (en) Ethernet ring protection switching method, network device and system
CN103607293A (en) Flow protection method and equipment thereof
CN101222402B (en) Ethernet ring protection method, system and device
CN101094190A (en) Method for transmitting protective controlled message in Ethernet ring net
CN103973479A (en) Method and apparatus for interworking protection switching
CN104135417A (en) Quick recovery method for ethernet ring network link interruption and corresponding ethernet ring network
CN101436975A (en) Method, apparatus and system for implementing rapid convergence in looped network
CN110912815A (en) Network element ring formation preventing method, device, equipment and readable storage medium
CN101641915B (en) Method for reconfiguring a communication network
CN101547131B (en) EAPS looped network single-channel fault location and protection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant