CN102355364A - Method and device for detecting one-way fault - Google Patents

Method and device for detecting one-way fault Download PDF

Info

Publication number
CN102355364A
CN102355364A CN2011102325644A CN201110232564A CN102355364A CN 102355364 A CN102355364 A CN 102355364A CN 2011102325644 A CN2011102325644 A CN 2011102325644A CN 201110232564 A CN201110232564 A CN 201110232564A CN 102355364 A CN102355364 A CN 102355364A
Authority
CN
China
Prior art keywords
port
equipment
upstream
root
designated port
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
Application number
CN2011102325644A
Other languages
Chinese (zh)
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 CN2011102325644A priority Critical patent/CN102355364A/en
Publication of CN102355364A publication Critical patent/CN102355364A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and a device for detecting a one-way fault. The method comprises the following steps: sending a link state query message to a Designated port by a downstream device with the help of a Root port, and confirming the one-way fault in the direction from the Root port to the Designated port by the downstream device when no link response message from an upstream device is received by the downstream device within an appointed time. By adopting the method, the one-way fault can be accurately detected.

Description

A kind of detection method of single-channel fault and equipment
Technical field
The present invention relates to communication technical field, particularly relate to a kind of detection method and equipment of single-channel fault.
Background technology
STP (Spanning Tree Protocol, Spanning-Tree Protocol) is used for eliminating data link layer physics loop at local area network (LAN).The equipment of operation STP is found the loop in the network through interactive information each other; And selectively certain port is blocked; Thereby the loop network structure is trimmed to loop-free tree network structure, thereby prevents message continuous hyperplasia and Infinite Cyclic in loop network, ring-type networking sketch map as shown in Figure 1; Behind the STP port block, can set up tree-shaped networking sketch map as shown in Figure 2.
Need to prove that because possibly there is a large amount of access devices in the network of Access Layer, so STP can be deployed in Access Layer, preventing network loop, and block redundant link.But under some situation; The single-pass link possibly occur in the network, and not cause broadcast storm, this moment, stp state was correct; Just the data forwarding of problematic link is obstructed; Here it is network black hole (its essence is the single-channel fault of link, and local terminal equipment can be received the data message of opposite equip., but opposite equip. can not be received the data message of local terminal equipment).After the network black hole occurring,, then need the long period, and influence user's application if lean on the artificial platform equipment that pursues to fix a breakdown.
The generation position in network black hole in the STP network is described below in conjunction with Fig. 3 and Fig. 4; Fig. 3 is the sketch map of normal STP three side ring networks, the sketch map when Fig. 4 is single-channel fault.In Fig. 3, A equipment is the root bridge, and port blocked is at the P2 of C equipment port.In Fig. 4; Between the P1 port of C equipment and the P2 port of A equipment; The single-channel fault of appearance from Root (root) port to Designated (appointment) port direction, this moment, the P1 port of C equipment can normally receive protocol massages, so Root role can not change; But C equipment interrupts to the link of A equipment is actual, all can lose through the flow that C equipment P1 port sends.
To the problems referred to above, in the prior art, the detection technique of single-channel fault is DLDP (Device Link Detection Protocol, a device link detection protocol) technology.The port of operation DLDP agreement has 7 kinds of possible states: (1) Initial (initially): the init state when the DLDP agreement does not enable; (2) Inactive (non-activity): the DLDP agreement enables, but residing state during linkdown (start); (3) Active (activity): the DLDP agreement has enabled and link up (startup), perhaps empties residing state behind the neighbor entry; (4) Advertisement (announcement): all neighbours' diconnecteds or be in the Active state and surpass the state that gets into after 5 seconds are a kind of more stable states when not finding one way link; (5) Probe (detection): receive the state that gets into behind a unknown neighbours' the message, will send probe messages this moment and detect whether link is one way link; (6) Disable (single-pass): the DLDP protocol detection is to one way link, or the state when neighbours disappear under enhancement mode, and port no longer received and sent the message except that DLDP this moment; (7) DelayDown (postponing down): when the DLDP state is in Active state, Advertisement state or Probe state; If receive port down incident; Can not delete neighbours immediately, get into the Inactive state, but be introduced into interim DelayDown state, under this state; The DLDP neighbor information still is retained, and system's echo port up incident.
With the normal networking of link shown in Figure 5 is example; Specify the process that the DLDP port status changes and single-pass detects: after (1) DLDP enables; The port Port A that is in the up state gets into the Active state; Outwards send Advertisement message (carrying the RSY mark) and announce the existence of self, and the request neighbor information.When (2) Port B receives the Advertisement message, think the discovery new neighbor,, and set up list item, start the ageing timer of this list item simultaneously for these neighbours start Echo (echo) waiting timer; In addition, Port B gets into the Probe state, outwards sends the Probe message.(3) after Port A receives the Probe message, set up neighbor entry, and get into the Probe state, reply the Echo message to the opposite end.(4) after Port B received the Echo message, because there has been the respective neighbor list item in local terminal, and the neighbor information of carrying in the message was identical with the information of local terminal preservation, and these neighbours are masked as bilateral; In addition, the DLDP state of Port B switches to Advertisement by Probe, and regularly outwards sends common Advertisement message; Under the Advertisement state, receive known neighbours' message sent, the value of these neighbours' that all can reset ageing timer at every turn.(5) after DLDP enabled, port Port B sent message and on Port A, sets up neighbours' process and step (1)~(4) similar.(6) Port A and Port B think that all the other side is the bilateral neighbours of oneself, and are in the Advertisement state.
After Port A and the Port B bilateral, if the Rx link of Port B breaks down suddenly, link single-channel fault sketch map as shown in Figure 6; According to the difference of the mode of operation that disposes, the testing process of follow-up one way link comprises: (1) under general mode, PortA is after neighbours' ageing timer is overtime; Delete this neighbor entry; Get into the Active state, send the Advertisement message that carries the RSY mark, with the request neighbor information; Port A is in the Active state and gets into the Advertisement state after 5 seconds, and is in this state always, and does not have neighbours.Port B is in the Inactive state always.In this case, general mode can't detect single-channel fault.
(2) under enhancement mode, Port A launches and strengthens timer and Echo waiting timer after neighbours' ageing timer is overtime, and sends the Probe message to neighbours; Because the Tx link of Port A is fault, the Echo waiting timer is overtime by the time, and Port A still can not receive the Echo message that neighbours Port B replys local terminal, and then PortA gets into the Disable state.
In sum, in the prior art, the DLDP Technology Need starts on two ports of every link simultaneously, and needs the mutual of protocol massages, detects the normal bilateral state of link earlier, just can detect the single-pass state then.
Summary of the invention
The present invention provides a kind of detection method and equipment of single-channel fault, accurately to detect single-channel fault.
In order to achieve the above object; The present invention provides a kind of detection method of single-channel fault; Be applied in the Spanning-Tree Protocol STP network, the upstream device in the said STP network is connected with the appointment Designated port of upstream equipment through root Root port, and this method may further comprise the steps:
Said upstream device sends the link state inquiry message through said Root port to said Designated port;
When said upstream device did not receive the link acknowledgement message from said upstream equipment at the appointed time, said upstream device confirmed that said Root port on the direction of said Designated port single-channel fault takes place.
Carry the sign of the bridge MAC and the said Designated port of said upstream equipment in the said link state inquiry message;
Said upstream device sends the link state inquiry message through said Root port to said Designated port, also comprises afterwards:
If said upstream equipment receives said link state inquiry message, then said upstream equipment is checked the bridge MAC that carries in the said link state inquiry message and the sign of Designated port;
If the bridge MAC that carries in the said link state inquiry message is consistent with the bridge MAC of said upstream equipment; And the sign of the Designated port that carries is consistent with the port that said upstream equipment receives said link state inquiry message, and then said upstream equipment sends the link acknowledgement message through said Designated port to said Root port.
Said upstream device sends the link state inquiry message through said Root port to said Designated port, also comprises afterwards:
If said upstream equipment receives said link state inquiry message through said Designated port; The data volume that said Designated port receives in the then said upstream equipment statistics predetermined period from said upstream device; When said data volume during less than predetermined threshold value, said upstream equipment confirms that said Root port on the direction of said Designated port single-channel fault takes place.
Said upstream equipment confirms that said Root port on the direction of said Designated port single-channel fault takes place, and further comprises:
Said upstream equipment sends the link state inquiry message through said Designated port to said Root port; When said upstream equipment did not receive the link acknowledgement message from said upstream device at the appointed time, said upstream equipment confirmed that said Root port on the direction of said Designated port single-channel fault takes place.
Said method also comprises: when the role of said Root port becomes backup Alternate port; If said upstream equipment receives role's update through said Designated port; And the new role of carrying said Root port in said role's update is the Alternate port, and then said upstream equipment stops to add up the data volume from said upstream device that said Designated port receives.
A kind of checkout equipment of single-channel fault; Be applied in the Spanning-Tree Protocol STP network; Upstream device in the said STP network is connected with the appointment Designated port of upstream equipment through root Root port; Said checkout equipment is upstream device or upstream equipment, and said checkout equipment comprises: sending module and processing module; Wherein:
When said checkout equipment is upstream device,
Said sending module is used for sending the link state inquiry message through said Root port to said Designated port;
Said processing module when being used for not receiving at the appointed time the link acknowledgement message from said upstream equipment, confirms that said Root port on the direction of said Designated port single-channel fault takes place.
Carry the sign of the bridge MAC and the said Designated port of said upstream equipment in the said link state inquiry message.
When said checkout equipment is upstream equipment,
Said processing module is used for when the link state inquiry message that receives from upstream device, checks the bridge MAC that carries in the said link state inquiry message from upstream device and the sign of Designated port;
Said sending module; Be used for when the said bridge MAC that carries from the link state inquiry message of upstream device consistent with the bridge MAC of said upstream equipment; And the sign of the Designated port that carries and said upstream equipment receive the port of said link state inquiry message from upstream device when consistent, send the link acknowledgement message through said Designated port to said Root port.
When said checkout equipment is upstream equipment,
Said processing module; Also be used for when receiving said link state inquiry message from upstream device through said Designated port; Then add up the data volume that said Designated port receives in the predetermined period from said upstream device; When said data volume during, confirm that said Root port on the direction of said Designated port single-channel fault takes place less than predetermined threshold value.
Said processing module specifically is used for when definite said Root port on the direction of said Designated port single-channel fault takes place, and sends the link state inquiry message through said Designated port to said Root port; When not receiving the link acknowledgement message from said upstream device at the appointed time, confirm that said Root port on the direction of said Designated port single-channel fault takes place.
Said processing module; Also be used for when the role of said Root port becomes backup Alternate port; If receive role's update through said Designated port; And the new role of carrying said Root port in said role's update is the Alternate port, then stops to add up the data volume from said upstream device that said Designated port receives.
Compared with prior art, the present invention has the following advantages at least:
Initiatively send the link state inquiry message through the Root port, can accurately detect single-channel fault, promptly can accurately detect the network black hole in the STP network efficiently, help webmaster in time to get rid of and diagnose network faults.
Description of drawings
Fig. 1 is a ring-type networking sketch map in the prior art;
Fig. 2 is a tree-shaped networking sketch map in the prior art;
Fig. 3 is the sketch map of normal STP three side ring networks in the prior art;
Fig. 4 is the sketch map during single-channel fault in the prior art;
Fig. 5 is a link normal group net sketch map in the prior art;
Fig. 6 is a link single-channel fault sketch map in the prior art;
Fig. 7 is the detection method flow chart of a kind of single-channel fault provided by the invention;
Fig. 8 is the message format sketch map that provides among the present invention;
Fig. 9 is the assay device structures figure of a kind of single-channel fault of proposing of the present invention.
Embodiment
As shown in Figure 4; For there being the situation of link single-channel fault before the foundation of STP network; A equipment is as the root bridge of network, and there is unidirectional fault in the P1 port of C equipment to the P2 port of A equipment, but reverse link is normal; Can normally receive the STP protocol massages that the root bridge sends; Owing to can receive protocol massages (protocol massages sends to upstream device by upstream equipment), so the stp state of A equipment, B equipment and C equipment is correct, but single-channel fault (data message that promptly sends from the P1 port of C equipment can't arrive A equipment) takes place on the P2 port direction of A equipment the P1 port of C equipment.
To the problems referred to above; The present invention provides a kind of detection method of single-channel fault; Be applied in the STP network, the upstream device in the STP network is connected with the Designated port of upstream equipment through the Root port, is grid of reference model sketch map of the present invention with Fig. 4; Then upstream equipment is a Designated port corresponding equipment, and upstream device is Root port (or corresponding Alternate (backup) port of a Root port) corresponding equipment; Among Fig. 4, between A equipment and the C equipment, A equipment is upstream equipment, and C equipment is upstream device; Between A equipment and the B equipment, A equipment is upstream equipment, and B equipment is upstream device; Between B equipment and the C equipment, B equipment is upstream equipment, and C equipment is upstream device.
It should be noted that upstream equipment and upstream device are relative, an equipment can be upstream equipment, also can be upstream device; For example, in Fig. 4, between A equipment and the C equipment, A equipment is upstream equipment, and C equipment is upstream device; If the Designated port of A equipment becomes the Root port, and the Root port of C equipment is when becoming the Designated port, and then between A equipment and the C equipment, A equipment is upstream device, and C equipment is upstream equipment.
As shown in Figure 7, the detection method of single-channel fault provided by the invention may further comprise the steps:
Step 701, upstream device sends the link state inquiry message through the Designated port of Root port upstream device.It is example that follow-up port P1 with C equipment sends the link state inquiry message to the port P2 of A equipment.
Need to prove; (all of the port is Designated role when initial after the STP role of port is moved to Root by Designated; Can confirm that through mutual STP protocol massages port is Designated role or Root role between the equipment; Port for Root role; The role will be moved to Root from Designated), upstream device can the Designated port through Root port upstream device sends the cast link status poll message of some (according to network condition, can manual configuration).
As shown in Figure 8; Be the form sketch map of link state inquiry message, can comprise protocol identification field (being protocol type and the protocol subtypes among Fig. 8), this bridge MAC (like the bridge MAC of C equipment), the port ID (like the port P1 of C equipment), the port role (like Root role) in this link state inquiry message, specify bridge MAC (like the bridge MAC of A equipment), designated port ID (like the port P2 of A equipment); In addition, also can comprise purpose MAC (, can be bridge MAC) and source MAC (, can be bridge MAC) like the MAC of C equipment like the MAC of A equipment.
Step 702, when downstream equipment did not at the appointed time receive the link acknowledgement message from upstream equipment in (as being set to 6s according to practical experience), this upstream device confirmed that the Root port on the direction of Designated port single-channel fault takes place.For example, when C equipment did not receive the link acknowledgement message of A equipment at the appointed time, C equipment confirmed that the port P1 of C equipment on the direction of the port P2 of A equipment single-channel fault takes place.
Among the present invention; The Root port is after having sent the link state inquiry message; If the fixed time is (like 3 times of STP Hello timer expiry times; The STP Hello timer expiry time can be 2s) in also do not receive the link acknowledgement message that upper reaches Designated port sends, then can think the link failure of Root port Designated port direction to the upper reaches; Afterwards, upstream device can send the black hole warning message to webmaster, in time gets rid of network failure to help webmaster.
Need to prove; Upstream device passes through the Root port after the Designated port sends the link state inquiry message; If upstream equipment can receive the link state inquiry message, the bridge MAC that then carries in the upstream equipment inspection link state inquiry message and the sign of Designated port; If the bridge MAC that carries in the link state inquiry message is consistent with the bridge MAC of upstream equipment; And the sign of the Designated port that carries is consistent with the port that upstream equipment receives the link state inquiry message, and then upstream equipment sends the link acknowledgement message through the Designated port to the Root port.
Concrete; After upstream equipment is received the link state inquiry message; Wherein appointment bridge MAC field and designated port id field of inspection if specify the inconsistent or designated port ID of the bridge MAC of bridge MAC and this equipment and this equipment packet receiving port inconsistent, then abandons this link state inquiry message.
Otherwise; The upstream equipment Root port of equipment downstream sends the link acknowledgement message (form with Fig. 8 sends; As to specify bridge MAC be the bridge MAC of C equipment, the port P1 that designated port ID is C equipment), and the following information of record downstream device port: bridge MAC, port role and port id.
Afterwards; Upstream device is after receiving the link acknowledgement message; Confirm according to appointment bridge MAC in the link acknowledgement message and designated port id information whether it is the link acknowledgement message that sends to self; If then this upstream device confirms that the Root port on the direction of Designated port single-channel fault does not take place.
Among the present invention; Upstream device passes through the Root port after the Designated port sends the link state inquiry message; If upstream equipment receives the link state inquiry message through the Designated port; Then upstream equipment statistics predetermined period (can dispose according to network condition, for example, 2s) in the data volume from upstream device (being the quantity of data message) that receives of Designated port; When data volume (can be selected according to practical experience, for example be made as 20% of normal discharge less than predetermined threshold value; Suppose to receive in the 2s under the normal condition data volume of 100M; When the data volume that in 2s, receives during less than 20M; Explain that then data volume is less than predetermined threshold value in the predetermined period) time, upstream equipment confirms that the Root port on the direction of Designated port single-channel fault takes place.
Further, when data volume during less than predetermined threshold value, upstream equipment also can send the link state inquiry message to the Root port through the Designated port; When upstream equipment did not receive the link acknowledgement message from upstream device at the appointed time, then upstream equipment confirmed that the Root port on the direction of Designated port single-channel fault takes place.
Concrete; Upstream equipment starts Link State to the port (the port P2 of A equipment) of receiving the link state inquiry message and surveys: the packet receiving counting of the Inbound of the port P2 of every time T of mistake (the T value can dispose according to network condition) statistics A equipment; If the port P2 packet receiving counting of an interior A equipment of T cycle is less than configured threshold; Think that then the Root port link failure possibly occur to the direction of Designated port, and survey below further carrying out:
The Designated port of the upstream equipment Root port of equipment downstream sends the link state inquiry message of some, after the Root port is received the link state inquiry message, replys the link acknowledgement message to the Designated port; Afterwards,, think that then the Root port on the direction of Designated port single-channel fault does not take place, continue to do the port packet receiving and detect by interval T if the Designated port is received the link acknowledgement message; If after the certain hour threshold value; The Designated port can not receive the link acknowledgement message, or the message amount of receiving thinks then that less than defined threshold the Root port on the direction of Designated port single-channel fault takes place; Conclude and the network black hole occurred; Afterwards, upstream equipment can send the black hole warning message to webmaster, in time gets rid of network failure to help webmaster.
Among the present invention; When the role of Root port becomes the Alternate port; If upstream equipment receives role's update through the Designated port; And the new role of carrying the Root port in role's update is the Alternate port, and then upstream equipment stops to add up the data volume from upstream device that the Designated port receives.
Concrete; Because the role exchange between Root port and the Alternate port possibly appear in the STP role of upstream device port; When role exchange took place, upstream device needed upstream device to send role's update of some (according to network condition, can manual configuration); And comprise new role information (can send according to form shown in Figure 8, and the port role field being the information of new role) in role's update.
After the port of upstream equipment is received role's update; If judge that according to appointment bridge MAC in role's update and designated port id information this role's update sends to self; Then respond and refresh response message, and the new role information in the inspection role update; If new role is the Alternate port, then upstream equipment is closed the Link State detection process of Designated port; If new role is the Root port, then upstream equipment starts the Link State detection process of Designated port.
In addition, if the new role of the port of upstream device is the Root port, after then the port of upstream device sends role's update; If behind 3 times the STP Hello timer expiry; Also do not receive the response message that refreshes that the Designated port of upstream equipment sends, then upstream device can think that the Root port on the direction of Designated port single-channel fault takes place, afterwards; Upstream device can send the black hole warning message to webmaster, in time gets rid of network failure to help webmaster.
Based on the inventive concept same with said method; The invention allows for a kind of checkout equipment of single-channel fault; Be applied in the Spanning-Tree Protocol STP network, the upstream device in the said STP network is connected with the appointment Designated port of upstream equipment through root Root port, and said checkout equipment is upstream device or upstream equipment; As shown in Figure 9, said checkout equipment comprises: sending module 11 and processing module 12; Wherein:
When said checkout equipment was upstream device, said sending module 11 was used for sending the link state inquiry message through said Root port to said Designated port; Said processing module 12 when being used for not receiving at the appointed time the link acknowledgement message from said upstream equipment, confirms that said Root port on the direction of said Designated port single-channel fault takes place.
Carry the sign of the bridge MAC and the said Designated port of said upstream equipment in the said link state inquiry message.
When said checkout equipment is upstream equipment; Said processing module 12; Be used for when the link state inquiry message that receives from upstream device, check the bridge MAC that carries in the said link state inquiry message and the sign of Designated port from upstream device; Said sending module 11; Be used for when the said bridge MAC that carries from the link state inquiry message of upstream device consistent with the bridge MAC of said upstream equipment; And the sign of the Designated port that carries and said upstream equipment receive the port of said link state inquiry message from upstream device when consistent, send the link acknowledgement message through said Designated port to said Root port.
When said checkout equipment is upstream equipment; Said processing module 12; Also be used for when receiving said link state inquiry message from upstream device through said Designated port; Then add up the data volume that said Designated port receives in the predetermined period,, confirm that said Root port on the direction of said Designated port single-channel fault takes place when said data volume during less than predetermined threshold value from said upstream device.
Said processing module 12 specifically is used for when definite said Root port on the direction of said Designated port single-channel fault takes place, and sends the link state inquiry message through said Designated port to said Root port; When not receiving the link acknowledgement message from said upstream device at the appointed time, confirm that said Root port on the direction of said Designated port single-channel fault takes place.
Said processing module 12; Also be used for when the role of said Root port becomes backup Alternate port; If receive role's update through said Designated port; And the new role of carrying said Root port in said role's update is the Alternate port, then stops to add up the data volume from said upstream device that said Designated port receives.
Wherein, each module of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (11)

1. the detection method of a single-channel fault is applied in the Spanning-Tree Protocol STP network, and the upstream device in the said STP network is connected with the appointment Designated port of upstream equipment through root Root port, it is characterized in that this method may further comprise the steps:
Said upstream device sends the link state inquiry message through said Root port to said Designated port;
When said upstream device did not receive the link acknowledgement message from said upstream equipment at the appointed time, said upstream device confirmed that said Root port on the direction of said Designated port single-channel fault takes place.
2. the method for claim 1 is characterized in that, carries the sign of the bridge MAC and the said Designated port of said upstream equipment in the said link state inquiry message;
Said upstream device sends the link state inquiry message through said Root port to said Designated port, also comprises afterwards:
If said upstream equipment receives said link state inquiry message, then said upstream equipment is checked the bridge MAC that carries in the said link state inquiry message and the sign of Designated port;
If the bridge MAC that carries in the said link state inquiry message is consistent with the bridge MAC of said upstream equipment; And the sign of the Designated port that carries is consistent with the port that said upstream equipment receives said link state inquiry message, and then said upstream equipment sends the link acknowledgement message through said Designated port to said Root port.
3. the method for claim 1 is characterized in that, said upstream device sends the link state inquiry message through said Root port to said Designated port, also comprises afterwards:
If said upstream equipment receives said link state inquiry message through said Designated port; The data volume that said Designated port receives in the then said upstream equipment statistics predetermined period from said upstream device; When said data volume during less than predetermined threshold value, said upstream equipment confirms that said Root port on the direction of said Designated port single-channel fault takes place.
4. method as claimed in claim 3 is characterized in that, said upstream equipment confirms that said Root port on the direction of said Designated port single-channel fault takes place, and further comprises:
Said upstream equipment sends the link state inquiry message through said Designated port to said Root port; When said upstream equipment did not receive the link acknowledgement message from said upstream device at the appointed time, said upstream equipment confirmed that said Root port on the direction of said Designated port single-channel fault takes place.
5. method as claimed in claim 3 is characterized in that, said method also comprises:
When the role of said Root port becomes backup Alternate port; If said upstream equipment receives role's update through said Designated port; And the new role of carrying said Root port in said role's update is the Alternate port, and then said upstream equipment stops to add up the data volume from said upstream device that said Designated port receives.
6. the checkout equipment of a single-channel fault; Be applied in the Spanning-Tree Protocol STP network; Upstream device in the said STP network is connected with the appointment Designated port of upstream equipment through root Root port; It is characterized in that said checkout equipment is upstream device or upstream equipment, and said checkout equipment comprises: sending module and processing module; Wherein:
When said checkout equipment is upstream device,
Said sending module is used for sending the link state inquiry message through said Root port to said Designated port;
Said processing module when being used for not receiving at the appointed time the link acknowledgement message from said upstream equipment, confirms that said Root port on the direction of said Designated port single-channel fault takes place.
7. equipment as claimed in claim 6 is characterized in that, carries the sign of the bridge MAC and the said Designated port of said upstream equipment in the said link state inquiry message.
8. equipment as claimed in claim 7 is characterized in that,
When said checkout equipment is upstream equipment,
Said processing module is used for when the link state inquiry message that receives from upstream device, checks the bridge MAC that carries in the said link state inquiry message from upstream device and the sign of Designated port;
Said sending module; Be used for when the said bridge MAC that carries from the link state inquiry message of upstream device consistent with the bridge MAC of said upstream equipment; And the sign of the Designated port that carries and said upstream equipment receive the port of said link state inquiry message from upstream device when consistent, send the link acknowledgement message through said Designated port to said Root port.
9. equipment as claimed in claim 6 is characterized in that,
When said checkout equipment is upstream equipment,
Said processing module; Also be used for when receiving said link state inquiry message from upstream device through said Designated port; Then add up the data volume that said Designated port receives in the predetermined period from said upstream device; When said data volume during, confirm that said Root port on the direction of said Designated port single-channel fault takes place less than predetermined threshold value.
10. equipment as claimed in claim 9 is characterized in that,
Said processing module specifically is used for when definite said Root port on the direction of said Designated port single-channel fault takes place, and sends the link state inquiry message through said Designated port to said Root port; When not receiving the link acknowledgement message from said upstream device at the appointed time, confirm that said Root port on the direction of said Designated port single-channel fault takes place.
11. equipment as claimed in claim 9 is characterized in that,
Said processing module; Also be used for when the role of said Root port becomes backup Alternate port; If receive role's update through said Designated port; And the new role of carrying said Root port in said role's update is the Alternate port, then stops to add up the data volume from said upstream device that said Designated port receives.
CN2011102325644A 2011-08-15 2011-08-15 Method and device for detecting one-way fault Pending CN102355364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102325644A CN102355364A (en) 2011-08-15 2011-08-15 Method and device for detecting one-way fault

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102325644A CN102355364A (en) 2011-08-15 2011-08-15 Method and device for detecting one-way fault

Publications (1)

Publication Number Publication Date
CN102355364A true CN102355364A (en) 2012-02-15

Family

ID=45578861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102325644A Pending CN102355364A (en) 2011-08-15 2011-08-15 Method and device for detecting one-way fault

Country Status (1)

Country Link
CN (1) CN102355364A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694697A (en) * 2012-05-28 2012-09-26 合肥华云通信技术有限公司 Method for quickly detecting one-way link
CN102970622A (en) * 2012-12-14 2013-03-13 广东东研网络科技股份有限公司 Ethernet passive optical network (EPON) loop control method
CN103580953A (en) * 2013-10-21 2014-02-12 华为技术有限公司 Method and devices for detecting faults
CN104486164A (en) * 2014-12-26 2015-04-01 杭州华三通信技术有限公司 Method and device for detecting link failures
CN105227456A (en) * 2015-09-07 2016-01-06 浙江宇视科技有限公司 A kind of aggregated link failures recovers method and the device of transmission
CN105592060A (en) * 2015-10-26 2016-05-18 杭州华三通信技术有限公司 Password generation method and device
CN106026394A (en) * 2016-06-17 2016-10-12 国网江苏省电力公司常州供电公司 Automated fault information interaction method of distributed feeder
CN106330606A (en) * 2016-08-23 2017-01-11 杭州迪普科技有限公司 Unidirectional link detection method and device
CN106452894A (en) * 2016-10-24 2017-02-22 北京东土科技股份有限公司 Fault connection detection method and apparatus
CN109361559A (en) * 2017-08-10 2019-02-19 北京东土科技股份有限公司 A kind of detection method and device of parallel redundancy network failure
CN112073270A (en) * 2020-09-15 2020-12-11 新华三信息安全技术有限公司 Link fault detection method and device
CN114978939A (en) * 2022-06-10 2022-08-30 中煤科工重庆设计研究院(集团)有限公司 Method for detecting network link quality

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005112348A2 (en) * 2004-05-10 2005-11-24 Cisco Technology, Inc. System and method for detecting link failures
CN101237314A (en) * 2008-01-16 2008-08-06 杭州华三通信技术有限公司 A method and access device for guaranteeing duplication service transmission
CN101340346A (en) * 2008-08-11 2009-01-07 中兴通讯股份有限公司 Ring control method and apparatus of Ethernet looped network system
CN101436938A (en) * 2007-11-13 2009-05-20 华为技术有限公司 Method, system and switching equipment for halting/recovering port transmitting and receiving service
CN101699799A (en) * 2009-11-13 2010-04-28 福建星网锐捷网络有限公司 Method and network equipment for preventing network loop and spanning tree protocol network system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005112348A2 (en) * 2004-05-10 2005-11-24 Cisco Technology, Inc. System and method for detecting link failures
CN101436938A (en) * 2007-11-13 2009-05-20 华为技术有限公司 Method, system and switching equipment for halting/recovering port transmitting and receiving service
CN101237314A (en) * 2008-01-16 2008-08-06 杭州华三通信技术有限公司 A method and access device for guaranteeing duplication service transmission
CN101340346A (en) * 2008-08-11 2009-01-07 中兴通讯股份有限公司 Ring control method and apparatus of Ethernet looped network system
CN101699799A (en) * 2009-11-13 2010-04-28 福建星网锐捷网络有限公司 Method and network equipment for preventing network loop and spanning tree protocol network system

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694697A (en) * 2012-05-28 2012-09-26 合肥华云通信技术有限公司 Method for quickly detecting one-way link
CN102970622A (en) * 2012-12-14 2013-03-13 广东东研网络科技股份有限公司 Ethernet passive optical network (EPON) loop control method
CN102970622B (en) * 2012-12-14 2015-09-09 广东东研网络科技股份有限公司 A kind of EPON network loop control method
CN103580953A (en) * 2013-10-21 2014-02-12 华为技术有限公司 Method and devices for detecting faults
CN104486164B (en) * 2014-12-26 2017-12-08 新华三技术有限公司 A kind of link failure detection method and device
CN104486164A (en) * 2014-12-26 2015-04-01 杭州华三通信技术有限公司 Method and device for detecting link failures
CN105227456A (en) * 2015-09-07 2016-01-06 浙江宇视科技有限公司 A kind of aggregated link failures recovers method and the device of transmission
CN105227456B (en) * 2015-09-07 2019-03-08 浙江宇视科技有限公司 A kind of aggregated link failures restore the method and device of transmission
CN105592060A (en) * 2015-10-26 2016-05-18 杭州华三通信技术有限公司 Password generation method and device
CN105592060B (en) * 2015-10-26 2018-11-09 新华三技术有限公司 A kind of method for generating cipher code and equipment
CN106026394B (en) * 2016-06-17 2018-05-15 国网江苏省电力公司常州供电公司 Distributed feeder automation fault message exchange method
CN106026394A (en) * 2016-06-17 2016-10-12 国网江苏省电力公司常州供电公司 Automated fault information interaction method of distributed feeder
CN106330606B (en) * 2016-08-23 2019-09-06 杭州迪普科技股份有限公司 A kind of method and apparatus detecting link single-pass
CN106330606A (en) * 2016-08-23 2017-01-11 杭州迪普科技有限公司 Unidirectional link detection method and device
CN106452894A (en) * 2016-10-24 2017-02-22 北京东土科技股份有限公司 Fault connection detection method and apparatus
CN109361559A (en) * 2017-08-10 2019-02-19 北京东土科技股份有限公司 A kind of detection method and device of parallel redundancy network failure
CN109361559B (en) * 2017-08-10 2023-01-06 北京东土科技股份有限公司 Method and device for detecting parallel redundant network fault
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
CN114978939A (en) * 2022-06-10 2022-08-30 中煤科工重庆设计研究院(集团)有限公司 Method for detecting network link quality
CN114978939B (en) * 2022-06-10 2023-05-30 中煤科工重庆设计研究院(集团)有限公司 Method for detecting network link quality

Similar Documents

Publication Publication Date Title
CN102355364A (en) Method and device for detecting one-way fault
Lee et al. Fault detection of wireless sensor networks
CN111181801B (en) Node cluster testing method and device, electronic equipment and storage medium
EP3413512B1 (en) Alarm information processing method, apparatus and system
Chockler et al. Consensus and collision detectors in wireless ad hoc networks
Song et al. Simulation and experimental analysis of a ZigBee sensor network with fault detection and reconfiguration mechanism
CN101959218B (en) Method for detecting event region based on splay tree
Delzanno et al. Verification of ad hoc networks with node and communication failures
Panda et al. Distributed soft fault detection algorithm in wireless sensor networks using statistical test
WO2016187979A1 (en) Transmitting method and apparatus for bidirectional forwarding detection (bfd) message
JP4612525B2 (en) Network fault site identification apparatus and method
Swain et al. An effective graph‐theoretic approach towards simultaneous detection of fault (s) and cut (s) in wireless sensor networks
CN101820359A (en) Fault processing method and equipment for network equipment
CN113949649B (en) Fault detection protocol deployment method and device, electronic equipment and storage medium
Jarrah et al. Comparison-based system-level fault diagnosis protocols for mobile ad-hoc networks: A survey
CN102325046B (en) Method for triggering network equipment to recover default configuration and device
US9565583B2 (en) Monitoring device and monitoring system
EP2698949B1 (en) METHOD AND SYSTEM FOR SETTING DETECTION FRAME TIMEOUT DURATION OF ETHERNET NODEs
CN108616423A (en) A kind of talk-around device monitoring method and device
Woehrle et al. Mechanized extraction of topology anti-patterns in wireless networks
Sahoo et al. System-level fault diagnosis in fixed topology mobile ad hoc networks
JP5938478B2 (en) Method and apparatus for supporting LIPA mobility
Lee et al. Distributed diagnosis of wireless sensor networks
US9007955B1 (en) Systems and methods for mapping network topologies
Meirom et al. Detecting cascades from weak signatures

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120215