CN113098597A - Optical protection device and optical power detection method - Google Patents

Optical protection device and optical power detection method Download PDF

Info

Publication number
CN113098597A
CN113098597A CN202110350666.XA CN202110350666A CN113098597A CN 113098597 A CN113098597 A CN 113098597A CN 202110350666 A CN202110350666 A CN 202110350666A CN 113098597 A CN113098597 A CN 113098597A
Authority
CN
China
Prior art keywords
optical power
route
optical
detection result
power detection
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.)
Pending
Application number
CN202110350666.XA
Other languages
Chinese (zh)
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110350666.XA priority Critical patent/CN113098597A/en
Publication of CN113098597A publication Critical patent/CN113098597A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • H04B10/07955Monitoring or measuring power

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

The disclosure provides an optical protection device and an optical power detection method, and relates to the fields of optical communication, information flow, signal processing, data transmission, big data and cloud computing. The specific implementation scheme is as follows: the input end of the optical switch is used for being connected with at least two routes, and the output end of the optical switch is used for being connected with the service end so as to transmit the signal of one route to the service end; a first optical power detector for connecting to the route to detect optical power of the route; and the FPGA is connected with the first optical power detector and used for acquiring the detection result of the first optical power detector, and the FPGA is also connected with the optical switch and used for switching the connection state of the optical switch and the route according to the detection result. According to the technology of the present disclosure, the optical power detection speed of the route is improved.

Description

Optical protection device and optical power detection method
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to the fields of optical communications, information flow, signal processing, data transmission, big data, and cloud computing.
Background
In an optical transmission network, the optical power condition of a signal transmitted by a route needs to be monitored, and when it is detected that the optical power of the signal transmitted by the route drops, route switching needs to be performed so as to protect the optical transmission network from continuing data transmission.
Disclosure of Invention
The present disclosure provides a light protection device and a method of optical power detection.
According to an aspect of the present disclosure, there is provided a light protection device including:
the input end of the optical switch is used for being connected with at least two routes, and the output end of the optical switch is used for being connected with the service end so as to transmit the signal of one route to the service end;
a first optical power detector for connecting to the route to detect optical power of the route;
and the FPGA is connected with the first optical power detector and used for acquiring the detection result of the first optical power detector, and the FPGA is also connected with the optical switch and used for switching the connection state of the optical switch and the route according to the detection result.
According to another aspect of the present disclosure, there is provided a method of optical power detection, including:
updating the optical power detection result stored in a register group corresponding to the first route based on the obtained optical power detection result of the first route;
and calculating the optical power of the first route according to the optical power detection result stored in the updated register group.
According to another aspect of the present disclosure, there is provided an apparatus for optical power detection, including:
the updating module is used for updating the optical power detection result stored in the register group corresponding to the first route based on the acquired optical power detection result of the first route;
and the calculating module is used for calculating the optical power of the first route according to the optical power detection result stored in the updated register group.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method according to any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform a method in any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method in any of the embodiments of the present disclosure.
According to the technology of the present disclosure, the optical power detection speed of the route is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram of a light protection device according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a light protection device according to another embodiment of the present application;
FIG. 3 is a schematic block diagram of a signal processing system according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a signal processing system according to an embodiment of the present application;
fig. 5 is a schematic flow chart of an implementation of a method of optical power detection according to an embodiment of the present application;
fig. 6 is a schematic flow chart of an implementation of a method of optical power detection according to an embodiment of the present application;
fig. 7 is a schematic flow chart of an implementation of a method of optical power detection according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of an apparatus for optical power detection according to an embodiment of the present application;
fig. 9 is a block diagram of an electronic device for implementing optical power detection in an embodiment of the application.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
According to an embodiment of the present disclosure, as shown in fig. 1, the present disclosure provides a light protection device 100 including:
an input end 11 of the optical switch 1 is used for being connected with at least two routes, and an output end 12 of the optical switch 1 is used for being connected with a service end so as to transmit a signal of one route to the service end.
A first optical power detector 2 for connecting to the route to detect the optical power of the route.
An FPGA (Field Programmable Gate Array) 3 connected to the first optical power detector 2 for obtaining a detection result of the first optical power detector 2. The FPGA3 is also connected to the optical switch 1 for controlling the connection status of the optical switch 1 to each route.
The FPGA comprises a plurality of registers, at least some of which may be used to store the optical power detection results of the first optical power detector 2.
It should be noted that the optical protection device 100 may be understood as an optical protection board, and the service end may be understood as a service board. The specific product corresponding to the optical protection device 100 is not specifically limited, and the optical protection device 100 can be understood as long as a device that can switch (reverse) the connected route by using the optical switch 1 is implemented. The specific product corresponding to the service end is not specifically limited herein, and any device capable of processing the signal sent by the optical protection device 100 may be understood as the service end. For example, the service end may be a mobile terminal, a server, a cloud, a computer, and the like.
The optical switch 1 may be any optical switch structure, and is not limited in particular, wherein the optical switch is an optical device having one or more optional transmission ports, and is used for physically switching optical signals in an optical transmission line or an integrated optical circuit. For example, the Optical switch 1 may be a mechanical Optical switch, a magneto-Optical switch, an electro-Optical switch, or an SOA (Semiconductor Optical Amplifier) Optical switch. The specific optical switch 1 selected can be adjusted according to the requirement of the route switching speed.
The number of inputs 11 of the optical switch 1 can be selected and adjusted as desired. In the case that the number of the input terminals 11 of the optical switch 1 is plural, the input terminals 11 of the optical switch 1 for connecting with at least two routes can be understood as follows: each input terminal 11 of the optical switch 1 may be connected to a route in a one-to-one correspondence. For example, the optical switch 1 has an input a and an input B, the route includes a route C and a route D, the input a is connected to the route C, and the input B is connected to the route D. That is, the input 11 of each optical switch 1 enables the transmission of a correspondingly routed signal to the output 12 of the optical switch 1.
The first optical power detector 2 may be understood as any device capable of optical power detection. Such as an optical power meter, optical power meter or sensor, etc. The number of first optical power detectors 2 may be selected and adjusted as desired. For example, each route may be connected with one first optical power detector 2 in a one-to-one correspondence manner, so as to implement separate optical power detection for each first optical power detector 2 on the corresponding route. For another example, each route may be connected to the same first optical power detector 2, so as to perform optical power detection on each route through one first optical power detector 2. Specifically, the detection end of the first optical power detector 2 may be branched into a plurality of branches in parallel, each branch is connected to each route in a one-to-one correspondence, and each branch sequentially and respectively samples the optical power of each route according to a sampling sequence and sequentially feeds back the optical power to the first optical power detector 2 according to the sampling sequence.
The FPGA3 obtains the detection result of the first optical power detector 2, which can be understood as that the FPGA3 actively collects the optical power detection result of the route from the first optical power detector 2. It can also be understood that the first optical power detector 2 actively sends the routed optical power detection results to the FPGA 3.
The connection state of the optical switch 1 to each route can be switched. The FPGA3 controls the connection state of the optical switch 1 and each route, and it can be understood that the FPGA3 can control which route the optical switch 1 is specifically connected with to realize signal transmission to the output end 12 of the optical switch 1, and which route is connected but not connected with to make the signal transmitted by the route unable to be transmitted to the output end 12 of the optical switch 1. That is, the optical switch 1 can selectively receive signals transmitted by each route.
In the technology disclosed in the present disclosure, since the hardware FPGA3 is used, the processing speed of the FPGA3 for performing calculation based on the optical power detection result can be significantly increased. And because the hardware characteristic is more stable, all the collected optical powers are subjected to hardware averaging through the hardware FPGA3, the extreme power jitter condition can be filtered, the detection time of the optical power is ensured to be less than 100 microseconds (microsecond), and the stability and the accuracy of the calculation of the optical power detection result are improved. The optical power of the route is calculated by using the hardware FPGA3, so that the optical power polling detection time interval of the route can be increased to a μ s level, and the optical power detection speed of the route is increased, thereby further increasing the route switching speed of the optical switch 1.
In one example, the Optical switch 1 is a high-speed Optical switch, for example, the Optical switch 1 may be a magneto-Optical switch, an electro-Optical switch, or an SOA (Semiconductor Optical Amplifier) Optical switch. The conventional mechanical optical switch is limited by the physical limit of hardware switching, and the routing switching takes about 6ms (milliseconds), which cannot meet the requirement of fast routing switching. The technology disclosed by the invention adopts the high-speed optical switch, so that the switching process is not limited by the physical limit of hardware switching, the speed of route switching can be increased, the time consumed by route switching is reduced, and the time consumed by route switching reaches the level of microseconds (μ s) or even ns (nanosecond). The data loss condition caused by unstable signal transmission in the route switching process is effectively relieved, and the data loss amount is reduced.
In one example, the input end 11 of the optical switch 1 is used for connecting with at least two routes, and the output end 12 of the optical switch 1 is used for connecting with a service end to transmit signals of one route to the service end, which can be understood as: since each route is connected to each input terminal 11 of the optical switch 1 in a one-to-one correspondence, each route can transmit a signal to each input terminal 11 of the optical switch 1. However, since the optical switch 1 can only communicate with one route in the operating state, the optical switch 1 can only transmit the signal of the route currently communicated with one input terminal 11 to the service terminal through the output terminal 12.
In one embodiment, as shown in fig. 1, the light protection device 100 further comprises:
and the second optical power detector 4 is connected with the output end 12 of the optical switch 1 and is used for detecting the optical power of the output end 12 of the optical switch 1, and the second optical power detector 4 is further connected with the FPGA3 so that the FPGA3 can obtain the detection result of the second optical power detector 4.
The second optical power detector 4 may be understood as any device capable of optical power detection. Such as an optical power meter, optical power meter or sensor, etc.
The FPGA3 obtains the detection result of the second optical power detector 4, which can be understood as that the FPGA3 actively collects the detection result of the optical power at the output end 12 of the optical switch 1 from the second optical power detector 4. It can also be understood that the second optical power detector 4 actively sends the optical power detection result of the output 12 of the optical switch 1 to the FPGA 3.
In the disclosed technology, since the second optical power detector 4 is disposed at the output end 12 of the optical switch 1, the FPGA3 can determine the route of the optical switch 1 currently connected through the detection result of the second optical power detector 4.
In one embodiment, as shown in fig. 2, the light protection device 100 further comprises:
in the optical splitter 5, the uplink optical interface 51 of the optical splitter 5 is used to connect with a service end, and each downlink optical interface 52 of the optical splitter 5 is used to connect with each route, so as to transmit a signal sent by the service end to each route.
The specific structure of the optical splitter 5 can be selected and adjusted as required, as long as one path of signal can be converted into multiple paths of same signals.
The optical splitter 5 is used when the optical protection device 100 is used as a transmitting side, that is, in an operation mode of distributing signals. That is, the signals transmitted by the service end need to be transmitted to other service ends through each route. The optical switch 1 is used when the optical protection device 100 is used as a receiving end, i.e. in an operating mode of optical protection switching. I.e. the signals transmitted by the route need to be sent to the service end in the state of receiving the signals. For example, as shown in fig. 4, when a service end 20 needs to send a signal to another service end through each route 10, an optical protection device 100 as a sending end is connected to the service end 20 through an uplink optical interface 51 of an optical splitter 5, and is connected to two routes 10 in a one-to-one correspondence manner through two downlink optical interfaces 52 of the optical splitter 5, so that the optical protection device 100 converts the signal sent by the service end 20 into two identical signals and sends the two identical signals to the two routes 10 respectively.
Since the signal transmission is usually bidirectional, that is, there is signal transmission and signal feedback, the optical protection device 100 may include both the optical splitter 5 and the optical switch 1, and the lines of the two structures do not interfere with each other. That is, the optical protection apparatus 100 may serve as a receiving end or a transmitting end. For example, as shown in fig. 3, when a route 10 needs to send a signal to a service end 20, an optical protection device 100 as a receiving end is connected to two routes 10 in a one-to-one correspondence manner through two input ends 11 of a high-speed optical switch and is connected to the service end 20 through an output end 12 of the high-speed optical switch, so that the optical protection device 100 transmits the signal of one route 10 to the service end 20.
Specifically, under the condition that the optical network includes a first service end and a second service end, a signal sent by the first service end may be sent to the optical switch 1 of the optical protection device 100 through each route, so that the optical switch 1 sends a signal of one route to the second service end. The signal sent by the second service end may be sent to each route through the optical splitter 5 of the optical protection device 100, so that the signal sent by the second service end is transmitted to the first service end through each route.
In one embodiment, the number of routes is two. Under the condition that the optical protection device 100 is in the optical protection switching operating mode, two routes are respectively connected to one input end 11 of the optical switch 1, the two routes are respectively connected to one first optical power detector 2, and an output end 12 of the optical switch 1 is communicated with a service end.
When the optical protection apparatus 100 is in the operation mode of distributing signals, the upstream optical interface 51 of the optical splitter 5 communicates with the service end, and each downstream optical interface 52 of the optical splitter 5 communicates with each route.
In one embodiment, as shown in fig. 2, the light protection device 100 further comprises:
and the second processor 6 is connected with the FPGA 3. Wherein the second processor 6 is an MCU. The second processor 6 is used to control the FPGA3 and other devices within the light protection device 100. For example, the second processor 6 is connected to the optical splitter 5, and controls the operation of the optical splitter 5.
In the technology disclosed by the present disclosure, since the MCU and the FPGA3 are provided in the optical protection device 100 at the same time, the MCU can be used to control the normal operation of other devices in the optical protection device 100 while the FPGA3 is used to increase the routing speed of the optical switch 1.
According to an embodiment of the present disclosure, as shown in fig. 3, the present disclosure provides a signal processing system 200 including:
at least two routes 10 for transmitting signals.
In the optical protection apparatus 100 according to any of the above embodiments, the input terminal 11 of the optical switch 1 of the optical protection apparatus 100 is connected to each of the routes 10.
And the service end 20 is connected with the output end 12 of the optical switch 1.
The specific product corresponding to the service end 20 is not specifically limited herein, and any device capable of processing the signal sent by the optical protection device 100 may be understood as the service end. For example, the service end may be a mobile terminal, a server, a cloud, a computer, and the like.
In the disclosed technology, the signal processing system 200 is provided with the light protection device 100, so that the signal processing speed and capacity of the whole system can be improved.
In one embodiment, as shown in fig. 4, the service end 20 is further connected to the uplink optical interface 51 of the optical splitter 5 of the optical protection device 100, and each of the routes 10 is further connected to each of the downlink optical interfaces 52 of the optical splitter in a one-to-one correspondence.
It should be noted that, when the service end 20 serves as a receiving end, the high-speed optical switch operates, and the high-speed optical switch transmits a route of signal to the service end 20. When the service end 20 is used as a transmitting end, the optical splitter 5 operates, and the optical splitter 5 converts signals transmitted by the service end 20 into two paths of same signals and transmits the two paths of same signals to each route 10.
In one embodiment, the signal processing system 200 further comprises:
and an optical amplifier and a wavelength division multiplexer provided between the service end 20 and each of the routes 10 and connected to the optical protection apparatus 100.
In the disclosed technology, the stability and signal quality of signal transmission can be improved by an optical amplifier and a wavelength division multiplexer.
According to an embodiment of the present disclosure, as shown in fig. 5, the present disclosure further provides a method for detecting optical power, which may be applied to the FPGA according to any embodiment of the present disclosure, where the FPGA may include a plurality of registers, and the method for detecting optical power includes:
s50: and updating the optical power detection result stored in the register group corresponding to the first route based on the acquired optical power detection result of the first route.
The optical power detection result of the first route may be obtained by a first optical power detector connected to the first route. The optical power detection result of the first route acquired by the FPGA may be actively acquired by the FPGA from the first optical power detector, or may be actively sent by the first optical power detector to the FPGA.
The register group corresponding to the first route may be understood as a register group of the FPGA configured for the first route in advance according to a preset rule. The number of registers in the register group is determined according to a preset rule. For example, when the preset rule is that the FPGA is required to calculate the optical power of the first route more quickly, a small number of registers are selected to form a register group, and the smaller the number of registers is, the faster the calculation speed is, and the shorter the calculation time is. When the preset rule is that the FPGA is required to accurately and objectively calculate the optical power of the first route, a register group is formed by selecting a large number of registers.
And the number of the registers of the first route can be adjusted according to the adjustment of the working requirement. When the FPGA calculates the optical power of the signals of different routes by using different register sets, the number of registers allocated to each route may be the same or different, and is not limited herein.
The optical power detection results stored in the registers of the register group corresponding to the first route are updated, and it can be understood that when a new optical power detection result of the first route is obtained by the FPGA, the optical power detection result stored in at least one register of the register group of the first route needs to be deleted, and the newly obtained optical power detection result is stored in the register.
All registers in the FPGA may be used to store the optical power detection result of each route, or only some registers may be used to store the optical power detection result of each route.
S51: and calculating the optical power of the first route according to the optical power detection result stored in the updated register group.
Step S51 may be understood as performing a calculation based on the optical power detection result stored in the updated register group as long as a newly acquired optical power detection result of the first route is acquired by the FPGA and updated into the register group.
And under the condition that the optical power detection result of the first route is continuously acquired according to the preset time interval, the FPGA continuously calculates the optical power of the first route.
The optical power of the first route may be understood as the optical power of the optical signal transmitted by the first route. The optical power is used for measuring the transmission stability of the first route, and when the optical power is lower than a threshold value, it is indicated that the first route is abnormal and cannot stably transmit signals.
In the technology disclosed by the invention, the hardware FPGA is adopted, so that the processing speed of the FPGA for calculating based on the optical power detection result can be obviously improved. And because the hardware characteristic is relatively stable, each collected optical power is calculated through the hardware FPGA, the extreme power jitter condition can be filtered, the detection time of the optical power is ensured to be less than 100 microseconds (microsecond), and the stability and the accuracy of the calculation of the optical power detection result are improved. The optical power of the route is calculated by using the hardware FPGA, the optical power polling detection time interval of the route can be increased to a mu s level, and the optical power detection speed of the route is increased, so that the route switching speed of the optical switch is further increased.
It should be noted that, because the FPGA is hardware, the operation speed is fast. For example, taking the refresh interval of the collected data as 1 μ s as an example, the maximum computation time of the optical power computation of the first route by using 100 registers storing the optical power detection results in the FPGA is only 100 μ s, which is much shorter than 1 ms.
In one embodiment, as shown in fig. 6, the method of optical power detection of the present disclosure includes steps S50 and S51, wherein S50: updating the optical power detection result stored in the register group corresponding to the first route based on the obtained optical power detection result of the first route, may further include:
s60: and under the condition of obtaining the optical power detection result of the first route, determining a target register in which the optical power detection result in the register group corresponding to the first route is stored earliest.
The target register into which the optical power detection result is stored earliest may be understood as a target register, where when each register in the register group stores the optical power detection result of the first route, the register with the longest retention time of the stored optical power detection result is the target register.
For example, the register group is composed of A, B, C, D four registers. The register a is the optical power detection result stored in the first millisecond, the register B is the optical power detection result stored in the second millisecond, the register C is the optical power detection result stored in the third millisecond, and the register D is the optical power detection result stored in the fourth millisecond. And determining the longest time of the optical power detection result stored in the register A according to the storage time of each optical power detection result in the register, namely the register A is the target register.
S61: and updating the optical power detection result stored in the target register based on the acquired optical power detection result of the first route.
Updating the optical power detection result stored in the destination register may be understood as overwriting the acquired optical power detection result of the first route with the optical power detection result already stored in the destination register, or may be understood as deleting the optical power detection result already stored in the destination register and storing the optical power detection result of the first route.
In the technology disclosed by the disclosure, by updating the data stored in one register in the register group each time, the current optical power of the route can be effectively monitored, the stability of the optical power calculation result can be ensured, the calculation result of the whole register group cannot be influenced when the optical power detection result of an unstable optical signal of the first route is acquired, and the wrong judgment on the optical power condition of the first route is avoided.
In one specific application example regarding steps S60 and S61, the register group is composed of A, B, C, D four registers. The register a is the optical power detection result stored in the first millisecond, the register B is the optical power detection result stored in the second millisecond, the register C is the optical power detection result stored in the third millisecond, and the register D is the optical power detection result stored in the fourth millisecond. And determining the longest time of the optical power detection result stored in the register A according to the storage time of each optical power detection result in the register, namely the register A is the target register. Therefore, the acquired optical power detection result of the first route is updated to the register a.
In one embodiment, as shown in fig. 7, the method of optical power detection of the present disclosure includes steps S50 and S51, wherein S50: updating the optical power detection result stored in the register group corresponding to the first route based on the obtained optical power detection result of the first route, may further include:
s70: and under the condition of acquiring the optical power detection result of the first route, deleting the optical power detection result in the first register on the preset time node according to the time sequence of storing the optical power detection result in each register.
For example, the register group is composed of A, B, C, D four registers. The register a is the optical power detection result stored in the first millisecond, the register B is the optical power detection result stored in the second millisecond, the register C is the optical power detection result stored in the third millisecond, and the register D is the optical power detection result stored in the fourth millisecond. Then, according to the sequence of storing the optical power detection result by each register from early to late, the first register is register a, the second register is register B, the third register is register C, and the fourth register is register D. Therefore, the optical power detection result stored in the register a (i.e. the first register on the preset time node) needs to be deleted.
S71: and sequentially storing the optical power detection results stored in other registers except the first register in the register group into the previous register.
For example, the register group is composed of A, B, C, D four registers. According to the sequence of storing the optical power detection result by each register from early to late, the first register is a register A, the second register is a register B, the third register is a register C, and the fourth register is a register D. Deleting the optical power detection result stored in the first register A, storing the optical power detection result stored in the register B into the previous register (namely, the register A), storing the optical power detection result stored in the register C into the previous register (namely, the register B), and storing the optical power detection result stored in the register D into the previous register (namely, the register C).
S72: and storing the acquired optical power detection result of the first route into a last register.
The last register may be understood as a register storing the optical power detection result last in an order from early to late.
For example, the register group is composed of A, B, C, D four registers. The register a is the optical power detection result stored in the first millisecond, the register B is the optical power detection result stored in the second millisecond, the register C is the optical power detection result stored in the third millisecond, and the register D is the optical power detection result stored in the fourth millisecond. The register D is used as the last register in the order of storing the optical power detection result from the early to the late.
After the optical power detection result stored in the first register a is deleted and the optical power detection result stored in the register B is stored in the previous register (i.e., the register a), the optical power detection result stored in the register C is stored in the previous register (i.e., the register B), and the optical power detection result stored in the register D is stored in the previous register (i.e., the register C), no data is stored in the register D, so that the obtained optical power detection result of the first route can be directly stored in the last register D.
In the technology disclosed by the disclosure, by updating the data stored in one register in the register group each time, the current optical power of the route can be effectively monitored, the stability of the optical power calculation result can be ensured, the calculation result of the whole register group cannot be influenced when the optical power detection result of an unstable optical signal of the first route is acquired, and the wrong judgment on the optical power condition of the first route is avoided.
In one embodiment, the method of optical power detection of the present disclosure includes steps S50 and S51, wherein S51: calculating the optical power of the first route according to the optical power detection result stored in the updated register set, which may further include:
and calculating an average value according to the optical power detection result stored in the updated register group to determine the optical power of the first route.
In the disclosed technology, by means of hardware averaging, not only can the optical power of the first route be rapidly calculated, but also the accuracy and the reference value of the calculation result can be ensured.
In one example, in a case where the optical power detection result of the first route is the continuous detection, each time a new optical power detection result is updated into the register group, the evaluation value is calculated once from the detection results of the registers of the register group.
In one example, a method of optical power detection includes:
and under the condition of obtaining the optical power detection result of the first route, determining a target register in which the optical power detection result in the register group corresponding to the first route is stored earliest.
And updating the optical power detection result stored in the target register based on the acquired optical power detection result of the first route.
And calculating an average value according to the optical power detection result stored in the updated register group to determine the optical power of the first route.
In the technology disclosed by the invention, the optical power of the first route can be rapidly calculated in a hardware averaging mode, and the accuracy and the reference value of the calculation result can be ensured.
In one example, a method of optical power detection includes:
and under the condition of acquiring the optical power detection result of the first route, deleting the optical power detection result in the first register according to the sequence of storing the optical power detection result in each register from early to late.
And sequentially storing the optical power detection results stored in other registers except the first register in the register group into the previous register.
And storing the acquired optical power detection result of the first route into a last register.
And calculating an average value according to the optical power detection result stored by each register in the updated register group so as to determine the optical power of the first route.
In the technology disclosed by the invention, the optical power of the first route can be rapidly calculated in a hardware averaging mode, and the accuracy and the reference value of the calculation result can be ensured.
In one embodiment, the method of optical power detection of the present disclosure includes steps S50 and S51, and may further include:
and under the condition that the optical power of the first route is lower than the threshold value, controlling the optical switch to interrupt signal transmission with the first route, and controlling the optical switch to be switched to be communicated with the second route so as to continue signal transmission.
In this embodiment, when the optical power of the first route is lower than the threshold, the route connected to the optical switch is switched, so that the signal can be continuously and stably transmitted to the optical switch by the second route, and the optical switch can transmit the signal with the service end without interruption.
In one embodiment, in a case where it is determined that the optical power of the first route is lower than the threshold, controlling the optical switch to interrupt signal transmission with the first route and controlling the optical switch to switch into communication with the second route to continue signal transmission may further include:
and acquiring the optical power of the second route under the condition that the optical power of the first route is determined to be lower than the threshold value.
And under the condition that the optical power of the second route is not lower than the threshold value, controlling the optical switch to interrupt signal transmission with the first route, and controlling the optical switch to be switched to be communicated with the second route so as to continue signal transmission.
The optical power detection method of the second route may refer to the optical power detection method of the first route, and is not described herein again. The FPGA can utilize each register to calculate the optical power of the multi-path route respectively.
In one embodiment, the method of optical power detection of the present disclosure includes steps S50 and S51, and may further include:
and determining the connection state of the optical switch with the first route and the second route according to the optical power detection result of the output end of the optical switch and the obtained optical power detection results of the first route and the second route.
Determining the connection state of the optical switch with the first route and the second route may be understood as determining whether the optical switch is currently in signal transmission with the first route or in signal transmission with the second route.
The optical power detection result at the output end of the optical switch can be collected by the second optical power detector. The FPGA can actively obtain the optical power detection result from the second optical power detector, and the second optical power detector can also actively send the optical power detection result to the FPGA.
In the disclosed technology, by collecting the optical power at the output end of the optical switch, the current signal transmission route of the optical switch can be accurately determined.
According to an embodiment of the present disclosure, as shown in fig. 8, the present disclosure also provides an apparatus 800 for optical power detection, including:
an updating module 810, configured to update, based on an obtained optical power detection result of a first route, an optical power detection result stored in a register group corresponding to the first route;
a calculating module 820, configured to calculate an optical power of the first route according to the optical power detection result stored in the updated register set.
In one embodiment, the update module 810 includes:
the determining submodule is used for determining a target register in which the optical power detection result in the register group corresponding to the first route is stored earliest under the condition that the optical power detection result of the first route is obtained;
and the updating submodule is used for updating the optical power detection result stored in the target register based on the acquired optical power detection result of the first route.
In one embodiment, the update module 810 includes:
the data deleting submodule is used for deleting the optical power detection result in the first register on the preset time node according to the time sequence of the optical power detection result stored in each register under the condition of acquiring the optical power detection result of the first route;
the first storage submodule is used for sequentially storing the optical power detection results stored in other registers except the first register in the register group into the previous register;
and the second storage submodule is used for storing the acquired optical power detection result of the first route into a last register.
In one embodiment, the calculating module 820 is configured to calculate an average value according to the optical power detection result stored in each register in the updated register set, so as to determine the optical power of the first route.
In one embodiment, the apparatus 800 for optical power detection further comprises:
and the switching module is used for controlling the optical switch to interrupt signal transmission with the first route and controlling the optical switch to be communicated with the second route so as to continue signal transmission under the condition that the optical power of the first route is determined to be lower than a threshold value.
In one embodiment, the switching module includes:
the obtaining submodule is used for obtaining the optical power of other first routes under the condition that the optical power of the first route is determined to be lower than a threshold value;
and the switching submodule is used for controlling the optical switch to interrupt signal transmission with the first route and controlling the optical switch to be switched to be communicated with the second route so as to continue signal transmission under the condition that the optical power of other first routes is not lower than a threshold value.
In one embodiment, the apparatus 800 for optical power detection further comprises:
and the determining module is used for determining the connection state of the optical switch with the first route and the second route according to the optical power detection result of the output end of the optical switch and the acquired optical power detection results of the first route and the second route.
In one embodiment, the apparatus 800 for optical power detection further comprises:
and the configuration module is used for configuring the register group for the first route according to a preset rule.
The functions of each unit, module or sub-module in each apparatus in the embodiments of the present disclosure may refer to the corresponding description in the above method embodiments, and are not described herein again.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 9 illustrates a schematic block diagram of an example electronic device 900 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the electronic apparatus 900 includes a computing unit 901, which can perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)902 or a computer program loaded from a storage unit 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 can also be stored. The calculation unit 901, ROM 902, and RAM 903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
A number of components in the electronic device 900 are connected to the I/O interface 905, including: an input unit 906 such as a keyboard, a mouse, and the like; an output unit 907 such as various types of displays, speakers, and the like; a storage unit 908 such as a magnetic disk, optical disk, or the like; and a communication unit 909 such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 909 allows the electronic device 900 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 901 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 901 performs the respective methods and processes described above, such as the method of optical power detection. For example, in some embodiments, the method of optical power detection may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 908. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 900 via the ROM 902 and/or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the method of optical power detection described above may be performed. Alternatively, in other embodiments, the computing unit 901 may be configured by any other suitable means (e.g., by means of firmware) to perform the method of optical power detection.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (23)

1. A light protection device comprising:
the input end of the optical switch is used for being connected with at least two routes, and the output end of the optical switch is used for being connected with a service end so as to transmit signals of one route to the service end;
a first optical power detector for connecting with the route to detect the optical power of the route;
and the FPGA is connected with the first optical power detector and used for acquiring the detection result of the first optical power detector, and the FPGA is also connected with the optical switch and used for switching the connection state of the optical switch and the route according to the detection result.
2. The apparatus of claim 1, further comprising:
and the second optical power detector is connected with the output end of the optical switch and used for detecting the optical power of the output end of the optical switch, and the second optical power detector is also connected with the FPGA so that the FPGA acquires the detection result of the second optical power detector.
3. The apparatus of claim 1, wherein two of said routes are included;
and under the condition that the optical protection device is in an optical protection switching working mode, the two routes are respectively connected with one input end of the optical switch, the two routes are respectively connected with one first optical power detector, and the output end of the optical switch is communicated with the service end.
4. The apparatus of any one of claims 1 to 3, wherein the optical switch is a magneto-optical switch, an electro-optical switch, or an SOA optical switch.
5. A method of optical power detection applied to the FPGA of any one of claims 1 to 4, the FPGA including a plurality of registers, the method comprising:
updating the optical power detection result stored in a register group corresponding to the first route based on the obtained optical power detection result of the first route;
and calculating the optical power of the first route according to the optical power detection result stored in the updated register group.
6. The method according to claim 5, wherein the updating, based on the obtained optical power detection result of the first route, the optical power detection result stored in a register of a register set corresponding to the first route includes:
under the condition of obtaining the optical power detection result of a first route, determining a target register in which the optical power detection result in a register group corresponding to the first route is stored earliest;
and updating the optical power detection result stored in the target register based on the acquired optical power detection result of the first route.
7. The method according to claim 5, wherein the updating, based on the obtained optical power detection result of the first route, the optical power detection result stored in a register of a register set corresponding to the first route includes:
under the condition of obtaining the optical power detection result of the first route, deleting the optical power detection result in a first register on a preset time node according to the time sequence of storing the optical power detection result in each register;
sequentially storing the optical power detection results stored in other registers except the first register in the register group into a previous register;
and storing the acquired optical power detection result of the first route into a last register.
8. The method of claim 5, wherein said calculating the optical power of the first route from the optical power detection results stored in the updated register set comprises:
and calculating an average value according to the optical power detection result stored in each register in the updated register group to determine the optical power of the first route.
9. The method of any of claims 5 to 8, further comprising:
and under the condition that the optical power of the first route is lower than the threshold value, controlling the optical switch to interrupt signal transmission with the first route, and controlling the optical switch to be switched to be communicated with the second route so as to continue signal transmission.
10. The method of any of claim 9, wherein the controlling the optical switch to interrupt signal transmission with the first route and to switch to communicate with the second route to continue signal transmission upon determining that the optical power of the first route is below a threshold comprises:
under the condition that the optical power of the first route is lower than a threshold value, acquiring the optical power of a second route;
and under the condition that the optical power of the second route is not lower than the threshold value, controlling the optical switch to interrupt signal transmission with the first route, and controlling the optical switch to be switched to be communicated with the second route so as to continue signal transmission.
11. The method of any of claims 5 to 8, further comprising:
and configuring the register group for the first route according to a preset rule.
12. The method of any of claims 5 to 8, further comprising:
and determining the connection state of the optical switch with the first route and the second route according to the optical power detection result of the output end of the optical switch and the acquired optical power detection results of the first route and the second route.
13. An apparatus for optical power detection, comprising:
the updating module is used for updating the optical power detection result stored in the register group corresponding to the first route based on the acquired optical power detection result of the first route;
and the calculating module is used for calculating the optical power of the first route according to the optical power detection result stored in the updated register group.
14. The apparatus of claim 13, wherein the update module comprises:
the determining submodule is used for determining a target register in which the optical power detection result in the register group corresponding to the first route is stored earliest under the condition that the optical power detection result of the first route is obtained;
and the updating submodule is used for updating the optical power detection result stored in the target register based on the acquired optical power detection result of the first route.
15. The apparatus of claim 13, wherein the update module comprises:
the data deleting submodule is used for deleting the optical power detection result in the first register on the preset time node according to the time sequence of the optical power detection result stored in each register under the condition of acquiring the optical power detection result of the first route;
the first storage submodule is used for sequentially storing the optical power detection results stored in other registers except the first register in the register group into the previous register;
and the second storage submodule is used for storing the acquired optical power detection result of the first route into a last register.
16. The apparatus of claim 13, wherein the calculating module is configured to calculate an average value according to the optical power detection result stored in each register of the updated register set, so as to determine the optical power of the first route.
17. The apparatus of any of claims 13 to 16, further comprising:
and the switching module is used for controlling the optical switch to interrupt signal transmission with the first route and controlling the optical switch to be communicated with the second route so as to continue signal transmission under the condition that the optical power of the first route is determined to be lower than a threshold value.
18. The apparatus of claim 17, wherein the switching module comprises:
the obtaining submodule is used for obtaining the optical power of other first routes under the condition that the optical power of the first route is determined to be lower than a threshold value;
and the switching submodule is used for controlling the optical switch to interrupt signal transmission with the first route and controlling the optical switch to be switched to be communicated with the second route so as to continue signal transmission under the condition that the optical power of other first routes is not lower than a threshold value.
19. The apparatus of any of claims 13 to 16, further comprising:
and the configuration module is used for configuring the register group for the first route according to a preset rule.
20. The apparatus of any of claims 13 to 16, further comprising:
and the determining module is used for determining the connection state of the optical switch with the first route and the second route according to the optical power detection result of the output end of the optical switch and the acquired optical power detection results of the first route and the second route.
21. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 5 to 12.
22. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 5 to 12.
23. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 5 to 12.
CN202110350666.XA 2021-03-31 2021-03-31 Optical protection device and optical power detection method Pending CN113098597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110350666.XA CN113098597A (en) 2021-03-31 2021-03-31 Optical protection device and optical power detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110350666.XA CN113098597A (en) 2021-03-31 2021-03-31 Optical protection device and optical power detection method

Publications (1)

Publication Number Publication Date
CN113098597A true CN113098597A (en) 2021-07-09

Family

ID=76673067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110350666.XA Pending CN113098597A (en) 2021-03-31 2021-03-31 Optical protection device and optical power detection method

Country Status (1)

Country Link
CN (1) CN113098597A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113890599A (en) * 2021-09-27 2022-01-04 武汉光迅科技股份有限公司 Optical path protection device, method, electronic apparatus and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800599A (en) * 2010-02-10 2010-08-11 瑞斯康达科技发展股份有限公司 Optical fiber circuit-protecting equipment and system
US20160134362A1 (en) * 2014-11-11 2016-05-12 International Business Machines Corporation Dynamic Optical Channel Sparing in an Industry Standard Input/Output Subsystem
US20180275193A1 (en) * 2015-10-15 2018-09-27 Menta System and method for testing and configuration of an fpga
CN111342891A (en) * 2020-03-26 2020-06-26 武汉光迅信息技术有限公司 Optical line switching method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800599A (en) * 2010-02-10 2010-08-11 瑞斯康达科技发展股份有限公司 Optical fiber circuit-protecting equipment and system
US20160134362A1 (en) * 2014-11-11 2016-05-12 International Business Machines Corporation Dynamic Optical Channel Sparing in an Industry Standard Input/Output Subsystem
US20180275193A1 (en) * 2015-10-15 2018-09-27 Menta System and method for testing and configuration of an fpga
CN111342891A (en) * 2020-03-26 2020-06-26 武汉光迅信息技术有限公司 Optical line switching method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113890599A (en) * 2021-09-27 2022-01-04 武汉光迅科技股份有限公司 Optical path protection device, method, electronic apparatus and storage medium

Similar Documents

Publication Publication Date Title
CN113098592B (en) Signal processing method and signal processing system
CN111835592B (en) Method, apparatus, electronic device and readable storage medium for determining robustness
CN107666415B (en) Optimization method and device of FC-AE-1553 protocol bridge
CN113098597A (en) Optical protection device and optical power detection method
CN115048235A (en) Link parameter configuration method, device, equipment and medium
CN108696427B (en) Data transmission method and device
CN114051001A (en) Flow data processing method and device, storage medium and electronic equipment
US8139499B2 (en) Method and arrangement for determining transmission delay differences
KR101909547B1 (en) Optical transmission system and transmission method, optical switching device and control method
CN110945800A (en) Optical performance monitoring device and method
US10257073B2 (en) Adaptive software defined networking controller
CN114064804A (en) Data interaction method, device, equipment and storage medium
JP7415192B2 (en) Communication system and OLT system
CN113949651A (en) Network transmission method, device, equipment, storage medium and program product
CN116938826B (en) Network speed limiting method, device and system and electronic equipment
CN112148563B (en) Information generation method, device, equipment and storage medium
US11822979B2 (en) Computer system and data transmission control method
CN113472882A (en) Network state switching method and device, client device and storage medium
CN116319158B (en) Node data processing method, device, equipment and medium based on daisy chain network
CN111866622B (en) Reducing power consumption of communication devices
US9317289B2 (en) Acknowledgement forwarding
CN114780468A (en) Server carrier plate, data communication method, server mainboard, system and medium
CN118301053A (en) Flow forwarding method, external network gateway shunt and public network gateway
CN118118386A (en) Link delay detection method, device, equipment and storage medium
CN115733810A (en) Data forwarding method, device, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210709