CN110417479B - Method and device for power adjustment - Google Patents

Method and device for power adjustment Download PDF

Info

Publication number
CN110417479B
CN110417479B CN201810404201.6A CN201810404201A CN110417479B CN 110417479 B CN110417479 B CN 110417479B CN 201810404201 A CN201810404201 A CN 201810404201A CN 110417479 B CN110417479 B CN 110417479B
Authority
CN
China
Prior art keywords
power
link
optical signal
link loss
compensation
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.)
Active
Application number
CN201810404201.6A
Other languages
Chinese (zh)
Other versions
CN110417479A (en
Inventor
袁舒瑞
邱劲松
汪青华
许继辉
周小雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201810404201.6A priority Critical patent/CN110417479B/en
Publication of CN110417479A publication Critical patent/CN110417479A/en
Application granted granted Critical
Publication of CN110417479B publication Critical patent/CN110417479B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/50Transmitters
    • H04B10/564Power control

Abstract

The application discloses a method and a device for power adjustment, wherein the method comprises the following steps: the first device determines a second link loss for the second link; the first device sends a first optical signal to the second device through the first link at an initial transmission power, wherein the first optical signal is used for the second device to determine a first link loss of the first link according to the receiving power and the initial transmission power of the first optical signal; the first device receives a second optical signal sent by the second device through a second link, wherein the transmission power of the second optical signal is determined by the second device according to the initial transmission power and the first link loss of the first link; the first device determines a first link loss according to the receiving power of the second optical signal, the second link loss and the initial transmitting power; the first device adjusts the transmission power of the first link according to the first link loss. By implementing the method, the first device can automatically adjust the transmitting power of the optical signal according to the link loss.

Description

Method and device for power adjustment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for power adjustment.
Background
An optical module (optical module) is one of core components of optical communication. The optical module is composed of an optoelectronic device, a functional circuit, an optical interface and the like, wherein the optoelectronic device comprises a transmitting part and a receiving part. Briefly, the optical module is used for realizing the mutual conversion of optical signals and electrical signals, the transmitting end converts the electrical signals into optical signals, and the receiving end converts the optical signals into the electrical signals after the optical signals are transmitted through the optical fibers. The optical module may also include a gigabit interface converter (GBIC). The optical module may be a small form-factor pluggable transceiver (SFP) optical module, an SFP + optical module, or the like.
In the existing practical application, the transmission power of the optical module is fixed. In order to satisfy the communication between the optical modules at different distances, the fixed transmission power of the optical module is usually very large. For example, the distance between optical module a and optical module B is 20 kilometers, and the distance between optical module a and optical module C is 100 kilometers. Because the transmitting power of the optical module A is fixed, a large transmitting power is set as the fixed transmitting power of the optical module A, and therefore communication between the optical module A and the optical modules B and C can be guaranteed.
Because the transmitting power of the optical module a is very large, when the optical module a communicates with optical modules at different distances, the optical attenuator is needed to attenuate the light transmitting power of the optical module a, so that distortion of an optical receiver caused by ultra-strong light transmitting power is avoided. At present, when the optical attenuator is deployed in the early period, a professional is required to perform the deployment, the light attenuation needs to be selected according to the type of the optical module and the length of the optical fiber, and the phenomenon that the optical module is burnt by the optical power due to improper operation of a non-professional person occurs. It can be seen that deploying the optical attenuator is very cumbersome. Therefore, how to automatically adjust the transmission power of the optical module is a problem to be solved urgently at present.
Disclosure of Invention
The application provides a method and a device for power adjustment, which can automatically adjust the transmission power of a transmission link according to the link loss of the transmission link, so that an optical attenuator does not need to be deployed.
In a first aspect, the present application provides a method for power adjustment, the method comprising: the first device determines a second link loss of a second link, wherein the second link is used for the first device to receive the optical signal sent by the second device; the first device sends a first optical signal to the second device through a first link at an initial transmission power, the first link is used for the first device to send the optical signal to the second device, and the first optical signal is used for the second device to determine a first link loss of the first link according to the receiving power and the initial transmission power of the first optical signal; the first device receives a second optical signal sent by the second device through a second link, wherein the transmission power of the second optical signal is determined by the second device according to the initial transmission power and the first link loss; the first device determines a first link loss according to the receiving power of the second optical signal, the second link loss and the initial transmitting power; the first device adjusts the transmission power of the first link according to the first link loss.
It can be seen that by implementing the method described in the first aspect, the first device can determine the link loss of the transmission link, and then automatically adjust the transmission power of the optical signal according to the link loss.
Optionally, the initial transmit power is greater than the receive sensitivity of the second device and less than the maximum receive power of the second device, and the adjusted transmit power of the first link is the sum of the initial transmit power and the first link loss.
By implementing this alternative, the received power of the optical signal received by the second device is the initial transmission power. Since the initial transmission power is greater than the receiving sensitivity of the second device and less than the maximum receiving power of the second device, the receiving power of the optical signal by the second device is in a reasonable range. Therefore, by implementing this alternative, the first device can automatically adjust the transmission power of the optical signal of the first device to a suitable transmission power, so that the reception power of the optical signal by the second device is within a reasonable range.
Optionally, the first apparatus may further receive, through the second link, a third optical signal transmitted by the second apparatus at the initial transmission power; accordingly, the specific implementation manner of the first device determining the second link loss of the second link is as follows: the first device determines a second link loss of the second link based on the received power and the initial transmit power of the third optical signal.
By implementing this alternative, the first device may automatically adjust the transmit power before the first device and the second device are in formal communication.
Optionally, the first device may further receive, through the second link, a fourth optical signal sent by the second device, where the fourth optical signal carries a sending power of the fourth optical signal; accordingly, the specific implementation manner of the first device determining the second link loss of the second link is as follows: the first device determines a second link loss of the second link according to the transmission power of the fourth optical signal and the receiving power of the fourth optical signal; the first device may also perform the steps of: the first device receives a fifth optical signal sent by the second device through a second link; accordingly, the specific implementation manner of the first device sending the first optical signal to the second device through the first link at the initial transmission power is as follows: when the first device detects that the sum of the second link loss and the receiving power of the fifth optical signal is the initial transmitting power, the first device sends the first optical signal to the second device through the first link at the initial transmitting power.
By implementing this alternative, the first device may automatically adjust the transmit power when the receive power of the first link is less than the receive sensitivity of the second device after the first device and the second device are in formal communication.
Optionally, a specific implementation manner of determining, by the first device, the first link loss according to the received power of the second optical signal, the second link loss, and the initial transmission power is as follows: the first device detects the received power of the second optical signal and determines a first compensation power Y1Value of (A), Y1=P1+PTB-P0Wherein P is1For the currently detected received power, P, of the second optical signalTBFor the second link loss, P0Is the initial transmit power; when the first compensation power Y1When the value of (A) is less than the preset power threshold value, the first device will make the first compensation power Y1Is determined as the first link loss.
By implementing this alternative embodiment, the second device may compensate the first link loss to the transmit power of the second link to accurately inform the first device of the first link loss.
Optionally, when the first compensation power Y1When the value of the first compensation power Y is equal to the preset power threshold value, the first device continues to detect the receiving power of the second optical signal and continues to determine the first compensation power Y according to the detected receiving power of the second optical signal1A value of (d); when the first compensation power Y1Is greater than zero and is less than a predetermined power threshold, the first device stops detecting the received power of the second optical signal and stops determining the first compensation power Y1And determines the power P of the last compensation of the second devicexIs as followsA compensation power Y1A value of (d); when the receiving power of the second optical signal is detected to be that the first receiving power continuously reaches the preset duration, the first device stops detecting the receiving power of the second optical signal and stops determining the first compensation power Y1And determines the power P of the last compensation of the second devicexZero, the first received power is the difference between the initial transmit power and the second link loss; the first device determines the number N of times of compensating the transmission power to the second link by using a preset power threshold, wherein the number N is the first compensation power Y1Is equal to the total number of the preset power threshold values, and N is a positive integer; the first device is based on the preset power threshold, the times N and PxDetermining a first link loss, wherein PTA=N*PTH+Px,PTAFor the first link loss, PTHTo preset a power threshold, PxGreater than or equal to zero and less than a preset power threshold.
By implementing the alternative, when the first link is too much consumed, the second device can compensate the first link consumption to the transmission power of the second link for multiple times, so as to avoid the first device from being damaged due to too much receiving power of the signal received by the first device.
Optionally, when the first compensation power Y1When the value of the first compensation power Y is equal to the preset power threshold value, the first device continues to detect the receiving power of the second optical signal and continues to determine the first compensation power Y according to the detected receiving power of the second optical signal1A value of (d); determining a target power P during detection of the received power of the second optical signal by the first device3Target power P3=n*PTH+P0N is the determined first compensation power Y1Is equal to the number of preset power thresholds; when the target power P3Stopping detecting the received power of the second optical signal and determining the first compensation power Y when the maximum transmission power is higher than the maximum transmission power of the first device1And reporting fault information to the host.
When the target power P3Greater than the maximum transmit power of the first device, indicating a first link loss PTAToo large, the first link may appearAnd (4) failure. Therefore, by implementing the optional mode, the fault information can be reported to the host in time, so that maintenance personnel can find that the first link has the fault in time.
Optionally, after the first device adjusts the transmission power of the first link according to the first link loss, the first device receives a sixth optical signal sent by the second device through the second link, where the sixth optical signal includes a signal quality parameter, and the signal quality parameter is used to indicate the signal reception quality of the first link; the first device adjusts the transmit power of the first link based on the signal quality parameter.
By implementing the alternative mode, when the first device and the second device are in formal communication, the first device can finely adjust the signal transmission power according to the signal receiving quality condition of the second device, so as to maintain the optimal communication effect.
In a second aspect, the present application provides a method for power adjustment, the method comprising: the second device receives a first optical signal sent by the first device at initial transmission power through a first link, wherein the first link is used for the second device to receive the optical signal sent by the first device; the second device determines a first link loss of the first link according to the receiving power and the initial transmitting power of the first optical signal; the second device sends a second optical signal to the first device over a second link, the second optical signal having a transmit power determined based on the initial transmit power and the first link loss, the second link being used for the second device to send the optical signal to the first device.
It can be seen that by implementing the method described in the second aspect, it is advantageous for the first device to determine the link loss of the transmission link, and then automatically adjust the transmission power of the optical signal according to the link loss.
Optionally, the initial transmit power is greater than the receive sensitivity of the second apparatus and less than the maximum receive power of the second apparatus. By implementing the alternative mode, the first device can automatically adjust the transmitting power of the optical signal of the first device to be proper transmitting power, so that the receiving power of the optical signal of the second device is in a reasonable range.
Optionally, before the second device sends the second optical signal to the first device through the second link, the second device further sends a third optical signal to the first device through the second link at the initial transmission power.
By implementing this alternative, it is advantageous for the first device to automatically adjust the transmit power before the first device and the second device are in formal communication.
Optionally, before the second apparatus receives the first optical signal transmitted by the first apparatus at the initial transmission power through the first link, the second apparatus further performs the following steps: the second device sends a fourth optical signal to the first device through a second link, wherein the fourth optical signal carries the sending power of the fourth optical signal; and when the second device detects that the receiving power of the first link is less than the receiving sensitivity of the second device, the second device sends a fifth optical signal to the first device through the second link at the initial transmitting power.
By implementing this alternative, it is advantageous for the first device to automatically adjust the transmission power when the reception power of the first link is less than the reception sensitivity of the second device by the second device after the first device and the second device are in formal communication.
Optionally, when the first link loss is smaller than the preset power threshold, the transmission power of the second optical signal is the power compensated by the first link loss, and the transmission power of the second optical signal is the sum of the first link loss and the initial transmission power.
By implementing this alternative, the second device can compensate the first link loss to the transmit power of the second link to accurately inform the first device of the first link loss.
Optionally, when the first link loss is greater than or equal to the preset power threshold, the first link loss is divided into N +1 times to compensate the transmission power of the second link, the transmission power after the first N times of compensation is the sum of the preset power threshold and the initial transmission power, and the transmission power after the last time of compensation is PxAnd the sum of the initial transmit power, wherein PTA=N*PTH+Px,PTAFor the first link loss, PTHIs a preset power threshold, N is a positive integer, PxGreater than or equal to zero and less than a preset power threshold; the transmission power of the second optical signal is alternately changed according to the compensated transmission power and the initial transmission power.
By implementing the alternative, when the first link is too much consumed, the second device can compensate the first link consumption to the transmission power of the second link for multiple times, so as to avoid the first device from being damaged due to too much receiving power of the signal received by the first device.
Optionally, after the second device sends the second optical signal to the first device through the second link, the method further includes: and the second device sends a sixth optical signal to the first device through the second link, wherein the sixth optical signal comprises a signal quality parameter which is used for indicating the signal receiving quality of the first link.
By implementing the alternative mode, when the first device and the second device are in formal communication, the first device can finely adjust the signal transmission power according to the signal receiving quality condition of the second device, so as to maintain the optimal communication effect.
In a third aspect, an apparatus for power adjustment is provided, which may perform the method in the first aspect, the second aspect, the possible implementation manner of the first aspect, or the possible implementation manner of the second aspect. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more units corresponding to the above functions. The unit may be software and/or hardware. Based on the same inventive concept, the principle and the advantageous effects of the apparatus for power adjustment may be found in the first aspect, the second aspect, the possible implementation manner of the first aspect, or the possible implementation manner of the second aspect, and the description of the repeated points is omitted.
In a fourth aspect, an apparatus for power regulation is provided, the apparatus for power regulation comprising: a processor and a transceiver; the processor is connected with the transceiver; the transceiver is used for realizing communication with other network elements. Wherein the processor is configured to implement the aspects of the first aspect, the second aspect, the possible implementations of the first aspect, or the possible implementations of the second aspect; the device for power adjustment is a light module, or the light module is included in the device for power adjustment, that is, the light module belongs to a part of the device for power adjustment. For the embodiments and the advantages of the apparatus for power adjustment to solve the problems, reference may be made to the first aspect, the second aspect, the possible embodiments of the first aspect, or the possible embodiments and advantages of the second aspect, and repeated descriptions are omitted.
In a fifth aspect, a computer program product is provided, which, when run on a computer, causes the computer to perform the method of the first aspect, the second aspect, the possible implementations of the first aspect, or the possible implementations of the second aspect described above.
A sixth aspect provides a chip product for an apparatus for power adjustment, performing the method of the first aspect, the second aspect, the possible implementations of the first aspect, or the possible implementations of the second aspect.
In a seventh aspect, a computer-readable storage medium is provided, in which instructions are stored, which, when executed on a computer, cause the computer to perform the above-mentioned first aspect, second aspect, possible implementations of the first aspect, or the method in possible implementations of the second aspect.
Drawings
Fig. 1 is a schematic diagram of a communication system provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a method for power adjustment according to an embodiment of the present application;
3-5 are schematic diagrams of interaction flows between a first device and a second device provided by an embodiment of the present application;
FIGS. 6 and 7 are schematic diagrams of the variation of the transmission power of the second optical signal provided by the embodiments of the present application;
FIG. 8 is a schematic diagram of another method for power adjustment provided by an embodiment of the present application;
FIG. 9 is a schematic diagram of yet another method for power adjustment provided by an embodiment of the present application;
FIG. 10 is a schematic diagram of yet another method for power adjustment provided by an embodiment of the present application;
FIG. 11 is a schematic diagram of yet another method for power adjustment provided by an embodiment of the present application;
fig. 12 is a schematic interaction flow diagram between a first device and a second device provided in an embodiment of the present application;
fig. 13 is a schematic structural diagram of an apparatus for power adjustment according to an embodiment of the present disclosure;
fig. 14 is a schematic structural diagram of another apparatus for power adjustment according to an embodiment of the present disclosure.
Detailed Description
Specific embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Embodiments of the present application provide a method and an apparatus for power adjustment, which can automatically adjust transmit power of a transmit link according to link loss of the transmit link, so that an optical attenuator does not need to be deployed.
In order to better understand the embodiments of the present application, the following describes a communication system according to the embodiments of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram of a communication system according to an embodiment of the present disclosure. As shown in fig. 1, the communication system includes a first device and a second device. Wherein the first device and the second device communicate over a first link and a second link. The first link is used for the first device to transmit optical signals to the second device, and is used for the second device to receive the optical signals transmitted by the first device. The second link is used for the second device to transmit optical signals to the first device, and is used for the first device to receive the optical signals transmitted by the second device. The first link and the second link are not identical.
Optionally, the first link and the second link may be fiber optic links. Alternatively, the first apparatus and the second apparatus may be a light module, or a light module belongs to a part of the first apparatus and the second apparatus. Alternatively, the first apparatus may be located in a first device and the second apparatus may be located in a second device. The first device and the second device may be optical transceivers, switches, routers or base stations, etc. The optical module may be an SFP, a Gigabit interface converter (GBIC), a 10Gigabit Small Form Factor Pluggable transceiver XFP (10Gigabit Small Form Factor plug), or the like.
The communication method and the related device provided by the present application are described in detail below.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for power adjustment according to an embodiment of the present disclosure. As shown in FIG. 2, the method for power adjustment includes the following steps 201-206, wherein:
in step 201, the first device determines a second link loss of the second link.
Step 202, the first device sends a first optical signal to the second device over the first link at an initial transmit power.
In the embodiment of the present application, step 201 may be performed before step 202, or step 201 may be performed after step 202 and before step 205.
Step 203, the second device determines a first link loss of the first link according to the received power and the initial transmission power of the first optical signal.
In an embodiment of the present application, a second device receives, through a first link, a first optical signal transmitted by a first device at an initial transmission power. After the second device receives the first optical signal, the received power of the first optical signal can be detected, and the first link loss of the first link can be determined according to the received power and the initial transmission power of the first optical signal. The initial transmit power is a transmit power preset on the first device and the second device.
Since the received power of the first optical signal is equal to the initial transmit power minus the first link loss, the second device may determine the difference between the initial transmit power and the received power of the first optical signal as the first link loss.
Step 204, the second device sends the second optical signal to the first device through the second link.
Step 204 is performed after step 203. That is, after the second device determines the first link loss, the second device sends a second optical signal to the first device over the second link.
Wherein the transmission power of the second optical signal is determined based on the first link loss and the initial transmission power. Specifically, after determining the first link loss, the second device determines the transmission power of the second optical signal according to the first link loss and the initial transmission power, and then sends the second optical signal to the first device through the second link at the determined transmission power of the second optical signal.
Step 205, the first device determines a first link loss according to the received power of the second optical signal, the second link loss and the initial transmission power.
In this embodiment, after the first device receives the second optical signal sent by the second device through the second link, the first device detects the received power of the second optical signal, and determines the first link loss according to the received power of the second optical signal, the second link loss, and the initial transmission power.
Step 206, the first device adjusts the transmission power of the first link according to the first link loss.
In an embodiment of the present application, after determining a first link loss, the first device adjusts a transmit power of the first link according to the first link loss.
For example, as shown in FIG. 3, the first device determines the second link loss PTBIs 13dBm (decibel milliwatts). The first device transmits at an initial power P0The first optical signal is transmitted to a second device. After the second device receives the first optical signal, the received power of the first optical signal is determined. It can be seen that the received power of the first optical signal is P0-PTAWherein P isTAA first link loss for the first link. After the second device determines the received power of the first optical signal, the initial transmitting power P is determined0The difference between the received power of the first optical signal and the received power of the first optical signal is determined as a first link loss PTA. Assuming an initial transmit power P020dBm, the received power of the first optical signal is 8dBm, and the first link loss PTAIs 12 dBm.
The second device determines a first link loss PTAThen, according to the first link loss PTAAnd an initial transmission power P0The transmit power of the second optical signal is determined and the second optical signal is transmitted over the second link to the first device at the determined transmit power. The first device receives power P according to the second optical signal1Second link loss PTBAnd an initial transmission power P0Determining a first link loss PTA. For example, the transmission power of the second optical signal may be the initial transmission power P0And first link loss PTASum, i.e. P0+PTA. Thus, the received power P of the second optical signal1=P0+PTA-PTB. The first device receives power P according to the second optical signal1Second link loss PTBAnd an initial transmission power P0A first link loss P can be determinedTAI.e. PTA=P1-P0+PTB. Of course, the transmission power of the second optical signal may also be based on the first link loss PTAAnd an initial transmission power P0The determined other transmission power is not limited in the embodiments of the present application.
The first device determines a first link loss PTAThereafter, P can be determined based on the first link lossTAThe transmit power of the first link is adjusted.
It can be seen that by implementing the method described in fig. 2, the first device can determine the link loss of the transmission link, and then automatically adjust the transmission power of the optical signal according to the link loss. Thus, by implementing the method described in FIG. 2, the transmit power of the optical signal of the first device can be automatically adjusted without deploying an optical attenuator.
In one possible embodiment, the initial transmit power is greater than the receive sensitivity of the second apparatus and less than the maximum receive power of the second apparatus. The adjusted transmission power of the first link is the sum of the initial transmission power and the first link loss. The receiving sensitivity of the second device refers to the minimum signal receiving power at which the second device can correctly receive the signal. The maximum received power of the second device is the maximum received power at which the second device can receive signals.
By implementing this possible embodiment, the received power of the optical signal received by the second device is the initial transmission power. Since the initial transmission power is greater than the receiving sensitivity of the second device and less than the maximum receiving power of the second device, the receiving power of the optical signal by the second device is in a reasonable range. Therefore, by implementing this embodiment, the first device can automatically adjust the transmission power of the optical signal of the first device to a suitable transmission power, so that the reception power of the optical signal by the second device is within a reasonable range.
In a possible embodiment, when the second apparatus determines that the first link loss is smaller than the predetermined power threshold, the transmission power of the second optical signal is compensated by the first link loss, and the transmission power of the second optical signal is the sum of the first link loss and the initial transmission power.
Accordingly, the embodiment of the first device determining the first link loss according to the received power of the second optical signal, the second link loss and the initial transmission power comprises the following steps:
(11) the first device detects the received power of the second optical signal and determines a first compensation power Y1Value of (A), Y1=P1+PTB-P0,P1For the currently detected received power, P, of the second optical signalTBFor the second link loss, P0Is the initial transmit power.
(12) When the first compensation power Y1When the value of (A) is less than the preset power threshold value, the first device will make the first compensation power Y1Is determined as the first link loss.
For example, as shown in FIG. 4, the second device determines the first link loss P according to the method described above with reference to FIG. 3TAIs 12 dBm. The first device determines a second link loss PTBIs 13 dBm.
If the power threshold P is presetTHAt 14dBm, the second device determines the first link loss PTAThen, the second device determines the emission power of the second optical signal as P0+PTAAnd transmitting a second optical signal to the first device over the second link at the determined transmit power. After the first device receives the second optical signal, the receiving power P of the second optical signal is determined1And determining a first compensation power Y1Value of (A), Y1=P1+PTB-P0. Received power P of the second optical signal1At 19dBm, second link loss PTBAt 13dBm, initial transmit power P0Is 20dBm, so the first compensation power Y1The value of (d) is 12 dBm. Due to the first compensation power Y1Is less than a predetermined power threshold, the first device determines a first link loss PTAIs 12 dBm. Finally, the first device uses the first link loss PTAThe transmit power of the first link is adjusted. FIG. 4 shows the adjusted transmission power as PTA+P0For example.
By implementing this possible embodiment, the second device can compensate the first link loss to the transmit power of the second link to accurately inform the first device of the first link loss.
Optionally, when the second device determines that the first link loss is greater than or equal to the preset power threshold, the first link loss is divided into N +1 times to compensate the transmission power of the second link, the transmission power after the first N times of compensation is the sum of the preset power threshold and the initial transmission power, and the transmission power after the last time of compensation is PxAnd the sum of the initial transmit power, wherein PTA=N*PTH+Px,PTAFor the first link loss, PTHIs a preset power threshold, N is a positive integer, PxGreater than or equal to zero and less than a preset power threshold; the transmission power of the second optical signal is alternately changed according to the compensated transmission power and the initial transmission power.
Accordingly, the specific implementation manner of the first device determining the first link loss according to the received power of the second optical signal, the second link loss and the initial transmission power includes the following steps in addition to the above (11) and (12):
(13) when the first compensation power Y1Is equal to a predetermined power threshold, the firstAn apparatus continues to detect the received power of the second optical signal and continues to determine a first compensation power Y based on the detected received power of the second optical signal1The value of (c).
(14) When the first compensation power Y1Is greater than zero and is less than a predetermined power threshold, the first device stops detecting the received power of the second optical signal and stops determining the first compensation power Y1And determining PxIs greater than zero and less than a first compensation power Y of a predetermined power threshold1The value of (c).
(15) When the receiving power of the second optical signal is detected to be that the first receiving power continuously reaches the preset duration, the first device stops detecting the receiving power of the second optical signal and stops determining the first compensation power Y1And determines the power P of the last compensation of the second devicexThe first received power is the difference between the initial transmit power and the second link loss.
(16) The first device determines the number N of times of compensating the transmission power to the second link by using a preset power threshold, wherein the number N is the first compensation power Y1Is equal to the total number of the preset power thresholds, where N is a positive integer.
(17) The first device is based on the preset power threshold, the times N and PxDetermining a first link loss, wherein PTA=N*PTH+Px
By implementing the alternative, when the first link is too much consumed, the second device can compensate the first link consumption to the transmission power of the second link for multiple times, so as to avoid the first device from being damaged due to too much receiving power of the signal received by the first device.
For example, as shown in FIG. 5, the second device determines the first link loss P according to the method described above with reference to FIG. 3TAIs 12 dBm. The first device determines a second link loss PTBIs 13 dBm.
If the power threshold P is presetTHIs 5dBm, since PTA=N*PTH+Px12dBm, N is a positive integer, PxGreater than or equal to zero and less than a predetermined power threshold PTH. Thus, N is equal to 2, PxEqual to 2 dBm. The second device determines a first link loss PTAThen, the first link is lost by PTACompensating the transmitting power of the second link for 3 times, wherein the transmitting power of the second link after the first compensation is P0+5dBm, the transmitting power of the second link after the second compensation is P0+5dBm, the transmitting power of the second link after the third compensation is P0+2 dBm. The second device is according to the compensated transmitting power and the initial transmitting power P0The second optical signal is alternately transmitted. For example, the variation of the transmission power of the second optical signal may be as shown in fig. 6.
Accordingly, the first device detects the received power of the second optical signal. The first device detects the received power P of the second optical signal for the first time1Is P0+5-PTB. The first device detects the receiving power P of the second optical signal according to the current1Determining a first compensation power Y1The value of (c). Due to the first compensation power Y1=P1+PTB-P05dBm, first compensation power Y1Is equal to a predetermined power threshold value PTHSo that the first device continues to detect the received power of the second optical signal and continues to determine the first compensation power Y based on the detected received power of the second optical signal1And the first device records the number of times the preset power threshold is compensated to the transmission power of the second link as 1. Optionally, the first device may start a counter to count the number of times the preset power threshold is compensated to the transmission power of the second link. The received power P of the second optical signal detected by the first device for the second time1Is P0-PTBThe first device detects the received power P of the second optical signal according to the second time1Determining a first compensation power Y1=P1+PTB-P 00 dBm. The received power P of the second optical signal detected by the first device for the third time1Is P0+5-PTBThe first device detects the received power P of the second optical signal according to the third time1Determining a first compensation power Y1=P1+PTB-P 05 dBm. Due to the fact thatThe first device records the number of times that the preset power threshold is compensated to the transmission power of the second link as 2, i.e. the counter is increased by 1. The fourth detection of the first device is carried out on the received power P of the second optical signal0-PTBThe first device detects the received power P of the second optical signal according to the fourth time1Determining a first compensation power Y1=P1+PTB-P 00 dBm. The received power P of the second optical signal detected by the first device for the fifth time1Is P0+2-PTBDue to the received power P of the second optical signal detected from the fifth time1Determined first compensation power Y1=P1+PTB-P02dBm, first compensation power Y1Is less than a predetermined power threshold value PTH(i.e., 5), and greater than 0, then the first device determines PxIs 2 dBm. When the first device detects the first compensation power Y1Is less than a predetermined power threshold value PTH(i.e., 5dBm) and greater than 0, the first device stops detecting the received power of the second optical signal and stops determining the first compensation power Y1The value of (c). Finally, the first device determines the number of times N that the preset power threshold is compensated to the transmission power of the second link is 2, and PxIs 2 dBm. The first device determines a first link loss PTA=N*PTH+Px. Finally, the first device uses the first link loss PTAThe transmit power of the first link is adjusted. FIG. 5 shows the adjusted transmission power as PTA+P0For example.
As another example, if the power threshold P is presetTHIs 6dBm, since PTA=N*PTH+Px12dBm, N is a positive integer, PxGreater than or equal to zero and less than a predetermined power threshold PTH. Thus, N is equal to 2, PxEqual to 0 dBm. The second device determines a first link loss PTAThen, the first link is lost by PTACompensating the transmitting power of the second link for 3 times, wherein the transmitting power of the second link after the first compensation is P0+6, the transmission power of the second link after the second compensation is P0+6, the transmission power of the second link after the third compensationA rate of P0+0. The second device is according to the compensated transmitting power and the initial transmitting power P0The second optical signal is alternately transmitted. For example, the variation of the second optical signal may be as shown in fig. 7.
Accordingly, the first device detects the received power of the second optical signal. The first device detects the received power P of the second optical signal for the first time1Is P0+6-PTB. The first device detects the received power P of the second optical signal according to the first time1Determining a first compensation power Y1The value of (c). Due to the first compensation power Y1=P1+PTB-P06dBm, first compensation power Y1Is equal to a predetermined power threshold value PTHSo that the first device continues to detect the received power of the second optical signal and continues to determine the first compensation power Y based on the detected received power of the second optical signal1And the first device records the number of times the preset power threshold is compensated to the transmission power of the second link as 1. The received power P of the second optical signal detected by the first device for the second time1Is P0-PTBThe first device detects the received power P of the second optical signal according to the second time1Determining a first compensation power Y1=P1+PTB-P 00 dBm. The received power P of the second optical signal detected by the first device for the third time1Is P0+6-PTBThe first device detects the received power P of the second optical signal according to the third time1Determining a first compensation power Y1=P1+PTB-P06 dBm. The first device thus records the number of times the preset power threshold is compensated to the transmission power of the second link as 2, i.e. the counter is incremented by 1. The received power P of the second optical signal detected by the first device for the fourth time1Is P0-PTBAnd the received power P of the second optical signal is detected for 2ms consecutively1Is P0-PTBThus, the first device determines PxIs 0 dBm. When the first device detects that the continuous 2ms reception detects that the receiving power of the second optical signal is P0-PTBWhen the first device stops detectingReceiving power of the two optical signals and stopping determining the first compensation power Y1
Finally, the first device determines that N is 2, and PxIs 0 dBm. The first device determines a first link loss PTA=N*PTH+Px
Optionally, the first device may perform the following steps in addition to performing (11) and (12) above:
(21) when the first compensation power Y1When the value of the first compensation power Y is equal to the preset power threshold value, the first device continues to detect the receiving power of the second optical signal and continues to determine the first compensation power Y according to the detected receiving power of the second optical signal1The value of (c).
(22) Determining a target power P during detection of the received power of the second optical signal by the first device3The target power P3=n*PTH+P0N is the determined first compensation power Y1Is equal to the number of preset power thresholds.
(23) When the target power P3Stopping detecting the received power of the second optical signal and determining the first compensation power Y when the maximum transmission power is higher than the maximum transmission power of the first device1And reporting fault information to the host. The host may be a device in which the first apparatus is located, such as the first device described in the foregoing communication system.
When the target power P3Greater than the maximum transmit power of the first device, indicating a first link loss PTAToo large, the first link may fail. Therefore, by implementing the optional mode, the fault information can be reported to the host in time, so that maintenance personnel can find that the first link has the fault in time.
For example, if the second device determines that the first link loss P isTAAt 30dBm, a predetermined power threshold PTHAt 4dBm, the second device compensates the transmitting power of the second link for 8 times, and the power compensated for the first 7 times is the preset power threshold value PTH(i.e., 4) the power of the last compensation is Px(i.e., 2 dBm). If the maximum transmit power of the first device is 55dBm,initial transmission power P0At 40dBm, a first compensation power Y is determined at the first device1Is equal to the preset power threshold value, the target power P is 43=4*PTH+P056 dBm. Due to the target power P at this time3Greater than the maximum transmission power of the first device, the first device stops detecting the reception power of the second optical signal and stops determining the first compensation power Y1And reporting fault information to the host.
Optionally, when the first device determines the target power P3Greater than the maximum transmission power of the first device, and a second link loss PTBLess than a predetermined power threshold PTHThe first device may also transmit power P to the second device0+PTBAnd P0+PTHAlternately transmitting the optical signal to notify the second device to stop transmitting the second optical signal. The second device detects that the receiving power of the optical signal of the first link is P0+PTB-PTAAnd P0+PTH-PTAAnd stopping sending the second optical signal when the first optical signal is changed alternately.
A first link loss P is indicated when the first device determines that the target power P3 is greater than the maximum transmit power of the first deviceTAToo large, at which point the use of the first link loss P is not neededTAThe transmission power of the first link is adjusted, so that the first device does not need to continuously detect the receiving power of the second optical signal to determine the first link loss PTA. Therefore, by implementing the optional mode, the first device can timely inform the second device to stop sending the second optical signal, which is beneficial to saving the CPU resource of the second device.
Optionally, the first device continuously transmits the optical signal to the second device during the process of receiving the second optical signal. And if the second device does not receive any optical signal through the first link within a preset time period in the process of sending the second optical signal, the second device reports indication information for indicating that the optical fiber corresponding to the first link is pulled out to the host.
By implementing the optional mode, the second device may timely detect whether the optical fiber corresponding to the first link is pulled out, and timely report the indication information for indicating that the optical fiber corresponding to the first link is pulled out to the host, so that the operation and maintenance personnel can timely find that the optical fiber corresponding to the first link is pulled out.
Referring to fig. 8, fig. 8 is a flowchart illustrating another method for power adjustment according to an embodiment of the present disclosure. As shown in FIG. 8, the method for power adjustment includes the following steps 801-807, wherein:
step 801, the second device sends a third optical signal to the first device through the second link at the initial transmission power.
In this embodiment, the first device may first send the first optical signal to the second device, so that the second device determines the first link loss, and then the second device sends the third optical signal to the first device, so that the first device determines the second link loss. Alternatively, the second device may send the third optical signal to the first device first, so that the first device determines the second link loss, and then the first device sends the first optical signal to the second device, so that the second device determines the first link loss, which is not limited in the embodiment of the present application.
Step 802, the first device determines a second link loss of the second link according to the received power and the initial transmission power of the third optical signal.
In this embodiment, the first device receives, through the second link, a third optical signal transmitted by the second device at the initial transmission power. After the first device receives the third optical signal, the receiving power of the third optical signal is detected, and the second link loss of the second link is determined according to the receiving power and the initial transmitting power of the third optical signal.
Since the received power of the third optical signal is equal to the initial transmission power minus the second link loss, the first device may determine a difference between the initial transmission power and the received power of the third optical signal as the second link loss.
Step 803, the first device sends the first optical signal to the second device over the first link at the initial transmit power.
Step 804, the second device determines a first link loss of the first link according to the received power and the initial transmission power of the first optical signal.
Step 805, the second device sends a second optical signal to the first device over the second link.
In step 806, the first device determines a first link loss according to the received power of the second optical signal, the second link loss and the initial transmission power.
Step 807, the first device adjusts the transmission power of the first link according to the first link loss.
The specific implementation of steps 803 to 807 is the same as that of steps 202 to 206 in the above method embodiment, and reference may be made to the corresponding description of steps 203 to 206, which is not repeated herein.
By implementing the method described in fig. 8, the first device may automatically adjust the transmit power before the first device and the second device are in formal communication.
Referring to fig. 9, fig. 9 is a flowchart illustrating another method for power adjustment according to an embodiment of the present disclosure. As shown in FIG. 9, the method for power adjustment includes the following steps 901-908, wherein:
step 901, the second device sends a fourth optical signal to the first device through the second link.
Wherein the fourth optical signal carries a transmission power of the fourth optical signal.
Step 902, the first device determines a second link loss of the second link according to the transmission power of the fourth optical signal and the reception power of the fourth optical signal.
In this embodiment, after receiving the fourth optical signal, the first device decodes the transmission power of the fourth optical signal from the fourth optical signal, and determines a second link loss of the second link according to the transmission power of the fourth optical signal and the reception power of the fourth optical signal.
Wherein the second link loss is the transmission power of the fourth optical signal minus the reception power of the fourth optical signal.
Step 903, when the second device detects that the receiving power of the first link is smaller than the receiving sensitivity of the second device, the fifth optical signal is sent to the first device through the second link with the initial transmitting power.
Step 904, when detecting that the sum of the second link loss and the receiving power of the fifth optical signal is the initial transmitting power, the first device sends the first optical signal to the second device through the first link with the initial transmitting power.
In this embodiment, after the first device receives the fifth optical signal, when detecting that the sum of the second link loss and the received power of the fifth optical signal is the initial transmission power, the first device sends the first optical signal to the second device through the first link at the initial transmission power.
Step 905, the second device determines a first link loss of the first link according to the received power and the initial transmission power of the first optical signal.
Step 906, the second device sends a second optical signal to the first device over the second link.
In step 907, the first device determines a first link loss according to the received power of the second optical signal, the second link loss and the initial transmission power.
Step 908, the first device adjusts the transmit power of the first link according to the first link loss.
The specific implementation of steps 904-908 is the same as that of steps 202-206 in the above method embodiment, and specific reference may be made to the corresponding description of steps 202-206, which is not repeated herein.
By implementing the method described in fig. 9, the first device may automatically adjust the transmit power when the second device has a receive power of the first link less than the receive sensitivity of the second device after the first device and the second device are in formal communication.
Referring to fig. 10, fig. 10 is a flowchart illustrating another method for power adjustment according to an embodiment of the present disclosure. As shown in FIG. 10, the method for power adjustment includes the following 1001-1008 parts, wherein:
step 1001, the first device determines a second link loss of the second link.
Step 1002, the first device sends a first optical signal to the second device through the first link at an initial transmission power.
Step 1003, the second device determines a first link loss of the first link according to the received power and the initial transmitting power of the first optical signal.
Step 1004, the second device sends a second optical signal to the first device over the second link.
Step 1005, the first device determines the first link loss according to the receiving power of the second optical signal, the second link loss and the initial transmitting power.
Step 1006, the first device adjusts the transmission power of the first link according to the first link loss.
The specific implementation of steps 1001 to 1006 is the same as that of steps 201 to 206 in the above method embodiment, and specific reference may be made to the corresponding description of steps 201 to 206, which is not described herein again.
Step 1007, the second device sends the sixth optical signal to the first device through the second link.
Wherein, the sixth optical signal comprises a signal quality parameter, and the signal quality parameter is used for indicating the signal receiving quality of the first link. Optionally, the signal quality parameter includes at least one of a received signal power and a received bit error rate of the first link, or the information quality parameter may also be another parameter for indicating signal reception quality of the first link, which is not limited in the embodiment of the present application.
Step 1008, the first device adjusts transmit power of the first link according to the signal quality parameter.
In this embodiment of the present application, after receiving, by a first device, a sixth optical signal sent by a second device through a second link, a signal quality parameter is obtained by decoding the sixth optical signal, and a transmission power of the first link is adjusted according to the signal quality parameter. For example, when the signal quality parameter indicates that the signal reception quality of the first link is poor, the first device may increase the transmission power of the first link so that the signal reception quality of the second device on the first link becomes good.
It can be seen that, by implementing steps 1007 and 1008, when the first device and the second device are in formal communication, the first device can finely adjust the signal transmission power according to the signal reception quality of the second device, so as to maintain the optimal communication effect.
It is worth mentioning that the first device and the second device may have the same function. The second device may also adjust the transmit power of the second link according to the same principles as the first device before the first device and the second device are in formal communication.
Referring to fig. 11, fig. 11 is a flowchart illustrating another method for power adjustment according to an embodiment of the present disclosure. As shown in FIG. 11, the method for power adjustment comprises the following parts 1101-1110, wherein:
step 1101, the first device sends a first optical signal to the second device over the first link at an initial transmit power.
Step 1102, the second device determines a first link loss of the first link according to the received power and the initial transmit power of the first optical signal.
Step 1103, the second device sends a third optical signal to the first device through the second link at the initial transmission power.
In step 1104, the first device determines a second link loss of the second link according to the received power and the initial transmission power of the third optical signal.
Step 1105, the second device sends a second optical signal to the first device over the second link.
Step 1106, the first device determines a first link loss according to the received power of the second optical signal, the second link loss and the initial transmission power.
Step 1107, the first device adjusts the transmit power of the first link according to the first link loss.
The specific implementation of the steps 1101 to 1107 are the same as the specific implementation of the steps 803 to 807, and specific reference may be made to the specific implementation of the steps 803 to 807, which is not described herein again.
Step 1108, the first device sends the seventh optical signal to the second device over the first link.
In the embodiment of the present application, the transmission power of the seventh optical signal is determined according to the second link loss and the initial transmission power. Specifically, after determining the second link loss, the first device determines the transmission power of the seventh optical signal according to the second link loss and the initial transmission power, and then sends the seventh optical signal to the second device through the first link at the determined transmission power.
In step 1109, the second device determines a second link loss according to the received power of the seventh optical signal, the first link loss and the initial transmission power.
Step 1110, the second device adjusts the transmission power of the second link according to the second link loss.
The execution sequence of the steps 1108-1110 and the execution sequence of the steps 1105-1107 are not in sequence.
For example, as shown in fig. 12, the first device transmits at an initial transmit power P0Sending the first optical signal to the second device, similarly the second device is at the initial transmitting power P0The third optical signal is transmitted to the first device.
After the second device receives the first optical signal, the received power of the first optical signal is determined. The second device determines a first link loss based on the received power and the initial transmit power of the first optical signal. Assuming an initial transmit power P020dBm, the received power of the first optical signal is 8dBm, and the first link loss PTAIs 12 dBm.
Similarly, after the first device receives the third optical signal, the first device determines the received power of the third optical signal. The first device determines a second link loss according to the initial transmitting power of the received power of the third optical signal. Assuming an initial transmit power P020dBm, the received power of the third optical signal is 7dBm, and the second link loss PTBIs 13 dBm.
The second device determines a first link loss PTAThereafter, for example, the transmission power of the second optical signal is determined as the initial transmission power P0And first link loss PTASum, i.e. P0+PTA. The second device sends the second optical signal to the first device over the second link at the determined transmit power of the second optical signal. After the first device detects the second optical signal, the first device determines the receiving work of the second optical signalRate P1=P0+PTA-PTB. The first device receives power P according to the second optical signal1Second link loss PTBAnd an initial transmission power P0A first link loss P can be determinedTAI.e. PTA=P1-P0+PTB. Of course, the transmission power of the second optical signal may also be based on the first link loss PTAAnd an initial transmission power P0The determined other transmission power is not limited in the embodiments of the present application. The first device determines a first link loss PTAThereafter, P can be determined based on the first link lossTAThe transmit power of the first link is adjusted.
Similarly, the first device determines the second link loss PTBThereafter, for example, the transmission power of the seventh optical signal is determined as the initial transmission power P0And second link loss PTBSum, i.e. P0+PTB. After the second device detects the seventh optical signal, the receiving power P of the seventh optical signal is determined2=P0+PTB-PTA. The second device receives power P according to the seventh optical signal2First link loss PTAAnd an initial transmission power P0A second link loss P can be determinedTBI.e. PTB=P2-P0+PTA. Of course, the transmitting power of the seventh optical signal may also be according to the second link loss PTBAnd an initial transmission power P0The determined other transmission power is not limited in the embodiments of the present application. The second device determines a second link loss PTBThereafter, P can be determined according to the second link lossTBThe transmit power of the second link is adjusted.
By the method described in fig. 11, the second device can also determine the link loss of the transmission link of the second device by the same principle as the first device, and automatically adjust the transmission power of the transmission link according to the link loss. That is, with the method described in fig. 11, both the first device and the second device may automatically adjust the transmit power of the transmit chain.
In one possible embodiment, the initial transmit power is greater than the receive sensitivity of the second apparatus and less than the maximum receive power of the second apparatus. And the initial transmit power is greater than the receive sensitivity of the first device and less than the maximum receive power of the first device. The adjusted transmission power of the first link is the sum of the initial transmission power and the first link loss. The adjusted transmission power of the second link is the sum of the initial transmission power and the second link loss.
By implementing this possible embodiment, the first device can automatically adjust the transmission power of the optical signal of the first device to a suitable transmission power, so that the reception power of the optical signal by the second device is within a reasonable range. The second device can also automatically adjust the transmitting power of the optical signal of the second device to be proper transmitting power, so that the receiving power of the optical signal of the first device is in a reasonable range.
In the embodiment of the present invention, the device may be divided into the functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Referring to fig. 13, fig. 13 is a diagram illustrating an apparatus for power adjustment according to an embodiment of the present invention. The means for power adjustment may be the first means described above. The apparatus for power regulation includes: a communication module 1301 and a processing module 1302. Wherein:
a processing module 1302, configured to determine a second link loss of a second link, where the second link is used for the apparatus for power adjustment to receive an optical signal sent by a second apparatus; a communication module 1301, configured to send a first optical signal to a second apparatus through a first link at an initial transmission power, where the first link is used for the apparatus for power adjustment to send an optical signal to the second apparatus, and the first optical signal is used for the second apparatus to determine a first link loss of the first link according to a reception power and the initial transmission power of the first optical signal; the communication module 1301 is further configured to receive a second optical signal sent by the second apparatus through a second link, where a transmission power of the second optical signal is determined by the second apparatus according to the initial transmission power and a first link loss of the first link; the processing module 1302 is further configured to determine a first link loss according to the received power of the second optical signal, the second link loss and the initial transmission power; the processing module 1302 is further configured to adjust the transmission power of the first link according to the first link loss.
Optionally, the communication module 1301 is further configured to receive, through the second link, a third optical signal sent by the second apparatus at the initial transmission power; the way for the processing module 1302 to determine the second link loss of the second link is specifically as follows: a second link loss of the second link is determined based on the received power and the initial transmit power of the third optical signal.
Optionally, the communication module 1301 is further configured to receive a fourth optical signal sent by the second apparatus through the second link, where the fourth optical signal carries a sending power of the fourth optical signal; the way for the processing module 1302 to determine the second link loss of the second link is specifically as follows: determining a second link loss of the second link according to the transmission power of the fourth optical signal and the reception power of the fourth optical signal; the communication module 1301 is further configured to receive a fifth optical signal sent by the second apparatus through the second link; the manner in which the communication module 1301 sends the first optical signal to the second apparatus through the first link with the initial transmission power is specifically as follows: and when detecting that the sum of the second link loss and the receiving power of the fifth optical signal is the initial transmitting power, sending the first optical signal to the second device through the first link at the initial transmitting power.
Optionally, the manner of determining the first link loss by the processing module 1302 according to the receiving power of the second optical signal, the second link loss and the initial transmitting power specifically includes: detecting the received power of the second optical signal and determining a first compensation power Y1Value of (A), Y1=P1+PTB-P0,P1For the currently detected received power, P, of the second optical signalTBFor the second link loss, P0Is the initial transmit power; when the first compensation powerY1Is less than the preset power threshold value, the first compensation power Y is set1Is determined as the first link loss.
Optionally, the processing module 1302 is further configured to: when the first compensation power Y1When the value of the first compensation power Y is equal to the preset power threshold value, the receiving power of the second optical signal is continuously detected, and the first compensation power Y is continuously determined according to the detected receiving power of the second optical signal1A value of (d); when the first compensation power Y1Is greater than zero and less than a predetermined power threshold, stopping detecting the received power of the second optical signal and stopping determining the first compensation power Y1And determines the power P of the last compensation of the second devicexFor the first compensation power Y1A value of (d); when the receiving power of the second optical signal is detected to be that the first receiving power continuously reaches the preset duration, stopping detecting the receiving power of the second optical signal and stopping determining the first compensation power Y1And determines the power P of the last compensation of the second devicexZero, the first received power is the difference between the initial transmit power and the second link loss; determining the number N of times of compensating the transmission power to the second link by using a preset power threshold, wherein the number N is the first compensation power Y1Is equal to the total number of the preset power threshold values, and N is a positive integer; according to the preset power threshold, the times N and PxDetermining a first link loss, wherein PTA=N*PTH+Px,PTAFor the first link loss, PTHIs a preset power threshold, N is a positive integer, PxGreater than or equal to zero and less than a preset power threshold.
Optionally, the processing module 1302 is further configured to: when the first compensation power Y1When the value of the first compensation power Y is equal to the preset power threshold value, the receiving power of the second optical signal is continuously detected, and the first compensation power Y is continuously determined according to the detected receiving power of the second optical signal1A value of (d); determining a target power P in detecting a received power of the second optical signal3Target power P3=n*PTH+P0N is the determined first compensation power Y1Is equal to the number of preset power thresholds; when the eye is close toNominal power P3Stopping detecting the received power of the second optical signal and stopping determining the first compensation power Y when the maximum transmission power of the device for power adjustment is larger than1And reporting fault information to the host.
Optionally, the communication module 1301 is further configured to receive, through the second link, a sixth optical signal sent by the second apparatus after the processing module 1302 adjusts the transmission power of the first link according to the first link loss, where the sixth optical signal includes a signal quality parameter, and the signal quality parameter is used to indicate signal reception quality of the first link; the processing module 1302 is further configured to adjust the transmission power of the first link according to the signal quality parameter.
Optionally, the initial transmit power is greater than the receive sensitivity of the second device and less than the maximum receive power of the second device, and the adjusted transmit power of the first link is the sum of the initial transmit power and the first link loss.
Referring to fig. 14, fig. 14 is a schematic structural diagram of another apparatus for power adjustment disclosed in the embodiment of the present application. As shown in fig. 14, the apparatus 1400 for power adjustment includes a processor 1401 and a transceiver 1402. Wherein the processor 1401 is connected to the transceiver 1402.
In one possible implementation, the apparatus 1400 is implemented directly by an optical module, such as an SFP optical module. It will be appreciated that the illustrated processor 1401 is a processor provided in the optical module. The processor 1401 may be a Micro Controller Unit (MCU). The MCU can be integrated with a memory and the like. The MCU is used for executing relevant steps of the first device or the second device in the method embodiment.
The transceiver 1402 is used to enable communication with other network elements, i.e. the transceiver 1402 is used to receive optical signals and transmit optical signals. A photoelectric conversion circuit may be included in the transceiver 1402. The optical-to-electrical conversion circuit is used to convert an optical signal received by the transceiver 1402 into an electrical signal, and convert an electrical signal to be transmitted into an optical signal for the transceiver 1402 to transmit.
In another possible implementation, the transceiver 1402 is implemented by an optical module, that is, the optical module belongs to a part of the apparatus 1400. The optical module in cooperation with the processor 1401 implements power scaling.
The processor 1401 may be a general-purpose processor, such as a Central Processing Unit (CPU), a Network Processor (NP). The processor 1401 may also be an application-specific integrated circuit (ASIC), a programmable logic device, or a combination thereof. The programmable logic device may be, for example, a Field Programmable Gate Array (FPGA), a Complex Programmable Logic Device (CPLD), or any combination thereof.
If the processor 1401 is a general-purpose processor, the apparatus 1400 may further include a memory 1403 (not shown in the figure) for storing program instructions, and the processor 1401 calls the program instructions stored in the memory 1403 to perform the relevant steps of the first apparatus or the second apparatus in the above method embodiments.
Based on the same inventive concept, the principle of solving the problems of the apparatuses provided in the embodiments of the present application is similar to that of the embodiments of the method of the present application, so that the implementation of the apparatuses may refer to the implementation of the method, and for brevity, the descriptions thereof are omitted here.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (17)

1. A method for power adjustment, the method comprising:
the first device determines a second link loss of a second link, wherein the second link is used for the first device to receive an optical signal sent by a second device;
the first device sends a first optical signal to the second device through a first link at an initial transmission power, the first link is used for the first device to send an optical signal to the second device, and the first optical signal is used for the second device to determine a first link loss of the first link according to the receiving power of the first optical signal and the initial transmission power;
the first device receives a second optical signal sent by the second device through the second link, wherein the transmission power of the second optical signal is determined by the second device according to the initial transmission power and the first link loss;
the first device determines the first link loss according to the received power of the second optical signal, the second link loss and the initial transmission power;
the first device adjusts the transmit power of the first link based on the first link loss.
2. The method of claim 1, further comprising:
the first device receives a third optical signal transmitted by the second device at the initial transmission power through the second link;
the first device determining a second link loss for a second link, comprising:
the first device determines a second link loss of the second link according to the received power of the third optical signal and the initial transmission power.
3. The method of claim 1, further comprising:
the first device receives a fourth optical signal sent by the second device through the second link, wherein the fourth optical signal carries the sending power of the fourth optical signal;
the first device determining a second link loss for a second link, comprising:
the first device determines a second link loss of the second link according to the transmission power of the fourth optical signal and the receiving power of the fourth optical signal;
the method further comprises the following steps:
the first device receives a fifth optical signal sent by the second device through the second link;
the first device transmitting a first optical signal to the second device over a first link at an initial transmit power, comprising:
and when the first device detects that the sum of the second link loss and the receiving power of the fifth optical signal is the initial transmitting power, the first device sends the first optical signal to the second device through the first link at the initial transmitting power.
4. The method of any of claims 1-3, wherein the first device determining the first link loss according to the received power of the second optical signal, the second link loss, and the initial transmit power comprises:
the first device detects the received power of the second optical signal and determines a first compensation power Y1A value of (A), the Y1=P1+PTB-P0Wherein P is1For the currently detected received power, P, of the second optical signalTBFor the second link loss, P0Is the initial transmit power;
when the first compensation power Y1Is less than a preset power threshold, the first device applies the first compensation power Y1Is determined as the first link loss.
5. The method of claim 4, further comprising:
when the first compensation power Y1Is equal to the preset power threshold, the first device continues to detect the received power of the second optical signal and continues to determine the first compensation power Y according to the detected received power of the second optical signal1A value of (d);
when the first compensation power Y1Is greater than zero and is less than the preset power threshold, the first device stops detecting the reception power of the second optical signal and stops determining the first compensation power Y1And determining the power P of the last compensation of said second meansxIs the first compensation power Y1A value of (d);
when the received power of the second optical signal is detected to be that the first received power continuously reaches the preset duration, the first device stops detecting the received power of the second optical signal and stops determining the first compensation power Y1And determining the power P of the last compensation of said second meansxZero, the first received power being the difference between the initial transmit power and the second link loss;
the first device determines the number of times N of compensating the transmission power to the second link by using the preset power threshold, wherein the number of times N is the first compensation power Y1Is equal to the total number of the preset power thresholds, N being a positive integer;
the first device is used for determining the number of times N and P according to the preset power threshold valuexDetermining the first link loss, wherein PTA=N*PTH+PxSaid P isTAFor the first link loss, the PTHIs the preset power threshold, PxGreater than or equal to zero and less than the preset power threshold.
6. The method of claim 4, further comprising:
when the first compensation power Y1Is equal to the preset power threshold, the first device continues to detect the received power of the second optical signal and continues to operate according toDetermining a first compensation power Y from the detected received power of the second optical signal1A value of (d);
determining a target power P during detection of the received power of the second optical signal by the first device3The target power P3=n*PTH+P0N is the determined first compensation power Y1Is equal to the number of said preset power thresholds;
when the target power P is3Stopping detecting the received power of the second optical signal and stopping determining the first compensation power Y when the maximum transmission power of the first device is larger than the maximum transmission power of the first device1And reporting fault information to the host.
7. The method of any of claims 1-3, wherein after the first device adjusts the transmit power of the first link according to the first link loss, the method further comprises:
the first device receives a sixth optical signal sent by the second device through the second link, wherein the sixth optical signal comprises a signal quality parameter, and the signal quality parameter is used for indicating the signal receiving quality of the first link;
the first device adjusts the transmit power of the first link according to the signal quality parameter.
8. A method for power adjustment, the method comprising:
a second device receives a first optical signal sent by a first device at initial transmission power through a first link, wherein the first link is used for the second device to receive the optical signal sent by the first device;
the second device determines a first link loss of the first link according to the received power of the first optical signal and the initial transmission power;
the second apparatus sends a second optical signal to the first apparatus through a second link, wherein the transmission power of the second optical signal is determined according to the initial transmission power and the first link loss, and the second link is used for sending the optical signal to the first apparatus by the second apparatus.
9. The method of claim 8, wherein before the second device sends a second optical signal to the first device over the second link, the method further comprises:
the second device transmits a third optical signal to the first device over the second link at the initial transmit power.
10. The method of claim 8, wherein before the second device receives the first optical signal over the first link that was transmitted by the first device at the initial transmit power, the method further comprises:
the second device sends a fourth optical signal to the first device through the second link, wherein the fourth optical signal carries sending power of the fourth optical signal;
and when the second device detects that the receiving power of the first link is smaller than the receiving sensitivity of the second device, sending a fifth optical signal to the first device through the second link at the initial transmitting power.
11. The method according to any one of claims 8 to 10, wherein when the first link loss is smaller than a predetermined power threshold, the transmission power of the second optical signal is compensated by the first link loss, and the transmission power of the second optical signal is a sum of the first link loss and the initial transmission power.
12. The method of claim 11, wherein the first link loss is divided into N +1 times to compensate the transmission power of the second link when the first link loss is greater than or equal to a predetermined power threshold, and wherein the transmission power after the first N times of compensation is the difference between the predetermined power threshold and the initial transmission powerAnd the transmission power after the last compensation is PxAnd the sum of the initial transmit powers, wherein PTA=N*PTH+Px,PTAFor the first link loss, PTHIs the preset power threshold, N is a positive integer, PxGreater than or equal to zero and less than the preset power threshold; the transmission power of the second optical signal is alternately changed according to the compensated transmission power and the initial transmission power.
13. An apparatus for power adjustment, the apparatus for power adjustment comprising:
a processing module, configured to determine a second link loss of a second link, where the second link is used for the apparatus for power adjustment to receive an optical signal sent by a second apparatus;
a communication module, configured to send a first optical signal to the second apparatus through a first link at an initial transmission power, where the first link is used for the apparatus for power adjustment to send an optical signal to the second apparatus, and the first optical signal is used for the second apparatus to determine a first link loss of the first link according to a reception power of the first optical signal and the initial transmission power;
the communication module is further configured to receive a second optical signal sent by the second apparatus through the second link, where a transmission power of the second optical signal is determined by the second apparatus according to the initial transmission power and the first link loss;
the processing module is further configured to determine the first link loss according to the received power of the second optical signal, the second link loss, and the initial transmission power;
the processing module is further configured to adjust the transmit power of the first link according to the first link loss.
14. The apparatus for power adjustment according to claim 13,
the communication module is further configured to receive, through the second link, a third optical signal sent by the second apparatus at the initial transmission power;
the manner of determining the second link loss of the second link by the processing module is specifically as follows:
determining a second link loss of the second link according to the received power of the third optical signal and the initial transmission power.
15. The apparatus for power adjustment according to claim 13,
the communication module is further configured to receive a fourth optical signal sent by the second apparatus through the second link, where the fourth optical signal carries a sending power of the fourth optical signal;
the manner of determining the second link loss of the second link by the processing module is specifically as follows:
determining a second link loss of the second link according to the transmission power of the fourth optical signal and the reception power of the fourth optical signal;
the communication module is further configured to receive a fifth optical signal sent by the second apparatus through the second link;
the method for the communication module to send the first optical signal to the second device with the initial transmission power through the first link specifically includes: and when detecting that the sum of the second link loss and the receiving power of the fifth optical signal is the initial transmitting power, sending the first optical signal to the second device through the first link at the initial transmitting power.
16. The apparatus according to any of claims 13 to 15, wherein the processing module determines the first link loss according to the received power of the second optical signal, the second link loss and the initial transmission power by:
detecting the received power of the second optical signal and determining a first compensation power Y1A value of (A), the Y1=P1+PTB-P0Wherein P is1For the currently detected received power, P, of the second optical signalTBFor the second link loss, P0Is the initial transmit power;
when the first compensation power Y1Is less than a preset power threshold value, the first compensation power Y is set1The first link loss is determined.
17. The apparatus for power adjustment of claim 16, wherein the processing module is further configured to:
when the first compensation power Y1When the value of (d) is equal to the preset power threshold, continuing to detect the received power of the second optical signal, and continuing to determine the first compensation power Y according to the detected received power of the second optical signal1A value of (d);
when the first compensation power Y1Is greater than zero and is less than the preset power threshold, stopping detecting the reception power of the second optical signal and stopping determining the first compensation power Y1And determining the power P of the last compensation of said second meansxIs the first compensation power Y1A value of (d);
when the receiving power of the second optical signal is detected to be that the first receiving power continuously reaches the preset duration, stopping detecting the receiving power of the second optical signal and stopping determining the first compensation power Y1And determining the power P of the last compensation of said second meansxZero, the first received power being the difference between the initial transmit power and the second link loss;
determining the number of times N of compensating the transmission power of the second link by using the preset power threshold, wherein the number of times N is the first compensation power Y1Is equal to the total number of the preset power thresholds, N being a positive integer;
according to the preset power threshold, the times N and the PxDetermining the first link loss, wherein PTA=N*PTH+PxSaid P isTAIs that it isFirst link loss, said PTHIs the preset power threshold, PxGreater than or equal to zero and less than the preset power threshold.
CN201810404201.6A 2018-04-28 2018-04-28 Method and device for power adjustment Active CN110417479B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810404201.6A CN110417479B (en) 2018-04-28 2018-04-28 Method and device for power adjustment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810404201.6A CN110417479B (en) 2018-04-28 2018-04-28 Method and device for power adjustment

Publications (2)

Publication Number Publication Date
CN110417479A CN110417479A (en) 2019-11-05
CN110417479B true CN110417479B (en) 2021-02-23

Family

ID=68357228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810404201.6A Active CN110417479B (en) 2018-04-28 2018-04-28 Method and device for power adjustment

Country Status (1)

Country Link
CN (1) CN110417479B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112564787B (en) * 2020-12-09 2022-09-27 中天通信技术有限公司 Automatic debugging method and device for optical module

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103782531A (en) * 2013-06-17 2014-05-07 华为技术有限公司 Optical signal transmission method, device and optical transmitter
CN104159282A (en) * 2013-05-15 2014-11-19 华为技术有限公司 Signal adjusting method and apparatus, and cell

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI569666B (en) * 2009-10-02 2017-02-01 內數位專利控股公司 Method and apparatus for controlling transmit power of transmissions on more than one component carrier

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104159282A (en) * 2013-05-15 2014-11-19 华为技术有限公司 Signal adjusting method and apparatus, and cell
CN103782531A (en) * 2013-06-17 2014-05-07 华为技术有限公司 Optical signal transmission method, device and optical transmitter

Also Published As

Publication number Publication date
CN110417479A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
RU2198466C2 (en) Device and method for controlling transmission in return line of mobile communication system
US20170012758A1 (en) System and method for user equipment initiated management of carrier aggregation
CN101247182B (en) Power control method of passive optical network
JP2001217778A (en) Optical transmitter/receiver
US20160248534A1 (en) Method for processing optical signal, optical module and optical line terminal
US11804909B2 (en) Power saving mechanisms for high speed passive optical network
US20180054381A1 (en) Method for Selecting Relay Station in Power Line Network, and Station
CN110417479B (en) Method and device for power adjustment
CN104639316A (en) Channel self-adaptive method of quantum key distribution system and QKD (quantum key distribution) system based on channel self-adaptive method
US11916599B2 (en) Wavelength tuning method and related device
CN102625435B (en) Automatic gain control (AGC) device for global system for mobile communication (GSM) digital optical fiber frequency-selecting repeater and quick adaptive time slot method for AGC device
WO2019128953A1 (en) Single board of optical line terminal and optical line terminal
JP2007318524A (en) Optical subscriber's line terminating device
US20190081708A1 (en) Signal Generation Method and Device
PH12016501040B1 (en) Apparatus and method for accessing network
CN111404602B (en) Communication method and system for low-optical-power down-regulation top signal and optical module
CN105490741A (en) Method and device for detecting loopback link, optical line terminal, and optical network terminal
US20110076012A1 (en) Optical network terminal and method for detecting transmission error in optical network terminal
JP2007325010A (en) Pon system
WO2023071326A1 (en) Fault locating method, device and optical network system
JP6073766B2 (en) Optical communication system, station side communication apparatus, and optical communication method
CN202841136U (en) RFoG optical node for triple-play networks
US20230403708A1 (en) Pdcch-based adaptation of uplink activity
CN102324970B (en) Monitoring device and method for working state of ONU (Optical Network Unit) transmitting end
CN110278050A (en) A kind of method and device of super 100G WDM transmission system feedback tuning

Legal Events

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