CN-121984581-A - Communication loop fault detection method in communication network
Abstract
The invention belongs to the technical field of communication networks, and provides a communication loop fault detection method in a communication network, which comprises the following steps: and starting a link layer neighbor discovery protocol at each physical port of the ring network node equipment to acquire the opposite-end neighbor equipment identification and the port identification actually connected with each port. By monitoring the transmitted light power value and the laser bias current value of the optical module in real time, progressive faults such as laser aging, transmitted light power degradation and the like can be timely found, a blind area that the traditional detection mechanism only depends on received light power monitoring is broken through, and a secondary verification mechanism is arranged at the same time, after the optical module degradation is monitored, protection switching is not immediately executed, whether an actual bidirectional communication fault exists in a link is further verified through a bidirectional connectivity detection protocol, misjudgment caused by short-time fluctuation of parameters of the optical module is effectively avoided, early warning of potential faults is realized, and stability of a network when the optical module is degraded but the link can still normally communicate is guaranteed.
Inventors
- BAO MEIJUAN
Assignees
- 上海牛酶科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260407
Claims (10)
- 1. A communication loop fault detection method in a communication network is characterized by comprising the following steps: enabling a link layer neighbor discovery protocol at each physical port of ring network node equipment, acquiring an opposite end neighbor equipment identifier and a port identifier actually connected with each port, comparing actual connection information with preset ring network topology planning information, and judging whether the ports pass physical connection verification; For the port which passes the physical connection verification and is successfully added into the ring network protection domain, monitoring the transmitting optical power value and the laser bias current value of the optical module in real time, judging whether the port has a laser degradation fault, and if so, triggering the secondary verification of the port connectivity according to a preset degradation treatment strategy; responding to the triggering of the secondary verification, starting a bidirectional forwarding detection session or an Ethernet connectivity detection session on a ring network link where a port is positioned, monitoring the communication state of the session, and judging that the link has unidirectional communication faults if the session state fails to be established or is interrupted within a preset period; and (3) synthesizing detection results, when any one of a physical connection mismatch fault, a laser degradation fault or a unidirectional communication fault is judged to exist, generating corresponding fault alarm information, and executing a ring network protection switching mechanism or a port isolation mechanism according to the fault type.
- 2. The method for detecting the communication loop circuit fault in the communication network according to claim 1, wherein the step of starting a link layer neighbor discovery protocol at each physical port of the ring network node device, obtaining an opposite end neighbor device identifier and a port identifier actually connected to each port, comparing actual connection information with preset ring network topology planning information, and determining whether the ports pass physical connection verification comprises the steps of: Pre-starting a link layer neighbor discovery protocol function at each physical port of ring network node equipment; when the link state of the physical port is changed from closed to open, the port periodically transmits a protocol message carrying the local end equipment identifier and the port identifier outwards, and continuously monitors and receives a neighbor discovery protocol message transmitted by the opposite end equipment; after continuously receiving a plurality of effective opposite terminal protocol messages, extracting opposite terminal equipment identifiers and opposite terminal port identifiers in the messages as opposite terminal neighbor information actually connected with the ports; and calling preset ring network topology planning information, comparing the actual opposite end neighbor information with the preset planning information item by item, if the comparison result is consistent, marking the port to pass through the physical connection check and allow the port to join the ring network protection domain, and if the comparison result is inconsistent, judging that a physical connection mismatch fault exists, and preventing the port from joining the ring network protection domain.
- 3. The method for detecting a communication loop fault in a communication network according to claim 1, wherein the monitoring the transmission optical power value and the laser bias current value of the optical module in real time and determining whether the port has a laser degradation fault specifically comprises: The method comprises the steps of starting a digital diagnosis monitoring function of an optical module, and periodically reading digital diagnosis monitoring data in an internal register of the optical module through a management bus, wherein the digital diagnosis monitoring data at least comprises a transmission optical power value and a laser bias current value; Comparing the obtained transmission optical power value with a preset transmission power lower limit threshold value, and judging that a laser degradation fault exists if the transmission optical power value is lower than the transmission power lower limit threshold value; comparing the obtained laser bias current value with a preset bias current early warning threshold value, and judging that a laser degradation fault exists if the laser bias current value exceeds the bias current early warning threshold value; the two judging conditions adopt a logical OR relationship, and any condition is met, namely the laser degradation fault judgment is triggered.
- 4. The method for detecting a communication loop failure in a communication network according to claim 1, wherein the predetermined degradation policy includes a direct trigger mode and a secondary verification trigger mode; The direct triggering mode is that the state of the port in the ring network protocol is immediately set as a fault state, and ring network protection switching is triggered; The secondary verification trigger mode is that a secondary verification trigger signal is generated, and the ring network link where the port is located is informed to execute bidirectional connectivity detection so as to further confirm whether unidirectional communication faults exist.
- 5. The method for detecting a communication loop failure in a communication network according to claim 4, wherein when a secondary verification trigger mode is adopted, if a bidirectional connectivity detection indicates that a session state is normal, only an early warning state is maintained without performing protection switching, and if the bidirectional connectivity detection indicates that the session state is interrupted, ring network protection switching is triggered.
- 6. The method for detecting a communication loop failure in a communication network according to claim 1, wherein the responding to the triggering of the secondary verification enables a bidirectional forwarding detection session or an Ethernet connectivity detection session on a ring network link where a port is located, and monitors a connection state of the session, specifically comprising: identifying a ring network link where a port to be verified is located, and acquiring identification information of neighbor equipment of an opposite end of the link; creating a bidirectional connectivity detection session between the port and the opposite-end neighbor device, and setting a local identifier, a remote identifier, an expected receiving-transmitting time interval and a detection multiple of the session; According to the set receiving-transmitting time interval, periodically sending a bidirectional connectivity detection protocol message to the opposite-end neighbor equipment, and continuously monitoring a response message sent by the opposite end; and when the communication state is not established in a preset period or the communicated session is not received for a plurality of times continuously and the number of times of deletion reaches a detection multiple, judging that the session is interrupted.
- 7. The method for detecting a communication ring loop failure in a communication network according to claim 1, wherein the performing a ring protection switching mechanism or a port isolation mechanism according to a failure type specifically comprises: When judging that the physical connection mismatch fault exists, executing a port isolation mechanism, setting the participation state of the port in the ring network protection protocol to be forbidden, and preventing the port from participating in the ring network state machine calculation and the protection switching decision; when judging that the unidirectional communication fault exists, executing a ring network protection switching mechanism, sending a fault indication to a ring network protection protocol process, and triggering the service flow to switch to a standby path; When the laser degradation fault is judged to exist, the ring network protection switching mechanism is decided to be executed or only early warning information is generated according to the execution result of the degradation processing strategy.
- 8. The method for detecting a communication ring loop failure in a communication network according to claim 7, wherein the port isolation mechanism further comprises removing the port from the ring network protection domain and recalculating the ring network topology, and selecting to close a two-layer data forwarding function of the port or to partition the port into the isolated virtual local area network according to a preset security policy.
- 9. The method for detecting a communication ring loop failure in a communication network according to claim 1, further comprising a failure priority processing step of executing processing in order of highest priority of a physical connection mismatch failure, lowest priority of a unidirectional communication failure, and lowest priority of a laser degradation failure when a plurality of failure determinations exist at the same port at the same time.
- 10. The method for detecting communication loop circuit faults in a communication network according to claim 1, further comprising the steps of clearing fault state records corresponding to a port when equipment detects that the port state is recovered to be normal and relevant monitoring parameters are recovered to be normal after a fault port is recovered, and adding the port into a ring network protection domain again according to a ring network protocol, triggering ring network recovery switching, and switching service flow back to an original path.
Description
Communication loop fault detection method in communication network Technical Field The invention belongs to the technical field of communication networks, and particularly relates to a communication loop fault detection method in a communication network. Background The ring circuit topology structure in the communication network, including elastic packet ring, ethernet ring network protection and synchronous digital system self-healing ring, etc., because it possesses high reliability and fast protection switching ability, is widely applied to backbone network and metropolitan area network scene, in the prior art, the ring network fault detection mainly relies on physical layer signal loss detection, port state monitoring and ring network protocol own connectivity report Wen Jiaohu, when detecting the dominant fault such as optical fiber interrupt, port failure or protocol overtime, trigger ring network protection switching, switch the business flow to the backup path, thus realize the business recovery of the 50 millisecond grade of the telecom grade; However, the existing detection mechanism still has detection dead zones in actual engineering application, on one hand, the problem of connection mismatch of a physical wiring layer is easily ignored, for example, the eastern port of a ring network node is connected to the eastern port of adjacent equipment by mistake caused by falling of a tail fiber label of a machine room or construction error, the ring network can still form closure in logic because the conventional ring network protocol does not carry out neighbor identity verification, but when a link is interrupted, protection switching fails due to mismatching of physical topology and logical topology, so that large-area service interruption is caused, on the other hand, a unidirectional communication state of normal receiving and abnormal transmitting can occur when a single-fiber bidirectional optical module is aged or transmitting optical power is deteriorated, a traditional network management system only monitors the received optical power, the fault can not be perceived, the port state is displayed normally, the actual service has lost packets or the hidden fault which can not be switched, the port state is normal, the protocol state looks normal, but the protection mechanism is actually invalid, and when the network truly breaks fiber or the node fault occurs, a standby path can not take over service according to expectations, so that the reliability of a communication loop is guaranteed; therefore, the invention provides a communication loop fault detection method in a communication network. Disclosure of Invention In order to overcome the deficiencies of the prior art, at least one technical problem presented in the background art is solved. The technical scheme adopted by the invention for solving the technical problems is that the communication loop fault detection method in the communication network comprises the following steps: enabling a link layer neighbor discovery protocol at each physical port of ring network node equipment, acquiring an opposite end neighbor equipment identifier and a port identifier actually connected with each port, comparing actual connection information with preset ring network topology planning information, and judging whether the ports pass physical connection verification; For the port which passes the physical connection verification and is successfully added into the ring network protection domain, monitoring the transmitting optical power value and the laser bias current value of the optical module in real time, judging whether the port has a laser degradation fault, and if so, triggering the secondary verification of the port connectivity according to a preset degradation treatment strategy; responding to the triggering of the secondary verification, starting a bidirectional forwarding detection session or an Ethernet connectivity detection session on a ring network link where a port is positioned, monitoring the communication state of the session, and judging that the link has unidirectional communication faults if the session state fails to be established or is interrupted within a preset period; and (3) synthesizing detection results, when any one of a physical connection mismatch fault, a laser degradation fault or a unidirectional communication fault is judged to exist, generating corresponding fault alarm information, and executing a ring network protection switching mechanism or a port isolation mechanism according to the fault type. The beneficial effects of the invention are as follows: According to the invention, a link layer neighbor discovery protocol is started at each physical port of ring network node equipment, the identification of the opposite terminal equipment and the identification of the port which are actually connected are obtained and compared with preset ring network topology planning information, physical connection verificatio