[go: up one dir, main page]

CN114745776A - Clock synchronization method, device, equipment and medium based on wireless network - Google Patents

Clock synchronization method, device, equipment and medium based on wireless network Download PDF

Info

Publication number
CN114745776A
CN114745776A CN202210659123.0A CN202210659123A CN114745776A CN 114745776 A CN114745776 A CN 114745776A CN 202210659123 A CN202210659123 A CN 202210659123A CN 114745776 A CN114745776 A CN 114745776A
Authority
CN
China
Prior art keywords
clock
edge
synchronization
equipment
local
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.)
Granted
Application number
CN202210659123.0A
Other languages
Chinese (zh)
Other versions
CN114745776B (en
Inventor
俞一帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202210659123.0A priority Critical patent/CN114745776B/en
Publication of CN114745776A publication Critical patent/CN114745776A/en
Application granted granted Critical
Publication of CN114745776B publication Critical patent/CN114745776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a clock synchronization method, a clock synchronization device, clock synchronization equipment and a clock synchronization medium based on a wireless network, and relates to the technical field of communication. The method may be applied to a slave clock device, the method comprising: receiving a first synchronous message sent by edge clock equipment, wherein the first synchronous message comprises a first local target clock, the first local target clock is used for indicating the sending time of the first synchronous message, and the first local target clock is obtained by correcting the first local clock of the edge clock equipment by the edge clock equipment according to the current clock of main clock equipment; and correcting a second local clock of the slave clock equipment according to the first synchronization message to obtain a second local target clock, and keeping the second local target clock and the first local target clock in clock synchronization, so that the slave clock equipment and the master clock equipment can keep clock synchronization through the edge clock equipment.

Description

Clock synchronization method, device, equipment and medium based on wireless network
Technical Field
The present application relates to the field of communications technologies, and in particular, to a clock synchronization method, apparatus, device, and medium based on a wireless network.
Background
The fifth Generation mobile communication technology (5 th Generation mobile networks or 5th Generation with less systems, 5th-Generation, 5G or 5G technology for short) is the latest Generation cellular mobile communication technology. The 5G local network developed based on the 5G technology is also called a private 5G network, and it uses the 5G technology to create a private network on the local user site, and the network has uniform connectivity, optimized service and secure communication mode in a specific area, and provides the characteristics of high transmission speed, low delay and massive connection supported by the 5G technology.
Conventionally, when clock synchronization between a master Device and a slave Device is to be achieved in a 5G Network, a DS-TT (Device-side TSN translator) module is often deployed on a User Equipment (UE) side, and a NW-TT (Network-side TSN translator) module is deployed on an UPF side.
It can be seen that the existing clock synchronization method is often implemented by modifying the existing 5G network in a large scale, and therefore, the clock synchronization cost is high.
Disclosure of Invention
An object of the present application is to provide a clock synchronization method, apparatus, device and medium based on a wireless network, which can effectively reduce the clock synchronization cost, in view of the above disadvantages in the prior art.
In order to achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
in a first aspect, the present invention provides a clock synchronization method based on a wireless network, applied to a slave clock device, where the slave clock device is in communication connection with a user terminal, the user terminal is in communication connection with a User Plane Function (UPF), and the UPF is in communication connection with a master clock device through a network device, and the method includes:
receiving a first synchronization message sent by edge clock equipment, wherein the first synchronization message comprises a first local target clock, the first local target clock is used for indicating the sending time of the first synchronization message, and the first local target clock is obtained by correcting the first local clock of the edge clock equipment by the edge clock equipment according to the current clock of the main clock equipment;
and correcting a second local clock of the slave clock equipment according to the first synchronization message to obtain a second local target clock, wherein the second local target clock keeps clock synchronization with the first local target clock, and the second local target clock is used for indicating the receiving time of the first synchronization message.
In an optional embodiment, the modifying the second local clock of the slave clock device according to the first synchronization packet to obtain a second local target clock includes:
acquiring a first clock deviation of the slave clock equipment relative to the edge clock equipment according to the first synchronous message;
and correcting the second local clock according to the first clock deviation to obtain the second local target clock.
In an optional implementation manner, the obtaining, according to the first synchronization packet, a first clock offset of the slave clock device with respect to the edge clock device includes:
acquiring a first one-way delay from the slave clock equipment to the edge clock equipment according to the first synchronization message;
and acquiring a first clock deviation of the slave clock equipment relative to the edge clock equipment according to the first one-way delay, the first local target clock and the receiving time of the slave clock equipment for receiving the first synchronous message.
In an optional embodiment, the obtaining, according to the first synchronization packet, a first one-way delay from the slave clock device to the edge clock device includes:
after receiving the first synchronization message, the slave clock equipment sends a first delay request message to the edge clock equipment;
receiving a first delay request response message sent by the edge clock device according to the first delay request message, where the first delay request response message includes a receiving time of the edge clock device receiving the first delay request message and an uplink-downlink ratio of a target base station corresponding to the slave clock device, where the uplink-downlink ratio is used to represent a ratio of uplink radio resources and downlink radio resources of the target base station;
and acquiring a first one-way delay from the slave clock equipment to the edge clock equipment according to the first local target clock, the receiving time of the slave clock equipment for receiving the first synchronous message, the sending time of the slave clock equipment for sending a first delay request message, the receiving time of the edge clock equipment for receiving the first delay request message and the uplink-downlink ratio of the target base station.
In an optional embodiment, the uplink and downlink configuration of the target base station corresponding to the slave clock device is obtained by querying, by the edge clock device, a network service presentation function NEF according to the identifier of the user terminal corresponding to the slave clock device.
In a second aspect, the present invention provides a clock synchronization method based on a wireless network, which is applied to an edge clock device, where the edge clock device is in communication connection with a master clock device through a network device, the network device is in communication connection with a UPF, the UPF is in communication connection with a user terminal, and the user terminal is in communication connection with a slave clock device, and the method includes:
correcting a first local clock of the edge clock device according to the current clock of the main clock device to obtain a first local target clock;
and sending a first synchronization message to the slave clock equipment, wherein the first synchronization message comprises the first local target clock.
In an optional implementation manner, the modifying the first local clock of the edge clock device according to the current clock of the master clock device to obtain a first local target clock includes:
receiving a second synchronization message sent by the master clock device based on the current clock, where the second synchronization message includes: the current clock is used for indicating the time of the master clock for sending the second synchronous message;
acquiring a second clock deviation of the edge clock equipment relative to the main clock equipment according to the second synchronous message;
and correcting the first local clock according to the second clock deviation to obtain the first local target clock.
In an optional implementation manner, the obtaining, according to the second synchronization packet, a second clock offset of the edge clock device with respect to the master clock device includes:
acquiring a second one-way delay from the main clock equipment to the edge clock equipment according to the second synchronous message;
and acquiring a second clock deviation of the edge clock device relative to the main clock device according to the second one-way delay, the current clock and the receiving time of the edge clock device for receiving the second synchronous message.
In a third aspect, the present invention provides a clock synchronization apparatus based on a wireless network, which is applied to a slave clock device, where the slave clock device is in communication connection with a user terminal, the user terminal is in communication connection with a User Plane Function (UPF), and the UPF is in communication connection with a master clock device through a network device, and the clock synchronization apparatus includes:
a receiving module, configured to receive a first synchronization packet sent by an edge clock device, where the first synchronization packet includes a first local target clock, the first local target clock is used to indicate a sending time of the first synchronization packet, and the first local target clock is obtained by modifying, by the edge clock device, a first local clock of the edge clock device according to a current clock of the master clock device;
and the correction module is used for correcting a second local clock of the slave clock equipment according to the first synchronization message to obtain a second local target clock, and the second local target clock is synchronous with the current clock.
In an optional implementation manner, the correction module is specifically configured to obtain, according to the first synchronization packet, a first clock offset of the slave clock device relative to the edge clock device;
and correcting the second local clock according to the first clock deviation to obtain the second local target clock.
In an optional embodiment, the modification module is specifically configured to obtain, according to the first synchronization packet, a first one-way delay from the slave clock device to the edge clock device;
and acquiring a first clock deviation of the slave clock equipment relative to the edge clock equipment according to the first one-way delay, the first local target clock and the receiving time of the slave clock equipment for receiving the first synchronous message.
In an optional implementation manner, the modification module is specifically configured to send a first delay request packet to the edge clock device after the slave clock device receives the first synchronization packet;
receiving a first delay request response message sent by the edge clock device according to the first delay request message, where the first delay request response message includes a receiving time when the edge clock device receives the first delay request message and an uplink-downlink ratio of a target base station corresponding to the slave clock device, where the uplink-downlink ratio is used to represent a ratio of uplink radio resources to downlink radio resources of the target base station;
and acquiring a first one-way delay from the slave clock equipment to the edge clock equipment according to the first local target clock, the receiving time of the slave clock equipment for receiving the first synchronous message, the sending time of the slave clock equipment for sending a first delay request message, the receiving time of the edge clock equipment for receiving the first delay request message and the uplink-downlink ratio of the target base station.
In an optional embodiment, the uplink and downlink configuration of the target base station corresponding to the slave clock device is obtained by querying, by the edge clock device, a network service presentation function NEF according to the identifier of the user terminal corresponding to the slave clock device.
In a fourth aspect, the present invention provides a clock synchronization apparatus based on a wireless network, which is applied to an edge clock device, where the edge clock device is in communication connection with a master clock device through a network device, the network device is in communication connection with a UPF, the UPF is in communication connection with a user terminal, and the user terminal is in communication connection with a slave clock device, where the clock synchronization apparatus includes:
the correction module is used for correcting a first local clock of the edge clock device according to the current clock of the main clock device to obtain a first local target clock;
and the processing module is used for sending a first synchronization message to the slave clock equipment, wherein the first synchronization message comprises the first local target clock.
In an optional embodiment, the modification module is specifically configured to receive a second synchronization packet sent by the master clock device based on the current clock;
acquiring a second clock deviation of the edge clock equipment relative to the main clock equipment according to the second synchronous message;
and correcting the first local clock according to the second clock deviation to obtain the first local target clock.
In an optional embodiment, the modification module is specifically configured to obtain, according to the second synchronization packet, a second one-way delay from the edge clock device to the master clock device;
and acquiring a second clock deviation of the edge clock device relative to the master clock device according to the second one-way delay and the receiving time of the edge clock device for receiving the second synchronous message.
In a fifth aspect, the present invention provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the storage medium communicate with each other through the bus, and the processor executes the machine-readable instructions to perform the steps of the wireless network-based clock synchronization method according to any one of the first aspect or the second aspect of the foregoing embodiments.
In a sixth aspect, the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the wireless network-based clock synchronization method according to any one of the first or second aspects of the aforementioned embodiments.
The beneficial effect of this application is:
the clock synchronization method, device, equipment and medium based on the wireless network provided by the embodiment of the application can be applied to slave clock equipment, the slave clock equipment is in communication connection with a user terminal, the user terminal is in communication connection with a User Plane Function (UPF), and the UPF is in communication connection with a master clock equipment through network equipment, and the method comprises the following steps: receiving a first synchronous message sent by edge clock equipment, wherein the first synchronous message comprises a first local target clock, the first local target clock is used for indicating the sending time of the first synchronous message, and the first local target clock is obtained by correcting the first local clock of the edge clock equipment by the edge clock equipment according to the current clock of main clock equipment; the second local clock of the slave clock device is corrected according to the first synchronization message to obtain a second local target clock, the second local target clock and the first local target clock keep clock synchronization, and the second local target clock is used for indicating the receiving time of the first synchronization message, so that the edge clock device can keep clock synchronization with the master clock device, and the slave clock device can keep clock synchronization with the edge clock device, therefore, the slave clock device and the master clock device can keep clock synchronization, the existing local communication system does not need to be changed in a large scale in the implementation process, and the clock synchronization cost can be effectively reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic diagram of a network architecture suitable for use in the method provided by the embodiments of the present application;
fig. 2 is a schematic flowchart of a clock synchronization method based on a wireless network according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application;
fig. 6 is an interaction diagram of a clock synchronization method based on a wireless network according to an embodiment of the present application;
fig. 7 is a schematic flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application;
fig. 8 is a schematic flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application;
fig. 9 is a schematic flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application;
fig. 10 is a schematic flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application;
fig. 11 is an interaction diagram of another clock synchronization method based on a wireless network according to an embodiment of the present application;
fig. 12 is a functional block diagram of a clock synchronization apparatus based on a wireless network according to an embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures.
The technical scheme of the embodiment of the application can be applied to various local communication systems, such as: global system for mobile communications (GSM) systems, Code Division Multiple Access (CDMA) systems, Wideband Code Division Multiple Access (WCDMA) systems, General Packet Radio Service (GPRS), Long Term Evolution (LTE) systems, LTE Frequency Division Duplex (FDD) systems, LTE Time Division Duplex (TDD), universal mobile telecommunications system (universal mobile telecommunications system, UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication systems, fifth generation (5G) communication systems, or future radio access (NR) technologies.
Fig. 1 is a schematic diagram of a network architecture suitable for the method provided in the embodiment of the present application. As shown in fig. 1, the network architecture may be, for example, a non-roaming (non-roaming) architecture. The network architecture may specifically include the following network elements:
1. terminal equipment (UE): may be referred to as user equipment, a terminal, an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent, or user equipment. The UE may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G network or a terminal device in a Public Land Mobile Network (PLMN) for future evolution, and the like, and may also be an end device, a logic entity, an intelligent device, a terminal device such as a mobile phone, an intelligent terminal, and the like, or a communication device such as a server, a gateway, a base station, a controller, and the like, or an Internet of things device such as a sensor, an electric meter, a water meter, and the like (Internet of things, IoT) device. The embodiments of the present application do not limit this.
2. Access Network (AN): the method provides a network access function for authorized users in a specific area, and can use transmission tunnels with different qualities according to the level of the users, the requirements of services and the like. The access network may be an access network employing different access technologies. There are two types of current radio access technologies: third generation partnership project (3 GPP) access technologies such as the radio access technologies employed in 3G, 4G or 5G systems and non-third generation partnership project (non-3 GPP) access technologies. The 3GPP access technology refers to an access technology meeting 3GPP standard specifications, and an access network adopting the 3GPP access technology is referred to as a Radio Access Network (RAN), where an access network device in a 5G system is referred to as a next generation Base station (gNB). The non-3GPP access technology refers to an access technology that does not conform to the 3GPP standard specification, for example, an air interface technology represented by an Access Point (AP) in WIFI.
An access network that implements an access network function based on a wireless communication technology may be referred to as a Radio Access Network (RAN). The radio access network can manage radio resources, provide access service for the terminal, and further complete the forwarding of control signals and user data between the terminal and the core network.
The access network equipment may include, among other things, equipment in the access network that communicates over the air-interface, through one or more sectors, with the wireless terminals. The access network system may be configured to interconvert received air frames and Internet Protocol (IP) packets as routers between the wireless terminal and the rest of the access network, which may include an IP network. The radio access network system may also coordinate management of attributes for the air interface. It should be understood that access network devices include, but are not limited to: evolved node B (eNB), Radio Network Controller (RNC), Node B (NB), Base Station Controller (BSC), Base Transceiver Station (BTS), home base station (e.g., home evolved node B or home node B, HNB), baseband unit (BBU), wireless fidelity (WIFI), etc., and may also be 5G, such as NR, a gbb in the system, or a transmission point (TRP or TP), a group of antennas (including multiple antennas) of a base station in the 5G system, or a panel of a base station (NB), such as a network node (RNC), a Base Transceiver Station (BTS), a base transceiver station (BBU), etc., and may also be a wireless relay node (AP), a wireless backhaul node (HNB), a wireless relay node (BBU), a transmission point (TRP or TP), or a transmission point (NB) in the 5G system, or a panel of a base station (NB), or a network panel of a base station (NB), such as a network node B, a base transceiver station (NB), or a base transceiver station (BBU), or a wireless relay node (nbb, a wireless relay node B, a base station (eNB), or a base station (BBU), or a wireless relay node B, a base station (eNB), or a base station (B, a wireless relay node B, a base station (base station, a wireless relay node B, a wireless terminal, or, a Distributed Unit (DU), etc.
In some deployments, the gNB may include Centralized Units (CUs) and DUs. The gNB may also include a Radio Unit (RU). The CU implements part of the function of the gNB, and the DU implements part of the function of the gNB, for example, the CU implements Radio Resource Control (RRC) and Packet Data Convergence Protocol (PDCP) layers, and the DU implements Radio Link Control (RLC), Medium Access Control (MAC) and Physical (PHY) layers. Since the information of the RRC layer eventually becomes or is converted from the information of the PHY layer, the higher layer signaling, such as the RRC layer signaling, may also be considered to be transmitted by the DU or the DU + CU under this architecture. It is to be understood that the access network device may be a CU node, or a DU node, or a device comprising a CU node and a DU node. In addition, the CU may be divided into access network devices in a Radio Access Network (RAN), or may be divided into access network devices in a Core Network (CN), which is not limited herein.
3. Access and mobility management function (AMF) entity: the method is mainly used for mobility management, access management, and the like, and can be used for implementing functions other than session management in Mobility Management Entity (MME) functions, such as functions of lawful interception, or access authorization (or authentication), and the like. In the embodiment of the present application, the method and the device can be used for implementing the functions of the access and mobility management network element.
4. Session Management Function (SMF) entity: the method is mainly used for session management, Internet Protocol (IP) address allocation and management of the UE, selection of a termination point of an interface capable of managing a user plane function, policy control or charging function, downlink data notification, and the like. In the embodiment of the present application, the method and the device can be used for implementing the function of the session management network element.
5. User Plane Function (UPF) entity: i.e. a data plane gateway. The method can be used for packet routing and forwarding, or quality of service (QoS) processing of user plane data, and the like. The user data can be accessed to a Data Network (DN) through the network element. In the embodiment of the application, the method can be used for realizing the function of the user plane gateway.
6. Policy Control Function (PCF) entity: the unified policy framework is used for guiding network behaviors, providing policy rule information for control plane function network elements (such as AMF and SMF network elements) and the like.
7. Unified Data Management (UDM) entity: for handling subscriber identification, access authentication, registration, or mobility management, etc.
8. N3IWF (Non-3 GPP Interwork Function, Non-3GPP interworking Function): is responsible for accessing untrusted non-3GPP access networks (such as Wi-Fi) to the 5G core network. UE and N3IWF establish an IPsec tunnel, and N3IWF accesses the control plane and the user plane of the 5G core network through an N2 interface and an N3 interface respectively.
In the network architecture, an N1 interface is a reference point between a terminal and an AMF entity; the N2 interface is a reference point of AN and AMF entities, and is used for sending non-access stratum (NAS) messages and the like; the N3 interface is a reference point between (R) AN and UPF entities, for transmitting user plane data, etc.; the N4 interface is a reference point between the SMF entity and the UPF entity, and is used to transmit information such as tunnel identification information, data cache indication information, and downlink data notification message of the N3 connection; the N6 interface is a reference point between the UPF entity and the DN for transmitting user plane data, etc.
It should be understood that the network architecture applied to the embodiments of the present application is only an exemplary network architecture described in terms of a conventional point-to-point architecture and a service architecture, and the network architecture to which the embodiments of the present application are applied is not limited thereto, and any network architecture capable of implementing the functions of the network elements described above is applicable to the embodiments of the present application.
It should also be understood that the AMF entity, SMF entity, UPF entity, PCF entity and UDM entity shown in fig. 1 may be understood as network elements in the core network for implementing different functions, e.g. may be combined into network slices as needed. The core network elements may be independent devices, or may be integrated in the same device to implement different functions, which is not limited in this application.
Hereinafter, for convenience of description, an entity for implementing the AMF will be referred to as an AMF, and an entity for implementing the PCF will be referred to as a PCF. It should be understood that the above-mentioned names are only used for distinguishing different functions, and do not represent that these network elements are separate physical devices, and the present application is not limited to the specific form of the above-mentioned network elements, for example, the network elements may be integrated in the same physical device, or may be different physical devices. Furthermore, the above nomenclature is only used to distinguish between different functions, and should not be construed as limiting the application in any way, and this application does not exclude the possibility of other nomenclature being used in 5G networks and other networks in the future. For example, in a 6G network, some or all of the above network elements may follow the terminology in 5G, and may also adopt other names, etc. The description is unified here, and will not be repeated below.
It should also be understood that the name of the interface between each network element in fig. 1 is only an example, and the name of the interface in the specific implementation may be other names, which is not specifically limited in this application. In addition, the name of the transmitted message (or signaling) between the network elements is only an example, and the function of the message itself is not limited in any way.
In the prior art, if clock synchronization between a master Device and a slave Device needs to be achieved in a 5G Network, a DS-TT (Device-side TSN translator) module needs to be deployed on a User Equipment (UE) side, and a NW-TT (Network-side TSN translator) module needs to be deployed on an UPF side, so that the existing clock synchronization method needs to be implemented by modifying the existing 5G Network in a large scale, and the problem of high clock synchronization cost exists.
In view of this, the present application provides a clock synchronization method based on a wireless network, and the method can implement clock synchronization between a master device and a slave device in a local communication system, and can effectively reduce clock synchronization cost without changing the existing local communication system on a large scale.
Fig. 2 is a flowchart of a clock synchronization method based on a wireless network according to an embodiment of the present application, where the method may be applied to a slave clock device, where the slave clock device may be communicatively connected to a user terminal in a local communication system, a user terminal UE may be communicatively connected to a user plane function UPF in the local communication system, and the UPF is communicatively connected to a master clock device in the local communication system through a network device. The master clock device is a clock device that generates an accurate timing signal to perform clock synchronization on the devices to be synchronized, and optionally, the slave clock device as the device to be synchronized may be a controller, an instrument device, and the like, which is not limited herein. In addition, the network devices in the embodiments of the present application may include, but are not limited to: switches, routers, etc., as shown with reference to fig. 1, the network device may be a switch. It can be understood that, based on the network architecture of the embodiment of the present application, a first transmission path between the network device and the master clock device and a second transmission path between the network device and the edge clock device may be symmetric paths, so as to ensure that a Precision Time Protocol (PTP) is supported. As shown in fig. 2, the method may include:
s101, receiving a first synchronous message sent by edge clock equipment, wherein the first synchronous message comprises a first local target clock.
The first local target clock is obtained by correcting the first local clock of the edge clock device by the edge clock device according to the current clock of the master clock device, so that the edge clock device can keep clock synchronization with the master clock device.
Based on the condition that the edge clock device and the master clock device maintain clock synchronization, the edge clock device may send a first synchronization packet (Sync _ 1) to the master clock device based on a first local target clock (tA _ 1), record the sending time of the first synchronization packet, and carry the sending time of the first synchronization packet in the first synchronization packet, that is, carry the first local target clock in the first synchronization packet. For the slave clock device, it may receive the first synchronization message and record the time of receipt (tA _ 2) of the first synchronization message.
S102, correcting a second local clock of the slave clock equipment according to the first synchronous message to obtain a second local target clock, wherein the second local target clock keeps clock synchronization with the first local target clock, and the second local target clock is used for indicating the receiving time of the first synchronous message.
After receiving the first synchronization packet, the slave clock device may modify the second local clock according to the sending time of the first synchronization packet and the receiving time of the first synchronization packet (i.e., the second local clock), so that the modified second local target clock may keep clock synchronization with the first local target clock.
It can be seen that, by applying the embodiment of the present application, clock synchronization between the slave clock device and the edge clock device can be achieved without changing functions of the user terminal and the user plane in the existing local communication system.
To sum up, the clock synchronization method based on a wireless network provided in the embodiments of the present application is applied to a slave clock device, where the slave clock device is in communication connection with a user terminal, the user terminal is in communication connection with a User Plane Function (UPF), and the UPF is in communication connection with a master clock device through a network device, and the method includes: receiving a first synchronous message sent by edge clock equipment, wherein the first synchronous message comprises a first local target clock, the first local target clock is used for indicating the sending time of the first synchronous message, and the first local target clock is obtained by correcting the first local clock of the edge clock equipment by the edge clock equipment according to the current clock of main clock equipment; the second local clock of the slave clock device is corrected according to the first synchronization message to obtain a second local target clock, the second local target clock and the first local target clock keep clock synchronization, and the second local target clock is used for indicating the receiving time of the first synchronization message, so that the edge clock device can keep clock synchronization with the master clock device, and the slave clock device can keep clock synchronization with the edge clock device, therefore, the slave clock device and the master clock device can keep clock synchronization, the existing local communication system does not need to be changed in a large scale in the implementation process, and the clock synchronization cost can be effectively reduced.
Fig. 3 is a flowchart illustrating another clock synchronization method based on a wireless network according to an embodiment of the present disclosure. Optionally, as shown in fig. 3, the step of modifying the second local clock of the slave clock device according to the first synchronization packet to obtain the second local target clock includes:
s201, acquiring a first clock deviation of the slave clock equipment relative to the edge clock equipment according to the first synchronization message.
Wherein the first clock bias may characterize a clock bias of the second local clock of the slave clock device relative to the first local target clock of the edge clock device. In some embodiments, the first clock Offset (Offset _ 1) may be calculated from a number of clock synchronization message interactions between the slave clock device and the edge clock device after receiving the first synchronization message from the slave clock device.
S202, correcting the second local clock according to the first clock deviation to obtain a second local target clock.
Based on the above description, by correcting the second local clock of the slave clock device by using the first clock Offset (Offset _ 1), the second local target clock (tA _ tar) that is kept in clock synchronization with the first local target clock, that is, tA _ tar = tA _2+ Offset _1, can be obtained.
Fig. 4 is a schematic flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application. As shown in fig. 4, the step of acquiring the first clock offset of the slave clock device relative to the edge clock device according to the first synchronization packet may include:
s301, according to the first synchronous message, a first one-way delay from the clock device to the edge clock device is obtained.
S302, according to the first one-way delay, the first local target clock and the receiving time of the first synchronous message received by the slave clock device, a first clock deviation of the slave clock device relative to the edge clock device is obtained.
For the slave clock device, the first one-way delay (delay _ 1) from the slave clock device to the edge clock device may represent the delay time for transmitting the data packet from the slave clock device to the edge clock device.
Based on the above description, after obtaining the first one-way delay, the first clock Offset (Offset _ 1) of the slave clock device relative to the edge clock device may be obtained according to the first one-way delay (delay _ 1), the first local target clock (tA _ 1), and the receiving time (tA _2, that is, the second local clock) of the slave clock device for receiving the first synchronization packet.
Fig. 5 is a schematic flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application. Fig. 6 is an interaction diagram of a clock synchronization method based on a wireless network according to an embodiment of the present application. Optionally, as shown in fig. 5, the step of obtaining the first one-way delay from the clock device to the edge clock device according to the first synchronization packet may include:
s401, after receiving the first synchronization message, the slave clock device sends a first delay request message to the edge clock device.
S402, receiving a first delay request response message sent by the edge clock device according to the first delay request message.
The first delay request response message includes a receiving time of the edge clock device receiving the first delay request message and an uplink-downlink ratio of the target base station corresponding to the slave clock device, where the uplink-downlink ratio is used to represent a ratio of an uplink radio resource to a downlink radio resource of the target base station, and the uplink radio resource is described as an example.
Referring to fig. 6, after receiving the first synchronization packet (Sync _ 1), the slave clock device may send a first Delay request packet (Delay _ Req _ 1) to the edge clock device, and record a sending time (tA _ 3) of the first Delay request packet.
For the edge clock device, the edge clock device may receive the first Delay request message (Delay _ Req _ 1), and record the receiving time (tA _ 4) of the first Delay request message; and sending a first Delay request response message (Delay _ Resp _ 1) to the slave clock device according to the first Delay request message (Delay _ Req _ 1), wherein the first Delay request message response message (Delay _ Resp _ 1) can carry the receiving time (namely tA _ 4) of the edge clock device for receiving the first Delay request message and the uplink-downlink ratio (M) of the target base station corresponding to the slave clock device.
S403, obtaining a first one-way delay from the clock device to the edge clock device according to the first local target clock, the receiving time of the first synchronization packet received from the clock device, the sending time of the first delay request packet sent from the clock device, the receiving time of the first delay request packet received by the edge clock device, and the uplink-downlink ratio of the target base station.
Based on the above description, referring to fig. 6, for the slave clock device, after receiving the first Delay request response packet (Delay _ Resp _ 1), the round-trip total Delay _1 between the edge clock device and the slave clock device may be calculated according to the first local target clock (tA _ 1), the receiving time (tA _ 2) of the first synchronization packet received from the clock device, the sending time (tA _ 3) of the first Delay request packet, and the receiving time (tA _ 4) of the first Delay request packet received by the edge clock device, and may be represented as:
Figure M_220602102712099_099666001
further, according to the uplink and downlink proportion of the target base station corresponding to the slave clock equipment
Figure M_220602102712226_226172001
The first one-way delay from the clock device to the edge clock device can be obtained
Figure M_220602102712273_273013002
Based on the above description, further, a first clock bias of the slave clock device with respect to the edge clock device may be obtained
Figure M_220602102712335_335544001
Optionally, the uplink and downlink configuration of the target base station corresponding to the slave clock device is obtained by querying, by the edge clock device, the network service presentation function NEF according to the identifier of the user terminal corresponding to the slave clock device.
In some embodiments, the following method may be used to obtain the uplink and downlink ratio of the target base station corresponding to the slave clock device: the edge clock device may obtain, through the clock management system, a general Public user identity (GPSI) of the UE connected to the slave clock device, and send the obtained general Public user identity to the NEF, so as to request the NEF to obtain an uplink-downlink ratio of a target base station connected to the UE. Optionally, the clock management system may be deployed in the cloud and configured to include the GPSI of the user terminal to which the slave clock device is connected.
For NEF, after NEF extracts GPSI, UDM may be queried for the user Permanent Identifier (SUPI) of the corresponding UE using this as an index; the UDM replies a query response to the NEF according to the query request, and after the NEF extracts the SUPI from the query response, the NEF sends a base station identification query request to a non-structured Data Storage Function (UDSF) in a local communication system by taking the SUPI as an index so as to request to query the base station identification currently accessed by the UE; the UDSF replies a base station identification query response to the NEF according to the base station identification query request; further, the NEF may extract the base station identifier from the base station identifier query response, query the base station management system for the uplink/downlink matching ratio of the target base station and the IP address of the UE using the base station identifier as an index, and return the queried uplink/downlink matching ratio of the target base station and the IP address of the UE to the edge clock device.
It should be noted that the IP address of the UE returned by the NEF to the edge clock device may be used for the edge clock device to send the clock synchronization message to the slave clock device according to the IP address of the UE. That is, after receiving the clock synchronization message (e.g., the first synchronization packet, the first delay request response packet, etc.) sent by the edge clock device from the base station, the UE connected to the slave clock device directly forwards the clock synchronization message to the slave clock device. On the contrary, the clock synchronization message (e.g. the first delay request message, etc.) from the slave clock device is directly forwarded to the base station and sent to the edge clock device through the base station.
In summary, it can be seen that, by applying the embodiment of the present application, the uplink and downlink matching of the base station can be used to compensate for the delayed asymmetric portion, so as to overcome the problem that the IEEE 1588 protocol cannot implement clock synchronization on the time delay asymmetric channel.
Fig. 7 is a flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application, where the method may be applied to an edge clock device, the edge clock device may be communicatively connected to a master clock device through a network device, the network device is communicatively connected to a UPF in a local communication system, the UPF is communicatively connected to a user terminal in the local communication system, and the user terminal is communicatively connected to a slave clock device, and for the description of the master clock device and the slave clock device, reference may be made to the foregoing related description, and details are not repeated here. As shown in fig. 7, the method may include:
s501, according to the current clock of the main clock device, correcting the first local clock of the edge clock device to obtain a first local target clock.
S502, sending a first synchronization message to the slave clock equipment, wherein the first synchronization message comprises a first local target clock.
Based on the current clock of the master clock device, the edge clock device may correct the first local clock of the local terminal, and may obtain the first local target clock through the correction, where the first local target clock may maintain clock synchronization with the current clock of the master clock device. After obtaining the first local target clock, the edge clock device may send a first synchronization packet (Sync _ 1) to the slave clock device, so that the slave clock device corrects a second local clock of the slave clock device according to the first synchronization packet to obtain a second local target clock, where the second local target clock maintains clock synchronization with the first local target clock, the second local target clock is used to indicate a receiving time of the first synchronization packet, the first synchronization packet includes the first local target clock, and the first local target clock is used to indicate a sending time of the first synchronization packet.
It can be seen that, by applying the embodiment of the present application, clock synchronization between the edge clock device and the master clock device can be achieved without changing the existing local communication system on a larger scale, and because clock synchronization is also maintained between the slave clock device and the edge clock device in the embodiment of the present application, clock synchronization between the slave clock device and the master clock device can be achieved by applying the embodiment of the present application, and compared with the prior art, the clock synchronization cost can be effectively reduced.
Fig. 8 is a flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present invention, and as shown in fig. 8, the step of correcting the first local clock of the edge clock device according to the current clock of the master clock device to obtain the first local target clock may include:
s601, receiving a second synchronous message sent by the master clock device based on the current clock.
S602, according to the second synchronous message, acquiring a second clock deviation of the edge clock device relative to the main clock device.
And S603, correcting the first local clock according to the second clock deviation to obtain a first local target clock.
In the process of the cooperation of the edge clock equipment and the main clock equipment, the main clock equipment can send a second synchronous message (Sync _ 2) to the edge clock equipment based on the current clock, and record the sending time (tB _1, namely the current clock) of the second synchronous message; correspondingly, the edge clock device can receive the second sync message and record the receiving time (tB _ 2) of the second sync message, and according to the second sync message, a second clock Offset (Offset _ 2) of the edge clock device relative to the master clock device can be obtained; according to the second clock Offset, the first local clock (tB _2, that is, the receiving time of the edge clock device receiving the second synchronization packet) may be corrected to obtain a first local target clock (tB _ tar), that is, tB _ tar = tB _2+ Offset _ 2. Optionally, in some embodiments, when the correction is specifically performed, the correction may be performed according to a precision clock synchronization protocol standard (IEEE 1588) of the network measurement and control system.
Fig. 9 is a flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application, and as shown in fig. 9, the step of acquiring a second clock offset of the edge clock device relative to the master clock device according to the second synchronization packet may include:
s701, according to the second synchronous message, obtaining a second one-way delay from the edge clock device to the main clock device.
S702, according to the second one-way delay and the receiving time of the second synchronous message received by the edge clock equipment, obtaining a second clock deviation of the edge clock equipment relative to the main clock equipment.
For the edge clock device, since the edge clock device is connected to the master clock device through the network device, the network is symmetrical, and therefore, the second one-way delay (delay _ 2) from the edge clock device to the master clock device can represent the delay time of the edge clock device for sending the data packet to the master clock device.
Based on the above description, after the second one-way delay is obtained, the second clock Offset (Offset _ 2) of the edge clock device relative to the main clock device may be calculated according to the second one-way delay (delay _ 2) and the receiving time (tB _ 2) of the edge clock device for receiving the second synchronization packet.
Fig. 10 is a schematic flowchart of another clock synchronization method based on a wireless network according to an embodiment of the present application, where as shown in fig. 10, the obtaining a second one-way delay from a master clock device to an edge clock device according to a second synchronization packet includes:
s801, receiving a second following message sent by the master clock device after the second synchronous message is sent.
And the second following message master clock equipment sends the sending time of the second synchronous message.
S802, according to the second following message, a second delay request message is sent to the main clock device.
For the master clock device, referring to IEEE 1588 protocol, after the master clock device sends the second synchronization packet (Sync _ 2) to the edge clock device, the master clock device sends a second Follow packet (Follow _ Up) carrying a sending time (tB _ 1) of the second synchronization packet, which can be recorded when the master clock device sends the second synchronization packet.
The edge clock device can record the time of receipt (tB _ 2) of the second synchronization message after it has received it. In addition, the edge clock device may further send a second Delay request packet (Delay _ Req _ 2) to the master clock device according to the second follow packet, and record a sending time (tB _ 3) of the second Delay request packet, where the second Delay request packet is used for calculating the reverse transmission Delay.
S803, receiving a second delay request response message sent by the master clock device according to the second delay request message, and a second delay request response following message sent after the second delay request response message.
The second delay request response message includes the receiving time of the master clock device receiving the second delay request message, and the second delay request response following message includes the sending time of the second delay request response message.
After receiving the second delay request message, the master clock device may record the receiving time (tB _ 4) of the second delay request message; furthermore, after receiving the second delay request message, the master clock device may send a second delay request response message (Pdelay _ Resp _ 2) to the edge clock device, and record a sending time (tB _ 5) of the second delay request response message, where the second delay request response message may include a receiving time (tB _ 4) of the master clock device receiving the second delay request message; further, the master clock device may send a second delayed request response following message (Pdelay _ Resp _ Follow _ Up) to the edge clock device immediately after sending the second delayed request response message, the second delayed request response following message including a sending time (tB _ 5) of the second delayed request response message.
S804, according to the current clock, the receiving time of the second synchronous message, the sending time of the second delay request message, the receiving time of the second delay request message received by the main clock device, the sending time of the second delay request response message sent by the main clock device and the receiving time of the second delay request response message, the second one-way delay from the main clock device to the edge clock device is obtained.
Based on the above description, it can be seen that, at this time, the edge clock device has already acquired the sending time (tB _1, that is, the current clock) of the second synchronization packet sent by the master clock device, the receiving time (tB _ 2) of the second synchronization packet received by the edge clock device, the sending time (tB _ 3) of the second delay request packet sent by the edge clock device, the receiving time (tB _ 4) of the second delay request packet received by the master clock device, the sending time (tB _ 5) of the second delay request response packet sent by the master clock device, and the receiving time (tB _ 6) of the second delay request response packet received by the edge clock device, and calculates the second one-way delay (delay _ 2) from the master clock device to the edge clock device.
Fig. 11 is an interaction diagram of another clock synchronization method based on a wireless network according to an embodiment of the present application. In some embodiments, referring to fig. 11, in the specific calculation, the total round-trip delay between the master clock device and the edge clock device may be calculated first
Figure M_220602102712386_386811001
And the two are connected through the switch, the network is symmetrical, therefore, the second one-way time delay between the edge clock equipment and the main clock equipment
Figure M_220602102712449_449309002
(ii) a Based on this, the second clock deviation of the edge clock device relative to the master clock device
Figure M_220602102712480_480535003
Based on the above description, in some embodiments, the operation Mode of the Radio Link Control (RLC) of the base station may also be set to an Unacknowledged Mode (UM) by the base station management system, that is, the RLC does not perform an automatic repeat request (ARQ) process. It will be appreciated that with this arrangement, when a certain clock synchronization message is not transmitted correctly due to radio signal fading, the base station will give up transmission of the clock synchronization message, and therefore the absence of the clock synchronization message will be detected at the edge clock device or the slave clock device, which will cause the clock device to stop the calculation of the current clock offset value, thereby avoiding deriving an erroneous clock offset value.
In addition, in some embodiments, the index of the maximum Modulation and Coding Scheme (MCS) of the base station may also be set to zero by the base station management system, and this setting may provide the highest protection level for wireless transmission of the clock synchronization message, so as to avoid transmission failure of consecutive clock synchronization messages due to wireless signal fading. Generally speaking, a failure to transmit successive clock synchronization messages will cause the slave clock device to enter a clock out-of-sync state. It should be noted that, according to an actual application scenario, the edge clock device may be configured to perform clock synchronization with the master clock device according to the method in the foregoing embodiment according to a first preset frequency, and the slave clock device may be configured to perform clock synchronization with the edge clock device according to the method in the foregoing embodiment according to a second preset frequency, where the first preset frequency and the second preset frequency may be the same or different, and are not limited herein.
In summary, by applying the embodiment of the present application, the influence of the wireless signal fading on the clock synchronization calibration can be solved by setting the working parameters of the base station, and the transmission delay of the clock synchronization message on the wireless channel can be stabilized, thereby ensuring the accuracy of the clock synchronization calibration.
Fig. 12 is a functional module schematic diagram of a clock synchronization apparatus based on a wireless network according to an embodiment of the present application, where the apparatus may be applied to a slave clock device, the slave clock device is communicatively connected to a user terminal, the user terminal is communicatively connected to a user plane function UPF, and the UPF is communicatively connected to a master clock device through a network device. As shown in fig. 12, the clock synchronization apparatus 100 may include:
a receiving module 110, configured to receive a first synchronization packet sent by an edge clock device, where the first synchronization packet includes a first local target clock, the first local target clock is used to indicate a sending time of the first synchronization packet, and the first local target clock is obtained by modifying, by the edge clock device, a first local clock of the edge clock device according to a current clock of the master clock device;
a correcting module 120, configured to correct a second local clock of the slave clock device according to the first synchronization packet, to obtain a second local target clock, where the second local target clock is synchronized with the current clock.
In an optional implementation manner, the modification module 120 is specifically configured to obtain, according to the first synchronization packet, a first clock offset of the slave clock device relative to the edge clock device;
and correcting the second local clock according to the first clock deviation to obtain the second local target clock.
In an optional implementation manner, the modification module 120 is specifically configured to obtain, according to the first synchronization packet, a first one-way delay from the slave clock device to the edge clock device;
and acquiring a first clock deviation of the slave clock equipment relative to the edge clock equipment according to the first one-way delay, the first local target clock and the receiving time of the slave clock equipment for receiving the first synchronous message.
In an optional implementation manner, the modification module 120 is specifically configured to send a first delay request packet to the edge clock device after the slave clock device receives the first synchronization packet;
receiving a first delay request response message sent by the edge clock device according to the first delay request message, where the first delay request response message includes a receiving time when the edge clock device receives the first delay request message and an uplink-downlink ratio of a target base station corresponding to the slave clock device, where the uplink-downlink ratio is used to represent a ratio of uplink radio resources to downlink radio resources of the target base station;
and acquiring a first one-way delay from the slave clock equipment to the edge clock equipment according to the first local target clock, the receiving time of the slave clock equipment for receiving the first synchronous message, the sending time of the slave clock equipment for sending a first delay request message, the receiving time of the edge clock equipment for receiving the first delay request message and the uplink-downlink ratio of the target base station.
In an optional embodiment, the uplink and downlink configuration of the target base station corresponding to the slave clock device is obtained by querying, by the edge clock device, a network service presentation function NEF according to the identifier of the user terminal corresponding to the slave clock device.
Optionally, the present invention further provides a clock synchronization apparatus based on a wireless network, which is applied to an edge clock device, where the edge clock device is in communication connection with a master clock device through a network device, the network device is in communication connection with a UPF, the UPF is in communication connection with a user terminal, and the user terminal is in communication connection with a slave clock device, where the clock synchronization apparatus includes:
the correction module is used for correcting a first local clock of the edge clock device according to the current clock of the main clock device to obtain a first local target clock;
and the processing module is used for sending a first synchronous message to the slave clock equipment, wherein the first synchronous message comprises the first local target clock.
In an optional implementation manner, the modification module is specifically configured to receive a second synchronization packet sent by the master clock device based on the current clock;
acquiring a second clock deviation of the edge clock equipment relative to the main clock equipment according to the second synchronous message;
and correcting the first local clock according to the second clock deviation to obtain the first local target clock.
In an optional implementation manner, the correction module is specifically configured to obtain, according to the second synchronization packet, a second one-way delay from the edge clock device to the master clock device;
and acquiring a second clock deviation of the edge clock device relative to the master clock device according to the second one-way delay and the receiving time of the edge clock device for receiving the second synchronous message.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules 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 (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device may be a slave clock device or an edge clock device. As shown in fig. 13, the electronic device may include: a processor 210, a storage medium 220 and a bus 230, wherein the storage medium 220 stores machine-readable instructions executable by the processor 210, when the electronic device is running, the processor 210 communicates with the storage medium 220 via the bus 230, and the processor 210 executes the machine-readable instructions to perform the steps of the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs the steps of the above method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A clock synchronization method based on a wireless network, applied to a slave clock device, wherein the slave clock device is communicatively connected to a user terminal, the user terminal is communicatively connected to a User Plane Function (UPF), and the UPF is communicatively connected to a master clock device through a network device, the method comprising:
receiving a first synchronization message sent by edge clock equipment, wherein the first synchronization message comprises a first local target clock, the first local target clock is used for indicating the sending time of the first synchronization message, and the first local target clock is obtained by correcting the first local clock of the edge clock equipment by the edge clock equipment according to the current clock of the main clock equipment;
and correcting a second local clock of the slave clock equipment according to the first synchronization message to obtain a second local target clock, wherein the second local target clock keeps clock synchronization with the first local target clock, and the second local target clock is used for indicating the receiving time of the first synchronization message.
2. The method of claim 1, wherein the modifying the second local clock of the slave clock device according to the first synchronization packet to obtain a second local target clock comprises:
acquiring a first clock deviation of the slave clock equipment relative to the edge clock equipment according to the first synchronous message;
and correcting the second local clock according to the first clock deviation to obtain the second local target clock.
3. The method of claim 2, wherein obtaining a first clock skew of the slave clock device relative to the edge clock device based on the first synchronization packet comprises:
acquiring a first one-way delay from the clock equipment to the edge clock equipment according to the first synchronous message;
and acquiring a first clock deviation of the slave clock equipment relative to the edge clock equipment according to the first one-way delay, the first local target clock and the receiving time of the slave clock equipment for receiving the first synchronous message.
4. The method according to claim 3, wherein the obtaining the first one-way delay from the clock device to the edge clock device according to the first synchronization packet comprises:
after receiving the first synchronization message, the slave clock equipment sends a first delay request message to the edge clock equipment;
receiving a first delay request response message sent by the edge clock device according to the first delay request message, where the first delay request response message includes a receiving time of the edge clock device receiving the first delay request message and an uplink-downlink ratio of a target base station corresponding to the slave clock device, where the uplink-downlink ratio is used to represent a ratio of uplink radio resources and downlink radio resources of the target base station;
and acquiring a first one-way delay from the slave clock equipment to the edge clock equipment according to the first local target clock, the receiving time of the slave clock equipment for receiving the first synchronous message, the sending time of the slave clock equipment for sending a first delay request message, the receiving time of the edge clock equipment for receiving the first delay request message and the uplink-downlink ratio of the target base station.
5. The method according to claim 4, wherein the uplink and downlink configuration of the target base station corresponding to the slave clock device is obtained by querying, by the edge clock device, a network service presence function (NEF) according to the identifier of the user equipment corresponding to the slave clock device.
6. A clock synchronization method based on a wireless network is applied to an edge clock device, the edge clock device is in communication connection with a master clock device through a network device, the network device is in communication connection with a UPF, the UPF is in communication connection with a user terminal, and the user terminal is in communication connection with a slave clock device, and the method comprises the following steps:
correcting a first local clock of the edge clock device according to the current clock of the main clock device to obtain a first local target clock;
and sending a first synchronization message to the slave clock equipment, wherein the first synchronization message comprises the first local target clock.
7. The method of claim 6, wherein modifying the first local clock of the edge clock device to obtain the first local target clock according to the current clock of the master clock device comprises:
receiving a second synchronous message sent by the master clock device based on the current clock;
acquiring a second clock deviation of the edge clock equipment relative to the main clock equipment according to the second synchronous message;
and correcting the first local clock according to the second clock deviation to obtain the first local target clock.
8. The method of claim 7, wherein obtaining a second clock skew of the edge clock device relative to the master clock device based on the second synchronization packet comprises:
acquiring a second one-way delay from the edge clock equipment to the main clock equipment according to the second synchronous message;
and acquiring a second clock deviation of the edge clock device relative to the master clock device according to the second one-way delay and the receiving time of the edge clock device for receiving the second synchronous message.
9. An electronic device, comprising: 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 communicating with each other via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the wireless network based clock synchronization method according to any one of claims 1-5 or 6-8.
10. A computer-readable storage medium, having stored thereon a computer program for performing, when being executed by a processor, the steps of the wireless network based clock synchronization method according to any one of claims 1 to 5 or 6 to 8.
CN202210659123.0A 2022-06-13 2022-06-13 Clock synchronization method, device, equipment and medium based on wireless network Active CN114745776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210659123.0A CN114745776B (en) 2022-06-13 2022-06-13 Clock synchronization method, device, equipment and medium based on wireless network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210659123.0A CN114745776B (en) 2022-06-13 2022-06-13 Clock synchronization method, device, equipment and medium based on wireless network

Publications (2)

Publication Number Publication Date
CN114745776A true CN114745776A (en) 2022-07-12
CN114745776B CN114745776B (en) 2022-08-30

Family

ID=82287747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210659123.0A Active CN114745776B (en) 2022-06-13 2022-06-13 Clock synchronization method, device, equipment and medium based on wireless network

Country Status (1)

Country Link
CN (1) CN114745776B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118070729A (en) * 2024-03-19 2024-05-24 海光信息技术(苏州)有限公司 Integrated circuit simulation method, integrated circuit simulation device and readable storage medium
CN120121894A (en) * 2025-03-11 2025-06-10 北京送变电有限公司 Electrical circuit phasor testing method and system based on high-precision wireless phase transmission

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130279525A1 (en) * 2012-04-20 2013-10-24 Qun Zheng Ring Based Precise Time Data Network Clock Phase Adjustments
CN111480374A (en) * 2018-10-17 2020-07-31 Oppo广东移动通信有限公司 Data packet transmission method and device
CN112789906A (en) * 2018-10-05 2021-05-11 三星电子株式会社 Apparatus and method for synchronization using wireless communication network in wireless communication system
CN113228537A (en) * 2019-01-11 2021-08-06 高通股份有限公司 Wireless communication enhancements for transparent and boundary clocks
EP3869858A1 (en) * 2018-11-21 2021-08-25 Huawei Technologies Co., Ltd. Synchronization method and apparatus
CN113328820A (en) * 2016-12-30 2021-08-31 华为技术有限公司 Method for interacting time synchronization message and network device
CN113412653A (en) * 2019-02-18 2021-09-17 高通股份有限公司 Wireless communication enhancements for transparent and boundary clocks
WO2022027666A1 (en) * 2020-08-07 2022-02-10 华为技术有限公司 Time synchronization method and apparatus
CN114584248A (en) * 2022-04-22 2022-06-03 南京典格通信科技有限公司 RRU high-precision clock synchronization method based on Kalman sliding window filtering

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130279525A1 (en) * 2012-04-20 2013-10-24 Qun Zheng Ring Based Precise Time Data Network Clock Phase Adjustments
CN113328820A (en) * 2016-12-30 2021-08-31 华为技术有限公司 Method for interacting time synchronization message and network device
CN112789906A (en) * 2018-10-05 2021-05-11 三星电子株式会社 Apparatus and method for synchronization using wireless communication network in wireless communication system
CN111480374A (en) * 2018-10-17 2020-07-31 Oppo广东移动通信有限公司 Data packet transmission method and device
EP3869858A1 (en) * 2018-11-21 2021-08-25 Huawei Technologies Co., Ltd. Synchronization method and apparatus
CN113228537A (en) * 2019-01-11 2021-08-06 高通股份有限公司 Wireless communication enhancements for transparent and boundary clocks
CN113412653A (en) * 2019-02-18 2021-09-17 高通股份有限公司 Wireless communication enhancements for transparent and boundary clocks
WO2022027666A1 (en) * 2020-08-07 2022-02-10 华为技术有限公司 Time synchronization method and apparatus
CN114584248A (en) * 2022-04-22 2022-06-03 南京典格通信科技有限公司 RRU high-precision clock synchronization method based on Kalman sliding window filtering

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
""S2-1904715-Update for Sync Solution 11.2-v1"", 《3GPP TSG_SA\WG2_ARCH》 *
信金灿 等: "面向时间敏感网络的5G无线增强技术研究", 《电信科学》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118070729A (en) * 2024-03-19 2024-05-24 海光信息技术(苏州)有限公司 Integrated circuit simulation method, integrated circuit simulation device and readable storage medium
CN120121894A (en) * 2025-03-11 2025-06-10 北京送变电有限公司 Electrical circuit phasor testing method and system based on high-precision wireless phase transmission

Also Published As

Publication number Publication date
CN114745776B (en) 2022-08-30

Similar Documents

Publication Publication Date Title
Cox An Introduction to 5G: The New Radio, 5G Network, 5G Advanced and Beyond
US11395244B2 (en) Apparatus and method for supporting burst arrival time reference clock based on time-sensitive communication assistance information in wireless communication network
CN112335285B (en) Network function handling in a context of managing function mobility
CN110769458B (en) Communication method, access network device and terminal device
US20220408445A1 (en) Link adaptation for 5g systems
WO2020107411A1 (en) Method and network device for terminal device positioning with integrated access backhaul
TW202139731A (en) Determination of an active bandwidth part transition during a positioning session
US20220014901A1 (en) Method and apparatus for identifying user equipment capability in sidelink transmission
CN115669101A (en) Time drift information associated with timing group delay
CN111034258B (en) Wireless device, network node and method performed by the same for processing measurements on a set of cells
US11877251B2 (en) Time synchronization method, electronic device and storage medium
CN114745776B (en) Clock synchronization method, device, equipment and medium based on wireless network
WO2021234582A1 (en) Timing alignment in integrated access and backhaul
WO2018086549A1 (en) Information conflict processing method, and terminal
WO2021234581A1 (en) Timing alignment in integrated access and backhaul
JP2021530153A (en) Communications system
WO2022078472A1 (en) Method of propagation delay compensation and related devices
WO2021051364A1 (en) Communication method, apparatus and device
JP2024528779A (en) Multi-cell communication with multiple PDSCH/PUSCH scheduling via a single DCI
WO2022082518A1 (en) Signal receiving and sending method and apparatus and communications system
WO2022188437A1 (en) Information processing method and apparatus, and storage medium
US9986535B2 (en) Method and system for managing mobile management entity (MME) in a telecommunication network
CN114363975B (en) Data communication method, device, electronic equipment and storage medium
JP2024538904A (en) Bandwidth Partial Switching Delay Derivation
WO2024221146A1 (en) User equipment time synchronization update in rrc_inactive

Legal Events

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