CN112769667A - Loop protection control method and device for multi-device cascade communication network - Google Patents

Loop protection control method and device for multi-device cascade communication network Download PDF

Info

Publication number
CN112769667A
CN112769667A CN202110046737.7A CN202110046737A CN112769667A CN 112769667 A CN112769667 A CN 112769667A CN 202110046737 A CN202110046737 A CN 202110046737A CN 112769667 A CN112769667 A CN 112769667A
Authority
CN
China
Prior art keywords
time
loop
loop detection
detection message
received
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110046737.7A
Other languages
Chinese (zh)
Other versions
CN112769667B (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.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN202110046737.7A priority Critical patent/CN112769667B/en
Publication of CN112769667A publication Critical patent/CN112769667A/en
Application granted granted Critical
Publication of CN112769667B publication Critical patent/CN112769667B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a loop protection control method of a multi-device cascade communication network, which is applied to a core switch and comprises the following steps: when receiving a loop detection message sent by the user, judging whether the loop detection message is received for the first time; when the loop detection message is received for the first time, recording the first moment of receiving the loop detection message, and simultaneously keeping the loop protection function not to be effective; when the loop detection message is not received for the first time, judging whether the time interval between the second moment and the first moment of receiving the loop detection message at this time is greater than preset inhibition time or not; and when the time interval is greater than the preset inhibition time, the loop protection function is effective. The embodiment of the invention can solve the problem that the influence range of the abnormal loop of the downlink equipment of the multi-equipment cascade communication network is enlarged in the prior art.

Description

Loop protection control method and device for multi-device cascade communication network
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for controlling loop protection in a multi-device cascade communication network.
Background
A fast Link Detection Protocol (RLDP) is an ethernet Link failure Detection Protocol for rapidly detecting a unidirectional Link failure, a bidirectional Link failure, and a downlink loop failure. If the fault exists, the RLDP automatically closes or informs a user to manually close the relevant port according to a fault processing mode configured by the user so as to avoid the wrong forwarding of the traffic or prevent the Ethernet two-layer loop.
However, the downstream environment of the switch in the data center network is usually not controllable, such as the downstream access device of the aggregation switch, which causes a loop due to misoperation; as well as downstream ports of an access switch, loops are often created for various reasons; under these circumstances, data packet flooding in the downlink loop environment occurs, which may cause the whole network to be broken down. Thus, deploying RLDP may serve to prevent downlink loops.
The RLDP loop detection mode is that the exchanger sends out loop detection messages at regular time, and if the interface for starting loop detection receives the loop detection messages sent by the local machine, the environment has a loop. In the multi-device cascade communication network environment shown in fig. 1, the network includes a core Switch a, a convergence Switch B, an access Switch C, a Switch-A, Switch-B, and a Switch C, which are interconnected, where both Switch a and Switch B open an RLDP loop detection and loop protection policy (e.g., a shutdown interface), and Switch C appears as an access Switch in a lower interface 1 and an interface 3. In such a scenario, it may happen that Switch a takes effect of the loop protection policy on Switch a interface 1 before Switch B detects a loop, resulting in a network outage of Switch B and the downstream Switch c. The specific process is as follows:
in the network topology shown in fig. 1, the time when the interface 1 of Switch a sends the loop detection packet out is t1, the time when the interface 1 receives the loop detection packet sent by itself is t4, the time when the interface 2 of Switch B sends the loop detection packet out is t2, and the time when the interface 2 on Switch B receives the loop detection packet sent by Switch B is t 3.
Because Switch a and Switch b both send loop detection messages at respective timing, the sequence of t1 and t2 cannot be guaranteed. Therefore, the time t4 when the Switch a downlink interface 1 receives the ring detection message sent by itself may occur earlier than the time t3 when the Switch B uplink interface 2 receives the ring detection message sent by the Switch B. At this time, the loop protection policy configured on the downlink interface 1 of Switch a takes effect to down the interface 1, the link of Switch B interconnecting Switch a is disconnected, and the networks of Switch B and Switch C are also affected and interrupted, so that the network influence range of the abnormal loop is expanded, and even the normal operation of the service is seriously affected.
Disclosure of Invention
The embodiment of the invention provides a loop control method and a loop control device for a multi-device cascade communication network, which are used for solving the problem of enlarging the influence range of abnormal loops of a downlink device of the multi-device cascade communication network in the prior art.
According to an embodiment of the present invention, a method for controlling loop protection of a multi-device cascade communication network is provided, where the method is applied to a multi-device cascade communication network including a core switch, a convergence switch, and an access switch, where the multi-device cascade communication network is deployed with a loop protection function, and the method is applied to the core switch, and includes:
when receiving a loop detection message sent by the user, judging whether the loop detection message is received for the first time;
when the loop detection message is received for the first time, recording the first moment of receiving the loop detection message, and simultaneously keeping the loop protection function not to be effective;
when the loop detection message is not received for the first time, judging whether the time interval between the second moment and the first moment of receiving the loop detection message at this time is greater than preset inhibition time or not;
and when the time interval is greater than the preset inhibition time, the loop protection function is effective.
Optionally, the method further comprises:
and when the time interval is not greater than the preset inhibition time, continuing to keep the loop protection function from being effective.
Preferably, after the loop guard function is activated, the method further comprises:
clearing the recorded first time.
Wherein the determining whether the loop detection packet is received for the first time includes:
judging whether a first moment of receiving the loop detection message exists or not;
if the first moment exists, the loop detection message is not received for the first time;
and if the first time does not exist, receiving the loop detection message for the first time.
According to an embodiment of the present invention, there is also provided a loop protection control apparatus for a multiple device cascade communication network, the apparatus is suitable for a multiple device cascade communication network including a core switch, a convergence switch, and an access switch, the multiple device cascade communication network is deployed with a loop protection function, and the apparatus is applied to the core switch, and includes: the device comprises a judgment module, a first processing module, a second processing module and a third processing module; wherein the content of the first and second substances,
the judging module is used for judging whether the loop detection message is received for the first time when the loop detection message sent by the judging module is received;
the first processing module is configured to record a first time when the loop detection packet is received for the first time, and keep the loop protection function from being effective at the same time;
the second processing module is configured to, when the loop detection packet is not received for the first time, determine whether a time interval between a second time when the loop detection packet is received this time and the first time is greater than a preset suppression time;
and the third processing module is configured to take the loop protection function into effect when the time interval is greater than the preset suppression time.
And the third processing module is further configured to continue to keep the loop protection function from being effective when the time interval is not greater than the preset suppression time.
The device further comprises a clearing module for clearing the recorded first time after the loop protection function is effective.
The judging module is specifically configured to judge whether there is a first moment when the loop detection packet is received; if the first moment exists, the loop detection message is not received for the first time; and if the first time does not exist, receiving the loop detection message for the first time.
According to the embodiment of the invention, the electronic equipment comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the above method steps when executing the program stored in the memory.
According to an embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein a computer program, which when executed by a processor, performs the above-mentioned method steps.
The invention has the following beneficial effects:
according to the loop protection control method and device for the multi-device cascade communication network, provided by the embodiment of the invention, when a core switch receives a loop detection message sent by the core switch, whether the loop detection message is received for the first time is judged; when the loop detection message is received for the first time, recording the first moment of receiving the loop detection message, and simultaneously keeping the loop protection function not to be effective; when the loop detection message is received again, judging whether the time interval between the second moment and the first moment of receiving the loop detection message is greater than preset inhibition time or not; and when the time interval is greater than the preset inhibition time, the loop protection function is effective. In the multi-device cascade communication network in the embodiment of the invention, the core switch, the aggregation switch and the access switch are all pre-deployed with loop detection and loop protection functions, when the core switch receives the loop detection message sent by itself for the first time, the loop protection function is not immediately activated, but the loop protection function is only activated when the loop detection message is received again after a preset inhibition time, thus solving the problem that in the multi-equipment cascade communication network environment, if the access equipment connected downstream has a loop, under the condition of not forbidding the loop protection function of the upper core switch, the condition that the core switch detects the loop before the aggregation switch connected with the lower core switch to cause the network interruption of the aggregation switch can be avoided, the further expansion of the influence of the abnormal loop is prevented, and the normal operation of the network on the aggregation switch is ensured.
Drawings
Fig. 1 is a schematic network topology diagram of a multi-device cascade communication network according to an embodiment of the present invention;
fig. 2 is a flowchart of a loop protection control method of a multi-device cascade communication network according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a loop protection control apparatus of a multi-device cascade communication network according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device shown in the present application.
Detailed Description
Aiming at the problem that the influence range of abnormal loops of the lower connection equipment of the multi-equipment cascade communication network is expanded in the prior art, in the multi-equipment cascade communication network in the embodiment of the invention, the core switch, the aggregation switch and the access switch are all pre-deployed with loop detection and loop protection functions, when the abnormal loops occur in the access switch, the core switch may send a loop detection message before the aggregation switch, namely, the core switch detects the loops on the access switch before the aggregation switch, and the problem that the interface of the lower connection aggregation switch of the core switch is down so as to influence the network occurs. In order to enable the aggregation switch to preferentially detect the loop and break the loop, when the core switch receives the loop detection message sent by the core switch for the first time, the loop protection function is not immediately enabled, but the loop protection function is enabled only when the core switch receives the loop detection message again after a preset inhibition time. The flow of the loop protection control method for the multi-device cascade communication network provided by the embodiment of the invention is shown in fig. 2, and the method is applied to a core switch and comprises the following steps:
step 101, when receiving a loop detection message sent by the user, judging whether the loop detection message is received for the first time;
in the embodiment of the invention, a core switch in a multi-device cascade communication network is pre-deployed with a loop protection function, the core switch is interconnected with a convergence switch through an interface 1, the core switch can periodically send a loop detection message of RLDP outwards, when a loop exists in a downlink device, the loop detection message sent by the core switch can be sent back to the core switch, therefore, when the core switch receives the loop detection message sent by the core switch, the downlink link of the interface 1 of the core switch appears a loop, and at the moment, the core switch can judge whether the loop detection message is received for the first time.
102, when the loop detection message is received for the first time, recording the first moment of receiving the loop detection message, and simultaneously keeping the loop protection function not to be effective;
in this step, if the core switch determines that the loop detection message is received for the first time, recording the time when the loop detection message is received, and recording as the first time for convenient expression;
since the loop detection message is received for the first time, the pre-deployed loop protection function is temporarily not enabled, for example, if the pre-deployed loop protection function is to drop the interface on which the loop appears, the interface on which the loop appears is still maintained at this time.
103, judging whether the time interval between the second moment and the first moment of receiving the loop detection message is greater than a preset inhibition time or not when the loop detection message is not received for the first time;
here, when the loop detection message is received, it may be determined whether a first time is recorded, and if the first time is recorded, it indicates that the loop detection message is not received for the first time, and then a time interval between the time (for convenience, it is recorded as a second time) at which the loop detection message is received and the first time is determined, and it is determined whether the time interval is greater than a preset suppression time. Here, the duration of the preset suppression time is sufficient for the convergence switch to detect and activate the loop protection function.
And 104, when the time interval is greater than the preset inhibition time, taking the loop protection function into effect.
Here, when the time interval is greater than the preset suppression time and the loop detection message is still received, it indicates that the aggregation switch still cannot detect the loop and does not start the loop protection function within the preset suppression time range, so the loop protection function of the core switch needs to be validated to prevent an abnormal loop.
Optionally, the method further comprises:
and when the time interval is not greater than the preset inhibition time, continuing to keep the loop protection function from being effective. Note that in this step, the second time when the loop detection packet is received again is not recorded, but only the first time when the loop detection packet is received for the first time is recorded.
Optionally, after the loop guard function is activated, the method further includes:
clearing the recorded first time.
Wherein the determining whether the loop detection packet is received for the first time includes:
judging whether a first moment of receiving the loop detection message exists or not;
if the first moment exists, the loop detection message is not received for the first time;
and if the first time does not exist, receiving the loop detection message for the first time.
It should be understood that the embodiment of the present invention may also be implemented by starting a suppression time timer, that is, a timer is preset, where the duration of the timer is a preset suppression time, when a loop detection message is received for the first time, the suppression time timer is started, when a loop detection message is received again, whether the suppression time timer is up is determined, if so, a loop protection function is activated and the suppression time timer is initialized, otherwise, the loop protection function is not activated.
In the method for controlling loop protection of a multi-device cascade communication network provided by the embodiment of the invention, when a core switch receives a loop detection message sent by the core switch, whether the loop detection message is received for the first time is judged; when the loop detection message is received for the first time, recording the first moment of receiving the loop detection message, and simultaneously keeping the loop protection function not to be effective; when the loop detection message is received again, judging whether the time interval between the second moment and the first moment of receiving the loop detection message is greater than preset inhibition time or not; and when the time interval is greater than the preset inhibition time, the loop protection function is effective. In the multi-device cascade communication network in the embodiment of the invention, the core switch, the aggregation switch and the access switch are all pre-deployed with loop detection and loop protection functions, when the core switch receives the loop detection message sent by itself for the first time, the loop protection function is not immediately activated, but the loop protection function is only activated when the loop detection message is received again after a preset inhibition time, thus solving the problem that in the multi-equipment cascade communication network environment, if the access equipment connected downstream has a loop, under the condition of not forbidding the loop protection function of the upper core switch, the condition that the core switch detects the loop before the aggregation switch connected with the lower core switch to cause the network interruption of the aggregation switch can be avoided, the further expansion of the influence of the abnormal loop is prevented, and the normal operation of the network on the aggregation switch is ensured.
Based on the same inventive concept, an embodiment of the present invention provides a loop protection control apparatus for a multi-device cascade communication network, where the apparatus is applicable to a multi-device cascade communication network including a core switch, a convergence switch, and an access switch, and the multi-device cascade communication network is deployed with a loop protection function, and the apparatus may be applied to the core switch, and has a structure as shown in fig. 3, where the apparatus includes: a judgment module 31, a first processing module 32, a second processing module 33 and a third processing module 34; wherein the content of the first and second substances,
the judging module 31 is configured to, when receiving a loop detection message sent by the judging module, judge whether the loop detection message is received for the first time;
the first processing module 32 is configured to record a first time of receiving the loop detection packet when the loop detection packet is received for the first time, and keep the loop protection function from being valid at the same time;
the second processing module 33 is configured to, when the loop detection packet is not received for the first time, determine whether a time interval between a second time when the loop detection packet is received this time and the first time is greater than a preset suppression time;
the third processing module 34 is configured to take the loop protection function into effect when the time interval is greater than the preset suppression time.
Further, the third processing module 34 is further configured to, when the time interval is not greater than the preset suppression time, continue to keep the loop guard function from being enabled.
Further, the apparatus further includes a clearing module configured to clear the first recorded time after the loop guard function is enabled.
Further, the determining module 31 is specifically configured to determine whether there is a first time when the loop detection packet is received; if the first moment exists, the loop detection message is not received for the first time; and if the first time does not exist, receiving the loop detection message for the first time.
It should be understood that the implementation principle and the process of the loop protection control apparatus of the multi-device cascade communication network according to the embodiment of the present invention are similar to those of the above-mentioned embodiment shown in fig. 2, and are not described herein again.
According to the loop protection control method and device for the multi-device cascade communication network, provided by the embodiment of the invention, when a core switch receives a loop detection message sent by the core switch, whether the loop detection message is received for the first time is judged; when the loop detection message is received for the first time, recording the first moment of receiving the loop detection message, and simultaneously keeping the loop protection function not to be effective; when the loop detection message is received again, judging whether the time interval between the second moment and the first moment of receiving the loop detection message is greater than preset inhibition time or not; and when the time interval is greater than the preset inhibition time, the loop protection function is effective. In the multi-device cascade communication network in the embodiment of the invention, the core switch, the aggregation switch and the access switch are all pre-deployed with loop detection and loop protection functions, when the core switch receives the loop detection message sent by itself for the first time, the loop protection function is not immediately activated, but the loop protection function is only activated when the loop detection message is received again after a preset inhibition time, thus solving the problem that in the multi-equipment cascade communication network environment, if the access equipment connected downstream has a loop, under the condition of not forbidding the loop protection function of the upper core switch, the condition that the core switch detects the loop before the aggregation switch connected with the lower core switch to cause the network interruption of the aggregation switch can be avoided, the further expansion of the influence of the abnormal loop is prevented, and the normal operation of the network on the aggregation switch is ensured.
An electronic device is further provided in the embodiment of the present application, please refer to fig. 4, which includes a processor 310, a communication interface 320, a memory 330, and a communication bus 340, wherein the processor 310, the communication interface 320, and the memory 330 complete communication with each other through the communication bus 340.
A memory 330 for storing a computer program;
the processor 310 is configured to implement the loop protection control method of the multiple device cascade communication network according to any one of the above embodiments when executing the program stored in the memory 330.
The communication interface 320 is used for communication between the above-described electronic device and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the scheme, the core switch, the aggregation switch and the access switch are all pre-deployed with loop detection and loop protection functions, when the core switch receives a loop detection message sent by the core switch for the first time, the loop protection function is not immediately enabled, and after a preset inhibition time, the loop protection function is enabled only when the loop detection message is received again, so that the problem that in a multi-device cascade communication network environment, if a loop occurs in a lower-connected access device, under the condition that the loop protection function of an upper-connected core switch is not disabled, the condition that the aggregation switch of the core switch prior to the lower-connected aggregation switch of the core switch detects the loop to cause network interruption of the aggregation switch can be avoided, further expansion of abnormal loop influence is prevented, and meanwhile, normal operation of the network on the aggregation switch is ensured.
Accordingly, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the loop protection control method of the multi-device cascade communication network described in any of the foregoing embodiments.
In the scheme, the core switch, the aggregation switch and the access switch are all pre-deployed with loop detection and loop protection functions, when the core switch receives a loop detection message sent by the core switch for the first time, the loop protection function is not immediately enabled, but the loop protection function is enabled only when the loop detection message is received again after a preset inhibition time, the problem that in a multi-device cascade communication network environment, if a loop occurs in a lower-connected access device, under the condition that the loop protection function of an upper-connected core switch is not disabled, the condition that the aggregation switch of the core switch prior to the lower-connected aggregation switch of the core switch detects the loop to cause network interruption of the aggregation switch can be avoided, further expansion of abnormal loop influence is prevented, and meanwhile, normal operation of the network on the aggregation switch is ensured.
Those of ordinary skill in the art will understand that: the figures are merely schematic representations of one embodiment, and the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, they are described in relative terms, as long as they are described in partial descriptions of method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 201, 202, 203, etc., are merely used for distinguishing different operations, and the sequence numbers themselves do not represent any execution order. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While alternative embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (10)

1. A loop protection control method of a multi-device cascade communication network is suitable for the multi-device cascade communication network comprising a core switch, a convergence switch and an access switch, the multi-device cascade communication network is deployed with a loop protection function, and the method is applied to the core switch and comprises the following steps:
when receiving a loop detection message sent by the user, judging whether the loop detection message is received for the first time;
when the loop detection message is received for the first time, recording the first moment of receiving the loop detection message, and simultaneously keeping the loop protection function not to be effective;
when the loop detection message is not received for the first time, judging whether the time interval between the second moment and the first moment of receiving the loop detection message at this time is greater than preset inhibition time or not;
and when the time interval is greater than the preset inhibition time, the loop protection function is effective.
2. The method of claim 1, further comprising:
and when the time interval is not greater than the preset inhibition time, continuing to keep the loop protection function from being effective.
3. The method of claim 1, wherein after the loop guard function is enabled, the method further comprises:
clearing the recorded first time.
4. The method according to any one of claims 1 to 3, wherein the determining whether the loop detection packet is received for the first time includes:
judging whether a first moment of receiving the loop detection message exists or not;
if the first moment exists, the loop detection message is not received for the first time;
and if the first time does not exist, receiving the loop detection message for the first time.
5. A loop protection control device of a multi-device cascade communication network is suitable for the multi-device cascade communication network comprising a core switch, an aggregation switch and an access switch, wherein the multi-device cascade communication network is deployed with a loop protection function, and the device is applied to the core switch and comprises: the device comprises a judgment module, a first processing module, a second processing module and a third processing module; wherein the content of the first and second substances,
the judging module is used for judging whether the loop detection message is received for the first time when the loop detection message sent by the judging module is received;
the first processing module is configured to record a first time when the loop detection packet is received for the first time, and keep the loop protection function from being effective at the same time;
the second processing module is configured to, when the loop detection packet is not received for the first time, determine whether a time interval between a second time when the loop detection packet is received this time and the first time is greater than a preset suppression time;
and the third processing module is configured to take the loop protection function into effect when the time interval is greater than the preset suppression time.
6. The apparatus of claim 5, wherein the third processing module is further configured to continue to keep the loop guard function inactive when the time interval is not greater than the preset suppression time.
7. The apparatus of claim 5, further comprising a clearing module configured to clear the first recorded time after the loop guard function is enabled.
8. The apparatus according to any one of claims 5 to 7, wherein the determining module is specifically configured to determine whether there is a first time when the loop detection packet is received; if the first moment exists, the loop detection message is not received for the first time; and if the first time does not exist, receiving the loop detection message for the first time.
9. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-4 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN202110046737.7A 2021-01-14 2021-01-14 Loop protection control method and device for multi-device cascade communication network Active CN112769667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110046737.7A CN112769667B (en) 2021-01-14 2021-01-14 Loop protection control method and device for multi-device cascade communication network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110046737.7A CN112769667B (en) 2021-01-14 2021-01-14 Loop protection control method and device for multi-device cascade communication network

Publications (2)

Publication Number Publication Date
CN112769667A true CN112769667A (en) 2021-05-07
CN112769667B CN112769667B (en) 2022-07-19

Family

ID=75700480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110046737.7A Active CN112769667B (en) 2021-01-14 2021-01-14 Loop protection control method and device for multi-device cascade communication network

Country Status (1)

Country Link
CN (1) CN112769667B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005020022A2 (en) * 2003-08-22 2005-03-03 Omnilux, Inc. Self-healing tree network
CN1848751A (en) * 2005-04-04 2006-10-18 华为技术有限公司 Method for preventing user side loop network on digital user line concentrator
CN101242315A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Loop detection method
CN101674206A (en) * 2009-10-20 2010-03-17 中兴通讯股份有限公司 Loop detection method and network equipment
CN102916850A (en) * 2012-08-23 2013-02-06 歌尔声学股份有限公司 Computer network loop detecting method
CN106789625A (en) * 2016-12-26 2017-05-31 北京华为数字技术有限公司 A kind of loop detecting method and device
CN106973012A (en) * 2017-05-22 2017-07-21 商洛学院 A kind of computer network loop detecting method
CN107171898A (en) * 2017-07-14 2017-09-15 上海市信息网络有限公司 Operator's Ethernet Circle detection and loop method of disposal
CN107872370A (en) * 2017-12-27 2018-04-03 广州芯德通信科技股份有限公司 A kind of Ethernet interface loop quick determination method
CN108989155A (en) * 2018-09-25 2018-12-11 盛科网络(苏州)有限公司 Loop detecting method and system based on tolerant mechanism
CN109391525A (en) * 2018-10-25 2019-02-26 锐捷网络股份有限公司 Loop localization method and device
CN109743234A (en) * 2019-03-01 2019-05-10 盛科网络(苏州)有限公司 Loop detection method and system based on tolerant mechanism

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005020022A2 (en) * 2003-08-22 2005-03-03 Omnilux, Inc. Self-healing tree network
CN1848751A (en) * 2005-04-04 2006-10-18 华为技术有限公司 Method for preventing user side loop network on digital user line concentrator
CN101242315A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Loop detection method
CN101674206A (en) * 2009-10-20 2010-03-17 中兴通讯股份有限公司 Loop detection method and network equipment
CN102916850A (en) * 2012-08-23 2013-02-06 歌尔声学股份有限公司 Computer network loop detecting method
CN106789625A (en) * 2016-12-26 2017-05-31 北京华为数字技术有限公司 A kind of loop detecting method and device
CN106973012A (en) * 2017-05-22 2017-07-21 商洛学院 A kind of computer network loop detecting method
CN107171898A (en) * 2017-07-14 2017-09-15 上海市信息网络有限公司 Operator's Ethernet Circle detection and loop method of disposal
CN107872370A (en) * 2017-12-27 2018-04-03 广州芯德通信科技股份有限公司 A kind of Ethernet interface loop quick determination method
CN108989155A (en) * 2018-09-25 2018-12-11 盛科网络(苏州)有限公司 Loop detecting method and system based on tolerant mechanism
CN109391525A (en) * 2018-10-25 2019-02-26 锐捷网络股份有限公司 Loop localization method and device
CN109743234A (en) * 2019-03-01 2019-05-10 盛科网络(苏州)有限公司 Loop detection method and system based on tolerant mechanism

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
王晓红: "校园网中防止网络二层环路的技术研究", 《太原理工大学学报》 *
胡昌银: "EPON***中ONU端口环路检测方案及实现", 《光通信技术》 *
陈文尧: "基于组合保护的CE与PTN网络专线互通策略", 《通信技术》 *

Also Published As

Publication number Publication date
CN112769667B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
US8630188B2 (en) Monitoring link aggregation links
US8437262B2 (en) Disabled state and state signaling for link aggregation
JP5508289B2 (en) Network recovery system and method from multilink failure
CN101001192B (en) Method, system and equipment for protecting ring network link
CN101686158B (en) Control method for Ethernet loop guard fault recovery and Ethernet loop node
EP2352253A1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
CN101060485B (en) Topology changed messages processing method and processing device
US8659993B2 (en) Priority domains for protection switching processes
WO2008031336A1 (en) A method, apparatus and system for avoiding data to cycle in loop in a ring ethernet
WO2016095344A1 (en) Link switching method and device, and line card
EP2466804B1 (en) Protection switching method for ethernet automatic protection switching (eaps) ring network and master node in eaps ring network
EP2533470A1 (en) Method and equipment for preventing repeated refreshing of ethernet ring node address table
WO2016091094A1 (en) Optical transport network protection switching method and device
CN102957588A (en) Method and system for protecting looped network from broadcast storm
CN112769667B (en) Loop protection control method and device for multi-device cascade communication network
CN105323104B (en) Alarm management method and device and packet transmission equipment
CN103931139B (en) Method and device for redundancy protection, and device and system
CN101425952A (en) Method and apparatus for ensuring Ether ring network reliable operation
CN101753465B (en) Protection method taking Ethernet Ring protection system to control VLAN message and device thereof
EP2698949B1 (en) METHOD AND SYSTEM FOR SETTING DETECTION FRAME TIMEOUT DURATION OF ETHERNET NODEs
WO2017146718A1 (en) Ring protection network division
CN113965523A (en) Loop-based PFC deadlock processing method and device
WO2014040470A1 (en) Alarm message processing method and device
CN103401779A (en) Message forwarding path switching method, device and network equipment
CN108259289B (en) Loop network abnormity protection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant