WO2022062308A1 - Reference clock determination method and apparatus, and system, storage medium and electronic apparatus - Google Patents

Reference clock determination method and apparatus, and system, storage medium and electronic apparatus Download PDF

Info

Publication number
WO2022062308A1
WO2022062308A1 PCT/CN2021/077118 CN2021077118W WO2022062308A1 WO 2022062308 A1 WO2022062308 A1 WO 2022062308A1 CN 2021077118 W CN2021077118 W CN 2021077118W WO 2022062308 A1 WO2022062308 A1 WO 2022062308A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
signal
identification information
current remote
target loop
Prior art date
Application number
PCT/CN2021/077118
Other languages
French (fr)
Chinese (zh)
Inventor
吴涛
沈杰
陈高强
张静静
马超
Original Assignee
三维通信股份有限公司
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 三维通信股份有限公司 filed Critical 三维通信股份有限公司
Publication of WO2022062308A1 publication Critical patent/WO2022062308A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/04Speed or phase control by synchronisation signals

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and device, system, storage medium and electronic device for determining a reference clock.
  • the distributed coverage system includes a base station, a near-end unit (also known as an access unit, Access Unit, abbreviated as AU), a remote unit (also known as a remote unit, Remote Unit, abbreviated as RU) and other equipment.
  • Each device includes a transmitter, a receiver, and a digital pre-distortion (Digital Pre-Distortion, referred to as DPD) feedback path.
  • DPD Digital Pre-Distortion
  • Various transmitters and receivers can include data converters such as Analog to Digital/Digital to Analog Converters (ADC/DAC for short), due to the phase noise and jitter performance of the clock generator.
  • ADC/DAC Analog to Digital/Digital to Analog Converters
  • EVM Error Vector Magnitude
  • the clock source used for synchronization between base stations usually comes from the Global Positioning System (GPS for short), while the clock source for synchronization between devices such as AU or RU comes from the Common Public Radio Interface (CPRI for short) link.
  • GPS has excellent long-term frequency stability; while devices such as RU need to recover the clock from the CPRI link and use it as the reference clock of the local clock chip, and the recovered clock has been generated relative to the reference clock of the upper-level device. Deterioration of phase noise and jitter, and therefore a poor reference clock, will lead to increased phase noise of the LO, which in turn increases the transmit/receive EVM and Signal Noise Ratio (SNR).
  • GPS Global Positioning System
  • CPRI Common Public Radio Interface
  • clock jitter and noise floor can reduce system SNR and cause spurious radiation of data converters, which further reduces the spurious-free dynamic range (SFDR) of data converters, resulting in low performance.
  • SFDR spurious-free dynamic range
  • the clock source ultimately results in a reduction in system capacity and throughput.
  • the networking modes of the distributed overlay system include a star type, a chain type, and a hybrid type of the star type and the chain type.
  • the networking mode requires loop protection, that is, the near-end unit and multiple remote units are connected in series to form a loop.
  • the more remote units are cascaded on the loop, the more remote units in the last level The greater the clock phase noise, the greater the degradation to the EVM.
  • the A port of the AU is connected to RU1, RU1 is connected to RU2... RU7 is connected to RU8, and RU8 is connected to the D port of the AU.
  • the RU devices in the loop are in the last stage of signal transmission and also the last stage of clock recovery.
  • the received clock phase noise is the largest, so that the EVM of the clock phase signal of the RU8 will be correspondingly worse, thus affecting the signal transmission rate.
  • Embodiments of the present invention provide a method, device, system, storage medium, and electronic device for determining a reference clock, so as to at least solve the problem that the increase in the number of cascaded stages of remote devices in the loop causes the reference clock of the remote devices in the loop The technical problem of increasing phase noise.
  • a method for determining a reference clock comprising: performing the following operations on each remote unit in a target loop, wherein when performing the following operations on each remote unit , determine each remote unit as the current remote unit: obtain the first signal received by the first port of the current remote unit from the target loop, and the second signal of the current remote unit The second signal received by the port from the target loop, wherein the target loop includes: a loop composed of a near-end machine and a plurality of remote machines; according to the first signal and the second signal , determine that one of the first port and the second port of the current remote machine is the slave port, and the other port of the first port and the second port is the master port; according to The signal received from the target loop by the slave port of the current remote unit determines the reference clock of the current remote unit.
  • the method further includes: using the first port of the near-end machine and the second port of the near-end machine respectively A first signal and a second signal are sent to the target loop, wherein the first signal is transmitted in the target loop according to a first signal transmission path, and the second signal is transmitted in the target loop according to The second signal transmission path is transmitted, and the first signal sent by the near-end unit carries first identification information and second identification information, and the first identification information is used to indicate the first identification information of the near-end unit.
  • the second identification information is used to indicate that the number of remote units that the first signal passes through in the target loop is an initial value
  • the second signal sent by the near-end unit carries third identification information and fourth identification information, where the third identification information is used to indicate the second port of the near-end machine, and the fourth identification information is used to indicate that the second signal is in the target ring
  • the number of remote units passing on the road is the initial value.
  • the method further includes: receiving the first signal from a first device connected to the current remote unit through the first port of the current remote unit, and receiving the first signal through the current remote unit
  • the second port of the terminal receives the second signal from a second device connected to the current remote, wherein the first device is the first device in the target loop that is connected to the current remote.
  • the second device is a device in the target loop connected to the second port of the current remote machine; carrying the first signal received by the current remote machine
  • the updated second identification information is obtained, and the fourth identification information carried in the second signal received by the second port of the current remote machine is obtained.
  • the updated fourth identification information is obtained; the second identification information in the first signal received by the current remote unit is updated using the updated second identification information.
  • the fourth identification information in the second signal received by the current remote unit is updated to obtain an updated second signal, and the updated second signal is passed through the first signal of the current remote unit.
  • a port is sent to the first device.
  • the first signal and the second signal it is determined that one of the first port and the second port of the current remote machine is a slave port, and the first port is a slave port.
  • One of the ports and the other port of the second port is the master port, including: acquiring the first identification information and the second identification information carried in the first signal, and the third identification carried in the second signal information and fourth identification information, wherein the second identification information is used to indicate the number of remote units that the first signal passes through in the target loop, and the fourth identification information is used to indicate the first The number of remote units that the second signal passes through in the target loop; the first identification information indicates one port of the near-end unit, and the third identification information indicates another port of the near-end unit In the case of a port, when the value represented by the second identification information is less than or equal to the value represented by the fourth identification information, the first port of the current remote unit is determined as the current remote unit.
  • the slave port of the end machine, and the second port of the current remote machine is determined as the master port of the current remote machine;
  • the first identification information indicates the one port of the near end machine , and when the third identification information indicates the other port of the near-end device, in the case that the value indicated by the second identification information is greater than the value indicated by the fourth identification information, the The second port of the current remote machine is determined as the slave port of the current remote machine, and the first port of the current remote machine is determined as the master port of the current remote machine.
  • the determining the reference clock of the current remote machine according to the signal received from the target loop by the slave port of the current remote machine includes: acquiring the slave port of the current remote machine from the target loop. The signal received from the device connected to the slave port of the current remote machine in the target loop; according to the signal received from the device connected to the slave port of the current remote machine in the target loop and recover the clock signal; determine the recovered clock signal as the reference clock of the current remote unit.
  • the first signal and the second signal it is determined that one of the first port and the second port of the current remote machine is a slave port, and the first port is a slave port.
  • the other one of one port and the second port is the main port, including: receiving the signal sent by the second remote machine connected to the main port of the current remote machine through the current remote machine, and passing the signal sent by the second remote machine connected to the main port of the current remote machine.
  • the current remote unit does not receive a signal sent by the first remote unit connected to the slave port of the current remote unit within a preset time period, it is determined that the first remote unit is faulty; Switching the slave port of the current remote machine and the master port of the current remote machine, wherein the plurality of remote machines further includes the first remote machine and the second remote machine remote machine.
  • an apparatus for determining a reference clock comprising: an acquisition module, a first determination module and a second determination module, the apparatus is configured to use the acquisition module, the first determination module The module and the second determining module determine the reference clock of each remote unit in the target loop, wherein when determining the reference clock of each remote unit, each remote unit is determined as the current Remote unit: wherein the acquisition module is configured to acquire the first signal received by the first port of the current remote unit from the target loop, and the second port of the current remote unit from the target loop.
  • the second signal received on the target loop wherein the target loop includes: a loop composed of a near-end machine and a plurality of remote machines; the first determining module is set to be based on the first signal and the second signal, determining that one of the first port and the second port of the current remote unit is a slave port, and the other one of the first port and the second port
  • the port is the master port; the second determining module is configured to determine the reference clock of the current remote machine according to the signal received from the target loop by the slave port of the current remote machine.
  • a system for determining a reference clock comprising: a near-end unit and a plurality of remote units, wherein each remote unit in the plurality of remote units is used to execute The following operation, wherein, when each remote terminal performs the following operation, it determines itself as the current remote terminal: acquiring the first signal received by the first port of the current remote terminal from the target loop , and the second signal received by the second port of the current remote machine from the target loop, wherein the target loop includes: a signal composed of the near-end machine and the plurality of remote machines loop; according to the first signal and the second signal, determine that one of the first port and the second port of the current remote machine is a slave port, and the first port and The other port in the second port is the master port; the reference clock of the current remote machine is determined according to the signal received from the target loop by the slave port of the current remote machine.
  • each remote unit is determined as the current remote unit: Obtain the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop, wherein,
  • the target loop includes: a loop composed of a near-end machine and a plurality of far-end machines; according to the first signal and the second signal, determine the first port and all the current far-end machines.
  • One port in the second port is a slave port, and the other port in the first port and the second port is a master port; according to the slave port of the current remote machine, from the target loop
  • the received signal determines the reference clock of the current remote unit. Therefore, it is possible to solve the technical problem that the increase in the number of cascaded stages of the remote device in the loop leads to an increase in the phase noise of the reference clock of the remote device in the loop, and reduce the problem caused by the increase of the number of cascaded stages of the remote device.
  • the phase noise of the remote device's reference clock reduces the system's transmit/receive error vector magnitude degradation.
  • FIG. 1 is a schematic diagram of a method for determining a reference clock in the related art
  • FIG. 2 is a flowchart of a method for determining a reference clock according to an embodiment of the present invention
  • FIG. 3 is a network topology diagram of a method for determining a reference clock according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram (1) of loop protection according to another embodiment of the present invention.
  • FIG. 5 is a schematic diagram (2) of loop protection according to another embodiment of the present invention.
  • FIG. 6 is a structural block diagram of an apparatus for determining a reference clock according to another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for determining a reference clock according to an embodiment of the present invention.
  • the following is performed for each remote unit in the target loop.
  • Step S102 acquiring the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop , wherein the target loop includes: a loop composed of a near-end machine and a plurality of remote machines;
  • Step S104 according to the first signal and the second signal, determine that one of the first port and the second port of the current remote machine is a slave port, and the first port and the second port are The other port in the second port is the main port;
  • Step S106 Determine the reference clock of the current remote machine according to the signal received from the target loop by the slave port of the current remote machine.
  • each remote unit is determined as the current remote unit: Obtain the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop, wherein,
  • the target loop includes: a loop composed of a near-end machine and a plurality of far-end machines; according to the first signal and the second signal, determine the first port and all the current far-end machines.
  • One port in the second port is a slave port, and the other port in the first port and the second port is a master port; according to the slave port of the current remote machine, from the target loop
  • the received signal determines the reference clock of the current remote unit. Therefore, it is possible to solve the technical problem that the increase in the number of cascaded stages of the remote device in the loop leads to an increase in the phase noise of the reference clock of the remote device in the loop, and reduce the problem caused by the increase of the number of cascaded stages of the remote device.
  • the phase noise of the remote device's reference clock reduces the system's transmit/receive error vector magnitude degradation.
  • the first port of each remote terminal receives the first signal from the target loop and the second port receives the second signal from the target loop, that is, there is a bidirectional signal transmission path in the target loop.
  • the method further includes: using the first port of the near-end machine and the second port of the near-end machine respectively A first signal and a second signal are sent to the target loop, wherein the first signal is transmitted in the target loop according to a first signal transmission path, and the second signal is transmitted in the target loop according to The second signal transmission path is transmitted, and the first signal sent by the near-end unit carries first identification information and second identification information, and the first identification information is used to indicate the first identification information of the near-end unit.
  • the second identification information is used to indicate that the number of remote units that the first signal passes through in the target loop is an initial value
  • the second signal sent by the near-end unit carries third identification information and fourth identification information, where the third identification information is used to indicate the second port of the near-end machine, and the fourth identification information is used to indicate that the second signal is in the target ring
  • the number of remote units passing on the road is the initial value.
  • the method further includes: receiving the first signal from a first device connected to the current remote unit through the first port of the current remote unit, and receiving the first signal through the current remote unit
  • the second port of the terminal receives the second signal from a second device connected to the current remote, wherein the first device is the first device in the target loop that is connected to the current remote.
  • the second device is a device in the target loop connected to the second port of the current remote machine; carrying the first signal received by the current remote machine
  • the updated second identification information is obtained, and the fourth identification information carried in the second signal received by the second port of the current remote machine is obtained.
  • the updated fourth identification information is obtained; the second identification information in the first signal received by the current remote unit is updated using the updated second identification information.
  • the fourth identification information in the second signal received by the current remote unit is updated to obtain an updated second signal, and the updated second signal is passed through the first signal of the current remote unit.
  • a port is sent to the first device.
  • the first port of RU1 ie, port 1
  • the second port ie, port 2
  • the second port continues to send the updated first signal to the target loop connected to the second port.
  • the remote terminal When the port receives the second signal, the remote terminal also adds 1 to the value represented by the fourth identification information in the second signal to obtain the updated second signal, and continues to send the updated second signal through its second port For the next device connected to its second port, for example, after the first port of RU8 receives the second signal sent by the D port of the AU, it adds 1 to the value represented by the fourth identification information in the second signal to obtain the updated the second signal, and send the updated second signal to the next device in the target loop connected to the second port of RU8 through the second port of RU8, until the first port of the AU receives the updated second signal sent by RU1 second signal.
  • the first identification information carried in the first signal sent by the A port of the AU is A (the content of the first identification information may be "A" expressed in hexadecimal form), and the value represented by the second identification information is 0,
  • the third identification information carried in the first signal sent by the D port of the AU is D, and the value represented by the fourth identification information is 0.
  • the first signal received by the first port of RU1 carries "A1", and RU2
  • the first signal received from RU1 carries "A2”, ... the first signal received by the D port of AU from RU8 carries "A9”;
  • the second signal received by the second port of RU8 carries "A9"; "D1", the second signal received by RU7 from RU8 carries “D2”, ... the second signal received by port A of the AU from RU1 carries "D9".
  • the first signal and the second signal it is determined that one of the first port and the second port of the current remote machine is a slave port, and the first port is a slave port.
  • One of the ports and the other port of the second port is the master port, including: acquiring the first identification information and the second identification information carried in the first signal, and the third identification carried in the second signal information and fourth identification information, wherein the second identification information is used to indicate the number of remote units that the first signal passes through in the target loop, and the fourth identification information is used to indicate the first The number of remote units that the second signal passes through in the target loop; the first identification information indicates one port of the near-end unit, and the third identification information indicates another port of the near-end unit In the case of a port, when the value represented by the second identification information is less than or equal to the value represented by the fourth identification information, the first port of the current remote unit is determined as the current remote unit.
  • the slave port of the end machine, and the second port of the current remote machine is determined as the master port of the current remote machine;
  • the first identification information indicates the one port of the near end machine , and when the third identification information indicates the other port of the near-end device, in the case that the value indicated by the second identification information is greater than the value indicated by the fourth identification information, the The second port of the current remote machine is determined as the slave port of the current remote machine, and the first port of the current remote machine is determined as the master port of the current remote machine.
  • the first identification information carried in the first signal represents a port of the near-end machine (for example, the first port A), and the third identification carried in the second signal If the information indicates another port of the near-end unit (for example, the second port D), it can be determined that there is no faulty device in the target loop where the current far-end unit is located, and in the first If the value indicated by the second identification information is less than or equal to the value indicated by the fourth identification information, determine the first port of the current remote machine and the one port of the near end machine in the target loop The number of remote units in between is less than or equal to the number of remote units between the second port of the current remote unit and another port of the near-end unit; and the first received by the current remote unit.
  • the value represented by the second identification information in the signal is also used to indicate the position sequence number of the current remote unit on the signal transmission path of the first signal in the target loop (that is, it indicates that the current remote unit is in the first signal).
  • the number of remote units on the signal transmission path of the signal), and the value represented by the fourth identification information in the second signal received by the current remote unit is also used to indicate that the current remote unit is in the target loop.
  • the sequence number of the position on the signal transmission path of the second signal that is, indicating the number of remote units that the current remote unit is on the signal transmission path of the second signal).
  • the determining the reference clock of the current remote machine according to the signal received from the target loop by the slave port of the current remote machine includes: acquiring the slave port of the current remote machine from the target loop. The signal received from the device connected to the slave port of the current remote machine in the target loop; according to the signal received from the device connected to the slave port of the current remote machine in the target loop and recover the clock signal; determine the recovered clock signal as the reference clock of the current remote unit.
  • the above embodiment can be used in a distributed coverage system, that is, the near-end machine and a plurality of remote machines in the above-mentioned embodiment are all devices in the distributed coverage system.
  • the method in the above embodiment is applied to any one of the multiple remote units, that is, the above operations are performed on each of the multiple remote units, so that each remote unit is According to the first signal and the second signal respectively received by the first port and the second port from the target loop, determine the position number of itself in the signal transmission path of the first signal, and the signal of the second signal.
  • the position number in the transmission path and then determine its own slave port and master port; because each remote machine determines the reference clock according to the signal received by the slave port from the target loop (that is, from the received signal
  • the clock is recovered and provided to the local clock chip as a reference clock), through the above embodiment, the number of signal transmission stages in the clock recovery process in the target loop can be reduced, and the number of cascade stages of clock recovery in the target loop can be reduced , preventing the deterioration of the clock phase noise, thereby avoiding the deterioration of the system EVM.
  • the first signal and the second signal it is determined that one of the first port and the second port of the current remote machine is a slave port, and the first port is a slave port.
  • the other one of one port and the second port is the main port, including: receiving the signal sent by the second remote machine connected to the main port of the current remote machine through the current remote machine, and passing the signal sent by the second remote machine connected to the main port of the current remote machine.
  • the current remote unit does not receive a signal sent by the first remote unit connected to the slave port of the current remote unit within a preset time period, it is determined that the first remote unit is faulty; Switching the slave port of the current remote machine and the master port of the current remote machine, wherein the plurality of remote machines further includes the first remote machine and the second remote machine remote machine.
  • the current remote unit since the current remote unit is connected to the first remote unit through its slave port, it means that the current remote unit determines the reference clock according to the signal received from the first remote unit. After the terminal unit fails, the current remote unit can no longer receive signals from the first remote unit. At this time, the slave port of the current remote unit and the master port of the current remote unit need to be Switchover (that is, the slave port and the master port are swapped, for example, the first port of the current remote machine is the slave port, and the second port is the master port. After the switchover, the first port of the current remote machine is determined as the master port, and identify the second port as the slave port).
  • the method further includes: according to the current The reference clock of the current remote unit is determined from the signal received by the port from the second remote unit.
  • the method further includes: A third signal is sent from the port to the target loop, wherein the third signal carries fifth identification information and sixth identification information, and the fifth identification information is used to indicate that the target loop is faulty, The value represented by the sixth identification information is used to represent the initial value; each remote machine in the first remote machine set in the plurality of remote machines receives the all sent by the current remote machine.
  • the third signal determine that the target loop is faulty according to the fifth identification information carried in the third signal, keep its own master port and slave port unchanged, and send a message to the target loop through its own slave port.
  • a third device connected to its own slave port sends the third signal, wherein the first remote machine set includes the second remote machine, and the third device is a downlink connected to its own slave port.
  • the fifth identification information is further used to indicate that the faulty device in the target loop is the first remote machine.
  • each remote machine in the first set of remote machines receives the third signal through its own main port, it also updates the value represented by the sixth identification information in the third signal to obtain.
  • the updated third signal is sent to the next remote or near-end connected to itself.
  • RU5 that is, the current remote unit in the foregoing embodiment
  • the current slave port ie, port 1 of RU5
  • the current slave port sends the third data to the target loop (at this time, the path composed of RU4, RU3, RU2, RU1 and the A port of AU)
  • RU4 sends the third data to the target loop.
  • the sixth indication information is updated, it continues to be sent to RU3 connected to it.
  • RU3 After receiving the third data from RU4, RU3 performs the same processing operation as that of RU4 until port A of the AU receives the third data sent by RU1.
  • the method further includes: keeping the master port and slave port of the third remote unit unchanged, wherein the master port of the third remote unit is connected to the first remote unit, and the multiple The remote units include the third remote unit; send a fourth signal to the target loop through the slave port of the third remote unit, wherein the fourth signal carries seventh identification information and Eighth identification information, the seventh identification information is used to indicate that the target loop is faulty, and the eighth identification information is used to indicate the initial value; the second remote machine set in the plurality of remote machines In the case of receiving the fourth signal, each remote machine in the device determines that the target loop is faulty according to the seventh identification information carried in the fourth signal, and keeps its own master port and slave port different. Change; send the fourth signal to a fourth device connected to its own slave port through its own slave port, wherein the fourth device is the next remote machine or near-end machine connected to its own slave port.
  • the operation performed by RU5 connected to the master port of RU6 is similar, and the operation performed by RU7 connected to the slave port of RU6 is the same as that of RU5, that is, RU7 loops to the target (in this case, D of RU8 and AU) The path formed by the port) sends the fourth signal.
  • the master port and slave port of RU5 are switched, but the master and slave ports of RU1 to RU4, and the master and slave ports of RU7 and RU8 remain unchanged.
  • port 1 receives a signal carrying A1
  • port 2 receives a signal carrying D8, and according to the values represented by the second identification information and the fourth identification information in the two signals, it is determined that RU1 is in the AU In the loop where the A port and the D port are connected; and according to the serial number values in the two signals, it is determined that RU1 is the first device connected to the A port of the AU, and the eighth device connected to the D port of the AU. Therefore, RU1 sets port 1 as port S and port 2 as port M. The downlink signal flows from port 1 to port 2 and continues to be transmitted to RU2.
  • RU1 obtains a recovered clock from the data stream through the serializer/deserializer (SERializer/DESerializer, referred to as serdes) of the S port, and provides it to the clock chip on RU1 as a local reference clock.
  • serializer/deserializer serializer/deserializer
  • serdes serializer/deserializer
  • RU1, RU2, RU3 and RU4 know that they are closer to port A in the ring topology, and set their own slave ports, so that the number of signal transmission stages under the link of port A is only four.
  • RU5, RU6, RU7, and RU8 know that they are the closest to port D in the ring topology, and set their own slave ports, so that the number of signal transmission stages under the link of port D is only 4. That is, in the above embodiment, two paths including the downlink signal flow as shown in FIG. 3 are formed, namely: the path composed of port A, RU1, RU2, RU3, and RU4 of the near-end AU, and the port D, RU, and RU4 of the AU.
  • the number of cascaded stages for clock recovery in the loop is reduced by half, thus preventing the EVM deterioration caused by the deterioration of clock phase noise caused by the excessive number of cascaded devices. signal coverage.
  • the signal transmission stages of the previous clock recovery in the loop topology are 8 stages, that is, the number of cascaded stages of 8 stages, but now it has only 4 stages of cascaded stages, so that the recovery of the clock
  • the phase noise is much better than the noise situation before the loop topology, so that the performance of the EVM is improved to a certain extent, and the transmission rate and coverage of the signal are optimized.
  • the number of signal transmission stages of the clock recovery in the loop topology has become a cascaded number of 4 stages, that is, the number of cascaded stages composed of RU1 to RU4 in Figure 3 is 4, and the number of cascaded stages composed of RU8 to RU5 in Figure 3
  • the number of cascades is also 4.
  • loop protection can also be implemented in the above method according to the embodiment of the present invention.
  • a certain RU in the middle for example, RU6 in FIG. 4
  • port 1 of RU5 cannot obtain optical fiber from RU6 because of failure.
  • the identification information (id) on port 1 is set to f1 (wherein, the fifth identification information f is used to indicate that there is a faulty device in the loop, and 1 is the value identified by the sixth identification information;
  • the identification information f is also used to indicate that RU6 (that is, the first remote unit in the above-mentioned embodiment has failed) and transmits back to RU4 a third signal carrying f1, the third signal received by RU4 carries f1... RU1 receives
  • the third signal that arrives carries f4, and f5 is received on port A.
  • RU7 also returns the fourth signal in the same way.
  • the fourth signal received by RU8 carries f1
  • the fourth signal received by port D carries f2.
  • RU1 For RU1: port 1 receives A1, port 2 receives f4, and RU1 knows that there is a faulty device in the loop. At this time, RU1 is in the unidirectional link under port A and is port A. The first device under RU1, and there are 4 devices after RU1 in the unidirectional link. RU1 keeps its own S port and M port unchanged, and the downlink signal flows from port 1 to port 2 and continues to transmit to RU2. The process of clock recovery is that RU1 obtains a recovered clock from the data stream through the serializer/deserializer (SERializer/DESerializer, referred to as serdes) of the S port, and provides it to the clock chip on RU1 as a local reference clock.
  • serializer/deserializer serializer/deserializer
  • RU1, RU2, RU3, RU4, and RU5 know that they are closer to port A in the ring topology, so that the number of signal transmission stages for clock recovery under the link of port A is only five.
  • RU 7 and RU 8 know that they are the closest to the D port in the ring topology, so the number of signal transmission stages for clock recovery under the D port link is only two.
  • the first signal, the second signal, the third signal and the fourth signal in the above embodiment may be signals based on the CPRI protocol, that is, the CPRI protocol is used between the AU and RU1, RU8, and between each RU. communication, thus forming a CPRI link.
  • the CPRI protocol is used between the AU and RU1, RU8, and between each RU. communication, thus forming a CPRI link.
  • the first identification information, the third identification information, the fifth identification information, and the seventh identification information may be the first fields in the signal based on the CPRI protocol, that is, the first identification information, the fifth identification information, and the seventh identification information.
  • the third identification information and the fifth identification information can be the same field.
  • the value of this field can be set to indicate the port that sends the signal, or, there is a fault in the target loop.
  • the second identification information, the fourth The identification information, the sixth identification information and the eighth identification information may be the second fields in the signal based on the CPRI protocol, that is, the second identification information, the fourth identification information, the sixth identification information and the eighth identification information may be the same one field, when the near-end station sends a signal, the value of this field can be set to the initial value (for example, 1), and when each remote station receives a signal from the device connected to it, the field of the signal indicates The value is updated, and the updated information is sent to the next device connected to it.
  • the initial value for example, 1
  • the obtaining module 72 is configured to obtain the first signal received by the first port of the current remote machine from the target loop, and the second port of the current remote machine from the target loop The second signal received on the road, wherein the target loop includes: a loop composed of a near-end machine and a plurality of remote machines;
  • the second determining module 76 is further configured to: after receiving the signal sent by the second remote machine connected to the main port of the current remote machine through the current remote machine, and passing the current remote machine In the case that the remote unit does not receive a signal sent by the first remote unit connected to the slave port of the current remote unit within a preset time period, it is determined that the first remote unit is faulty; The slave port of the current remote machine and the master port of the current remote machine are switched, wherein the plurality of remote machines further include the first remote machine and the second remote machine .
  • an apparatus for determining a reference clock comprising: a processing module configured to perform the following operations for each remote unit in the target loop, wherein, when performing the following operations on each remote unit When the terminal performs the following operations, determine each remote terminal as the current remote terminal: obtain the first signal received from the target loop by the first port of the current remote terminal, and the current remote terminal The second signal received by the second port of the remote machine from the target loop, wherein the target loop includes: a loop composed of a near-end machine and a plurality of remote machines; according to the first signal and the second signal, determining that one of the first port and the second port of the current remote unit is a slave port, and the other one of the first port and the second port The port is the master port; the reference clock of the current remote machine is determined according to the signal received from the target loop by the slave port of the current remote machine.
  • Another embodiment of the present invention also provides a system for determining a reference clock, including: a near-end unit and a plurality of remote units, wherein each remote unit in the plurality of remote units is configured to perform the following: operation, wherein, when each remote machine performs the following operations, it determines itself as the current remote machine:
  • the target loop includes: a loop composed of the near-end machine and the plurality of remote machines;
  • the first signal and the second signal it is determined that one of the first port and the second port of the current remote unit is a slave port, and the first port and the second port are The other port of the two ports is the primary port;
  • the reference clock of the current remote terminal is determined according to the signal received from the target loop by the slave port of the current remote terminal.
  • One port in the second port is a slave port, and the other port in the first port and the second port is a master port; according to the slave port of the current remote machine, from the target loop
  • the received signal determines the reference clock of the current remote unit. Therefore, it is possible to solve the technical problem that the increase in the number of cascaded stages of the remote device in the loop leads to an increase in the phase noise of the reference clock of the remote device in the loop, and reduce the problem caused by the increase of the number of cascaded stages of the remote device.
  • the phase noise of the remote device's reference clock reduces the system's transmit/receive error vector magnitude degradation.
  • the near-end machine is configured to send a first signal and a second signal to the target loop through a first port of the near-end machine and a second port of the near-end machine, respectively, wherein , the first signal is transmitted in the target loop according to the first signal transmission path, the second signal is transmitted in the target loop according to the second signal transmission path, and the The first signal carries first identification information and second identification information, the first identification information is used to indicate the first port of the near-end machine, and the second identification information is used to indicate the first port.
  • the number of remote units that the signal passes through in the target loop is an initial value
  • the second signal sent by the near-end unit carries third identification information and fourth identification information, and the third identification information
  • the fourth identification information is used to indicate the second port of the near-end machine
  • the fourth identification information is used to indicate that the number of the far-end machines that the second signal passes through in the target loop is the initial value.
  • the current remote machine is further configured to: acquire the signal received by the current remote machine from the device connected to the slave port of the current remote machine in the target loop; Describe the signal received from the device connected to the slave port of the current remote machine in the target loop, recover the clock signal; determine the recovered clock signal as the reference of the current remote machine clock.
  • An embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, wherein the above-mentioned program executes any one of the above-mentioned methods when running.
  • the above-mentioned storage medium may be configured to store program codes for executing the following steps:
  • the target loop includes: a loop composed of a near-end machine and a plurality of remote machines;
  • the first signal and the second signal it is determined that one of the first port and the second port of the current remote unit is a slave port, and the first port and the second port are The other port of the two ports is the primary port;
  • the reference clock of the current remote terminal is determined according to the signal received from the target loop by the slave port of the current remote terminal.
  • the above-mentioned processor may be configured to execute the following steps through a computer program:
  • the target loop includes: a loop composed of a near-end machine and a plurality of remote machines;
  • the first signal and the second signal it is determined that one of the first port and the second port of the current remote unit is a slave port, and the first port and the second port are The other port of the two ports is the primary port;
  • the reference clock of the current remote terminal is determined according to the signal received from the target loop by the slave port of the current remote terminal.
  • FIG. 7 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention.
  • the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and a mobile Internet device (Mobile Internet device).
  • Internet Devices MID
  • PAD PAD
  • FIG. 7 does not limit the structure of the above electronic device.
  • the electronic device may also include more or less components than those shown in FIG. 7 (eg, network interfaces, etc.), or have a different configuration than that shown in FIG. 7 .
  • the memory 1002 can be used to store software programs and modules, such as program instructions/modules corresponding to the method for determining the reference clock and the device for determining the reference clock in the embodiment of the present invention, and the processor 1004 executes the software program stored in the memory 1002 by running and modules, so as to perform various functional applications and data processing, that is, to implement the above-mentioned method for determining the reference clock.
  • Memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, memory 1002 may further include memory located remotely from processor 1004, and these remote memories may be connected to the terminal through a network.
  • the above-mentioned memory 1002 may include, but is not limited to, the obtaining module 72 , the first determining module 74 and the second determining module 76 of the above-mentioned device for determining the reference clock.
  • the above-mentioned memory 1002 may include, but is not limited to, the obtaining module 72 , the first determining module 74 and the second determining module 76 of the above-mentioned device for determining the reference clock.
  • it may also include, but is not limited to, other module units in the above-mentioned apparatus for determining the reference clock, which will not be repeated in this example.
  • the above-mentioned transmission device 1006 is configured to receive or transmit data via a network.
  • Specific examples of the above-mentioned networks may include wired networks and wireless networks.
  • the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through a network cable to communicate with the Internet or a local area network.
  • the transmission device 1006 is a radio frequency (Radio Frequency, RF) module, which is used for wirelessly communicating with the Internet.
  • RF Radio Frequency
  • the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), Various media that can store program codes, such as removable hard disks, magnetic disks, or optical disks.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here
  • the steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module.
  • the present invention is not limited to any particular combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

Provided are a reference clock determination method and apparatus, and a system, a storage medium and an electronic apparatus. The method comprises: executing the following operations on each remote unit in a target loop, and when the following operations are executed on each remote unit, determining each remote unit as the current remote unit, said operations comprising: acquiring a first signal which is received by a first port of the current remote unit and is from the target loop, and a second signal which is received by a second port of the current remote unit and is from the target loop; according to the first signal and the second signal, determining one of the first port and the second port of the current remote unit as a slave port, and the other one of the first port and the second port of the current remote unit as a master port; and according to a signal which is received by the slave port of the current remote unit and is from the target loop, determining a reference clock of the current remote unit. By means of the present invention, the technical problem of an increase in the phase noise of a reference clock of a remote device in a loop due to an increase in the number of cascade stages of the remote device in the loop is solved.

Description

参考时钟的确定方法和装置、系统、存储介质及电子装置Reference clock determination method and device, system, storage medium and electronic device 技术领域technical field
本发明涉及通信领域,具体而言,涉及一种参考时钟的确定方法和装置、系统、存储介质及电子装置。The present invention relates to the field of communications, and in particular, to a method and device, system, storage medium and electronic device for determining a reference clock.
背景技术Background technique
分布式覆盖系统中包括基站、近端机(又称为接入单元,Access Unit,简称为AU)、远端机(又称为远端单元,Remote Unit,简称为RU)等设备,其中每个设备上均包括发射器、接收器、数字预失真(Digital Pre-Distortion,简称为DPD)反馈路径。各种发射器和接收器可以包括模数/数模转换器(Analog to Digital/Digital to Analog Converter,简称为ADC/DAC)等数据转换器,由于时钟发生器的相位噪声和抖动性能会对数据转换器动态范围和线性度性能有严重影响,进而影响到发射/接收误差矢量幅度(Error Vector Magnitude,简称为EVM)指标,更进一步影响信号传输速率,因此各种发射器和接收器(例如其中包括的ADC/DAC)等组件和本振(Local Oscillator,简称为LO)要求采用低抖动和低相位噪声的参考时钟以提高性能。The distributed coverage system includes a base station, a near-end unit (also known as an access unit, Access Unit, abbreviated as AU), a remote unit (also known as a remote unit, Remote Unit, abbreviated as RU) and other equipment. Each device includes a transmitter, a receiver, and a digital pre-distortion (Digital Pre-Distortion, referred to as DPD) feedback path. Various transmitters and receivers can include data converters such as Analog to Digital/Digital to Analog Converters (ADC/DAC for short), due to the phase noise and jitter performance of the clock generator. The dynamic range and linearity performance of the converter have a serious impact, which in turn affects the transmit/receive error vector magnitude (Error Vector Magnitude, referred to as EVM) specification, which further affects the signal transmission rate, so various transmitters and receivers (such as the Components such as the included ADC/DAC) and the Local Oscillator (LO) require a reference clock with low jitter and low phase noise to improve performance.
用于基站间同步的时钟源通常来源于全球定位系统(Global Positioning System,简称为GPS),而AU或者RU等设备间同步的时钟源来源于公共无线接口(Common Public Radio Interface,简称为CPRI)链路。GPS具有优秀的长期频率稳定性;而RU等设备需要从CPRI链路中恢复出时钟并将其作为本地时钟芯片的参考时钟,而该恢复出的时钟相对上一级设备的参考时钟已经产生了相位噪声和抖动的恶化,因此是一个欠佳参考时钟,欠佳参考时钟会导致增大LO的相位噪声,进而增大了发射/接收EVM和信噪比(Signal Noise Ratio,简称为SNR)。并且,高时钟抖动和噪底会降低系统SNR并导致数据转换器杂散辐射,从而进一步降低了数据转换器的无杂散动态范围(Spurious-free Dynamic Range,简称为 SFDR),由此低性能时钟源最终导致了系统容量和吞吐量的降低。The clock source used for synchronization between base stations usually comes from the Global Positioning System (GPS for short), while the clock source for synchronization between devices such as AU or RU comes from the Common Public Radio Interface (CPRI for short) link. GPS has excellent long-term frequency stability; while devices such as RU need to recover the clock from the CPRI link and use it as the reference clock of the local clock chip, and the recovered clock has been generated relative to the reference clock of the upper-level device. Deterioration of phase noise and jitter, and therefore a poor reference clock, will lead to increased phase noise of the LO, which in turn increases the transmit/receive EVM and Signal Noise Ratio (SNR). Also, high clock jitter and noise floor can reduce system SNR and cause spurious radiation of data converters, which further reduces the spurious-free dynamic range (SFDR) of data converters, resulting in low performance. The clock source ultimately results in a reduction in system capacity and throughput.
相关技术中,分布式覆盖系统组网方式有星型、链型、星型和链型的混合型。通常组网方式会要求具有环路保护功能,即近端机和多个远端机之间串接形成环路,然而环路上级联的远端机越多,最后面一级的远端机的时钟相位噪声越大,从而对EVM的恶化也会越大。如图1中所示,在环路的物理连接上,AU的A口与RU1相连,RU1与RU2相连……RU7与RU8相连,RU8与AU的D口相连。对于每个RU,其从(slave)端口(又称为S口)用于接收环路中的上一级设备传下来的下行信号,并将接收到的下行信号传递至该RU的主(master)端口(又称为M口),M口用于向环路中的下一级设备传递从S口传递过来的下行信号。在图1的组网方式下,下行信号经过的路径为A口、RU1、RU2……RU7、RU8。其中每个RU设备根据其S口从该环路中接收到的信号(例如,基于CPRI协议的信号)中恢复出时钟信号,并将恢复出的时钟信号作为参考时钟并传输给本地时钟芯片。而随着环路中RU设备数量的增大,环路中的RU设备,例如图1中的RU8处在信号传输的最后一级,也是时钟恢复的最后一级,因此RU8根据从其S口接收到的时钟相位噪声是最大的,从而导致RU8的时钟相位信号的EVM也会相应变差,从而影响信号传输速率。In the related art, the networking modes of the distributed overlay system include a star type, a chain type, and a hybrid type of the star type and the chain type. Usually the networking mode requires loop protection, that is, the near-end unit and multiple remote units are connected in series to form a loop. However, the more remote units are cascaded on the loop, the more remote units in the last level The greater the clock phase noise, the greater the degradation to the EVM. As shown in Figure 1, on the physical connection of the loop, the A port of the AU is connected to RU1, RU1 is connected to RU2... RU7 is connected to RU8, and RU8 is connected to the D port of the AU. For each RU, its slave port (also called S port) is used to receive the downlink signal from the upper-level device in the loop, and transmit the received downlink signal to the master (master) of the RU ) port (also called M port), the M port is used to transmit the downlink signal transmitted from the S port to the next-level device in the loop. In the networking mode of FIG. 1 , the paths traversed by downlink signals are port A, RU1, RU2... RU7, RU8. Each RU device recovers a clock signal from the signal (eg, a signal based on the CPRI protocol) received from the loop according to its S port, and uses the recovered clock signal as a reference clock and transmits it to the local clock chip. With the increase of the number of RU devices in the loop, the RU devices in the loop, such as RU8 in Figure 1, are in the last stage of signal transmission and also the last stage of clock recovery. The received clock phase noise is the largest, so that the EVM of the clock phase signal of the RU8 will be correspondingly worse, thus affecting the signal transmission rate.
针对相关技术中,环路中远端设备的级联级数增大导致环路中远端设备的参考时钟的相位噪声增大的技术问题,尚未提出有效的技术方案。In the related art, an effective technical solution has not been proposed for the technical problem that the increase in the number of cascaded stages of the remote devices in the loop leads to an increase in the phase noise of the reference clock of the remote devices in the loop.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种参考时钟的确定方法和装置、系统、存储介质及电子装置,以至少解决环路中远端设备的级联级数增大导致环路中远端设备的参考时钟的相位噪声增大的技术问题。Embodiments of the present invention provide a method, device, system, storage medium, and electronic device for determining a reference clock, so as to at least solve the problem that the increase in the number of cascaded stages of remote devices in the loop causes the reference clock of the remote devices in the loop The technical problem of increasing phase noise.
根据本发明的一个实施例,提供了一种参考时钟的确定方法,包括:对于目标环路中的每个远端机执行以下操作,其中,在对所述每个远端机执行以下操作时,将所述每个远端机确定为当前远端机:获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端 机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。According to an embodiment of the present invention, a method for determining a reference clock is provided, comprising: performing the following operations on each remote unit in a target loop, wherein when performing the following operations on each remote unit , determine each remote unit as the current remote unit: obtain the first signal received by the first port of the current remote unit from the target loop, and the second signal of the current remote unit The second signal received by the port from the target loop, wherein the target loop includes: a loop composed of a near-end machine and a plurality of remote machines; according to the first signal and the second signal , determine that one of the first port and the second port of the current remote machine is the slave port, and the other port of the first port and the second port is the master port; according to The signal received from the target loop by the slave port of the current remote unit determines the reference clock of the current remote unit.
可选地,在所述对于目标环路中的每个远端机执行以下操作之前,所述方法还包括:通过所述近端机的第一端口以及所述近端机的第二端口分别向所述目标环路发送第一信号和第二信号,其中,所述第一信号在所述目标环路中按照第一信号传输路径传输,所述第二信号在所述目标环路中按照第二信号传输路径传输,所述近端机发送的所述第一信号中携带有第一标识信息和第二标识信息,所述第一标识信息用于表示所述近端机的所述第一端口,所述第二标识信息用于表示所述第一信号在所述目标环路中经过的远端机的数量为初始值,所述近端机发送的所述第二信号中携带有第三标识信息和第四标识信息,所述第三标识信息用于表示所述近端机的所述第二端口,所述第四标识信息用于表示所述第二信号在所述目标环路中经过的远端机的数量为所述初始值。Optionally, before performing the following operations on each remote machine in the target loop, the method further includes: using the first port of the near-end machine and the second port of the near-end machine respectively A first signal and a second signal are sent to the target loop, wherein the first signal is transmitted in the target loop according to a first signal transmission path, and the second signal is transmitted in the target loop according to The second signal transmission path is transmitted, and the first signal sent by the near-end unit carries first identification information and second identification information, and the first identification information is used to indicate the first identification information of the near-end unit. A port, the second identification information is used to indicate that the number of remote units that the first signal passes through in the target loop is an initial value, and the second signal sent by the near-end unit carries third identification information and fourth identification information, where the third identification information is used to indicate the second port of the near-end machine, and the fourth identification information is used to indicate that the second signal is in the target ring The number of remote units passing on the road is the initial value.
可选地,在所述获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号之后,所述方法还包括:通过所述当前远端机的第一端口从与所述当前远端机连接的第一设备中接收所述第一信号,以及通过所述当前远端机的第二端口从与所述当前远端机连接的第二设备中接收所述第二信号,其中,所述第一设备是所述目标环路中与所述当前远端机的第一端口连接的设备,所述第二设备是所述目标环路中与所述当前远端机的第二端口连接的设备;将所述当前远端机接收到的所述第一信号中携带的第二标识信息表示的值增加预设值后,得到更新后的第二标识信息,以及将所述当前远端机的第二端口接收到的所述第二信号中携带的第四标识信息表示的值增加所述预设值后,得到更新后的第四标识信息;使用更新后 的所述第二标识信息对所述当前远端机接收到的所述第一信号中的第二标识信息进行更新,得到更新后的第一信号,将所述更新后的第一信号通过所述当前远端机的第二端口发送给所述第二设备;使用更新后的所述第四标识信息对所述当前远端机接收到的所述第二信号中的第四标识信息进行更新,得到更新后的第二信号,将所述更新后的第二信号通过所述当前远端机的第一端口发送给所述第一设备。Optionally, obtaining the first signal received from the target loop by the first port of the current remote machine, and the second port of the current remote machine received from the target loop After the second signal of the current remote unit, the method further includes: receiving the first signal from a first device connected to the current remote unit through the first port of the current remote unit, and receiving the first signal through the current remote unit The second port of the terminal receives the second signal from a second device connected to the current remote, wherein the first device is the first device in the target loop that is connected to the current remote. A device connected to one port, the second device is a device in the target loop connected to the second port of the current remote machine; carrying the first signal received by the current remote machine After the value represented by the second identification information is increased by a preset value, the updated second identification information is obtained, and the fourth identification information carried in the second signal received by the second port of the current remote machine is obtained. After the indicated value is increased by the preset value, the updated fourth identification information is obtained; the second identification information in the first signal received by the current remote unit is updated using the updated second identification information. information is updated to obtain the updated first signal, and the updated first signal is sent to the second device through the second port of the current remote device; the updated fourth identification information is used The fourth identification information in the second signal received by the current remote unit is updated to obtain an updated second signal, and the updated second signal is passed through the first signal of the current remote unit. A port is sent to the first device.
可选地,所述根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口,包括:获取所述第一信号中携带的第一标识信息和第二标识信息,以及所述第二信号中携带的第三标识信息和第四标识信息,其中,所述第二标识信息用于表示所述第一信号在所述目标环路中经过的远端机的数量,所述第四标识信息用于表示所述第二信号在所述目标环路中经过的远端机的数量;在所述第一标识信息表示所述近端机的一个端口、且所述第三标识信息表示所述近端机的另一端口的情况下,在所述第二标识信息表示的值小于或等于所述第四标识信息表示的值的情况下,将所述当前远端机的所述第一端口确定为所述当前远端机的从端口,以及将所述当前远端机的所述第二端口确定为所述当前远端机的主端口;在所述第一标识信息表示所述近端机的所述一个端口、且所述第三标识信息表示所述近端机的所述另一端口的情况下,在所述第二标识信息表示的值大于所述第四标识信息表示的值的情况下,将所述当前远端机的所述第二端口确定为所述当前远端机的从端口,以及将所述当前远端机的所述第一端口确定为所述当前远端机的主端口。Optionally, according to the first signal and the second signal, it is determined that one of the first port and the second port of the current remote machine is a slave port, and the first port is a slave port. One of the ports and the other port of the second port is the master port, including: acquiring the first identification information and the second identification information carried in the first signal, and the third identification carried in the second signal information and fourth identification information, wherein the second identification information is used to indicate the number of remote units that the first signal passes through in the target loop, and the fourth identification information is used to indicate the first The number of remote units that the second signal passes through in the target loop; the first identification information indicates one port of the near-end unit, and the third identification information indicates another port of the near-end unit In the case of a port, when the value represented by the second identification information is less than or equal to the value represented by the fourth identification information, the first port of the current remote unit is determined as the current remote unit. the slave port of the end machine, and the second port of the current remote machine is determined as the master port of the current remote machine; the first identification information indicates the one port of the near end machine , and when the third identification information indicates the other port of the near-end device, in the case that the value indicated by the second identification information is greater than the value indicated by the fourth identification information, the The second port of the current remote machine is determined as the slave port of the current remote machine, and the first port of the current remote machine is determined as the master port of the current remote machine.
可选地,所述根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟,包括:获取所述当前远端机从所述目标环路中与所述当前远端机的从端口连接的设备中接收到的信号;根据所述从所述目标环路中与所述当前远端机的从端口连接的设备中接收到的信号,恢复出时钟信号;将恢复出的所述时钟信号确定为所述当前远端机的参考时钟。Optionally, the determining the reference clock of the current remote machine according to the signal received from the target loop by the slave port of the current remote machine includes: acquiring the slave port of the current remote machine from the target loop. The signal received from the device connected to the slave port of the current remote machine in the target loop; according to the signal received from the device connected to the slave port of the current remote machine in the target loop and recover the clock signal; determine the recovered clock signal as the reference clock of the current remote unit.
可选地,所述根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口,包括:在通过当前远端机接收到与所述当前远端机的主端口连接的第二远端机发送的信号、且通过所述当前远端机在预设时间段内未接收到与所述当前远端机的从端口连接的第一远端机发送的信号的情况下,确定所述第一远端机发生故障;将所述当前远端机的所述从端口和所述当前远端机的所述主端口进行倒换,其中,所述多个远端机还包括所述第一远端机以及所述第二远端机。Optionally, according to the first signal and the second signal, it is determined that one of the first port and the second port of the current remote machine is a slave port, and the first port is a slave port. The other one of one port and the second port is the main port, including: receiving the signal sent by the second remote machine connected to the main port of the current remote machine through the current remote machine, and passing the signal sent by the second remote machine connected to the main port of the current remote machine. In the case that the current remote unit does not receive a signal sent by the first remote unit connected to the slave port of the current remote unit within a preset time period, it is determined that the first remote unit is faulty; Switching the slave port of the current remote machine and the master port of the current remote machine, wherein the plurality of remote machines further includes the first remote machine and the second remote machine remote machine.
根据本发明的另一个实施例,提供了一种参考时钟的确定装置,包括:获取模块,第一确定模块以及第二确定模块,所述装置用于通过所述获取模块,所述第一确定模块以及所述第二确定模块确定目标环路中的每个远端机的参考时钟,其中,在确定所述每个远端机的参考时钟时,将所述每个远端机确定为当前远端机:其中,所述获取模块,设置为获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;所述第一确定模块,设置为根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;所述第二确定模块,设置为根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。According to another embodiment of the present invention, an apparatus for determining a reference clock is provided, comprising: an acquisition module, a first determination module and a second determination module, the apparatus is configured to use the acquisition module, the first determination module The module and the second determining module determine the reference clock of each remote unit in the target loop, wherein when determining the reference clock of each remote unit, each remote unit is determined as the current Remote unit: wherein the acquisition module is configured to acquire the first signal received by the first port of the current remote unit from the target loop, and the second port of the current remote unit from the target loop. The second signal received on the target loop, wherein the target loop includes: a loop composed of a near-end machine and a plurality of remote machines; the first determining module is set to be based on the first signal and the second signal, determining that one of the first port and the second port of the current remote unit is a slave port, and the other one of the first port and the second port The port is the master port; the second determining module is configured to determine the reference clock of the current remote machine according to the signal received from the target loop by the slave port of the current remote machine.
根据本发明的另一个实施例,提供了一种参考时钟的确定系统,包括:近端机以及多个远端机,其中,所述多个远端机中的每个远端机用于执行以下操作,其中,在所述每个远端机执行以下操作时,将自身确定为当前远端机:获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由所述近端机以及所述多个远端机组成的环路;根据所述第一信号以及所述第二信号,确定所述当前远端机的所述 第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。According to another embodiment of the present invention, a system for determining a reference clock is provided, comprising: a near-end unit and a plurality of remote units, wherein each remote unit in the plurality of remote units is used to execute The following operation, wherein, when each remote terminal performs the following operation, it determines itself as the current remote terminal: acquiring the first signal received by the first port of the current remote terminal from the target loop , and the second signal received by the second port of the current remote machine from the target loop, wherein the target loop includes: a signal composed of the near-end machine and the plurality of remote machines loop; according to the first signal and the second signal, determine that one of the first port and the second port of the current remote machine is a slave port, and the first port and The other port in the second port is the master port; the reference clock of the current remote machine is determined according to the signal received from the target loop by the slave port of the current remote machine.
通过本发明,对于目标环路中的每个远端机执行以下操作,其中,在对所述每个远端机执行以下操作时,将所述每个远端机确定为当前远端机:获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。因此,可以解决环路中远端设备的级联级数增大导致环路中远端设备的参考时钟的相位噪声增大的技术问题,降低了远端设备的级联级数增大所导致的远端设备的参考时钟的相位噪声,降低了系统的发射/接收误差矢量幅度的恶化程度。Through the present invention, the following operations are performed for each remote unit in the target loop, wherein when the following operations are performed on each remote unit, each remote unit is determined as the current remote unit: Obtain the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop, wherein, The target loop includes: a loop composed of a near-end machine and a plurality of far-end machines; according to the first signal and the second signal, determine the first port and all the current far-end machines. One port in the second port is a slave port, and the other port in the first port and the second port is a master port; according to the slave port of the current remote machine, from the target loop The received signal determines the reference clock of the current remote unit. Therefore, it is possible to solve the technical problem that the increase in the number of cascaded stages of the remote device in the loop leads to an increase in the phase noise of the reference clock of the remote device in the loop, and reduce the problem caused by the increase of the number of cascaded stages of the remote device. The phase noise of the remote device's reference clock reduces the system's transmit/receive error vector magnitude degradation.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1为相关技术中参考时钟的确定方法的示意图;1 is a schematic diagram of a method for determining a reference clock in the related art;
图2为根据本发明实施例的参考时钟的确定方法的流程图;2 is a flowchart of a method for determining a reference clock according to an embodiment of the present invention;
图3为根据本发明实施例的参考时钟的确定方法的网络拓扑图;3 is a network topology diagram of a method for determining a reference clock according to an embodiment of the present invention;
图4为根据本发明另一实施例的环路保护的示意图(一);4 is a schematic diagram (1) of loop protection according to another embodiment of the present invention;
图5为根据本发明又一实施例的环路保护的示意图(二);5 is a schematic diagram (2) of loop protection according to another embodiment of the present invention;
图6是根据本发明另一实施例的参考时钟的确定装置的结构框图;6 is a structural block diagram of an apparatus for determining a reference clock according to another embodiment of the present invention;
图7是根据本发明实施例的一种可选的电子装置的结构示意图。FIG. 7 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in conjunction with embodiments. It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
本发明实施例提供了一种参考时钟的确定方法,图2为根据本发明实施例的参考时钟的确定方法的流程图,在该方法中,对于目标环路中的每个远端机执行以下步骤S102至步骤S106的操作,其中,在对所述每个远端机执行以下操作时,将所述每个远端机确定为当前远端机:An embodiment of the present invention provides a method for determining a reference clock. FIG. 2 is a flowchart of a method for determining a reference clock according to an embodiment of the present invention. In the method, the following is performed for each remote unit in the target loop. The operations from step S102 to step S106, wherein, when the following operations are performed on each remote unit, each remote unit is determined as the current remote unit:
步骤S102,获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;Step S102, acquiring the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop , wherein the target loop includes: a loop composed of a near-end machine and a plurality of remote machines;
步骤S104,根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;Step S104, according to the first signal and the second signal, determine that one of the first port and the second port of the current remote machine is a slave port, and the first port and the second port are The other port in the second port is the main port;
步骤S106,根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。Step S106: Determine the reference clock of the current remote machine according to the signal received from the target loop by the slave port of the current remote machine.
通过本发明,对于目标环路中的每个远端机执行以下操作,其中,在对所述每个远端机执行以下操作时,将所述每个远端机确定为当前远端机:获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;根据所述当前远端机的从端口从所述目标环路中接收到 的信号,确定所述当前远端机的参考时钟。因此,可以解决环路中远端设备的级联级数增大导致环路中远端设备的参考时钟的相位噪声增大的技术问题,降低了远端设备的级联级数增大所导致的远端设备的参考时钟的相位噪声,降低了系统的发射/接收误差矢量幅度的恶化程度。Through the present invention, the following operations are performed for each remote unit in the target loop, wherein when the following operations are performed on each remote unit, each remote unit is determined as the current remote unit: Obtain the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop, wherein, The target loop includes: a loop composed of a near-end machine and a plurality of far-end machines; according to the first signal and the second signal, determine the first port and all the current far-end machines. One port in the second port is a slave port, and the other port in the first port and the second port is a master port; according to the slave port of the current remote machine, from the target loop The received signal determines the reference clock of the current remote unit. Therefore, it is possible to solve the technical problem that the increase in the number of cascaded stages of the remote device in the loop leads to an increase in the phase noise of the reference clock of the remote device in the loop, and reduce the problem caused by the increase of the number of cascaded stages of the remote device. The phase noise of the remote device's reference clock reduces the system's transmit/receive error vector magnitude degradation.
在上述实施例中,每个远端机的第一端口从目标环路中接收第一信号以及第二端口从目标环路中接收第二信号,即目标环路中存在双向的信号传输路径。In the above embodiment, the first port of each remote terminal receives the first signal from the target loop and the second port receives the second signal from the target loop, that is, there is a bidirectional signal transmission path in the target loop.
可选地,在所述对于目标环路中的每个远端机执行以下操作之前,所述方法还包括:通过所述近端机的第一端口以及所述近端机的第二端口分别向所述目标环路发送第一信号和第二信号,其中,所述第一信号在所述目标环路中按照第一信号传输路径传输,所述第二信号在所述目标环路中按照第二信号传输路径传输,所述近端机发送的所述第一信号中携带有第一标识信息和第二标识信息,所述第一标识信息用于表示所述近端机的所述第一端口,所述第二标识信息用于表示所述第一信号在所述目标环路中经过的远端机的数量为初始值,所述近端机发送的所述第二信号中携带有第三标识信息和第四标识信息,所述第三标识信息用于表示所述近端机的所述第二端口,所述第四标识信息用于表示所述第二信号在所述目标环路中经过的远端机的数量为所述初始值。Optionally, before performing the following operations on each remote machine in the target loop, the method further includes: using the first port of the near-end machine and the second port of the near-end machine respectively A first signal and a second signal are sent to the target loop, wherein the first signal is transmitted in the target loop according to a first signal transmission path, and the second signal is transmitted in the target loop according to The second signal transmission path is transmitted, and the first signal sent by the near-end unit carries first identification information and second identification information, and the first identification information is used to indicate the first identification information of the near-end unit. A port, the second identification information is used to indicate that the number of remote units that the first signal passes through in the target loop is an initial value, and the second signal sent by the near-end unit carries third identification information and fourth identification information, where the third identification information is used to indicate the second port of the near-end machine, and the fourth identification information is used to indicate that the second signal is in the target ring The number of remote units passing on the road is the initial value.
上述实施例中的方法可以应用在图3所示的网络拓扑中,如图3所示,近端机AU通过其第一端口(即图3中的A口)向目标环路发送第一信号,并通过其第二端口(即图3中的D口)向目标环路发送第二信号,其中目标环路为由AU和远端机RU1至RU8组成的环路。通过上述实施例,可以确定出图3所示的多个远端机中的每个远端机的从端口和主端口。The method in the above embodiment can be applied to the network topology shown in FIG. 3 . As shown in FIG. 3 , the near-end machine AU sends the first signal to the target loop through its first port (that is, the A port in FIG. 3 ). , and send the second signal to the target loop through its second port (ie, the D port in FIG. 3 ), where the target loop is a loop composed of the AU and the remote units RU1 to RU8. Through the above embodiment, the slave port and the master port of each remote machine in the plurality of remote machines shown in FIG. 3 can be determined.
可选地,在所述获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号之后,所述方法还包括:通过所述当前远端机的第一端口从与所述当前远端机连接的第一设备中接收所述第一信号,以及通过所述当 前远端机的第二端口从与所述当前远端机连接的第二设备中接收所述第二信号,其中,所述第一设备是所述目标环路中与所述当前远端机的第一端口连接的设备,所述第二设备是所述目标环路中与所述当前远端机的第二端口连接的设备;将所述当前远端机接收到的所述第一信号中携带的第二标识信息表示的值增加预设值后,得到更新后的第二标识信息,以及将所述当前远端机的第二端口接收到的所述第二信号中携带的第四标识信息表示的值增加所述预设值后,得到更新后的第四标识信息;使用更新后的所述第二标识信息对所述当前远端机接收到的所述第一信号中的第二标识信息进行更新,得到更新后的第一信号,将所述更新后的第一信号通过所述当前远端机的第二端口发送给所述第二设备;使用更新后的所述第四标识信息对所述当前远端机接收到的所述第二信号中的第四标识信息进行更新,得到更新后的第二信号,将所述更新后的第二信号通过所述当前远端机的第一端口发送给所述第一设备。Optionally, obtaining the first signal received from the target loop by the first port of the current remote machine, and the second port of the current remote machine received from the target loop After the second signal of the current remote unit, the method further includes: receiving the first signal from a first device connected to the current remote unit through the first port of the current remote unit, and receiving the first signal through the current remote unit The second port of the terminal receives the second signal from a second device connected to the current remote, wherein the first device is the first device in the target loop that is connected to the current remote. A device connected to one port, the second device is a device in the target loop connected to the second port of the current remote machine; carrying the first signal received by the current remote machine After the value represented by the second identification information is increased by a preset value, the updated second identification information is obtained, and the fourth identification information carried in the second signal received by the second port of the current remote machine is obtained. After the indicated value is increased by the preset value, the updated fourth identification information is obtained; the second identification information in the first signal received by the current remote unit is updated using the updated second identification information. information is updated to obtain the updated first signal, and the updated first signal is sent to the second device through the second port of the current remote device; the updated fourth identification information is used The fourth identification information in the second signal received by the current remote unit is updated to obtain an updated second signal, and the updated second signal is passed through the first signal of the current remote unit. A port is sent to the first device.
在上述实施例中,对于当前远端机(即目标环路中的任意一个远端机),以图3中的远端机RU1为例,RU1的第一端口(即端口1)从目标环路(即目标环路中的AU)中接收到第一信号后,更新该第一信号中携带的第二标识信息标识值,即将第二信息标识的值增加一个预设值(例如1),并将第二标识信息更新后的第一信号传递至RU1的第二端口(即端口2),第二端口继续将该更新后的第一信号发送给目标环路中与该第二端口连接的下一个设备(即RU2);RU2的第一端口接收到第一信号后与RU1执行相同的处理过程,即将接收到的信号中的第二标识信息标识的值加1,并继续发送给与RU1连接的下一个设备,直至AU的第二端口接收到RU8发送的信号;并且,AU的第二端口向目标环路发送了第二信号,目标环路中的每个远端机通过其第一端口接收到第二信号,远端机同样对第二信号中的第四标识信息表示的值加1后得到更新后的第二信号,并将更新后的第二信号通过其第二端口继续发送给与其第二端口连接的下一个设备,例如,RU8的第一端口接收到AU的D口发送的第二信号后,将第二信号中的第四标识信息表示的值加1得到更新后的第二信号,并将更新后的 第二信号通过RU8的第二端口发送给目标环路中与RU8的第二端口连接的下一个设备,直至AU的第一端口接收到RU1发送的更新后的第二信号。以AU的A口发送的第一信号中携带的第一标识信息为A(第一标识信息的内容可以是十六进制形式表示的“A”),第二标识信息表示的值为0,AU的D口发送的第一信号中携带的第三标识信息为D,第四标识信息表示的值为0为例:RU1的第一端口接收到的第一信号中携带有“A1”,RU2从RU1接收到的第一信号中携带有“A2”,……AU的D口从RU8接收到的第一信号中携带有“A9”;RU8的第二端口接收到的第二信号中携带有“D1”,RU7从RU8接收到的第二信号中携带有“D2”,……AU的A口从RU1接收到的第二信号中携带有“D9”。In the above embodiment, for the current remote machine (ie, any remote machine in the target ring), taking the remote machine RU1 in FIG. 3 as an example, the first port of RU1 (ie, port 1) from the target ring After receiving the first signal in the channel (that is, the AU in the target loop), update the value of the second identification information carried in the first signal, that is, increase the value of the second information identification by a preset value (for example, 1), and transmit the updated first signal of the second identification information to the second port (ie, port 2) of RU1, and the second port continues to send the updated first signal to the target loop connected to the second port. The next device (that is, RU2); after the first port of RU2 receives the first signal, it performs the same process as RU1, that is, adds 1 to the value of the second identification information in the received signal, and continues to send it to RU1. Connect the next device until the second port of the AU receives the signal sent by RU8; and, the second port of the AU sends the second signal to the target loop, and each remote unit in the target loop passes its first signal. When the port receives the second signal, the remote terminal also adds 1 to the value represented by the fourth identification information in the second signal to obtain the updated second signal, and continues to send the updated second signal through its second port For the next device connected to its second port, for example, after the first port of RU8 receives the second signal sent by the D port of the AU, it adds 1 to the value represented by the fourth identification information in the second signal to obtain the updated the second signal, and send the updated second signal to the next device in the target loop connected to the second port of RU8 through the second port of RU8, until the first port of the AU receives the updated second signal sent by RU1 second signal. The first identification information carried in the first signal sent by the A port of the AU is A (the content of the first identification information may be "A" expressed in hexadecimal form), and the value represented by the second identification information is 0, The third identification information carried in the first signal sent by the D port of the AU is D, and the value represented by the fourth identification information is 0. For example: the first signal received by the first port of RU1 carries "A1", and RU2 The first signal received from RU1 carries "A2", ... the first signal received by the D port of AU from RU8 carries "A9"; the second signal received by the second port of RU8 carries "A9"; "D1", the second signal received by RU7 from RU8 carries "D2", ... the second signal received by port A of the AU from RU1 carries "D9".
可选地,所述根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口,包括:获取所述第一信号中携带的第一标识信息和第二标识信息,以及所述第二信号中携带的第三标识信息和第四标识信息,其中,所述第二标识信息用于表示所述第一信号在所述目标环路中经过的远端机的数量,所述第四标识信息用于表示所述第二信号在所述目标环路中经过的远端机的数量;在所述第一标识信息表示所述近端机的一个端口、且所述第三标识信息表示所述近端机的另一端口的情况下,在所述第二标识信息表示的值小于或等于所述第四标识信息表示的值的情况下,将所述当前远端机的所述第一端口确定为所述当前远端机的从端口,以及将所述当前远端机的所述第二端口确定为所述当前远端机的主端口;在所述第一标识信息表示所述近端机的所述一个端口、且所述第三标识信息表示所述近端机的所述另一端口的情况下,在所述第二标识信息表示的值大于所述第四标识信息表示的值的情况下,将所述当前远端机的所述第二端口确定为所述当前远端机的从端口,以及将所述当前远端机的所述第一端口确定为所述当前远端机的主端口。Optionally, according to the first signal and the second signal, it is determined that one of the first port and the second port of the current remote machine is a slave port, and the first port is a slave port. One of the ports and the other port of the second port is the master port, including: acquiring the first identification information and the second identification information carried in the first signal, and the third identification carried in the second signal information and fourth identification information, wherein the second identification information is used to indicate the number of remote units that the first signal passes through in the target loop, and the fourth identification information is used to indicate the first The number of remote units that the second signal passes through in the target loop; the first identification information indicates one port of the near-end unit, and the third identification information indicates another port of the near-end unit In the case of a port, when the value represented by the second identification information is less than or equal to the value represented by the fourth identification information, the first port of the current remote unit is determined as the current remote unit. the slave port of the end machine, and the second port of the current remote machine is determined as the master port of the current remote machine; the first identification information indicates the one port of the near end machine , and when the third identification information indicates the other port of the near-end device, in the case that the value indicated by the second identification information is greater than the value indicated by the fourth identification information, the The second port of the current remote machine is determined as the slave port of the current remote machine, and the first port of the current remote machine is determined as the master port of the current remote machine.
在上述实施例中,在第一信号中携带的所述第一标识信息表示所述近端机的一个端口(例如第一端口A)、且所述第二信号中携带的所述第三 标识信息表示所述近端机的另一端口(例如第二端口D)的情况下,可以确定所述当前远端机所在的所述目标环路中不存在发生故障的设备,以及在所述第二标识信息表示的值小于或等于所述第四标识信息表示的值的情况下,确定所述目标环路中所述当前远端机的第一端口与所述近端机的所述一个端口之间的远端机的数量小于或等于所述当前远端机的第二端口与所述近端机的另一端口之间的远端机的数量;并且当前远端机接收到的第一信号中的第二标识信息表示的值,也用于表示该当前远端机在目标环路中的第一信号的信号传输路径上所处的位置序号(即表示当前远端机在该第一信号的信号传输路径上是第几个远端机),并且当前远端机接收到的第二信号中的第四标识信息表示的值,也用于表示该当前远端机在目标环路中的第二信号的信号传输路径上所处的位置序号(即表示当前远端机在该第二信号的信号传输路径上是第几个远端机)。In the above embodiment, the first identification information carried in the first signal represents a port of the near-end machine (for example, the first port A), and the third identification carried in the second signal If the information indicates another port of the near-end unit (for example, the second port D), it can be determined that there is no faulty device in the target loop where the current far-end unit is located, and in the first If the value indicated by the second identification information is less than or equal to the value indicated by the fourth identification information, determine the first port of the current remote machine and the one port of the near end machine in the target loop The number of remote units in between is less than or equal to the number of remote units between the second port of the current remote unit and another port of the near-end unit; and the first received by the current remote unit. The value represented by the second identification information in the signal is also used to indicate the position sequence number of the current remote unit on the signal transmission path of the first signal in the target loop (that is, it indicates that the current remote unit is in the first signal). The number of remote units on the signal transmission path of the signal), and the value represented by the fourth identification information in the second signal received by the current remote unit is also used to indicate that the current remote unit is in the target loop The sequence number of the position on the signal transmission path of the second signal (that is, indicating the number of remote units that the current remote unit is on the signal transmission path of the second signal).
可选地,所述根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟,包括:获取所述当前远端机从所述目标环路中与所述当前远端机的从端口连接的设备中接收到的信号;根据所述从所述目标环路中与所述当前远端机的从端口连接的设备中接收到的信号,恢复出时钟信号;将恢复出的所述时钟信号确定为所述当前远端机的参考时钟。Optionally, the determining the reference clock of the current remote machine according to the signal received from the target loop by the slave port of the current remote machine includes: acquiring the slave port of the current remote machine from the target loop. The signal received from the device connected to the slave port of the current remote machine in the target loop; according to the signal received from the device connected to the slave port of the current remote machine in the target loop and recover the clock signal; determine the recovered clock signal as the reference clock of the current remote unit.
上述实施例可以用于在分布式覆盖系统中,即上述实施例中的近端机、多个远端机均为分布式覆盖系统中的设备。在上述实施例中中的方法应用在多个远端机的任意一个远端机中,即对多个远端机中的每个远端机均执行上述操作,从而使每个远端机均根据其第一端口和第二端口从目标环路中分别接收到的第一信号和第二信号确定出自身在第一信号的信号传输路径中所处的位置序号,以及在第二信号的信号传输路径中所处的位置序号,进而确定出自身的从端口和主端口;由于每个远端机均是根据从端口从目标环路中接收的信号确定参考时钟(即从接收到的信号中恢复出时钟,并作为参考时钟提供给本地时钟芯片),通过上述实施例可以实现减少目标环路中的时钟恢复过程中的信号传输级数,减少了目标环路的时钟恢复 的级联级数,防止了时钟相位噪声的恶化,进而避免了系统EVM恶化。The above embodiment can be used in a distributed coverage system, that is, the near-end machine and a plurality of remote machines in the above-mentioned embodiment are all devices in the distributed coverage system. The method in the above embodiment is applied to any one of the multiple remote units, that is, the above operations are performed on each of the multiple remote units, so that each remote unit is According to the first signal and the second signal respectively received by the first port and the second port from the target loop, determine the position number of itself in the signal transmission path of the first signal, and the signal of the second signal. The position number in the transmission path, and then determine its own slave port and master port; because each remote machine determines the reference clock according to the signal received by the slave port from the target loop (that is, from the received signal The clock is recovered and provided to the local clock chip as a reference clock), through the above embodiment, the number of signal transmission stages in the clock recovery process in the target loop can be reduced, and the number of cascade stages of clock recovery in the target loop can be reduced , preventing the deterioration of the clock phase noise, thereby avoiding the deterioration of the system EVM.
可选地,所述根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口,包括:在通过当前远端机接收到与所述当前远端机的主端口连接的第二远端机发送的信号、且通过所述当前远端机在预设时间段内未接收到与所述当前远端机的从端口连接的第一远端机发送的信号的情况下,确定所述第一远端机发生故障;将所述当前远端机的所述从端口和所述当前远端机的所述主端口进行倒换,其中,所述多个远端机还包括所述第一远端机以及所述第二远端机。Optionally, according to the first signal and the second signal, it is determined that one of the first port and the second port of the current remote machine is a slave port, and the first port is a slave port. The other one of one port and the second port is the main port, including: receiving the signal sent by the second remote machine connected to the main port of the current remote machine through the current remote machine, and passing the signal sent by the second remote machine connected to the main port of the current remote machine. In the case that the current remote unit does not receive a signal sent by the first remote unit connected to the slave port of the current remote unit within a preset time period, it is determined that the first remote unit is faulty; Switching the slave port of the current remote machine and the master port of the current remote machine, wherein the plurality of remote machines further includes the first remote machine and the second remote machine remote machine.
需要说明的是,由于当前远端机通过其从端口与第一远端机连接,即表明当前远端机是根据从第一远端机接收到的信号确定参考时钟的,因此当第一远端机发生故障后,当前远端机无法再从第一远端机接收到信号,此时需要将所述当前远端机的所述从端口和所述当前远端机的所述主端口进行倒换(即将从端口和主端口进行对调,例如当前远端机的第一端口为从端口,第二端口为主端口,在进行倒换后,将当前远端机的第一端口确定为主端口,并将第二端口确定为从端口)。It should be noted that since the current remote unit is connected to the first remote unit through its slave port, it means that the current remote unit determines the reference clock according to the signal received from the first remote unit. After the terminal unit fails, the current remote unit can no longer receive signals from the first remote unit. At this time, the slave port of the current remote unit and the master port of the current remote unit need to be Switchover (that is, the slave port and the master port are swapped, for example, the first port of the current remote machine is the slave port, and the second port is the master port. After the switchover, the first port of the current remote machine is determined as the master port, and identify the second port as the slave port).
可选地,在所述将所述当前远端机的所述从端口和所述当前远端机的所述主端口进行倒换之后,所述方法还包括:根据所述当前远端机的当前从端口从所述第二远端机中接收到的信号,确定所述当前远端机的参考时钟。Optionally, after the switching of the slave port of the current remote machine and the master port of the current remote machine, the method further includes: according to the current The reference clock of the current remote unit is determined from the signal received by the port from the second remote unit.
可选地,在所述将所述当前远端机的所述从端口和所述当前远端机的所述主端口进行倒换之后,所述方法还包括:通过所述当前远端机的当前从端口向所述目标环路发送第三信号,其中,所述第三信号中携带有第五标识信息和第六标识信息,所述第五标识信息用于表示所述目标环路发生故障,所述第六标识信息表示的值用于表示初始值;在所述多个远端机中的第一远端机集合中的每个远端机在接收到所述当前远端机发送的所述第三信号的情况下,根据所述第三信号中携带的所述第五标识信息确定所 述目标环路发生故障,保持自身的主端口和从端口不变,并通过自身的从端口向与自身的从端口连接的第三设备发送所述第三信号,其中,所述第一远端机集合包括所述第二远端机,所述第三设备为与自身的从端口连接的下一个远端机或近端机。Optionally, after the switching of the slave port of the current remote machine and the master port of the current remote machine, the method further includes: A third signal is sent from the port to the target loop, wherein the third signal carries fifth identification information and sixth identification information, and the fifth identification information is used to indicate that the target loop is faulty, The value represented by the sixth identification information is used to represent the initial value; each remote machine in the first remote machine set in the plurality of remote machines receives the all sent by the current remote machine. In the case of the third signal, determine that the target loop is faulty according to the fifth identification information carried in the third signal, keep its own master port and slave port unchanged, and send a message to the target loop through its own slave port. A third device connected to its own slave port sends the third signal, wherein the first remote machine set includes the second remote machine, and the third device is a downlink connected to its own slave port. A far-end unit or a near-end unit.
可选地,第五标识信息还用于表示所述目标环路中发生故障的设备为所述第一远端机。Optionally, the fifth identification information is further used to indicate that the faulty device in the target loop is the first remote machine.
可选地,第一远端机集合中的每个远端机在通过自身的主端口接收第三信号的情况下,还对所述第三信号中的第六标识信息表示的值进行更新得到更新后的第三信号,并将更新后的第三信号发送给与自身连接的下一个远端机或近端机。Optionally, when each remote machine in the first set of remote machines receives the third signal through its own main port, it also updates the value represented by the sixth identification information in the third signal to obtain. The updated third signal is sent to the next remote or near-end connected to itself.
如图4所示,在RU6(即上述实施例中的第一远端机)发生故障后,RU5(即上述实施例中的当前远端机)进行主端口和从端口的倒换,以及通过其当前从端口(即RU5的端口1)向目标环路(此时为RU4、RU3、RU2、RU1和AU的A端口组成的路径)发送第三数据,RU4接收到第三信号后,对其中的第六表示信息进行更新后继续发送给与其连接的RU3,RU3从RU4接收到第三数据后执行与RU4相同的处理操作,直至AU的A口接收到RU1发送的第三数据。As shown in FIG. 4 , after RU6 (that is, the first remote unit in the foregoing embodiment) fails, RU5 (that is, the current remote unit in the foregoing embodiment) performs the switching of the master port and the slave port, and The current slave port (ie, port 1 of RU5) sends the third data to the target loop (at this time, the path composed of RU4, RU3, RU2, RU1 and the A port of AU), after receiving the third signal, RU4 sends the third data to the target loop. After the sixth indication information is updated, it continues to be sent to RU3 connected to it. After receiving the third data from RU4, RU3 performs the same processing operation as that of RU4 until port A of the AU receives the third data sent by RU1.
可选地,所述方法还包括:保持第三远端机的主端口和从端口不变,其中,所述第三远端机的主端口连接至所述第一远端机,所述多个远端机包括所述第三远端机;通过所述第三远端机的从端口向所述目标环路发送第四信号,其中,所述第四信号中携带有第七标识信息和第八标识信息,所述第七标识信息用于表示所述目标环路发生故障,所述第八标识信息用于表示初始值;在所述多个远端机中的第二远端机集合中的每个远端机在接收到所述第四信号的情况下,根据所述第四信号中携带的第七标识信息确定所述目标环路发生故障,保持自身的主端口和从端口不变;通过自身的从端口向与自身的从端口连接的第四设备发送所述第四信号,其中,所述第四设备为与自身的从端口连接的下一个远端机或近端机。Optionally, the method further includes: keeping the master port and slave port of the third remote unit unchanged, wherein the master port of the third remote unit is connected to the first remote unit, and the multiple The remote units include the third remote unit; send a fourth signal to the target loop through the slave port of the third remote unit, wherein the fourth signal carries seventh identification information and Eighth identification information, the seventh identification information is used to indicate that the target loop is faulty, and the eighth identification information is used to indicate the initial value; the second remote machine set in the plurality of remote machines In the case of receiving the fourth signal, each remote machine in the device determines that the target loop is faulty according to the seventh identification information carried in the fourth signal, and keeps its own master port and slave port different. Change; send the fourth signal to a fourth device connected to its own slave port through its own slave port, wherein the fourth device is the next remote machine or near-end machine connected to its own slave port.
需要说明的是,在上述实施例中,初始值可以是1。It should be noted that, in the above embodiment, the initial value may be 1.
如图5所示,与RU6的主端口连接的RU5所执行的操作类似,与RU6的从端口连接的RU7执行与RU5相同的操作,即RU7向目标环路(此时为RU8、AU的D口组成的路径)发送第四信号。其中,RU5的主端口和从端口进行了倒换,而RU1至RU4的主、从端口,以及RU7和RU8的主、从端口均保持不变。As shown in FIG. 5 , the operation performed by RU5 connected to the master port of RU6 is similar, and the operation performed by RU7 connected to the slave port of RU6 is the same as that of RU5, that is, RU7 loops to the target (in this case, D of RU8 and AU) The path formed by the port) sends the fourth signal. Among them, the master port and slave port of RU5 are switched, but the master and slave ports of RU1 to RU4, and the master and slave ports of RU7 and RU8 remain unchanged.
以下结合一示例对上述实施例中的参考时钟的确定方法进行解释说明,但不用于限定本发明实施例的技术方案。The method for determining the reference clock in the above embodiment is explained below with reference to an example, but is not used to limit the technical solution of the embodiment of the present invention.
如图3所示,目标环路为由AU的第一端口(即A口)、RU1、RU2……RU8以及AU的第二端口(即D口)组成的环路。As shown in FIG. 3 , the target loop is a loop formed by the first port of the AU (ie, port A), RU1 , RU2 . . . RU8 , and the second port of the AU (ie, port D).
在本发明实施例中,下行信号流向包括两条路径,并且每个RU通过从该两条路径中接收到的信号检测自身在环路中所在的位置,具体为:AU的A口传递一个携带有固定标识信息(即上述实施例中的第一标识信息和第二标识信息)id(例如A1,其中,“A”为第一标识信息,用于表示AU的A端口,“1”为第二标识信息表示的值)的第一信号到RU1的1口(即上述实施例中的第一端口),RU1在1口收到第一信号后,自动将第一信号携带的第二标识信息标识的值加1(即A1变成A2),并通过2口传递给RU2;RU2的1口接收到RU1的2口传输下来的携带A2的第一信号,自动加1后,将携带A3的第一信号通过2口传递给RU3,以此类推,RU1接收到的第一信号中携带有A1,RU2接收到的第二信号携带了A2,……RU8接收到的第一信号携带有A8,AU的D口接收到的第一信号携带有A9。In this embodiment of the present invention, the downlink signal flow includes two paths, and each RU detects its own position in the loop through the signals received from the two paths, specifically: the A port of the AU transmits a carrying There is fixed identification information (that is, the first identification information and the second identification information in the above-mentioned embodiment) id (for example, A1, where "A" is the first identification information, which is used to indicate the A port of the AU, and "1" is the first identification information. The first signal of the value represented by the two identification information) is sent to port 1 of RU1 (that is, the first port in the above embodiment). After port 1 receives the first signal, RU1 automatically sends the second identification information carried by the first signal. The value of the logo is incremented by 1 (that is, A1 becomes A2), and is transmitted to RU2 through port 2; port 1 of RU2 receives the first signal carrying A2 transmitted from port 2 of RU1, and automatically adds 1 to the signal carrying A3. The first signal is transmitted to RU3 through port 2, and so on, the first signal received by RU1 carries A1, the second signal received by RU2 carries A2, ... the first signal received by RU8 carries A8, The first signal received by the D port of the AU carries A9.
AU的D口同理传输携带有D1的第二信号,并且RU8……RU1对接收到的第二信号的处理方式与对接收到的第一信号的处理方式类似,从而RU8接收到的第二信号携带D1,RU7接收到的第二信号携带D2,……RU1接收到的第二信号携带D8,AU的A口接收到的第二信号携带有D9。The D port of the AU transmits the second signal carrying D1 in the same way, and RU8...RU1 processes the received second signal in a similar manner to the received first signal, so the second signal received by RU8 The signal carries D1, the second signal received by RU7 carries D2, ... the second signal received by RU1 carries D8, and the second signal received by port A of the AU carries D9.
需要说明的是,本发明实施例中的远端机接收到的信号,指的是远端 机通过其一个端口从目标环路中与该端口直接连接的设备(即远端机或近端机)中接收到的信号。It should be noted that the signal received by the remote unit in the embodiment of the present invention refers to a device (that is, the remote unit or the near-end unit) that is directly connected to the port from the target loop through one of its ports. ) received signal.
因此,对于RU1:1口收到携带有A1的信号,2口收到携带有D8的信号,根据两个信号中的第二标识信息和第四标识信息表示的值,确定RU1处在AU的A口和D口连接的环路中;并且根据两个信号中的序号值,确定RU1是连接在AU的A口下的第1台设备,以及是连接在AU的D口下的第8台设备,因此RU1便将1口设置为S口,2口设为M口,下行信号的流向从1口流向2口并继续传输给RU2。时钟恢复的过程是,RU1通过S口的串行器/解串行器(SERializer/DESerializer,简称为serdes)从数据流得到一个恢复时钟,并提供给RU1上的时钟芯片作为本地的参考时钟。Therefore, for RU1: port 1 receives a signal carrying A1, port 2 receives a signal carrying D8, and according to the values represented by the second identification information and the fourth identification information in the two signals, it is determined that RU1 is in the AU In the loop where the A port and the D port are connected; and according to the serial number values in the two signals, it is determined that RU1 is the first device connected to the A port of the AU, and the eighth device connected to the D port of the AU. Therefore, RU1 sets port 1 as port S and port 2 as port M. The downlink signal flows from port 1 to port 2 and continues to be transmitted to RU2. The process of clock recovery is that RU1 obtains a recovered clock from the data stream through the serializer/deserializer (SERializer/DESerializer, referred to as serdes) of the S port, and provides it to the clock chip on RU1 as a local reference clock.
由此,RU1,RU2,RU3以及RU4便知道自己是环路拓扑中更接近A口的,并设置自己的从端口,从而A口链路下的信号传输级数只有4级。同理,RU5,RU 6,RU 7,RU 8知道自己是环路拓扑中更最接近D口的,并设置自己的从端口,从而D口链路下的信号传输级数只有4级。即在上述实施例中形成了如图3所示的下行信号流向包括的两条路径,即:近端机AU的A口、RU1、RU2、RU3、RU4组成的路径,以及AU的D口、RU8、RU7、RU6、RU5组成的路径,此时环路中的时钟恢复的级联级数减少一半,从而防止了由于级联设备台数过多导致的时钟相位噪声恶化带来的EVM恶化,优化了信号的覆盖。As a result, RU1, RU2, RU3 and RU4 know that they are closer to port A in the ring topology, and set their own slave ports, so that the number of signal transmission stages under the link of port A is only four. Similarly, RU5, RU6, RU7, and RU8 know that they are the closest to port D in the ring topology, and set their own slave ports, so that the number of signal transmission stages under the link of port D is only 4. That is, in the above embodiment, two paths including the downlink signal flow as shown in FIG. 3 are formed, namely: the path composed of port A, RU1, RU2, RU3, and RU4 of the near-end AU, and the port D, RU, and RU4 of the AU. For the path composed of RU8, RU7, RU6, and RU5, the number of cascaded stages for clock recovery in the loop is reduced by half, thus preventing the EVM deterioration caused by the deterioration of clock phase noise caused by the excessive number of cascaded devices. signal coverage.
通过上述实施例,环路拓扑中之前的时钟恢复的信号传输级数为8级,即为8级的级联级数,而现在变成了只有4级的级联级数,从而恢复时钟的相位噪声大大优于环路拓扑之前的噪声情况,使得EVM的性能得到一定的提升,信号的传输速率和覆盖范围得到优化。如图3所示,环路拓扑中的时钟恢复的信号传输级数变为了4级的级联级数,即图3中的RU1至RU4组成的级联级数为4,以及RU8至RU5组成的级联级数也为4。Through the above-mentioned embodiment, the signal transmission stages of the previous clock recovery in the loop topology are 8 stages, that is, the number of cascaded stages of 8 stages, but now it has only 4 stages of cascaded stages, so that the recovery of the clock The phase noise is much better than the noise situation before the loop topology, so that the performance of the EVM is improved to a certain extent, and the transmission rate and coverage of the signal are optimized. As shown in Figure 3, the number of signal transmission stages of the clock recovery in the loop topology has become a cascaded number of 4 stages, that is, the number of cascaded stages composed of RU1 to RU4 in Figure 3 is 4, and the number of cascaded stages composed of RU8 to RU5 in Figure 3 The number of cascades is also 4.
如图4所示,本发明实施例的上述方法中还可以实现环路保护,其中 当中间某一台RU(例如图4中的RU6)出现故障时,RU5的1口由于无法和RU6获得光纤同步,因此1口上的标识信息(id)设置为f1(其中,第五标识信息f用于表示环路中存在发生故障的设备,1为第六标识信息标识的值;可选地,第五标识信息f还用于指示RU6(即上述实施例中的第一远端机发生了故障)并向RU4回传携带了f1的第三信号,RU4接收到的第三信号携带f1……RU1接收到的第三信号携带f4,A口上收到f5。As shown in FIG. 4 , loop protection can also be implemented in the above method according to the embodiment of the present invention. When a certain RU in the middle (for example, RU6 in FIG. 4 ) fails, port 1 of RU5 cannot obtain optical fiber from RU6 because of failure. synchronization, so the identification information (id) on port 1 is set to f1 (wherein, the fifth identification information f is used to indicate that there is a faulty device in the loop, and 1 is the value identified by the sixth identification information; The identification information f is also used to indicate that RU6 (that is, the first remote unit in the above-mentioned embodiment has failed) and transmits back to RU4 a third signal carrying f1, the third signal received by RU4 carries f1... RU1 receives The third signal that arrives carries f4, and f5 is received on port A.
RU7也是同理回传第四信号,RU8收到的第四信号携带f1,D口收到的第四信号携带f2。RU7 also returns the fourth signal in the same way. The fourth signal received by RU8 carries f1, and the fourth signal received by port D carries f2.
此时,对于RU1:1口收到A1,2口收到f4,RU1便知道环路中存在发生了故障的设备,此时RU1处在A口下的单向链路中,并且为A口下的第1台设备,以及该单向链路中在RU1之后还存在4台设备。RU1保持自己的S口和M口不变,下行信号的流向从1口流向2口并继续传输给RU2。时钟恢复的过程是,RU1通过S口的串行器/解串行器(SERializer/DESerializer,简称为serdes)从数据流得到一个恢复时钟,并提供给RU1上的时钟芯片作为本地的参考时钟。At this point, for RU1: port 1 receives A1, port 2 receives f4, and RU1 knows that there is a faulty device in the loop. At this time, RU1 is in the unidirectional link under port A and is port A. The first device under RU1, and there are 4 devices after RU1 in the unidirectional link. RU1 keeps its own S port and M port unchanged, and the downlink signal flows from port 1 to port 2 and continues to transmit to RU2. The process of clock recovery is that RU1 obtains a recovered clock from the data stream through the serializer/deserializer (SERializer/DESerializer, referred to as serdes) of the S port, and provides it to the clock chip on RU1 as a local reference clock.
由此,RU1,RU2,RU3,RU4,RU5便知道自己是环路拓扑中更接近A口的,从而A口链路下的时钟恢复的信号传输级数只有5级。同理,RU 7,RU 8知道自己是环路拓扑中更最接近D口的,从而D口链路下的时钟恢复的信号传输级数只有2级。通过上述实施例,AU和各个RU都可以获得目标环路的拓扑信息,从而定位到RU6出现了故障,实现了环路保护功能。Therefore, RU1, RU2, RU3, RU4, and RU5 know that they are closer to port A in the ring topology, so that the number of signal transmission stages for clock recovery under the link of port A is only five. In the same way, RU 7 and RU 8 know that they are the closest to the D port in the ring topology, so the number of signal transmission stages for clock recovery under the D port link is only two. Through the above embodiment, both the AU and each RU can obtain the topology information of the target loop, thereby locating the failure of the RU6 and realizing the loop protection function.
需要说明的是,上述实施例中的第一信号、第二信号、第三信号以及第四信号可以是基于CPRI协议的信号,即AU与RU1、RU8之间,以及各个RU之间通过CPRI协议进行通信,从而构成了CPRI链路。It should be noted that the first signal, the second signal, the third signal and the fourth signal in the above embodiment may be signals based on the CPRI protocol, that is, the CPRI protocol is used between the AU and RU1, RU8, and between each RU. communication, thus forming a CPRI link.
需要说明的是,在上述实施例中,第一标识信息、第三标识信息和第五标识信息、第七标识信息可以是基于CPRI协议的信号中的第一字段,即第一标识信息、第三标识信息和第五标识信息可以相同的一个字段,近 端机在发送信号时,可以将该字段的值设置为用于表示发送这一信号的端口,或者,在目标环路中存在发生故障的远端机时,与发生故障的远端机直接连接的其他远端机可以生成用于信号,并将该信号的上述字段的值设置为用于表示发生故障;第二标识信息、第四标识信息、第六标识信息和第八标识信息可以是基于CPRI协议的信号中的第二字段,即第二标识信息、第四标识信息、第六标识信息和第八标识信息可以是相同的一个字段,近端机在发送信号时,可以将该字段的值设置为初始值(例如1),并且,每个远端机从与其连接的设备中接收到信号时,对信号的该字段表示的值进行更新,并将更新好的信息继续发送给与其连接的下一个设备。It should be noted that, in the above embodiment, the first identification information, the third identification information, the fifth identification information, and the seventh identification information may be the first fields in the signal based on the CPRI protocol, that is, the first identification information, the fifth identification information, and the seventh identification information. The third identification information and the fifth identification information can be the same field. When the near-end device sends a signal, the value of this field can be set to indicate the port that sends the signal, or, there is a fault in the target loop. When the remote unit is connected to the faulty remote unit, other remote units directly connected to the faulty remote unit can generate a signal, and set the value of the above-mentioned field of the signal to be used to indicate that the fault occurs; the second identification information, the fourth The identification information, the sixth identification information and the eighth identification information may be the second fields in the signal based on the CPRI protocol, that is, the second identification information, the fourth identification information, the sixth identification information and the eighth identification information may be the same one field, when the near-end station sends a signal, the value of this field can be set to the initial value (for example, 1), and when each remote station receives a signal from the device connected to it, the field of the signal indicates The value is updated, and the updated information is sent to the next device connected to it.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
根据本发明的另一个实施例,提供了一种参考时钟的确定装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。According to another embodiment of the present invention, an apparatus for determining a reference clock is provided, and the apparatus is used to implement the above-mentioned embodiments and preferred implementations, which have been described and will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
图6是根据本发明另一实施例的参考时钟的确定装置的结构框图,该装置包括获取模块72,第一确定模块74以及第二确定模块76,所述装置用于通过所述获取模块72,所述第一确定模块74以及所述第二确定模块76确定目标环路中的每个远端机的参考时钟,其中,在确定所述每个远端机的参考时钟时,将所述每个远端机确定为当前远端机:FIG. 6 is a structural block diagram of an apparatus for determining a reference clock according to another embodiment of the present invention. The apparatus includes an acquisition module 72 , a first determination module 74 and a second determination module 76 , and the apparatus is configured to pass the acquisition module 72 . , the first determining module 74 and the second determining module 76 determine the reference clock of each remote unit in the target loop, wherein, when determining the reference clock of each remote unit, the Each remote unit is determined as the current remote unit:
其中,所述获取模块72,设置为获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;The obtaining module 72 is configured to obtain the first signal received by the first port of the current remote machine from the target loop, and the second port of the current remote machine from the target loop The second signal received on the road, wherein the target loop includes: a loop composed of a near-end machine and a plurality of remote machines;
所述第一确定模块74,设置为根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;The first determining module 74 is configured to determine, according to the first signal and the second signal, that one of the first port and the second port of the current remote machine is a slave port, and the other of the first port and the second port is the primary port;
所述第二确定模块76,设置为根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。The second determining module 76 is configured to determine the reference clock of the current remote machine according to the signal received from the target loop by the slave port of the current remote machine.
通过本发明,对于目标环路中的每个远端机执行以下操作,其中,在对所述每个远端机执行以下操作时,将所述每个远端机确定为当前远端机:获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。因此,可以解决环路中远端设备的级联级数增大导致环路中远端设备的参考时钟的相位噪声增大的技术问题,降低了远端设备的级联级数增大所导致的远端设备的参考时钟的相位噪声,降低了系统的发射/接收误差矢量幅度的恶化程度。Through the present invention, the following operations are performed for each remote unit in the target loop, wherein when the following operations are performed on each remote unit, each remote unit is determined as the current remote unit: Obtain the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop, wherein, The target loop includes: a loop composed of a near-end machine and a plurality of far-end machines; according to the first signal and the second signal, determine the first port and all the current far-end machines. One port in the second port is a slave port, and the other port in the first port and the second port is a master port; according to the slave port of the current remote machine, from the target loop The received signal determines the reference clock of the current remote unit. Therefore, it is possible to solve the technical problem that the increase in the number of cascaded stages of the remote device in the loop leads to an increase in the phase noise of the reference clock of the remote device in the loop, and reduce the problem caused by the increase of the number of cascaded stages of the remote device. The phase noise of the remote device's reference clock reduces the system's transmit/receive error vector magnitude degradation.
可选地,所述装置还包括发送模块,设置为在确定目标环路中的每个远端机的参考时钟之前,通过所述近端机的第一端口以及所述近端机的第二端口分别向所述目标环路发送第一信号和第二信号,其中,所述第一信号在所述目标环路中按照第一信号传输路径传输,所述第二信号在所述目标环路中按照第二信号传输路径传输,所述近端机发送的所述第一信号中携带有第一标识信息和第二标识信息,所述第一标识信息用于表示所述近 端机的所述第一端口,所述第二标识信息用于表示所述第一信号在所述目标环路中经过的远端机的数量为初始值,所述近端机发送的所述第二信号中携带有第三标识信息和第四标识信息,所述第三标识信息用于表示所述近端机的所述第二端口,所述第四标识信息用于表示所述第二信号在所述目标环路中经过的远端机的数量为所述初始值。Optionally, the device further includes a sending module, configured to transmit the data through the first port of the near-end machine and the second port of the near-end machine before determining the reference clock of each far-end machine in the target loop. The port sends a first signal and a second signal to the target loop respectively, wherein the first signal is transmitted in the target loop according to a first signal transmission path, and the second signal is transmitted in the target loop According to the second signal transmission path, the first signal sent by the near-end unit carries first identification information and second identification information, and the first identification information is used to indicate all the information of the near-end unit. The first port, the second identification information is used to indicate that the number of remote units that the first signal passes through in the target loop is an initial value, and the second signal sent by the near-end unit Carrying third identification information and fourth identification information, the third identification information is used to indicate the second port of the near-end machine, and the fourth identification information is used to indicate that the second signal is in the The number of remote units passing through the target loop is the initial value.
可选地,所述获取模块72,还设置为:通过所述当前远端机的第一端口从与所述当前远端机连接的第一设备中接收所述第一信号,以及通过所述当前远端机的第二端口从与所述当前远端机连接的第二设备中接收所述第二信号,其中,所述第一设备是所述目标环路中与所述当前远端机的第一端口连接的设备,所述第二设备是所述目标环路中与所述当前远端机的第二端口连接的设备;将所述当前远端机接收到的所述第一信号中携带的第二标识信息表示的值增加预设值后,得到更新后的第二标识信息,以及将所述当前远端机的第二端口接收到的所述第二信号中携带的第四标识信息表示的值增加所述预设值后,得到更新后的第四标识信息;使用更新后的所述第二标识信息对所述当前远端机接收到的所述第一信号中的第二标识信息进行更新,得到更新后的第一信号,将所述更新后的第一信号通过所述当前远端机的第二端口发送给所述第二设备;使用更新后的所述第四标识信息对所述当前远端机接收到的所述第二信号中的第四标识信息进行更新,得到更新后的第二信号,将所述更新后的第二信号通过所述当前远端机的第一端口发送给所述第一设备。Optionally, the obtaining module 72 is further configured to: receive the first signal from the first device connected to the current remote machine through the first port of the current remote machine, and receive the first signal through the first port of the current remote machine The second port of the current remote unit receives the second signal from a second device connected to the current remote unit, wherein the first device is the target loop and the current remote unit The device connected to the first port of the target loop, the second device is the device connected to the second port of the current remote machine in the target loop; the first signal received by the current remote machine After the value represented by the second identification information carried in the device is increased by a preset value, the updated second identification information is obtained, and the fourth identification information carried in the second signal received by the second port of the current remote unit is After the value indicated by the identification information is increased by the preset value, the updated fourth identification information is obtained; The second identification information is updated to obtain the updated first signal, and the updated first signal is sent to the second device through the second port of the current remote device; using the updated fourth The identification information updates the fourth identification information in the second signal received by the current remote unit to obtain an updated second signal, and passes the updated second signal through the current remote unit of the first port to the first device.
可选地,所述获取模块72,设置为:获取所述第一信号中携带的第一标识信息和第二标识信息,以及所述第二信号中携带的第三标识信息和第四标识信息,其中,所述第二标识信息用于表示所述第一信号在所述目标环路中经过的远端机的数量,所述第四标识信息用于表示所述第二信号在所述目标环路中经过的远端机的数量;所述第二确定模块76,还设置为:在所述第一标识信息表示所述近端机的一个端口、且所述第三标识信息表示所述近端机的另一端口的情况下,在所述第二标识信息表示的值小于或等于所述第四标识信息表示的值的情况下,将所述当前远端机的所述第一 端口确定为所述当前远端机的从端口,以及将所述当前远端机的所述第二端口确定为所述当前远端机的主端口;在所述第一标识信息表示所述近端机的所述一个端口、且所述第三标识信息表示所述近端机的所述另一端口的情况下,在所述第二标识信息表示的值大于所述第四标识信息表示的值的情况下,将所述当前远端机的所述第二端口确定为所述当前远端机的从端口,以及将所述当前远端机的所述第一端口确定为所述当前远端机的主端口。Optionally, the obtaining module 72 is configured to: obtain the first identification information and the second identification information carried in the first signal, and the third identification information and the fourth identification information carried in the second signal , wherein the second identification information is used to indicate the number of remote units that the first signal passes through in the target loop, and the fourth identification information is used to indicate that the second signal is in the target loop The number of far-end machines passing through the loop; the second determining module 76 is further configured to: the first identification information indicates a port of the near-end machine, and the third identification information indicates the In the case of another port of the near-end machine, when the value indicated by the second identification information is less than or equal to the value indicated by the fourth identification information, the first port of the current far-end machine is Determining as the slave port of the current remote computer, and determining the second port of the current remote computer as the master port of the current remote computer; the first identification information indicates that the near end In the case where the one port of the remote device is represented by the third identification information and the other port of the near-end device is represented by the third identification information, the value represented by the second identification information is greater than the value represented by the fourth identification information In case of main port of the machine.
可选地,所述获取模块72,还设置为:获取所述当前远端机从所述目标环路中与所述当前远端机的从端口连接的设备中接收到的信号;根据所述从所述目标环路中与所述当前远端机的从端口连接的设备中接收到的信号,恢复出时钟信号;将恢复出的所述时钟信号确定为所述当前远端机的参考时钟。Optionally, the obtaining module 72 is further configured to: obtain the signal received by the current remote machine from the device connected to the slave port of the current remote machine in the target loop; The clock signal is recovered from the signal received from the device connected to the slave port of the current remote machine in the target loop; the recovered clock signal is determined as the reference clock of the current remote machine .
可选地,所述第二确定模块76,还设置为:在通过当前远端机接收到与所述当前远端机的主端口连接的第二远端机发送的信号、且通过所述当前远端机在预设时间段内未接收到与所述当前远端机的从端口连接的第一远端机发送的信号的情况下,确定所述第一远端机发生故障;将所述当前远端机的所述从端口和所述当前远端机的所述主端口进行倒换,其中,所述多个远端机还包括所述第一远端机以及所述第二远端机。Optionally, the second determining module 76 is further configured to: after receiving the signal sent by the second remote machine connected to the main port of the current remote machine through the current remote machine, and passing the current remote machine In the case that the remote unit does not receive a signal sent by the first remote unit connected to the slave port of the current remote unit within a preset time period, it is determined that the first remote unit is faulty; The slave port of the current remote machine and the master port of the current remote machine are switched, wherein the plurality of remote machines further include the first remote machine and the second remote machine .
根据本发明的另一个实施例,提供了一种参考时钟的确定装置,包括:处理模块,设置为对于目标环路中的每个远端机执行以下操作,其中,在对所述每个远端机执行以下操作时,将所述每个远端机确定为当前远端机:获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。According to another embodiment of the present invention, there is provided an apparatus for determining a reference clock, comprising: a processing module configured to perform the following operations for each remote unit in the target loop, wherein, when performing the following operations on each remote unit When the terminal performs the following operations, determine each remote terminal as the current remote terminal: obtain the first signal received from the target loop by the first port of the current remote terminal, and the current remote terminal The second signal received by the second port of the remote machine from the target loop, wherein the target loop includes: a loop composed of a near-end machine and a plurality of remote machines; according to the first signal and the second signal, determining that one of the first port and the second port of the current remote unit is a slave port, and the other one of the first port and the second port The port is the master port; the reference clock of the current remote machine is determined according to the signal received from the target loop by the slave port of the current remote machine.
本发明的另一实施例还提供了一种参考时钟的确定系统,包括:近端机以及多个远端机,其中,所述多个远端机中的每个远端机用于执行以下操作,其中,在所述每个远端机执行以下操作时,将自身确定为当前远端机:Another embodiment of the present invention also provides a system for determining a reference clock, including: a near-end unit and a plurality of remote units, wherein each remote unit in the plurality of remote units is configured to perform the following: operation, wherein, when each remote machine performs the following operations, it determines itself as the current remote machine:
获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由所述近端机以及所述多个远端机组成的环路;Obtain the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop, wherein, The target loop includes: a loop composed of the near-end machine and the plurality of remote machines;
根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;According to the first signal and the second signal, it is determined that one of the first port and the second port of the current remote unit is a slave port, and the first port and the second port are The other port of the two ports is the primary port;
根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。The reference clock of the current remote terminal is determined according to the signal received from the target loop by the slave port of the current remote terminal.
通过本发明,对于目标环路中的每个远端机执行以下操作,其中,在对所述每个远端机执行以下操作时,将所述每个远端机确定为当前远端机:获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。因此,可以解决环路中远端设备的级联级数增大导致环路中远端设备的参考时钟的相位噪声增大的技术问题,降低了远端设备的级联级数增大所导致的远端设备的参考时钟的相位噪声,降低了系统的发射/接收误差矢量幅度的恶化程度。Through the present invention, the following operations are performed for each remote unit in the target loop, wherein when the following operations are performed on each remote unit, each remote unit is determined as the current remote unit: Obtain the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop, wherein, The target loop includes: a loop composed of a near-end machine and a plurality of far-end machines; according to the first signal and the second signal, determine the first port and all the current far-end machines. One port in the second port is a slave port, and the other port in the first port and the second port is a master port; according to the slave port of the current remote machine, from the target loop The received signal determines the reference clock of the current remote unit. Therefore, it is possible to solve the technical problem that the increase in the number of cascaded stages of the remote device in the loop leads to an increase in the phase noise of the reference clock of the remote device in the loop, and reduce the problem caused by the increase of the number of cascaded stages of the remote device. The phase noise of the remote device's reference clock reduces the system's transmit/receive error vector magnitude degradation.
可选地,所述近端机,设置为:通过所述近端机的第一端口以及所述近端机的第二端口分别向所述目标环路发送第一信号和第二信号,其中,所述第一信号在所述目标环路中按照第一信号传输路径传输,所述第二信 号在所述目标环路中按照第二信号传输路径传输,所述近端机发送的所述第一信号中携带有第一标识信息和第二标识信息,所述第一标识信息用于表示所述近端机的所述第一端口,所述第二标识信息用于表示所述第一信号在所述目标环路中经过的远端机的数量为初始值,所述近端机发送的所述第二信号中携带有第三标识信息和第四标识信息,所述第三标识信息用于表示所述近端机的所述第二端口,所述第四标识信息用于表示所述第二信号在所述目标环路中经过的远端机的数量为所述初始值。Optionally, the near-end machine is configured to send a first signal and a second signal to the target loop through a first port of the near-end machine and a second port of the near-end machine, respectively, wherein , the first signal is transmitted in the target loop according to the first signal transmission path, the second signal is transmitted in the target loop according to the second signal transmission path, and the The first signal carries first identification information and second identification information, the first identification information is used to indicate the first port of the near-end machine, and the second identification information is used to indicate the first port. The number of remote units that the signal passes through in the target loop is an initial value, and the second signal sent by the near-end unit carries third identification information and fourth identification information, and the third identification information The fourth identification information is used to indicate the second port of the near-end machine, and the fourth identification information is used to indicate that the number of the far-end machines that the second signal passes through in the target loop is the initial value.
可选地,所述当前远端机,还设置为:通过所述当前远端机的第一端口从与所述当前远端机连接的第一设备中接收所述第一信号,以及通过所述当前远端机的第二端口从与所述当前远端机连接的第二设备中接收所述第二信号,其中,所述第一设备是所述目标环路中与所述当前远端机的第一端口连接的设备,所述第二设备是所述目标环路中与所述当前远端机的第二端口连接的设备;将所述当前远端机接收到的所述第一信号中携带的第二标识信息表示的值增加预设值后,得到更新后的第二标识信息,以及将所述当前远端机的第二端口接收到的所述第二信号中携带的第四标识信息表示的值增加所述预设值后,得到更新后的第四标识信息;使用更新后的所述第二标识信息对所述当前远端机接收到的所述第一信号中的第二标识信息进行更新,得到更新后的第一信号,将所述更新后的第一信号通过所述当前远端机的第二端口发送给所述第二设备;使用更新后的所述第四标识信息对所述当前远端机接收到的所述第二信号中的第四标识信息进行更新,得到更新后的第二信号,将所述更新后的第二信号通过所述当前远端机的第一端口发送给所述第一设备。Optionally, the current remote unit is further configured to: receive the first signal from the first device connected to the current remote unit through the first port of the current remote unit, and receive the first signal through the first port of the current remote unit. The second port of the current remote unit receives the second signal from a second device connected to the current remote unit, wherein the first device is the target loop and the current remote unit. A device connected to the first port of the current remote machine, the second device is a device in the target loop connected to the second port of the current remote machine; After the value represented by the second identification information carried in the signal is increased by a preset value, the updated second identification information is obtained, and the second identification information carried in the second signal received by the second port of the current remote unit is obtained. After the value represented by the four identification information is increased by the preset value, the updated fourth identification information is obtained; The second identification information is updated to obtain the updated first signal, and the updated first signal is sent to the second device through the second port of the current remote device; using the updated first signal Four identification information Update the fourth identification information in the second signal received by the current remote machine to obtain an updated second signal, and pass the updated second signal through the current remote The first port of the machine is sent to the first device.
可选地,所述当前远端机,还设置为:获取所述第一信号中携带的第一标识信息和第二标识信息,以及所述第二信号中携带的第三标识信息和第四标识信息,其中,所述第二标识信息用于表示所述第一信号在所述目标环路中经过的远端机的数量,所述第四标识信息用于表示所述第二信号在所述目标环路中经过的远端机的数量;在所述第一标识信息表示所述近端机的一个端口、且所述第三标识信息表示所述近端机的另一端口的情况 下,在所述第二标识信息表示的值小于或等于所述第四标识信息表示的值的情况下,将所述当前远端机的所述第一端口确定为所述当前远端机的从端口,以及将所述当前远端机的所述第二端口确定为所述当前远端机的主端口;在所述第一标识信息表示所述近端机的所述一个端口、且所述第三标识信息表示所述近端机的所述另一端口的情况下,在所述第二标识信息表示的值大于所述第四标识信息表示的值的情况下,将所述当前远端机的所述第二端口确定为所述当前远端机的从端口,以及将所述当前远端机的所述第一端口确定为所述当前远端机的主端口。Optionally, the current remote unit is further configured to obtain the first identification information and the second identification information carried in the first signal, and the third identification information and the fourth identification information carried in the second signal. identification information, wherein the second identification information is used to indicate the number of remote units that the first signal passes through in the target loop, and the fourth identification information is used to indicate that the second signal is in the target loop. The number of far-end machines passing through the target loop; in the case that the first identification information indicates one port of the near-end machine, and the third identification information indicates another port of the near-end machine , in the case that the value indicated by the second identification information is less than or equal to the value indicated by the fourth identification information, determine the first port of the current remote machine as the slave port of the current remote machine port, and the second port of the current remote computer is determined as the main port of the current remote computer; the first identification information indicates the one port of the near-end computer, and the In the case that the third identification information indicates the other port of the near-end device, in the case that the value indicated by the second identification information is greater than the value indicated by the fourth identification information, the current remote The second port of the current remote computer is determined as the slave port of the current remote computer, and the first port of the current remote computer is determined as the master port of the current remote computer.
可选地,所述当前远端机,还设置为:获取所述当前远端机从所述目标环路中与所述当前远端机的从端口连接的设备中接收到的信号;根据所述从所述目标环路中与所述当前远端机的从端口连接的设备中接收到的信号,恢复出时钟信号;将恢复出的所述时钟信号确定为所述当前远端机的参考时钟。Optionally, the current remote machine is further configured to: acquire the signal received by the current remote machine from the device connected to the slave port of the current remote machine in the target loop; Describe the signal received from the device connected to the slave port of the current remote machine in the target loop, recover the clock signal; determine the recovered clock signal as the reference of the current remote machine clock.
可选地,所述当前远端机,还设置为:在通过当前远端机接收到与所述当前远端机的主端口连接的第二远端机发送的信号、且通过所述当前远端机在预设时间段内未接收到与所述当前远端机的从端口连接的第一远端机发送的信号的情况下,确定所述第一远端机发生故障;将所述当前远端机的所述从端口和所述当前远端机的所述主端口进行倒换,其中,所述多个远端机还包括所述第一远端机以及所述第二远端机。Optionally, the current remote unit is further configured to: receive a signal sent by a second remote unit connected to the main port of the current remote unit through the current remote unit, and send the signal through the current remote unit. In the case that the terminal unit does not receive a signal sent by the first remote unit connected to the slave port of the current remote unit within a preset time period, it is determined that the first remote unit is faulty; The slave port of the remote machine and the master port of the current remote machine are switched, wherein the plurality of remote machines further include the first remote machine and the second remote machine.
本发明的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述任一项的方法。An embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, wherein the above-mentioned program executes any one of the above-mentioned methods when running.
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for executing the following steps:
S1,对于目标环路中的每个远端机执行以下操作,其中,在对所述每个远端机执行以下操作时,将所述每个远端机确定为当前远端机:S1, perform the following operations on each remote unit in the target loop, wherein when performing the following operations on each remote unit, determine each remote unit as the current remote unit:
获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号, 其中,所述目标环路包括:由近端机以及多个远端机组成的环路;Obtain the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop, wherein, The target loop includes: a loop composed of a near-end machine and a plurality of remote machines;
根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;According to the first signal and the second signal, it is determined that one of the first port and the second port of the current remote unit is a slave port, and the first port and the second port are The other port of the two ports is the primary port;
根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。The reference clock of the current remote terminal is determined according to the signal received from the target loop by the slave port of the current remote terminal.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), Various media that can store program codes, such as removable hard disks, magnetic disks, or optical disks.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not described herein again in this embodiment.
本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, comprising a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
S1,对于目标环路中的每个远端机执行以下操作,其中,在对所述每个远端机执行以下操作时,将所述每个远端机确定为当前远端机:S1, perform the following operations on each remote unit in the target loop, wherein when performing the following operations on each remote unit, determine each remote unit as the current remote unit:
获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;Obtain the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop, wherein, The target loop includes: a loop composed of a near-end machine and a plurality of remote machines;
根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述 第二端口中的另一个端口为主端口;According to the first signal and the second signal, it is determined that one of the first port and the second port of the current remote unit is a slave port, and the first port and the second port are The other port of the two ports is the primary port;
根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。The reference clock of the current remote terminal is determined according to the signal received from the target loop by the slave port of the current remote terminal.
图7是根据本发明实施例的一种可选的电子装置的结构示意图。可选地,本领域普通技术人员可以理解,图7所示的结构仅为示意,电子装置也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图7其并不对上述电子装置的结构造成限定。例如,电子装置还可包括比图7中所示更多或者更少的组件(如网络接口等),或者具有与图7所示不同的配置。FIG. 7 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention. Optionally, those of ordinary skill in the art can understand that the structure shown in FIG. 7 is only for illustration, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and a mobile Internet device (Mobile Internet device). Internet Devices, MID), PAD and other terminal equipment. FIG. 7 does not limit the structure of the above electronic device. For example, the electronic device may also include more or less components than those shown in FIG. 7 (eg, network interfaces, etc.), or have a different configuration than that shown in FIG. 7 .
其中,存储器1002可用于存储软件程序以及模块,如本发明实施例中的参考时钟的确定方法和参考时钟的确定装置对应的程序指令/模块,处理器1004通过运行存储在存储器1002内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的参考时钟的确定方法。存储器1002可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器1002可进一步包括相对于处理器1004远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。作为一种示例,上述存储器1002中可以但不限于包括上述参考时钟的确定装置的获取模块72、第一确定模块74以及第二确定模块76。此外,还可以包括但不限于上述参考时钟的确定装置中的其他模块单元,本示例中不再赘述。The memory 1002 can be used to store software programs and modules, such as program instructions/modules corresponding to the method for determining the reference clock and the device for determining the reference clock in the embodiment of the present invention, and the processor 1004 executes the software program stored in the memory 1002 by running and modules, so as to perform various functional applications and data processing, that is, to implement the above-mentioned method for determining the reference clock. Memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, memory 1002 may further include memory located remotely from processor 1004, and these remote memories may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. As an example, the above-mentioned memory 1002 may include, but is not limited to, the obtaining module 72 , the first determining module 74 and the second determining module 76 of the above-mentioned device for determining the reference clock. In addition, it may also include, but is not limited to, other module units in the above-mentioned apparatus for determining the reference clock, which will not be repeated in this example.
可选地,上述的传输设备1006用于经由一个网络接收或者发送数据。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输设备1006包括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输设备1006为射频(Radio Frequency,RF)模块, 其用于通过无线方式与互联网进行通讯。Optionally, the above-mentioned transmission device 1006 is configured to receive or transmit data via a network. Specific examples of the above-mentioned networks may include wired networks and wireless networks. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through a network cable to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (Radio Frequency, RF) module, which is used for wirelessly communicating with the Internet.
此外,上述电子设备还包括:显示器1008,用于显示画面;和连接总线1010,用于连接上述电子装置中的各个模块部件。In addition, the above-mentioned electronic device further includes: a display 1008 for displaying a picture; and a connection bus 1010 for connecting various module components in the above-mentioned electronic device.
在其他实施例中,上述终端或者服务器可以是一个分布式系统中的一个节点,其中,该分布式系统可以为区块链系统,该区块链系统可以是由该多个节点通过网络通信的形式连接形成的分布式系统。其中,节点之间可以组成点对点(P2P,Peer To Peer)网络,任意形式的计算设备,比如服务器、终端等电子设备都可以通过加入该点对点网络而成为该区块链系统中的一个节点。In other embodiments, the above-mentioned terminal or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be communicated by the multiple nodes through a network A distributed system formed by formal connections. Among them, a peer-to-peer (P2P, Peer To Peer) network can be formed between nodes, and any form of computing equipment, such as servers, terminals and other electronic devices can become a node in the blockchain system by joining the peer-to-peer network.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not described herein again in this embodiment.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here The steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module. As such, the present invention is not limited to any particular combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included within the protection scope of the present invention.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), Various media that can store program codes, such as removable hard disks, magnetic disks, or optical disks.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not described herein again in this embodiment.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here The steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module. As such, the present invention is not limited to any particular combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

  1. 一种参考时钟的确定方法,包括:A method for determining a reference clock, comprising:
    对于目标环路中的每个远端机执行以下操作,其中,在对所述每个远端机执行以下操作时,将所述每个远端机确定为当前远端机:Perform the following operations on each remote unit in the target loop, wherein each remote unit is determined to be the current remote unit when the following operations are performed on each remote unit:
    获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;Obtain the first signal received by the first port of the current remote machine from the target loop, and the second signal received by the second port of the current remote machine from the target loop, wherein, The target loop includes: a loop composed of a near-end machine and a plurality of remote machines;
    根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;According to the first signal and the second signal, it is determined that one of the first port and the second port of the current remote unit is a slave port, and the first port and the second port are The other port of the two ports is the primary port;
    根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。The reference clock of the current remote terminal is determined according to the signal received from the target loop by the slave port of the current remote terminal.
  2. 根据权利要求1所述的方法,其中,在所述对于目标环路中的每个远端机执行以下操作之前,所述方法还包括:The method of claim 1, wherein, before performing the following operations on each remote unit in the target loop, the method further comprises:
    通过所述近端机的第一端口以及所述近端机的第二端口分别向所述目标环路发送第一信号和第二信号,其中,所述第一信号在所述目标环路中按照第一信号传输路径传输,所述第二信号在所述目标环路中按照第二信号传输路径传输,所述近端机发送的所述第一信号中携带有第一标识信息和第二标识信息,所述第一标识信息用于表示所述近端机的所述第一端口,所述第二标识信息用于表示所述第一信号在所述目标环路中经过的远端机的数量为初始值,所述近端机发送的所述第二信号中携带有第三标识信息和第四标识信息,所述第三标识信息用于表示所述近端机的所述第二端口,所述第四标识信息用于表示所述第二信号在所述目标环路中经过的远端机的数量为所述初始 值。A first signal and a second signal are sent to the target loop through a first port of the near-end unit and a second port of the near-end unit, respectively, wherein the first signal is in the target loop The second signal is transmitted according to the first signal transmission path, the second signal is transmitted according to the second signal transmission path in the target loop, and the first signal sent by the near-end unit carries the first identification information and the second signal. identification information, the first identification information is used to indicate the first port of the near-end unit, and the second identification information is used to indicate the far-end unit that the first signal passes through in the target loop The number is the initial value, the second signal sent by the near-end unit carries third identification information and fourth identification information, and the third identification information is used to indicate the second signal of the near-end unit. port, and the fourth identification information is used to indicate that the number of remote units that the second signal passes through in the target loop is the initial value.
  3. 根据权利要求2所述的方法,其中,在所述获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号之后,所述方法还包括:The method according to claim 2, wherein the obtaining of the first signal received by the first port of the current remote unit from the target loop, and the second port of the current remote unit from the target loop After the second signal received on the target loop, the method further includes:
    通过所述当前远端机的第一端口从与所述当前远端机连接的第一设备中接收所述第一信号,以及通过所述当前远端机的第二端口从与所述当前远端机连接的第二设备中接收所述第二信号,其中,所述第一设备是所述目标环路中与所述当前远端机的第一端口连接的设备,所述第二设备是所述目标环路中与所述当前远端机的第二端口连接的设备;The first signal is received from a first device connected to the current remote unit through a first port of the current remote unit, and received from a first device connected to the current remote unit through a second port of the current remote unit The second signal is received in the second device connected to the terminal, wherein the first device is the device connected to the first port of the current remote terminal in the target loop, and the second device is A device connected to the second port of the current remote machine in the target loop;
    将所述当前远端机接收到的所述第一信号中携带的第二标识信息表示的值增加预设值后,得到更新后的第二标识信息,以及将所述当前远端机的第二端口接收到的所述第二信号中携带的第四标识信息表示的值增加所述预设值后,得到更新后的第四标识信息;After the value represented by the second identification information carried in the first signal received by the current remote unit is increased by a preset value, the updated second identification information is obtained, and the second identification information of the current remote unit is added. After the value represented by the fourth identification information carried in the second signal received by the second port is increased by the preset value, the updated fourth identification information is obtained;
    使用更新后的所述第二标识信息对所述当前远端机接收到的所述第一信号中的第二标识信息进行更新,得到更新后的第一信号,将所述更新后的第一信号通过所述当前远端机的第二端口发送给所述第二设备;Use the updated second identification information to update the second identification information in the first signal received by the current remote machine, obtain the updated first signal, and use the updated first signal to update the updated first signal. The signal is sent to the second device through the second port of the current remote machine;
    使用更新后的所述第四标识信息对所述当前远端机接收到的所述第二信号中的第四标识信息进行更新,得到更新后的第二信号,将所述更新后的第二信号通过所述当前远端机的第一端口发送给所述第一设备。Use the updated fourth identification information to update the fourth identification information in the second signal received by the current remote machine, obtain the updated second signal, and use the updated second signal. The signal is sent to the first device through the first port of the current remote machine.
  4. 根据权利要求1所述的方法,其中,所述根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二 端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口,包括:The method according to claim 1, wherein, according to the first signal and the second signal, determining that one of the first port and the second port of the current remote terminal is A slave port, and the other one of the first port and the second port is a master port, including:
    获取所述第一信号中携带的第一标识信息和第二标识信息,以及所述第二信号中携带的第三标识信息和第四标识信息,其中,所述第二标识信息用于表示所述第一信号在所述目标环路中经过的远端机的数量,所述第四标识信息用于表示所述第二信号在所述目标环路中经过的远端机的数量;Obtain the first identification information and the second identification information carried in the first signal, and the third identification information and the fourth identification information carried in the second signal, wherein the second identification information is used to indicate the the number of remote units that the first signal passes through in the target loop, and the fourth identification information is used to indicate the number of remote units that the second signal passes through in the target loop;
    在所述第一标识信息表示所述近端机的一个端口、且所述第三标识信息表示所述近端机的另一端口的情况下,在所述第二标识信息表示的值小于或等于所述第四标识信息表示的值的情况下,将所述当前远端机的所述第一端口确定为所述当前远端机的从端口,以及将所述当前远端机的所述第二端口确定为所述当前远端机的主端口;In the case where the first identification information indicates one port of the near-end machine, and the third identification information indicates another port of the near-end machine, the value indicated by the second identification information is less than or In the case of being equal to the value represented by the fourth identification information, the first port of the current remote computer is determined as the slave port of the current remote computer, and the The second port is determined as the main port of the current remote computer;
    在所述第一标识信息表示所述近端机的所述一个端口、且所述第三标识信息表示所述近端机的所述另一端口的情况下,在所述第二标识信息表示的值大于所述第四标识信息表示的值的情况下,将所述当前远端机的所述第二端口确定为所述当前远端机的从端口,以及将所述当前远端机的所述第一端口确定为所述当前远端机的主端口。When the first identification information indicates the one port of the near-end machine, and the third identification information indicates the other port of the near-end machine, the second identification information indicates In the case where the value is greater than the value represented by the fourth identification information, the second port of the current remote machine is determined as the slave port of the current remote machine, and the second port of the current remote machine is determined. The first port is determined as the main port of the current remote computer.
  5. 根据权利要求1所述的方法,其中,所述根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟,包括:The method according to claim 1, wherein the determining the reference clock of the current remote terminal according to the signal received from the target loop by the slave port of the current remote terminal comprises:
    获取所述当前远端机从所述目标环路中与所述当前远端机的从端口连接的设备中接收到的信号;Obtain the signal received by the current remote machine from the device connected to the slave port of the current remote machine in the target loop;
    根据所述从所述目标环路中与所述当前远端机的从端口连接的设备中接收到的信号,恢复出时钟信号;recovering a clock signal according to the signal received from the device connected to the slave port of the current remote machine in the target loop;
    将恢复出的所述时钟信号确定为所述当前远端机的参考时钟。The recovered clock signal is determined as the reference clock of the current remote unit.
  6. 根据权利要求1所述的方法,其中,所述根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口,包括:The method according to claim 1, wherein, according to the first signal and the second signal, determining that one of the first port and the second port of the current remote terminal is A slave port, and the other one of the first port and the second port is a master port, including:
    在通过当前远端机接收到与所述当前远端机的主端口连接的第二远端机发送的信号、且通过所述当前远端机在预设时间段内未接收到与所述当前远端机的从端口连接的第一远端机发送的信号的情况下,确定所述第一远端机发生故障;When the signal sent by the second remote unit connected to the main port of the current remote unit is received through the current remote unit, and the signal sent by the second remote unit connected to the main port of the current remote unit is not received by the current remote unit within a preset time period In the case of a signal sent from the first remote unit connected to the port of the remote unit, it is determined that the first remote unit is faulty;
    将所述当前远端机的所述从端口和所述当前远端机的所述主端口进行倒换,其中,所述多个远端机还包括所述第一远端机以及所述第二远端机。Switching the slave port of the current remote machine and the master port of the current remote machine, wherein the plurality of remote machines further includes the first remote machine and the second remote machine remote machine.
  7. 一种参考时钟的确定装置,包括:获取模块,第一确定模块以及第二确定模块,所述装置用于通过所述获取模块,所述第一确定模块以及所述第二确定模块确定目标环路中的每个远端机的参考时钟,其中,在确定所述每个远端机的参考时钟时,将所述每个远端机确定为当前远端机:A device for determining a reference clock, comprising: an acquisition module, a first determination module and a second determination module, the device is configured to determine a target ring through the acquisition module, the first determination module and the second determination module The reference clock of each remote unit in the road, wherein when determining the reference clock of each remote unit, each remote unit is determined as the current remote unit:
    其中,所述获取模块,设置为获取所述当前远端机的第一端口从所述目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由近端机以及多个远端机组成的环路;Wherein, the acquisition module is configured to acquire the first signal received by the first port of the current remote machine from the target loop, and the second port of the current remote machine from the target loop The received second signal, wherein the target loop includes: a loop composed of a near-end unit and a plurality of remote units;
    所述第一确定模块,设置为根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;The first determining module is configured to determine, according to the first signal and the second signal, that one of the first port and the second port of the current remote machine is a slave port, and The other one of the first port and the second port is the primary port;
    所述第二确定模块,设置为根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。The second determining module is configured to determine the reference clock of the current remote machine according to the signal received from the target loop by the slave port of the current remote machine.
  8. 一种参考时钟的确定系统,包括:近端机以及多个远端机,其中,所述多个远端机中的每个远端机用于执行以下操作,其中,在所述每个远端机执行以下操作时,将自身确定为当前远端机:A system for determining a reference clock, comprising: a near-end unit and a plurality of remote units, wherein each remote unit in the plurality of remote units is configured to perform the following operations, wherein at each remote unit When the terminal performs the following operations, it determines itself as the current remote:
    获取所述当前远端机的第一端口从目标环路上接收到的第一信号,以及所述当前远端机的第二端口从所述目标环路上接收到的第二信号,其中,所述目标环路包括:由所述近端机以及所述多个远端机组成的环路;Obtain the first signal received from the target loop by the first port of the current remote terminal, and the second signal received from the target loop by the second port of the current remote terminal, wherein the The target loop includes: a loop composed of the near-end machine and the plurality of remote machines;
    根据所述第一信号以及所述第二信号,确定所述当前远端机的所述第一端口和所述第二端口中的一个端口为从端口,以及所述第一端口和所述第二端口中的另一个端口为主端口;According to the first signal and the second signal, it is determined that one of the first port and the second port of the current remote unit is a slave port, and the first port and the second port are The other port of the two ports is the primary port;
    根据所述当前远端机的从端口从所述目标环路中接收到的信号,确定所述当前远端机的参考时钟。The reference clock of the current remote terminal is determined according to the signal received from the target loop by the slave port of the current remote terminal.
  9. 一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至6任一项中所述的方法。A storage medium in which a computer program is stored, wherein the computer program is configured to execute the method of any one of claims 1 to 6 when run.
  10. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所述权利要求1至6任一项中所述的方法。An electronic device comprising a memory and a processor, the memory having a computer program stored therein, the processor being arranged to perform the method of any one of claims 1 to 6 by the computer program.
PCT/CN2021/077118 2020-09-23 2021-02-20 Reference clock determination method and apparatus, and system, storage medium and electronic apparatus WO2022062308A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011006095.XA CN111934841B (en) 2020-09-23 2020-09-23 Method and device for determining reference clock, system, storage medium and electronic device
CN202011006095.X 2020-09-23

Publications (1)

Publication Number Publication Date
WO2022062308A1 true WO2022062308A1 (en) 2022-03-31

Family

ID=73335064

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/077118 WO2022062308A1 (en) 2020-09-23 2021-02-20 Reference clock determination method and apparatus, and system, storage medium and electronic apparatus

Country Status (2)

Country Link
CN (1) CN111934841B (en)
WO (1) WO2022062308A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111934841B (en) * 2020-09-23 2021-01-22 三维通信股份有限公司 Method and device for determining reference clock, system, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022645A (en) * 2007-03-28 2007-08-22 中兴通讯股份有限公司 Master-slave relation deterministic method for far-end radio frequency unit in wireless communication system
US20080170594A1 (en) * 2005-08-24 2008-07-17 Huawei Technologies Co., Ltd. System and method for realizing network synchronization by packet network
CN101969346A (en) * 2010-10-26 2011-02-09 三维通信股份有限公司 Digital optical repeater with loop protection and implementation method
CN201839288U (en) * 2010-10-26 2011-05-18 三维通信股份有限公司 Digital optical fiber repeater with loop protection
CN102523146A (en) * 2011-11-21 2012-06-27 天津中兴软件有限责任公司 Method for networking ultrahigh frequency readers
CN111934841A (en) * 2020-09-23 2020-11-13 三维通信股份有限公司 Method and device for determining reference clock, system, storage medium and electronic device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902281B (en) * 2010-07-07 2014-05-14 奥维通信股份有限公司 Digital optical fiber repeater system with self-healing annular networking function and data communication method thereof
US9529775B2 (en) * 2013-10-30 2016-12-27 Futurewei Technologies, Inc. Network topology of hierarchical ring with gray code and binary code
CN106067848A (en) * 2016-07-25 2016-11-02 易事特集团股份有限公司 Microgrid inverter phase-shifting carrier wave synchronizes system and phase-shifting carrier wave synchronous method
CN107846246B (en) * 2017-10-27 2024-04-05 厦门信同信息技术有限公司 Networking system of optical fiber repeater and synchronization method thereof
CN107911274A (en) * 2017-12-29 2018-04-13 苏州联视泰电子信息技术有限公司 A kind of loop self-organizing method based on Ethernet switching chip
CN110324166B (en) * 2018-03-31 2020-12-15 华为技术有限公司 Method, device and system for synchronizing target information in multiple nodes
CN108616426B (en) * 2018-05-10 2020-04-10 瑞斯康达科技发展股份有限公司 Ring network and service data forwarding method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080170594A1 (en) * 2005-08-24 2008-07-17 Huawei Technologies Co., Ltd. System and method for realizing network synchronization by packet network
CN101022645A (en) * 2007-03-28 2007-08-22 中兴通讯股份有限公司 Master-slave relation deterministic method for far-end radio frequency unit in wireless communication system
CN101969346A (en) * 2010-10-26 2011-02-09 三维通信股份有限公司 Digital optical repeater with loop protection and implementation method
CN201839288U (en) * 2010-10-26 2011-05-18 三维通信股份有限公司 Digital optical fiber repeater with loop protection
CN102523146A (en) * 2011-11-21 2012-06-27 天津中兴软件有限责任公司 Method for networking ultrahigh frequency readers
CN111934841A (en) * 2020-09-23 2020-11-13 三维通信股份有限公司 Method and device for determining reference clock, system, storage medium and electronic device

Also Published As

Publication number Publication date
CN111934841A (en) 2020-11-13
CN111934841B (en) 2021-01-22

Similar Documents

Publication Publication Date Title
USRE49070E1 (en) End-to-end delay management for distributed communications networks
KR101375822B1 (en) Convergent network topology discovery and mapping
CN101189837B (en) Packet ring network system, packet transfer method, and node
CN102612166B (en) Data processing method, base station system and associated equipment
CN108768507B (en) Link switching method and system for RRU (radio remote unit) ring network
US10554230B2 (en) Signal transmission method in radio frequency network, radio frequency system, and detection device
WO2022062308A1 (en) Reference clock determination method and apparatus, and system, storage medium and electronic apparatus
US20220201796A1 (en) Communication apparatus, controller, system, and method
US11451449B1 (en) Configuration of EVPN topologies using a user interface
US20160021668A1 (en) Data distribution system, distribution device, terminal device, and data distribution method
JP2016005215A (en) Repeating device, repeating method, and computer program
CN101743723A (en) System and method for an adaptive access point mode
US20190237881A1 (en) Radio frequency system
US11349802B2 (en) Device and method for setting transmission rules of data packet in software defined network
KR20240052848A (en) Method and communication device for obtaining (or providing) clock synchronization information
CN114401324B (en) Message forwarding method, network equipment and system
CN115334174A (en) Multichannel matching method and communication method based on Subset-037 protocol
KR101648458B1 (en) Method for controlling remote wireless lan using data packet length in wireless lan
CN113660734B (en) Connection method and device of network equipment, network equipment and medium
US20190246331A1 (en) Management apparatus, communication system, and method therefor
KR20190069722A (en) Ring network communication method for real time fault processing and restore connection between smart devices and system of the same
KR102274562B1 (en) Ad-hoc network system and reference node based intergroup synchronization method
CN115694564B (en) Bluetooth system, method for processing Bluetooth signals, chip and electronic equipment
CN110581745B (en) Method and device for correcting time synchronization and frequency deviation of communication node
CN113785537B (en) Copper backhaul for hybrid fiber coaxial networks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21870698

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21870698

Country of ref document: EP

Kind code of ref document: A1