Time distribution method and device for multi-tenant computer room, clock synchronization system

By using the multi-port parallel processing architecture of the tower-side gateway, time synchronization messages and link delay measurement commands are sent to the tenant nest, and the link delay is calculated and compensated. This solves the problems of low time synchronization accuracy and radio frequency interference in multi-tenant nests, and achieves nanosecond-level high-precision clock synchronization.

CN123184776APending Publication Date: 2026-11-27CHINA TOWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611541313.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In multi-tenant nesting scenarios, existing technologies suffer from problems such as GNSS antenna resource redundancy, radio frequency interference, and time synchronization accuracy being affected by the discreteness of physical links, making it difficult to meet the requirements for nanosecond-level high-precision synchronization.

Method used

Through multiple independent ports configured inside the tower-side gateway, time synchronization messages and link delay measurement commands are sent to the tenant's nest. The message time is recorded, the link transmission delay value is calculated, and a time synchronization message carrying a correction value is generated. The tenant's nest performs local clock compensation adjustment based on the corrected timestamp information.

Benefits of technology

It eliminates the difference in physical link transmission delay without requiring each nest to be configured with GNSS hardware independently, achieving nanosecond-level time synchronization accuracy, reducing deployment costs and eliminating radio frequency interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184776A_ABST
    Figure CN123184776A_ABST
Patent Text Reader

Abstract

The application discloses a time distribution method and device for multi-tenant machine nests, and a clock synchronization system, relates to the technical field of time synchronization or other related fields, wherein the clock synchronization system comprises a tower side gateway and N tenant machine nests, N is a positive integer, and the method comprises the following steps: sending time synchronization messages and link delay measurement instructions to the N tenant machine nests through N target independent ports and recording sending time, receiving a link delay measurement response message and recording a first receiving time, then determining a link transmission delay value, then determining a correction value of timestamp information, and sending the time synchronization message carrying the correction value to the tenant machine nests again; and the tenant machine nests adjust the local clock of the machine nest according to the corrected timestamp information to realize clock synchronization. The application solves the technical problem that multiple GNSS time service devices independently deployed in the related art multi-tenant machine nests lack a unified time distribution architecture and a link delay compensation mechanism, resulting in low time synchronization precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of time synchronization technology, and more specifically, to a time distribution method and apparatus for multi-tenant nests, and a clock synchronization system. Background Technology

[0002] In multi-tenant nest-sharing tower scenarios, existing technologies typically employ a "one nest, one clock" model where each nest independently deploys its own GNSS timing antenna. This distributed architecture not only results in severe redundancy of hardware resources such as GNSS antennas, receiver modules, and high-stability crystal oscillators, increasing deployment costs, but also, due to the close-range co-location of multiple antennas within the limited tower top space, it is highly prone to near-field coupling and radio frequency interference, significantly reducing the GNSS reception signal quality of each nest and creating a technical dilemma of "the more antennas, the worse the signal."

[0003] Furthermore, existing solutions lack a centralized time distribution architecture for multi-tenants. When the tower-side gateway distributes time to each nest via Ethernet cables of different lengths, the transmission delay caused by the cable length difference (usually between 50 and 750 nanoseconds) fluctuates significantly. Moreover, existing technologies cannot automatically detect and compensate for the inherent transmission delay differences of each link caused by changes in cable medium, length, and ambient temperature. As a result, the time synchronization accuracy is severely affected by the discreteness of physical links, making it difficult to meet the nanosecond-level high-precision time synchronization requirements of core functions such as UAV sensor data fusion and take-off and landing coordinated scheduling.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This invention provides a time distribution method and apparatus for multi-tenant nests, as well as a clock synchronization system, to at least solve the technical problem in related technologies where multiple GNSS timing devices deployed independently in multi-tenant nests lack a unified time distribution architecture and link delay compensation mechanism, resulting in low time synchronization accuracy.

[0006] According to one aspect of the present invention, a time distribution method for multi-tenant nests is provided, comprising: sending time synchronization messages and link delay measurement instructions to N tenant nests respectively through N target independent ports configured inside a tower-side gateway, and recording the transmission time of each message, wherein each target independent port corresponds to one tenant nest; for each target independent port, receiving a link delay measurement response message returned by the corresponding tenant nest and recording a first reception time, wherein the link delay measurement response message carries a second reception time and a transmission reply time recorded by the tenant nest; determining a link transmission delay value corresponding to the target independent port based on the transmission delay value corresponding to each target independent port; determining a correction value for the timestamp information in the time synchronization message sent to the corresponding tenant nest based on the link transmission delay value corresponding to each target independent port, and sending a time synchronization message carrying the correction value to the corresponding tenant nest; receiving the time synchronization message carrying the correction value through the tenant nest, and compensating and adjusting the nest's local clock according to the corrected timestamp information to achieve clock synchronization.

[0007] Further, the step of determining the link transmission delay value corresponding to the target independent port based on the transmission time, the first reception time, the second reception time, and the transmission reply time includes: obtaining the current ambient temperature through a pre-deployed temperature sensor, wherein the temperature sensor is deployed inside the tower-side gateway or at a designated location on the cable of the target independent port; calculating a temperature compensation value based on a preset cable transmission delay temperature coefficient, the target cable length, the current ambient temperature, and a calibration temperature, wherein the calibration temperature refers to a pre-set reference temperature baseline value; calculating a basic transmission delay value based on the transmission time, the first reception time, the second reception time, and the transmission reply time; and superimposing the temperature compensation value with the basic transmission delay value to obtain the link transmission delay value corresponding to the target independent port.

[0008] Further, the step of determining the correction value of the timestamp information in the time synchronization message sent to the corresponding tenant nest based on the link transmission delay value corresponding to each target independent port includes: obtaining the absolute time value of the tower-side gateway system clock; and performing a reverse compensation operation on the absolute time value using the link transmission delay value to obtain the correction value of the timestamp information.

[0009] Further, the step of compensating and adjusting the local clock of the equipment nest based on the corrected timestamp information to achieve clock synchronization includes: for each tenant equipment nest, the tenant equipment nest records the second reception time of receiving the time synchronization message carrying the corrected value; based on the timestamp information corrected according to the corrected value, the second reception time, and the estimated reverse link delay from the tenant equipment nest to the tower-side gateway, the phase deviation value between the local clock of the equipment nest and the system clock of the tower-side gateway is calculated; the phase deviation value is filtered using a proportional-integral controller, and a frequency correction command is generated based on the filtered phase deviation value; the oscillation frequency of the local clock of the equipment nest is adjusted according to the frequency correction command, so that the phase of the local clock of the equipment nest gradually converges to the phase of the system clock of the tower-side gateway.

[0010] Furthermore, after clock synchronization is achieved, the time distribution method for multi-tenant nests further includes: the tower-side gateway periodically collecting time synchronization quality indicators for each target independent port, wherein the time synchronization quality indicators include: time deviation statistics, average path delay jitter, and synchronization interruption event counts for each target independent port; and reporting the time synchronization quality indicators to the tower operation platform through an encrypted communication channel, wherein the tower operation platform, upon receiving the time synchronization quality indicators, detects the time synchronization quality indicators according to a preset service level agreement threshold, and generates a service quality violation alarm record if the time synchronization quality indicators are detected to be lower than the preset service level agreement threshold.

[0011] Furthermore, the tower-side gateway configures an independent protocol processing thread for each of the target independent ports, and each target independent port independently maintains the link delay measurement state machine, the synchronization message sending period, and the target master clock algorithm parameters.

[0012] Furthermore, the step of sending time synchronization messages and link delay measurement instructions to N tenant nests through N target independent ports configured inside the tower-side gateway includes: for each target independent port, obtaining the tenant identifier and service level information bound to the target independent port, wherein the service level information is used to indicate the time synchronization accuracy commitment level required by the tenant nest corresponding to the target independent port, and the correction value generation logic in the time synchronization message matches the time synchronization accuracy commitment level; writing the tenant identifier and the service level information into the extended field of the time synchronization message; and sending the time synchronization message and link delay measurement instructions to the corresponding tenant nest through the protocol processing thread corresponding to the target independent port.

[0013] According to another aspect of the present invention, a clock synchronization system is also provided for executing the time distribution method for multi-tenant nests described in any one of the above embodiments. The clock synchronization system includes: a tower-side gateway containing N target independent ports, where N is a positive integer, wherein each target independent port is connected to a tenant nest via a cable, the tower-side gateway is configured to: control each target independent port to send a time synchronization message and a link delay measurement command, receive a link delay measurement response message, calculate a link transmission delay value, generate a time synchronization message carrying a correction value, and send the time synchronization message to the corresponding tenant nest; N tenant nests are deployed at designated locations on the target tower, the tenant nests are connected to the tower-side gateway via cables, and the tenant nests are configured to: receive the time synchronization message carrying the correction value, and compensate and adjust the nest's local clock according to the corrected timestamp information to achieve clock synchronization.

[0014] Furthermore, each tenant nest operates a nest-local clock. The tenant nest includes a receiving module, a deviation calculation module, and a frequency adjustment module. The receiving module is configured to record the second reception time of receiving a time synchronization message carrying the correction value. The deviation calculation module is configured to calculate the phase deviation between the nest-local clock and the tower-side gateway system clock based on the corrected timestamp information, the second reception time, and the estimated reverse link delay from the tenant nest to the tower-side gateway. The estimated reverse link delay is equal to the link transmission delay value corresponding to the target independent port. The frequency adjustment module is configured to filter the phase deviation value using a proportional-integral controller, generate a frequency correction command, and adjust the oscillation frequency of the nest-local clock according to the frequency correction command, so that the phase of the nest-local clock gradually converges to the phase of the tower-side gateway system clock.

[0015] Furthermore, the tower-side gateway maintains a tower-side gateway system clock. The tower-side gateway includes a temperature acquisition module, a delay determination module, and a message generation module. The temperature acquisition module is configured to acquire the current ambient temperature using a pre-deployed temperature sensor, wherein the temperature sensor is deployed at a designated location inside the tower-side gateway or on the cable of the target independent port. The delay determination module is configured to acquire the second reception time and the transmission reply time carried in the link delay measurement response message; and calculate a temperature compensation value based on a preset cable transmission delay temperature coefficient, the target cable length, the current ambient temperature, and a calibration temperature. The calibration temperature refers to a pre-set reference temperature baseline value; a basic transmission delay value is calculated based on the sending time, the first receiving time, the second receiving time, and the sending reply time; the temperature compensation value is superimposed on the basic transmission delay value to obtain the link transmission delay value corresponding to the target independent port; the message generation module is configured to: obtain the absolute time value of the tower-side gateway system clock, perform inverse compensation calculation on the absolute time value using the link transmission delay value to obtain a timestamp correction value, and fill the correction value into the time synchronization message to generate a time synchronization message carrying the correction value.

[0016] According to another aspect of the present invention, a time distribution device for multi-tenant equipment nests is also provided, configured in a clock synchronization system, wherein the clock synchronization system includes: a tower-side gateway deployed on a target tower and N tenant equipment nests, wherein N is a positive integer, and the time distribution device for multi-tenant equipment nests includes: a sending unit, configured to send time synchronization messages and link delay measurement instructions to the N tenant equipment nests respectively through N target independent ports configured inside the tower-side gateway, and record the sending time of each message, wherein each target independent port corresponds to one tenant equipment nest; a receiving unit, configured to receive, for each target independent port, a link delay measurement response message returned by the corresponding tenant equipment nest and record a first receiving time, wherein the... The link delay measurement response message carries the second receiving time and sending reply time recorded by the tenant nest; a first determining unit is used to determine the link transmission delay value corresponding to the target independent port based on the sending time, the first receiving time, the second receiving time, and the sending reply time; a second determining unit is used to determine the correction value of the timestamp information in the time synchronization message sent to the corresponding tenant nest based on the link transmission delay value corresponding to each target independent port, and send the time synchronization message carrying the correction value to the corresponding tenant nest; a compensation unit is used to receive the time synchronization message carrying the correction value through the tenant nest, and compensate and adjust the nest local clock according to the corrected timestamp information to achieve clock synchronization.

[0017] Further, the first determining unit includes: a first acquisition module, used to acquire the current ambient temperature through a pre-deployed temperature sensor, wherein the temperature sensor is deployed at a designated location inside the tower-side gateway or on the cable of the target independent port; a first calculation module, used to calculate a temperature compensation value based on a preset cable transmission delay temperature coefficient, the target cable length, the current ambient temperature, and a calibration temperature, wherein the calibration temperature refers to a pre-set reference temperature baseline value; a second calculation module, used to calculate a basic transmission delay value based on the sending time, the first receiving time, the second receiving time, and the sending reply time; and an overlay module, used to overlay the temperature compensation value with the basic transmission delay value to obtain the link transmission delay value corresponding to the target independent port.

[0018] Further, the second determining unit includes: a second acquisition module, used to acquire the absolute time value of the tower-side gateway system clock; and a calculation module, used to perform a reverse compensation calculation on the absolute time value using the link transmission delay value to obtain the correction value for the timestamp information.

[0019] Further, the compensation unit includes: a receiving module, configured to, for each tenant nest, record the second receiving time of receiving a time synchronization message carrying the correction value; a third calculation module, configured to calculate the phase deviation value between the nest local clock and the tower-side gateway system clock based on the timestamp information corrected according to the correction value, the second receiving time, and the estimated reverse link delay from the tenant nest to the tower-side gateway; a generation module, configured to filter the phase deviation value using a proportional-integral controller and generate a frequency correction command based on the filtered phase deviation value; and an adjustment module, configured to adjust the oscillation frequency of the nest local clock according to the frequency correction command, so that the phase of the nest local clock gradually converges to the phase of the tower-side gateway system clock.

[0020] Furthermore, the time distribution device for multi-tenant server nests further includes: a data acquisition module, used to periodically collect time synchronization quality indicators for each target independent port by the tower-side gateway after clock synchronization is achieved, wherein the time synchronization quality indicators include: time deviation statistics, average path delay jitter, and synchronization interruption event counts for each target independent port; and a reporting module, used to report the time synchronization quality indicators to the tower operation platform through an encrypted communication channel, wherein the tower operation platform, upon receiving the time synchronization quality indicators, detects the time synchronization quality indicators according to a preset service level agreement threshold, and generates a service quality violation alarm record if the time synchronization quality indicators are detected to be lower than the preset service level agreement threshold.

[0021] Furthermore, the tower-side gateway configures an independent protocol processing thread for each of the target independent ports, and each target independent port independently maintains the link delay measurement state machine, the synchronization message sending period, and the target master clock algorithm parameters.

[0022] Further, the sending unit includes: a third acquisition module, configured to acquire, for each target independent port, the tenant identifier and service level information bound to that target independent port, wherein the service level information is used to indicate the time synchronization accuracy commitment level required by the tenant nest corresponding to the target independent port, and the correction value generation logic in the time synchronization message matches the time synchronization accuracy commitment level; a writing module, configured to write the tenant identifier and the service level information into the extended field of the time synchronization message; and a sending module, configured to send the time synchronization message and link delay measurement command to the corresponding tenant nest through the protocol processing thread corresponding to the target independent port.

[0023] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the time-distribution method for multi-tenant nests described above.

[0024] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the time-distribution method for multi-tenant nests as described above.

[0025] According to another aspect of the present invention, a computer program product is also provided, including computer instructions, wherein when the computer instructions are executed by a processor, they implement the steps of the time-distribution method for multi-tenant nests described in any of the preceding embodiments.

[0026] This invention proposes a time distribution method for multi-tenant nests. First, time synchronization messages and link delay measurement commands are sent to N tenant nests via N target independent ports configured within the tower-side gateway, and the sending time of each message is recorded. Each target independent port corresponds to one tenant nest, and N is a positive integer. Then, for each target independent port, a link delay measurement response message returned by the corresponding tenant nest is received, and the first reception time is recorded. This response message carries the second reception time and the sending reply time recorded by the tenant nest. Next, based on the sending time, the first reception time, the second reception time, and the sending reply time, the link transmission delay value corresponding to the target independent port is determined. Then, based on the link transmission delay value corresponding to each target independent port, a correction value for the timestamp information in the time synchronization message sent to the corresponding tenant nest is determined, and the time synchronization message carrying the correction value is sent to the corresponding tenant nest. Finally, the tenant nest receives the time synchronization message carrying the correction value and adjusts the nest's local clock according to the corrected timestamp information to achieve clock synchronization.

[0027] This invention employs a time distribution architecture based on multi-port parallel independent processing. Through N independent target ports configured within the tower-side gateway, time synchronization messages and link delay measurement commands are concurrently sent to the corresponding N tenant nests, with the transmission time of each message precisely recorded. Then, the link delay measurement response messages returned by each nest are received, and the first reception time is recorded. The link delay measurement response messages carry the second reception time and the transmission reply time recorded by the tenant nest. Using the transmission time, the first reception time, the second reception time, and the transmission reply time, the link transmission delay value corresponding to each target port is independently calculated, thereby generating a time distribution method for the corresponding link transmission time. The timestamp correction value is used to send a time synchronization message carrying the correction value to the corresponding nest. Finally, the tenant nest adjusts the phase of its local clock based on the corrected timestamp information to achieve high-precision synchronization. This eliminates the difference in physical link transmission delay and achieves precise phase alignment between the clocks of each nest and the tower-side gateway. As a result, it achieves nanosecond-level time synchronization through a standardized Ethernet link without requiring each nest to be configured with GNSS timing hardware independently. This solves the technical problem of low time synchronization accuracy caused by the lack of a unified time distribution architecture and link delay compensation mechanism for multiple GNSS timing devices independently deployed in multi-tenant nests. Attached Figure Description

[0028] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0029] Figure 1 This is an architecture diagram of an optional tower-side edge time base unified distribution system for multi-tenant nests according to an embodiment of the present invention;

[0030] Figure 2 This is a flowchart of an optional time-distribution method for multi-tenant nests according to an embodiment of the present invention;

[0031] Figure 3 This is a schematic diagram of the structural components of an optional clock synchronization system according to an embodiment of the present invention;

[0032] Figure 4 This is a schematic diagram of an optional time distribution device for multi-tenant nests according to an embodiment of the present invention;

[0033] Figure 5 This is a structural block diagram of an electronic device for performing a time-distribution method for multi-tenant nests according to an embodiment of the present invention. Detailed Implementation

[0034] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0035] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0036] To facilitate understanding of the present invention by those skilled in the art, some terms or nouns involved in the various embodiments of the present invention are explained below:

[0037] GNSS, Global Navigation Satellite System. In this invention, it specifically refers to a satellite navigation signal source that provides high-precision time reference and position information.

[0038] g PTP / IEEE 802.1AS, Generalized Precision Time Protocol. A network time synchronization protocol based on the IEEE 1588 standard, mainly used for achieving nanosecond or even sub-nanosecond clock synchronization within a local area network, supporting automatic measurement of link delay (Pdelay mechanism).

[0039] PTP / IEEE 1588, Precision Time Protocol. A standard for synchronizing clocks in computer networks; in this invention, it primarily refers to its role as the basis or alternative protocol to gPTP.

[0040] OCXO, Oven-Controlled Crystal Oscillator, is a high-precision clock source hardware with high frequency stability and low phase noise. It is typically used in standalone GNSS receivers to maintain time accuracy for short periods when satellite signals are lost.

[0041] STI, Standard Time Input, refers specifically to the standardized physical interface (such as an RJ45 Ethernet port) and its corresponding logical protocol stack on the tenant's equipment nest used to receive time signals distributed by the tower-side gateway.

[0042] MTDE, Multi-Port Time Distribution Engine, is a hardware module deployed inside the tower-side gateway. It contains multiple independent Ethernet ports, each running an independent gPTP / PTP master clock protocol stack. While sharing the same system master clock phase, each port independently performs link delay measurement and synchronization message distribution.

[0043] TaaS, Time-as-a-Service, is a standardized network service that transforms high-precision time synchronization capabilities from a built-in function of the tower nest into a quantifiable, tiered, and billable service provided externally by the tower-side gateway.

[0044] SLA, Service Level Agreement. In this invention, it refers to the quality of service indicators for time synchronization promised by the tower-side gateway to the tenant's equipment room, including quantitative parameters such as accuracy (e.g., ±100 ns), jitter (e.g., ≤50 ns), and availability (e.g., 99.9%).

[0045] The following embodiments of the present invention can be applied to various systems / applications / equipment that require high-precision time synchronization of multi-tenant UAV nests and optimized utilization of low-altitude economic infrastructure resources. They enable a centralized time reference distribution system based on tower-side edge computing and a multi-port gPTP protocol stack. The present invention uses a multi-port time distribution engine (MTDE) within the tower-side gateway to perform parallel time synchronization and link delay measurement on N tenant nests. Then, it independently calculates the transmission delay of each Ethernet link and generates a timestamp correction value, which is then sent to the corresponding nest. This better eliminates link delay uncertainties caused by differences in cable length and environmental factors. It achieves nanosecond-level clock synchronization accuracy without requiring each nest to independently deploy GNSS antennas and high-stability crystal oscillators, significantly reducing deployment costs and eliminating radio frequency interference at the tower top.

[0046] The present invention will now be described in detail with reference to various embodiments.

[0047] Example 1

[0048] According to an embodiment of the present invention, a time distribution method for multi-tenant nests is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0049] The implementation subject of this invention can be a tower-side edge time reference unified distribution system for multi-tenant drone nests (or the clock synchronization system proposed in this invention). It combines multi-port gPTP / IEEE 1588v2 time synchronization protocol, independent link delay automatic measurement (Pdelay), and timestamp dynamic correction technology for collaborative operation scenarios of multi-tenant drone nests in low-altitude economic infrastructure. In particular, it solves the technical problems of radio frequency interference, hardware resource redundancy, and low time synchronization accuracy caused by differences in physical link lengths in the existing "one nest, one clock" independent timing mode. It uses a tower-side gateway to centrally generate a highly reliable master clock and distribute it in parallel through N independent ports. Each port independently measures the link delay and calculates the correction value. The nest compensates for the local clock based on the correction value. Specifically, it includes the steps of the tower-side gateway sending synchronization messages and delay measurement instructions through independent ports, recording the transmission and reception times to calculate the transmission delay of each link, generating and sending time synchronization messages carrying correction values, and tenant nests receiving messages and adjusting their local clocks according to the corrected timestamps. This achieves the purpose of eliminating the impact of link delay differences, achieving nanosecond-level high-precision clock synchronization, and supporting multi-tenant sharing of infrastructure resources.

[0050] Figure 1This is an architecture diagram of an optional tower-side edge time base unified distribution system for multi-tenant nests according to an embodiment of the present invention, such as... Figure 1 As shown, the system consists of the following hardware:

[0051] Multi-Port Time Distribution Engine (MTDE): A hardware module deployed in the tower-side gateway (sharing the same control platform as the clock engine), containing at least eight downlink Gigabit / 100Mbps industrial Ethernet RJ45 ports. Each port independently implements a complete IEEE 802.1AS-2020 (gPTP) or IEEE 1588v2 (PTPv2) master clock protocol stack at the hardware level. All ports share the same system master clock phase synthesized by the clock engine, but each port is completely independent in the following functions: independently running gPTP Announce message transmission and BMCA (Best Master Clock Algorithm) announcement; independently running Pdelay link delay measurement (Pdelay_Req / Resp / Resp_Follow_Up complete handshake process); independently running Sync / Follow_Up clock synchronization message transmission and slave clock clock offset calculation; independently managing the gPTP domain parameters of each port (Domain Number, Priority1 / Priority2, Announce / Sync / Pdelay period, etc.); and independently reporting the slave clock time offset (OffsetFrom master clock), mean path delay, and clock quality level (clockClass / clockAccuracy) of each port.

[0052] Standardized Time Distribution Network: Using CAT5e / CAT6 industrial Ethernet copper cable (or single-mode fiber) as the physical medium, the network connects to the Standard Time Input (STI) interface of each tenant's nest in a star topology from each downlink port of the MTDE. The STI can be defined as a standard RJ45 Ethernet port. The edge computing motherboard or flight control gateway inside the nest operates as a gPTP slave clock or a 1588v2 slave clock through this port, obtaining absolute time with nanosecond accuracy from the tower-side gateway. No GNSS antennas, timing modules, or local OCXOs are required in each nest.

[0053] The Time Quality Telemetry and Management submodule provides a northbound configuration interface based on NETCONF / YANG (RFC 6241 / 7950) and a real-time telemetry data reporting channel based on MQTT+Protobuf / JSON. It reports the time synchronization quality indicators of each port to the tower operation platform via encrypted transmission. Key telemetry indicators include: the current time deviation value (offsetFrom master clock, in ns) of each port, reflecting the instantaneous phase error between the slave clock and the GM clock; the current average path delay value (meanPathDelay, in ns) of each port, reflecting changes in cable length and temperature drift; the current clock quality level (clockClass, clockAccuracy) of each port, graded according to the IEEE 1588-2008 definition; the Allan variance curve of the time deviation for each port over the past 24 hours, reflecting long-term stability; and the count and duration of synchronization interruption events for each port.

[0054] The embodiments of the present invention will now be described in detail with reference to the specific implementation steps.

[0055] Figure 2 This is a flowchart of an optional time-distribution method for multi-tenant nests according to an embodiment of the present invention, such as... Figure 2 As shown, the method includes the following steps:

[0056] Step S201: Through the N target independent ports configured inside the tower-side gateway, time synchronization messages and link delay measurement instructions are sent to N tenant nests respectively, and the sending time of each message is recorded. Each target independent port corresponds to one tenant nest.

[0057] It should be noted that the tower-side gateway is an edge computing device deployed inside or at the base of a communication tower. Its core functional modules include a clock engine (i.e., the tower-side gateway system clock) and a multi-port time distribution engine (MTDE). The clock engine generates a highly reliable and stable system-level master clock phase (GM clock) through dual-source heterogeneous fusion and anti-spoofing verification technology. This clock is the sole reference source for the entire tower-side time distribution. The MTDE, deployed inside the gateway, is responsible for receiving the master clock phase output by the clock engine and distributing it concurrently through multiple downlink Ethernet ports. In addition to time distribution, the gateway also integrates a time quality telemetry and management submodule to monitor the synchronization status of each port.

[0058] A target independent port refers to a specific physical and logical channel within the Multi-Port Time Distribution Engine (MTDE), such as an RJ45 Ethernet interface. Furthermore, the tower-side gateway configures an independent protocol processing thread for each target independent port. Each target independent port independently maintains its link delay measurement state machine, synchronization message sending cycle, and target master clock algorithm parameters. That is, each target independent port is independent at the hardware and protocol stack levels, possessing complete IEEE 802.1AS-2020 (gPTP) or IEEE 1588v2 master clock functionality. Each port independently runs its clock synchronization protocol stack, including independently sending Announce messages, independently performing Pdelay link delay measurements, and independently calculating and sending Sync / Follow_Up synchronization messages. All ports share the same system master clock phase, but when processing synchronization requests from different tenant nests, they operate independently without interference. The number of ports, N, is a positive integer, typically at least 8, to support simultaneous access from multiple tenant nests, and port configurations can independently set domain parameters (such as Domain Number, Priority, etc.).

[0059] Another point to clarify is that tenant nests refer to drone landing pads and supporting facilities deployed at different heights or locations (such as the top, body, and base) of communication towers, leased by different third-party operators. In the scenario of this invention, tenant nests can be designed as lightweight devices, meaning they do not contain independent GNSS timing antennas, GNSS receiver modules, or local high-stability crystal oscillators (OCXOs). Each nest is equipped with a Standardized Time Input Interface (STI), typically a standard RJ45 Ethernet port, used to receive time synchronization signals from the tower-side gateway. The nest's internal edge computing motherboard or flight control gateway runs a gPTP slave clock or PTP slave clock protocol stack, responsible for parsing the received time messages and calibrating the local clock.

[0060] Time synchronization messages are standard protocol messages used to transmit clock phase information to achieve time synchronization. They mainly include Sync messages and Follow_Up messages. Sync messages are periodically sent by the master clock (tower-side gateway port), carrying the current master clock's transmission time information. Follow_Up messages are sent immediately after Sync messages, carrying a more precise hardware timestamp (t5, i.e., the transmission time) to address the latency uncertainty caused by message store-and-forwarding in the switch. In addition, there are Announce messages used to announce the master clock's identity and priority. These messages are transmitted over the Ethernet physical medium and are the basis for calculating the time offset from the slave clock in the cell.

[0061] Link delay measurement commands refer to control messages in the gPTP / PTP protocol used to accurately measure the transmission delay of the physical link between the master and slave clocks. Specifically, they include Pdelay_Req (Peer Delay Request), Pdelay_Resp (Peer Delay Response), and Pdelay_Resp_Follow_Up messages. In step S201, the target independent port of the tower-side gateway periodically sends a Pdelay_Req command to the corresponding tenant nest. This command triggers the nest to record the reception time (t2, i.e., the second reception time recorded later) and reply with Pdelay_Resp, thereby initiating the bidirectional delay measurement process. This aims to accurately obtain the unidirectional transmission time of the signal in the Ethernet cable, providing data support for subsequent timestamp correction.

[0062] Correspondingly, the transmission time refers to the precise point in time when the master clock (tower-side gateway port) hardware timestamps the transmitted time synchronization message or link delay measurement command. For Sync messages, the transmission time is recorded as t5 (i.e., the hardware timestamp); for Pdelay_Req messages, the transmission time is recorded as t1. These times are directly captured by the gateway port hardware, have nanosecond-level resolution, and are key reference points for calculating link delay and clock skew. Accurately recording the transmission time avoids errors caused by software processing delays, thereby ensuring high accuracy in time synchronization.

[0063] The above steps address the technical challenge in multi-tenant cluster scenarios where the lack of a unified time distribution architecture and automatic link delay compensation mechanism significantly impacts time synchronization accuracy due to variations in physical links. Specifically, a high-precision master clock is centrally provided by the tower-side gateway. Synchronization messages are distributed to each cluster via independent ports, and link delay measurements are proactively initiated. This establishes a precise time correlation between the master and slave clocks, laying the foundation for eliminating transmission delay differences between clusters caused by variations in cable length, medium, and temperature. Ultimately, this achieves the goal of obtaining nanosecond-level high-precision time synchronization without requiring independent GNSS hardware configuration for each cluster.

[0064] Another point to note is that the tower-side gateway configures an independent protocol processing thread for each target independent port. That is, at the software architecture level, each Ethernet port corresponds to an independent logical processing unit, and the threads do not block each other, enabling parallel processing of their respective connected tenant nest time synchronization tasks. Each target independent port independently maintains a link delay measurement state machine, which is specifically responsible for managing the Pdelay (peer-to-peer delay) measurement process in the IEEE 802.1AS-2020 (gPTP) or IEEE 1588v2 protocol. This includes periodically sending Pdelay_Req messages, waiting for and processing Pdelay_Resp messages, and sending Pdelay_Resp_Follow_Up messages, thereby ensuring that the delay measurement process of each link is independent, continuous, and unaffected by traffic from other ports. Meanwhile, each port independently maintains a synchronization message sending cycle. This means each port can independently send Sync and Follow_Up messages to its corresponding tenant nest according to its configured Sync message sending interval (e.g., 125 milliseconds by default, or adjusted to other frequencies as needed). Different nests can be configured differently based on their application scenarios and varying time refresh rate requirements. Furthermore, each target independent port independently maintains target master clock algorithm (BMCA) parameters, including key parameters such as Priority1, Priority2, clockClass, clockAccuracy, and offsetScaledLogVariance. These parameters determine the port's clock priority and quality level within the local area network, enabling the tower-side gateway to provide different levels of time service to different tenants. For example, adjusting priority parameters can differentiate between basic, professional, or enterprise-level time service quality.

[0065] In practical implementation, the design of independent threads and state machines enables the tower-side gateway to calculate the time synchronization quality metrics for each port in real time and independently. For example, for each port, the system can calculate the moving average of the time deviation in real time. and standard deviation It is used to define instantaneous time precision and jitter, and can also calculate the Allan variance of time deviation in real time. This is used to define the long-term stability of a clock, reflecting crystal oscillator aging and temperature drift. An example of the calculation formula is as follows:

[0066] ;

[0067] ;

[0068] ;

[0069] Where N is the number of samples within the sliding window (typically 256 Sync cycles), offsetFromMaster is the time deviation of the slave clock relative to the master clock at the current moment (i.e., the deviation between the local clock of the cell and the clock of the tower-side gateway system), and τ is the average time (sampling period). (integer multiples) It is the number of sample segments within the τ time interval. Allan variance. The curves can effectively identify different types of clock noise: white phase noise, white frequency noise, random walk frequency noise, and frequency drift.

[0070] In this embodiment of the invention, the system can also calculate the link stability index, which is the first-order differential sliding standard deviation of the link delay, to define the Pdelay jitter level. An example of the calculation formula is as follows:

[0071] ;

[0072] ;

[0073] in, Abnormal increase (exceeding the preset threshold) (e.g., 10 ns) indicates that a physical-level non-temperature factor change has occurred in the link (e.g., loose cable connectors, micro-bending loss introduced by excessively small fiber bending radius), triggering a physical link anomaly alarm.

[0074] In this embodiment of the invention, the system can also calculate a comprehensive clock health score. (Normalized to the integer range of 0 to 100, with 100 being the preferred value), the calculation formula example is as follows: ;in, , and A configurable deviation tolerance threshold; ; ; According to the clockClass hierarchical mapping defined in IEEE 1588-2008 (clockClass≤6→100 points, 7~52→80 points, 53~128→50 points, clockClass>128→0 points), the weighting coefficients w1~w4 can be configured remotely via NETCONF.

[0075] This invention also enables fine-grained isolation, independent monitoring, and differentiated assurance of time distribution services in multi-tenant environments. Through independent protocol processing threads and state machines, the system ensures that the time synchronization processes of each tenant's nest do not interfere with each other. Even if a link on one port experiences an anomaly or latency fluctuation, it will not affect the normal synchronization service of other ports. This architecture supports independent quantitative assessment of the time service quality of each tenant and SLA (Service Level Agreement) monitoring, providing a solid technical foundation for the subsequent commercial operation of "Time as a Service" (TaaS). This allows tower operators to provide measurable, billable, and guaranteed differentiated time synchronization services based on the actual synchronization quality of each port.

[0076] Furthermore, the step of sending time synchronization messages and link delay measurement instructions to N tenant nests through N target independent ports configured inside the tower-side gateway includes: for each target independent port, obtaining the tenant identifier and service level information bound to the target independent port, wherein the service level information is used to indicate the time synchronization accuracy commitment level required by the tenant nest corresponding to the target independent port, and the correction value generation logic in the time synchronization message matches the time synchronization accuracy commitment level; writing the tenant identifier and service level information into the extended field of the time synchronization message; and sending the time synchronization message and link delay measurement instructions to the corresponding tenant nest through the protocol processing thread corresponding to the target independent port.

[0077] In this embodiment of the invention, the step of sending time synchronization messages and link delay measurement commands to N tenant nests through N target independent ports configured inside the tower-side gateway first involves configuring multi-tenant isolation management for each target independent port. Specifically, the tower-side gateway binds a unique tenant ID and the service level information purchased by that tenant to each port. The service level information directly indicates the time synchronization accuracy commitment level required by the tenant nest, such as Basic, Pro, or Enterprise. Different service levels correspond to different time synchronization accuracy SLA thresholds; for example, Basic corresponds to ±1 ms accuracy, Pro to ±100 ns accuracy, and Enterprise to ±20 ns accuracy. When generating time synchronization messages, the logic for generating correction values ​​matches the promised level of time synchronization accuracy. This means that for service levels requiring higher accuracy, the gateway may provide stricter metrics in the clock quality parameters (such as clockClass, clockAccuracy, and offsetScaledLogVariance) carried in the message, or adopt a more frequent Sync message sending cycle (e.g., adjusting from the default 125ms to a shorter cycle to reduce the accumulation of integral errors) and a more sensitive link delay measurement frequency in subsequent processing. Subsequently, the gateway writes the tenant identifier and service level information into the extended field (TLV field) of the time synchronization message, enabling the tenant nest to perceive its current service level and corresponding quality expectations in real time when receiving the message. Finally, through the independent protocol processing thread corresponding to the target independent port, the time synchronization message carrying specific service level information and correction values, along with the link delay measurement command, is sent to the corresponding tenant nest.

[0078] Alternatively, in another embodiment of the invention, SLA violation detection can be performed in real time based on the message interaction after the service level information is written. Specifically, the time quality telemetry submodule of the tower-side gateway will continuously monitor the synchronization quality indicators of each port, such as the average time deviation. Standard deviation and link latency jitter The comparison is then compared with the preset SLA threshold. If an SLA violation is detected on a port (e.g., accuracy exceeds the promised range for a continuous period), the system will automatically record the violation event and report it to the operations platform via the MQTT channel, triggering an automatic compensation process, such as reducing part of the service fee for the current month. The calculation formula is as follows:

[0079] ;

[0080] in, , The difference between the committed SLA and the actual SLA is dynamically calculated. For example, if a promise of 99.9% is made but the actual measurement is 99.5%, A 4% fee reduction will be applied during the month.

[0081] Additionally, when the cable length exceeds 100 meters, it is recommended to use single-mode fiber optic cable with an optoelectronic conversion module as an alternative physical medium. In this case, the link delay temperature compensation coefficient... The synchronization accuracy will also be adjusted accordingly to the typical value for fiber optic cables (approximately 3.0 ps / ℃ / m), rather than the typical value for copper cables (approximately 5.5 ps / ℃ / m). Furthermore, if the tenant's server room does not support gPTP hardware timestamps, software PTP slave clocks can be used as a fallback. However, in this case, the synchronization accuracy will be affected by operating system scheduling delays and cannot reach nanosecond levels. This is typically only suitable for basic service scenarios with lower time accuracy requirements.

[0082] The above steps enable refined multi-tenant isolation and differentiated SLA guarantees for time synchronization services. By embedding tenant identifiers and service level information into time synchronization messages, the system ensures that different tenants receive time synchronization service quality commensurate with their payment levels. Simultaneously, it provides a data foundation for subsequent automated billing, monitoring, and compensation based on SLA compliance rates. This transforms time synchronization from a purely technical function into a quantifiable, tiered, and commercially viable service product, supporting the implementation of the "Time As a Service" (TaaS) model.

[0083] Step S202: For each target independent port, receive the link delay measurement response message returned by the corresponding tenant nest and record the first reception time. The link delay measurement response message carries the second reception time and the sending reply time recorded by the tenant nest.

[0084] It should be noted that the link delay measurement response message refers to the response data packet returned by the tenant nest after receiving the link delay measurement command (such as Pdelay_Req) ​​sent by the tower-side gateway, in accordance with the IEEE 802.1AS-2020 (gPTP) or IEEE 1588v2 protocol specifications. Specifically, it includes the Pdelay_Resp message and the Pdelay_Resp_Follow_Up message. The Pdelay_Resp message is sent by the tenant nest and carries the precise timestamp recorded by the nest when the device received the request message (i.e., the second reception time t2) and the precise timestamp when the nest itself prepares to send the response message (the third reception time t3, i.e., the time of sending the response). The Pdelay_Resp_Follow_Up message is sent by the tower-side gateway to confirm with the nest the precise timestamp of the gateway receiving the Pdelay_Resp message (i.e., the first reception time t4) and the precise timestamp of initially sending the Pdelay_Req message (i.e., the first sending time t1). These messages form a closed loop of data interaction for bidirectional delay measurement, which is the basis for achieving transparent compensation.

[0085] The first reception time refers to the precise moment recorded by the target independent port hardware timestamp generator of the tower-side gateway when the link delay measurement response message (such as Pdelay_Resp) from the tenant nest is received, which can be denoted as t4. This moment is directly captured by the hardware layer of the gateway port, has nanosecond-level time resolution, and is unaffected by operating system scheduling or software processing delays. The first reception time, together with the first transmission time t1 of the initial request message, and the second reception time t2 and transmission response time t3 recorded by the nest, constitute the key time reference points for calculating the bidirectional transmission time of the link.

[0086] The second reception time (t2) refers to the absolute time value precisely captured by the hardware timestamp generator inside the tenant's nest (usually located in the MAC layer or PHY layer chip) at the instant the link delay measurement request message (Pdelay_Req) ​​sent by the tower-side gateway is received. This moment records the actual arrival time of the signal from the tower-side gateway, through the physical cable, and to the nest receiver. Because it is recorded at the hardware layer, this moment eliminates the influence of operating system scheduling delays and has nanosecond-level accuracy. Assuming the tower-side gateway sends a Pdelay_Req message at time t1, and the message is transmitted through a 100-meter CAT6 network cable, due to the propagation delay of light in the medium, the message arrives at the nest's network card hardware at time t2 (e.g., t1 + 500ns). The nest hardware immediately latches the current clock count value as t2 and encapsulates it in a response message to prepare for sending back.

[0087] The send reply time (t3) refers to the absolute time value precisely captured by the hardware timestamp generator inside the tenant's nest at the instant the link delay measurement response message (Pdelay_Resp) is sent to the tower-side gateway. This moment records the start time when the nest prepares to send the response message back to the tower-side gateway after processing the received request message. In the standard gPTPPdelay mechanism, the nest will immediately reply with Pdelay_Resp after receiving Pdelay_Req. The time difference between t3 and t2 is extremely short (usually an internal processing delay, which can be considered a fixed offset or ignored). Therefore, t3 and t2 together reflect the time anchor point of the nest in the receiving and responding process. Continuing the example above, after the nest receives the message, the hardware generates the Pdelay_Resp message almost immediately and sends the message from the sending queue at time t3 (e.g., t1+501ns, assuming an internal processing delay of 1ns). The nest hardware latches this value as t3.

[0088] Step S203: Determine the link transmission delay value corresponding to the target independent port based on the sending time, the first receiving time, the second receiving time, and the sending reply time.

[0089] It should be noted that the link transmission delay value refers to the time required for a signal to be transmitted unidirectionally in the physical link (such as Ethernet copper cable or fiber optic cable) between the tower-side gateway target independent port and the tenant's equipment nest, which can be expressed as meanPathDelay. This value is calculated using the Pdelay mechanism of the gPTP protocol, using the transmission time t1, the first reception time t4, and the second reception time t2 and transmission response time t3 recorded by the equipment nest. According to the formula... The calculated value reflects the inherent transmission characteristics of a specific link, including the impact of factors such as cable length, medium propagation speed (approximately 5.3 ns / m for copper and 4.9 ns / m for fiber), and ambient temperature on signal transmission speed. This value is the core basis for generating the timestamp correction value, used to offset the fixed delay caused by signal transmission in the physical link, ensuring the accuracy of time synchronization. For example, for a 100-meter CAT6 copper cable link, meanPathDelay ≈ 500ns. For a 50-meter fiber optic link, meanPathDelay ≈ 150m × 1.468 / 3 × 10 8 ≈734ns. Because each port runs the Pdelay process independently, the latency differences between different links are accurately captured and automatically compensated.

[0090] The above steps address the technical challenge in multi-tenant hub scenarios where significant differences in transmission delay (ranging from 50 ns to 750 ns) arise due to variations in the physical connection lengths, media types (copper or fiber optic), and ambient temperature between tenant hubs and the tower-side gateway. By receiving response messages from tenant hubs and recording the first reception time, combined with the transmission time, the system can independently and accurately calculate the actual transmission delay value for each link. This process eliminates time synchronization errors caused by differences in physical links, providing accurate data support for subsequently sending the calculated link transmission delay values ​​as timestamp correction values ​​to tenant hubs.

[0091] Further, the step of determining the link transmission delay value corresponding to the target independent port based on the transmission time, the first reception time, the second reception time, and the transmission reply time includes: obtaining the current ambient temperature through a pre-deployed temperature sensor, wherein the temperature sensor is deployed inside the tower-side gateway or at a designated location on the cable of the target independent port; calculating a temperature compensation value based on a preset cable transmission delay temperature coefficient, the target cable length, the current ambient temperature, and a calibration temperature, wherein the calibration temperature refers to a pre-set reference temperature baseline value; calculating a basic transmission delay value based on the transmission time, the first reception time, the second reception time, and the transmission reply time; and superimposing the temperature compensation value with the basic transmission delay value to obtain the link transmission delay value corresponding to the target independent port.

[0092] It should be noted that the process of determining the link transmission delay value in this embodiment of the invention introduces a temperature compensation mechanism to solve the drift problem caused by changes in physical link transmission delay with ambient temperature. Specifically, the system obtains the current ambient temperature through a pre-deployed temperature sensor. This sensor can be deployed inside the tower-side gateway near the port, or directly integrated into the cable connection point or designated location of the target independent port to monitor the thermal environment of the cable in real time. The system uses a preset cable transmission delay temperature coefficient... Target cable length L, current ambient temperature (The temperature can be obtained via a PoE-powered temperature sensor on the MTDE port or an external temperature probe) and the calibration temperature. Calculate the temperature compensation value, where the calibration temperature is... This refers to the reference ambient temperature during Pdelay measurement calibration or factory calibration. For cables with different media, the temperature coefficient varies. The values ​​differ; for example, a typical value for CAT6 copper cable is approximately 5.5 ps / ℃ / m, while a typical value for single-mode fiber is approximately 3.0 ps / ℃ / m.

[0093] After calculating the temperature compensation value, the system first calculates the basic transmission delay value based on the transmission time t1 and the first reception time t4 (combined with the t2 and t3 returned from the nest), that is, using the formula... The original measured value is calculated. Then, the calculated temperature compensation value is added to the base transmission delay value for correction, resulting in the final link transmission delay value for the target independent port. A specific correction formula example is as follows: This formula indicates that when the ambient temperature is higher than the calibration temperature, cable expansion slows down signal transmission and increases latency, thus requiring a corresponding compensation amount to be subtracted from the base measurement; conversely, it should be increased when the ambient temperature is lower. The corrected link transmission latency value will be used to generate a time synchronization message carrying the correction value, thereby ensuring that tenant cell nests can offset errors caused by temperature changes when performing clock compensation.

[0094] It should be noted that for a 100-meter CAT6 copper cable link with a temperature difference of 30°C, the delay change caused by temperature drift can reach 16.5 ns. If not compensated, this will be directly reflected in the slave clock as a time offset.

[0095] In another alternative embodiment, the system does not update the temperature compensation value in real time, but rather at a certain period. (Typical value 60 seconds) The temperature compensation value is updated once and superimposed on the mean filter output of the current Pdelay measurement to smooth noise and improve stability. In addition, if the temperature sensor fails or temperature data cannot be obtained, the system can use the default temperature coefficient or historical average temperature for estimation, but the accuracy will be reduced.

[0096] On the other hand, if the link uses single-mode fiber and the distance is long (over 100 meters), although the main compensation logic is the same, a fiber-specific temperature coefficient must be selected. Furthermore, since optical fiber is less affected by temperature than copper cable, in some cost-sensitive scenarios where the ambient temperature variation range is extremely small and the requirement for nanosecond-level accuracy is not stringent, temperature compensation can be ignored, relying solely on the basic Pdelay measurement value. However, this will reduce the synchronization stability during long-term operation. Additionally, if the tower-side gateway supports PoE power supply, temperature can be indirectly obtained using the conductive lines in the PoE cable or a specially integrated temperature sensing module, replacing traditional independent temperature sensors.

[0097] Through the above steps, high-precision adaptive compensation for link transmission delay is achieved, eliminating physical link transmission delay drift caused by changes in ambient temperature. This ensures that multi-tenant data centers maintain nanosecond-level time synchronization accuracy during long-term operation. By introducing temperature sensors and dynamic compensation algorithms, the system can adapt to the complex temperature difference environment of the tower outdoors (such as day-night temperature differences exceeding 30°C), preventing delay changes caused by cable thermal expansion and contraction from being converted into time offsets, thus guaranteeing the long-term stability and reliability of the time distribution service.

[0098] Step S204: Based on the link transmission delay value corresponding to each target independent port, determine the correction value of the timestamp information in the time synchronization message sent to the corresponding tenant nest, and send the time synchronization message carrying the correction value to the corresponding tenant nest.

[0099] It should be noted that the timestamp correction value refers to the compensation value calculated by the tower-side gateway based on the determined link transmission delay value (meanPathDelay) to offset the fixed time consumption caused by signal transmission in the Ethernet physical link. Under the IEEE 802.1AS-2020 (gPTP) or IEEE 1588v2 protocol framework, this correction value is usually directly equal to or based on the measured mean path delay. Its core function is to eliminate the physical transmission delay (such as signal propagation time in copper or fiber optic cables, switch store-and-forward delay, etc.) between the tower-side gateway port and the tenant's nest receiver. For example, if a port is connected to a 100-meter CAT6 copper cable and the measured link transmission delay is 500 nanoseconds, then the timestamp correction value is 500 nanoseconds. This value reflects the actual time span required for the signal to travel from the gateway to the nest and is a key correction parameter for the nest to perform phase alignment with the clock.

[0100] Time synchronization messages carrying correction values ​​refer to data packets generated by the tower-side gateway in standard gPTP / PTP synchronization messages (mainly Sync and Follow_Up messages), embedding the calculated timestamp correction value (or implicitly applied by the slave clock in the protocol mechanism) through protocol extension fields or specific TLV (Type-Length-Value) structures. In the standard gPTP Pdelay mechanism, the correction value is mainly reflected in the process of the slave clock side calculating the offset using Pdelay measurement results. Specifically, the MTDE sends Sync messages to the nest X at a period of T_sync (default 125 ms, i.e., 8 times per second). The MTDE hardware records the sending time t5 (i.e., the hardware timestamp), and the nest X hardware records the receiving time t6. The MTDE then sends Follow_Up messages carrying the precise value of t5. The nest X calculates the local clock offset: Then, local clock adjustments are performed. A positive value for `offsetFromMaster` indicates that the slave clock is ahead of the GM, while a negative value indicates a lag. However, in a specific implementation of this invention, to support Time Reference as a Service (RTS) and more flexible SLA management, the gateway can explicitly inform the nest of the current link delay compensation status or correction parameters through extended fields, or carry a precisely calibrated timestamp `t5` in the `Follow_Up` message to ensure that the time reference received by the nest has undergone preliminary processing on the gateway side. This message not only contains standard time phase information but also implicitly includes delay compensation information for the specific tenant link, enabling the nest to directly use this message to achieve high-precision synchronization.

[0101] The above steps address the technical challenge in multi-tenant nest scenarios where varying physical link lengths, media types, and ambient temperature variations between tenant nests and the tower-side gateway lead to different transmission delays. Direct synchronization without correction results in significant phase errors between the nest clocks and the master clock. By determining a correction value for the timestamp information and integrating it into the time synchronization message (or through protocol mechanisms), the system achieves transparent compensation for link differences. Regardless of whether a tenant nest is 10 meters or 150 meters from the tower-side gateway, and regardless of whether copper or fiber optic cables are used, the time reference received by the nest is the result of precise delay compensation. This process ensures that the local clocks of all tenant nests achieve nanosecond-level phase alignment with the tower-side gateway's system master clock, eliminating the impact of physical link differences on time synchronization accuracy. Thus, without increasing tenant hardware costs, a high-precision, uniform time synchronization service with "one tower, one clock, shared by multiple nests" is achieved.

[0102] Furthermore, the step of determining the correction value of the timestamp information in the time synchronization message sent to the corresponding tenant nest based on the link transmission delay value corresponding to each target independent port includes: obtaining the absolute time value of the tower-side gateway system clock; and performing an inverse compensation operation on the absolute time value using the link transmission delay value to obtain the correction value of the timestamp information.

[0103] It should be noted that the step of fixing the timestamp information involves processing the absolute time of the tower-side gateway system clock. In specific implementation, the tower-side gateway first obtains the current absolute time value of its internal system clock. This time value is determined by the phase of the highly reliable system master clock generated by the clock engine within the tower-side gateway based on dual-source heterogeneous fusion and anti-spoofing verification technology, possessing nanosecond-level accuracy and stability. Subsequently, the system uses the previously determined link transmission delay value (meanPathDelay) to perform inverse compensation calculations on this absolute time value. Inverse compensation here means that in order to ensure that the timestamp received by the tenant nest accurately reflects the actual physical time when the signal arrives at the nest, or to eliminate the phase offset caused by transmission delay in protocol interaction, the gateway needs to process the time base based on the link delay value. In the gPTP / PTP standard mechanism, the slave clock is determined by the formula... Calculate the deviation, where This is the precise timestamp when the gateway sends the Sync message. In this context of weighted description, the process of determining the correction value essentially uses the link delay value as a key parameter to generate or correct the time base information sent to the nest, ensuring that the nest can accurately reconstruct the phase of the master clock by subtracting the delay value (or applying the correction value) after receiving the message. For example, if the absolute system clock time is T and the link delay is D, the logic for determining the correction value ensures that the time information sent to the nest can offset the effect of D, thereby enabling the nest's local clock to be correctly aligned to time T.

[0104] Alternatively, when generating time synchronization messages carrying correction values, the system may adjust the message sending frequency and clock quality parameters based on the tenant's service level (e.g., Basic, Professional, Enterprise). For example, for enterprise-level tenants, the gateway might send Sync / Follow_Up messages at a higher frequency (e.g., 8 times per second, or a 125ms period) and carry more stringent clockClass and clockAccuracy parameters to provide higher-precision time services. Furthermore, the gateway will incorporate link transmission latency values ​​into the time quality telemetry data and report it to the operations platform via the MQTT channel for SLA monitoring and billing.

[0105] Additionally, if the tenant's equipment room is located at the top of a tower and far from the gateway, single-mode fiber can be used instead of copper cable. In this case, the calculation of the link transmission delay value needs to be corrected using the fiber's propagation speed coefficient (approximately 4.9 ns / m) and temperature coefficient (approximately 3.0 ps / ℃ / m). Furthermore, if the tenant's equipment room does not support hardware timestamps, the gateway can also distribute them via the software PTP protocol. However, the accuracy of the corrected value will be affected by the operating system's scheduling latency, making this only suitable for basic service scenarios with lower time accuracy requirements, and necessitating the introduction of a more complex network latency estimation model.

[0106] The above implementation enables high-precision generation and compensation of the time base in time synchronization messages, ensuring that the time information received by tenant cell towers accurately reflects the phase of the tower-side master clock, while eliminating errors caused by physical link transmission delays. By incorporating link transmission delay values ​​into the timestamp correction logic, fine-grained time synchronization compensation can be achieved for each independent link, allowing cell towers of different distances and media to obtain consistent high-precision time services. This not only improves the accuracy and stability of time synchronization but also provides a technical foundation for subsequent SLA-based differentiated services, ensuring that tower operators can provide time synchronization services to different tenants that meet their promised accuracy levels.

[0107] Step S205: Receive a time synchronization message carrying a correction value through the tenant's nest, and compensate and adjust the nest's local clock according to the corrected timestamp information to achieve clock synchronization.

[0108] It should be noted that the nest local clock refers to the clock source deployed within the edge computing motherboard or flight control gateway inside the tenant's nest to maintain the local time reference. In the implementation scenario of this invention, due to the implementation of a "one tower, one clock" architecture, the nest no longer contains independent GNSS timing antennas, GNSS receiver modules, or high-stability crystal oscillators (OCXOs), retaining only a basic crystal oscillator (such as a TCXO or a common crystal oscillator) as the physical carrier of the local clock. This local clock, without external calibration, will be affected by factors such as crystal oscillator aging and temperature drift, resulting in frequency deviation and phase accumulation errors. The nest runs the IEEE 802.1AS-2020 (gPTP) or IEEE 1588v2 slave clock protocol stack through a standardized time input interface (STI, usually an RJ45 Ethernet port), responsible for receiving time synchronization messages from the tower-side gateway.

[0109] Compensation adjustment refers to the process by which the tenant's nest, after receiving a time synchronization message carrying a correction value from its clock protocol stack, calculates the time deviation between its local clock and the tower-side master clock, and then fine-tunes the frequency of its local crystal oscillator using a proportional-integral (PI) controller to eliminate phase errors. Specifically, the nest uses the timestamp t5, reception time t6, and meanPathDelay value from the received Sync message to apply the formula... The time offset is calculated. Then, based on this offset value and the accumulated historical offset values, the ignition system uses a PI controller to calculate the gradual frequency correction. Where Kp and Ki are the proportional and integral coefficients, This is the synchronization period. This frequency correction amount acts on the local crystal oscillator, causing a small change in its frequency (step ≤ 1 × 10⁻⁶). -8( / s), thereby gradually eliminating phase deviation and avoiding time jumps.

[0110] Another point to clarify is that clock synchronization refers to the process by which the phase of the tenant's local clock, under the continuous adjustment of the PI controller, gradually converges and aligns with the phase of the system master clock of the tower-side gateway. In this invention, the goal of clock synchronization is to achieve nanosecond-level time alignment, ensuring that the time error between the absolute time of the local clock in the tenant's nest and the high-reliability master clock on the tower side is controlled within the range promised by a specific service level (e.g., ±100 ns for professional level or ±20 ns for enterprise level). Through this synchronization, the nest can obtain a unified, high-precision, and reliable time reference, supporting time-accurate applications such as sensor data fusion, takeoff and landing coordinated scheduling, and flight log tracing.

[0111] The above steps address the technical challenge of achieving high-precision synchronization with the tower-side unified master clock in multi-tenant cabling systems when lacking an independent high-precision time source, overcoming the impact of local crystal oscillator errors and physical link delays. By receiving time synchronization messages carrying correction values ​​and performing compensation adjustments, the cabling system can automatically offset transmission delay differences caused by variations in Ethernet cable length, media type, and temperature. Simultaneously, PI closed-loop control suppresses local crystal oscillator frequency drift. This process enables the lossless and accurate transmission of the "one tower, one clock" high-precision time reference generated by the tower-side gateway to each tenant cabling, ensuring uniformity and consistency across all tenant cabling systems in the time dimension. This provides fundamental support for core applications such as multi-cabin collaboration and reliable data traceability in the low-altitude economy, while simultaneously reducing the hardware complexity and cost of the cabling system.

[0112] Further, the step of compensating and adjusting the local clock of the cell based on the corrected timestamp information to achieve clock synchronization includes: for each tenant cell, the tenant cell records the second reception time of receiving the time synchronization message carrying the correction value; based on the timestamp information corrected according to the correction value, the second reception time, and the estimated reverse link delay from the tenant cell to the tower-side gateway, the phase deviation value between the local clock of the cell and the system clock of the tower-side gateway is calculated; the phase deviation value is filtered using a proportional-integral controller, and a frequency correction command is generated based on the filtered phase deviation value; the oscillation frequency of the local clock of the cell is adjusted according to the frequency correction command, so that the phase of the local clock of the cell gradually converges to the phase of the system clock of the tower-side gateway.

[0113] It should be noted that the step of compensating and adjusting the local clock of the tenant's equipment nest based on the corrected timestamp information to achieve clock synchronization first involves the tenant's equipment nest recording the reception time. Specifically, when the tenant's equipment nest's hardware MAC or PHY layer receives a time synchronization message (such as a Sync message) carrying a correction value from the tower-side gateway, it uses a hardware timestamp generator to accurately record the reception time, i.e., reception time t6. This time has nanosecond-level accuracy, avoiding the latency uncertainty caused by operating system software scheduling. Subsequently, the equipment nest calculates the phase offset value based on the timestamp information corrected according to the correction value (i.e., the transmission time t5 carried in the Follow_Up message, where t5 implicitly or explicitly includes the link delay compensation logic on the gateway side), the reception time t6, and the estimated reverse link delay from the tenant's equipment nest to the tower-side gateway (under the gPTP full-duplex symmetrical link assumption, the reverse delay is usually equal to the meanPathDelay measured in the forward direction). An example of the formula for calculating the phase offset value (Offset From Master) is as follows: The meanPathDelay is the link transmission delay value obtained by bidirectional Pdelay measurement in step S202 above, which is used to eliminate the inherent transmission time of the physical link.

[0114] After calculating the phase deviation value, the nacelle uses a proportional-integral (PI) controller to filter the deviation value to smooth high-frequency noise and track low-frequency drift. The output of the PI controller is the frequency correction command, calculated using the following formula: Where Kp is the proportionality coefficient and Ki is the integral coefficient. The sending period for Sync messages (e.g., 125ms). This represents the cumulative value of historical deviations. The frequency correction command acts on the local crystal oscillator of the cell, fine-tuning its oscillation frequency to gradually converge the phase of the cell's local clock to the phase of the tower-side gateway system clock. The closed-loop bandwidth of the PI controller is typically set in the range of 0.01~0.1 Hz, and the frequency correction step is ≤1×10⁻⁶. -8 / s, to ensure smooth time synchronization and prevent upper-layer applications from noticing time jumps.

[0115] In another optional embodiment, the nest can also parse the tenant identifier and service level information in the packet extension field when receiving packets. If a service level degradation or SLA violation is detected, the nest can adjust the parameters of the PI controller (such as reducing Kp to avoid excessive response noise) or report the synchronization status anomaly to the tower-side gateway. In addition, a local health monitoring module can also run inside the nest to record the Allan variance of long-term synchronization deviations to predict the aging trend of the local crystal oscillator.

[0116] On the other hand, if the link is asymmetrical (e.g., due to asymmetric routing or specific network card driver issues), the hub can use a unidirectional PTP model, relying solely on Sync messages for synchronization. However, the accuracy will be affected by the uncertainty of unidirectional link latency, and this is typically only suitable for basic services with low accuracy requirements. Additionally, if the hub supports hardware timestamps but driver support is poor, it can downgrade to software timestamp mode. However, the synchronization accuracy will be limited by the operating system kernel scheduling latency and may not reach nanosecond levels. In this case, a software-level latency compensation algorithm needs to be added.

[0117] The above implementation enables high-precision, smooth phase alignment between the tenant's local clock and the tower-side master clock. By recording precise reception times, eliminating the impact of link transmission delays using bidirectional delay measurements, and dynamically adjusting the local crystal oscillator frequency using a PI closed-loop control algorithm, the system ensures that the nest clock can stably and quickly align to the tower-side high-reliability master clock even in environments with noise, drift, and link differences. This meets the stringent requirements for nanosecond-level time synchronization in scenarios such as UAV takeoff and landing coordination and sensor fusion, while avoiding application-layer time jumps caused by frequency abrupt changes, thus ensuring business continuity.

[0118] Furthermore, after clock synchronization is achieved, the time distribution method for multi-tenant nests also includes: the tower-side gateway periodically collecting time synchronization quality indicators for each target independent port, wherein the time synchronization quality indicators include: the time deviation statistics, the average path delay jitter, and the synchronization interruption event count for each target independent port; the time synchronization quality indicators are reported to the tower operation platform through an encrypted communication channel, wherein the tower operation platform, upon receiving the time synchronization quality indicators, detects the time synchronization quality indicators according to the preset service level agreement threshold, and generates a service quality violation alarm record if the detected time synchronization quality indicators are lower than the preset service level agreement threshold.

[0119] After clock synchronization is achieved, the time distribution method for multi-tenant server nests in this invention also includes a quantitative monitoring and SLA guarantee process for time distribution quality. Specifically, the time quality telemetry and management submodule of the tower-side gateway periodically collects time synchronization quality indicators for each target independent port. These indicators include statistical values ​​of time deviation (such as the mean within a sliding window). and standard deviation ), average path delay jitter (i.e., the first-order differential moving standard deviation of link delay) The system also includes a synchronous interrupt event count. The time deviation statistics reflect the instantaneous phase error and jitter level between the slave and master clocks. An example of the calculation formula is as follows:

[0120] ;

[0121] ;

[0122] The average path delay jitter value is used to monitor the physical stability of the link. An example of the calculation formula is as follows: ;

[0123] in, The difference between two consecutive Pdelay measurements is recorded; the synchronization interruption event count records the number of times the Sync message reception is abnormal. After data collection, the tower-side gateway reports these metrics to the tower operation platform in Protobuf or JSON format via an encrypted communication channel (such as a TLS 1.3 encrypted MQTT channel). Upon receiving the data, the tower operation platform checks the metrics according to the preset Service Level Agreement (SLA) thresholds. The SLA thresholds vary depending on the service level purchased by the tenant (Basic, Professional, Enterprise). For example, the Professional level requires a mean time deviation of ≤ ±100ns and jitter of ≤ 50ns. If a metric on a port is found to be below the preset threshold (i.e., exceeding the allowable error range) and persists for more than a specified time (e.g., 10 consecutive seconds), the platform determines it to be an SLA violation, generates an event record containing the violation type, level, and duration, and triggers subsequent service quality degradation notifications or automatic compensation processes.

[0124] In another optional embodiment, after generating a violation alert, the platform will also calculate the monthly SLA compliance rate. ,in Total monthly service time (seconds). This is the sum of the duration (in seconds) of each SLA violation in the current month. If the compliance rate is lower than the contractually committed value (e.g., 99.9%), a fee reduction calculation will be automatically triggered. An example of the formula is as follows: ;in, The amount is dynamically determined based on the difference between the actual SLA and the committed SLA. It should be noted that... ; .

[0125] In another optional embodiment, the platform will also perform long-term stability analysis based on historical Allan variance data to predict crystal oscillator aging trends and generate predictive maintenance alarms in advance. Additionally, if encrypted channel transmission fails or the packet loss rate is too high, the tower-side gateway can temporarily store telemetry data in a local buffer and retransmit it in batches after the channel is restored, or use local log recording for post-event auditing by maintenance personnel. Furthermore, for low-cost data centers that do not support complex SLA monitoring, the platform can monitor only basic connectivity and average time deviation, using simplified threshold judgment logic instead of complete multi-dimensional indicator monitoring.

[0126] The above implementation establishes a full lifecycle quality monitoring and SLA guarantee mechanism for time-based service distribution, transforming abstract time synchronization performance into a quantifiable, monitorable, and billable standardized service product. By periodically collecting multi-dimensional quality indicators and reporting them to the operations platform, the system achieves transparency in time synchronization status. This allows tower operators to monitor the time service health of each tenant in real time and automatically execute breach detection and compensation when services fail to meet standards. This safeguards the commercial reputation of "Time as a Service" (TaaS), enabling a business transformation from "infrastructure leasing" to "digital service operation." Simultaneously, predictive maintenance reduces operational costs and improves overall service reliability.

[0127] In one optional embodiment, MTDE executes the following SLA violation detection logic for each port in real time. The SLA service level can be exemplarily divided into three tiers, and the quality threshold for each tier can be dynamically configured via the northbound interface as shown in Table 1 below:

[0128] Table 1

[0129]

[0130] The SLA violation detection rules are as follows: in the sliding window (typical value) Within a 60-second window (corresponding to a 200ms evaluation period), if any of the following conditions are met, it is considered an SLA violation event:

[0131] Condition C1 (Precision violation): , lasting longer than (e.g., for 10 consecutive seconds);

[0132] Condition C2 (Jitter Violation): , lasting longer than (e.g., for 10 consecutive seconds);

[0133] Condition C3 (Interruption Violation): Sync Message Reception Interval (If no response is received for 5 consecutive Sync cycles).

[0134] In one optional embodiment, MTDE can also store the long-term time skew history (period) of each port. The data (in minutes) is stored in a local circular buffer (72 hours capacity), and a statistical summary is generated daily. Based on trend analysis of historical Allan variance curves, MTDE can predict the aging trend of the local crystal oscillator. ;in This represents the daily aging increment of the Allan variance. When predicting... If the SLA threshold is exceeded within 30 days, the system generates a predictive maintenance alarm to prompt maintenance personnel to replace the crystal oscillator or calibration equipment in advance to avoid SLA default.

[0135] Through steps S201 to S205, time synchronization messages and link delay measurement commands can be sent to N tenant nests through N target independent ports configured inside the tower-side gateway, and the sending time of each message can be recorded. Each target independent port corresponds to a tenant nest, and N is a positive integer. Then, for each target independent port, the link delay measurement response message returned by the corresponding tenant nest is received and the first receiving time is recorded. The link delay measurement response message carries the second receiving time and the sending reply time recorded by the tenant nest. Then, based on the sending time, the first receiving time, the second receiving time, and the sending reply time, the link transmission delay value corresponding to the target independent port is determined. Then, based on the link transmission delay value corresponding to each target independent port, the correction value of the timestamp information in the time synchronization message sent to the corresponding tenant nest is determined, and the time synchronization message carrying the correction value is sent to the corresponding tenant nest. Finally, the tenant nest receives the time synchronization message carrying the correction value and compensates and adjusts the local clock of the nest according to the corrected timestamp information to achieve clock synchronization.

[0136] In this embodiment of the invention, a time distribution architecture based on multi-port parallel independent processing is adopted. Through N target independent ports configured inside the tower-side gateway, time synchronization messages and link delay measurement commands are concurrently sent to the corresponding N tenant nests, and the sending time of each message is accurately recorded. Then, the link delay measurement response messages returned by each nest are received, and the first receiving time is recorded. The link delay measurement response messages carry the second receiving time and the sending reply time recorded by the tenant nest. The link transmission delay value corresponding to each target port is independently calculated using the sending time, the first receiving time, the second receiving time, and the sending reply time, thereby generating a corresponding link transmission time. The timestamp correction value is used to send a time synchronization message carrying the correction value to the corresponding nest. Finally, the tenant nest adjusts the phase of its local clock based on the corrected timestamp information to achieve high-precision synchronization. This achieves the goal of eliminating physical link transmission delay differences and ensuring accurate phase alignment between the clocks of each nest and the tower-side gateway. Thus, it achieves nanosecond-level time synchronization through a standardized Ethernet link without requiring each nest to independently configure GNSS timing hardware. This solves the technical problem of low time synchronization accuracy caused by the lack of a unified time distribution architecture and link delay compensation mechanism for multiple GNSS timing devices independently deployed in multi-tenant nests.

[0137] The invention will now be described in conjunction with another alternative embodiment.

[0138] Example 2

[0139] The clock synchronization system provided in this embodiment includes multiple implementation components for implementing the various implementation steps in Embodiment 1 above.

[0140] Figure 3 This is a schematic diagram of the structural components of an optional clock synchronization system according to an embodiment of the present invention, such as... Figure 3 As shown, the clock synchronization system may include: a tower-side gateway 301 and N tenant nests 3021 to 302N.

[0141] The tower-side gateway 301 contains N target independent ports, where N is a positive integer. Each target independent port is connected to a tenant's cabinet via a cable. The tower-side gateway is configured to: control each target independent port to send time synchronization messages and link delay measurement instructions, receive link delay measurement response messages, calculate the link transmission delay value, generate a time synchronization message carrying a correction value, and send the time synchronization message to the corresponding tenant's cabinet.

[0142] N tenant nests, 3021 to 302N, are deployed at designated locations on the target tower. The tenant nests are connected to the tower-side gateway via cables. The tenant nests are configured to receive time synchronization messages carrying correction values ​​and adjust the nest's local clock according to the corrected timestamp information to achieve clock synchronization.

[0143] The aforementioned time distribution device for multi-tenant nests can first control each target independent port to send time synchronization messages and link delay measurement instructions through the tower-side gateway, receive link delay measurement response messages, calculate the link transmission delay value, generate a time synchronization message carrying a correction value, and send the time synchronization message to the corresponding tenant nest. Then, the tenant nest receives the time synchronization message carrying the correction value and adjusts the nest's local clock according to the corrected timestamp information to achieve clock synchronization.

[0144] Furthermore, each tenant nest operates a nest-local clock. The tenant nest includes a receiving module, a deviation calculation module, and a frequency adjustment module. The receiving module is configured to record the second reception time of receiving a time synchronization message carrying a correction value. The deviation calculation module is configured to calculate the phase deviation between the nest-local clock and the tower-side gateway system clock based on the corrected timestamp information, the second reception time, and the estimated reverse link delay from the tenant nest to the tower-side gateway. The estimated reverse link delay is equal to the link transmission delay value corresponding to the target independent port. The frequency adjustment module is configured to filter the phase deviation value using a proportional-integral controller, generate a frequency correction command, and adjust the oscillation frequency of the nest-local clock according to the frequency correction command, so that the phase of the nest-local clock gradually converges to the phase of the tower-side gateway system clock.

[0145] Furthermore, the tower-side gateway maintains a tower-side gateway system clock. The tower-side gateway includes a temperature acquisition module, a delay determination module, and a message generation module. The temperature acquisition module is configured to: acquire the current ambient temperature using a pre-deployed temperature sensor, which is deployed inside the tower-side gateway or at a designated location on the cable of the target independent port; the delay determination module is configured to: acquire the second reception time and the transmission reply time carried in the link delay measurement response message; calculate a temperature compensation value based on a preset cable transmission delay temperature coefficient, the target cable length, the current ambient temperature, and a calibration temperature, where the calibration temperature refers to a pre-set reference temperature baseline value; calculate a basic transmission delay value based on the transmission time, the first reception time, the second reception time, and the transmission reply time; and superimpose the temperature compensation value with the basic transmission delay value to obtain the link transmission delay value corresponding to the target independent port; the message generation module is configured to: acquire the absolute time value of the tower-side gateway system clock, perform an inverse compensation operation on the absolute time value using the link transmission delay value to obtain a timestamp correction value, and fill the correction value into the time synchronization message to generate a time synchronization message carrying the correction value.

[0146] In this embodiment of the invention, a combination of multi-port independent parallel distribution and centralized unified time synchronization is adopted. Through N independent target ports configured within the tower-side gateway, time synchronization messages and link delay measurement commands are concurrently sent to the corresponding N tenant nests, and the sending time of each message is accurately recorded. Then, the link delay measurement response messages returned by each nest are received, and the first receiving time is recorded. The link delay measurement response messages carry the second receiving time and the sending reply time recorded by the tenant nest. The link transmission delay value corresponding to each target port is independently calculated using the sending time, the first receiving time, the second receiving time, and the sending reply time, thereby generating a corresponding link transmission delay value. The timestamp correction value is used to send a time synchronization message carrying the correction value to the corresponding tenant nest. Finally, the tenant nest adjusts the phase of its local clock based on the corrected timestamp information to achieve high-precision synchronization. This eliminates the difference in physical link transmission delay and achieves precise phase alignment between the clocks of each nest and the tower-side gateway. This achieves the technical effect of nanosecond-level time synchronization through a standardized Ethernet link without requiring each nest to be configured with GNSS timing hardware independently. This solves the technical problem of low time synchronization accuracy caused by the lack of a unified time distribution architecture and link delay compensation mechanism for multiple GNSS timing devices independently deployed in multi-tenant nests.

[0147] The invention will now be described in conjunction with another alternative embodiment.

[0148] Example 3

[0149] The time distribution device for multi-tenant nests provided in this embodiment includes multiple implementation units, each of which corresponds to a specific implementation step in Embodiment 1 above.

[0150] Figure 4 This is a schematic diagram of an optional time distribution device for multi-tenant nests according to an embodiment of the present invention, such as... Figure 4 As shown, the device is configured in a clock synchronization system, which includes a tower-side gateway deployed on the target tower and N tenant cabinets, where N is a positive integer. The device may include a transmitting unit 401, a receiving unit 402, a first determining unit 403, a second determining unit 404, and a compensation unit 405.

[0151] The sending unit 401 is used to send time synchronization messages and link delay measurement instructions to N tenant nests through N target independent ports configured inside the tower-side gateway, and record the sending time of each message. Each target independent port corresponds to one tenant nest.

[0152] The receiving unit 402 is used to receive the link delay measurement response message returned by the corresponding tenant nest for each target independent port and record the first receiving time. The link delay measurement response message carries the second receiving time and the sending reply time recorded by the tenant nest.

[0153] The first determining unit 403 is used to determine the link transmission delay value corresponding to the target independent port based on the sending time, the first receiving time, the second receiving time, and the sending reply time.

[0154] The second determining unit 404 is used to determine the correction value of the timestamp information in the time synchronization message sent to the corresponding tenant nest based on the link transmission delay value corresponding to each target independent port, and send the time synchronization message carrying the correction value to the corresponding tenant nest.

[0155] The compensation unit 405 is used to receive a time synchronization message carrying a correction value through the tenant's nest, and to compensate and adjust the nest's local clock according to the corrected timestamp information to achieve clock synchronization.

[0156] The aforementioned time distribution device for multi-tenant nests can first use the sending unit 401 to send time synchronization messages and link delay measurement commands to N tenant nests through N target independent ports configured inside the tower-side gateway, and record the sending time of each message. Each target independent port corresponds to one tenant nest, and N is a positive integer. Then, the receiving unit 402 receives the link delay measurement response message returned by the corresponding tenant nest for each target independent port and records the first receiving time. The link delay measurement response message carries the second receiving time and sending reply time recorded by the tenant nest. Then, the device uses the... A determining unit 403 determines the link transmission delay value corresponding to the target independent port based on the sending time, the first receiving time, the second receiving time, and the sending reply time. Then, a second determining unit 404 determines the correction value of the timestamp information in the time synchronization message sent to the corresponding tenant nest based on the link transmission delay value corresponding to each target independent port, and sends the time synchronization message carrying the correction value to the corresponding tenant nest. Finally, a compensation unit 405 receives the time synchronization message carrying the correction value through the tenant nest and compensates and adjusts the nest's local clock according to the corrected timestamp information to achieve clock synchronization.

[0157] Further, the first determining unit includes: a first acquisition module, used to acquire the current ambient temperature through a pre-deployed temperature sensor, wherein the temperature sensor is deployed at a designated location inside the tower-side gateway or on the cable of the target independent port; a first calculation module, used to calculate a temperature compensation value based on a preset cable transmission delay temperature coefficient, the target cable length, the current ambient temperature, and a calibration temperature, wherein the calibration temperature refers to a pre-set reference temperature baseline value; a second calculation module, used to calculate a basic transmission delay value based on the transmission time, the first reception time, the second reception time, and the transmission reply time; and an overlay module, used to overlay the temperature compensation value with the basic transmission delay value to obtain the link transmission delay value corresponding to the target independent port.

[0158] Furthermore, the second determining unit includes: a second acquisition module, used to acquire the absolute time value of the tower-side gateway system clock; and a calculation module, used to perform inverse compensation calculation on the absolute time value using the link transmission delay value to obtain a correction value for the timestamp information.

[0159] Furthermore, the compensation unit includes: a receiving module, used for each tenant nest to record the second reception time of receiving a time synchronization message carrying a correction value; a third calculation module, used to calculate the phase deviation between the local clock of the nest and the system clock of the tower-side gateway based on the timestamp information corrected according to the correction value, the second reception time, and the estimated reverse link delay from the tenant nest to the tower-side gateway; a generation module, used to filter the phase deviation value using a proportional-integral controller and generate a frequency correction command based on the filtered phase deviation value; and an adjustment module, used to adjust the oscillation frequency of the nest local clock according to the frequency correction command, so that the phase of the nest local clock gradually converges to the phase of the tower-side gateway system clock.

[0160] Furthermore, the time distribution device for multi-tenant server rooms also includes: a data acquisition module, used by the tower-side gateway to periodically collect time synchronization quality indicators for each target independent port after clock synchronization is achieved. The time synchronization quality indicators include: time deviation statistics, average path delay jitter, and synchronization interruption event counts for each target independent port; and a reporting module, used to report the time synchronization quality indicators to the tower operation platform through an encrypted communication channel. Upon receiving the time synchronization quality indicators, the tower operation platform detects the time synchronization quality indicators according to a preset service level agreement threshold. If the detected time synchronization quality indicators are lower than the preset service level agreement threshold, a service quality violation alarm record is generated.

[0161] Furthermore, the tower-side gateway configures an independent protocol processing thread for each target independent port, and each target independent port independently maintains the link delay measurement state machine, the synchronization message sending cycle, and the target master clock algorithm parameters.

[0162] Furthermore, the sending unit includes: a third acquisition module, used to acquire, for each target independent port, the tenant identifier and service level information bound to that target independent port, wherein the service level information is used to indicate the time synchronization accuracy commitment level required by the tenant nest corresponding to the target independent port, and the correction value generation logic in the time synchronization message matches the time synchronization accuracy commitment level; a writing module, used to write the tenant identifier and service level information into the extended field of the time synchronization message; and a sending module, used to send the time synchronization message and link delay measurement command to the corresponding tenant nest through the protocol processing thread corresponding to the target independent port.

[0163] In this embodiment of the invention, a time distribution architecture based on multi-port parallel independent processing is adopted. Through N target independent ports configured inside the tower-side gateway, time synchronization messages and link delay measurement commands are concurrently sent to the corresponding N tenant nests, and the sending time of each message is accurately recorded. Then, the link delay measurement response messages returned by each nest are received, and the first receiving time is recorded. The link delay measurement response messages carry the second receiving time and the sending reply time recorded by the tenant nest. The link transmission delay value corresponding to each target port is independently calculated using the sending time, the first receiving time, the second receiving time, and the sending reply time, thereby generating a timeout value for the corresponding link transmission. The timestamp correction value is used to send a time synchronization message carrying the correction value to the corresponding nest. Finally, the tenant nest adjusts the phase of its local clock based on the corrected timestamp information to achieve high-precision synchronization. This achieves the goal of eliminating physical link transmission delay differences and ensuring accurate phase alignment between the clocks of each nest and the tower-side gateway. Thus, it achieves nanosecond-level time synchronization through a standardized Ethernet link without requiring each nest to independently configure GNSS timing hardware. This solves the technical problem of low time synchronization accuracy caused by the lack of a unified time distribution architecture and link delay compensation mechanism for multiple GNSS timing devices independently deployed in multi-tenant nests.

[0164] The aforementioned time distribution device for multi-tenant nests may also include a processor and a memory. The aforementioned sending unit 401, receiving unit 402, first determining unit 403, second determining unit 404, compensation unit 405, etc., are all stored in the memory as program units, and the processor executes the aforementioned program units stored in the memory to realize the corresponding functions.

[0165] The aforementioned processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured. By adjusting kernel parameters, time synchronization messages and link delay measurement commands are sent to N tenant nests via N target independent ports configured within the tower-side gateway, and the transmission time of each message is recorded. Each target independent port corresponds to one tenant nest, and N is a positive integer. For each target independent port, a link delay measurement response message returned by the corresponding tenant nest is received, and the first reception time is recorded. This response message carries the second reception time and the transmission reply time recorded by the tenant nest. Based on the transmission time, the first reception time, the second reception time, and the transmission reply time, the link transmission delay value corresponding to the target independent port is determined. Based on the link transmission delay value corresponding to each target independent port, a correction value for the timestamp information in the time synchronization message sent to the corresponding tenant nest is determined, and the time synchronization message carrying the correction value is sent to the corresponding tenant nest. The tenant nest receives the time synchronization message carrying the correction value and adjusts its local clock according to the corrected timestamp information to achieve clock synchronization.

[0166] The aforementioned memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0167] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: sending time synchronization messages and link delay measurement commands to N tenant nests through N target independent ports configured inside the tower-side gateway, and recording the transmission time of each message, wherein each target independent port corresponds to one tenant nest, and N is a positive integer; for each target independent port, receiving a link delay measurement response message returned by the corresponding tenant nest and recording a first reception time, wherein the link delay measurement response message carries a second reception time and a transmission reply time recorded by the tenant nest; determining the link transmission delay value corresponding to the target independent port based on the transmission delay value corresponding to each target independent port; determining a correction value for the timestamp information in the time synchronization message sent to the corresponding tenant nest based on the link transmission delay value corresponding to each target independent port, and sending the time synchronization message carrying the correction value to the corresponding tenant nest; receiving the time synchronization message carrying the correction value through the tenant nest, and compensating and adjusting the nest's local clock according to the corrected timestamp information to achieve clock synchronization.

[0168] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute any of the time-distribution methods for multi-tenant nests described in Embodiment 1 above.

[0169] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the time-distribution method for multi-tenant nests as described in any of the first embodiments above.

[0170] Figure 5 This is a structural block diagram of an electronic device for implementing a time-distribution method for multi-tenant nests according to an embodiment of the present invention, such as... Figure 5 As shown, the electronic device may include: one or more ( Figure 5 (Only one is shown) processor 502, memory 504, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0171] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the time distribution method and apparatus for multi-tenant nests in this application embodiment. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby realizing the aforementioned time distribution method for multi-tenant nests. The memory 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, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0172] Those skilled in the art will understand that Figure 5 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones, tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 5 This does not limit the structure of the aforementioned electronic device. For example, electronic devices may also include components that are more... Figure 5 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 5 The different configurations shown.

[0173] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0174] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0175] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0176] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0177] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0178] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0179] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0180] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A time-distribution method for multi-tenant nests, characterized in that, An application is made to a clock synchronization system, wherein the clock synchronization system includes: a tower-side gateway deployed on a target tower and N tenant cabinets, where N is a positive integer, and the time distribution method for multi-tenant cabinets includes: Through N target independent ports configured inside the tower-side gateway, time synchronization messages and link delay measurement instructions are sent to N tenant nests respectively, and the sending time of each message is recorded. Each target independent port corresponds to one tenant nest. For each target independent port, the link delay measurement response message returned by the corresponding tenant nest is received and the first reception time is recorded. The link delay measurement response message carries the second reception time and the sending reply time recorded by the tenant nest. Based on the sending time, the first receiving time, the second receiving time, and the sending reply time, determine the link transmission delay value corresponding to the target independent port; Based on the link transmission delay value corresponding to each target independent port, determine the correction value of the timestamp information in the time synchronization message sent to the corresponding tenant nest, and send the time synchronization message carrying the correction value to the corresponding tenant nest. The tenant nest receives a time synchronization message carrying the correction value and adjusts the nest's local clock according to the corrected timestamp information to achieve clock synchronization.

2. The time-distribution method for multi-tenant nests according to claim 1, characterized in that, The step of determining the link transmission delay value corresponding to the target independent port based on the sending time, the first receiving time, the second receiving time, and the sending reply time includes: The current ambient temperature is obtained by pre-deployed temperature sensors, wherein the temperature sensors are deployed at a designated location inside the tower-side gateway or on the cable of the target independent port; The temperature compensation value is calculated based on the preset cable transmission delay temperature coefficient, the target cable length, the current ambient temperature, and the calibration temperature, wherein the calibration temperature refers to a preset reference temperature base value. The basic transmission delay value is calculated based on the sending time, the first receiving time, the second receiving time, and the sending reply time; The temperature compensation value is superimposed on the basic transmission delay value to obtain the link transmission delay value corresponding to the target independent port.

3. The time-distribution method for multi-tenant nests according to claim 1, characterized in that, The step of determining the correction value of the timestamp information in the time synchronization message sent to the corresponding tenant nest based on the link transmission delay value corresponding to each of the target independent ports includes: Obtain the absolute time value of the tower-side gateway system clock; The link transmission delay value is used to perform a reverse compensation operation on the absolute time value to obtain the correction value for the timestamp information.

4. The time-distribution method for multi-tenant nests according to claim 1, characterized in that, The steps for compensating and adjusting the local clock of the cell based on the corrected timestamp information to achieve clock synchronization include: For each tenant nest, the tenant nest records the second reception time of receiving the time synchronization message carrying the correction value; Based on the timestamp information corrected according to the correction value, the second receiving time, and the estimated reverse link delay from the tenant's nest to the tower-side gateway, the phase deviation value between the nest local clock and the tower-side gateway system clock is calculated. The phase deviation value is filtered using a proportional-integral controller, and a frequency correction command is generated based on the filtered phase deviation value. The oscillation frequency of the local clock in the cell is adjusted according to the frequency correction command, so that the phase of the local clock in the cell gradually converges to the phase of the tower-side gateway system clock.

5. The time-distribution method for multi-tenant nests according to claim 1, characterized in that, After clock synchronization is achieved, the time distribution method for multi-tenant nests further includes: The tower-side gateway periodically collects time synchronization quality indicators for each target independent port, wherein the time synchronization quality indicators include: time deviation statistics, average path delay jitter, and synchronization interruption event count for each target independent port. The time synchronization quality index is reported to the tower operation platform through an encrypted communication channel. After receiving the time synchronization quality index, the tower operation platform detects the time synchronization quality index according to a preset service level agreement threshold. If the time synchronization quality index is found to be lower than the preset service level agreement threshold, a service quality violation alarm record is generated.

6. The time-distribution method for multi-tenant nests according to any one of claims 1-5, characterized in that, The tower-side gateway configures an independent protocol processing thread for each target independent port, and each target independent port independently maintains the link delay measurement state machine, the synchronization message sending period, and the target master clock algorithm parameters.

7. The time-distribution method for multi-tenant nests according to claim 6, characterized in that, The steps of sending time synchronization messages and link delay measurement commands to N tenant nests through N independent target ports configured inside the tower-side gateway include: For each target independent port, obtain the tenant identifier and service level information bound to the target independent port, wherein the service level information is used to indicate the time synchronization accuracy commitment level required by the tenant nest corresponding to the target independent port, and the correction value generation logic in the time synchronization message is matched with the time synchronization accuracy commitment level; Write the tenant identifier and the service level information into the extended field of the time synchronization message; The protocol processing thread corresponding to the target independent port sends time synchronization messages and link delay measurement commands to the corresponding tenant nest.

8. A clock synchronization system, characterized in that, For performing the time distribution method for multi-tenant nests according to any one of claims 1-7, the clock synchronization system comprises: The tower-side gateway includes N target independent ports, where N is a positive integer. Each target independent port is connected to a tenant nest via a cable. The tower-side gateway is configured to: control each target independent port to send time synchronization messages and link delay measurement instructions, receive link delay measurement response messages, calculate link transmission delay values, generate time synchronization messages carrying correction values, and send the time synchronization messages to the corresponding tenant nest. N tenant nests are deployed at designated locations on the target tower. The tenant nests are connected to the tower-side gateway via cables. The tenant nests are configured to receive time synchronization messages carrying correction values ​​and adjust the nest's local clock according to the corrected timestamp information to achieve clock synchronization.

9. The clock synchronization system according to claim 8, characterized in that, Each tenant nest operates a nest-local clock, and each tenant nest includes: a receiving module, an offset calculation module, and a frequency adjustment module, wherein... The receiving module is configured to: record the second receiving moment when a time synchronization message carrying the correction value is received; The deviation calculation module is configured to: calculate the phase deviation value between the local clock of the tenant nest and the system clock of the tower-side gateway based on the corrected timestamp information, the second receiving time, and the estimated reverse link delay from the tenant nest to the tower-side gateway, wherein the estimated reverse link delay is equal to the link transmission delay value corresponding to the target independent port. The frequency adjustment module is configured to: filter the phase deviation value using a proportional-integral controller, generate a frequency correction command, and adjust the oscillation frequency of the cell local clock according to the frequency correction command, so that the phase of the cell local clock gradually converges to the phase of the tower-side gateway system clock.

10. The clock synchronization system according to claim 8, characterized in that, The tower-side gateway maintains a tower-side gateway system clock. The tower-side gateway includes: a temperature acquisition module, a delay determination module, and a message generation module. The temperature acquisition module is configured to acquire the current ambient temperature through a pre-deployed temperature sensor, wherein the temperature sensor is deployed at a designated location inside the tower-side gateway or on the cable of the target independent port. The delay determination module is configured to: acquire the second receiving time and sending reply time carried in the link delay measurement response message; calculate a temperature compensation value based on a preset cable transmission delay temperature coefficient, the target cable length, the current ambient temperature, and a calibration temperature, wherein the calibration temperature refers to a preset reference temperature base value; calculate a basic transmission delay value based on the sending time, the first receiving time, the second receiving time, and the sending reply time; and superimpose the temperature compensation value with the basic transmission delay value to obtain the link transmission delay value corresponding to the target independent port. The message generation module is configured to: obtain the absolute time value of the tower-side gateway system clock, perform reverse compensation calculation on the absolute time value using the link transmission delay value to obtain the timestamp correction value, and fill the correction value into the time synchronization message to generate a time synchronization message carrying the correction value.

11. A time distribution device for multi-tenant nests, characterized in that, Configured in a clock synchronization system, wherein the clock synchronization system includes: a tower-side gateway deployed on the target tower and N tenant cell nests, where N is a positive integer, and the time distribution device for the multi-tenant cell nests includes: The sending unit is used to send time synchronization messages and link delay measurement instructions to N tenant nests through N target independent ports configured inside the tower-side gateway, and record the sending time of each message, wherein each target independent port corresponds to one tenant nest; The receiving unit is configured to receive the link delay measurement response message returned by the corresponding tenant nest for each target independent port and record the first receiving time, wherein the link delay measurement response message carries the second receiving time and the sending reply time recorded by the tenant nest; The first determining unit is used to determine the link transmission delay value corresponding to the target independent port based on the sending time, the first receiving time, the second receiving time, and the sending reply time. The second determining unit is used to determine the correction value of the timestamp information in the time synchronization message sent to the corresponding tenant nest based on the link transmission delay value corresponding to each target independent port, and send the time synchronization message carrying the correction value to the corresponding tenant nest. The compensation unit is used to receive a time synchronization message carrying the correction value through the tenant nest, and to compensate and adjust the nest local clock according to the corrected timestamp information to achieve clock synchronization.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform the time-distribution method for multi-tenant nests as described in any one of claims 1 to 7.

13. An electronic device, characterized in that, It includes one or more processors and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the time-distribution method for multi-tenant nests as described in any one of claims 1 to 7.

14. A computer program product, characterized in that, Includes computer instructions, wherein when executed by a processor, the computer instructions implement the steps of the time-distribution method for multi-tenant nests as described in any one of claims 1 to 7.