CN117545061A - Method and device for time synchronization in 5G network, electronic equipment and storage equipment - Google Patents

Method and device for time synchronization in 5G network, electronic equipment and storage equipment Download PDF

Info

Publication number
CN117545061A
CN117545061A CN202311780515.3A CN202311780515A CN117545061A CN 117545061 A CN117545061 A CN 117545061A CN 202311780515 A CN202311780515 A CN 202311780515A CN 117545061 A CN117545061 A CN 117545061A
Authority
CN
China
Prior art keywords
clock
local
time
information
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311780515.3A
Other languages
Chinese (zh)
Inventor
俞一帆
丁靖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ailing Network Co ltd
Original Assignee
Shenzhen Ailing Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ailing Network Co ltd filed Critical Shenzhen Ailing Network Co ltd
Priority to CN202311780515.3A priority Critical patent/CN117545061A/en
Publication of CN117545061A publication Critical patent/CN117545061A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0647Synchronisation among TDM nodes
    • H04J3/065Synchronisation among TDM nodes using timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging

Abstract

The application provides a method, a device, electronic equipment and a storage medium for time synchronization in a 5G network, and relates to the technical field of 5G. The method constructs a time synchronization system capable of supporting a plurality of TSN clock sources, and the 5G base station acquires GPS clock information through integrating the GNSS functional module. Different 5G base stations may dock with and synchronize to different TSN master clocks. The 5G base station defines an extension field in the SIB9 message for recording the difference in TSN clocks with which the GPS clock is synchronized. The 5G terminal can acquire the difference value by receiving the SIB9 message, and calculate and acquire the time of the TSN master clock connected with the 5G base station by utilizing the GPS clock information in the original field of the SIB9 message, thereby quickly synchronizing with the TSN master clock. The 5G terminal is connected with the industrial equipment, and the connected industrial equipment and the local clock of the terminal are synchronized through an IEEE 1588v2 protocol. Secondly, by setting a timer, the terminal resends the time synchronization request to the base station after the timer reaches the set time, so that the problem of step out can be overcome.

Description

Method and device for time synchronization in 5G network, electronic equipment and storage equipment
Technical Field
The present application relates to the field of 5G technologies, and in particular, to a method, an apparatus, an electronic device, and a storage device for time synchronization in a 5G network.
Background
Time synchronization is the process by which a unified time scale is provided for a distributed system through some manipulation of a local clock. By means of continuous time synchronization and delay compensation, the slave clock device can maintain high time synchronization accuracy with the master clock device, and the synchronization accuracy can meet the requirements of real-time communication applications, such as industrial automation, robot control and the like.
In the prior art, a GPS (Global Positioning System ) time service mode is often adopted to realize the synchronization of a receiver and a GPS satellite clock.
However, in an industrial control scenario, there are often multiple independent TSN (Time-Sensitive Networking, time sensitive network) master clocks for the control of industrial equipment. Therefore, the direct use of GPS timing cannot support multi-clock source scenarios.
Disclosure of Invention
The present application aims to provide a method, an apparatus, an electronic device and a storage device for time synchronization in a 5G network, so as to achieve efficient and accurate time synchronization and support a multi-clock source scenario.
In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
in a first aspect, an embodiment of the present application provides a method for time synchronization in a 5G network, which is applied to a base station in the 5G network, where the 5G network includes a plurality of base stations, and a time-sensitive network clock source and a terminal that are connected to each base station in a one-to-one correspondence; each base station is connected to a corresponding time-sensitive network clock source according to the clock type requirement of the industrial equipment under the connected terminal, and the method comprises the following steps:
receiving a time synchronization request sent by a terminal, wherein the time synchronization request is used for requesting to acquire a broadcast message;
determining current clock difference information according to the determined current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock, and writing the current clock difference information and the current clock information of the local global positioning system clock into a designated field in a broadcast message to generate a current broadcast message;
and sending the current broadcast message to the terminal so that the terminal updates the local clock of the terminal according to the current broadcast message and realizes clock synchronization of each industrial device connected under the terminal and the local clock of the terminal according to the local clock.
Optionally, the time synchronization request sent by the receiving terminal includes:
and receiving a time synchronization request sent by the terminal when the timer reaches the set time.
Optionally, the determining the current clock difference information according to the determined current clock information of the local global positioning system clock and the determined current clock information of the local time sensitive network clock includes:
acquiring current time service information of a global positioning system through an integrated global navigation satellite system module, and determining current clock information of a local global positioning system clock according to the current time service information of the global positioning system;
establishing a clock synchronization relationship with a corresponding time sensitive network master clock based on a designated protocol, and determining current clock information of a local time sensitive network clock;
and determining the current clock difference information between the local global positioning system clock and the local time sensitive network clock according to the current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock.
Optionally, the determining the current clock information of the local time sensitive network clock based on the clock synchronization relation between the designated protocol and the corresponding time sensitive network master clock includes:
Receiving a time synchronization message sent by the time sensitive network master clock and a transmission delay of the time synchronization message, wherein the time synchronization message comprises time stamp information of the time sensitive network master clock;
according to the time stamp information in the time synchronization message and the transmission delay, adjusting a local clock so as to keep the local clock synchronous with the clock information of a local time sensitive network clock;
and taking the time when the clock information of the local time-sensitive network clock is kept synchronous with the clock information of the local time-sensitive network clock as the current clock information of the local time-sensitive network clock.
In a second aspect, the embodiment of the application also provides a method for time synchronization in a 5G network, which is applied to a terminal in the 5G network. The method comprises the following steps:
sending a time synchronization request to a base station for establishing connection, wherein the time synchronization request is used for requesting to acquire a broadcast message;
receiving a current broadcast message sent by the base station, wherein the current broadcast message comprises the following components: current clock difference information between the local global positioning system clock and the local time sensitive network clock and current clock information of the local global positioning system clock;
Determining local time synchronized with the time-sensitive network clock according to the current broadcast message and the local propagation delay of the current broadcast message;
and updating the local clock according to the local time synchronized with the time sensitive network clock.
Optionally, the determining the local time synchronized with the time sensitive network clock according to the current broadcast message and the propagation delay of the current broadcast message reaching the local includes:
calculating the current clock information of the local global positioning system clock and the difference value between the current clock difference information between the local global positioning system clock and the local time sensitive network clock through a time synchronization module;
and summing the difference value and the propagation delay of the current broadcast message reaching the local to obtain the local time synchronized with the time sensitive network clock.
Optionally, the updating the local clock according to the local time synchronized with the time sensitive network clock includes:
updating the local clock to be synchronous with the time sensitive network clock, and starting a request timer;
and if the request timer is overtime, a new time synchronization request is sent to the base station again.
Optionally, after updating the local clock according to the local time synchronized with the time sensitive network clock, the method further comprises:
and establishing a clock synchronization relationship with at least one industrial device which establishes a connection through a time synchronization module so as to enable each industrial device to realize synchronization with the local clock.
In a third aspect, an embodiment of the present application further provides an apparatus for time synchronization in a 5G network, including: the device comprises a receiving module, a generating module and a sending module;
the receiving module is used for receiving a time synchronization request sent by the terminal, wherein the time synchronization request is used for requesting to acquire the broadcast message;
the generation module is used for determining current clock difference information according to the determined current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock, writing the current clock difference information and the current clock information of the local global positioning system clock into a designated field in a broadcast message, and generating the current broadcast message;
the sending module is used for sending the current broadcast message to the terminal so that the terminal updates the local clock of the terminal according to the current broadcast message and enables each industrial device connected under the terminal to realize clock synchronization with the local clock of the terminal according to the local clock.
Optionally, the receiving module is specifically configured to receive a time synchronization request sent by the terminal when the timer reaches a set time.
Optionally, the generating module is specifically configured to obtain current time service information of the global positioning system through the integrated global navigation satellite system module, and determine current clock information of a local global positioning system clock according to the current time service information of the global positioning system;
establishing a clock synchronization relationship with a corresponding time sensitive network master clock based on a designated protocol, and determining current clock information of a local time sensitive network clock;
and determining the current clock difference information between the local global positioning system clock and the local time sensitive network clock according to the current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock.
Optionally, the generating module is specifically configured to receive a time synchronization message sent by the time sensitive network master clock and a transmission delay of the time synchronization message, where the time synchronization message includes timestamp information of the time sensitive network master clock;
according to the time stamp information in the time synchronization message and the transmission delay, adjusting a local clock so as to keep the local clock synchronous with the clock information of a local time sensitive network clock;
And taking the time when the clock information of the local time-sensitive network clock is kept synchronous with the clock information of the local time-sensitive network clock as the current clock information of the local time-sensitive network clock.
In a fourth aspect, an embodiment of the present application further provides an apparatus for time synchronization in a 5G network, including: the device comprises a sending module, a receiving module, a determining module and an updating module;
the sending module is used for sending a time synchronization request to a base station for establishing connection, wherein the time synchronization request is used for requesting to acquire a broadcast message;
the receiving module is configured to receive a current broadcast message sent by the base station, where the current broadcast message includes: current clock difference information between the local global positioning system clock and the local time sensitive network clock and current clock information of the local global positioning system clock;
the determining module is used for determining local time synchronous with the time-sensitive network clock according to the current broadcast message and the propagation delay of the current broadcast message reaching the local;
the updating module is used for updating the local clock according to the local time synchronized with the time sensitive network clock.
Optionally, the determining module is specifically configured to calculate, by using the time synchronization module, a difference value between current clock information of the local global positioning system clock and current clock difference information between the local global positioning system clock and the local time-sensitive network clock;
And summing the difference value and the propagation delay of the current broadcast message reaching the local to obtain the local time synchronized with the time sensitive network clock.
Optionally, the updating module is specifically configured to update the local clock to a time synchronized with the time sensitive network clock, and start a request timer;
and if the request timer is overtime, a new time synchronization request is sent to the base station again.
Optionally, the updating module is further configured to establish a clock synchronization relationship with at least one industrial device that establishes a connection through the time synchronization module, so that each industrial device is synchronized with the local clock.
In a fifth aspect, embodiments of the present application provide an electronic device, including: a processor, a storage medium, and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium in communication over the bus when the electronic device is operating, the processor executing the machine-readable instructions to implement a method of time synchronization in a 5G network as provided in the first or second aspect.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs a method of time synchronization in a 5G network as provided in the first or second aspect.
The beneficial effects of this application are:
the application provides a method, a device, electronic equipment and a storage medium for time synchronization in a 5G network, which construct a time synchronization system capable of supporting a plurality of TSN clock sources, and a 5G base station acquires GPS clock information through integrating a GNSS functional module. Different 5G base stations may dock with and synchronize to different TSN master clocks. The 5G base station defines an extension field in the SIB9 message for recording the difference in TSN clocks with which the GPS clock is synchronized. The 5G terminal can acquire the difference value by receiving the SIB9 message, and calculate and acquire the time of the TSN master clock connected with the 5G base station by utilizing the GPS clock information in the original field of the SIB9 message, thereby quickly realizing the synchronization with the TSN master clock. The 5G terminal is connected with the industrial equipment, and the connected industrial equipment and the local clock of the terminal are synchronized through an IEEE 1588v2 protocol.
Secondly, by setting the timer, the terminal sends a time synchronization request to the base station after the timer reaches the set time, so that the problem of re-synchronization caused by the frequency drift of the local clock of the terminal after only one time of time synchronization can be avoided.
In addition, the terminal can quickly realize clock synchronization with the TSN master clock according to clock difference information between the local GPS clock and the local TSN clock and clock information of the local GPS clock recorded in the SIB9 message sent by the base station without replacing a chip.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a network architecture of a time synchronization system in a 5G network according to an embodiment of the present application;
fig. 2 is a flowchart of a method for time synchronization in a 5G network according to an embodiment of the present application;
fig. 3 is a flowchart of another method for time synchronization in a 5G network according to an embodiment of the present application;
fig. 4 is a flowchart of a method for time synchronization in a 5G network according to an embodiment of the present application;
fig. 5 is a flowchart of a method for time synchronization in a 5G network according to an embodiment of the present application;
fig. 6 is a flowchart of another method for time synchronization in a 5G network according to an embodiment of the present application;
fig. 7 is a flowchart of a method for time synchronization in a 5G network according to an embodiment of the present application;
Fig. 8 is a signaling interaction schematic diagram of a method for time synchronization in a 5G network according to an embodiment of the present application;
fig. 9 is a schematic diagram of an apparatus for time synchronization in a 5G network according to an embodiment of the present application;
fig. 10 is a schematic diagram of another apparatus for time synchronization in a 5G network according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the accompanying drawings in the present application are only for the purpose of illustration and description, and are not intended to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this application, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to the flow diagrams and one or more operations may be removed from the flow diagrams as directed by those skilled in the art.
In addition, the described embodiments are only some, but not all, of the embodiments of the present application. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features stated hereinafter, but not to exclude the addition of other features.
Time synchronization is the process by which a unified time scale is provided for a distributed system through some manipulation of a local clock. By means of continuous time synchronization and delay compensation, the slave clock device can maintain high time synchronization accuracy with the master clock device, and the synchronization accuracy can meet the requirements of real-time communication applications, such as industrial automation, robot control and the like.
The current Time synchronization methods mainly include a network clock synchronization method based on IEEE 1588v2 (also called Precision Time Protocol, PTP, time synchronization protocol), a clock synchronization method based on GPS (GlobalPositioning System ) and 5G TSN (Time-Sensitive Networking, time sensitive network).
First: the working principle of IEEE 1588v2 is as follows:
1. master Clock (Master Clock) and Slave Clock (Slave Clock): in a network, there is a master clock device and a plurality of slave clock devices. The master clock device is responsible for providing an accurate time reference and broadcasting it over the network to the slave clock devices.
2. Time synchronization message: the master clock device periodically sends a time synchronization message (Sync Messages) and a delay request message (Delay Request Messages) into the network. These messages are transmitted over the IEEE 1588v2 protocol.
Sync Messages: the master clock device sends Sync Messages, which contain the timestamp information of the master clock device. The Sync Messages are propagated over the network to the slave clock device.
4. Delay compensation: after receiving the Sync Messages from the clock device, the slave clock device replies to the master clock device by saving the timestamp information reached by the Sync Messages and sending Delay Request Messages. After the master clock device receives Delay Request Messages, the transmission delay between the slave clock device and the master clock device is calculated and delay information is sent back to the slave clock device.
5. Clock calibration: the slave clock device uses the time stamp and delay information provided by the master clock device to calibrate its own clock. By constantly receiving Sync Messages and delay information, the slave clock device can gradually adjust its own clock, keeping synchronization with the master clock device.
6. Time synchronization accuracy: by means of continuous time synchronization and delay compensation, the slave clock device can maintain a high degree of time synchronization accuracy with the master clock device. The synchronization accuracy can meet the requirements of real-time communication applications, such as industrial automation, robot control and the like.
Second,: GPS time service working principle
Firstly, calculating the 'true distance' of the satellite machine through the coordinates of the GPS satellite and the coordinates of the receiver. The space coordinates of the GPS satellites can be obtained through broadcast ephemeris in the GPS satellite navigation message, and the coordinates of the receiver can be obtained through geodetic measurement.
Assuming that the receiver is time-synchronized with GPS satellites, the GPS 'ranging code' signal is used for measuring the transmission time delay of the signal, and then the satellite 'pseudo distance' is calculated according to the transmission time delay and the signal propagation speed (taking the vacuum speed of light).
Therefore, the clock difference between the receiver clock and the GPS clock can be calculated by using the information, and the synchronization with the GPS satellite clock is realized by adjusting the clock difference.
The GPS time has high precision, strong timekeeping capability and good long-term stability, but because GPS signals are transmitted in an electromagnetic wave mode, the GPS signals are easy to be interfered by the outside, and the short-term stability is poor. Combining long-term stability of GPS with short-term stability of the physical clock is a more efficient method of improving time accuracy. In addition, GPS common view comparison is an effective method for improving the time precision of peripheral stations, and the inter-station error can be controlled within 15ns through common view comparison.
In the 5G network, GPS timing information may be notified to the UE in the form of aperiodic broadcast through SIB9 system information. SIB9 carries information about GPS time and Universal Time (UTC). The UE may obtain UTC, GPS and local time through parameters provided in SIB 9. The UE may use the time information for a variety of purposes, to assist GPS initialization, to synchronize the UE clock, and so on.
Third,: 5G TSN
The 5G system is equivalent to a bridged black box, commonly referred to as a 5GS bridge, in the TSN network architecture. The 5GS bridge includes the NW-TT (Network-side TSN translator, network side TSN translator) port of the UPF, the user plane tunnel between the UE and the UPF, and the UE DS-TT (Device-side TSN translator, terminal side TSN translator) port. Each UPF corresponds to a 5GS bridge, the UPF is connected to a TSN network through an NW-TT port, and the DS-TT port of the UE is associated with a PDU session corresponding to the TSN network.
The 5GS bridge belongs to a TSN system nano tube, and related information (including topology, traffic level, port priority and the like of the bridge) of the TSN bridge is reported to the TSN system through 802.1Qcc and 802.1AB management interfaces, and QoS (Quality of Service ) scheduling requests initiated by the TSN system are mapped and implemented. The controller of the TSN system serves as a function of the TSN AF and interacts control information with the 5GC, TSN CNC (Central Network Controller, centralized network controller) issues a forwarding relation of the 5GS bridge to the network through interaction with the TSN-AF, and meanwhile, the 5GS provides an open interface to support reading and assignment of DS-TT or NW-TT port information by the TSN AF.
In order to meet the performance requirements of the TSN network, the 5G TSN provides a mechanism for guaranteeing deterministic network communications, mainly including timing and time synchronization, qoS mapping and guarantee.
The 5 GS-supported TSN synchronization implementation includes two flows: namely the time synchronization of the NG-RAN and the time synchronization of the bridge domain. The NG-RAN only needs to synchronize according to the internal clock of 5GS, while the synchronization of the bridge domain requires that 5GS provide a transmission delay between the two bridge ends TT and add to the synchronization packet.
The 5GC defines a new QoS model supporting TSN. The CNC generally calculates a scheduled path by using information obtained from the network, determines a traffic level, a port, etc., further determines requirements on delay and priority, maps the requirements to a QCI of 5GS by TSN AF, and affects a specific implementation of guaranteeing a corresponding flow by the network in a policy request manner, namely: the request parameters include MAC address, flow level and VLAN identifier, and the output port number and the input port number of the bridge, and the 5GS correlates the PDU session corresponding to the TSN according to the parameters, and implements the corresponding QoS strategy.
To control jitter of network transmissions, the UE/UPF provides a hold and forward buffer mechanism supporting an 802.1Qbv scheduling mechanism. The schedule is based on PDB (Packet Delay Budget ) for 5GS QoS guarantees, ensuring that packets arrive at the NW-TT or DS-TT exit before their scheduled transmission times.
However, summarizing the several existing methods described above, there are mainly several problems:
first: the existing 5G terminal chip does not integrate DS-TT functionality nor UPF does integrate NW-TT functionality, which makes the 5G TSN unable to work on existing 5G devices that follow the 3gpp r15 specification.
Second,: in an industrial control scenario, there are often multiple independent TSN master clocks for the control of industrial equipment. Therefore, the direct use of GPS timing cannot support multi-clock source scenarios.
Third,: although 5G base stations currently support operation with TSN clocks, significant inter-base station interference will occur where different 5G base stations use different TSN clocks.
Fourth,: the 5G terminal acquires GPS time service information from the 5G base station through the SIB9, but the SIB9 is an aperiodic message, and the 5G base station needs to broadcast the information only when the 5G terminal sends out a request. When the local clock of the 5G terminal has frequency drift, the situation that the clock is out of step again after the 5G terminal acquires the SIB9 message for a period of time may occur.
Based on the above, the scheme provides a time synchronization method in a 5G network, a time synchronization system capable of supporting a plurality of TSN clock sources is constructed, and the 5G base station acquires GPS clock information through integrating a GNSS (Global Navigation Satellite System, global satellite navigation system) functional module. Different 5G base stations may dock with and synchronize to different TSN master clocks. The 5G base station implants an extension field in the SIB9 message for recording the difference in TSN clocks with which the GPS clock is synchronized. The 5G terminal can acquire the difference value by receiving the SIB9 message, and calculates and acquires the time of the TSN master clock connected with the 5G base station by utilizing the GPS clock information in the original field of the SIB9 message, thereby realizing the synchronization with the TSN master clock. The 5G terminal is connected with the industrial equipment, and the connected industrial equipment and the local clock of the terminal are synchronized through an IEEE 1588v2 protocol.
Fig. 1 is a schematic diagram of a network architecture of a time synchronization system in a 5G network according to an embodiment of the present application. As shown in fig. 1, the time synchronization system in a 5G network may include a plurality of 5G base stations, each 5G base station may be connected to a corresponding time sensitive network clock source (TSN master clock), and the type of time sensitive network clock source to which each 5G base station is connected may be different. Each 5G base station may also be connected with a corresponding terminal (UE).
Each terminal can be correspondingly connected with at least one industrial device with the same clock type requirement, and the type of the TSN master clock connected with each 5G base station can be determined according to the clock type requirement of the industrial device under the terminal connected with the 5G base station because the clock types and clock precision required by different industrial devices can be different.
In the process of clock synchronization, the terminal can acquire an SIB9 message returned by the base station by initiating a clock synchronization request to the connected base station, and record the difference value between the GPS clock and the TSN clock synchronized by implanting an extension field in the SIB9 message, so that the terminal can complete synchronization with the corresponding TSN clock according to the SIB9 message. The terminal is connected with the industrial equipment, and the connected industrial equipment and the local clock of the terminal are synchronized through an IEEE 1588v2 protocol.
The terminal may be connected to the 5G base station through a specific network element in the 5G core network, and similarly, the 5G base station may establish a connection with the TSN master clock through the specific network element, where the specific connection network refers to the existing network, and this embodiment will not be shown in detail.
Fig. 2 is a flowchart of a method for time synchronization in a 5G network according to an embodiment of the present application; the main implementation body of the method can be any 5G base station in the system shown in the figure 1. As shown in fig. 2, the method may include:
S201, receiving a time synchronization request sent by a terminal, wherein the time synchronization request is used for requesting to acquire a broadcast message.
In the embodiment, taking an information interaction scenario between a base station and a terminal and a TSN master clock as an example, in practical application, when the terminal connected with any base station realizes the synchronization of the TSN clocks, the method can be executed by referring to the scheme.
The clock synchronization realized by the method is that firstly, the terminal can realize synchronization with the corresponding TSN master clock based on SIB9 information sent by the base station, and then the terminal controls the connected industrial equipment to realize synchronization with the local clock of the terminal. Thereby achieving the synchronization of the industrial equipment and the TSN master clock.
After the terminal accesses the 5G network, it may send a time synchronization request to the base station to request for obtaining the SIB9 message.
S202, determining current clock difference information according to the determined current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock, and writing the current clock difference information and the current clock information of the local global positioning system clock into a designated field in a broadcast message to generate the current broadcast message.
After receiving the request from the terminal, the base station can calculate the current clock difference information between the local GPS clock and the local TSN clock according to the determined current clock information of the local global positioning system clock (GPS clock) and the current clock information of the local time sensitive network clock (TSN clock), and write the current clock difference information between the local GPS clock and the local TSN clock into a specified field in the SIB9 information, where the specified field may be an extension field of the base station specifically extended in the SIB9 message in this embodiment, and the existing SIB9 message does not have the field.
After the current clock difference information is written into the appointed field in the SIB9 message, the current broadcast message can be generated, namely the current SIB9 message is generated.
S203, sending a current broadcast message to the terminal so that the terminal updates the local clock of the terminal according to the current broadcast message, and enabling each industrial device connected under the terminal to realize clock synchronization with the local clock of the terminal according to the local clock.
The base station can send the current SIB9 information to the terminal through a broadcast channel, and the terminal can perform time synchronization with the TSN clock according to the clock difference information carried in the SIB9 information, the current clock information of the local GPS clock, the propagation delay of the SIB9 information reaching the terminal and other information after reading the current SIB9 information, so as to update the local clock of the terminal.
And then, the terminal can also establish a clock synchronization relationship with each industrial device connected with the terminal so as to synchronize the clocks of each industrial device with the local clock of the terminal, thereby realizing the time synchronization of the industrial device and the TSN clock.
In summary, the method for time synchronization in the 5G network provided by the scheme constructs a time synchronization system capable of supporting a plurality of TSN clock sources, and the 5G base station acquires GPS clock information through integrating the GNSS functional module. Different 5G base stations may dock with and synchronize to different TSN master clocks. The 5G base station defines an extension field in the SIB9 message for recording the difference in TSN clocks with which the GPS clock is synchronized. The 5G terminal can acquire the difference value by receiving the SIB9 message, and calculate and acquire the time of the TSN master clock connected with the 5G base station by utilizing the GPS clock information in the original field of the SIB9 message, thereby quickly realizing the synchronization with the TSN master clock. The 5G terminal is connected with the industrial equipment, and the connected industrial equipment and the local clock of the terminal are synchronized through an IEEE 1588v2 protocol.
Optionally, in step S201, the receiving the time synchronization request sent by the terminal may include: and receiving a time synchronization request sent by the terminal when the timer reaches the set time.
In some embodiments, when the local clock of the terminal has frequency drift, the situation that the clock is out of step again after the terminal acquires the SIB9 message sent by the base station for a period of time may occur. To overcome this problem, in this embodiment, the terminal may start the timer after updating the local clock each time by starting the timer, and when the timer times out, that is, when the timer reaches the set time, the terminal initiates a time synchronization request to the base station again to perform time synchronization again.
That is, instead of completing the synchronization process by one time of time synchronization, the synchronization can be performed again by a certain time interval, so as to solve the problem of time out-of-step caused by the frequency drift of the local clock of the terminal.
Fig. 3 is a flowchart of another method for time synchronization in a 5G network according to an embodiment of the present application; optionally, in step S202, determining current clock difference information according to the determined current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock may include:
S301, acquiring current time service information of a global positioning system through integration, and determining current clock information of a local global positioning system clock according to the current time service information of the global positioning system.
After the base station is started, the current time service information of the GPS can be acquired through an internal integrated GNSS module (Global Navigation Satellite System ).
The GPS timing information may include precise time information and location information, among other things. This information is transmitted by the GPS satellites to the ground via radio waves, and after the receiver receives these signals, the distance and time difference between itself and the satellites can be calculated. In GPS timing, a receiver compares and corrects a clock inside itself by receiving a time signal of a GPS satellite. Because the clock precision of the GPS satellite is very high, the precision of nanosecond level can be achieved, and therefore the clock precision and stability of the receiver can be effectively improved.
According to the acquired GPS current time service information, the base station can establish a local GPS clock and determine the current clock information of the local GPS clock.
S302, establishing a clock synchronization relationship with a corresponding time sensitive network master clock based on a specified protocol, and determining current clock information of a local time sensitive network clock.
The base station can also establish a clock synchronization relationship with the connected TSN master clock through an IEEE 1588v2 protocol, establish a local TSN clock and determine the current clock information of the local TSN clock.
S303, determining the current clock difference information between the local global positioning system clock and the local time sensitive network clock according to the current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock.
Then, based on the current clock information of the local GPS clock and the current clock information of the local TSN clock, the formula can be adopted: delta = local GPS clock current clock information-local TSN clock current clock information; and calculating to obtain the current clock difference information between the local GPS clock and the local TSN clock. Where Δ represents the current clock difference information between the local GPS clock and the local TSN clock.
The base station writes the current clock difference information between the local global positioning system clock and the local time sensitive network clock, even if obtained, into the SIB9 message. In addition, the current clock information of the local GPS clock can be written into the corresponding field in the SIB9 message.
Fig. 4 is a flowchart of a method for time synchronization in a 5G network according to an embodiment of the present application; optionally, in step S302, based on establishing a clock synchronization relationship between the designated protocol and the corresponding time-sensitive network master clock, determining current clock information of the local time-sensitive network clock may include:
S401, receiving a time synchronization message sent by a time sensitive network master clock and transmitting delay of the time synchronization message, wherein the time synchronization message comprises time stamp information of the time sensitive network master clock.
The time synchronization of the base station and the TSN master clock is realized, and the time synchronization can be realized by referring to the existing network clock synchronization method based on IEEE 1588v 2. The base station may be considered a slave clock to the TSN master clock.
The TSN master clock may periodically send Sync Messages (time synchronization Messages) to the base station, where the Sync Messages contain timestamp information of the TSN master clock, and the Sync Messages are propagated to the base station through the network.
And S402, adjusting the local clock according to the time stamp information and the transmission delay in the time synchronization message so as to keep the local clock synchronous with the clock information of the local time sensitive network clock.
After receiving the Sync Messages sent by the TSN master clock, the base station replies to the TSN master clock by saving the time stamp information of the arrival of the Sync Messages and sending Delay Request Messages (delay request message). After the TSN master clock receives Delay Request Messages, the transmission delay between the base station and itself is calculated, and the delay information is sent back to the base station.
The base station uses the time stamp and delay information provided by the TSN master clock to calibrate its own clock. By continually receiving Sync Messages and delay information, the base station can gradually adjust its own local clock to maintain time synchronization with the TSN master clock.
S403, the time when the clock information of the local time sensitive network clock is kept synchronous is used as the current clock information of the local time sensitive network clock.
Then the time when the base station remains synchronized with the TSN master clock can be determined as the current clock information of the local TSN clock.
In an alternative mode, the terminal can integrate the GNSS module, the terminal can acquire GPS clock information by itself, and the base station can read the clock difference information from the SIB9 information after broadcasting the SIB9 information generated after writing the clock difference information to the terminal, and perform time synchronization with the TSN master clock according to the acquired GPS clock information.
In summary, the method for time synchronization in the 5G network provided by the scheme constructs a time synchronization system capable of supporting a plurality of TSN clock sources, and the 5G base station acquires GPS clock information through integrating the GNSS functional module. Different 5G base stations may dock with and synchronize to different TSN master clocks. The 5G base station defines an extension field in the SIB9 message for recording the difference in TSN clocks with which the GPS clock is synchronized. The 5G terminal can acquire the difference value by receiving the SIB9 message, and calculate and acquire the time of the TSN master clock connected with the 5G base station by utilizing the GPS clock information in the original field of the SIB9 message, thereby quickly realizing the synchronization with the TSN master clock. The 5G terminal is connected with the industrial equipment, and the connected industrial equipment and the local clock of the terminal are synchronized through an IEEE 1588v2 protocol.
In addition, by setting the timer, the terminal sends a time synchronization request to the base station after the timer reaches the set time, so that the problem of re-synchronization caused by the frequency drift of the local clock of the terminal after only one time of time synchronization can be avoided.
Fig. 5 is a flowchart of a method for time synchronization in a 5G network according to an embodiment of the present application; the execution subject of the method may be any terminal in the system shown in fig. 1. As shown in fig. 5, the method may include:
s501, sending a time synchronization request to a base station for establishing connection, wherein the time synchronization request is used for requesting to acquire a broadcast message.
The terminal may send a time synchronization request to the base station that established the connection to request acquisition of the SIB9 message.
S502, receiving a current broadcast message sent by a base station, wherein the current broadcast message comprises: current clock difference information between the local global positioning system clock and the local time sensitive network clock and current clock information of the local global positioning system clock.
The terminal may receive a current SIB9 message transmitted by the base station through a broadcast channel. The SIB9 message records current clock difference information between the local GPS clock and the local TSN clock, and current clock information of the local GPS clock.
S503, determining the local time synchronous with the time-sensitive network clock according to the current broadcast message and the propagation delay of the current broadcast message reaching the local.
The terminal can calculate and acquire a local clock synchronized with the TSN master clock according to the received SIB9 message and the local propagation delay of the SIB9 message reaching the terminal so as to update the local clock.
S504, updating the local clock according to the local time synchronized with the time sensitive network clock.
Alternatively, the terminal may update the current local clock to clock information synchronized with the TSN master clock.
In summary, according to the method for time synchronization in the 5G network provided in this embodiment, the terminal can quickly realize clock synchronization with the TSN master clock according to clock difference information between the local GPS clock and the local TSN clock and clock information of the local GPS clock recorded in the SIB9 message sent by the base station without replacing a chip.
Fig. 6 is a flowchart of another method for time synchronization in a 5G network according to an embodiment of the present application; optionally, in step S503, determining the local time synchronized with the time sensitive network clock according to the current broadcast message and the propagation delay of the current broadcast message to the local may include:
S601, calculating the current clock information of the local global positioning system clock and the difference value between the current clock difference information between the local global positioning system clock and the local time sensitive network clock through a time synchronization module.
S602, summing the difference value and the propagation delay of the current broadcast message reaching the local to obtain the local time synchronized with the time sensitive network clock.
In some embodiments, after receiving the SIB9 message sent by the base station, the terminal may inform a time synchronization module built in the terminal of field information in the SIB9 message. The time synchronization module may read field information in the SIB9 message, including: the current clock difference information delta between the local GPS clock and the local TSN clock is read, and the current clock information A of the local GPS clock is read.
Then the terminal may then follow the formula: t=a- Δ+d, the local time T synchronized with the TSN master clock is calculated.
Wherein, T represents the local time T synchronous with the TSN master clock, A represents the current clock information of the local GPS clock, delta represents the current clock difference information between the local GPS clock and the local TSN clock, and D represents the propagation delay of SIB9 information sent by the base station to the terminal.
Fig. 7 is a flowchart of a method for time synchronization in a 5G network according to an embodiment of the present application; optionally, in step S504, updating the local clock according to the local time synchronized with the time sensitive network clock may include:
s701, updating the local clock to a time synchronized with the time sensitive network clock, and starting the request timer.
Alternatively, the current local clock of the terminal may be updated to the same time as the calculated local time T synchronized with the TSN master clock, thereby completing the update of the local clock. Immediately thereafter, the request timer is started.
S702, if the request timer is overtime, a new time synchronization request is sent to the base station again.
When the request timer is overtime, the terminal initiates a time synchronization request to the base station again, so that a new time synchronization can be performed again according to the flow of the method. To overcome the problem of re-synchronization caused by frequency drift of the local clock of the terminal.
Optionally, in step S504, after updating the local clock according to the local time synchronized with the time sensitive network clock, the method further includes: and establishing a clock synchronization relationship with at least one industrial device which establishes connection through a time synchronization module so as to enable each industrial device to realize synchronization with a local clock.
After the terminal finishes updating the local clock, a clock synchronization relationship can be established between the time synchronization module and the connected industrial equipment by using a time synchronization method based on an IEEE 1588v2 protocol, so that the clock of the industrial equipment is synchronized with the local clock of the terminal, and the clock synchronization of the industrial equipment and the TSN master clock is achieved.
The time synchronization of the industrial equipment and the terminal can be performed by referring to the synchronization of the base station and the TSN master clock in steps S401-S403.
In an alternative way, the base station may write the calculated clock difference information Δ in the leap seconds field in the SIB9 message and broadcast the SIB9 message to the terminal. The terminal can calculate the time of the TSN master clock according to UTC (Coordinated Universal Time, coordinated time, global unified time standard) in the SIB9 message, the leapSeonds field and the propagation delay of the SIB9 message sent by the base station to the terminal, and update the local clock with the time to realize the time synchronization with the TSN master clock.
Fig. 8 is a signaling interaction schematic diagram of a method for time synchronization in a 5G network according to an embodiment of the present application. Fig. 8 is an example of a flow of one time synchronization, and does not illustrate a flow of reinitiating a time synchronization request again after a timer expires. As shown in fig. 8:
S801, after a base station is started, current time service information of a GPS is obtained from a built-in GNSS module, and current clock information of a local GPS clock is determined.
S802, the base station establishes a clock synchronization relationship with a TSN master clock through an IEEE 1588v2 protocol, and determines current clock information of a local TSN clock.
S803, after the terminal accesses the 5G network, a time synchronization request is sent to the base station.
S804, after receiving the time synchronization request, the base station calculates clock difference information between the current clock information of the local GPS clock and the current clock information of the local TSN clock, and generates a current SIB9 message according to the clock difference information and the current clock information of the local GPS clock.
S805, sending the current SIB9 message to the terminal.
S806, the terminal reads the SIB9 information, informs a time synchronization module built in the terminal of field information in the SIB9 information, and the time synchronization module reads the field information in the SIB9 information, calculates the local time synchronized with the TSN master clock according to clock difference information between the current clock information of the local GPS clock and the current clock information of the local TSN clock, the current clock information of the local GPS clock and propagation delay of the SIB9 information reaching the terminal, and updates the local clock.
S807, the time synchronization module establishes a clock synchronization relationship with the industrial equipment through IEEE 1588v2, so that the clock of the industrial equipment is synchronized with the local clock of the terminal.
The specific implementation of each step in fig. 8 is not repeated.
The following describes a device, equipment, a storage medium, etc. for executing the method for time synchronization in the 5G network provided in the present application, and specific implementation processes and technical effects of the method are referred to above, which are not described in detail below.
Fig. 9 is a schematic diagram of a time synchronization device in a 5G network according to an embodiment of the present application, where functions implemented by the time synchronization device in the 5G network correspond to the method steps implemented by the 5G base station side. As shown in fig. 9, the apparatus may include: a receiving module 910, a generating module 920, and a transmitting module 930;
a receiving module 910, configured to receive a time synchronization request sent by a terminal, where the time synchronization request is used to request to acquire a broadcast message;
the generating module 920 is configured to determine current clock difference information according to the determined current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock, and write the current clock difference information and the current clock information of the local global positioning system clock into a designated field in the broadcast message to generate a current broadcast message;
And the sending module 930 is configured to send a current broadcast message to the terminal, so that the terminal updates a local clock of the terminal according to the current broadcast message, and according to the local clock, clock synchronization is implemented between each industrial device connected under the terminal and the local clock of the terminal.
Optionally, the receiving module 910 is specifically configured to receive a time synchronization request sent by the terminal when the timer reaches the set time.
Optionally, the generating module 920 is specifically configured to obtain current time service information of the global positioning system through the integrated global navigation satellite system module, and determine current clock information of the local global positioning system clock according to the current time service information of the global positioning system;
establishing a clock synchronization relationship with a corresponding time sensitive network master clock based on a designated protocol, and determining current clock information of a local time sensitive network clock;
and determining the current clock difference information between the local global positioning system clock and the local time sensitive network clock according to the current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock.
Optionally, the generating module 920 is specifically configured to receive a time synchronization message sent by the time sensitive network master clock and a transmission delay of the time synchronization message, where the time synchronization message includes timestamp information of the time sensitive network master clock;
According to the time stamp information and the transmission delay in the time synchronization message, the local clock is adjusted so as to keep the local clock synchronous with the clock information of the local time sensitive network clock;
the time when the clock information of the local time sensitive network clock is kept synchronous is used as the current clock information of the local time sensitive network clock.
Fig. 10 is a schematic diagram of another apparatus for time synchronization in a 5G network according to an embodiment of the present application, where functions implemented by the apparatus for time synchronization in the 5G network correspond to the method steps implemented by the terminal side. As shown in fig. 10, the apparatus may include: a transmitting module 110, a receiving module 120, a determining module 130, and an updating module 140;
a transmitting module 110, configured to transmit a time synchronization request to a base station that establishes a connection, where the time synchronization request is used to request acquisition of a broadcast message;
the receiving module 120 is configured to receive a current broadcast message sent by a base station, where the current broadcast message includes: current clock difference information between the local global positioning system clock and the local time sensitive network clock and current clock information of the local global positioning system clock;
a determining module 130, configured to determine a local time synchronized with the time-sensitive network clock according to the current broadcast message and a propagation delay of the current broadcast message to reach the local;
An updating module 140, configured to update the local clock according to the local time synchronized with the time sensitive network clock.
Optionally, the determining module 130 is specifically configured to calculate, by using the time synchronization module, a difference value between current clock information of the local global positioning system clock and current clock difference information between the local global positioning system clock and the local time-sensitive network clock;
and summing the difference value and the local propagation delay of the current broadcast message to obtain the local time synchronized with the time sensitive network clock.
Optionally, the updating module 140 is specifically configured to update the local clock to a time synchronized with the time sensitive network clock, and start the request timer;
if the request timer times out, a new time synchronization request is sent to the base station again.
Optionally, the updating module 140 is further configured to establish a clock synchronization relationship with at least one industrial device that establishes a connection through the time synchronization module, so that each industrial device is synchronized with a local clock.
The foregoing apparatus is used for executing the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more microprocessors (digital singnal processor, abbreviated as DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), or the like. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
The modules may be connected or communicate with each other via wired or wireless connections. The wired connection may include a metal cable, optical cable, hybrid cable, or the like, or any combination thereof. The wireless connection may include a connection through a LAN, WAN, bluetooth, zigBee, or NFC, or any combination thereof. Two or more modules may be combined into a single module, and any one module may be divided into two or more units. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the method embodiments, which are not described in detail in this application.
Fig. 11 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, where the device may be the above-mentioned 5G base station or terminal.
The apparatus may include: a processor 801, and a storage medium 802.
The storage medium 802 is used to store a program, and the processor 801 calls the program stored in the storage medium 802 to execute the above-described method embodiment. The specific implementation manner and the technical effect are similar, and are not repeated here.
In which the storage medium 802 stores program code that, when executed by the processor 801, causes the processor 801 to perform various steps in the method of time synchronization in a 5G network according to various exemplary embodiments of the present application described in the section of the description of the exemplary method above.
The processor 801 may be a general purpose processor such as a Central Processing Unit (CPU), digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, and may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
The storage medium 802 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The storage medium may include at least one type of storage medium, and may include, for example, flash Memory, a hard disk, a multimedia card, a card-type storage medium, a random access storage medium (Random Access Memory, RAM), a static random access storage medium (Static Random Access Memory, SRAM), a programmable Read-Only storage medium (Programmable Read Only Memory, PROM), a Read-Only storage medium (ROM), a charged erasable programmable Read-Only storage medium (Electrically Erasable Programmable Read-Only storage), a magnetic storage medium, a magnetic disk, an optical disk, and the like. A storage medium is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The storage medium 802 in the embodiments of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
Optionally, the present application also provides a program product, such as a computer readable storage medium, comprising a program for performing the above-described method embodiments when being executed by a processor.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.

Claims (10)

1. The method for time synchronization in the 5G network is characterized by being applied to base stations in the 5G network, wherein the 5G network comprises a plurality of base stations, and time-sensitive network clock sources and terminals which are connected with the base stations in a one-to-one correspondence manner; each base station is connected to a corresponding time-sensitive network clock source according to the clock type requirement of the industrial equipment under the connected terminal, and the method comprises the following steps:
Receiving a time synchronization request sent by a terminal, wherein the time synchronization request is used for requesting to acquire a broadcast message;
determining current clock difference information according to the determined current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock, and writing the current clock difference information and the current clock information of the local global positioning system clock into a designated field in a broadcast message to generate a current broadcast message;
and sending the current broadcast message to the terminal so that the terminal updates the local clock of the terminal according to the current broadcast message and realizes clock synchronization of each industrial device connected under the terminal and the local clock of the terminal according to the local clock.
2. The method of claim 1, wherein the receiving the time synchronization request sent by the terminal comprises:
and receiving a time synchronization request sent by the terminal when the timer reaches the set time.
3. The method of claim 1, wherein determining current clock difference information based on the determined current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock comprises:
Acquiring current time service information of a global positioning system through an integrated global navigation satellite system module, and determining current clock information of a local global positioning system clock according to the current time service information of the global positioning system;
establishing a clock synchronization relationship with a corresponding time sensitive network master clock based on a designated protocol, and determining current clock information of a local time sensitive network clock;
and determining the current clock difference information between the local global positioning system clock and the local time sensitive network clock according to the current clock information of the local global positioning system clock and the current clock information of the local time sensitive network clock.
4. The method of claim 3, wherein the determining the current clock information of the local time sensitive network clock based on the clock synchronization relationship between the specified protocol and the corresponding time sensitive network master clock comprises:
receiving a time synchronization message sent by the time sensitive network master clock and a transmission delay of the time synchronization message, wherein the time synchronization message comprises time stamp information of the time sensitive network master clock;
according to the time stamp information in the time synchronization message and the transmission delay, adjusting a local clock so as to keep the local clock synchronous with the clock information of a local time sensitive network clock;
And taking the time when the clock information of the local time-sensitive network clock is kept synchronous with the clock information of the local time-sensitive network clock as the current clock information of the local time-sensitive network clock.
5. A method for time synchronization in a 5G network, which is applied to a terminal in the 5G network; the method comprises the following steps:
sending a time synchronization request to a base station for establishing connection, wherein the time synchronization request is used for requesting to acquire a broadcast message;
receiving a current broadcast message sent by the base station, wherein the current broadcast message comprises the following components: current clock difference information between the local global positioning system clock and the local time sensitive network clock and current clock information of the local global positioning system clock;
determining local time synchronized with the time-sensitive network clock according to the current broadcast message and the local propagation delay of the current broadcast message;
and updating the local clock according to the local time synchronized with the time sensitive network clock.
6. The method of claim 5, wherein said determining a local time synchronized with said time sensitive network clock based on said current broadcast message and a propagation delay of said current broadcast message to local comprises:
Calculating the current clock information of the local global positioning system clock and the difference value between the current clock difference information between the local global positioning system clock and the local time sensitive network clock through a time synchronization module;
and summing the difference value and the propagation delay of the current broadcast message reaching the local to obtain the local time synchronized with the time sensitive network clock.
7. The method of claim 5, wherein updating the local clock based on the local time synchronized to the time sensitive network clock comprises:
updating the local clock to be synchronous with the time sensitive network clock, and starting a request timer;
and if the request timer is overtime, a new time synchronization request is sent to the base station again.
8. The method of claim 5, wherein updating the local clock based on the local time synchronized to the time sensitive network clock further comprises:
and establishing a clock synchronization relationship with at least one industrial device which establishes a connection through a time synchronization module so as to enable each industrial device to realize synchronization with the local clock.
9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing program instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the program instructions to implement a method of time synchronization in a 5G network as claimed in any one of claims 1 to 8.
10. A computer readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, is adapted to carry out a method of time synchronization in a 5G network according to any of claims 1 to 8.
CN202311780515.3A 2023-12-21 2023-12-21 Method and device for time synchronization in 5G network, electronic equipment and storage equipment Pending CN117545061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311780515.3A CN117545061A (en) 2023-12-21 2023-12-21 Method and device for time synchronization in 5G network, electronic equipment and storage equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311780515.3A CN117545061A (en) 2023-12-21 2023-12-21 Method and device for time synchronization in 5G network, electronic equipment and storage equipment

Publications (1)

Publication Number Publication Date
CN117545061A true CN117545061A (en) 2024-02-09

Family

ID=89796054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311780515.3A Pending CN117545061A (en) 2023-12-21 2023-12-21 Method and device for time synchronization in 5G network, electronic equipment and storage equipment

Country Status (1)

Country Link
CN (1) CN117545061A (en)

Similar Documents

Publication Publication Date Title
CN110324889B (en) Clock synchronization method, communication device and communication equipment
US11006378B2 (en) Synchronizing clocks in a wireless system
CN113328820B (en) Method for interacting time synchronization message and network device
JP2016535947A (en) Global time synchronization server for wireless devices
WO2023108656A1 (en) Measurement method and apparatus for global navigation satellite system (gnss)
WO2020043181A1 (en) Clock synchronization method and apparatus, system, storage medium, and electronic device
WO2020001367A1 (en) Time information correction method and device
WO2019228221A1 (en) Clock synchronization method and apparatus, terminal device, chip, and readable storage medium
US20140269645A1 (en) Wireless access point synchronization
US20240049159A1 (en) Positioning method, device, apparatus and readable storage medium
US11432254B2 (en) UE initiated propagation delay compensation mechanism
US11863292B2 (en) Coordinated satellite and terrestrial channel utilization
Thi et al. IEEE 802.1 TSN time synchronization over Wi-Fi and 5G mobile networks
Krummacker et al. Intra-network clock synchronization for wireless networks: From state of the art systems to an improved solution
CN112953668A (en) Time service method of communication system and related equipment
US20210345444A1 (en) Data transmission method, related device, and system
WO2016065642A1 (en) Synchronization device and method
CN117545061A (en) Method and device for time synchronization in 5G network, electronic equipment and storage equipment
US20180146442A1 (en) Radio network synchronization of a mobile communication network with a local clock functionality providing a local timing reference for each base station entity
CN111641937B (en) Communication system, first node, gateway, network server and time synchronization method
WO2021159262A1 (en) Threshold value adjustment method and apparatus for timing advance
TW202143766A (en) Time synchronization operation in vehicle communication
US10554319B2 (en) Wireless communications with time synchronization processing
US20240040526A1 (en) Time of Arrival Method for UE Positioning in Distributed RAN System Architecture
JP2024053608A (en) Time synchronization device, time synchronization method, and time synchronization program

Legal Events

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