CN101674206B - Loop detection method and network equipment - Google Patents

Loop detection method and network equipment Download PDF

Info

Publication number
CN101674206B
CN101674206B CN200910205521.XA CN200910205521A CN101674206B CN 101674206 B CN101674206 B CN 101674206B CN 200910205521 A CN200910205521 A CN 200910205521A CN 101674206 B CN101674206 B CN 101674206B
Authority
CN
China
Prior art keywords
loop detection
detection message
loop
message
discriminating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200910205521.XA
Other languages
Chinese (zh)
Other versions
CN101674206A (en
Inventor
刘述杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200910205521.XA priority Critical patent/CN101674206B/en
Publication of CN101674206A publication Critical patent/CN101674206A/en
Application granted granted Critical
Publication of CN101674206B publication Critical patent/CN101674206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a loop detection method and network equipment, relates to the communication field and solves the problem of failure to locate the position where a loop occurs. The method comprises the following steps: receiving a loop detection message sent by lower layer equipment, and judging a detection mode of the loop detection message; receiving the loop detection message with a non-crossing layer detection mode which is sent by the lower layer equipment, and detecting an identification domain field of the loop detection message; determining generation of the loop if the identification domain field of the loop detection message is as the same as that stored locally; and reporting alarming information and loop position to initial message equipment according to initial message equipment information carried in an initial packet identification field of the loop detection message. The technical scheme of the invention is applicable to detection and location on the loop in an access network.

Description

A kind of loop detecting method and the network equipment
Technical field
The present invention relates to field of data communication, particularly relate to a kind of loop detecting method and the network equipment.
Background technology
Along with the expansion of network size, the enhancing of network topology replicability, the loop phenomenon in network is more and more difficult to be eliminated and location.After network produces loop phenomenon, the lighter's MAC address learning mistake, user can not normally surf the Net; Severe one generation network storm, causes large-area network paralysis.Network maintenance staff wishes the particular location that network intermediate ring road phenomenon produces of knowing detailed as far as possible urgently, to take effective solution to process in time.The general principle of loop detection is: equipment sends a message, if the intact from then on port accepts of this message is returned, or only increase a Tag head, then the network that networks under this equipment is described exists loop.Concrete, initially can not send person's field and monitor state, the loop phenomenon in Sampling network by adding in message, and up and down port is used as up and down link respectively solves this problem.
State in realization in the process of detection loop, there are the following problems:
Existing detection method can only detect loop phenomenon, cannot locate the position that loop occurs.
Summary of the invention
The invention provides a kind of loop detecting method and the network equipment, solve the problem cannot locating loop occurrence positions.
A kind of loop detecting method, comprising:
Receive the loop detection message that infrastructure devices sends, judge the detecting pattern of this loop detection message;
If receive the loop detection message that infrastructure devices sends the not cross-layer detecting pattern that described loop detection message is, detect the discriminating territory field of this loop detection message;
If when the discriminating territory field of described loop detection message is identical with the discriminating territory field that stores of this locality, then think generation loop;
According to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position.
Further, described loop detecting method, also comprises:
If the loop detection message that described infrastructure devices sends is the loop detection message of cross-layer detecting pattern, detects the discriminating territory field of this loop detection message, and compare with the authentication field that this locality stores;
If comparative result is different, then replaces the discriminating territory field in this loop detection message by the local discriminating territory field stored, amended loop detection message is forwarded to all of the port; Or,
If comparative result is identical, then think generation loop, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position.
Further, described loop detecting method also comprises:
Receive upper layer device and send loop detection message, judge the detecting pattern of this loop detection message;
If the loop detection message of the not cross-layer detecting pattern that described loop detection message is, replace the discriminating territory field in this loop detection message by the discriminating territory field that this locality stores;
Amended loop detection message is forwarded to all of the port.
Further, described loop detecting method also comprises:
If the loop detection message that described upper layer device sends is the loop detection message of cross-layer detecting pattern, detects the discriminating territory field of this loop detection message, and compare with the authentication field that this locality stores;
If comparative result is different, then replaces the discriminating territory field in this loop detection message by the local discriminating territory field stored, amended loop detection message is forwarded to all of the port; Or,
If comparative result is identical, then think generation loop, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position.
Further, described loop detecting method also comprises:
Receive the loop detection message sent with layer equipment, judge the detecting pattern of this loop detection message;
If described loop detection message is the loop detection message of not cross-layer detecting pattern, judge whether this equipment is this loop detection the highest middle-level equipment;
If this equipment is not this loop detection the highest middle-level equipment, then whether the discriminating territory field of more local storage is identical with the discriminating territory field of this loop detection message;
If when comparative result is different, then replaces the discriminating territory field in this loop detection message by the local discriminating territory field stored, amended loop detection message is forwarded to all of the port; Or,
If when comparative result is identical, then think generation loop, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position.
Further, described judge whether this equipment is the step of this loop detection the highest middle-level equipment after, also comprise:
If this equipment is this loop detection the highest middle-level equipment, then abandon described loop detection message.
Further, described loop detecting method, also comprises:
If the loop detection message that described same layer equipment sends is the loop detection message of cross-layer detecting pattern, then abandon described loop detection message.
Further, described loop detection message carries detecting pattern field, and described detecting pattern field carry information indicates described loop detection message to be the loop detection message of not cross-layer detecting pattern or the loop detection message of cross-layer detecting pattern.
A kind of network equipment, comprising:
Mode selection module, for when receiving loop detection message, according to the detecting pattern field of loop detection message, selects not cross-layer detecting pattern or cross-layer detecting pattern;
Not cross-layer mode treatment module, for select at described mode selection module not cross-layer detecting pattern time, receive loop detection message, detect whether loop occurs according to this loop detection message, and determine loop position and report and alarm information;
Cross-layer mode treatment module, for when selecting cross-layer detecting pattern at described mode selection module, receiving loop detection message, detecting whether loop occurs, and determine loop position and report and alarm information according to this loop detection message.
Further, described not cross-layer mode treatment module comprises:
Walking direction unit, for judging the sending direction of the loop detection message received, comprising upper layer device transmission, infrastructure devices transmission and sending with layer equipment;
Message amendment unit, for when receiving the loop detection message that upper layer device sends, replaces the discriminating territory field in this loop detection message by the discriminating territory field that this locality stores; Or,
When receiving the loop detection message of same layer equipment transmission and the local discriminating territory field stored is different from the discriminating territory field of this loop detection message, replace the discriminating territory field in this loop detection message by the discriminating territory field that this locality stores;
Message repeating unit, for forwarding the amended loop detection message of described message amendment unit to all of the port;
Alarm Unit, for when receiving infrastructure devices or the loop detection message with the transmission of layer equipment, if the discriminating territory field of described loop detection message is identical with the discriminating territory field that this locality stores, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position;
Packet loss unit, for when receiving the loop detection message and the present networks equipment the highest middle-level equipment that is this loop detection that same layer equipment sends, abandons described loop detection message.
Further, described cross-layer mode treatment module comprises:
Walking direction unit, for judging the sending direction of the loop detection message received, comprising upper layer device transmission, infrastructure devices transmission and sending with layer equipment;
Message amendment unit, for the loop detection message receiving upper layer device or infrastructure devices and send, and the local discriminating territory field stored different from the discriminating territory field of this loop detection message time, replace the discriminating territory field in this loop detection message by the discriminating territory field of this locality storage;
Message repeating unit, for forwarding the amended loop detection message of described message amendment unit to all of the port;
Alarm Unit, for the loop detection message receiving upper layer device or infrastructure devices and send, and the local discriminating territory field stored identical with the discriminating territory field of this loop detection message time, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position;
Packet loss unit, for when receiving the loop detection message that same layer equipment sends, abandons described loop detection message.
The embodiment provides a kind of loop detecting method and the network equipment, support not cross-layer and cross-layer detecting pattern, when there being the network equipment to initiate loop detection, all loop detection is carried out at detection side's each network equipment upwards, the loop detection message of self is generated by the discriminating territory field revising the loop detection message received, warning information is generated when determining to produce loop, and according to the identification field of initially giving out a contract for a project in loop detection message, described warning information and loop position is reported to the message original equipment of initiating loop detection, solve the problem cannot locating loop occurrence positions.
Accompanying drawing explanation
Fig. 1 is a kind of network environment structural representation needing loop detection;
Fig. 2 is that another needs the network environment structural representation of loop detection;
Fig. 3 is the form schematic diagram of the loop detection message that embodiments of the invention use;
The flow chart of a kind of loop detecting method that Fig. 4 provides for embodiments of the invention;
The flow chart of a kind of loop detecting method that Fig. 5 provides for another embodiment of the present invention;
The structural representation of a kind of network equipment that Fig. 6 provides for embodiments of the invention;
Fig. 7 is the structural representation of not cross-layer mode treatment module 602 in Fig. 6;
Fig. 8 is the structural representation of cross-layer mode treatment module 603 in Fig. 6.
Embodiment
In the network environment shown in Fig. 1, by adding the detection that the method initially not sending person's field and monitor state can only realize from upper layer network equipment to lower floor's network equipment in message, and do not locate the loop of upper layer network equipment by lower net network equipment; In network environment as shown in Figure 2, access layer equipment connects with cascade form, and arranging cumbersome of up and down link, is unfavorable for the location to loop phenomenon.
In order to solve the problem cannot locating loop position, The embodiment provides a kind of loop detecting method.
Fig. 3 is the form of the loop detection message used in the embodiment of the present invention of the present invention, and wherein, object MAC field is ff ff ff ff ff ff, namely indicates the network equipment receiving this loop detection message to forward this message to all of the port; Frame type field illustrates that this message is loop detection message; Flag bit of initially giving out a contract for a project is 1bit, be used for marking whether to enable the person that initially do not give out a contract for a project, 1 representative enables the person that initially do not give out a contract for a project (if enable the person that initially do not give out a contract for a project, then receiving detecting pattern field, the layer field of the further detection loop detection messages of the network equipment of this loop detection message and identification field of initially giving out a contract for a project); Detecting pattern field is 2bit, the loop type that this loop detection message of finger formula detects, namely cross-layer (layer) detects or detects with layer, in embodiments of the invention, not cross-layer detecting pattern is adopted when detecting pattern field value is 0, namely only detect whether there is loop with layer and lower floor's network, adopt cross-layer detecting pattern when detecting pattern field value is 1, namely whether detection upper strata and lower floor's network exist loop; Layer field is 5bit, is used for identifying the layer at network equipment place sending loop detection message, and configured before initiation loop detection by user, default value is 1; Initially give out a contract for a project identification field, identification field of initially giving out a contract for a project is used for mark and does not initially give out a contract for a project person, and be 16 bytes, on the equipment of initially giving out a contract for a project, the content of this field and discriminating territory field is identical, and other equipment receiving this detection messages does not process this field.
In the network environment shown in Fig. 2, the loop detecting method using embodiments of the invention one to provide carries out the process of detection and location as shown in Figure 4 to loop phenomenon, comprising:
Step 401, the network equipment generate and send loop detection message;
In this step, the network equipment, according to preset instruction in a device, periodically produces loop detection message; Or receive outside instruction, as loop detection is carried out in user's instruction, generate loop detection message according to this instruction, initiate one and take turns loop detection.
Core layer equipment, convergence-level equipment and access layer equipment can initiate loop detection, and in each network equipment the information of this network equipment all in store residing layer in a network, this information can carry out equipment according to actual needs by network maintenance staff.Generally, layer information is a 5bit number, and the value of layer information is larger, then corresponding network equipment level is in a network lower.
In the embodiment of the present invention, initiate loop detection with convergence-level equipment, carrying out loop detection (namely detecting pattern field is 0) under not cross-layer detecting pattern for example is described.In the loop detection message that convergence-level equipment generates, flag bit of initially giving out a contract for a project is 1, represents and enables the person that initially do not give out a contract for a project; Identification field of initially giving out a contract for a project carries the mark of this convergence-level equipment, differentiates the discriminating territory field contents carrying this convergence-level equipment in the field of territory, and the information that discriminating territory field is carried is by such as under type generation: limit a character string; Character string is encrypted; Arranging the character string after encryption is the information differentiating that territory field is carried.
After convergence-level equipment generates loop detection message, this loop detection message is sent to its network equipment with layer and lower floor, initiate one and take turns loop detection, make each network equipment under it all carry out the loop detection of respective downstream network, namely one take turns in loop detection the loop detection at least comprised a network equipment downstream network.
Step 402, the network equipment receive loop detection message;
In this step, the network equipment receives loop detection message, and according to the frame type carried in this loop detection message, learns that this message is loop detection message.
Further, the network equipment detects the flag bit of initially giving out a contract for a project of this loop detection message, if this is initially given out a contract for a project, flag bit is 1, illustrates and enables the person that initially do not give out a contract for a project.
Step 403, the network equipment judge whether the network equipment sending this message is in same level with present networks equipment;
In this step, receive the layer field (P_Layer) in the network equipment inspection loop detection message of loop detection message, and the layer information (S_Layer) of the content in this layer field and present networks equipment is compared.If S_Layer>P_Layer, the transmit leg that the loop detection message that the network equipment receives is described level in a network, lower than present networks equipment, enters step 404.
If S_Layer and P_Layer is equal, illustrate that the network equipment that sends loop detection message and present networks equipment are in same level, in actual networking, many equipment is had to be in same rank, as the Access Layer in Fig. 2, to this situation, the layer of transmitting apparatus is equal with the layer of receiving equipment.Now also need to judge whether the S_Layer of the network equipment equals 1 further, namely judge that whether the network equipment is the top equipment in this loop detection.If S_Layer equals 1, enter step 405; Otherwise, enter step 406.
Step 404, the network equipment forward the loop detection message received;
In this step, sending the network equipment level of loop detection message higher than (during S_Layer>P_Layer) during present networks equipment, P_Layer in this loop detection message of present networks apparatus modifications and discriminating territory field, using the S_Layer of present networks equipment with differentiate that territory field is as the new P_Layer of this loop detection message with differentiate territory field, and forward amended loop detection message to all of the port.
Be the loop detection of 0 for detecting pattern field, loop detection message should down detect, and object is mainly used for detecting the loop of downstream network device.Here, P_Layer is revised as the layer of present networks equipment by the network equipment, and differentiate that territory field replaces with the discriminating territory field of oneself, Reseal message also forwards.Namely create one by the loop detection message of present networks device initialize, loop detection is carried out to the network under present networks equipment.
In addition, for the former loop detection message before amendment, present networks equipment also needs this message to all of the port transparent transmission.
Step 405, the network equipment abandon loop detection message;
According to the distribution of step 403, when S_Layer and P_Layer is equal and S_Layer equals 1, the loop detection message that the network equipment that have received same layer sends is described; Because the S_Layer of present networks equipment equals 1, illustrate that present networks equipment is the network equipment of highest level in epicycle loop detection, and take turns in loop detection one, only have a network equipment to be highest level by equipment.So time, this loop detection message need be abandoned.The diffusion of loop detection message can be prevented like this.Such as, user thinks that control loop detection messages only forwards under certain convergence-level equipment, and just the layer of this equipment can be configured to 1, like this, the loop detection message that convergence-level equipment sends thus will be discarded by same layer equipment and upper layer device.
Step 406, the network equipment judge the loop detection message whether this loop detection message sends for self further;
In this step, the network equipment further judges the loop detection message whether this loop detection message sends for self, if not, the loop detection message that have received and sent by other network equipments is described, enters step 407; Otherwise, illustrate and loop phenomenon occur, enter step 408.
Judge whether it is the loop detection message self sent, specifically can by judging to differentiate that territory field realizes.If the discriminating territory field of loop detection message is consistent with the discriminating territory field of the network equipment, illustrates that the loop detection message received is the message that this network equipment sends, namely there is loop under this network equipment.
After territory field is differentiated in the amendment of step 407, the network equipment, forward amended loop detection message;
In this step, if the result that step 406 judges is that the discriminating territory field of the discriminating territory field of loop detection message and the network equipment is inconsistent, illustrate it is not the loop detection message that present networks equipment sends, the P_Layer of this loop detection message is changed into the layer of present networks equipment, and by needs by this message repeating.
The warning information of loop is there is in step 408, the network equipment under generating this port;
In this step, because the network equipment detects that the network equipment under this port exists loop, therefore generate warning information based on the port producing loop.
Step 409, the network equipment, after generation warning information, judge it oneself is whether the original initiator of loop detection message;
In this step, the network equipment is after step 408 generates warning information, judge it oneself is whether the original initiator of loop detection message further, compare specifically by by the discriminating territory field of present networks equipment and the identification field of initially giving out a contract for a project of loop detection message, if consistent, then think that this loop detection message is that present networks equipment is initiated, enter step 411; Otherwise, enter step 410.
Step 410, the network equipment, after determining that itself is not loop detection message promoter, report loop detection relevant information;
In this step, according to the judged result of step 409, self not initial loop detection message promoter when the network equipment detects, according to the information determination initial launching person initially given out a contract for a project in identification field, to the relevant information that this initial launching person's forwarding loop detects, comprise the position (downstream network of the network equipment of loop phenomenon being detected) etc. that loop occurs.
The network equipment of step 411, initiation loop detection prints loop detection relevant information;
In this step, if the network equipment judges it self is the initial launching person of loop detection message, or receive the warning information that other network equipments report, illustrate that the position of the current loop phenomenon under present networks equipment is determined, the promoter of this message and current network device have known the accurate location producing loop phenomenon, like this, this loop detection message just no longer forwards, now, described loop detection terminates, and prints the relevant information of loop detection.
For step 403, when S_Layer is less than P_Layer, illustrate that the loop detection message that the network equipment receives is sent by its lower floor's network equipment, now, send if this message is present networks equipment, then think this message through the forwarding of lower floor's network equipment, in lower floor's network, there is loop phenomenon, enter flow process described in step 408 to step 411; If this loop detection message is not sent by present networks equipment, be the loop detection of 0 for detecting pattern field, the network equipment receives the loop detection message that lower floor is transmitted, and the discriminating territory field of this message and the discriminating territory field of self inconsistent, then this loop detection message is discarded.
Embodiments of the invention two additionally provide a kind of loop detecting method, can realize the loop detection of cross-layer, and as shown in Figure 5, wherein, the step 401 and 402 in step 501 and step 502 and embodiments of the invention one is as good as idiographic flow, does not repeat them here.
Step 503, the network equipment judge whether P_Layer and S_Layer all equals 1;
If so, step 504 is entered, otherwise, enter step 505.
In the embodiment of the present invention, P_Layer and S_Layer is configured by user.Such as user only wants to detect the port loop under certain convergence-level equipment, then the layer field configuration of this equipment can be become 1.Like this, the loop detection message forwarded by this network equipment can only at lower floor's network repeating of this network equipment.
Step 504, the network equipment abandon loop detection message;
If the layer of certain convergence-level equipment is configured to 1, so with it with the network equipment of layer and upper layer network equipment, this packet loss can be fallen when receiving this loop detection message, effectively prevent the diffusion of loop message.
Step 505, the network equipment judge the loop detection message whether this loop detection message sends for self;
If so, step 506 is entered, otherwise, enter step 507.
Step 506, the network equipment are revised P_Layer and after differentiating territory field, are forwarded amended loop detection message;
In this step, because detecting pattern field is 1, therefore the object of loop packet check is cross-layer, and namely namely it can detect the loop of lower floor's network equipment, can detect again the loop of upper layer network equipment.Therefore, when the loop detection message that a network receives is not the loop detection message self sent, the P_Layer of this message should be revised and differentiate territory field, then forwarding to all of the port.
Step 507 to step 510 see the step 408 in the embodiment of the present invention one to step 411.
Embodiments of the invention additionally provide a kind of network equipment, and this network equipment as shown in Figure 6, comprising:
Mode selection module 601, for when receiving loop detection message, according to the detecting pattern field of loop detection message, selects not cross-layer detecting pattern or cross-layer detecting pattern;
Not cross-layer mode treatment module 602, for select at described mode selection module 601 not cross-layer detecting pattern time, receive loop detection message, detect whether loop occurs according to this loop detection message, and determine loop position and report and alarm information;
Cross-layer mode treatment module 603, for when selecting cross-layer detecting pattern at described mode selection module 601, receiving loop detection message, detecting whether loop occurs, and determine loop position and report and alarm information according to this loop detection message.
Further, the structure of described not cross-layer mode treatment module 602 as shown in Figure 7, comprising:
Walking direction unit 6021, for judging the sending direction of the loop detection message received, comprising upper layer device transmission, infrastructure devices transmission and sending with layer equipment;
Message amendment unit 6022, for when receiving the loop detection message that upper layer device sends, replaces the discriminating territory field in this loop detection message by the discriminating territory field that this locality stores; Or,
When receiving the loop detection message of same layer equipment transmission and the local discriminating territory field stored is different from the discriminating territory field of this loop detection message, replace the discriminating territory field in this loop detection message by the discriminating territory field that this locality stores;
Message repeating unit 6023, for forwarding the amended loop detection message of described message amendment unit to all of the port;
Alarm Unit 6024, for when receiving infrastructure devices or the loop detection message with the transmission of layer equipment, if the discriminating territory field of described loop detection message is identical with the discriminating territory field that this locality stores, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position;
Packet loss unit 6025, for when receiving the loop detection message and the present networks equipment the highest middle-level equipment that is this loop detection that same layer equipment sends, abandons described loop detection message.
Further, the structure of described cross-layer mode treatment module 603 as shown in Figure 8, comprising:
Walking direction unit 6031, for judging the sending direction of the loop detection message received, comprising upper layer device transmission, infrastructure devices transmission and sending with layer equipment;
Message amendment unit 6032, for the loop detection message receiving upper layer device or infrastructure devices and send, and the local discriminating territory field stored different from the discriminating territory field of this loop detection message time, replace the discriminating territory field in this loop detection message by the discriminating territory field of this locality storage;
Message repeating unit 6033, for forwarding the amended loop detection message of described message amendment unit to all of the port;
Alarm Unit 6034, for the loop detection message receiving upper layer device or infrastructure devices and send, and the local discriminating territory field stored identical with the discriminating territory field of this loop detection message time, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position;
Packet loss unit 6035, for when receiving the loop detection message that same layer equipment sends, abandons described loop detection message.
The above-mentioned network equipment can combine with a kind of loop detecting method that embodiments of the invention provide, support not cross-layer and cross-layer detecting pattern, when there being the network equipment to initiate loop detection, all carry out loop detection at detection side's each network equipment upwards, achieve the detection layer by layer under the network equipment of initial loop detection; The loop detection message of self is generated by the discriminating territory field revising the loop detection message received, warning information is generated when the network equipment is determined to produce loop, and according to the identification field of initially giving out a contract for a project in loop detection message, described warning information and loop position is reported to the message original equipment of initiating loop detection, under the position that loop occurs being accurate to the lowest level network equipment of this loop ownership, solve the problem cannot locating loop occurrence positions.
One of ordinary skill in the art will appreciate that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range described in claim.

Claims (10)

1. a loop detecting method, is characterized in that, comprising:
Receive the loop detection message that infrastructure devices sends, judge the detecting pattern of this loop detection message;
If described loop detection message is the loop detection message of not cross-layer detecting pattern, detect the discriminating territory field of this loop detection message;
If when the discriminating territory field of described loop detection message is identical with the discriminating territory field that stores of this locality, then think generation loop;
According to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position;
If the loop detection message that described infrastructure devices sends is the loop detection message of cross-layer detecting pattern, detects the discriminating territory field of this loop detection message, and compare with the authentication field that this locality stores;
If comparative result is different, then replaces the discriminating territory field in this loop detection message by the local discriminating territory field stored, amended loop detection message is forwarded to all of the port; Or,
If comparative result is identical, then think generation loop, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position.
2. loop detecting method according to claim 1, is characterized in that, also comprises:
Receive upper layer device and send loop detection message, judge the detecting pattern of this loop detection message;
If described loop detection message is the loop detection message of not cross-layer detecting pattern, replace the discriminating territory field in this loop detection message by the discriminating territory field that this locality stores;
Amended loop detection message is forwarded to all of the port.
3. loop detecting method according to claim 1 and 2, is characterized in that, also comprises:
If the loop detection message that upper layer device sends is the loop detection message of cross-layer detecting pattern, detects the discriminating territory field of this loop detection message, and compare with the authentication field that this locality stores;
If comparative result is different, then replaces the discriminating territory field in this loop detection message by the local discriminating territory field stored, amended loop detection message is forwarded to all of the port; Or,
If comparative result is identical, then think generation loop, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position.
4. loop detecting method according to claim 1, is characterized in that, also comprises:
Receive the loop detection message sent with layer equipment, judge the detecting pattern of this loop detection message;
If described loop detection message is the loop detection message of not cross-layer detecting pattern, judge whether this equipment is this loop detection the highest middle-level equipment;
If this equipment is not this loop detection the highest middle-level equipment, then whether the discriminating territory field of more local storage is identical with the discriminating territory field of this loop detection message;
If when comparative result is different, then replaces the discriminating territory field in this loop detection message by the local discriminating territory field stored, amended loop detection message is forwarded to all of the port; Or,
If when comparative result is identical, then think generation loop, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position.
5. loop detecting method according to claim 4, is characterized in that, described in, after judging whether this equipment is the step of this loop detection the highest middle-level equipment, also comprise:
If this equipment is this loop detection the highest middle-level equipment, then abandon described loop detection message.
6. the loop detecting method according to claim 1 or 4, is characterized in that, also comprises:
If the loop detection message sent with layer equipment is the loop detection message of cross-layer detecting pattern, then abandon described loop detection message.
7. the loop detecting method according to claim 1 or 2 or 4 or 5, it is characterized in that, described loop detection message carries detecting pattern field, and described detecting pattern field carry information indicates described loop detection message to be the loop detection message of not cross-layer detecting pattern or the loop detection message of cross-layer detecting pattern.
8. a network equipment, is characterized in that, comprising:
Mode selection module, for when receiving loop detection message, according to the detecting pattern field of loop detection message, selects not cross-layer detecting pattern or cross-layer detecting pattern;
Not cross-layer mode treatment module, for select at described mode selection module not cross-layer detecting pattern time, receive loop detection message, detect whether loop occurs according to this loop detection message, and determine loop position and report and alarm information;
Cross-layer mode treatment module, for when selecting cross-layer detecting pattern at described mode selection module, receiving loop detection message, detecting whether loop occurs, and determine loop position and report and alarm information according to this loop detection message.
9. the network equipment according to claim 8, is characterized in that, described not cross-layer mode treatment module comprises:
Walking direction unit, for judging the sending direction of the loop detection message received, comprising upper layer device transmission, infrastructure devices transmission and sending with layer equipment;
Message amendment unit, for when receiving the loop detection message that upper layer device sends, replaces the discriminating territory field in this loop detection message by the discriminating territory field that this locality stores; Or,
When receiving the loop detection message of same layer equipment transmission and the local discriminating territory field stored is different from the discriminating territory field of this loop detection message, replace the discriminating territory field in this loop detection message by the discriminating territory field that this locality stores;
Message repeating unit, for forwarding the amended loop detection message of described message amendment unit to all of the port;
Alarm Unit, for when receiving infrastructure devices or the loop detection message with the transmission of layer equipment, if the discriminating territory field of described loop detection message is identical with the discriminating territory field that this locality stores, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position;
Packet loss unit, for when receiving the loop detection message and the present networks equipment the highest middle-level equipment that is this loop detection that same layer equipment sends, abandons described loop detection message.
10. the network equipment according to claim 9, is characterized in that, described cross-layer mode treatment module comprises:
Walking direction unit, for judging the sending direction of the loop detection message received, comprising upper layer device transmission, infrastructure devices transmission and sending with layer equipment;
Message amendment unit, for the loop detection message receiving upper layer device or infrastructure devices and send, and the local discriminating territory field stored different from the discriminating territory field of this loop detection message time, replace the discriminating territory field in this loop detection message by the discriminating territory field of this locality storage;
Message repeating unit, for forwarding the amended loop detection message of described message amendment unit to all of the port;
Alarm Unit, for the loop detection message receiving upper layer device or infrastructure devices and send, and the local discriminating territory field stored identical with the discriminating territory field of this loop detection message time, according to the message original equipment information of carrying in the identification field of initially giving out a contract for a project of described loop detection message, to described message original equipment report and alarm information and loop position;
Packet loss unit, for when receiving the loop detection message that same layer equipment sends, abandons described loop detection message.
CN200910205521.XA 2009-10-20 2009-10-20 Loop detection method and network equipment Active CN101674206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910205521.XA CN101674206B (en) 2009-10-20 2009-10-20 Loop detection method and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910205521.XA CN101674206B (en) 2009-10-20 2009-10-20 Loop detection method and network equipment

Publications (2)

Publication Number Publication Date
CN101674206A CN101674206A (en) 2010-03-17
CN101674206B true CN101674206B (en) 2015-06-03

Family

ID=42021210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910205521.XA Active CN101674206B (en) 2009-10-20 2009-10-20 Loop detection method and network equipment

Country Status (1)

Country Link
CN (1) CN101674206B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130793B (en) * 2010-11-29 2013-08-07 华为技术有限公司 Method, device and system for processing loop circuit in access network
CN108123752B (en) * 2017-12-29 2020-01-31 武汉长光科技有限公司 EPON precise loop detection method based on geographic information positioning
CN109391525A (en) * 2018-10-25 2019-02-26 锐捷网络股份有限公司 Loop localization method and device
CN112769667B (en) * 2021-01-14 2022-07-19 北京星网锐捷网络技术有限公司 Loop protection control method and device for multi-device cascade communication network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925434A (en) * 2005-08-29 2007-03-07 中兴通讯股份有限公司 Method for detecting user side loop in digital user line switch-in multiplexer system
CN101197648A (en) * 2008-01-02 2008-06-11 中兴通讯股份有限公司 Self-loop detection method and device used for access network
CN101242315A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Loop detection method
US7558205B1 (en) * 2003-08-01 2009-07-07 Foundry Networks, Inc. System and method for detecting and isolating a remote loop

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7466815B2 (en) * 2003-06-27 2008-12-16 Tekelec Methods and systems for detecting and preventing signaling connection control part (SCCP) looping
JP2006033275A (en) * 2004-07-14 2006-02-02 Fujitsu Ltd Loop frame detector and loop frame detection method
JP4704120B2 (en) * 2005-06-13 2011-06-15 富士通株式会社 Network failure detection apparatus and network failure detection method
CN101170462A (en) * 2007-12-07 2008-04-30 杭州华三通信技术有限公司 Downlink loop detection method and device for tree network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7558205B1 (en) * 2003-08-01 2009-07-07 Foundry Networks, Inc. System and method for detecting and isolating a remote loop
CN1925434A (en) * 2005-08-29 2007-03-07 中兴通讯股份有限公司 Method for detecting user side loop in digital user line switch-in multiplexer system
CN101197648A (en) * 2008-01-02 2008-06-11 中兴通讯股份有限公司 Self-loop detection method and device used for access network
CN101242315A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Loop detection method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《MPLS中一种环路检测方法的研究》;侯睿 等;《光通信研究》;20050331(第3期);第14-16页 *

Also Published As

Publication number Publication date
CN101674206A (en) 2010-03-17

Similar Documents

Publication Publication Date Title
CN101674206B (en) Loop detection method and network equipment
CN101242315B (en) Loop detection method
WO2017092400A1 (en) Failure recovery method and device, controller, and software defined network
CN105700510A (en) Error variance detection method of CAN communication system and the CAN communication system
CN101114989A (en) Method for processing three-layer ethernet switchboard direct connection host computer routing
CN106878164A (en) A kind of message transmitting method and device
CN104301743A (en) Method for transmitting video, gateway device and video transmitting system
CN103516612A (en) Method for generating routing table items in a distributed router, and distributed router
JP2016116132A (en) Communication control device, communication control method, and communication control program
RU2008131946A (en) METHOD AND DEVICE FOR PERFORMING TRANSMISSION USING SUBNET NETWORK SERVICES
CN104038366B (en) Clustered node abatement detecting method and system
CN105765909A (en) Link switching method and device
CN103636168B (en) A kind of method of fault recovery, node and path-calculating element
CN101127580B (en) Node device, control device, and control method
CN107395271A (en) The method and system of fiber link UNICOM state instruction
CN105474587A (en) Data packet sending method and apparatus
CN115242839B (en) Method and device for cascade data transmission of Internet of things, electronic equipment and storage medium
CN106385362B (en) A kind of unsupported proportional routing switching method and device
CN109979149A (en) A kind of alarm interlink warning method and system
EP3869739B1 (en) Method for monitoring apparatus
CN104301806A (en) Video recognition method, device and system
KR101068716B1 (en) Method for tracebacking packet sensor network
CN102740390B (en) Machine-to-machine/man (M2M) system and communication method thereof, M2M platform and terminal
JP5287373B2 (en) Communication device and communication processing method
CN105022666A (en) Method, device and system for controlling MapReduce task scheduling

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant