CN101674206A - Loop detection method and network equipment - Google Patents
Loop detection method and network equipment Download PDFInfo
- Publication number
- CN101674206A CN101674206A CN200910205521A CN200910205521A CN101674206A CN 101674206 A CN101674206 A CN 101674206A CN 200910205521 A CN200910205521 A CN 200910205521A CN 200910205521 A CN200910205521 A CN 200910205521A CN 101674206 A CN101674206 A CN 101674206A
- Authority
- CN
- China
- Prior art keywords
- loop detection
- detection message
- loop
- message
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
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 messageequipment 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
Technical field
The present invention relates to the data communication field, relate in particular 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 the network is more and more difficult to be eliminated and the location.After network produces the loop phenomenon, the lighter's MAC address learning mistake, the user can not normally surf the Net; Network storm takes place in weight person, causes large-area network paralysis.The network maintenance staff wishes the detailed as far as possible particular location that network intermediate ring road phenomenon produces of knowing urgently, so that in time take effective solution to handle.The basic principle of loop detection is: equipment sends a message, if the intact port from then on of this message receives, or only increases a Tag head, illustrates that then there is loop in the networking network under this equipment.Concrete, can initially not send person's field and monitor state by in message, adding, detect the loop phenomenon in the network, and will go up second line of a couplet port and be used as second line of a couplet link respectively and solve this problem.
State in realization in the process of detection loop, there are the following problems:
Conventional detection can only detect the loop phenomenon, can't locate the position that loop takes place.
Summary of the invention
The invention provides a kind of loop detecting method and the network equipment, solved the problem that to locate the loop occurrence positions.
A kind of loop detecting method comprises:
Receive the loop detection message that lower floor's equipment sends, judge the detecting pattern of this loop detection message;
Send the loop detection message of not striding layer detecting pattern that described loop detection message is if receive lower floor's equipment, detect the discriminating territory field of this loop detection message;
If when the discriminating territory field of the discriminating territory of described loop detection message field and local storage is identical, then think the generation loop;
The message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is 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 lower floor equipment sends is the loop detection message of striding layer detecting pattern, detects the discriminating territory field of this loop detection message, and compare with the authentication field of this locality storage;
If comparative result is different, then the discriminating territory field of storing with this locality is replaced the discriminating territory field in this loop detection message, and amended loop detection message is transmitted to all of the port; Or,
If comparative result is identical, then think the generation loop, the message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is 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 not striding layer detecting pattern that described loop detection message is is replaced discriminating territory field in this loop detection message with the discriminating territory field of local storage;
Amended loop detection message is transmitted 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 striding layer detecting pattern, detects the discriminating territory field of this loop detection message, and compare with the authentication field of this locality storage;
If comparative result is different, then the discriminating territory field of storing with this locality is replaced the discriminating territory field in this loop detection message, and amended loop detection message is transmitted to all of the port; Or,
If comparative result is identical, then think the generation loop, the message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is to described message original equipment report and alarm information and loop position.
Further, described loop detecting method also comprises:
Receive the loop detection message that sends with layer equipment, judge the detecting pattern of this loop detection message;
If described loop detection message judges for not striding the loop detection message of layer detecting pattern 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 relatively more local storage is identical with the discriminating territory field of this loop detection message;
If for not simultaneously, then the discriminating territory field of storing with this locality is replaced the discriminating territory field in this loop detection message, and amended loop detection message is transmitted to all of the port at comparative result; Or,
If at comparative result when being identical, then think the generation loop, the message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is to described message original equipment report and alarm information and loop position.
Further, describedly judge that whether this equipment be after the step of this loop detection the highest middle-level equipment, also comprises:
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 described loop detection message that sends with layer equipment is the loop detection message of striding layer detecting pattern, then abandon described loop detection message.
Further, described loop detection message carries the detecting pattern field, and it is the loop detection message of not striding the loop detection message of layer detecting pattern or striding layer detecting pattern that the described detecting pattern field information of carrying is indicated described loop detection message.
A kind of network equipment comprises:
Mode selection module is used for when receiving loop detection message, according to the detecting pattern field of loop detection message, selects not stride layer detecting pattern or stride a layer detecting pattern;
Do not stride the layer model processing module, be used for when described mode selection module selects not stride layer detecting pattern, receiving loop detection message, detect according to this loop detection message whether loop takes place, and definite loop position and report and alarm information;
Stride the layer model processing module, be used for when selecting to stride layer detecting pattern at described mode selection module, receiving loop detection message, detect according to this loop detection message whether loop takes place, and definite loop position and report and alarm information.
Further, the described layer model processing module of not striding comprises:
The direction judging unit is used to judge the sending direction of the loop detection message of reception, comprises that upper layer device sends, lower floor's equipment sends and sends with layer equipment;
Message is revised the unit, is used for when receiving the loop detection message that upper layer device sends, and replaces discriminating territory field in this loop detection message with local discriminating territory field of storing; Or,
In the discriminating territory field of the discriminating territory field that receives the loop detection message that sends with layer equipment and local storage and this loop detection message not simultaneously, the discriminating territory field of storing with this locality is not replaced the discriminating territory field in this loop detection message;
The message retransmission unit is used for transmitting described message to all of the port and revises the amended loop detection message in unit;
Alarm Unit, be used for when receiving the loop detection message of lower floor's equipment or layer equipment transmission together, if the discriminating territory field of described loop detection message is identical with the discriminating territory field of local storage, the message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is to described message original equipment report and alarm information and loop position;
The packet loss unit is used for abandoning described loop detection message when receiving the loop detection message that sends with layer equipment and present networks equipment for the middle-level the highest equipment of this loop detection.
Further, the described layer model processing module of striding comprises:
The direction judging unit is used to judge the sending direction of the loop detection message of reception, comprises that upper layer device sends, lower floor's equipment sends and sends with layer equipment;
Message is revised the unit, be used for receiving the loop detection message that upper layer device or lower floor's equipment send, and the discriminating territory field of local storage and the discriminating territory field of this loop detection message are not simultaneously, and the discriminating territory field of storing with this locality is replaced the discriminating territory field in this loop detection message;
The message retransmission unit is used for transmitting described message to all of the port and revises the amended loop detection message in unit;
Alarm Unit, be used for receiving the loop detection message that upper layer device or lower floor's equipment send, and the discriminating territory field of local storage and the discriminating territory field of this loop detection message are not simultaneously, the message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is to described message original equipment report and alarm information and loop position;
The packet loss unit is used for abandoning described loop detection message when receiving the loop detection message that sends with layer equipment.
Embodiments of the invention provide a kind of loop detecting method and the network equipment, support not stride layer and stride a layer detecting pattern, when having the network equipment to initiate loop detection, each network equipment that makes progress the detection side all carries out loop detection, the discriminating territory field of the loop detection message that receives by modification generates the loop detection message of self, when determining to produce loop, generate warning information, and according to the identification field of initially giving out a contract for a project in the loop detection message, report described warning information and loop position to the message original equipment of initiating loop detection, solved the problem that to locate the loop occurrence positions.
Description of drawings
Fig. 1 is a kind of network environment structural representation that needs loop detection;
Fig. 2 needs the network environment structural representation of loop detection for another;
Fig. 3 is the form schematic diagram of the loop detection message of 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 not for striding the structural representation of layer model processing module 602 among Fig. 6;
Fig. 8 is for striding the structural representation of layer model processing module 603 among Fig. 6.
Embodiment
In network environment shown in Figure 1, can only realize detection by in message, adding the method initially do not send person's field and monitor state, and can not locate the loop of upper layer network equipment by lower floor's network equipment from upper layer network equipment to lower floor's network equipment; In network environment as shown in Figure 2, access layer equipment connects with cascade form, and being provided with cumbersome of last second line of a couplet link is unfavorable for the location to the loop phenomenon.
In order to solve the problem that can't locate the loop position, embodiments of the invention provide a kind of loop detecting method.
Fig. 3 is the form of the loop detection message that uses in the embodiment of the invention of the present invention, and wherein, purpose MAC field is ff ff ff ff ff ff, i.e. indication receives the network equipment of this loop detection message and transmits this message to all of the port; Frame type field illustrates that this message is a loop detection message; The flag bit of initially giving out a contract for a project is 1bit, be used for marking whether to have enabled the person that initially do not give out a contract for a project, 1 represents the person that enabled initially not give out a contract for a project (if enabled 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 the identification field of initially giving out a contract for a project); The detecting pattern field is 2bit, the loop type that this loop detection message of finger formula is detected, promptly striding layer (layer) detects or detects with layer, in the embodiments of the invention, when the detecting pattern field value is 0, adopt and do not stride a layer detecting pattern, promptly only detect with layer and lower floor's network whether have loop, when the detecting pattern field value is 1, adopt and stride a layer detecting pattern, promptly detect the upper strata and whether lower floor's network exists loop; The layer field is 5bit, is used for identifying the layer at the network equipment place that sends loop detection message, is disposed before the initiation loop detection by the user, and default value is 1; The identification field of initially giving out a contract for a project, the identification field of initially giving out a contract for a project are used for the sign person that initially do not give out a contract for a project, and are 16 bytes, and 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 that receives this detection messages does not process this field.
In network environment shown in Figure 2, use process that loop detecting method that embodiments of the invention one provide carries out detection and location to the loop phenomenon as shown in Figure 4, comprising:
In this step, the network equipment periodically produces loop detection message according to the instruction that is preset in the equipment; Or receive outside indication, and carry out loop detection as user's indication, generate loop detection message according to this indication, initiate one and take turns loop detection.
Core layer equipment, convergence-level equipment and access layer equipment can be initiated loop detection, and in each network equipment the information of all in store this network equipment layer of living in network, this information can be carried out equipment according to actual needs by the network maintenance staff.Generally speaking, layer information is a 5bit number, and the value of layer information is big more, and then the level of the Dui Ying network equipment in network is low more.
In the embodiment of the invention, initiate loop detection with convergence-level equipment, the loop detection (being that the detecting pattern field is 0) of not striding under layer detecting pattern describes for example.In the loop detection message that convergence-level equipment generates, the flag bit of initially giving out a contract for a project is 1, and expression has enabled the person that initially do not give out a contract for a project; The identification field of initially giving out a contract for a project is carried this convergence-level equipment mark, differentiates the discriminating territory field contents that carries this convergence-level equipment in the field of territory, differentiates that the information that the territory field is carried can generate in the following way: limit a character string; Character string is encrypted; The information of character string for differentiating that the territory field is carried after the encryption is set.
After convergence-level equipment generates loop detection message, send this loop detection message 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 downstream network separately, promptly one take turns the loop detection that comprises at least in the loop detection a network equipment downstream network.
In this step, the network equipment receives loop detection message, and according to the frame type that carries in this loop detection message, learns that this message is a 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, and flag bit is 1 if this is initially given out a contract for a project, and illustrates to have enabled the person that initially do not give out a contract for a project.
In this step, the network equipment that receives loop detection message is checked the layer field (P_Layer) in the loop detection message, and the layer information (S_Layer) of content in this layer field and present networks equipment is compared.If S_Layer>P_Layer illustrates that the level of transmit leg in network of the loop detection message that the network equipment receives is lower than present networks equipment, enter step 404.
If S_Layer equates with P_Layer, illustrate that the network equipment and the present networks equipment that send loop detection message are in the same level, in actual networking, there are many equipment to be in same rank, as the Access Layer among Fig. 2, to this situation, the layer of transmitting apparatus and the layer of receiving equipment equate.Also need further judge whether the S_Layer of the network equipment equals 1 this moment, judges that promptly whether the network equipment is the top equipment in this loop detection.If S_Layer equals 1, enter step 405; Otherwise, enter step 406.
In this step, when the network equipment level that sends loop detection message is higher than present networks equipment when P_Layer (S_Layer>), P_Layer in this loop detection message of present networks apparatus modifications and discriminating territory field, with the S_Layer of present networks equipment with differentiate the territory field as the new P_Layer of this loop detection message with differentiate the territory field, and transmit amended loop detection message to all of the port.
For the detecting pattern field is 0 loop detection, and loop detection message should down detect, and purpose mainly is the loop that is used for detecting downstream network device.Here, the network equipment is revised as the layer of present networks equipment with P_Layer, differentiates that the territory field replaces with the discriminating territory field of oneself, again encapsulated message and forwarding.Promptly produced a loop detection message, the network under the present networks equipment has been carried out loop detection by the present networks device initialize.
In addition, for the former loop detection message before revising, present networks equipment also needs this message to all of the port transparent transmission.
According to the distribution of step 403, when S_Layer equates with P_Layer and S_Layer when equaling 1, illustrate to have received the loop detection message that the network equipment with layer sends; Because the S_Layer of present networks equipment equals 1, illustrates that present networks equipment is the network equipment of highest level in the epicycle loop detection, and take turns in the loop detection one that having only a network equipment is highest level by equipment.So the time, need this loop detection message is abandoned.Can prevent the diffusion of loop detection message like this.For example, the user thinks that the control loop detection messages only transmits under certain convergence-level equipment, just the layer of this equipment can be configured to 1, and like this, the loop detection message that sends of convergence-level equipment will be discarded with layer equipment and upper layer device thus.
In this step, the network equipment judges further whether this loop detection message is the loop detection message that self sends, if not, illustrate to have received the loop detection message that sends by other network equipments, enter step 407; Otherwise, illustrate the loop phenomenon takes place, enter step 408.
Judge whether it is the loop detection message that self sends, specifically can differentiate that the territory field realizes by judging.If the discriminating territory field of the discriminating territory field of loop detection message and the network equipment is consistent, illustrate that the loop detection message of receiving is the message that this network equipment sends, and promptly exists loop under this network equipment.
Step 407, the network equipment are transmitted amended loop detection message after revising and differentiating the territory field;
In this step, if the result that step 406 is judged is that the discriminating territory field of the discriminating territory field of loop detection message and the network equipment is inconsistent, the loop detection message that is not that present networks equipment is sent is described, change the P_Layer of this loop detection message the layer of present networks equipment into, and will need this message is transmitted.
In this step, because there is loop in the network equipment that the network equipment detects under this port, so generate warning information based on the port that produces loop.
In this step, the network equipment is after step 408 generates warning information, further judge whether oneself is the original initiator of loop detection message, be specially 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 are compared, if it is consistent, think that then this loop detection message for the initiation of present networks equipment, enters step 411; Otherwise, enter step 410.
In this step, judged result according to step 409, when the network equipment detects self is not initial loop detection message promoter, determine initial promoter according to the information in the identification field of initially giving out a contract for a project, to the relevant information that this initial promoter's forwarding loop detects, comprise the position (detecting the downstream network of the network equipment of loop phenomenon) of loop generation etc.
The network equipment of step 411, initiation loop detection is printed the loop detection relevant information;
In this step, if it self is the initial promoter of loop detection message that the network equipment is judged, or receive the warning information that other network equipments report, the position that current loop phenomenon under the present networks equipment is described determines that the promoter of this message is that current network equipment has been known the definite position that produces the loop phenomenon, like this, this loop detection message is just no longer transmitted, at this moment, described loop detection finishes, and prints the relevant information of loop detection.
For step 403, as S_Layer during less than P_Layer, illustrate that the loop detection message that the network equipment receives is sent by its lower floor's network equipment, at this moment, if this message sends for present networks equipment, think that then this message has passed through the forwarding of lower floor's network equipment, have the loop phenomenon in lower floor's network, enter step 408 to the described flow process of step 411; If this loop detection message is not sent by present networks equipment, it for the detecting pattern field 0 loop detection, the network equipment is received the loop detection message that lower floor is transmitted, and the discriminating territory field of this message and the discriminating territory field of self are inconsistent, then this loop detection message are discarded.
Embodiments of the invention two also provide a kind of loop detecting method, can realize striding the loop detection of layer, idiographic flow as shown in Figure 5, wherein, the step 401 and 402 in step 501 and step 502 and the embodiments of the invention one is as good as, and does not repeat them here.
If, enter step 504, otherwise, step 505 entered.
In the embodiment of the invention, P_Layer and S_Layer are disposed by the user.For example the user only wants to detect certain port loop under the convergence-level equipment, then the layer field configuration of this equipment can be become 1.Like this, the loop detection message of transmitting by this network equipment can only be sent out in lower floor's network transfer of this network equipment.
If the layer with certain convergence-level equipment is configured to 1, with its network equipment and upper layer network equipment, this packet loss can be fallen when receiving this loop detection message so with layer, effectively prevented the diffusion of loop message.
If, enter step 506, otherwise, step 507 entered.
Step 506, the network equipment are transmitted amended loop detection message after revising P_Layer and differentiating the territory field;
In this step, because the detecting pattern field is 1, so the purpose that the loop message detects is striden layer, promptly it promptly can detect the loop of lower floor's network equipment, can detect the loop of upper layer network equipment again.When therefore the loop detection message of receiving when a network is not the loop detection message that self sends, should revises the P_Layer of this message and differentiate the territory field, transmit to all of the port then.
Step 507 to step 510 referring to the step 408 in the embodiment of the invention one to step 411.
Embodiments of the invention also provide a kind of network equipment, and this network equipment comprises as shown in Figure 6:
Do not stride layer model processing module 602, be used for when described mode selection module 601 selects not stride layer detecting pattern, receiving loop detection message, detect according to this loop detection message whether loop takes place, and definite loop position and report and alarm information;
Stride layer model processing module 603, be used for when selecting to stride layer detecting pattern at described mode selection module 601, receiving loop detection message, detect according to this loop detection message whether loop takes place, and definite loop position and report and alarm information.
Further, described structure of not striding layer model processing module 602 comprises as shown in Figure 7:
Message is revised unit 6022, is used for when receiving the loop detection message that upper layer device sends, and replaces discriminating territory field in this loop detection message with local discriminating territory field of storing; Or,
In the discriminating territory field of the discriminating territory field that receives the loop detection message that sends with layer equipment and local storage and this loop detection message not simultaneously, the discriminating territory field of storing with this locality is not replaced the discriminating territory field in this loop detection message;
Further, described structure of striding layer model processing module 603 comprises as shown in Figure 8:
Direction judging unit 6031 is used to judge the sending direction of the loop detection message of reception, comprises that upper layer device sends, lower floor's equipment sends and sends with layer equipment;
Message is revised unit 6032, be used for receiving the loop detection message that upper layer device or lower floor's equipment send, and the discriminating territory field of local storage and the discriminating territory field of this loop detection message are not simultaneously, and the discriminating territory field of storing with this locality is replaced the discriminating territory field in this loop detection message;
Message retransmission unit 6033 is used for transmitting described message to all of the port and revises the amended loop detection message in unit;
Alarm Unit 6034, be used for receiving the loop detection message that upper layer device or lower floor's equipment send, and the discriminating territory field of local storage and the discriminating territory field of this loop detection message are not simultaneously, the message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is to described message original equipment report and alarm information and loop position;
Packet loss unit 6035 is used for abandoning described loop detection message when receiving the loop detection message that sends with layer equipment.
The above-mentioned network equipment can combine with a kind of loop detecting method that embodiments of the invention provide, support not stride layer and stride a layer detecting pattern, when having the network equipment to initiate loop detection, each network equipment that makes progress the detection side all carries out loop detection, has realized the detection layer by layer under the network equipment of initial loop detection; The discriminating territory field of the loop detection message that receives by modification generates the loop detection message of self, when determining to produce loop, the network equipment generates warning information, and according to the identification field of initially giving out a contract for a project in the loop detection message, report described warning information and loop position to the message original equipment of initiating loop detection, the position that loop takes place is accurate under the minimum level network equipment of this loop ownership, has solved the problem that to locate the loop occurrence positions.
One of ordinary skill in the art will appreciate that and realize that all or part of step that the foregoing description method is carried is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises one of step or its combination of method embodiment when carrying out.
In addition, each functional unit in each embodiment of the present invention can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If described integrated module realizes with the form of software function module and during as independently production marketing or use, also can be stored in the computer read/write memory medium.
The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, 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 described protection range of claim.
Claims (11)
1, a kind of loop detecting method is characterized in that, comprising:
Receive the loop detection message that lower floor's equipment sends, judge the detecting pattern of this loop detection message;
Send the loop detection message of not striding layer detecting pattern that described loop detection message is if receive lower floor's equipment, detect the discriminating territory field of this loop detection message;
If when the discriminating territory field of the discriminating territory of described loop detection message field and local storage is identical, then think the generation loop;
The message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is 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:
If the loop detection message that described lower floor equipment sends is the loop detection message of striding layer detecting pattern, detects the discriminating territory field of this loop detection message, and compare with the authentication field of this locality storage;
If comparative result is different, then the discriminating territory field of storing with this locality is replaced the discriminating territory field in this loop detection message, and amended loop detection message is transmitted to all of the port; Or,
If comparative result is identical, then think the generation loop, the message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is to described message original equipment report and alarm information and loop position.
3, 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 the loop detection message of not striding layer detecting pattern that described loop detection message is is replaced discriminating territory field in this loop detection message with the discriminating territory field of local storage;
Amended loop detection message is transmitted to all of the port.
4, according to claim 1 or 3 described loop detecting methods, it is characterized in that, also comprise:
If the loop detection message that described upper layer device sends is the loop detection message of striding layer detecting pattern, detects the discriminating territory field of this loop detection message, and compare with the authentication field of this locality storage;
If comparative result is different, then the discriminating territory field of storing with this locality is replaced the discriminating territory field in this loop detection message, and amended loop detection message is transmitted to all of the port; Or,
If comparative result is identical, then think the generation loop, the message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is to described message original equipment report and alarm information and loop position.
5, loop detecting method according to claim 1 is characterized in that, also comprises:
Receive the loop detection message that sends with layer equipment, judge the detecting pattern of this loop detection message;
If described loop detection message judges for not striding the loop detection message of layer detecting pattern 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 relatively more local storage is identical with the discriminating territory field of this loop detection message;
If for not simultaneously, then the discriminating territory field of storing with this locality is replaced the discriminating territory field in this loop detection message, and amended loop detection message is transmitted to all of the port at comparative result; Or,
If at comparative result when being identical, then think the generation loop, the message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is to described message original equipment report and alarm information and loop position.
6, loop detecting method according to claim 5 is characterized in that, and is described, judges that whether this equipment be after the step of this loop detection the highest middle-level equipment, also comprises:
If this equipment is this loop detection the highest middle-level equipment, then abandon described loop detection message.
7, loop detecting method according to claim 1 or 5 is characterized in that, also comprises:
If the described loop detection message that sends with layer equipment is the loop detection message of striding layer detecting pattern, then abandon described loop detection message.
8, according to claim 1 to the described loop detecting method of claim 7, it is characterized in that, described loop detection message carries the detecting pattern field, and it is the loop detection message of not striding the loop detection message of layer detecting pattern or striding layer detecting pattern that the described detecting pattern field information of carrying is indicated described loop detection message.
9, a kind of network equipment is characterized in that, comprising:
Mode selection module is used for when receiving loop detection message, according to the detecting pattern field of loop detection message, selects not stride layer detecting pattern or stride a layer detecting pattern;
Do not stride the layer model processing module, be used for when described mode selection module selects not stride layer detecting pattern, receiving loop detection message, detect according to this loop detection message whether loop takes place, and definite loop position and report and alarm information;
Stride the layer model processing module, be used for when selecting to stride layer detecting pattern at described mode selection module, receiving loop detection message, detect according to this loop detection message whether loop takes place, and definite loop position and report and alarm information.
10, the network equipment according to claim 9 is characterized in that, the described layer model processing module of not striding comprises:
The direction judging unit is used to judge the sending direction of the loop detection message of reception, comprises that upper layer device sends, lower floor's equipment sends and sends with layer equipment;
Message is revised the unit, is used for when receiving the loop detection message that upper layer device sends, and replaces discriminating territory field in this loop detection message with local discriminating territory field of storing; Or,
In the discriminating territory field of the discriminating territory field that receives the loop detection message that sends with layer equipment and local storage and this loop detection message not simultaneously, the discriminating territory field of storing with this locality is not replaced the discriminating territory field in this loop detection message;
The message retransmission unit is used for transmitting described message to all of the port and revises the amended loop detection message in unit;
Alarm Unit, be used for when receiving the loop detection message of lower floor's equipment or layer equipment transmission together, if the discriminating territory field of described loop detection message is identical with the discriminating territory field of local storage, the message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is to described message original equipment report and alarm information and loop position;
The packet loss unit is used for abandoning described loop detection message when receiving the loop detection message that sends with layer equipment and present networks equipment for the middle-level the highest equipment of this loop detection.
11, the network equipment according to claim 9 is characterized in that, the described layer model processing module of striding comprises:
The direction judging unit is used to judge the sending direction of the loop detection message of reception, comprises that upper layer device sends, lower floor's equipment sends and sends with layer equipment;
Message is revised the unit, be used for receiving the loop detection message that upper layer device or lower floor's equipment send, and the discriminating territory field of local storage and the discriminating territory field of this loop detection message are not simultaneously, and the discriminating territory field of storing with this locality is replaced the discriminating territory field in this loop detection message;
The message retransmission unit is used for transmitting described message to all of the port and revises the amended loop detection message in unit;
Alarm Unit, be used for receiving the loop detection message that upper layer device or lower floor's equipment send, and the discriminating territory field of local storage and the discriminating territory field of this loop detection message are not simultaneously, the message original equipment information of carrying in the identification field of initially giving out a contract for a project according to described loop detection message is to described message original equipment report and alarm information and loop position;
The packet loss unit is used for abandoning described loop detection message when receiving the loop detection message that sends with layer equipment.
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 true CN101674206A (en) | 2010-03-17 |
CN101674206B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012071961A1 (en) * | 2010-11-29 | 2012-06-07 | 华为技术有限公司 | Method, device and system for processing loop in access network |
CN108123752A (en) * | 2017-12-29 | 2018-06-05 | 武汉长光科技有限公司 | A kind of EPON accurate loop detection methods based on geography information positioning |
CN109391525A (en) * | 2018-10-25 | 2019-02-26 | 锐捷网络股份有限公司 | Loop localization method and device |
CN112769667A (en) * | 2021-01-14 | 2021-05-07 | 北京星网锐捷网络技术有限公司 | Loop protection control method and device for multi-device cascade communication network |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040264675A1 (en) * | 2003-06-27 | 2004-12-30 | Tekelec | Methods and systems for detecting and preventing signaling connection control part (SCCP) looping |
US20060013141A1 (en) * | 2004-07-14 | 2006-01-19 | Fujitsu Limited | Loop frame detecting device and method for detecting loop frame |
US20070014232A1 (en) * | 2005-06-13 | 2007-01-18 | Fujitsu Limited | Apparatus and method for detecting network failure |
CN1925434A (en) * | 2005-08-29 | 2007-03-07 | 中兴通讯股份有限公司 | Method for detecting user side loop in digital user line switch-in multiplexer system |
CN101170462A (en) * | 2007-12-07 | 2008-04-30 | 杭州华三通信技术有限公司 | Downlink loop detection method and device for tree network |
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 |
-
2009
- 2009-10-20 CN CN200910205521.XA patent/CN101674206B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040264675A1 (en) * | 2003-06-27 | 2004-12-30 | Tekelec | Methods and systems for detecting and preventing signaling connection control part (SCCP) looping |
US7558205B1 (en) * | 2003-08-01 | 2009-07-07 | Foundry Networks, Inc. | System and method for detecting and isolating a remote loop |
US20090225668A1 (en) * | 2003-08-01 | 2009-09-10 | Jordi Moncada-Elias | System and Method For Detecting And Isolating A Remote Loop |
US20060013141A1 (en) * | 2004-07-14 | 2006-01-19 | Fujitsu Limited | Loop frame detecting device and method for detecting loop frame |
US20070014232A1 (en) * | 2005-06-13 | 2007-01-18 | Fujitsu Limited | Apparatus and method for detecting network failure |
CN1925434A (en) * | 2005-08-29 | 2007-03-07 | 中兴通讯股份有限公司 | Method for detecting user side loop in digital user line switch-in multiplexer system |
CN101170462A (en) * | 2007-12-07 | 2008-04-30 | 杭州华三通信技术有限公司 | Downlink loop detection method and device for tree network |
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 (3)
Title |
---|
B.CAMPEN: "《An Efficient Loop Detection Algorithm for SIP Proxies draft-campen sipping stack loop detect-00》", 《IETF DRAFT》 * |
K.MASE 等: "《Loop Detection for MANET draft-mase-manet-loopdetect-00》", 《IETF DRAFT》 * |
侯睿 等: "《MPLS中一种环路检测方法的研究》", 《光通信研究》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012071961A1 (en) * | 2010-11-29 | 2012-06-07 | 华为技术有限公司 | Method, device and system for processing loop in access network |
CN108123752A (en) * | 2017-12-29 | 2018-06-05 | 武汉长光科技有限公司 | A kind of EPON accurate loop detection methods based on geography information positioning |
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 |
CN112769667A (en) * | 2021-01-14 | 2021-05-07 | 北京星网锐捷网络技术有限公司 | Loop protection control method and device for multi-device cascade communication network |
Also Published As
Publication number | Publication date |
---|---|
CN101674206B (en) | 2015-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102866971B (en) | Device, the system and method for transmission data | |
CN101242315B (en) | Loop detection method | |
CN101197648B (en) | Self-loop detection method and device used for access network | |
CN103227747B (en) | High density trustship for messaging service | |
CN101674206A (en) | Loop detection method and network equipment | |
CN105700510A (en) | Error variance detection method of CAN communication system and the CAN communication system | |
CN106878164A (en) | A kind of message transmitting method and device | |
CN107148069A (en) | The MANET and low power consumption data of a kind of tree-shaped sensor network collect method | |
WO2010106390A8 (en) | Optimized redirection for network architectures | |
WO2009126008A3 (en) | Device for recording and playing contents, sever for managing content location information, information recording medium, method for managing content information | |
JP2007135170A5 (en) | ||
JP4213749B2 (en) | Function management device | |
CN109495383A (en) | A kind of data processing method, device, communication system and the network equipment | |
CN106921670A (en) | A kind of method and device for acting on behalf of detection | |
RU2008131946A (en) | METHOD AND DEVICE FOR PERFORMING TRANSMISSION USING SUBNET NETWORK SERVICES | |
CN104038366B (en) | Clustered node abatement detecting method and system | |
US9024728B2 (en) | Remote activating device | |
CN102236571B (en) | Data card upgrading method, personal computer and data card | |
CN106604316A (en) | Wireless access equipment fault positioning method, device and system | |
CN101127580B (en) | Node device, control device, and control method | |
CN105721190A (en) | Data transmission path fault detection method and device, and server | |
CN103636168B (en) | A kind of method of fault recovery, node and path-calculating element | |
CN103973466B (en) | A kind of method and device waking up suspend mode link | |
CN106612303A (en) | Data processing method and data processing device | |
CN106274805A (en) | Automotive electronic key and method, automobile controller and method thereof and system |
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 |