Disclosure of Invention
The embodiment of the application provides a method and a device for acquiring a delay adjustment value, which solve the problems in the prior art, improve the instantaneity and convenience of delay alignment, and reduce the cost.
In a first aspect, a method for obtaining a delay adjustment value is provided, where the method may include:
an FPGA of an extension unit acquires optical fiber time delay between each far end and a near end in at least one far end of an optical fiber distributed system and carrier aggregation CA time delay of each data transmission channel between each far end and the near end, wherein the at least one far end is connected with the near end through the extension unit;
sending a first maximum optical fiber delay and a first maximum CA delay to the near end according to the acquired optical fiber delay and the acquired CA delay; the first maximum optical fiber delay is the optical fiber delay with the maximum delay value in the optical fiber delays, and the first maximum CA delay is the CA delay with the maximum delay value in the CA delays;
receiving a second maximum optical fiber delay, a second maximum CA delay and preset delay configuration information broadcasted by the near end, wherein the second maximum optical fiber delay is an optical fiber delay with a maximum found delay value after the near end receives a plurality of first maximum optical fiber delays sent by a plurality of extension units, and the second maximum CA delay is an CA delay with a maximum found delay value after the near end receives a plurality of first maximum CA delays sent by a plurality of extension units;
configuring the second maximum optical fiber time delay according to the preset time delay configuration information to obtain a target optical fiber time delay of the system;
acquiring a CA time delay compensation value of each data transmission channel according to the second maximum CA time delay and the CA time delay of each data transmission channel;
and sending the target optical fiber time delay of the optical fiber distributed system and the CA time delay compensation value of each data transmission channel to each remote end so that each remote end obtains a time delay adjustment value.
In an alternative implementation, the second maximum fiber delay includes a second FDD maximum fiber delay and a second TDD maximum fiber delay;
configuring the second maximum optical fiber time delay according to the preset time delay configuration information to obtain a target optical fiber time delay of the optical fiber distributed system, including:
if the preset time delay configuration information is the maximum optical fiber time delay configuration information of the system, determining the maximum value of the second FDD maximum optical fiber time delay and the second TDD maximum optical fiber time delay as the target optical fiber time delay of the optical fiber distributed system;
and if the preset time delay configuration information is the split type maximum optical fiber time delay configuration information, respectively determining the second FDD maximum optical fiber time delay and the second TDD maximum optical fiber time delay as the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system.
In an optional implementation, after obtaining the target optical fiber delay of the optical fiber distribution system, the method further includes:
and calculating the target optical fiber time delay and the optical fiber time delay of the optical fiber distributed system by adopting a preset compensation algorithm to obtain the optical fiber time delay compensation value of each far end and each near end.
In an alternative implementation, the optical fiber delay includes an FDD optical fiber delay and a TDD optical fiber delay;
obtaining the optical fiber delay compensation value of each far end and the near end, including:
if the target optical fiber time delay of the optical fiber distributed system is configured according to the maximum optical fiber time delay configuration information of the system, determining the difference between the target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a first optical fiber time delay compensation value, and determining the difference between the target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a second optical fiber time delay compensation value;
and if the target optical fiber time delay of the optical fiber distributed system is configured according to the maximum optical fiber time delay configuration information of the splitting type, and the target optical fiber time delay of the optical fiber distributed system comprises the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system, determining the difference between the FDD target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a third optical fiber time delay compensation value, and determining the difference between the TDD target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a fourth optical fiber time delay compensation value.
In an optional implementation, obtaining the CA delay compensation value of each data transmission channel according to the second maximum CA delay and the CA delay of each data transmission channel includes:
and determining the difference between the second maximum CA time delay and the CA time delay of each data transmission channel as the CA time delay compensation value of each data transmission channel.
In a second aspect, a method for obtaining a delay adjustment value is provided, where the method may include:
the far end acquires the optical fiber time delay between the far end and the near end in the optical fiber distributed system;
receiving a target optical fiber time delay of the optical fiber distributed system and a CA time delay compensation value of each data transmission channel between the far end and the near end, which are sent by an extension unit;
calculating the target optical fiber time delay and the optical fiber time delay of the optical fiber distributed system by adopting a preset compensation algorithm to obtain optical fiber time delay compensation values of the far end and the near end;
and adopting a preset time delay adjustment algorithm for the CA time delay compensation value and the optical fiber time delay compensation value of each data transmission channel to obtain the time delay adjustment value of the data transmission channel so as to perform time delay adjustment on the channel.
In an alternative implementation, the optical fiber delay includes an FDD optical fiber delay and a TDD optical fiber delay;
obtaining the optical fiber delay compensation values of the far end and the near end, including:
if the target optical fiber time delay of the optical fiber distributed system is configured by the extension unit according to the maximum optical fiber time delay configuration information of the system, determining the difference between the target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a first optical fiber time delay compensation value, and determining the difference between the target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a second optical fiber time delay compensation value;
and if the target optical fiber time delay of the optical fiber distributed system is configured by the extension unit according to the maximum optical fiber time delay configuration information of the split type, and the target optical fiber time delay of the optical fiber distributed system comprises the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system, determining the difference between the FDD target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a third optical fiber time delay compensation value, and determining the difference between the TDD target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a fourth optical fiber time delay compensation value.
In a third aspect, an apparatus for obtaining a delay adjustment value is provided, where the apparatus may include: the device comprises an acquisition unit, a sending unit, a receiving unit and a configuration unit;
the acquiring unit is configured to acquire an optical fiber delay between each far end and a near end in at least one far end in an optical fiber distributed system and a carrier aggregation CA delay of each data transmission channel between each far end and the near end, where the at least one far end is connected to the near end through the apparatus;
the sending unit is configured to send a first maximum optical fiber delay and a first maximum CA delay to the near end according to the acquired optical fiber delay and the acquired CA delay; the first maximum optical fiber delay is the optical fiber delay with the maximum delay value in the optical fiber delays, and the first maximum CA delay is the CA delay with the maximum delay value in the CA delays;
the receiving unit is configured to receive a second maximum optical fiber delay, a second maximum CA delay, and preset delay configuration information, where the second maximum optical fiber delay is an optical fiber delay with a maximum found delay value after the near end receives multiple first maximum optical fiber delays sent by multiple devices, and the second maximum CA delay is an CA delay with a maximum found delay value after the near end receives multiple first maximum CA delays sent by multiple devices;
the configuration unit is configured to configure the second maximum optical fiber delay according to the preset delay configuration information, and acquire a target optical fiber delay of the system;
the obtaining unit is further configured to obtain a CA delay compensation value of each data transmission channel according to the second maximum CA delay and the CA delay of each data transmission channel;
the sending unit is configured to send the target optical fiber delay of the optical fiber distributed system and the CA delay compensation value of each data transmission channel to each remote end, so that each remote end obtains a delay adjustment value.
In an alternative implementation, the second maximum fiber delay includes a second FDD maximum fiber delay and a second TDD maximum fiber delay;
the configuration unit is specifically configured to determine, if the preset time delay configuration information is system maximum optical fiber time delay configuration information, a maximum value of the second FDD maximum optical fiber time delay and the second TDD maximum optical fiber time delay as a target optical fiber time delay of the optical fiber distributed system;
and if the preset time delay configuration information is the split type maximum optical fiber time delay configuration information, respectively determining the second FDD maximum optical fiber time delay and the second TDD maximum optical fiber time delay as the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system.
In an optional implementation, the obtaining unit is further configured to calculate a target optical fiber delay and the optical fiber delay of the optical fiber distributed system by using a preset compensation algorithm, and obtain an optical fiber delay compensation value of each of the far end and the near end.
In an alternative implementation, the optical fiber delay includes an FDD optical fiber delay and a TDD optical fiber delay;
the acquiring unit is specifically configured to determine, if the target optical fiber delay of the optical fiber distributed system is configured according to the maximum optical fiber delay configuration information of the system, a difference between the target optical fiber delay of the optical fiber distributed system and the FDD optical fiber delay as a first optical fiber delay compensation value, and determine a difference between the target optical fiber delay of the optical fiber distributed system and the TDD optical fiber delay as a second optical fiber delay compensation value;
and if the target optical fiber time delay of the optical fiber distributed system is configured according to the maximum optical fiber time delay configuration information of the splitting type, and the target optical fiber time delay of the optical fiber distributed system comprises the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system, determining the difference between the FDD target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a third optical fiber time delay compensation value, and determining the difference between the TDD target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a fourth optical fiber time delay compensation value.
In an optional implementation, the obtaining unit is further specifically configured to determine a difference between the second maximum CA delay and the CA delay of each data transmission channel as a CA delay compensation value of each data transmission channel.
In a fourth aspect, an apparatus for obtaining a delay adjustment value is provided, where the apparatus may include: an acquisition unit and a receiving unit;
the acquisition unit is used for acquiring the optical fiber time delay between the far end and the near end in the optical fiber distributed system;
the receiving unit is configured to receive a target optical fiber delay of the optical fiber distributed system and a CA delay compensation value of each data transmission channel between the far end and the near end, where the target optical fiber delay is sent by the extension unit;
the obtaining unit is further configured to calculate a target optical fiber delay and the optical fiber delay of the optical fiber distributed system by using a preset compensation algorithm, and obtain optical fiber delay compensation values of the far end and the near end;
and adopting a preset time delay adjustment algorithm for the CA time delay compensation value and the optical fiber time delay compensation value of each data transmission channel to obtain the time delay adjustment value of the data transmission channel so as to perform time delay adjustment on the channel.
In an alternative implementation, the optical fiber delay includes an FDD optical fiber delay and a TDD optical fiber delay;
the obtaining unit is specifically configured to determine, if the target optical fiber delay of the optical fiber distributed system is configured by the extension unit according to the maximum system optical fiber delay configuration information, a difference between the target optical fiber delay of the optical fiber distributed system and the FDD optical fiber delay as a first optical fiber delay compensation value, and determine a difference between the target optical fiber delay of the optical fiber distributed system and the TDD optical fiber delay as a second optical fiber delay compensation value;
and if the target optical fiber time delay of the optical fiber distributed system is configured by the extension unit according to the maximum optical fiber time delay configuration information of the split type, and the target optical fiber time delay of the optical fiber distributed system comprises the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system, determining the difference between the FDD target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a third optical fiber time delay compensation value, and determining the difference between the TDD target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a fourth optical fiber time delay compensation value.
In a fifth aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other via the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any of the above first aspects or the method steps of any of the above second aspects when executing a program stored in a memory.
A sixth aspect provides a computer readable storage medium having stored therein a computer program which, when executed by a processor, performs the method steps of any one of the above first aspects or the method steps of any one of the above second aspects.
In the method for obtaining a delay adjustment value provided in the above embodiment of the present invention, an extension unit first obtains an optical fiber delay between each far end and each near end in at least one far end in an optical fiber distributed system and a carrier aggregation CA delay of each data transmission channel between each far end and each near end, where at least one far end is connected to a near end through the extension unit; then according to the obtained optical fiber time delay and the CA time delay, sending a first maximum optical fiber time delay and a first maximum CA time delay to the near end; the first maximum optical fiber delay is the optical fiber delay with the maximum optical fiber delay value in the optical fiber delay, and the first maximum CA delay is the CA delay with the maximum CA delay value in the CA delay; receiving second maximum optical fiber time delay, second maximum CA time delay and preset time delay configuration information broadcasted by a near end, wherein the second maximum optical fiber time delay is the optical fiber time delay with the maximum found time delay value after the near end receives a plurality of first maximum optical fiber time delays sent by a plurality of extension units, and the second maximum CA time delay is the CA time delay with the maximum found time delay value after the near end receives a plurality of first maximum CA time delays sent by a plurality of extension units; then configuring the second maximum optical fiber time delay according to preset time delay configuration information to obtain a target optical fiber time delay of the system, and obtaining a CA time delay compensation value of each data transmission channel according to the second maximum CA time delay and the CA time delay of each data transmission channel; and sending the target optical fiber time delay of the optical fiber distributed system and the CA time delay compensation value of each data transmission channel to each remote end so that each remote end obtains a time delay adjustment value. Compared with the prior art, the method does not need to add optical fibers or modify program codes to realize time delay alignment, thereby improving the real-time performance and convenience of time delay alignment and reducing the cost.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without any creative effort belong to the protection scope of the present application.
The method for acquiring the time delay adjustment value provided by the embodiment of the invention can be applied to an optical fiber distributed system. The system may include a two-level architecture fiber optic distribution system and a three-level architecture fiber optic distribution system.
As shown in fig. 1A, a fiber distribution system of a two-level architecture may include a near end and a far end. The proximal end may be connected to each of the at least one distal end by an optical fiber, and each distal end directly connected to the proximal end may be cascaded to at least one other distal end, i.e. at least one other distal end may be indirectly connected to the proximal end by an optical fiber. If the near end is respectively connected with the far end 1 to the far end N through optical fibers, the far end 1-1 to the far end 1-N are cascaded with the far end 1, the far end 2-1 to the far end 2-N are cascaded with the far end 1, and so on, the far end N-1 to the far end N-N are cascaded with the far end N.
As shown in fig. 1B, a three-level architecture fiber distribution system may include a near end, an expansion unit, and a far end. The proximal end may be connected to each of the at least one expansion unit through an optical fiber, and each expansion unit directly connected to the proximal end may be cascaded to at least one other expansion unit, that is, at least one other expansion unit may be indirectly connected to the proximal end through an optical fiber, and each expansion unit is connected to at least one distal end through an optical fiber. If the near end is respectively connected with the expansion unit 1 to the expansion unit N through optical fibers, the expansion unit 1-1 to the expansion unit 1-N are cascaded with the expansion unit 1, the expansion unit 2-1 to the expansion unit 2-N are cascaded with the expansion unit 1, and so on, the expansion unit N-1 to the expansion unit N-N are cascaded with the expansion unit N, and each expansion unit in the system is connected with N far ends through optical fibers.
Each far end can be an NTNR far end of a multi-data transmission channel and a multi-frequency band; n is a positive integer; for a two-level architecture fiber optic distribution system, the expansion unit can be directly replaced by a far end directly connected to the near end.
Each far-end to near-end may include a Single Input Single Output (Single) mode fiber connection and/or a multiple Input multiple Output (mimo) mode fiber connection, i.e., there are two fiber delays for each far-end to near-end, so the fiber delay may include a Single fiber delay and a mimo fiber delay.
And each path of optical fiber Time delay can be divided into Time Division Duplex (TDD) optical fiber Time delay and Frequency Division Duplex (FDD) optical fiber Time delay according to different remote standards, so that the optical fiber distributed system can be a hybrid network of TDD and FDD.
The following description will take an optical fiber distribution system as an example of a three-level architecture.
Fig. 2 is a schematic flowchart of a method for obtaining a delay adjustment value according to an embodiment of the present invention. As shown in fig. 2, the method may include:
step 210, the extension unit obtains the optical fiber delay between each far end and the near end in at least one far end and the CA delay of each data transmission channel between each far end and the near end.
The FPGA chip in the extension unit reads the optical fiber time delay from each far end to the near end in at least one far end accessed by each optical fiber interface of the extension unit through optical fiber connection, the optical fiber time delay is the time required by data from a sending end to a receiving end in an optical fiber, namely the optical fiber time delay is related to the transmission distance and the transmission medium.
Specifically, the extension unit may distinguish whether the optical fiber delay from the far end to the near end is a TDD optical fiber delay or an FDD optical fiber delay according to a frequency band accessed by the far end, so that the optical fiber delay may include the TDD optical fiber delay and the FDD optical fiber delay. The FDD is that different frequencies are used for transmitting and receiving data, and the TDD is that the same frequency band is used for transmitting and receiving data.
Since each far end and near end in the optical fiber distribution system can be an optical fiber connection in a siso mode or an optical fiber connection in a mimo mode, the optical fiber delays can include an FDD optical fiber delay and a TDD optical fiber delay of the siso and an FDD optical fiber delay and a TDD optical fiber delay of the mimo.
And the FPGA chip in the extension unit can acquire the transmission rate conversion delay of each terminal connected by the optical fiber, wherein the transmission rate conversion delay of each terminal can be acquired through actual test. The transmission rate conversion delay is also called Carrier Aggregation (CA) delay, and refers to processing delay generated by the FPGA through rate conversion. Such as the processing delay resulting from the 92.16MBPS transition to 46.08 MBPS.
Step 220, the extension unit sends the first maximum optical fiber delay and the first maximum CA delay to the near end according to the acquired optical fiber delay and CA delay.
The FPGA of the extension unit searches for the maximum value of the optical fiber time delay and the maximum value of the CA time delay in the acquired optical fiber time delay and CA time delay of at least one far end; and determining the maximum optical fiber delay as the first maximum optical fiber delay, and determining the maximum CA delay as the first maximum CA delay.
And then, sending the first maximum optical fiber delay and the first maximum CA delay to the near end, wherein the FPGA of the extension unit can send the first maximum optical fiber delay and the first maximum CA delay to the near end in a return mode. The first maximum optical fiber delay comprises a first FDD maximum optical fiber delay and a first TDD maximum optical fiber delay.
It should be noted that each extension unit may also send the first maximum fiber delay and the first maximum CA delay to the near end by monitoring the backhaul. However, compared with the FPGA return and the monitoring return, the return through the FPGA has higher instantaneity and is more stable.
And step 230, the near end acquires a second maximum fiber delay and a second maximum CA delay according to the multiple first maximum fiber delays and the multiple first maximum CA delays sent by the multiple extension units.
After receiving the multiple first maximum optical fiber delays sent by the multiple extension units, the near-end FPGA searches the maximum optical fiber delay from the multiple first maximum optical fiber delays as a second maximum optical fiber delay, and searches the maximum CA delay from the multiple first maximum CA delays as a second maximum CA delay.
And the second maximum optical fiber delay comprises a second FDD maximum optical fiber delay and a second TDD maximum optical fiber delay.
And 240, broadcasting the second maximum optical fiber delay, the second maximum CA delay and preset delay configuration information to the plurality of extension units by the near end.
The preset time delay configuration information may be system maximum optical fiber time delay configuration information or split maximum optical fiber time delay configuration information. This configuration information may be preconfigured in the near end by the technician as the case may be.
And the near end enables all the extension units in the optical fiber distributed system to receive the second maximum optical fiber time delay, the second maximum CA time delay and the preset time delay configuration information in a broadcasting mode.
And step 250, the extension unit configures the second maximum optical fiber time delay according to the preset time delay configuration information to obtain the target optical fiber time delay of the optical fiber distributed system.
If the preset time delay configuration information is the maximum optical fiber time delay configuration information of the system, the FPGA of the extension unit determines the maximum value of the second FDD maximum optical fiber time delay and the second TDD maximum optical fiber time delay as the target optical fiber time delay of the optical fiber distributed system;
then, the FPGA of the extension unit can assign the target optical fiber delay of the optical fiber distribution system to the temporary FDD maximum optical fiber delay in the preset format and the temporary TDD maximum optical fiber delay in the preset format.
If the preset time delay configuration information is the split type maximum optical fiber time delay configuration information, the FPGA of the extension unit respectively determines the second FDD maximum optical fiber time delay and the second TDD maximum optical fiber time delay as the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system.
Then, the FPGA of the extension unit can assign the FDD target optical fiber delay of the optical fiber distribution system and the TDD target optical fiber delay of the optical fiber distribution system to the temporary FDD maximum optical fiber delay of the preset format and the temporary TDD maximum optical fiber delay of the preset format at the same time.
The preset format of the temporary FDD maximum optical fiber delay and the temporary TDD maximum optical fiber delay is an application format of the extension unit and at least one far end connected with the extension unit.
Optionally, the FPGA of the extension unit may use a preset compensation algorithm to calculate the target optical fiber delay and the obtained optical fiber delay of the optical fiber distributed system, so as to obtain the optical fiber delay compensation values of each of the far end and the near end.
Specifically, if the target optical fiber delay of the optical fiber distributed system is configured according to the maximum optical fiber delay configuration information of the system, the FPGA of the extension unit may determine a difference between the target optical fiber delay of the optical fiber distributed system and the FDD optical fiber delay as a first optical fiber delay compensation value, and determine a difference between the target optical fiber delay of the optical fiber distributed system and the TDD optical fiber delay as a second optical fiber delay compensation value.
Optionally, if the TDD optical fiber delay is a TDD-standard siso optical fiber delay or mimo optical fiber delay, using the second optical fiber delay compensation value as the optical fiber delay compensation value of siso or mimo; and if the FDD optical fiber delay is the siso optical fiber delay or the mimo optical fiber delay, taking the first optical fiber delay compensation value as the optical fiber delay compensation value of the siso or the mimo.
If the target optical fiber time delay of the optical fiber distributed system is configured according to the maximum optical fiber time delay configuration information of the split type, and the target optical fiber time delay of the optical fiber distributed system includes FDD target optical fiber time delay of the optical fiber distributed system and TDD target optical fiber time delay of the optical fiber distributed system, the FPGA of the extension unit may determine a difference between the FDD target optical fiber time delay and the FDD optical fiber time delay of the optical fiber distributed system as a third optical fiber time delay compensation value, and determine a difference between the TDD target optical fiber time delay and the TDD optical fiber time delay of the optical fiber distributed system as a fourth optical fiber time delay compensation value.
Optionally, if the TDD optical fiber delay is a TDD-standard siso optical fiber delay or mimo optical fiber delay, using the fourth optical fiber delay compensation value as the optical fiber delay compensation value of siso or mimo;
and if the FDD optical fiber delay is the siso optical fiber delay or the mimo optical fiber delay, taking the third optical fiber delay compensation value as the optical fiber delay compensation value of the siso or the mimo.
Optionally, the FPGA of the extension unit may further receive an optical fiber delay compensation value manually input by a technician to obtain an optical fiber delay compensation value, where the optical fiber delay compensation value may include a siso optical fiber delay compensation value and a mimo optical fiber delay compensation value.
And step 260, the extension unit acquires the CA delay compensation value of each data transmission channel according to the second maximum CA delay and the CA delay of each data transmission channel.
And the FPGA of the extension unit determines the difference between the second maximum CA time delay and the CA time delay of each data transmission channel as the CA time delay compensation value of each data transmission channel.
Optionally, the FPGA of the extension unit may further receive a CA delay compensation value manually input by a technician to obtain a CA delay compensation value of each data transmission channel.
And 270, the extension unit sends the target optical fiber delay of the optical fiber distributed system and the CA delay compensation value of each data transmission channel to each remote end.
The FPGA of the extension unit can synchronize the target optical fiber time delay of the optical fiber distributed system and the CA time delay compensation value of each data transmission channel to a far end in a monitoring and returning mode.
And step 280, the far end adopts a preset compensation algorithm to calculate the target optical fiber time delay and the optical fiber time delay of the optical fiber distributed system, and optical fiber time delay compensation values of each far end and each near end are obtained.
Before the step is executed, the far-end FPGA may obtain the optical fiber delay between the far end and the near end in the optical fiber distributed system, that is, obtain the FDD optical fiber delay and TDD optical fiber delay of the siso and the FDD optical fiber delay and TDD optical fiber delay of the mimo.
If the target optical fiber time delay of the optical fiber distributed system is configured by the extension unit according to the maximum optical fiber time delay configuration information of the system, the far-end FPGA can determine the difference between the target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a first optical fiber time delay compensation value, and determine the difference between the target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a second optical fiber time delay compensation value;
optionally, if the TDD optical fiber delay is a TDD-standard siso optical fiber delay or mimo optical fiber delay, using the second optical fiber delay compensation value as the optical fiber delay compensation value of siso or mimo; and if the FDD optical fiber delay is the siso optical fiber delay or the mimo optical fiber delay, taking the first optical fiber delay compensation value as the optical fiber delay compensation value of the siso or the mimo.
If the target optical fiber time delay of the optical fiber distributed system is configured by the extension unit according to the maximum optical fiber time delay configuration information of the split type, and the target optical fiber time delay of the optical fiber distributed system comprises the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system, the far-end FPGA may determine a difference between the FDD target optical fiber time delay and the FDD optical fiber time delay of the optical fiber distributed system as a third optical fiber time delay compensation value, and determine a difference between the TDD target optical fiber time delay and the TDD optical fiber time delay of the optical fiber distributed system as a fourth optical fiber time delay compensation value.
Optionally, if the TDD optical fiber delay is a TDD-standard siso optical fiber delay or mimo optical fiber delay, using the fourth optical fiber delay compensation value as the optical fiber delay compensation value of siso or mimo; and if the FDD optical fiber delay is the siso optical fiber delay or the mimo optical fiber delay, taking the third optical fiber delay compensation value as the optical fiber delay compensation value of the siso or the mimo.
Optionally, the FPGA at the remote end may further receive an optical fiber delay compensation value manually input by a technician to obtain an optical fiber delay compensation value, where the optical fiber delay compensation value may include a siso optical fiber delay compensation value and a mimo optical fiber delay compensation value.
It can be understood that, if the far end does not receive the fiber delay compensation value from the extension unit, the far end will perform the above steps; if the far end receives the fiber delay compensation value between the far end and the near end from the extension unit, the far end does not execute the step.
And 290, the remote end acquires the delay adjustment value of the data transmission channel by adopting a preset delay adjustment algorithm for the CA delay compensation value and the optical fiber delay compensation value of each data transmission channel.
And the far-end FPGA sums the CA delay compensation value and the optical fiber delay compensation value of each data transmission channel, performs delay adjustment operation on the sum of the CA delay compensation value and the optical fiber delay compensation value by adopting a preset delay adjustment algorithm to obtain a delay adjustment value of the corresponding data transmission channel, and performs delay adjustment on the corresponding data transmission channel according to the delay adjustment value to realize delay alignment.
For example, the sum of the CA delay compensation value and the optical fiber delay compensation value of the target data transmission channel is a, the preset delay adjustment algorithm is a logarithm algorithm, and therefore the delay adjustment value of the target data transmission channel is lognA, wherein n is the base of the logarithm, n>0 and n ≠ 1.
In the method for obtaining a delay adjustment value provided in the above embodiment of the present invention, an extension unit first obtains an optical fiber delay between each far end and each near end in at least one far end in an optical fiber distributed system and a carrier aggregation CA delay of each data transmission channel between each far end and each near end, where at least one far end is connected to a near end through the extension unit; then according to the obtained optical fiber time delay and the CA time delay, sending a first maximum optical fiber time delay and a first maximum CA time delay to the near end; the first maximum optical fiber delay is the optical fiber delay with the maximum optical fiber delay value in the optical fiber delay, and the first maximum CA delay is the CA delay with the maximum CA delay value in the CA delay; receiving second maximum optical fiber time delay, second maximum CA time delay and preset time delay configuration information broadcasted by a near end, wherein the second maximum optical fiber time delay is the optical fiber time delay with the maximum found time delay value after the near end receives a plurality of first maximum optical fiber time delays sent by a plurality of extension units, and the second maximum CA time delay is the CA time delay with the maximum found time delay value after the near end receives a plurality of first maximum CA time delays sent by a plurality of extension units; then configuring the second maximum optical fiber time delay according to preset time delay configuration information to obtain a target optical fiber time delay of the system, and obtaining a CA time delay compensation value of each data transmission channel according to the second maximum CA time delay and the CA time delay of each data transmission channel; and sending the target optical fiber time delay of the optical fiber distributed system and the CA time delay compensation value of each data transmission channel to each remote end so that each remote end obtains a time delay adjustment value. Compared with the prior art, the method does not need to add optical fibers or modify program codes to realize time delay alignment, thereby improving the real-time performance and convenience of time delay alignment and reducing the cost.
Corresponding to the foregoing method, an embodiment of the present invention further provides a device for obtaining a delay adjustment value, where as shown in fig. 3, the device for obtaining a delay adjustment value includes: an acquisition unit 310, a sending unit 320, a receiving unit 330, and a configuration unit 340;
an obtaining unit 310, configured to obtain an optical fiber delay between each far end and a near end in at least one far end in an optical fiber distributed system and a carrier aggregation CA delay of each data transmission channel between each far end and the near end, where the at least one far end is connected to the near end through the apparatus;
a sending unit 320, configured to send a first maximum fiber delay and a first maximum CA delay to the near end according to the obtained fiber delay and the obtained CA delay; the first maximum optical fiber delay is the optical fiber delay with the maximum delay value in the optical fiber delays, and the first maximum CA delay is the CA delay with the maximum delay value in the CA delays;
a receiving unit 330, configured to receive a second maximum optical fiber delay, a second maximum CA delay, and preset delay configuration information broadcasted by the near end, where the second maximum optical fiber delay is an optical fiber delay with a maximum found delay value after the near end receives multiple first maximum optical fiber delays sent by multiple devices, and the second maximum CA delay is a CA delay with a maximum found delay value after the near end receives multiple first maximum CA delays sent by multiple devices;
a configuration unit 340, configured to configure the second maximum optical fiber delay according to the preset delay configuration information, so as to obtain a target optical fiber delay of the system;
an obtaining unit 310, further configured to obtain a CA time delay compensation value of each data transmission channel according to the second maximum CA time delay and the CA time delay of each data transmission channel;
a sending unit 320, configured to send the target optical fiber delay of the optical fiber distributed system and the CA delay compensation value of each data transmission channel to each remote end, so that each remote end obtains a delay adjustment value.
In an alternative implementation, the second maximum fiber delay includes a second FDD maximum fiber delay and a second TDD maximum fiber delay;
a configuration unit 340, configured to specifically determine, if the preset time delay configuration information is system maximum optical fiber time delay configuration information, a maximum value of the second FDD maximum optical fiber time delay and the second TDD maximum optical fiber time delay as a target optical fiber time delay of the optical fiber distributed system;
and if the preset time delay configuration information is the split type maximum optical fiber time delay configuration information, respectively determining the second FDD maximum optical fiber time delay and the second TDD maximum optical fiber time delay as the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system.
In an optional implementation, the obtaining unit 310 is further configured to calculate a target optical fiber delay and the optical fiber delay of the optical fiber distributed system by using a preset compensation algorithm, and obtain an optical fiber delay compensation value of each of the far end and the near end.
In an alternative implementation, the optical fiber delay includes an FDD optical fiber delay and a TDD optical fiber delay;
an obtaining unit 310, configured to determine, if the target optical fiber delay of the optical fiber distributed system is configured according to the maximum optical fiber delay configuration information of the system, a difference between the target optical fiber delay of the optical fiber distributed system and the FDD optical fiber delay as a first optical fiber delay compensation value, and determine a difference between the target optical fiber delay of the optical fiber distributed system and the TDD optical fiber delay as a second optical fiber delay compensation value;
and if the target optical fiber time delay of the optical fiber distributed system is configured according to the maximum optical fiber time delay configuration information of the splitting type, and the target optical fiber time delay of the optical fiber distributed system comprises the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system, determining the difference between the FDD target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a third optical fiber time delay compensation value, and determining the difference between the TDD target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a fourth optical fiber time delay compensation value.
In an optional implementation, the obtaining unit 310 is further specifically configured to determine a difference between the second maximum CA delay and the CA delay of each data transmission channel as a CA delay compensation value of each data transmission channel.
The functions of each functional unit of the apparatus for obtaining a delay adjustment value provided in the foregoing embodiment of the present invention may be implemented by using the above method steps, and therefore, detailed working processes and beneficial effects of each unit in the apparatus for obtaining a delay adjustment value provided in the foregoing embodiment of the present invention are not described herein again.
Corresponding to the foregoing method, an embodiment of the present invention further provides a device for obtaining a delay adjustment value, where as shown in fig. 4, the device for obtaining a delay adjustment value includes: an acquisition unit 410 and a receiving unit 420;
an obtaining unit 410, configured to obtain an optical fiber time delay between the far end and the near end in an optical fiber distributed system;
a receiving unit 420, configured to receive a target optical fiber delay of the optical fiber distributed system and a CA delay compensation value of each data transmission channel between the far end and the near end, where the target optical fiber delay is sent by the extension unit;
the obtaining unit 410 is further configured to calculate a target optical fiber delay and the optical fiber delay of the optical fiber distributed system by using a preset compensation algorithm, and obtain optical fiber delay compensation values of the far end and the near end;
and adopting a preset time delay adjustment algorithm for the CA time delay compensation value and the optical fiber time delay compensation value of each data transmission channel to obtain the time delay adjustment value of the data transmission channel so as to perform time delay adjustment on the channel.
In an alternative implementation, the optical fiber delay includes an FDD optical fiber delay and a TDD optical fiber delay;
an obtaining unit 410, configured to determine, if the target optical fiber delay of the optical fiber distributed system is configured by the extension unit according to the maximum system optical fiber delay configuration information, a difference between the target optical fiber delay of the optical fiber distributed system and the FDD optical fiber delay as a first optical fiber delay compensation value, and determine a difference between the target optical fiber delay of the optical fiber distributed system and the TDD optical fiber delay as a second optical fiber delay compensation value;
and if the target optical fiber time delay of the optical fiber distributed system is configured by the extension unit according to the maximum optical fiber time delay configuration information of the split type, and the target optical fiber time delay of the optical fiber distributed system comprises the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system, determining the difference between the FDD target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a third optical fiber time delay compensation value, and determining the difference between the TDD target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a fourth optical fiber time delay compensation value.
The functions of each functional unit of the apparatus for obtaining a delay adjustment value provided in the foregoing embodiment of the present invention may be implemented by using the above method steps, and therefore, detailed working processes and beneficial effects of each unit in the apparatus for obtaining a delay adjustment value provided in the foregoing embodiment of the present invention are not described herein again.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, including a processor 510, a communication interface 520, a memory 530 and a communication bus 540, where the processor 510, the communication interface 520, and the memory 530 complete mutual communication through the communication bus 540.
A memory 530 for storing a computer program;
the processor 510, when executing the program stored in the memory 530, implements the following steps:
acquiring optical fiber time delay between each far end and a near end in at least one far end in an optical fiber distributed system and Carrier Aggregation (CA) time delay of each data transmission channel between each far end and the near end, wherein the at least one far end is connected with the near end through the extension unit;
sending a first maximum optical fiber delay and a first maximum CA delay to the near end according to the acquired optical fiber delay and the acquired CA delay; the first maximum optical fiber delay is the optical fiber delay with the maximum delay value in the optical fiber delays, and the first maximum CA delay is the CA delay with the maximum delay value in the CA delays;
receiving a second maximum optical fiber delay, a second maximum CA delay and preset delay configuration information broadcasted by the near end, wherein the second maximum optical fiber delay is an optical fiber delay with a maximum found delay value after the near end receives a plurality of first maximum optical fiber delays sent by a plurality of extension units, and the second maximum CA delay is an CA delay with a maximum found delay value after the near end receives a plurality of first maximum CA delays sent by a plurality of extension units;
configuring the second maximum optical fiber time delay according to the preset time delay configuration information to obtain a target optical fiber time delay of the system;
acquiring a CA time delay compensation value of each data transmission channel according to the second maximum CA time delay and the CA time delay of each data transmission channel;
and sending the target optical fiber time delay of the optical fiber distributed system and the CA time delay compensation value of each data transmission channel to each remote end so that each remote end obtains a time delay adjustment value.
In an alternative implementation, the second maximum fiber delay includes a second FDD maximum fiber delay and a second TDD maximum fiber delay;
configuring the second maximum optical fiber time delay according to the preset time delay configuration information to obtain a target optical fiber time delay of the optical fiber distributed system, including:
if the preset time delay configuration information is the maximum optical fiber time delay configuration information of the system, determining the maximum value of the second FDD maximum optical fiber time delay and the second TDD maximum optical fiber time delay as the target optical fiber time delay of the optical fiber distributed system;
and if the preset time delay configuration information is the split type maximum optical fiber time delay configuration information, respectively determining the second FDD maximum optical fiber time delay and the second TDD maximum optical fiber time delay as the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system.
In an optional implementation, after obtaining the target optical fiber delay of the optical fiber distribution system, the method further includes:
and calculating the target optical fiber time delay and the optical fiber time delay of the optical fiber distributed system by adopting a preset compensation algorithm to obtain the optical fiber time delay compensation value of each far end and each near end.
In an alternative implementation, the optical fiber delay includes an FDD optical fiber delay and a TDD optical fiber delay;
obtaining the optical fiber delay compensation value of each far end and the near end, including:
if the target optical fiber time delay of the optical fiber distributed system is configured according to the maximum optical fiber time delay configuration information of the system, determining the difference between the target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a first optical fiber time delay compensation value, and determining the difference between the target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a second optical fiber time delay compensation value;
and if the target optical fiber time delay of the optical fiber distributed system is configured according to the maximum optical fiber time delay configuration information of the splitting type, and the target optical fiber time delay of the optical fiber distributed system comprises the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system, determining the difference between the FDD target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a third optical fiber time delay compensation value, and determining the difference between the TDD target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a fourth optical fiber time delay compensation value.
In an optional implementation, obtaining the CA delay compensation value of each data transmission channel according to the second maximum CA delay and the CA delay of each data transmission channel includes:
and determining the difference between the second maximum CA time delay and the CA time delay of each data transmission channel as the CA time delay compensation value of each data transmission channel.
Alternatively, the following steps are performed:
acquiring the optical fiber time delay between the far end and the near end in the optical fiber distributed system;
receiving a target optical fiber time delay of the optical fiber distributed system and a CA time delay compensation value of each data transmission channel between the far end and the near end, which are sent by an extension unit;
calculating the target optical fiber time delay and the optical fiber time delay of the optical fiber distributed system by adopting a preset compensation algorithm to obtain optical fiber time delay compensation values of the far end and the near end;
and adopting a preset time delay adjustment algorithm for the CA time delay compensation value and the optical fiber time delay compensation value of each data transmission channel to obtain the time delay adjustment value of the data transmission channel so as to perform time delay adjustment on the channel.
In an alternative implementation, the optical fiber delay includes an FDD optical fiber delay and a TDD optical fiber delay;
obtaining the optical fiber delay compensation values of the far end and the near end, including:
if the target optical fiber time delay of the optical fiber distributed system is configured by the extension unit according to the maximum optical fiber time delay configuration information of the system, determining the difference between the target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a first optical fiber time delay compensation value, and determining the difference between the target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a second optical fiber time delay compensation value;
and if the target optical fiber time delay of the optical fiber distributed system is configured by the extension unit according to the maximum optical fiber time delay configuration information of the split type, and the target optical fiber time delay of the optical fiber distributed system comprises the FDD target optical fiber time delay of the optical fiber distributed system and the TDD target optical fiber time delay of the optical fiber distributed system, determining the difference between the FDD target optical fiber time delay of the optical fiber distributed system and the FDD optical fiber time delay as a third optical fiber time delay compensation value, and determining the difference between the TDD target optical fiber time delay of the optical fiber distributed system and the TDD optical fiber time delay as a fourth optical fiber time delay compensation value.
The aforementioned communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Since the implementation manner and the beneficial effects of the problem solving of each device of the electronic device in the foregoing embodiment can be implemented by referring to each step in the embodiment shown in fig. 2, detailed working processes and beneficial effects of the electronic device provided by the embodiment of the present invention are not described herein again.
In another embodiment of the present invention, a computer-readable storage medium is further provided, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the method for acquiring a delay adjustment value according to any one of the foregoing embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for acquiring a latency adjustment value according to any one of the above embodiments.
As will be appreciated by one of skill in the art, the embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present application.
It is apparent that those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their equivalents, the embodiments of the present application are also intended to include such modifications and variations.