Disclosure of Invention
The invention mainly aims to provide a method, a system, equipment and a readable storage medium for transmitting an interruption alarm signal, and aims to solve the technical problem that in the prior art, when a network is interrupted in an optical channel protection scene, the transmission of the interruption alarm signal of a low-rate service needs a long time.
In a first aspect, the present invention provides an interrupt alert signal transmission method, including:
the first single disc receives an interrupt alarm signal;
and when the service corresponding to the interrupt alarm signal is a low-rate service, sending an alarm code to a second single disc, wherein the low-rate service is a service with a service rate of 2.5G or less.
Optionally, the step of sending the warning code to the second single disc includes:
acquiring an alarm code corresponding to the service;
and sending the alarm code to a second single disc.
Optionally, before the step of receiving the interrupt alert signal by the first single disk, the method further includes:
setting an alarm code corresponding to each service based on a format required by a service standard of each service contained in the low-rate service;
and storing each service and the corresponding alarm code in an associated manner.
Optionally, after the step of sending the warning code to the second single disc, the method further includes:
and when the second single disk receives the alarm code, the laser arranged at the transmitting side of the second single disk is switched off.
In a second aspect, the present invention also provides an interrupt alert signal delivery system, comprising:
the first single disc is used for receiving an interruption alarm signal, and when a service corresponding to the interruption alarm signal is a low-rate service, an alarm code is sent to a second single disc, wherein the low-rate service is a service with a service rate of 2.5G or less.
Optionally, the first single disc is further configured to:
acquiring an alarm code corresponding to the service;
and sending the alarm code to a second single disc.
Optionally, the first single disc is further configured to:
setting an alarm code corresponding to each service based on a format required by a service standard of each service contained in the low-rate service;
and storing each service and the corresponding alarm code in an associated manner.
Optionally, the system for transmitting the interrupt warning signal further includes:
and the second single disc is used for turning off the laser arranged at the sending side of the second single disc when the alarm code is received.
In a third aspect, the present invention further provides an interrupt alert signal delivery apparatus, which includes a first single disk, a second single disk, a processor, a memory, and an interrupt alert signal delivery program stored on the memory and executable by the processor, wherein when the interrupt alert signal delivery program is executed by the processor, the steps of the interrupt alert signal delivery method as described above are implemented.
In a fourth aspect, the present invention further provides a readable storage medium, on which an interrupt alert signal delivery program is stored, wherein when the interrupt alert signal delivery program is executed by a processor, the steps of the interrupt alert signal delivery method as described above are implemented.
In the invention, when a first single disk receives an interruption alarm signal and the service corresponding to the interruption alarm signal is a low-rate service, an alarm code is sent to a second single disk, wherein the low-rate service is the service with the service rate of 2.5G or less. The invention converts the interrupt alarm signal of the low-rate service received by the first single disk into the alarm code and sends the alarm code to the second single disk, which does not relate to multi-frame check of multiframes and periodic sending of management frames, realizes the instant transmission of the interrupt alarm signal of the low-rate service, and greatly reduces the time for transmitting the interrupt alarm signal of the low-rate service in the optical channel protection scene.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first aspect, an embodiment of the present invention provides an interrupt alert signal delivery apparatus.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of an interrupt alert signal delivery apparatus according to an embodiment of the present invention. In this embodiment of the present invention, the interrupt alert signal transmission device may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WI-FI interface, WI-FI interface); the memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to FIG. 1, the memory 1005 of FIG. 1, which is one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and an interrupt alert signaling program. The processor 1001 may call an interrupt alert signal transfer program stored in the memory 1005, and execute the interrupt alert signal transfer method provided by the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a method for transmitting an interrupt alert signal.
Referring to fig. 2, fig. 2 is a flowchart illustrating an embodiment of an interrupt alert signal transmission method according to the present invention. In one embodiment, the interrupt alarm signal transmission method includes:
step S10, the first single disc receives the interrupt alarm signal;
and step S20, when the service corresponding to the interrupt alarm signal is a low-rate service, sending an alarm code to a second single disk, wherein the low-rate service is a service with a service rate of 2.5G or less.
Referring to fig. 3, fig. 3 is a schematic view of a scenario of performing optical channel protection on an optical channel layer in an optical transport network. As shown in fig. 3, the optical protection disk 1 divides an optical signal into two identical signals and transmits the signals through different lines, wherein the optical protection disk 1 → the first single disk a1 → the second single disk B1 → the optical protection disk 2 is one line, and the optical protection disk 1 → the first single disk a2 → the second single disk B2 → the optical protection disk 2 is the other line. The optical protection disk 2 receives signals from the two paths, and then selects a signal with relatively good signal quality to be sent to subsequent processing. The arrows in fig. 3 represent the signal transfer directions.
The first and second single disks in this embodiment, i.e., the light-protective disk 1 → the first single disk a1 → the second single disk B1 → the first single disk a1 and the second single disk B1 on the line of the light-protective disk 2; or the light protection disk 1 → the first single disk a2 → the second single disk B2 → the first single disk a2 and the second single disk B2 on the line of the light protection disk 2.
In this embodiment, in the optical channel protection scenario shown in fig. 3, when the network is interrupted, the optical protection disk 1 is triggered to issue the interruption alarm signal to the first single disk, that is, the optical protection disk 1 issues the interruption alarm signal to the first single disk a1 and the first single disk a2, respectively.
When issuing the interruption alarm signal, the optical protection disk 1 issues an interruption alarm signal corresponding to the current service. Specifically, the method comprises the following steps:
if the current service is the GE service, the issued interruption alarm signal is:
“LINK_DOWM/LINK_LOS/PACK_SD/LOC_FAULT”;
if the current service is a 1GFC/2GFC service, the issued interrupt alarm signal is as follows:
“LINK_DOWM/LINK_LOS/PACK_SD”;
if the current service is an SDH service, the issued interrupt alarm signal is:
“RS_LOF/RS_SD”。
the corresponding relationship between the service and the corresponding interrupt alarm signal can be stored in the optical protection disk 1, so that when a network interrupt occurs, the optical protection disk 1 sends the corresponding interrupt alarm signal to the first single disk according to the current service and the stored data.
When the first single disk receives the interrupt alarm signal, it is first determined whether the service corresponding to the interrupt alarm signal is a low-rate service, where the low-rate service is a service with a service rate of 2.5G or less. This is because, in the prior art, for low-rate services with a service rate of 2.5G or less, when the network is interrupted, the first single disc needs to transmit the interruption alarm signal to the second single disc according to the fault information transmission mechanism specified in the g.798 standard and the YDT 1443-Generic Framing Procedure (GFP) specification, which results in a longer time required for transmitting the interruption alarm signal, and thus the optical channel protection cannot be completed within 50 ms. For example, according to the existing fault information delivery mechanism, for an interruption warning signal of a service with a service rate of 1.25G, the complete multiframe period of the interruption warning signal reaches 78ms, that is, the time consumed for delivering the fault signal exceeds 50ms, so that the optical channel protection cannot be completed within 50 ms. For high-rate services with a service rate greater than 2.5G, even according to the existing fault information delivery mechanism, the optical channel protection can be completed within 50ms, so this embodiment is only directed to low-rate services with a service rate of 2.5G or less.
In this embodiment, when the first single disk receives the interruption alarm signal, the current service is determined according to the correspondence between the service and the corresponding interruption alarm signal, and then it is further determined whether the current service is a low-rate service. The corresponding relationship between the service and the corresponding interruption alarm signal can be stored on the first single disc, and the list of the services included in the low-rate service is also stored on the first single disc, so that when the first single disc receives the interruption alarm signal, the current service can be determined based on the stored data, and whether the current service is the low-rate service or not can be determined.
In this embodiment, when the first single disk determines that the service corresponding to the interruption alarm signal is a low-rate service, an alarm code is sent to the second single disk, so that the second single disk can know that a network interruption event occurs currently, and perform corresponding processing. All services may correspond to the same warning code, or different services may correspond to different warning codes, and a "service" refers to a low-rate service with a service rate of 2.5G or less.
In the above embodiment, when the first single disc is the first single disc a1, the second single disc is the second single disc B1; likewise, when the first single disc is the first single disc a2, the second single disc is the second single disc B2.
In the above embodiment, the first single disc and the second single disc are determined according to the signal flow direction. When the signal flow is as shown in fig. 3, the first single disc is the first single disc a1 and the first single disc a2, and the corresponding second single disc is the second single disc B1 and the second single disc B2. In one embodiment, when the signal flow direction is opposite to the signal flow direction shown in fig. 3, the first single disk is the second single disk B1 and the second single disk B2, and the corresponding second single disks are the first single disk a1 and the first single disk a 2.
In this embodiment, when a first single disk receives an interrupt alarm signal and a service corresponding to the interrupt alarm signal is a low-rate service, an alarm code is sent to a second single disk, where the low-rate service is a service with a service rate of 2.5G or less. By the embodiment, the interrupt alarm signal of the low-rate service received by the first single disk is converted into the alarm code and sent to the second single disk, multi-frame verification of multiframes and periodic sending of management frames are not involved, instant transmission of the interrupt alarm signal of the low-rate service is realized, and time for transmitting the interrupt alarm signal of the low-rate service in an optical channel protection scene is greatly reduced.
Further, in an embodiment, the step of sending the warning code to the second single disc includes:
Acquiring an alarm code corresponding to the service; and sending the alarm code to a second single disc.
In this embodiment, each service included in the low-rate service has its corresponding alarm code. When the first single disk determines that the service corresponding to the interrupt alarm signal is a low-rate service according to the received interrupt alarm signal, the first single disk acquires an alarm code corresponding to the service and then sends the alarm code to the second single disk.
In the embodiment, the multi-frame check of the multi-frame and the periodic sending of the management frame specified in the prior art are not involved, but the corresponding alarm code is sent to the second single disk based on the interrupt alarm signal, so that the transmission of the interrupt fault information can be completed in a very short time.
Further, in an embodiment, before step S10, the method further includes:
setting an alarm code corresponding to each service based on a format required by a service standard of each service contained in the low-rate service; and storing each service and the corresponding alarm code in an associated manner.
In this embodiment, based on the format required by the service standard of each service included in the low-rate service, the alarm code corresponding to each service is set. For example, the low rate traffic includes GE traffic, 1GFC/2GFC traffic, and SDH traffic. The format required by the GE service standard is C1/C2, the format required by the 1GFC/2GFC service standard is NOS, and the format required by the SDH service standard is PN 11. The format of the alarm code corresponding to the GE service is C1/C2, the format of the alarm code corresponding to the 1GFC/2GFC service is NOS, and the format of the alarm code corresponding to the SDH service is PN 11. And after the alarm codes corresponding to the services are set, storing the services and the alarm codes corresponding to the services into a first single disc in an associated manner.
In this embodiment, based on the format required by each service standard, the alarm code corresponding to each service is set, so that isolation from the hardware architecture can be achieved.
Further, in an embodiment, after step S20, the method further includes:
and when the second single disk receives the alarm code, the laser arranged at the transmitting side of the second single disk is switched off.
In the present embodiment, as shown in fig. 3, the receiving side of the second single disk B1 is the side for receiving signals from the first single disk a1, and the transmitting side of the second single disk B1 is the side for transmitting signals to the optical protection disk 2; similarly, the receiving side of the second single disk B2 is the side for receiving signals from the first single disk a2, and the transmitting side of the second single disk B2 is the side for transmitting signals to the optical protection disk 2. In this embodiment, when the second single disc receives the warning code, the laser device disposed on the sending side of the second single disc is turned off, so as to protect the optical channel of the optical transport network. It is easy to understand that each fault code is stored in the second single disk in advance, when the fault code is received, the received fault code is compared with the pre-stored fault code, and if the received fault code is consistent with the pre-stored fault code, the laser arranged on the transmitting side of the second single disk is turned off.
In a third aspect, an embodiment of the present invention further provides a system for transmitting an interrupt alert signal.
In this embodiment, the interrupt alert signal transmission system includes:
the first single disc is used for receiving an interruption alarm signal, and when a service corresponding to the interruption alarm signal is a low-rate service, an alarm code is sent to a second single disc, wherein the low-rate service is a service with a service rate of 2.5G or less.
Further, in an embodiment, the first single disc is further configured to:
acquiring an alarm code corresponding to the service;
and sending the alarm code to a second single disc.
Further, in an embodiment, the first single disc is further configured to:
setting an alarm code corresponding to each service based on a format required by a service standard of each service contained in the low-rate service;
and storing each service and the corresponding alarm code in an associated manner.
Further, in an embodiment, the system for delivering an interrupt alert signal further includes:
and the second single disc is used for turning off the laser arranged at the sending side of the second single disc when the alarm code is received.
The function implementation of the first single disk and the second single disk in the interrupt warning signal transmission system corresponds to each step in the above-mentioned interrupt warning signal transmission method embodiment, and the function and implementation process thereof are not described in detail herein.
In a fourth aspect, the embodiment of the present invention further provides a readable storage medium.
The readable storage medium of the present invention stores an interrupt alert signal delivery program, wherein the interrupt alert signal delivery program, when executed by a processor, implements the steps of the interrupt alert signal delivery method as described above.
The method for implementing the interrupt alert signal transfer program when executed may refer to various embodiments of the interrupt alert signal transfer method of the present invention, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.