CN101183902A - One-way broken fiber detecting method, device and component - Google Patents

One-way broken fiber detecting method, device and component Download PDF

Info

Publication number
CN101183902A
CN101183902A CNA2007103014720A CN200710301472A CN101183902A CN 101183902 A CN101183902 A CN 101183902A CN A2007103014720 A CNA2007103014720 A CN A2007103014720A CN 200710301472 A CN200710301472 A CN 200710301472A CN 101183902 A CN101183902 A CN 101183902A
Authority
CN
China
Prior art keywords
port
local terminal
message
peer
terminal 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
CNA2007103014720A
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 CNA2007103014720A priority Critical patent/CN101183902A/en
Publication of CN101183902A publication Critical patent/CN101183902A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a unidirectional broken optical fiber detection method, a unidirectional broken fiber detection device and a unidirectional broken fiber detection assembly, adopting the technical proposal that firstly, physical failure detection of a port is carried out; if physical failure is detected at the port, a preset notice message which carries the physical failure information the of the port will be sent to the opposite port of a corresponding link; if no physical failure is detected on the port, but an notice message with physical failure information of the opposite port to the near port is received, unidirectional breakage on the link between the near port and the opposite port will be identified. The invention has an advantage that unidirectional fiber-breakage is immediately responded to and dealt with so that the processing speed is enhanced and the network properties are improved.

Description

One-way broken fiber detecting method, device and assembly
Technical field
The present invention relates to the communications field, relate in particular to a kind of one-way broken fiber detecting method, one-way broken fiber checkout gear and one-way broken fiber detection components.
Background technology
When the optical fiber or the copper ethernet line that connect two equipment communicate on physical layer, if one of port of both link ends (for example being called local terminal) can be received the link layer message that the other side sends, but the other end (for example being called the opposite end) can not be received the message that local terminal sends, and then this link is defined as the one way link on the equipment.Because this moment, the link physical layer often was in connected state, can operate as normal, thereby the testing mechanism of physical layer can't discovering device between the communication existing problems.
Fig. 1 is a kind of schematic diagram of one way link situation: the port Port 21 of the port Port 11 of switch 1, port Port12 and switch 2, port Port 22 be neighbours each other, promptly can send and receive message each other.But the transmitting terminal TX of port Port 11 has been connected to the receiving terminal RX of port Port 22 mistakenly, and the transmitting terminal TX of port Port 12 has been connected to the receiving terminal RX of port Port 21 mistakenly.Like this, between switch 1 and switch 2, many one way links have been formed.The mistake that this optical fiber connects can't be found by the mechanism such as automatic negotiation of physical layer.
Fig. 2 is the schematic diagram of another kind of one way link situation: the optical fiber between the port Port 31 of switch 3 and the port Port 41 of switch 4 is initial to be connected normally, the RX end of f1 connectivity port 31 and the TX end of port 41, the TX end of f2 connectivity port 31 and the RX end of port 41; If connect fibercuts (supposing the f1 fracture) this moment, then therefore port Port 41 can think that the operating state of port Port 31 is normal owing to can detect the light signal of RX end.This situation is an one-way broken fiber, is called the emergency of one way link.
Because one way link can cause a series of problems, such as spanning-tree topology loop etc., therefore introduced in the prior art based on regularly exchanging the mechanism that message carries out link failure detection, as DLDP (DeviceLink Detection Protocol, the device link detection protocol), detect the existence of one way link.With the DLDP agreement is example, and its basic principle is link both sides' a port timing interaction protocol message, if a port is not also received the protocol massages of Peer-Port after the stipulated time of being disposed arrives, thinks so to have occurred one way link between the port; After finding one way link, the DLDP agreement sends a warning message to the user, and according to user's configuration, automatically or the manual-lock related port.For instance, when fracture took place f1 among Fig. 2, if adopt the DLDP agreement to detect, port 41 was not still received the message that port 31 sends after waiting for the stipulated time, just can assert and port 31 between one way link has appearred.
Though the above-mentioned link failure detection mechanism that regularly exchanges based on message can detect the situation of one way link, often needs the long time.Be example still with above-mentioned situation shown in Figure 2, general port all needs to wait for the 3 times of existence that can assert one way link to the time-out time that is disposed, even calculated in 1 second with the configurable minimum value of time-out time, this port 41 also needed for 3 seconds could find and port 31 between one way link has appearred, have the hysteresis quality of certain degree.
In sum, the fault detection mechanism of one way link can't be realized fast detecting in the prior art, and the delay that this has caused follow-up warning and switching has simultaneously reduced network performance.
Summary of the invention
The embodiment of the invention aims to provide a kind of detection scheme that can find one-way broken fiber fast, so that speed up processing improves network performance.
For achieving the above object, embodiments of the invention provide a kind of one-way broken fiber detecting method, are applied to independently ethernet device of port receiving-transmitting chain difference, may further comprise the steps:
Carry out the fault detect of local terminal ports physical;
If detect local terminal port generation physical fault, send the default message of notifying to the Peer-Port of respective link, this is notified message and carries local terminal ports physical fault message;
If do not detect local terminal port generation physical fault, but receive that Peer-Port sends, carry Peer-Port physical fault information notify message the time, identify link one-way broken fiber between local terminal port and the Peer-Port.
Embodiments of the invention also provide a kind of one-way broken fiber checkout gear, are located at independently ethernet device of port receiving-transmitting chain difference, and this ethernet device comprises the ports physical failure detector; Comprise:
Notify packet sending unit, be used for being connected with this ports physical failure detector, according to detected local terminal ports physical failure condition, send the default message of notifying to the Peer-Port of respective link, this is notified message and carries local terminal ports physical fault message;
Notify message process unit, be used for being connected with this ports physical failure detector, according to the received Peer-Port of the local terminal port message of notifying that send, that carry Peer-Port physical fault information, based on the situation that does not detect local terminal port generation physical fault, identify link one-way broken fiber between local terminal port and the Peer-Port.
Embodiments of the invention also provide a kind of one-way broken fiber detection components, are located to be in first ethernet device and second ethernet device of receiving and dispatching both link ends independently, and this first and second ethernet device is respectively equipped with the ports physical failure detector; Comprise:
Be arranged at the packet sending unit of notifying in first ethernet device, be used for being connected with this equipment physical fault checkout gear, according to detected local terminal ports physical failure condition, send the default message of notifying by this corresponding port of receiving and dispatching chain road direction second ethernet device independently, this is notified message and carries local terminal ports physical fault message;
Be arranged at the message process unit of notifying in second ethernet device, notify packet sending unit with this and receive and dispatch independently by this that link is connected, be used for being connected with this equipment physical fault checkout gear, notify message according to what the corresponding port of the first received ethernet device of local terminal port sent, based on the situation that does not detect local terminal port generation physical fault, discern this and receive and dispatch independently link one-way broken fiber.
As shown from the above technical solution, embodiments of the invention make neighbours be responded processing immediately to the situation of one-way broken fiber by initiatively inform this incident to neighbours when detecting local terminal ports physical fault, have accelerated processing speed, have improved network performance.
With reference to the accompanying drawing description of a preferred embodiment, above-mentioned and other purpose of the present invention, feature and advantage will be more obvious by following.
Description of drawings
Fig. 1 is a kind of schematic diagram of one way link situation;
Fig. 2 is the schematic diagram of a kind of one way link situation (one-way broken fiber);
Fig. 3 is the flow chart of one-way broken fiber detecting method one embodiment provided by the invention;
Fig. 4 A, 4B are the flow chart of another embodiment of one-way broken fiber detecting method provided by the invention;
Fig. 5 A, 5B are the one-way broken fiber detecting method provided by the invention flow chart of an embodiment again;
Fig. 6 is the block diagram of one-way broken fiber checkout gear one embodiment provided by the invention;
Fig. 7 is the block diagram of another embodiment of one-way broken fiber checkout gear provided by the invention;
Fig. 8 is the one-way broken fiber checkout gear provided by the invention block diagram of an embodiment again;
Fig. 9 is the block diagram of one-way broken fiber detection components one embodiment provided by the invention.
Embodiment
To describe specific embodiments of the invention in detail below.Should be noted that the embodiments described herein only is used to illustrate, be not limited to the present invention.
At first need to prove,, all can't detect physical fault, therefore can only carry out the one way link detection by regularly exchanging message owing to be in the port at one way link shown in Figure 1 two ends for two kinds of one way links of being given an example in the background technology.The scheme that the embodiment of the invention provided is applicable to one way link situation shown in Figure 2, therefore can detect physical fault because one-way broken fiber is in the port of an end, make both sides' port can both fast detecting go out the situation of one-way broken fiber by notifying Peer-Port.
See also Fig. 3, shown the flow chart of an embodiment of one-way broken fiber detecting method provided by the present invention, may further comprise the steps:
S101, carry out the fault detect of local terminal ports physical;
If S102 detects local terminal port generation physical fault, send the default message of notifying to the Peer-Port of respective link, this is notified message and carries local terminal ports physical fault message;
As specific embodiment, this notifies message can adopt existing protocol type, such as increase by a LinkDown message on DLDP protocol massages basis, carries the port information that physical fault occurs in this LinkDown message.Like this, when the port that has started the DLDP function is found the situation of physics Down by the testing mechanism of physical layer, initiatively send a LinkDown message, the situation of local terminal physics Down is notified Peer-Port to the Peer-Port that is connected the port by link.
Certainly, this notifies message also can adopt other existing protocol type, can be sent when port has enabled corresponding protocol; Perhaps redefine a kind of new protocol type, and drive in the port arrangement corresponding protocol.
If S103 does not detect local terminal port generation physical fault, but receive that Peer-Port sends, carry Peer-Port physical fault information notify message the time, identify link one-way broken fiber between local terminal port and the Peer-Port.
As can be seen, when need not to wait for 3 times time-out time again, a side who does not detect ports physical Down judges the situation of one way link, but when receiving the LinkDown message that the opposite end sends, just can identify the link one-way broken fiber immediately, and carry out follow-up processing and operate, such as under automatic " shut " mode", port switches to DLDP Down, perhaps alarms to the user under the manual-lock pattern.
By above-mentioned steps S101~S103, port can detect the appearance of physical fault rapidly when the end fibre takes place the RX end, and in time handle by notifying the message notifying Peer-Port, having solved Peer-Port needs the long period just can detect the problem of unidirectional link failure, thereby make other agreement that is applied on the link layer, as STP (Spanning-Tree Protocol, Spanning-Tree Protocol), can accelerate to calculate and convergence rate, improve network performance.
As can be seen, under following three kinds of situations, the port that detects physical fault all can send at once notifies message:
A kind of the present invention of being wants the one-way broken fiber situation that solves, and this moment, port Down was because the RX thread breakage causes, because the TX line is intact, so notifies message and can send success, makes Peer-Port in time detect the situation of one-way broken fiber;
Another kind is the situation that RX and TX line all rupture, and need notify the transmission of message at this moment based on the fracture of RX line, but because the TX line ruptures simultaneously, this is notified message and sends failure; Relative, Peer-Port need not to notify message and also can judge the port physical fault rapidly based on the fracture of its RX line; Therefore, the one-way broken fiber detecting method that provides of the embodiment of the invention can not influence the testing result of existing physical fault testing mechanism;
Another situation then is the situation that shake takes place port status.Specifically, interim shake can appear in the state of some equipment upper port, and promptly port Down is not because really break down, but the interim Down that enters because of hardware reason such as loose contact, it can promptly recover Up automatically.In this case; if adopted such scheme; equipment will be notified message to the other side's transmission when shake so; but in fact this interim one way link state is along with the end of shaking has not just existed; if therefore do not have corresponding protection mechanism, make Peer-Port erroneous judgement occur so probably.
For the problem to interim shake is overcome, preferable, embodiments of the invention provide corresponding solution, and are on the basis of step S101~step S103, further comprising the steps of:
Among the described step S102 to the Peer-Port of respective link send default notify message after, if detect and send the local terminal port failure recovery of notifying message, send default recovery message to corresponding Peer-Port, this recovery message carries this local terminal port failure recovering information; Certainly, this recovery message is based on notifying message that same agreement is provided with, such as the RSY message that increases on original message basis etc.;
When receiving the local terminal port of notifying message when receiving the recovery message that Peer-Port sends, identify link proper communication between local terminal port and the Peer-Port.
Referring to Fig. 4 A and Fig. 4 B, the flow chart that has shown another embodiment of one-way broken fiber detecting method provided by the present invention, it is detected the link between first port and second port, fracture takes place or is dithered as example in the RX end with first port, Fig. 4 A has shown the handling process of first port, and Fig. 4 B has shown the handling process of second port.
For first port, it carries out following processing:
S201, first port detect, if detect the ports physical fault, then execution in step S202 keeps detecting otherwise repeat this step;
S202, send the message of notifying default, that carry the first ports physical fault message, for example LinkDown message to second port;
Whether S203, first port detect the local terminal fault and recover, and are execution in step S204 then, keep detecting otherwise repeat this step;
S204, send recovery message default, that carry the first port failure recovering information, for example RSY message to second port.
For second port, it also carries out the detection of ports physical fault, if detect the ports physical fault, then its execution in step is consistent with above-mentioned S201~S204, and only message sends object and changes to first port, does not repeat them here; Then second port carries out following processing:
S211, in second port carries out the process of ports physical fault detect, receive and notify message;
S212, second port detect local terminal whether physical fault take place, and are execution in step S213 then, otherwise execution in step S214;
S213, judgement RX, TX end all rupture; But in general, the possibility that this situation occurs is very little, and for example, the RX end is later than the TX end slightly and ruptures, and the message of notifying that first port is sent has arrived second port just; Even if this situation occurs,, therefore can't cause erroneous judgement because second port can be discerned by the physical layer testing mechanism;
Link one-way broken fiber between S214, identification second port and first port;
If S215, detection subsequent detection situation are identification physical fault, then execution in step S216; If receive the recovery message that first port sends, execution in step S217 then, otherwise keep the state of link one-way broken fiber;
S216, judgement RX, TX end all rupture;
Link proper communication between S217, identification and first port.
The another kind of embodiment that the problem of interim shake is overcome then is on the basis of step S101~step S103, and is further comprising the steps of:
Identify among the step S103 between local terminal port and the Peer-Port after the link one-way broken fiber, send to Peer-Port and recover detection messages automatically;
When automatic recovery detection messages that the local terminal port receives that Peer-Port sends, send message response to Peer-Port; And
When the local terminal port receives the message response of Peer-Port transmission, identify link proper communication between local terminal port and the Peer-Port.
Referring to Fig. 5 A and Fig. 5 B, shown the one-way broken fiber detecting method provided by the present invention flow chart of an embodiment again, it is detected the link between first port and second port, fracture takes place or is dithered as example in the RX end with first port, Fig. 5 A has shown the handling process of first port, and Fig. 5 B has shown the handling process of second port.
For first port, it carries out following processing:
S301, first port detect, if detect the ports physical fault, then execution in step S302 keeps detecting otherwise repeat this step;
S302, send the message of notifying default, that carry the first ports physical fault message, for example LinkDown message to second port;
S303, first port detect local terminal and whether receive automatic recovery detection messages, are execution in step S304 then, otherwise repeat this step;
First port need be described as follows this step S303: if can receive automatic recovery detection messages, so just be enough to illustrate that the RX end of first port has recovered normal, this may be to recover from fault or the shake end, therefore can carry out follow-up recovering step;
S304, send default message response to second port.
For second port, when it receives when notifying message, carry out following processing:
S311, in second port carries out the process of ports physical fault detect, receive and notify message;
S312, second port detect local terminal whether physical fault take place, and are execution in step S313 then, otherwise execution in step S314;
S313, judgement RX, TX end all rupture;
Link one-way broken fiber between S314, identification and first port;
S315, send to first port and to recover detection messages automatically;
If S316, detection subsequent detection situation are identification physical fault, then execution in step S317; If receive the message response that first port sends, execution in step S318 then, otherwise repeated execution of steps S315 periodically;
S317, judgement RX, TX end all rupture;
Link proper communication between S318, identification and first port.
By the foregoing description, not only can in time detect and handle, and can avoid shaking the erroneous judgement that brings, and when port failure recovers, recover Link State automatically one way link.
Further, because the state of link can be reflected on the port status in real time, so embodiments of the invention also are provided with the corresponding ports state machine, so that provide data and means more intuitively for visual observation; Having enabled DLDP with port below is that example is described:
At first, that corresponding state is set is as follows for port:
INITIAL (init state): the init state when port DLDP does not enable; Except that this state, below other states of being exemplified all be that port DLDP has enabled the residing state in back;
INACTIVE (malfunction): port is in physics Down;
ADVERTISEMENT (communications status): ports physical Up;
PROBE (unidirectional failure state): detect one way link, and initiatively send recovery detection messages automatically;
DISABLE (unidirectional failure state): detect one way link; If be operated under the enhancement mode, neighbours also can enter this state in case disappear;
Preferable, for anti-shake in advance, also be provided with:
DELAYDOWN (temporary derangement state): be the transient state that enters behind the ports physical Down;
And, in order to increase stability, also be provided with:
ACTIVE (active state): ports physical Up, a kind of transition state that has entered when perhaps all neighbor information is all aging.
Then the variation of port status machine is as follows:
After port has enabled the DLDP agreement, enter communications status, being changed to of state machine: INITIAL → ADVERTISEMENT, perhaps, INITIAL → ACTIVE → ADVERTISEMENT;
When detecting local terminal port generation physical fault, migration local terminal port status is the temporary derangement state; Along with the difference of migration front port state, the variation of state machine is difference to some extent also, can be ADVERTISEMENT → DELAYDOWN, perhaps ACTIVE → DELAYDOWN, perhaps DISABLE/PROBE → DELAYDOWN;
When in Preset Time, detecting the local terminal port failure recovery that is in DELAYDOWN, migration local terminal port status is ADVERTISEMENT, being changed to of state machine: DELAYDOWN → ADVERTISEMENT, perhaps, DELAYDOWN → ACTIVE → ADVERTISEMENT;
When not detecting the local terminal port failure that is in the temporary derangement state recover in Preset Time, migration local terminal port status is a malfunction, being changed to of state machine: DELAYDOWN → INACTIVE;
When the link one-way broken fiber between identification local terminal port and the described Peer-Port, migration local terminal port status is unidirectional failure state; Along with the difference of migration front port state, the variation of state machine is difference to some extent also, can be ADVERTISEMENT → DISABLE/PROBE, perhaps ACTIVE → DISABLE/PROBE;
When the local terminal port that is in unidirectional failure state receives recovery message/message response, migration local terminal port status is a communications status, being changed to of state machine: DISABLE/PROBE → ADVERTISEMENT, perhaps, DISABLE/PROBE → ACTIVE → ADVERTISEMENT.
The variation of above-mentioned state machine is not exhaustive.For example, state machine can directly carry out following variation: ADVERTISEMENT → INACTIVE, perhaps ACTIVE → INACTIVE, perhaps DISABLE/PROBE → INACTIVE, that is, when state machine is under ACTIVE, PROBE/DISABLE or the ADVERTISMENT state, when receiving the LinkDown message of neighbours' method, all move to the DISABLE state; Same, state machine also can carry out the variation setting of other types according to actual needs.
Be example with a specific embodiment that has added the variation of port status machine below, describe one-way broken fiber detecting method provided by the present invention:
When shake has appearred in local terminal equipment, the local terminal port will send a quick LinkDown message to Peer-Port so, notifies the opposite end and one way link occurs;
Peer-Port enters the DISABLE/PROBE state of agreement;
The local terminal port enters pre-anti-shake DELAYDOWN state;
When the shake end, when the local terminal port recovers UP, leave the DELAYDOWN state, get back under ACTIVE, the DISABLE/PROBE or ADVERTISEMENT state before entering, and send the automatic recovery detection messages of RSY message or the transmission of response opposite end to the opposite end;
For the Peer-Port that is in the DISABLE state, no matter receive RSY message or message response, can both move out of this state, thereby finish the declaration of one way link.
In sum,, can make both sides' port all go out existing of one way link, thereby add other agreements moved on the faster link such as the convergence rate of STP, improve network performance with close time detecting by the one-way broken fiber detecting method that the embodiment of the invention provided.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, and described program can be stored in the computer read/write memory medium; This program comprises the steps: when carrying out
Carry out the fault detect of local terminal ports physical;
If detect local terminal port generation physical fault, send the default message of notifying to the Peer-Port of respective link, describedly notify message and carry described local terminal ports physical fault message;
If do not detect local terminal port generation physical fault, but receive that Peer-Port sends, carry Peer-Port physical fault information notify message the time, identify link one-way broken fiber between local terminal port and the described Peer-Port.
Described storage medium comprises: ROM/RAM (Read Only Memory/Random-AccessMemory, read-only memory/random-access memory), magnetic disc or CD etc.
Embodiments of the invention also provide a kind of one-way broken fiber checkout gear 100, as shown in Figure 6.
This one-way broken fiber checkout gear 100 is located at independently ethernet device of port receiving-transmitting chain difference, and this ethernet device comprises ports physical failure detector 200, is used to carry out the fault detect of physical layer.
This one-way broken fiber checkout gear 100 comprises:
Notify packet sending unit 101, be used for being connected with ports physical failure detector 200, according to detected local terminal ports physical failure condition, send the default message of notifying to the Peer-Port of respective link, this is notified message and carries local terminal ports physical fault message;
Notify message process unit 102, be used for being connected with ports physical failure detector 200, according to the received Peer-Port of the local terminal port message of notifying that send, that carry Peer-Port physical fault information, based on the situation that does not detect local terminal port generation physical fault, identify link one-way broken fiber between local terminal port and the Peer-Port.
Preferable, for the protection mechanism of port shake is provided, as shown in Figure 7, this one-way broken fiber checkout gear 100 also comprises:
Recover packet sending unit 103, be used for and notify packet sending unit 101 and be connected with ports physical failure detector 200, according to the detected situation that has sent the local terminal port failure recovery of notifying message, send default recovery message to corresponding Peer-Port, described recovery message carries local terminal port failure recovering information;
Recover message process unit 104, and notify message process unit 102 and is connected, be used for receiving the situation of the recovery message of Peer-Port transmission, identify link proper communication between local terminal port and the Peer-Port according to having received the local terminal port of notifying message.
Perhaps, as shown in Figure 8, this one-way broken fiber checkout gear 100 also comprises:
Detection messages transmitting element 105 and is notified message process unit 102 and is connected, and is used for sending to the Peer-Port that the link one-way broken fiber takes place recovering detection messages automatically;
Detection messages receiving element 106 is used for the automatic recovery detection messages that receives according to the local terminal port, sends message response to Peer-Port; And
Message response processing unit 107 is used for the message response that receives according to the local terminal port, identifies link proper communication between local terminal port and the Peer-Port.
Further, in order to mate the setting to the port state machine, this one-way broken fiber checkout gear 100 comprises that also port status is provided with unit 108, and being used to be provided with proper communication link corresponding ports state is communications status; And
Port status is provided with unit 108 and is connected with ports physical failure detector 200, and migration local terminal port status is a malfunction when being used to detect local terminal port generation physical fault;
Port status is provided with unit 108 and notifies message process unit 102 and be connected, migration local terminal port status is unidirectional failure state when being used to identify between local terminal port and the Peer-Port link one-way broken fiber, and migration local terminal port status is a communications status when the local terminal port that is in unidirectional failure state receives recovery message/message response; Be port status be provided with unit 108 also respectively with recover message process unit 104 or message response processing unit 107 and be connected.
One of ordinary skill in the art will appreciate that two kinds of ports shake protection can and be deposited, in addition corresponding triggering of the message that arrives according to port status and actual reception.
Embodiments of the invention also provide a kind of one-way broken fiber detection components 10, be located at and be in first ethernet device 20 and second ethernet device 30 of receiving and dispatching link 40 two ends independently, this first and second ethernet device is respectively equipped with ports physical failure detector 200.This one-way broken fiber detection components 10 comprises:
Be arranged at and notify packet sending unit 101 in first ethernet device 20, be used for being connected with this equipment physical fault checkout gear, according to detected local terminal ports physical failure condition, link 40 sends the default message of notifying to the corresponding port of second ethernet device 30 by receiving and dispatching independently, and this is notified message and carries local terminal ports physical fault message;
Be arranged at and notify message process unit 102 in second ethernet device 30, with notify packet sending unit 101 by described transmitting-receiving independently link 40 be connected, be used for being connected with this equipment physical fault checkout gear 200, notify message according to what the corresponding port of the first received ethernet device 20 of local terminal port sent, based on the situation that does not detect local terminal port generation physical fault, discern this and receive and dispatch independently link 40 one-way broken fibers.
Certainly, corresponding ports protection mechanism and port status machine are provided with mechanism and are equally applicable to above-mentioned one-way broken fiber detection components 10.
Though described the present invention with reference to several exemplary embodiments, should be appreciated that used term is explanation and exemplary and nonrestrictive term.The spirit or the essence that do not break away from invention because the present invention can specifically implement in a variety of forms, so be to be understood that, the foregoing description is not limited to any aforesaid details, and should be in the spirit and scope that claim limited of enclosing explain widely, therefore fall into whole variations in claim or its equivalent scope and remodeling and all should be the claim of enclosing and contain.

Claims (10)

1. an one-way broken fiber detecting method is applied to independently ethernet device of port receiving-transmitting chain difference, it is characterized in that, may further comprise the steps:
Carry out the fault detect of local terminal ports physical;
If detect local terminal port generation physical fault, send the default message of notifying to the Peer-Port of respective link, describedly notify message and carry described local terminal ports physical fault message;
If do not detect local terminal port generation physical fault, but receive that Peer-Port sends, carry Peer-Port physical fault information notify message the time, identify link one-way broken fiber between local terminal port and the described Peer-Port.
2. one-way broken fiber detecting method according to claim 1 is characterized in that, and is further comprising the steps of:
Described Peer-Port to respective link sends default notifying after the message, if detect and send the local terminal port failure recovery of notifying message, send default recovery message to corresponding Peer-Port, described recovery message carries described local terminal port failure recovering information;
When receiving the local terminal port of notifying message when receiving the recovery message that Peer-Port sends, identify link proper communication between described local terminal port and the described Peer-Port.
3. one-way broken fiber detecting method according to claim 1 is characterized in that, and is further comprising the steps of:
Described identifying between local terminal port and the Peer-Port after the link one-way broken fiber sends to described Peer-Port and to recover detection messages automatically;
When automatic recovery detection messages that the local terminal port receives that Peer-Port sends, send message response to Peer-Port; And
When the local terminal port receives the message response of Peer-Port transmission, identify link proper communication between local terminal port and the Peer-Port.
4. according to the arbitrary described one-way broken fiber detecting method of claim 1-3, it is characterized in that, also comprise the step that the local terminal port status is set, specifically comprise:
It is communications status that proper communication link corresponding ports state is set;
When detecting local terminal port generation physical fault, migration local terminal port status is a malfunction;
When identifying between local terminal port and the described Peer-Port link one-way broken fiber, migration local terminal port status is unidirectional failure state;
When the local terminal port that is in unidirectional failure state received recovery message/message response, migration local terminal port status was a communications status.
5. one-way broken fiber detecting method according to claim 4 is characterized in that,
Described migration local terminal port status is that malfunction comprises:
Migration local terminal port status is the temporary derangement state; When detecting the local terminal port failure recovery that is in the temporary derangement state in Preset Time, migration local terminal port status is a communications status; When not detecting the local terminal port failure recovery that is in the temporary derangement state in Preset Time, migration local terminal port status is a malfunction;
Described migration local terminal port status is that communications status comprises:
Migration local terminal port status is an active state; When the variation that does not detect respective link in Preset Time, then moving the local terminal port status is communications status.
6. an one-way broken fiber checkout gear is located at independently ethernet device of port receiving-transmitting chain difference, and described ethernet device comprises the ports physical failure detector; It is characterized in that, comprising:
Notify packet sending unit, be used for being connected with described ports physical failure detector, according to detected local terminal ports physical failure condition, send the default message of notifying to the Peer-Port of respective link, describedly notify message and carry described local terminal ports physical fault message;
Notify message process unit, be used for being connected with described ports physical failure detector, according to the received Peer-Port of the local terminal port message of notifying that send, that carry Peer-Port physical fault information, based on the situation that does not detect local terminal port generation physical fault, identify link one-way broken fiber between local terminal port and the Peer-Port.
7. one-way broken fiber checkout gear according to claim 6 is characterized in that, also comprises:
Recover packet sending unit, be used for notifying packet sending unit and being connected with described ports physical failure detector with described, according to the detected situation that has sent the local terminal port failure recovery of notifying message, send default recovery message to corresponding Peer-Port, described recovery message carries local terminal port failure recovering information;
Recover message process unit, notify message process unit and be connected with described, be used for basis and received the situation that the local terminal port of notifying message receives the recovery message of Peer-Port transmission, identify link proper communication between described local terminal port and the described Peer-Port.
8. one-way broken fiber checkout gear according to claim 6 is characterized in that, also comprises:
The detection messages transmitting element is notified message process unit and is connected with described, is used for sending to the Peer-Port that the link one-way broken fiber takes place recovering detection messages automatically;
The detection messages receiving element is used for the automatic recovery detection messages that receives according to the local terminal port, sends message response to Peer-Port; And
The message response processing unit is used for the message response that receives according to the local terminal port, identifies link proper communication between local terminal port and the Peer-Port.
9. according to the arbitrary described one-way broken fiber checkout gear of claim 6-8, it is characterized in that comprise that also port status is provided with the unit, being used to be provided with proper communication link corresponding ports state is communications status; And
Described port status is provided with the unit and is connected with the ports physical failure detector, and migration local terminal port status is a malfunction when being used to detect local terminal port generation physical fault;
Described port status is provided with the unit and notifies message process unit and be connected, migration local terminal port status is unidirectional failure state when being used to identify between local terminal port and the described Peer-Port link one-way broken fiber, and migration local terminal port status is a communications status when the local terminal port that is in unidirectional failure state receives recovery message/message response.
10. one-way broken fiber detection components is located at and is in first ethernet device and second ethernet device of receiving and dispatching both link ends independently, and described first and second ethernet devices are respectively equipped with the ports physical failure detector; It is characterized in that, comprising:
Be arranged at the packet sending unit of notifying in first ethernet device, be used for being connected with this equipment physical fault checkout gear, according to detected local terminal ports physical failure condition, independently send the default message of notifying in the corresponding port of chain road direction second ethernet device by described transmitting-receiving, describedly notify message and carry described local terminal ports physical fault message;
Be arranged at the message process unit of notifying in second ethernet device, with described notify packet sending unit by described transmitting-receiving independently link be connected, be used for being connected with this equipment physical fault checkout gear, notify message according to what the corresponding port of the first received ethernet device of local terminal port sent, based on the situation that does not detect local terminal port generation physical fault, discern independently link one-way broken fiber of described transmitting-receiving.
CNA2007103014720A 2007-12-27 2007-12-27 One-way broken fiber detecting method, device and component Pending CN101183902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007103014720A CN101183902A (en) 2007-12-27 2007-12-27 One-way broken fiber detecting method, device and component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007103014720A CN101183902A (en) 2007-12-27 2007-12-27 One-way broken fiber detecting method, device and component

Publications (1)

Publication Number Publication Date
CN101183902A true CN101183902A (en) 2008-05-21

Family

ID=39449002

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007103014720A Pending CN101183902A (en) 2007-12-27 2007-12-27 One-way broken fiber detecting method, device and component

Country Status (1)

Country Link
CN (1) CN101183902A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035695A (en) * 2010-12-20 2011-04-27 中兴通讯股份有限公司 Bidirectional forwarding detection method and device
CN102148724A (en) * 2011-01-31 2011-08-10 中兴通讯股份有限公司 Link detecting method and network access device
CN102571589A (en) * 2012-01-17 2012-07-11 华为技术有限公司 Network communications method, equipment and system
CN102611627A (en) * 2012-03-30 2012-07-25 杭州华三通信技术有限公司 RP (Real Player) refreshing method and device
CN102882704A (en) * 2012-09-03 2013-01-16 杭州华三通信技术有限公司 Link protection method and apparatus in soft restart upgrade process of ISSU (in-service software upgrade)
CN106123930A (en) * 2016-06-12 2016-11-16 武汉世纪金桥安全技术有限公司 The disconnected fine localization method of a kind of distributed optical fiber sensing system and device
US11792099B2 (en) 2020-03-11 2023-10-17 Huawei Technologies Co., Ltd. Troubleshooting method, device, and readable storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035695A (en) * 2010-12-20 2011-04-27 中兴通讯股份有限公司 Bidirectional forwarding detection method and device
CN102148724A (en) * 2011-01-31 2011-08-10 中兴通讯股份有限公司 Link detecting method and network access device
CN102148724B (en) * 2011-01-31 2014-12-31 中兴通讯股份有限公司 Link detecting method and network access device
CN102571589A (en) * 2012-01-17 2012-07-11 华为技术有限公司 Network communications method, equipment and system
CN102571589B (en) * 2012-01-17 2015-01-21 华为技术有限公司 Network communications method, equipment and system
CN102611627A (en) * 2012-03-30 2012-07-25 杭州华三通信技术有限公司 RP (Real Player) refreshing method and device
CN102882704A (en) * 2012-09-03 2013-01-16 杭州华三通信技术有限公司 Link protection method and apparatus in soft restart upgrade process of ISSU (in-service software upgrade)
CN102882704B (en) * 2012-09-03 2016-06-29 杭州华三通信技术有限公司 Link protection method in the soft reboot escalation process of a kind of ISSU and equipment
CN106123930A (en) * 2016-06-12 2016-11-16 武汉世纪金桥安全技术有限公司 The disconnected fine localization method of a kind of distributed optical fiber sensing system and device
US11792099B2 (en) 2020-03-11 2023-10-17 Huawei Technologies Co., Ltd. Troubleshooting method, device, and readable storage medium

Similar Documents

Publication Publication Date Title
CN101183902A (en) One-way broken fiber detecting method, device and component
EP1202492B1 (en) Network device and method for detecting a link failure in a network
CN1874201B (en) Method and equipment for triggering protection of optical network under shared configuration of receiving devices
CN106789386B (en) Wrong method and the error detector for network system on detection communication bus
US8117337B2 (en) Method and device for implementing link pass through in point-to-multipoint network
CN101316197B (en) Detection method and apparatus for Ethernet port loop of MSTP equipment
KR101483045B1 (en) System and method for signal failure detection in a ring bus system
CN103684835A (en) Link fault reporting method and processing method, and transmission node and primary node
CN106533736A (en) Network device reboot method and apparatus
CN206481302U (en) A kind of fibre circuit protector for preparing and carrying fine detection
KR20020090836A (en) Media converter and failure detection technique
CN101056341B (en) Automatic closing method and automatic recovery method of unidirectional link and its device
CN101330422A (en) Method for avoiding broadcast storm in an ether looped network and transmission switch for the ether looped network
CN101309215B (en) Ethernet ring network link restoring and detecting method and Ethernet ring network switch
CN109271273A (en) A kind of method, abnormal restoring equipment and storage medium that communication abnormality restores
CN101436975A (en) Method, apparatus and system for implementing rapid convergence in looped network
CN102918809B (en) The method of network and expanding element and operational network
JP2004072770A (en) Automatic restoration system from interruption by ieee-1394phy
JP2001103062A (en) Method for notifying detection of fault
CN105323104B (en) Alarm management method and device and packet transmission equipment
MXPA05005053A (en) Method and system for surveilling a telecommunications network link.
RU2313800C1 (en) Mode and a system of identification of the port of the switching panel to which a network arrangement is attached
JP2005033665A (en) Transmission control system and fault occurrence detection control method
CN102932172A (en) Method, equipment and system for detecting Ethernet ring failure node
CN102571398A (en) Method and system for protecting channels among communication equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080521