Communication method, apparatus and system

By receiving messages from the access network equipment, the terminal realizes time synchronization with the access network equipment in the inactive state or idle state, solving the problem of low time synchronization accuracy in the existing technology and improving the stability and stability of the communication system. efficiency.

WO2024199187A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/083613
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-27
Filing Date
2024-03-25
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In communication systems, it is a challenge for terminals and access network equipment to maintain time synchronization for a long time. The existing technology has low timing accuracy in the non-connected state, and is limited by clock capabilities in the connected state, making it easy to lose time synchronization. .

Method used

Receive messages from the access network equipment through the terminal, determine the time when the message is received, to achieve time synchronization with the access network equipment, and continue to maintain synchronization in the inactive or idle state by reusing existing messages or new definitions Messages to improve communication efficiency and flexibility.

Benefits of technology

It achieves accurate time synchronization between terminals and access network equipment for a long time, reduces communication overhead, and improves timing accuracy and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024083613_03102024_PF_FP_ABST
    Figure CN2024083613_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of communications. Provided are a communication method, apparatus and system. In the method, after a terminal has completed time synchronization with a first access network device by means of a second message, the first access network device can still continue to send a first message to the terminal, so as to indicate a time at which the first access network device sends the first message. In this way, according to a previously synchronized time, for example, the time at which the first access network device sends the second message and the time at which the terminal receives the second message, and the time at which the first access network device sends the first message, the terminal can continue to determine the time of the terminal for synchronization with the first access network device, such that the terminal can maintain time synchronization with the access network device within a long period of time.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method, device and system

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 27, 2023, with application number 202310340680.0 and application name “Communication Methods, Devices and Systems”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communications, and in particular to a communication method, device, and system. Background Art

[0003] In a communication system, the network can send time to the terminal to ensure that the network and terminal times are synchronized. For example, the access network device broadcasts system information block (SIB) 9, which can carry the time when the access network device broadcasts SIB9. The terminal can send an uplink message to the access network device based on SIB9. The access network device can determine the air interface transmission delay between the terminal and the access network device based on the uplink message, such as the timing advance (TA), and send the TA to the terminal via a downlink message. In this way, the terminal can determine the terminal time based on the TA and the time when the access network device broadcasts SIB9, thereby achieving synchronization with the access network device time.

[0004] However, how to keep the time of the terminal and the network synchronized for a long time is a hot research issue.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a communication method, apparatus, and system for enabling a terminal and an access network device to maintain time synchronization for a long period of time.

[0007] To achieve the above objectives, this application adopts the following technical solutions:

[0008] In a first aspect, a communication method is provided, comprising: a terminal receiving a first message from a first access network device, the first message being used to indicate the time when the first access network device sent the first message. The terminal determining, based on the time when the first access network device sent the first message, the time when the first access network device sent a second message, and the time when the terminal received the second message, the time when the terminal received the first message. The second message is a message sent by the first access network device before sending the first message, and the time when the terminal received the second message is the time when the terminal was synchronized with the first access network device. Thus, the terminal determines the time when the terminal received the first message as the time when the terminal was synchronized with the first access network device.

[0009] Based on the methods of the first and second aspects, it can be seen that after the terminal and the first access network device have completed time synchronization via the second message, the first access network device can continue to send the first message to the terminal to indicate the time when the first access network device sent the first message. In this way, the terminal can continue to determine the time of the terminal synchronized with the first access network device based on previously synchronized times, such as the time when the first access network device sent the second message, the time when the terminal received the second message, and the time when the first access network device sent the first message, thereby ensuring that the terminal and the access network device can maintain time synchronization for a long period of time.

[0010] In one possible design scheme, the terminal receives a first message from the first access network device, including: when the terminal is in an inactive state or an idle state, the terminal receives the first message broadcast by the first access network device, so that the terminal can maintain time synchronization with the first access network device for a long time in the inactive state or the idle state.

[0011] Optionally, the first message is a system information block (SIB), which can be implemented by reusing existing broadcast messages to reduce implementation difficulty. Alternatively, the first message can be a newly defined message to achieve decoupling from existing messages and more flexible information transmission.

[0012] In another possible design scheme, the terminal receives a first message from the first access network device, including: when the terminal is in a connected state, the terminal receives a first message that is unicast or broadcast by the first access network device to the terminal, so that the terminal can maintain time synchronization with the first access network device for a long time in the connected state.

[0013] Optionally, the first message is a radio resource control (RRC) message, which can be implemented by reusing existing unicast messages to reduce implementation difficulty. Alternatively, the first message can be a newly defined message to achieve decoupling from existing messages and more flexible information transmission.

[0014] In one possible design scheme, the first message is also used to indicate the time when the first access network device sends the second message. That is, one message can be reused to indicate multiple times to improve communication efficiency.

[0015] Optionally, the second message is used to indicate the time when the first access network device sent the second message. The method described in the first aspect may further include: the terminal determining a correspondence between the time when the first access network device sent the second message and the time when the terminal received the second message. If the terminal receives the first message, the method described in the first aspect may further include: the terminal determining the time when the terminal received the second message from the correspondence based on the time when the first access network device sent the second message as indicated in the first message. This can avoid synchronization failure caused by the terminal using other times to perform time synchronization.

[0016] In one possible design scheme, the terminal determines the time when the terminal receives the first message based on the time when the first access network device sends the first message, the time when the first access network device sends the second message, and the time when the terminal receives the second message, including: the terminal determines the time difference between the time when the first access network device sends the first message and the time when the first access network device sends the second message, and determines the time when the terminal receives the first message based on the time difference and the time when the terminal receives the second message.

[0017] It can be understood that since the time when the first access network device sends the second message is the time when the terminal is synchronized with the first access network device, and the time difference is the time difference between two time synchronizations performed by the first access network device, the terminal adds the time difference to the time when the first access network device sends the second message, and thus can obtain the time when the terminal continues to maintain synchronization with the first access network device, so as to achieve continued time synchronization with the first access network device.

[0018] Optionally, the second message is the latest message received by the terminal before receiving the first message for time synchronization, or it can be any message used for time synchronization, as long as the terminal and the first access network device can agree on which message to use, without specific limitation.

[0019] In a second aspect, a communication method is provided, comprising: a first access network device receiving indication information indicating that the access network device needs to maintain time synchronization with a terminal. In response to the indication information, the first access network device sends a first message. The first message indicates a time at which the first access network device sends the first message, and the time at which the first access network device sends the first message is used by the terminal to maintain time synchronization with the first access network device.

[0020] It can be understood that the indication message can be a message sent after the terminal completes time synchronization with the first access network device. In this case, before the first access network device sends the indication message, the terminal can first use the existing technology solution (such as the second message) to complete time synchronization with the first access network device. After the first access network device sends the indication message, the terminal uses the solution of the present application (such as the first message) to maintain time synchronization with the first access network device. For details, please refer to the relevant introduction of the first aspect above, which will not be repeated here. Alternatively, the indication message can also be a message sent before the terminal completes time synchronization with the first access network device, or it can be a message sent together with the message used by the first access network device to complete time synchronization with the terminal. In this case, the terminal can also first use the existing technology solution to complete time synchronization with the first access network device, and then use the solution of the present application to maintain time synchronization with the first access network device. For details, please refer to the relevant introduction of the first aspect above, which will not be repeated here.

[0021] In one possible design scheme, the indication information is specifically used to indicate that the access network device needs to maintain time synchronization with the terminal when the terminal is in an inactive state or an idle state; the first access network device sends a first message, including: when the terminal is in an inactive state or an idle state, the first access network device broadcasts the first message.

[0022] Optionally, the first message is a system information block SIB.

[0023] In another possible design scheme, the indication information is specifically used to indicate that the access network device needs to maintain time synchronization with the terminal when the terminal is in a connected state; the first access network device sends a first message, including: when the terminal is in a connected state, the first access network device unicasts or broadcasts the first message to the terminal.

[0024] Optionally, the first message is a radio resource control RRC message.

[0025] In one possible design, the method described in the second aspect may further include: the first access network device receiving the terminal's clock capability and determining a timing for sending the first message based on the terminal's clock capability. In this manner, the first access network device sending the first message includes: the first access network device sending the first message at the timing for sending the first message to avoid service impact caused by excessive terminal time error.

[0026] In one possible design scheme, the first message is also used to indicate the time when the first access network device sends the second message.

[0027] Optionally, the method described in the second aspect may further include: after the first access network device sends the second message to the terminal, the first access network device saves the time when the first access network device sends the second message.

[0028] In a possible design solution, the second message is the most recently sent message among the messages for time synchronization sent by the first access network device before sending the first message.

[0029] In one possible design scheme, the method described in the second aspect may also include: when the terminal reselects from the first access network device to the second access network device, the first access network device determines to stop sending the first message to avoid unnecessary communication overhead caused by sending redundant messages.

[0030] In addition, the technical effects of the method described in the second aspect can also refer to the technical effects of the method described in the first aspect, and will not be repeated here.

[0031] In a third aspect, a communication method is provided, comprising: a core network element obtaining indication information and sending the indication information to a first access network device, wherein the indication information is used to indicate that the access network device needs to maintain time synchronization with a terminal, the first access network device being the access network device to which the terminal is connected, so that the first access network device can maintain time synchronization with the terminal based on the indication information. The details of maintaining time synchronization can be found in the description of the first and second aspects above and are not further elaborated here.

[0032] In one possible design, the indication information is specifically used to indicate that the access network device needs to maintain time synchronization with the terminal when the terminal is in an inactive state or an idle state. Alternatively, the indication information is specifically used to indicate that the access network device needs to maintain time synchronization with the terminal when the terminal is in a connected state.

[0033] In a possible design scheme, the core network network element obtains indication information, including: the core network network element obtains the subscription data of the terminal, wherein the subscription data of the terminal includes indication information.

[0034] In one possible design, the method described in aspect 3 may further include: a core network element receiving the terminal's clock capabilities from the application function and sending the terminal's clock capabilities to the first access network device. The terminal's clock capabilities are used by the access network device to determine when to synchronize time with the terminal.

[0035] In addition, the technical effects of the method described in the third aspect can also refer to the technical effects of the method described in the first aspect, and will not be repeated here.

[0036] In a fourth aspect, a communication device is provided. The communication device includes: a module for executing the method described in the first aspect, such as a transceiver module and a processing module. For example, the transceiver module is used to indicate the transceiver function of the communication device, and the processing module is used to perform functions of the communication device other than the transceiver function.

[0037] Optionally, the transceiver module may include a sending module and a receiving module, wherein the sending module is used to implement the sending function of the communication device described in the fourth aspect, and the receiving module is used to implement the receiving function of the communication device described in the fourth aspect.

[0038] Optionally, the communication device described in the fourth aspect may further include a storage module, wherein the storage module stores a program or instruction. When the processing module executes the program or instruction, the communication device may execute the method described in the first aspect.

[0039] It can be understood that the communication device described in the fourth aspect can be a terminal, or a chip (system) or other parts or components that can be set in the terminal, or a device including a terminal, and this application does not limit this.

[0040] In addition, the technical effects of the communication device described in the fourth aspect can refer to the technical effects of the method described in the first aspect, and will not be repeated here.

[0041] In a fifth aspect, a communication device is provided. The communication device includes: a module for executing the method described in the second aspect, such as a transceiver module and a processing module. For example, the transceiver module is used to indicate the transceiver function of the communication device, and the processing module is used to perform functions of the communication device other than the transceiver function.

[0042] Optionally, the transceiver module may include a sending module and a receiving module, wherein the sending module is used to implement the sending function of the communication device described in the fifth aspect, and the receiving module is used to implement the receiving function of the communication device described in the fifth aspect.

[0043] Optionally, the communication device described in the fifth aspect may further include a storage module, wherein the storage module stores a program or instruction. When the processing module executes the program or instruction, the communication device may execute the method described in the second aspect.

[0044] It can be understood that the communication device described in the fifth aspect can be a network device, such as an access network device, or a chip (system) or other parts or components that can be set in the network device, or a device that includes a network device. This application does not limit this.

[0045] In addition, the technical effects of the communication device described in the fifth aspect can refer to the technical effects of the method described in the second aspect, and will not be repeated here.

[0046] In a sixth aspect, a communication device is provided. The communication device includes: a module for executing the method described in the third aspect, such as a transceiver module and a processing module. For example, the transceiver module is used to indicate the transceiver function of the communication device, and the processing module is used to perform functions of the communication device other than the transceiver function.

[0047] Optionally, the transceiver module may include a sending module and a receiving module, wherein the sending module is used to implement the sending function of the communication device described in the sixth aspect, and the receiving module is used to implement the receiving function of the communication device described in the sixth aspect.

[0048] Optionally, the communication device described in the sixth aspect may further include a storage module, wherein the storage module stores a program or instruction. When the processing module executes the program or instruction, the communication device may execute the method described in the third aspect.

[0049] It can be understood that the communication device described in the sixth aspect can be a network device, such as a core network network element, or a chip (system) or other parts or components that can be set in the network device, or a device that includes a network device. This application does not limit this.

[0050] In addition, the technical effects of the communication device described in the sixth aspect can refer to the technical effects of the method described in the third aspect, and will not be repeated here.

[0051] In a seventh aspect, a communication device is provided, comprising: a processor configured to execute the method described in any possible implementation of the first to third aspects.

[0052] In one possible design solution, the communication device described in the seventh aspect may further include a transceiver. The transceiver may be a transceiver circuit or an interface circuit. The transceiver may be used for the communication device described in the seventh aspect to communicate with other communication devices.

[0053] In one possible design, the communication device described in aspect 7 may further include a memory. The memory may be integrated with the processor or provided separately. The memory may be used to store the computer program and / or data involved in the method described in any one of aspects 1 to 3.

[0054] In an embodiment of the present application, the communication device described in the seventh aspect may be a terminal or a network device, or a chip (system) or other parts or components that can be set in the terminal or network device, or a device that includes the terminal or network device.

[0055] In addition, the technical effects of the communication device described in the seventh aspect can refer to the technical effects of the method described in any one of the implementation methods of the first aspect to the third aspect, and will not be repeated here.

[0056] In an eighth aspect, a communication device is provided. The communication device includes: a processor coupled to a memory, the processor being configured to execute a computer program stored in the memory, so that the communication device performs the method described in any possible implementation of the first to third aspects.

[0057] In one possible design solution, the communication device described in the eighth aspect may further include a transceiver. The transceiver may be a transceiver circuit or an interface circuit. The transceiver may be used for the communication device described in the eighth aspect to communicate with other communication devices.

[0058] In an embodiment of the present application, the communication device described in the eighth aspect may be a terminal or a network device, or a chip (system) or other parts or components that can be set in the terminal or network device, or a device that includes the terminal or network device.

[0059] In addition, the technical effects of the communication device described in the eighth aspect can refer to the technical effects of the method described in any one of the implementation methods of the first aspect to the third aspect, and will not be repeated here.

[0060] In the ninth aspect, a communication device is provided, comprising: a processor and a memory; the memory is used to store a computer program, and when the processor executes the computer program, the communication device executes the method described in any one of the implementation methods of the first to third aspects.

[0061] In one possible design solution, the communication device described in aspect 9 may further include a transceiver. The transceiver may be a transceiver circuit or an interface circuit. The transceiver may be used for the communication device described in aspect 9 to communicate with other communication devices.

[0062] In an embodiment of the present application, the communication device described in the ninth aspect may be a terminal or a network device, or a chip (system) or other parts or components that can be set in the terminal or network device, or a device that includes the terminal or network device.

[0063] In addition, the technical effects of the communication device described in the ninth aspect can refer to the technical effects of the method described in any one of the implementation methods of the first to third aspects, and will not be repeated here.

[0064] In a tenth aspect, a communication system is provided. The communication system includes at least one of the following: a terminal, a first access network device, and a core network element. The terminal is configured to execute the method described in the first aspect, the first access network device is configured to execute the method described in the second aspect, and the core network element is configured to execute the method described in the third aspect.

[0065] In the eleventh aspect, a computer-readable storage medium is provided, comprising: a computer program or instructions; when the computer program or instructions are run on a computer, the computer executes the method described in any possible implementation method of the first to third aspects.

[0066] In the twelfth aspect, a computer program product is provided, comprising a computer program or instructions, which, when executed on a computer, enables the computer to execute the method described in any one of the possible implementations of the first to third aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] FIG1 is a schematic diagram of the architecture of a 5G mobile communication system;

[0068] Figure 2 is a schematic diagram of the architecture of the open timing function of the 5G network;

[0069] Figure 3 is a schematic diagram of the TA-based process;

[0070] Figure 4 is a schematic diagram of the RTT-based process;

[0071] FIG5 is a schematic diagram of the architecture of a communication system provided in an embodiment of the present application;

[0072] FIG6 is a flow chart of a communication method according to an embodiment of the present application;

[0073] FIG7 is a second flow chart of the communication method provided in an embodiment of the present application;

[0074] FIG8 is a third flow chart of the communication method provided in an embodiment of the present application;

[0075] FIG9 is a fourth flow chart of a communication method according to an embodiment of the present application;

[0076] FIG10 is a fifth flow chart of a communication method according to an embodiment of the present application;

[0077] FIG11 is a sixth flow chart of a communication method according to an embodiment of the present application;

[0078] FIG12 is a seventh flow chart of a communication method according to an embodiment of the present application;

[0079] FIG13 is a flow chart of a communication method according to an embodiment of the present application;

[0080] FIG14 is a first structural diagram of a communication device provided in an embodiment of the present application;

[0081] FIG15 is a second structural diagram of the communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0082] For ease of understanding, the technical terms involved in the embodiments of this application are first introduced below.

[0083] 1. Fifth generation (5G) mobile communication system (abbreviated as 5G system (5G system, 5GS)):

[0084] Figure 1 is a schematic diagram of the 5GS architecture. As shown in Figure 1, the 5GS includes an access network (AN) and a core network (CN), and may also include terminals.

[0085] The terminal may be a terminal with transceiver functions, or a chip or chip system that can be provided in the terminal. The terminal may also be referred to as user equipment (UE), access terminal, subscriber unit, user station, mobile station (MS), mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or user device. The terminal in the embodiments of the present application can be a mobile phone, a cellular phone, a smart phone, a tablet computer, a wireless data card, a personal digital assistant (PDA), a wireless modem, a handset, a laptop computer, a machine type communication (MTC) terminal, a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, a vehicle-mounted terminal, a road side unit (RSU) with terminal function, etc. The terminal of the present application may also be an on-board module, on-board module, on-board component, on-board chip or on-board unit built into the vehicle as one or more components or units.

[0086] The AN implements access-related functions, providing network access for authorized users and determining transmission links of varying quality for user data based on user level and service requirements. The AN forwards control signals and user data between terminals and the CN. The AN may include access network equipment, also known as radio access network (RAN) equipment.

[0087] The CN is primarily responsible for maintaining mobile network subscription data and providing terminal functions such as session management, mobility management, policy management, and security authentication. The CN primarily includes all or part of the following functions: user plane function (UPF), authentication server function (AUSF), access and mobility management function (AMF), session management function (SMF), network slice selection function (NSSF), network exposure function (NEF), network repository function (NRF), policy control function (PCF), unified data management (UDM), unified data repository (UDR), the introduction of the time sensitive communication and time synchronization function (TSCTSF), and application function (AF).

[0088] As shown in Figure 1, the UE accesses the 5G network through the RAN equipment. The UE communicates with the AMF through the N1 interface (referred to as N1); the RAN communicates with the AMF through the N2 interface (referred to as N2); the RAN communicates with the UPF through the N3 interface (referred to as N3); the SMF communicates with the UPF through the N4 interface (referred to as N4), and the UPF accesses the data network (DN) through the N6 interface (referred to as N6). In addition, the control plane functions such as AUSF, AMF, SMF, NSSF, NEF, NRF, PCF, UDM, UDR or AF shown in Figure 1 interact using service-based interfaces. For example, the service interface provided by AUSF to the outside world is Nausf; the service interface provided by AMF to the outside world is Namf; the service interface provided by SMF to the outside world is Nsmf; the service interface provided by NSSF to the outside world is Nnssf; the service interface provided by NEF to the outside world is Nnef; the service interface provided by NRF to the outside world is Nnrf; the service interface provided by PCF to the outside world is Npcf; the service interface provided by UDM to the outside world is Nudm; the service interface provided by UDR to the outside world is Nudr; the service interface provided by TSCTSF to the outside world is Ntsctsf; and the service interface provided by AF to the outside world is Naf.

[0089] The RAN device may be a device that provides access to the terminal. For example, the RAN device may include: a next-generation mobile communication system, such as an access network device of 6G, such as a 6G base station, or in the next-generation mobile communication system, the network device may also have other naming methods, which are all included in the protection scope of the embodiments of the present application, and the present application does not impose any restrictions on this. Alternatively, the RAN device may also include 5G, such as a gNB in ​​a new radio (NR) system, or one or a group of (including multiple antenna panels) antenna panels of a base station in 5G, or a network node constituting a gNB, a transmission point (TRP or transmission point, TP) or a transmission measurement function (TMF), such as a baseband unit (BBU), or a centralized unit (CU) or a distributed unit (DU), an RSU with base station function, or a wired access gateway, or a 5G core network. Alternatively, RAN devices may also include access points (APs) in wireless fidelity (WiFi) systems, wireless relay nodes, wireless backhaul nodes, various forms of macro base stations, micro base stations (also known as small stations), relay stations, access points, wearable devices, vehicle-mounted devices, and the like.

[0090] UPF is mainly responsible for user data processing (forwarding, receiving, billing, etc.). For example, UPF can receive user data from the data network (DN) and forward the user data to the terminal through the access network equipment. UPF can also receive user data from the terminal through the access network equipment and forward the user data to the DN. DN refers to the operator network that provides data transmission services to users. For example, the Internet Protocol (IP) Multimedia Service (IMS), the Internet, etc. DN can be an operator's external network or a network controlled by the operator, used to provide business services to the terminal. In the protocol data unit (PDU) session, the UPF directly connected to the DN through N6 is also called the protocol data unit session anchor (PSA).

[0091] AUSF is mainly used to perform terminal security authentication.

[0092] AMF is mainly used for mobility management in mobile networks, such as user location update, user network registration, and user handover.

[0093] The SMF is primarily used for session management in mobile networks, such as session establishment, modification, and release. Specific functions include allocating Internet Protocol (IP) addresses to users and selecting the UPF that provides packet forwarding capabilities.

[0094] PCF primarily supports providing a unified policy framework to control network behavior, providing policy rules to the control layer network functions, and is responsible for obtaining user subscription information related to policy decisions. PCF can provide policies to AMF and SMF, such as quality of service (QoS) policies and slice selection policies.

[0095] NSSF is mainly used to select network slices for terminals.

[0096] NEF is mainly used to support the opening of capabilities and events.

[0097] UDM is mainly used to store user data, such as contract data, authentication / authorization data, etc.

[0098] UDR is mainly used to store structured data, including contract data and policy data, externally exposed structured data, and application-related data.

[0099] The main functions of TSCTSF are to associate the time synchronization service request of NF consumers with the AF session of PCF; detect the availability of 5GS bridge information of Ethernet and IP type PDU sessions reported by PCF, etc.

[0100] AF mainly supports interaction with CN to provide services, such as influencing data routing decisions, policy control functions, or providing some third-party services to the network side.

[0101] It can be understood that the functions mentioned in the embodiments of the present application can also be expressed as functional network elements or functional entities. For example, UPF can be expressed as UPF network element, AMF can be expressed as AMF network element, SMF can be expressed as SMF network element, PCF can be expressed as PCF network element, and so on, without limitation.

[0102] 2. Terminal status:

[0103] There are three states for a terminal: idle, connected, and inactive.

[0104] The idle state is the state in which the terminal is not connected to the access network equipment. In the idle state, the terminal can perform processes such as public land mobile network (PLMN) selection, cell selection, cell reselection and system message broadcasting.

[0105] The connected state is the state a terminal enters after completing a connection with an access network device. In the connected state, the terminal can obtain its context and key from the network to transmit service data. A terminal can enter the connected state from the idle or inactive state. For example, the terminal can send a radio resource control (RRC) message to the access network device to request to establish or restore a connection with the access network device, thereby entering the connected state. Alternatively, the terminal can be released from the connected state to the idle or inactive state.

[0106] The Inactive state is an intermediate state between the Connected state and the Idle state. In the Inactive state, the terminal can delete the key but retain the terminal context so that it can be quickly restored to the Connected state later.

[0107] It can be understood that the idle state referred to in the embodiments of the present application generally refers to the RRC idle state unless otherwise specified, the connection state referred to in the embodiments of the present application generally refers to the RRC connection state unless otherwise specified, and the inactive state referred to in the embodiments of the present application generally refers to the RRC inactive state unless otherwise specified, which can also be called the "third state".

[0108] 3. Timing:

[0109] The 5G network's timing capability is a network function that can be exposed to external devices. Section 5.27.1.8 of Release 17 defines that the 5G network's timing exposure capability can be activated and deactivated by the AF. In other words, when activated, the 5G network can serve as the master clock for the entire system, providing timing for other devices.

[0110] As shown in Figure 2, taking UE timing as an example, the third-party AF can request TSCTSF through NEF to provide time synchronization service for the UE, that is, to request timing for the UE. TSCTSF can obtain the UE's contract data from the UDM according to the request of the AF. When the contract data indicates that the UE is an authorized UE, the TSCTSF determines to provide timing for the UE, thereby activating the base station to provide access layer time information for the UE, that is, to provide timing for the UE. Optionally, in this process, the TSCTSF can also obtain the error requirement (error budget) for time synchronization from the UE's contract data. The TSCTSF can determine the air interface error requirement (Uu error budget) between the base station and the UE based on the error requirement, and provide it to the base station, so that the base station can perform propagation delay compensation (PDC) compensation for the UE based on the air interface error requirement to achieve high-precision timing.

[0111] Currently, there are two ways for base stations (or RAN devices) to provide timing to UEs: one is a timing advance (TA-based) UE timing solution, and the other is a round trip time (RTT-based) UE timing solution, which are introduced below.

[0112] TA-based:

[0113] As shown in Figure 3, the process of RAN equipment providing timing to UE through TA-based timing is as follows:

[0114] S301 , the RAN device broadcasts a system information block (SIB) 9 .

[0115] SIB9 may include the time of the RAN device, which may be the time the RAN device obtains from the network, or the time when the RAN device broadcasts SIB9. Accordingly, the UE may receive SIB9 broadcast by the RAN device in a non-connected state (e.g., inactive or idle state).

[0116] S302: The UE sends an uplink message to the RAN device. The RAN device receives the uplink message from the UE.

[0117] The UE can respond to SIB9 by switching from a non-connected state to a connected state to send an uplink message to the RAN device. The RAN device can determine the air interface delay (TA) between the RAN device and the UE by analyzing the uplink message, such as the preamble in the uplink message.

[0118] S303: The RAN device sends a downlink message to the UE. The UE receives the downlink message from the RAN device.

[0119] The downlink message can carry the TA determined in S302. In this way, the UE can determine the exact time it received SIB9 based on the TA and the RAN device's time, thereby achieving time synchronization between the UE and the RAN device. Alternatively, the RAN device can determine the exact time the UE received the downlink message based on the time the RAN device will send the downlink message and the TA, and carry the exact time the UE received the downlink message in the downlink message, thereby achieving time synchronization between the UE and the RAN device.

[0120] RTT-based:

[0121] As shown in Figure 4, the process of RAN equipment providing timing to UE through RTT-based timing is as follows:

[0122] S401: An 802.1AS initiator sends a request to an 802.1AS responder. The 802.1AS responder receives the request from the 802.1AS initiator.

[0123] The request in S401 carries the time when the 802.1AS initiating entity sends the request, which is recorded as t1. Correspondingly, the 802.1AS responding entity can determine the time when it receives the request in S401, which is recorded as t2.

[0124] S402: The 802.1AS responding entity sends a response to the 802.1AS initiating entity, and the 802.1AS initiating entity receives the response from the 802.1AS responding entity.

[0125] Among them, the response of S402 is used to respond to the request of S401. The response of S402 carries the time when the 802.1AS responding entity sent the response, which is recorded as t3. Correspondingly, the 802.1AS requesting entity can determine the time when the response was received, which is recorded as t4. In this way, the 802.1AS requesting entity can determine the air interface transmission delay between the 802.1AS initiating entity and the 802.1AS responding entity, such as the air interface transmission delay is [(t2-t1)+(t4-t3)] / 2. In addition, the 802.1AS requesting entity can also determine the time difference (offset) between the 802.1AS initiating entity and the 802.1AS responding entity, such as the time difference is [(t2-t1)-(t4-t3)] / 2.

[0126] As can be seen, RTT-based synchronization is primarily used to determine the clock offset between the 802.1AS initiating and responding entities by calculating the time difference, which is also referred to as the time difference. Therefore, if RTT-based synchronization is used, the 802.1AS initiating or responding entity must first know the time without considering the time difference. In this case, if the 802.1AS initiating or responding entity is a UE, the UE must still first obtain the time without considering the time difference using TA-based synchronization while in the connected state.

[0127] Understandably, 5GS places higher demands on time synchronization between terminals and base stations to meet higher service demands. For example, in smart grids, terminals rely on accurate time for differential protection and fault detection. In the financial industry, terminals also rely on highly precise synchronized time to time-sequence financial operations. However, as explained above regarding TA-based and RTT-based timing, UEs typically only obtain relatively accurate timing in a connected state. In a disconnected state (i.e., broadcasting SIB9), the TA cannot be determined, resulting in low timing accuracy and failing to meet 5GS service requirements. For example, for certain terminal types, such as power management units (PMUs) in smart grids, timing and communication services are separate. PMUs require high-precision clock information to measure the signal phase angle to ensure it is within a specified error range. If the phase angle error exceeds this error range, the PMU must enter a connected state to transmit messages. However, current non-connected timing results in low PMU clock accuracy, leading to large errors in the phase angles measured by the PMU. This necessitates frequent connection, increasing communication overhead and hindering PMU energy conservation. Therefore, achieving high-precision timing in a non-connected state is a hot topic of research. Furthermore, even if a terminal can obtain relatively accurate timing in a connected state, due to limitations in its own clock capabilities, it will still experience time deviations after receiving timing, resulting in loss of time synchronization with the base station. Therefore, ensuring that a terminal can maintain time synchronization with the base station for a long period of time in a connected state is also a hot topic of research.

[0128] The technical solution in this application will be described below with reference to the accompanying drawings.

[0129] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as wireless network (Wi-Fi) systems, vehicle to everything (V2X) communication systems, device-to-device (D2D) communication systems, Internet of Vehicles communication systems, fourth-generation (4G) mobile communication systems, such as long-term evolution (LTE) systems, world-wide interoperability for microwave access (WiMAX) communication systems, fifth-generation (5G) systems, such as new radio (NR) systems, and future communication systems.

[0130] This application will present various aspects, embodiments, or features in the context of systems that may include multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. Furthermore, combinations of these aspects may also be used.

[0131] Additionally, in the embodiments of this application, words such as "exemplary" and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of the word "exemplary" is intended to present concepts in a concrete manner.

[0132] In the embodiments of the present application, "information", "signal", "message", "channel" and "signaling" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are matched. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are matched. In addition, the " / " mentioned in the embodiments of the present application can be used to represent an "or" relationship. In addition, the embodiments of the present application mention sending to A, sending to A, or sending to A, etc., which refers to the sending behavior with A as the destination address, which can be directly or indirectly sent to A. Similarly, the embodiments of the present application mention receiving from A or from A, etc., which refers to the receiving behavior with A as the source address, which can be directly or indirectly received from A.

[0133] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field will know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0134] To facilitate understanding of the embodiments of the present application, a communication system applicable to the embodiments of the present application is first described in detail using the communication system shown in Figure 5 as an example. For example, Figure 5 is a schematic diagram of the architecture of a communication system applicable to the communication method provided in the embodiments of the present application.

[0135] As shown in Figure 5, the communication system can be applied to the above-mentioned 5GS, including: a terminal, a first access network device and a core network network element.

[0136] The terminal may be the UE described above, or a terminal of any other possible form, without specific limitation. The first access network device may be the RAN device described above, or an access network device of any other possible form, without specific limitation. The first access network device may be an access network device accessed by the terminal, or a service access network device of the terminal. The core network element may be an access and mobility management network element, such as the AMF described above, or a time-sensitive communication and time synchronization network element, such as the TSCTSF described above, or a core network element of any other possible form, without specific limitation.

[0137] The core network element may indicate to the first access network device that the access network device needs to maintain time synchronization with the terminal. In this way, the first access network device continues to send messages for time synchronization in response to the instruction of the core network element, so that the terminal can maintain time synchronization with the first access network device.

[0138] The following will describe the interaction process between the network elements / devices in the above communication system in detail through a method embodiment in conjunction with Figures 6 to 10. The communication method provided in the embodiment of the present application can be applied to the above communication system and will be described in detail below.

[0139] Figure 6 is a flow chart of a communication method according to an embodiment of the present application. The communication method is applicable to the above communication system and involves interaction between a terminal, a first access network device, and a core network element.

[0140] As shown in Figure 6, the process of the communication method is as follows:

[0141] S601: A core network element obtains instruction information.

[0142] The indication information can be used to indicate that the access network device needs to maintain time synchronization with the terminal. For example, the indication information can be used to indicate that the access network device needs to maintain time synchronization with the terminal when the terminal is in a non-connected state (i.e., in an inactive or idle state). It can also be replaced by the terminal's inactive state timing requirement, or the terminal's idle state timing requirement, or it can be replaced by any possible name, such as clock synchronization frequency offset correction requirement, without specific limitation.

[0143] In one possible approach, the core network element can obtain the indication information from the data management element. In this case, the indication information can be pre-configured in the terminal's subscription data, or the terminal's subscription data includes the indication information. The indication information can be updated (such as subscription data update) or pre-configured (such as initial configuration) in the terminal's subscription data at any possible time, without specific limitation. In this way, the core network element can obtain the terminal's subscription data and, thereby, simultaneously obtain the indication information.

[0144] For example, if the core network element is an access and mobility management element, the element can send a subscription data management acquisition request (Nudm_SDM_Get_Requset) message to the data management element during the terminal registration process to receive a data management acquisition response (Nudm_SDM_Get_Response) message from the data management element. The response message can carry the subscription data of the terminal. For the specific implementation principle, please refer to the relevant introduction of S701-S703 below, which will not be repeated here. Alternatively, if the core network element is a time-sensitive communication and time synchronization element, the element can obtain the subscription data of the terminal from the data management element based on the request of the received application function, such as the access layer time creation / update / release (Nnef_TimeSynchronization_ASTI Create / Update / Delete) message.

[0145] In another possible approach, the core network element can obtain the indication information from the application function. For example, if the core network element is a time-sensitive communication and time synchronization element, the element can directly carry the indication information in the access layer time creation / update / release message based on the request of the application function, such as the access layer time creation / update / release message. The specific implementation principle can be referred to the relevant description of S901-S903 below and will not be repeated here.

[0146] S602: The core network element sends instruction information to the first access network device. Correspondingly, the first access network device receives the instruction information.

[0147] The indication information can be transmitted to the first access network device by reusing existing messages to reduce implementation difficulty.

[0148] For example, if the core network element is an access and mobility management network element, the network element can obtain indication information from the data management network element, and continue to send a UE context modification request / response (UE Context Modification Requset / Response) message carrying the indication information to the first access network device to trigger the first access network device to execute the time synchronization scheme in the embodiment of the present application. The specific implementation principle can also be referred to the relevant introduction of S704-S705 below, which will not be repeated here.

[0149] For another example, if the core network element is a time-sensitive communication and time synchronization network element, the network element can obtain indication information from the data management network element or application function, and send a create / update (AM policy authorization) request to the policy control network element, so that the policy control network element can ultimately pass the indication information to the first access network device through the access and mobility management network element to trigger the first access network device to execute the time synchronization scheme in the embodiment of the present application. The specific implementation principle can also refer to the relevant introduction of S904-S906 below, which will not be repeated here.

[0150] Alternatively, the indication information may be transmitted to the first access network device via a newly defined message, so as to achieve decoupling from existing messages and make information transmission more flexible.

[0151] It can be understood that the indication message can be a message sent after the terminal completes time synchronization with the first access network device. In this case, before the first access network device sends the indication message, the terminal can first use the existing technology solution (such as the second message) to complete time synchronization with the first access network device. After the first access network device sends the indication message, the terminal uses the solution of the present application (such as the first message) to maintain time synchronization with the first access network device. For details, please refer to the relevant introduction of S603 below, which will not be repeated here. Alternatively, the indication message can also be a message sent before the terminal completes time synchronization with the first access network device, or it can also be a message sent together with the message used by the first access network device to complete time synchronization with the terminal. In this case, the terminal can also first use the existing technology solution to complete time synchronization with the first access network device, and then use the solution of the present application to maintain time synchronization with the first access network device. For details, please refer to the relevant introduction of S603 below, which will not be repeated here.

[0152] S603: In response to the instruction information, the first access network device sends a first message. Correspondingly, the terminal receives the first message from the first access network device.

[0153] Before sending the first message, the first access network device may first send a second message to complete time synchronization between the first access network device and the terminal through the second message. In other words, the completion of time synchronization between the first access network device and the terminal mentioned in S603 refers to the time synchronization first completed through the second message.

[0154] Specifically, the second message can be the most recently sent message among the time synchronization messages sent by the first access network device before the first message is sent, or the most recently received message among the time synchronization messages received by the terminal before the first message is received. Alternatively, the second message can be any message that can be used for time synchronization, as long as the terminal and the first access network device can agree on which message to use, without specific limitation. Furthermore, the second message can be sent before or after the aforementioned indication information, without specific limitation.

[0155] The second message can be used to indicate the time when the first access network device sends the second message, such as including the time when the first access network device sends the second message, so as to complete time synchronization between the terminal and the first access network device. Alternatively, the second message can also be used to indicate the time offset between the first access network device and the terminal. The time offset can be determined by the first access network device through RTT-based. The specific implementation principle can refer to the relevant introduction of "3. Timing" above, which will not be repeated here. The second message can be a unicast message, such as a radio resource control (RRC) message, a downlink control information (DCI) message, a media access control-control element (MAC_CE) message, etc., that is, it can be implemented by reusing existing unicast messages to reduce the difficulty of implementation.

[0156] For example, when the terminal is in a connected state, the first access network device can unicast the second message to the terminal. In this way, the terminal can determine the time when the terminal receives the second message based on the time when the first access network device sends the second message and the timing advance between the terminal and the first access network device. Alternatively, the terminal can also correct the time when the terminal receives the second message recorded according to the local time based on the time offset between the first access network device and the terminal to obtain the time when the terminal receives the second message, or in other words, the exact time when the terminal receives the second message. The terminal can determine the time when the terminal receives the second message as the terminal time, thereby completing the time synchronization with the first access network device. Among them, the timing advance can be pre-saved locally in the terminal, or can also be carried in the second message, and there is no specific limitation on this. The timing advance can be determined by the first access network device through TA-based. The specific implementation principle can refer to the relevant introduction of "3. Timing" above, which will not be repeated here.

[0157] It will be appreciated that the second message indicating the time at which the first access network device sends the second message is merely an exemplary implementation and is not intended to be limiting. For example, the first access network device may determine in advance the time at which the terminal receives the second message based on the timing advance between the terminal and the first access network device. Thus, the second message may also indicate the time at which the terminal receives the second message.

[0158] Optionally, after sending the second message, the first access network device may further store the time at which the first access network device sent the second message. For example, the first access network device may cache the time at which the first access network device sent the second message in a memory of the first access network device, or store it on a hard disk of the first access network device for subsequent use.

[0159] For ease of understanding, let's take a look at an example:

[0160] The UE connects to gNB1. gNB1 sends a second message to the UE. The second message carries the time gNB1 sent the second message, 09:00, and the timing advance between gNB1 and the UE is 0:01. Therefore, the UE can add the time gNB1 sent the second message, 09:00, to the timing advance of 0:01 to obtain the time the UE received the second message, 09:01. Alternatively, the second message carries the time offset between gNB1 and the UE, 0:02. The UE records the time the second message was received as 8:59 based on its local time. Therefore, the UE uses the time offset of 0:02 and corrects 8:59 to obtain the exact time the UE received the second message, 09:01. Therefore, 09:01 can be used as the terminal time, allowing the terminal to keep time based on 09:01.

[0161] After the first access network device completes time synchronization between the terminal and the first access network device by sending the second message, the first access network device sends the first message again to complete time synchronization between the first access network device and the terminal again, or to maintain time synchronization, which is described in detail below.

[0162] The first message can be used to indicate the time when the first access network device sends the first message, such as including the time when the first access network device sends the first message. The time can be used by the terminal to maintain time synchronization with the first access network device. The specific implementation principle can be referred to the relevant introduction of S604 below, which will not be repeated here.

[0163] In one possible implementation, the first message can be a unicast message, such as an RRC message, a DCI message, a MAC_CE message, etc., that is, it can be implemented by reusing existing unicast messages to reduce implementation difficulty. For example, when the terminal is in a connected state, the first access network device can respond to the indication information and determine that the terminal needs to continue to maintain time synchronization with the first access network device. Therefore, the first access network device can unicast the first message to the terminal, and accordingly, the terminal can receive the first message unicast by the first access network device to the terminal, thereby enabling the terminal to maintain time synchronization with the first access network device for a long time while in the connected state.

[0164] In another possible implementation, the first message may also be a broadcast message, such as an SIB, specifically SIB9, that is, it can be implemented by reusing existing broadcast messages to reduce the difficulty of implementation. For example, when the terminal is in an inactive state or an idle state, the first access network device may determine, in response to the indication information, that the terminal needs to continue to maintain time synchronization with the first access network device. Therefore, the first access network device may broadcast the first message (such as periodically broadcasting the first message), and accordingly, the terminal may receive the first message broadcast by the first access network device (such as periodically receiving the first message broadcast by the first access network device), so as to enable the terminal to maintain time synchronization with the first access network device for a long time in an inactive state or an idle state. The timing at which the first access network device broadcasts the first message may be agreed upon in advance by the terminal and the first access network device. In this way, when the first access network device broadcasts the first message at the corresponding timing, the terminal may also perform reception detection at the corresponding timing to receive the first message broadcast by the first access network device.

[0165] It can be understood that the above-mentioned first message being a unicast message in the connected state is only an example. For example, in the connected state, the first message can still be a broadcast message, that is, when the terminal is in the connected state, the first access network device can also broadcast the first message to the terminal, and accordingly, the terminal can receive the first message broadcast by the first access network device to the terminal.

[0166] It is also understood that the first message using existing messages is only an example and is not intended to be limiting. For example, the first message may also be a newly defined message to achieve decoupling from existing messages and more flexible information transmission.

[0167] Optionally, the first message may also carry an identifier of the terminal, such as a subscription permanent identifier (SUPI), to indicate that the first message is a message sent to the terminal. In this way, the terminal that receives the first message can determine, based on whether the first message carries the identifier of the terminal, whether the terminal should use the time at which the first access network device indicated by the first message sends the first message to complete time synchronization with the first access network device. For example, if the first message carries the identifier of the terminal, the terminal can determine, based on the identifier of the terminal carried in the first message, that the first message is a message sent to the terminal, and therefore can use the time at which the first access network device sends the first message to complete time synchronization with the first access network device. Otherwise, if the first message does not carry the identifier of the terminal, the terminal can ignore the first message, that is, not use the time at which the first access network device sends the first message to complete time synchronization with the first access network device.

[0168] Of course, whether the terminal uses the time indicated by the first message when the first access network device sends the first message to achieve time synchronization with the first access network device may be agreed upon in advance between the terminal and the first access network device, or may be predefined by the protocol. In this case, regardless of whether the first message carries the terminal identifier, the terminal may, by default, use the time indicated by the first message when the first access network device sends the first message to achieve time synchronization with the first access network device.

[0169] Optionally, the first message may also be used to indicate the time at which the first access network device sends the second message. That is, a single message may be reused to indicate multiple times to improve communication efficiency. For example, when the first access network device is about to send the first message, the first access network device may obtain the time at which the first access network device sends the second message from locally stored information and include the time at which the first access network device sends the second message in the first message for use in synchronizing terminal time. For details, please refer to the following description of S604 and will not be repeated here.

[0170] S604: The terminal determines the time when the terminal receives the first message according to the time when the first access network device sends the first message, the time when the first access network device sends the second message, and the time when the terminal receives the second message.

[0171] The terminal may determine that the time at which the terminal received the second message is needed to achieve time synchronization with the first access network device. For example, before S604, as in S603, after determining the time at which the terminal received the second message, the terminal may also determine the correspondence between the time at which the first access network device sent the second message and the time at which the terminal received the second message, and save this correspondence. If the first message indicates the time at which the first access network device sent the second message, the terminal may obtain the time at which the terminal received the second message from the correspondence based on the time at which the first access network device sent the second message, as indicated by the first message.

[0172] That is, if the terminal saves the corresponding relationship and the first message also indicates the time when the first access network device sends the second message, the terminal can determine, based on the corresponding relationship and the time when the first access network device sends the second message as indicated by the first message, that the terminal needs to use the time when the terminal receives the second message to achieve time synchronization with the first access network device this time. Of course, the terminal may not save the corresponding relationship, or the first message may not indicate the time when the first access network device sends the second message. In this case, the terminal may default to using the time when the terminal receives the second message to achieve time synchronization with the first access network device this time.

[0173] Therefore, the terminal can determine the time difference between the time when the first access network device sends the first message and the time when the first access network device sends the second message. The terminal can determine the time when the terminal receives the first message based on the time difference and the time when the terminal receives the second message, such as adding the time difference and the time when the terminal receives the second message. It can be understood that since the time when the first access network device sends the second message is the time when the terminal is synchronized with the first access network device, and the time difference is the time difference between two separate time synchronizations performed by the first access network device, the terminal can add the time difference to the time when the first access network device sends the second message to obtain the time when the terminal continues to maintain synchronization with the first access network device, thereby achieving continued time synchronization with the first access network device.

[0174] S605: The terminal determines the time when the terminal receives the first message as the time when the terminal is synchronized with the first access network device.

[0175] The terminal may determine the time when the terminal receives the first message as the time of the first access network device, that is, the terminal considers that the time is the time synchronized with the first access network device, and continues timing based on the time.

[0176] Continuing with the above example:

[0177] gNB1 sends a first message to the UE. The first message carries the time gNB1 sent the first message, 09:04, and optionally, the time gNB1 previously sent the second message, 09:00. The UE stores a correspondence between the time gNB1 sent the second message, 09:00, and the time the UE received the second message, 09:01. After receiving the first message, the UE can use the time gNB1 sent the second message, 09:00, carried in the first message, to determine that the UE needs to use the time the UE received the second message, 09:01, to synchronize its time with gNB1. Therefore, the UE can determine that the time difference between 09:00 and 09:04 is 00:04. Therefore, the UE adds 00:04 to 09:01 to obtain the time the UE received the first message, 09:05. At this time, 09:05 can be used as the latest time of the UE. That is, no matter what time the UE reaches based on the previous 09:01, the UE must adjust the time to 09:05 and continue timing based on this time.

[0178] In summary, after the terminal and the first access network device have completed time synchronization via the second message, the first access network device can continue to send the first message to the terminal to indicate the time at which the first access network device sent the first message. In this way, the terminal can continue to determine the time of the terminal synchronized with the first access network device based on previously synchronized times, such as the time when the first access network device sent the second message, the time when the terminal received the second message, and the time when the first access network device sent the first message, thereby enabling the terminal and the access network device to maintain time synchronization over a long period of time.

[0179] A first possible design solution, in combination with the method shown in FIG6 , may further include:

[0180] Step 1: The core network element receives the clock capability of the terminal from the application function.

[0181] The terminal's clock capability can be used by the access network device to determine when to synchronize time with the terminal, or when to provide time between the access network device and the terminal. For example, the terminal's clock capability can be the terminal's crystal oscillator frequency, which can be characterized or measured in parts per million (PPM). For example, 20 PPM represents an accuracy of approximately 2E-5 (20 ppm). In this case, the time generated by the terminal's crystal oscillator will differ from the actual time by 0.02 milliseconds (ms) every second, resulting in a deviation of approximately 2 seconds per day. In other words, the terminal's clock capability can reflect the magnitude of the terminal's time error, allowing the access network device to determine when to synchronize time with the terminal based on the terminal's clock capability to avoid excessive time error. The specific implementation principle can be found in the description of step 3 below and will not be elaborated here.

[0182] Step 2: The core network element sends the clock capability of the terminal to the first access network device. The first access network device receives the clock capability of the terminal.

[0183] The terminal's clock capability can be carried in the same message together with the above-mentioned indication information to improve communication efficiency. For the specific implementation principle, please refer to the relevant introduction of the above-mentioned indication information, which will not be repeated here. Alternatively, the terminal's clock capability can also be carried in messages other than the indication information to achieve decoupling from the transmission of the indication information, making information transmission more flexible. In this case, the way the terminal's clock capability is carried can still be similar to the indication information, for example, the two are carried in two different messages of the same type. Therefore, its specific implementation principle can still refer to the relevant introduction of the above-mentioned indication information, which will not be repeated here.

[0184] Step 3: The first access network device determines the timing of sending the first message according to the clock capability of the terminal.

[0185] The first access network device determines, based on the clock capability of the terminal, at what point in time, after the terminal and the first access network device complete time synchronization, the error in the terminal's own time will exceed the time error threshold. The time error threshold can be used to indicate that the error between the time generated by the terminal's self-timekeeping and the time of the first access network device cannot exceed the time error threshold. The terminal and the first access network device can agree in advance on the value of the time error threshold. For example, the value of the time error threshold can be determined based on the service requirements between the terminal and the first access network device. For example, for services that are more sensitive to latency, the value of the time error threshold is generally smaller. Conversely, the value of the time error threshold can be larger. Alternatively, the value of the time error threshold can also be predefined by the protocol.

[0186] On this basis, for the time point before the time error threshold is exceeded, the time point can be the time to send the first message. Therefore, in S603, the first access network device sends the first message at the time of sending the first message to avoid the terminal's time error being too large and causing the service to be affected. For example, the first access network device determines that the terminal's time will deviate by 2.4 seconds in one day based on the terminal's clock capability, and the time error threshold is 0.1 seconds, which means that one hour after each time the terminal and the first access network device complete time synchronization, the first access network device must send the first message to the terminal to complete time synchronization again to avoid the terminal's time deviating by more than 0.1 seconds and affecting the terminal's service.

[0187] A second possible design solution, combined with the method shown in FIG6 , may further include:

[0188] Step 4: The first access network device determines to stop sending the first message.

[0189] For example, when the terminal reselects from the first access network device to the second access network device, the first access network device can receive a request from the second access network device to inform the terminal that it has reselected to the second access network device. Therefore, the first access network device can respond to the request of the second access network device and determine to stop sending the first message to avoid unnecessary communication overhead caused by sending redundant messages.

[0190] For another example, the first access network device may proactively switch the terminal to the second access network device. In this case, the first access network device may determine to stop sending the first message in response to its own switching operation, thereby avoiding unnecessary communication overhead caused by sending redundant messages.

[0191] It is understood that the terminal may default to using the method in the embodiments of the present application to achieve time synchronization with the first access network device. For example, for an upgraded terminal with enhanced time synchronization capabilities, the terminal may default to using the method in the embodiments of the present application to achieve time synchronization with the first access network device. In other words, for a terminal that has not been upgraded, the terminal may default to using an existing method, such as TA-based or RTT-based. Of course, regardless of whether the terminal has been upgraded, whether the terminal uses the method in the embodiments of the present application to achieve time synchronization with the first access network device can be indicated by the network side. For example, the first access network device may send an indication to the terminal. This indication may be a single bit with two values, respectively indicating whether the terminal uses the method in the embodiments of the present application to achieve time synchronization with the first access network device. Alternatively, the first access network device may send an indication to the terminal to instruct the terminal to use the method in the embodiments of the present application to achieve time synchronization with the first access network device. If the first access network device does not send an indication to the terminal, it indicates that the terminal uses an existing method. Of course, other implementation methods are possible, and the embodiments of the present application will not be described in detail.

[0192] Scenario 1:

[0193] Figure 7 is a second flow diagram of a communication method according to an embodiment of the present application. This communication method is applicable to the aforementioned communication system and specifically involves interactions between the UE, gNB1, gNB2, the AMF, and the UDM. In scenario 1, even after the UE enters the inactive state, gNB1 can still send time to the UE so that the UE can calibrate its own time and maintain time synchronization with gNB1.

[0194] Specifically, as shown in FIG7 , the process of the communication method is as follows:

[0195] S700: The UE's subscription data is pre-configured with the UE's clock synchronization requirement.

[0196] The UE's subscription data can be stored in the UDM. The UE's subscription data can be pre-configured with clock synchronization information, such as at least one of the following: UE timing-related information, such as clock synchronization frequency offset correction requirements (i.e., the aforementioned indication information) or air interface error requirements. The clock synchronization frequency offset correction requirements can be used to indicate that the UE needs to obtain timing from the gNB while in an inactive state, or that the UE needs to maintain time synchronization with the gNB while in an inactive state.

[0197] It is understood that the clock synchronization frequency offset correction requirement is only an exemplary name in the embodiment of the present application, and it can also be replaced by any possible name, such as inactive timing requirement, inactive time synchronization requirement, inactive clock synchronization requirement, etc., without specific limitation. In addition, the clock synchronization frequency offset correction requirement can be updated (such as subscription data update) or pre-configured (such as initial configuration) to the UE's subscription data at any possible time, without specific limitation.

[0198] S701: UE requests to register with the network.

[0199] Among them, the UE can access gNB1 and trigger the AMF to perform the registration process so that the UE can register with the network. The specific implementation principle can be referred to the relevant introduction of TS23.502 and will not be repeated here.

[0200] S702: The AMF sends a subscription data management acquisition request message to the UDM. The UDM receives the subscription data management acquisition request message from the AMF.

[0201] S703: The UDM sends a subscription data management acquisition response message to the AMF. The AMF receives the subscription data management acquisition response message from the UDM.

[0202] During the registration process, the AMF may send a Get Subscription Data Management Request message to the UDM to request the UE's subscription data. Therefore, the UDM may provide the AMF with a Get Subscription Data Management Response message containing the UE's subscription data based on the Get Subscription Data Management Request message.

[0203] S704: The AMF sends a UE Context Modification Request / Response message to gNB1. gNB1 receives the UE Context Modification Request / Response message from the AMF.

[0204] The UE context modification request / response message may include a UE identifier, such as SUPI, or any other information that may be used to indicate the UE, and may also include UE timing-related information, such as clock synchronization frequency offset correction requirements, and air interface error requirements.

[0205] As will be appreciated, the UE context typically needs to be configured or stored on gNB1. After the AMF obtains the UE's subscription data from the Subscription Data Management Get Response message, it can proactively configure or modify the UE context based on the UE's subscription data, thereby sending a UE Context Modify Request message to gNB1. Alternatively, the AMF can receive a request from gNB1 to proactively modify or configure the UE context, i.e., a UE Context Modify Request message from gNB1, and then send a UE Context Modify Response message to gNB1 based on the UE's subscription data. After receiving the UE Context Modify Request / Response message, gNB1 can update the UE context with the information contained therein, such as UE timing information, or create a new UE context based on the UE timing information.

[0206] S705: gNB1 sends a timing message to the UE. The UE receives the timing message from gNB1.

[0207] The timing message can be a unicast message, for example, including a UE identifier to indicate that the timing message is unicast to the UE. Furthermore, the timing message can include the time at which gNB1 sent the timing message, denoted as time t1, meaning that gNB1 sent the timing message at time t1. The timing message can be a newly defined message and can be replaced with any other name, without limitation. Alternatively, the timing message can be implemented by reusing existing messages, such as RRC messages, DCI messages, MAC_CE messages, etc., also without limitation.

[0208] gNB1 can send a timing message to the UE based on the UE's context. For example, gNB1 can determine timing for the UE based on the UE's timing-related information. gNB1 can select a timing mode, such as RTT-based timing based on air interface error requirements. Alternatively, gNB1 can determine RTT-based timing based on other information, such as determining that the UE has been previously assigned timing, meaning that the UE has local time available for calibration. In this case, the UE can be in a connected state and thus receive the timing message.

[0209] S706: The UE sends a timing response message to gNB1. gNB1 receives the timing response message from the UE.

[0210] The timing response message can be used to respond to the timing message. The timing response message may include: the UE identifier, which is used to characterize that the timing response message is a response message from the UE. The timing response message may also include: the time when the UE receives the timing message, recorded as time t2, that is, the UE receives the timing message at time t2, and the time when the UE sends the timing response message, recorded as time t3, that is, the UE sends the timing response message at time t3. The timing response message can be a newly defined message, and the message can also be replaced by any other possible name, which is not limited. Alternatively, the timing response message can also be implemented by reusing existing messages, such as RRC messages, DCI messages, MAC_CE messages, etc., which is also not specifically limited.

[0211] After receiving the Timing Message, the UE records time t2. At time t3, when the Timing Response message is to be sent, the UE encapsulates time t2 and time t3 into the Timing Response message and sends the Timing Response message to gNB1. After receiving the Timing Response message, gNB1 records the time at which it received the Timing Response message as time t4, indicating that gNB1 received the Timing Response message at time t4.

[0212] S707, gNB1 determines the time offset.

[0213] gNB1 can determine a time offset, or an air interface transmission time offset, based on time t1, time t2, time t3, and time t4. For example, the time offset is [(time t2 - time t1) - (time t4 - time t3)] / 2.

[0214] S708: gNB1 sends Timing Indication Message #1 to the UE. The UE receives Timing Indication Message #1 from gNB1.

[0215] Timing Indication Message #1 (also known as the second message described above) can be a unicast message used to provide timing to the UE in the connected state. For example, Timing Indication Message #1 can include the UE's identifier, the time offset, and the time at which gNB1 sent Timing Indication Message #1, recorded as time t5, indicating that gNB1 sent Timing Indication Message #1 at time t5. Furthermore, Timing Indication Message #1 can be a newly defined message and can be replaced with any other possible name, without limitation. Alternatively, Timing Indication Message #1 can be implemented by reusing existing messages, such as RRC messages, DCI messages, MAC_CE messages, etc., also without limitation.

[0216] After receiving Timing Indication Message #1, the UE can record the local time at the time of receiving Timing Indication Message #1 and use the time offset to correct the local time to obtain the exact time when the UE received Timing Indication Message #1, which is recorded as time t6. In addition, the UE can also establish a correspondence between time t6 and time t5 and save this correspondence for subsequent use.

[0217] It can be seen that since time t6 is obtained by the UE using the time offset correction sent by gNB1, time t6 is the time when the UE is synchronized with gNB1. That is, at this time, gNB1 completes the timing of the UE, and the UE and gNB1 are synchronized.

[0218] S709, gNB1 saves time t5.

[0219] gNB1 may save time t5, such as caching time t5 in a memory of gNB1 for subsequent use, or may save time t5 to a hard disk of gNB1 to avoid loss.

[0220] It is understood that steps S705-S709 above are performed when gNB1 provides timing to the UE while the UE is in the connected state. Steps S705-S708 can be repeated. In other words, while the UE is in the connected state, gNB1 can provide timing to the UE multiple times to ensure that the UE's time remains synchronized with gNB1 for a long period of time.

[0221] S710: gNB1 determines that the UE enters an inactive state.

[0222] The AMF can determine that the UE has been released into the Inactive state. For example, if the AMF determines that there has been no downlink data transmission from the UE for an extended period, the AMF notifies gNB1 to release the UE into the Inactive state. Alternatively, the UE can enter the Inactive state voluntarily. For example, if the UE determines that it has not received downlink data for an extended period, the UE voluntarily enters the Inactive state and notifies the AMF of this entry through gNB1. This allows gNB1 to determine that the UE has entered the Inactive state. Alternatively, gNB1 and the UE can agree on the time point at which the UE enters the Inactive state, or the time point at which the UE enters the Inactive state can be a predefined time point in the protocol. At this time point, the UE voluntarily enters the Inactive state, and gNB1 accordingly assumes that the UE has entered the Inactive state. Alternatively, the UE can enter the Inactive state in any other possible manner, which is not specifically limited.

[0223] S711, gNB1 broadcasts timing indication message #2.

[0224] Timing Indication Message #2 (also known as the first message described above) can be a broadcast message used to provide timing to UEs in an inactive state. For example, Timing Indication Message #2 can carry the time of gNB1. For example, if the time at which gNB1 sends Timing Indication Message #2 is t7, then gNB1 sends Timing Indication Message #2 at t7. Timing Indication Message #2 can also be a newly defined message and can be replaced with any other possible name, without limitation. Alternatively, Timing Indication Message #2 can be implemented by reusing existing messages, such as SIB9, without specific limitation.

[0225] Optionally, Timing Indication Message #2 may also include the time (recorded as a historical time) at which gNB1 sent other Timing Indication Messages prior to sending Timing Indication Message #2. For example, the historical time may be the time carried in the Timing Indication Message sent by gNB1 the most recently executed S705-S708. For example, before S710, S705-S709 were executed three times in a polling cycle. The time carried in Timing Indication Message #2 may be the time carried in the Timing Indication Message sent by gNB1 the third time it was executed. For ease of understanding, this embodiment of the application uses the example of Timing Indication Message #1 being the most recently executed Timing Indication Message (other cases may be understood similarly). In this case, the historical time carried in Timing Indication Message #2 is time t5. That is, since gNB1 has previously stored time t5, when sending Timing Indication Message #2, gNB1 can obtain time t5 from the stored information and carry time t5 in Timing Indication Message #2.

[0226] It is understood that the aforementioned historical time is the time carried in the timing indication message sent by gNB1 when S705-S709 is most recently executed. This is merely an example and is not intended to be limiting. For example, the historical time may also be the time carried in the timing indication message sent by gNB1 when S705-S709 is executed at any time (e.g., the first time, the second time, etc.), without specific limitation.

[0227] It can also be understood that carrying the historical time in the timing indication message #2 is only an optional implementation method. For example, if the UE and gNB1 have agreed in advance on the time corresponding to the execution of the above-mentioned S705-S709, the timing indication message #2 may not carry the historical time.

[0228] In this embodiment of the present application, since the clock synchronization frequency offset correction requirement indicates that gNB1 still needs to provide timing to the UE even after it enters the inactive state, gNB1 can, upon determining that the UE has entered the inactive state, continue to provide timing to the UE in accordance with the clock synchronization frequency offset correction requirement, namely, broadcasting Timing Indication Message #2. Furthermore, the timing for gNB1 to broadcast Timing Indication Message #2 can be pre-agreed between the UE and gNB1 or pre-defined by the protocol. This allows the UE to perform a reception check at the agreed-upon timing, even when in the inactive state, and thereby receive Timing Indication Message #2 broadcast by gNB1.

[0229] It is understood that the UE can determine whether it needs to maintain time synchronization with gNB1 in the inactive state based on its locally stored subscription data. That is, if the UE's subscription data includes a clock synchronization frequency offset correction requirement, the UE can determine based on this clock synchronization frequency offset correction requirement that it needs to maintain time synchronization with gNB1 upon receiving Timing Indication Message #2 and proceed to S712. If the UE's subscription data does not include a clock synchronization frequency offset correction requirement, the UE can ignore Timing Indication Message #2 upon receiving it. Of course, the UE can determine whether it needs to maintain time synchronization with gNB1 in the inactive state through other means. For example, Timing Indication Message #2 can also carry a UE identifier to indicate that the UE needs to maintain time synchronization with gNB1 in the inactive state. Therefore, if the UE determines that the received Timing Indication Message #2 contains its own identifier, it proceeds to S712; otherwise, it ignores Timing Indication Message #2.

[0230] S712: The UE determines the time when the UE receives the timing indication message #2 based on time t5, time t6, and time t7.

[0231] The UE can determine the time difference based on time t5 and time t7, such as time t7 minus time t5. Since time t6 is the time when the UE synchronized with gNB1, and the time difference is the time difference between two timing synchronizations performed by gNB1, the UE adds this time difference to time t6 to obtain the time at which the UE and gNB1 continue to be synchronized, that is, the time when the UE receives Timing Indication Message #2, recorded as time t8. At this point, the UE can use time t8 to correct its own time, for example, by starting the timer based on time t8, to maintain time synchronization with the gNB. This means that the UE can continue to maintain time synchronization with gNB1 even when it is inactive.

[0232] S713: The UE switches or reselects to gNB2.

[0233] When the UE is in an inactive state, the UE can perform cell reselection, such as switching from gNB1 or reselecting to gNB2. The specific implementation principle can be referred to the relevant introduction of TS 33.502 and will not be repeated here.

[0234] S714: gNB1 sends the UE context to gNB2 via the Xn interface.

[0235] When the UE hands over or reselects to gNB2, gNB2 can request the UE context from gNB1. gNB1 can respond to gNB1's request and send the UE context to gNB2. The UE context sent by gNB1 to gNB2 can also include the aforementioned UE timing information. In this way, gNB2 can also perform a similar process as gNB1 based on the UE context, that is, provide timing to the UE when the UE is in an inactive state.

[0236] In addition, when the UE reselects gNB2, the specific implementation principle of the interaction between gNB1 and gNB2 can also be referred to the relevant introduction of TS 33.502, which will not be repeated here.

[0237] S715: gNB1 determines to stop broadcasting timing indication message #2.

[0238] gNB1 can stop broadcasting Timing Indication Message #2 while simultaneously responding to gNB2's request. In other words, gNB1's response to gNB2's request also triggers gNB1 to stop broadcasting Timing Indication Message #2. For example, after gNB2 requests the UE's context from gNB1, gNB1 can determine, based on gNB2's request, that the UE has switched or reselected to gNB2. Therefore, gNB1 can trigger the cessation of Timing Indication Message #2 broadcasting to avoid sending redundant messages.

[0239] Scenario 2:

[0240] Figure 8 is a third flow diagram of a communication method according to an embodiment of the present application. This communication method is applicable to the aforementioned communication system and specifically involves interactions between the UE, gNB1, gNB2, the AMF, and the UDM. In scenario 2, even after the UE enters the idle state, gNB1 can still send time to the UE so that the UE can calibrate its own time and maintain time synchronization with gNB1.

[0241] Specifically, as shown in FIG8 , the process of the communication method is as follows:

[0242] S800: The UE's subscription data is pre-configured with the UE's clock synchronization requirement.

[0243] The UE's subscription data can be stored in the UDM. The UE's subscription data can be pre-configured with information about the UE's clock synchronization requirements, such as at least one of the following: a clock synchronization frequency offset correction requirement (i.e., the aforementioned indication information) or an air interface error requirement. The clock synchronization frequency offset correction requirement can be used to indicate that the UE needs to obtain timing from the gNB in ​​idle state, or that the UE needs to maintain time synchronization with the gNB in ​​idle state.

[0244] It is understood that the clock synchronization frequency offset correction requirement is merely an exemplary term in the embodiments of the present application and can be replaced with any possible term, such as idle state timing requirement, idle state time synchronization requirement, idle state clock synchronization requirement, etc., without specific limitation. In addition, the clock synchronization frequency offset correction requirement can be updated (such as when the subscription data is updated) or pre-configured (such as initially configured) in the UE's subscription data, or configured by the AF request, at any possible opportunity, without specific limitation.

[0245] S801: UE requests to register with the network.

[0246] S802: The AMF sends a subscription data management acquisition request message to the UDM. The UDM receives the subscription data management acquisition request message from the AMF.

[0247] S803: The UDM sends a subscription data management acquisition response message to the AMF. The AMF receives the subscription data management acquisition response message from the UDM.

[0248] S804: The AMF sends a UE Context Modification Request / Response message to gNB1. gNB1 receives the UE Context Modification Request / Response message from the AMF.

[0249] S805: gNB1 sends a timing message to the UE. The UE receives the timing message from gNB1.

[0250] S806: The UE sends a timing response message to gNB1. gNB1 receives the timing response message from the UE.

[0251] S807, gNB1 determines the time offset.

[0252] S808: gNB1 sends Timing Indication Message #1 to the UE. The UE receives Timing Indication Message #1 from gNB1.

[0253] S809, gNB1 saves time t5.

[0254] Among them, the specific implementation principles of S801-S809 are similar to those of the above-mentioned S701-S709, which can be referred to for understanding and will not be repeated here.

[0255] S810: gNB1 determines that the UE enters the idle state.

[0256] The AMF may determine that the UE is released into the idle state. For example, if the AMF determines that there has been no downlink data transmission from the UE for an extended period, the AMF may notify the gNB to release the UE into the idle state. Alternatively, the UE may enter the idle state on its own. For example, if the UE determines that it has not received downlink data for an extended period, the UE may enter the idle state on its own and notify the AMF of its entry into the idle state through gNB1. Alternatively, gNB1 and the UE may agree on the time point for the UE to enter the idle state, or the time point for the UE to enter the idle state may be a protocol-predefined time point. At this time point, the UE enters the idle state on its own, and gNB1 accordingly assumes that the UE has entered the idle state. Alternatively, the UE may enter the idle state in any other possible manner, which is not specifically limited.

[0257] S811, gNB1 broadcasts timing indication message #2.

[0258] The specific implementation principle of the timing indication message #2 can refer to the relevant introduction of S711 above, which will not be repeated here.

[0259] It can be understood that since the clock synchronization frequency offset correction requirement indicates that: when the UE enters the idle state, gNB1 still needs to provide time for the UE. Therefore, when gNB1 determines that the UE enters the idle state, gNB1 can continue to provide time for the UE according to the clock synchronization frequency offset correction requirement, that is, broadcast the timing indication message #2. The specific implementation principle can also be referred to the relevant introduction of S711 above, which will not be repeated here.

[0260] S812: The UE determines the time when the UE receives the timing indication message #2 based on time t5, time t6, and time t7.

[0261] S813: The UE switches or reselects to gNB2.

[0262] S814: gNB1 sends the UE context to gNB2 via the Xn interface.

[0263] S815: gNB1 determines to stop broadcasting timing indication message #2.

[0264] Among them, the specific implementation principles of S812-S815 are similar to those of the above-mentioned S712-S715, which can be referred to for understanding and will not be repeated here.

[0265] Scenario 3:

[0266] Figure 9 is a fourth flow diagram of a communication method according to an embodiment of the present application. This communication method is applicable to the aforementioned communication system and specifically involves interactions between the UE, gNB1, AMF, PCF, UDM, TSCTSF, NEF, and AF. In scenario 3, after the UE is in the connected state and has completed time synchronization with gNB1, gNB1 can continue to send time to the UE so that the UE can calibrate its own time and maintain time synchronization with gNB1.

[0267] Specifically, as shown in FIG9 , the process of the communication method is as follows:

[0268] S901: The AF sends an access layer time creation / update / release message to the NEF. The NEF receives the access layer time creation / update / release message from the AF.

[0269] The access stratum time create / update / release message can be used by the AF to request timing for the UE in the connected state. For example, the access stratum time create / update / release message may include: the UE identifier, the clock synchronization frequency offset correction requirement (i.e., the aforementioned indication information), and optionally, the UE's clock capability.

[0270] The UE's identity can be used to uniquely identify the UE. The UE's identity can be an identity assigned to the UE by the operator network, such as the SUPI. For example, if the AF is within the operator network, the AF can provide the identity assigned to the UE by the operator network. Alternatively, the UE's identity can be an identity assigned to the UE by a third party. If the AF is a third-party AF, the AF typically provides the identity assigned to the UE by the third party.

[0271] The clock synchronization frequency offset correction requirement can be used to indicate that the UE needs to obtain timing from the gNB, or maintain time synchronization with the gNB, in at least one of the following states: connected state, idle state, or inactive state. That is, when the UE is in the connected state and has completed time synchronization with the gNB, if the UE is in at least one of the above states, the UE still needs to obtain timing from the gNB to maintain time synchronization with the gNB.

[0272] It is understood that the term "clock synchronization frequency offset correction requirement" is merely an exemplary term in the embodiments of the present application and may be replaced by any other term. For example, when indicating that the UE needs to obtain timing from the gNB in ​​connected state, the term "connected state timing requirement," "connected state time synchronization requirement," or "connected state clock synchronization requirement" may be replaced by other terms, without limitation.

[0273] The specific implementation principle of the UE's clock capability can be referred to the relevant introduction of the above "first possible design solution", which will not be repeated here.

[0274] S902: NEF sends an access layer time creation / update / release message to TSCTSF. TSCTSF receives the access layer time creation / update / release message from NEF.

[0275] If the AF is a third-party AF, then after receiving the access layer time create / update / release message, the NEF can initiate authentication of the AF to determine whether the AF is trustworthy. The specific implementation principle can be referred to the relevant introduction in Chapter 6 of TS29.522 and will not be repeated here. If the AF is determined to be trustworthy, the NEF sends the access layer time create / update / release message to the TSCTSF. Otherwise, the process ends. If the AF is an AF within the operator's network, then after receiving the access layer time create / update / release message, the NEF can directly send the access layer time create / update / release message to the TSCTSF.

[0276] S903, TSCTSF obtains the UE's subscription data from the UDM.

[0277] The UE's subscription data can be stored in the UDM. The UE's subscription data can be pre-configured with UE timing-related information, such as clock synchronization frequency offset correction requirements and air interface error requirements. Furthermore, the clock synchronization frequency offset correction requirements can be updated (e.g., during subscription data updates) or pre-configured (e.g., during initial configuration) in the UE's subscription data at any possible time, without specific limitations.

[0278] TSCTSF may send a Nudm_DM_Create / Updata / Delete request message to UDM, which may carry the UE's identifier, to request the UE's subscription data. UDM may respond to the request by sending a Nudm_DM_Create / Updata / Delete response message to TSCTSF, which may carry the UE's subscription data.

[0279] S904: TSCTSF sends an access and mobility policy creation / update request message to PCF. PCF receives the access and mobility policy creation / update request message from TSCTSF.

[0280] The access and mobility policy creation / update request message can request the PCF to modify the UE's policy. For example, the access and mobility policy creation / update request message can carry the aforementioned UE timing-related information to request that the UE timing-related information be updated to the UE's policy. After completing the policy modification, the PCF can also send an access and mobility policy creation / update response message to the TSCTSF in response to the access and mobility policy creation / update request message, indicating that the policy modification is complete.

[0281] S905: PCF initiates access and mobility policy association modification (AM policy association modification initiated by PCF).

[0282] Among them, the access and mobility policy association modification initiated by PCF can be used to modify the access and mobility policy of AMF, such as updating UE timing-related information to the access and mobility policy of AMF.

[0283] S906: The AMF sends an N2 message to gNB1. gNB1 receives the N2 message from the AMF.

[0284] Among them, the N2 message can carry the above-mentioned UE timing-related information, that is, after the AMF completes the access and mobility policy modification, the AMF can further configure gNB1 through the N2 message, so that gNB1 can subsequently use the method provided in the embodiment of the present application to provide time for the UE.

[0285] S907, gNB1 broadcasts SIB9.

[0286] S908: The UE sends an uplink message to gNB1. gNB1 receives the uplink message from the UE.

[0287] S909: gNB1 sends a downlink message to the UE. The UE receives the downlink message from gNB1.

[0288] The downlink message (i.e., the second message described above) is sent by gNB1 at a certain time. The time at which gNB1 sends the downlink message is denoted as time t1. The downlink message can carry the timing advance between gNB1 and the UE, which the UE uses to determine the time at which the UE receives the downlink message, denoted as time t2. Alternatively, the downlink message can directly carry time t2.

[0289] In addition, the downlink message may also carry time t1.

[0290] In addition, the specific implementation principles of S907-S909 can refer to the relevant introduction of S301-S303 above, which will not be repeated here.

[0291] S910, gNB1 saves time t1.

[0292] gNB1 may save time t1, such as caching time t1 in a memory of gNB1 for subsequent use, or saving time t1 to a hard disk of gNB1 to avoid loss.

[0293] If the clock synchronization frequency offset correction request indicates that the UE needs to obtain timing from the gNB in ​​the connected state, then S911-S912 are executed. If the clock synchronization frequency offset correction request indicates that the UE needs to obtain timing from the gNB in ​​the inactive state, then S911-S913-S918 are executed. If the clock synchronization frequency offset correction request indicates that the UE needs to obtain timing from the gNB in ​​the idle state, then S911-S919-S924 are executed. This is described in detail below.

[0294] S911, gNB1 sends timing indication message #1 to the UE.

[0295] Timing Indication Message #1 (also known as the first message described above) can be a unicast message used to continue timing for the UE in the connected state. For example, Timing Indication Message #1 can include the time at which gNB1 sent Timing Indication Message #1, recorded as time t3, indicating that gNB1 sent Timing Indication Message #1 at time t3. Timing Indication Message #1 can be a newly defined message and can be replaced with any other possible name, without limitation. Alternatively, Timing Indication Message #1 can be implemented by reusing existing messages, such as RRC messages, DCI messages, MAC_CE messages, etc., also without limitation.

[0296] Optionally, Timing Indication Message #1 may also include the time t1, the time at which gNB1 sent the downlink message before sending Timing Indication Message #1. For example, if gNB1 has previously saved time t1, when sending Timing Indication Message #1, gNB1 can obtain time t1 from the saved information and include it in Timing Indication Message #1.

[0297] gNB1 can determine the timing for sending Timing Indication Message #1 based on the UE's clock capability, so that the UE sends Timing Indication Message #1 at that timing. The specific implementation principle can be found in the description of the "Second Possible Design Solution" above and will not be further described here. Alternatively, if the UE's clock capability is not available, gNB1 can independently determine the timing for sending Timing Indication Message #1, without specific restrictions. Alternatively, the timing for gNB1 to send Timing Indication Message #1 can be predefined by the protocol.

[0298] It can be understood that for timing in the connected state, time t1 can be carried in the downlink message, or can also be carried in the timing indication message #1, or both the downlink message and the timing indication message #1 can carry time t1, and there is no limitation on this.

[0299] S912: The UE determines the time when the UE receives the timing indication message #1 based on time t1, time t2, and time t3.

[0300] The UE can determine the time difference based on time t1 and time t3, such as time t3 minus time t1. Since time t2 is the time when the UE synchronized with gNB1, and the time difference is the time difference between two timing synchronizations performed by gNB1, the UE adds this time difference to time t2 to obtain the time at which the UE and gNB1 continue to be synchronized, that is, the time when the UE receives Timing Indication Message #1, recorded as time t4. The UE can then use time t4 to correct its own time, for example, by starting time based on time t4, to maintain time synchronization with gNB1.

[0301] S913: gNB1 determines that the UE enters the inactive state.

[0302] Among them, the specific implementation principle of S913 is similar to that of the above-mentioned S710, which can be understood by reference and will not be repeated here.

[0303] S914: gNB1 broadcasts timing indication message #2.

[0304] Timing Indication Message #2 (also known as the first message described above) can be a broadcast message used to provide timing to UEs in an inactive state. For example, Timing Indication Message #2 can carry the time of gNB1. For example, if the time at which gNB1 sends Timing Indication Message #2 is recorded as time t5, then gNB1 sends Timing Indication Message #2 at time t5. Timing Indication Message #2 can also be a newly defined message and can be replaced with any other possible name, without limitation. Alternatively, Timing Indication Message #2 can be implemented by reusing existing messages, such as SIB9, without specific limitation.

[0305] S915 , the UE determines the time when the UE receives the timing indication message # 2 based on time t1 , time t2 , and time t5 .

[0306] The UE can determine the time difference based on time t1 and time t5, such as time t5 minus time t1. Since time t2 is the time when the UE synchronized with gNB1, and the time difference is the time difference between two timing services performed by gNB1, the UE adds this time difference to time t2 to obtain the time at which the UE and gNB1 continue to be synchronized, that is, the time when the UE receives Timing Indication Message #2, recorded as time t6. The UE can then use time t6 to correct its own time, for example, by starting time based on time t6, to maintain time synchronization with gNB1.

[0307] It is understood that S914-S915 can be executed in a round-robin manner. That is, gNB1 periodically broadcasts Timing Indication Message #2. At this time, the UE maintains time synchronization with gNB1 based on time t1, but this is not a limitation. For example, when gNB1 first broadcasts Timing Indication Message #2, the UE can use S915 to maintain time synchronization with gNB1 based on time t1. Subsequently, when gNB1 broadcasts Timing Indication Message #2 again, the UE can maintain time synchronization with gNB1 based on the last synchronization time.

[0308] S916: The UE switches or reselects to gNB2.

[0309] At step S917, gNB1 sends the UE context to gNB2 via the Xn interface.

[0310] S918: gNB1 determines to stop broadcasting timing indication message #2.

[0311] Among them, the specific implementation principles of S916-S918 are similar to those of the above-mentioned S712-S715, which can be referred to for understanding and will not be repeated here.

[0312] S919: gNB1 determines that the UE enters the idle state.

[0313] Among them, the specific implementation principle of S919 is similar to that of the above-mentioned S810, which can be used as a reference for understanding and will not be repeated here.

[0314] S920: gNB1 broadcasts timing indication message #3.

[0315] Timing Indication Message #3 (also known as the first message described above) can be a broadcast message used to provide timing to UEs in idle state. For example, Timing Indication Message #3 can carry the time of gNB1. For example, if the time at which gNB1 sends Timing Indication Message #3 is recorded as time t7, then gNB1 sends Timing Indication Message #3 at time t7. Timing Indication Message #3 can also be a newly defined message and can be replaced with any other possible name, without limitation. Alternatively, Timing Indication Message #3 can be implemented by reusing existing messages, such as SIB9, without specific limitation.

[0316] S921: The UE determines the time when the UE receives the timing indication message #3 based on time t1, time t2, and time t7.

[0317] Among them, the specific implementation principle of S921 is similar to that of the above-mentioned S915, which can be used as a reference for understanding and will not be repeated here.

[0318] S922: The UE switches or reselects to gNB2.

[0319] S923: gNB1 sends the UE context to gNB2 via the Xn interface.

[0320] S924. gNB1 determines to stop broadcasting timing indication message #3.

[0321] Among them, the specific implementation principles of S922-S924 are similar to those of the above-mentioned S712-S715, which can be referred to for understanding and will not be repeated here.

[0322] It can be understood that in the timing in the above-mentioned active state or idle state, the downlink message S909 needs to carry time t1, so that the UE can subsequently maintain time synchronization with gNB1 in the active state or idle state.

[0323] It is understood that the processes in the three scenarios described above can be combined or replaced with each other. For example, in scenarios 1 and 2, the AF can trigger gNB1 to provide timing to the UE in inactive or idle state by sending the UE's clock capabilities. Alternatively, in scenario 3, the UE's registration can trigger gNB1 to provide timing to the UE in connected state. For another example, S705-S708 / S805-S808 in scenarios 1 or 2 can be replaced with S907-S907 in scenario 3, or S907-S907 in scenario 3 can be replaced with S705-S708 / S805-S808 in scenarios 1 or 2. Furthermore, the inactive state timing requirements and idle state timing requirements mentioned above can also be collectively referred to as non-connected state timing requirements.

[0324] It is also understood that in the above method, the access network device can include the time at which the access network device sent the message in each of the multiple messages it sends. In this way, the terminal can achieve time synchronization with the access network device based on the time difference between each message sent. In practice, the access network device can also use other methods to achieve time synchronization between the terminal and the access network device. For example, the access network device can include in each message it sends not only the time at which the access network device sent the message, but also the timing advance between the access network device and the terminal. In this way, the terminal can directly achieve time synchronization with the access network device based on the time and timing advance in a single message, as described in detail below.

[0325] Figure 10 is a flow chart of the communication method provided in an embodiment of the present application. This communication method is applicable to the above-mentioned communication system and involves interaction between the terminal, the first access network device, and the core network element. As shown in Figure 10, the flow of the communication method is as follows:

[0326] S1001, a core network element obtains instruction information.

[0327] S1002: A core network element sends instruction information to a first access network device. Correspondingly, the first access network device receives the instruction information.

[0328] Among them, the specific implementation principles of S1001-S1002 are similar to those of the above-mentioned S601-S602, which can be referred to for understanding and will not be repeated here.

[0329] S1003: In response to the instruction information, the first access network device sends a first message. Correspondingly, the terminal receives the first message from the first access network device.

[0330] Before sending the first message, the first access network device may first send a second message to complete time synchronization between the first access network device and the terminal via the second message. In other words, the completion of time synchronization between the first access network device and the terminal mentioned in S1003 refers to time synchronization first completed via the second message. The specific implementation principle can be found in the relevant description of S603 above and will not be repeated here.

[0331] After the first access network device completes time synchronization between the terminal and the first access network device by sending the second message, the first access network device sends the first message again to complete time synchronization between the first access network device and the terminal again, or to maintain time synchronization, which is described in detail below.

[0332] The first message can be used to indicate the time when the first access network device sends the first message, as well as the timing advance between the terminal and the first access network device, such as including the time when the first access network device sends the first message, the terminal identifier, and the timing advance. In this way, the terminal identifier and the timing advance combined can indicate that the timing advance is the timing advance between the terminal and the first access network device. For example, an example of the information included in the first message can be as follows: {[UE1 ID, TA1]}, {[UE2 ID, TA2], {[UE3 ID, TA3], T1}, indicating that the timing advance of UE1 is TA1, the timing advance of UE2 is TA2, the timing advance of UE3 is TA3, and the time when the first access network device sends the first message is T1.

[0333] In addition, the first message may also be a unicast message or a broadcast message. For the specific implementation principle, reference may be made to the relevant introduction of S603 above, which will not be repeated here.

[0334] S1004: The terminal determines the time when the terminal receives the first message based on the time when the first access network device sends the first message and the timing advance between the terminal and the first access network device.

[0335] The terminal may add the time when the first access network device sends the first message to the timing advance between the terminal and the first access network device to obtain the time when the terminal receives the first message. Alternatively, the terminal may use any other possible method to determine the time when the terminal receives the first message, which is not specifically limited.

[0336] S1005: The terminal determines the time when the terminal receives the first message as the time when the terminal is synchronized with the first access network device.

[0337] Among them, the specific implementation principle of S1005 is similar to that of the above-mentioned S605, which can be used as a reference for understanding and will not be repeated here.

[0338] In summary, after the terminal and the first access network device have completed time synchronization, the first access network device can continue to send a first message to the terminal to indicate the time when the first access network device sent the first message and the timing advance between the terminal and the first access network device. In this way, the terminal can continue to determine the time of the terminal synchronized with the first access network device based on the time when the first access network device sent the first message and the timing advance between the terminal and the first access network device, thereby ensuring that the terminal and the access network device maintain time synchronization for a long period of time.

[0339] A third possible design solution, combined with the method shown in FIG10 , may further include:

[0340] Step A: The core network element receives the clock capability of the terminal from the application function.

[0341] Step B: The core network element sends the clock capability of the terminal to the first access network device. The first access network device receives the clock capability of the terminal.

[0342] Step C: The first access network device determines the sending timing of the first message according to the clock capability of the terminal.

[0343] Among them, the specific implementation principles of steps A to C are similar to those of steps 1 to 3 above, which can be understood by reference and will not be repeated here.

[0344] A fourth possible design solution, combined with the method shown in FIG10 , may further include:

[0345] Step D: The first access network device determines to stop sending the first message.

[0346] The specific implementation principle of step D is similar to that of step 4 above, and can also be understood by reference, so it will not be repeated here.

[0347] It can be understood that the terminal can determine whether to use the method in the embodiment of the present application to complete time synchronization with the first access network device by default or according to the instructions of the indication information. The specific implementation can refer to the relevant introduction of Figure 7 above, which will not be repeated here.

[0348] Scenario 4:

[0349] Figure 11 is a sixth flow diagram of a communication method according to an embodiment of the present application. This communication method is applicable to the aforementioned communication system and specifically involves interactions between the UE, gNB1, gNB2, the AMF, and the UDM. In scenario 4, even after the UE enters the inactive state, gNB1 can still send time and timing advance information to the UE so that the UE can calibrate its own time and maintain time synchronization with gNB1.

[0350] Specifically, as shown in FIG11 , the process of the communication method is as follows:

[0351] S1100: The UE's subscription data is pre-configured with the UE's clock synchronization requirement.

[0352] S1101, UE requests to register with the network.

[0353] S1102: The AMF sends a subscription data management acquisition request message to the UDM. The UDM receives the subscription data management acquisition request message from the AMF.

[0354] S1103: The UDM sends a subscription data management acquisition response message to the AMF. The AMF receives the subscription data management acquisition response message from the UDM.

[0355] S1104: The AMF sends a UE Context Modification Request / Response message to gNB1. gNB1 receives the UE Context Modification Request / Response message from the AMF.

[0356] S1105: gNB1 sends a timing message to the UE. The UE receives the timing message from gNB1.

[0357] S1106: The UE sends a timing response message to gNB1. gNB1 receives the timing response message from the UE.

[0358] S1107, gNB1 determines the timing advance.

[0359] S1108: gNB1 determines that the UE enters the inactive state.

[0360] The specific implementation principles of S1101-S1107 can refer to the relevant introduction of S701-S707 above, and the specific implementation principle of S1108 can refer to the relevant introduction of S710 above, which will not be repeated here. In addition, the execution order between S1107 and S1108 is not limited.

[0361] S1109, gNB1 broadcasts timing indication message #1.

[0362] Timing Indication Message #1 (also known as the first message) can be a broadcast message used to provide timing to a UE in an inactive state. For example, Timing Indication Message #1 can include the UE identifier, the timing advance between the UE and gNB1, and the time at which gNB1 sent Timing Indication Message #1, denoted as time t5. This means that gNB1 sent Timing Indication Message #1 at time t5. Timing Indication Message #1 can be a newly defined message and can be replaced with any other name without limitation. Alternatively, Timing Indication Message #1 can be implemented by reusing an existing message, such as SIB9, without specific limitation.

[0363] It can be understood that since the timing indication message #1 is a broadcast message, the timing indication message #1 can carry information of multiple UEs. For example, the identifiers of multiple UEs, the timing advance corresponding to the identifier of each UE, and time t5. At this time, since time t5 can be applicable to multiple UEs at the same time, time t5 can be a piece of information in the timing indication message #1 to save communication overhead. At this time, for the UE that receives the broadcast timing indication message #1, if the UE determines that the received timing indication message #1 has its own identifier, it executes S1110; otherwise, it ignores the timing indication message #1.

[0364] S1110 , the UE determines the time when the UE receives the timing indication message # 1 according to time t5 and the timing advance.

[0365] The UE may add the time t5 and the timing advance to obtain the time when the UE receives the timing indication message #1, which is recorded as time t6.

[0366] S1111: The UE switches or reselects to gNB2.

[0367] S1112: gNB1 sends the UE context to gNB2 via the Xn interface.

[0368] S1113: gNB1 determines to stop broadcasting timing indication message #2.

[0369] Among them, the specific implementation principles of S1111-S1113 can refer to the relevant introduction of S713-S715 above, which will not be repeated here.

[0370] Scenario 5:

[0371] Figure 12 is a flow chart illustrating the seventh embodiment of the communication method provided herein. This communication method is applicable to the aforementioned communication system and specifically involves interactions between the UE, gNB1, gNB2, the AMF, and the UDM. In scenario 5, even after the UE enters the idle state, gNB1 can still send time and timing advance information to the UE so that the UE can calibrate its own time and maintain time synchronization with gNB1.

[0372] S1200: The UE's subscription data is pre-configured with the UE's clock synchronization requirement.

[0373] The specific implementation principle of S1200 can refer to the relevant introduction of S800 above, which will not be repeated here.

[0374] S1201: UE requests to register with the network.

[0375] S1202: The AMF sends a subscription data management acquisition request message to the UDM. The UDM receives the subscription data management acquisition request message from the AMF.

[0376] S1203: The UDM sends a subscription data management acquisition response message to the AMF. The AMF receives the subscription data management acquisition response message from the UDM.

[0377] S1204: The AMF sends a UE Context Modification Request / Response message to gNB1. gNB1 receives the UE Context Modification Request / Response message from the AMF.

[0378] S1205: gNB1 sends a timing message to the UE. The UE receives the timing message from gNB1.

[0379] S1206: The UE sends a timing response message to gNB1. gNB1 receives the timing response message from the UE.

[0380] S1207, gNB1 determines the timing advance.

[0381] S1208: gNB1 determines that the UE enters the idle state.

[0382] Among them, the specific implementation principles of S1201-S2107 are similar to those of the above-mentioned S701-S707, and the specific implementation principle of S1208 is similar to that of the above-mentioned S810. You can refer to them for understanding and will not repeat them here.

[0383] S1209: gNB1 broadcasts timing indication message #1.

[0384] S1210: The UE determines the time when the UE receives the timing indication message #1 based on the time t5 and the timing advance.

[0385] Among them, the specific implementation principles of S1209-S1210 are similar to those of the above-mentioned S1109-S1110, which can be referred to for understanding and will not be repeated here.

[0386] S1211: The UE switches or reselects to gNB2.

[0387] S1212: gNB1 sends the UE context to gNB2 via the Xn interface.

[0388] S1213: gNB1 determines to stop broadcasting timing indication message #2.

[0389] Among them, the specific implementation principles of S1211-S1213 can refer to the relevant introduction of S713-S715 above, which will not be repeated here.

[0390] Scenario 6:

[0391] Figure 13 is a flowchart eight of a communication method provided in an embodiment of the present application. This communication method is applicable to the aforementioned communication system and specifically involves interactions between the UE, gNB, AMF, PCF, UDM, TSCTSF, NEF, and AF. In scenario 6, after the UE is in the connected state and has completed time synchronization with the gNB, the gNB can continue to send time and timing advance to the UE so that the UE can calibrate its own time and maintain time synchronization with the gNB.

[0392] Specifically, as shown in FIG13 , the process of the communication method is as follows:

[0393] S1301: The AF sends an access layer time creation / update / release message to the NEF. The NEF receives the access layer time creation / update / release message from the AF.

[0394] S1302: NEF sends an access layer time creation / update / release message to TSCTSF. TSCTSF receives the access layer time creation / update / release message from NEF.

[0395] S1303, TSCTSF obtains the UE's subscription data from the UDM.

[0396] S1304: TSCTSF sends an access and mobility policy creation / update request message to PCF. PCF receives the access and mobility policy creation / update request message from TSCTSF.

[0397] S1305: PCF initiates access and mobility policy association modification.

[0398] S1306: The AMF sends an N2 message to the gNB. The gNB receives the N2 message from the AMF.

[0399] S1307: gNB broadcasts SIB9.

[0400] S1308: The UE sends an uplink message to the gNB. The gNB receives the uplink message from the UE.

[0401] S1309: The gNB sends a downlink message to the UE. UEg receives the downlink message from the NB.

[0402] Among them, the specific implementation principles of S1301-S1309 can refer to the relevant introduction of S901-S909 above, which will not be repeated here.

[0403] S1310: The gNB sends a timing indication message to the UE.

[0404] The Timing Indication Message (i.e., the first message described above) can be a unicast message used to continue timing for the UE in the connected state. For example, the Timing Indication Message can include: the UE identifier, the timing advance between the UE and the gNB, and the time at which the gNB sent the Timing Indication Message, denoted as time t3. Therefore, the gNB sent the Timing Indication Message at time t3. The specific implementation of the Timing Indication Message can be found in the description of S1109 above and will not be repeated here.

[0405] S1311: The UE determines the time when the UE receives the timing indication message according to the time t3 and the timing advance.

[0406] The UE may add the time t3 and the timing advance to obtain the time when the UE receives the timing indication message, which is recorded as time t4.

[0407] The communication method provided in the embodiment of the present application is described in detail above in conjunction with Figures 6 to 13. The communication device for executing the communication method provided in the embodiment of the present application is described in detail below in conjunction with Figures 14 and 15.

[0408] Figure 14 is a structural diagram of a communication device according to an embodiment of the present application. As shown in Figure 14 , the communication device 1400 includes a transceiver module 1401 and a processing module 1402. For ease of illustration, Figure 14 only shows the main components of the communication device.

[0409] In some embodiments, the communication device 1400 may be applicable to the communication system shown in FIG. 5 to perform the functions of the terminal in the above method.

[0410] Transceiver module 1401 is configured to perform the transceiver functions of communication device 1400, such as executing steps S603, S705, S706, S708, S1003, S1105, S1106, and S1108 described above. Processing module 1402 may be configured to perform other functions of communication device 1400 besides the transceiver functions, such as executing steps S604, S605, S712, S1004, S1005, and S1110 described above.

[0411] In one example:

[0412] Transceiver module 1401 is configured to receive a first message from a first access network device, where the first message indicates the time when the first access network device sent the first message. Processing module 1402 is configured to determine the time when communication device 1400 received the first message based on the time when the first access network device sent the first message, the time when the first access network device sent the second message, and the time when communication device 1400 received the second message. The second message is a message sent by the first access network device before sending the first message, and the time when communication device 1400 received the second message is the time when communication device 1400 synchronized with the first access network device. Processing module 1402 is further configured to determine the time when communication device 1400 received the first message as the time when communication device 1400 synchronized with the first access network device.

[0413] In one possible design, the transceiver module 1401 is configured to enable the communication device 1400 to receive a first message broadcast by a first access network device when the communication device 1400 is in an inactive state or an idle state.

[0414] Optionally, the first message is a system information block SIB.

[0415] In another possible design scheme, the transceiver module 1401 is used to, when the communication device 1400 is in a connected state, receive a first message that is unicast or broadcast by the first access network device to the communication device 1400.

[0416] Optionally, the first message is a radio resource control RRC message.

[0417] In one possible design scheme, the first message is also used to indicate the time when the first access network device sends the second message.

[0418] Optionally, the second message is used to indicate the time when the first access network device sent the second message. The processing module 1402 is further configured to determine a correspondence between the time when the first access network device sent the second message and the time when the communication apparatus 1400 received the second message. The processing module 1402 is further configured to, upon receiving the first message, determine the time when the communication apparatus 1400 received the second message from the correspondence based on the time when the first access network device sent the second message as indicated in the first message.

[0419] In one possible design scheme, the processing module 1402 is also used to determine the time difference between the time when the first access network device sends the first message and the time when the first access network device sends the second message, and determine the time when the communication device 1400 receives the first message based on the time difference and the time when the communication device 1400 receives the second message.

[0420] Optionally, the second message is the most recently received message among the messages for time synchronization received by the communication device 1400 before receiving the first message.

[0421] Optionally, the transceiver module 1401 may include a sending module (not shown in FIG14 ) and a receiving module (not shown in FIG14 ). The sending module is used to implement the sending function of the communication device 1400 , and the receiving module is used to implement the receiving function of the communication device 1400 .

[0422] Optionally, the communication device 1400 may further include a storage module (not shown in FIG14 ) storing a program or instruction. When the processing module 1402 executes the program or instruction, the communication device 1400 may perform the functions of the terminal in the above method.

[0423] It can be understood that the communication device 1400 can be a terminal, or a chip (system) or other parts or components that can be set in the terminal, or a device including a terminal, which is not limited in this application.

[0424] In addition, the technical effects of the communication device 1400 can refer to the technical effects of the above-mentioned communication method, which will not be repeated here.

[0425] In some other embodiments, the communication apparatus 1400 may be applicable to the communication system shown in FIG. 5 to perform the function of the first access network device in the above method.

[0426] Transceiver module 1401 is configured to receive indication information indicating that the access network device needs to maintain time synchronization with the terminal. Processing module 1402 is configured to control transceiver module 1401 to transmit a first message in response to the indication information. The first message indicates the time at which communication device 1400 transmits the first message, and the time at which communication device 1400 transmits the first message is used to synchronize the terminal with communication device 1400.

[0427] In one possible design scheme, the indication information is specifically used to indicate that the access network device needs to maintain time synchronization with the terminal when the terminal is in an inactive state or an idle state; the processing module 1402 is used to control the transceiver module 1401 to broadcast the first message when the terminal is in an inactive state or an idle state.

[0428] Optionally, the first message is a system information block SIB.

[0429] In another possible design scheme, the indication information is specifically used to indicate that the access network device needs to maintain time synchronization with the terminal when the terminal is in a connected state; the processing module 1402 is used to control the transceiver module 1401 to unicast or broadcast the first message to the terminal when the terminal is in a connected state.

[0430] Optionally, the first message is a radio resource control RRC message.

[0431] In one possible design, transceiver module 1401 is further configured to receive the clock capability of the terminal, and processing module 1402 is further configured to determine a timing for sending the first message based on the clock capability of the terminal. Furthermore, processing module 1402 is further configured to control transceiver module 1401 to send the first message at the timing of sending the first message.

[0432] In one possible design solution, the first message is further used to indicate the time when the communication device 1400 sends the second message.

[0433] Optionally, the processing module 1402 is further configured to save the time when the communication device 1400 sends the second message after sending the second message to the terminal.

[0434] In one possible design solution, the second message is the most recently sent message among the messages for time synchronization sent by the communication device 1400 before sending the first message.

[0435] In one possible design, the processing module 1402 is further configured to determine to stop sending the first message when the terminal reselects the second access network device from the communication apparatus 1400 .

[0436] Optionally, the transceiver module 1401 may include a sending module (not shown in FIG14 ) and a receiving module (not shown in FIG14 ). The sending module is used to implement the sending function of the communication device 1400 , and the receiving module is used to implement the receiving function of the communication device 1400 .

[0437] Optionally, the communication device 1400 may further include a storage module (not shown in FIG14 ) storing a program or instruction. When the processing module 1402 executes the program or instruction, the communication device 1400 may perform the function of the first access network device of the method described above.

[0438] It can be understood that the communication device 1400 can be an access network device, or a chip (system) or other parts or components that can be set in the access network device, or a device that includes an access network device. This application does not limit this.

[0439] In addition, the technical effects of the communication device 1400 can refer to the technical effects of the above-mentioned communication method, which will not be repeated here.

[0440] In some other embodiments, the communication device 1400 may be applicable to the communication system shown in FIG. 5 to perform the functions of the core network element in the above method.

[0441] The processing module 1402 is used to obtain indication information, and the transceiver module 1401 is used to send indication information to the first access network device, wherein the indication information is used to indicate that the access network device needs to maintain time synchronization with the terminal, and the first access network device is the access network device accessed by the terminal.

[0442] In one possible design, the indication information is specifically used to indicate that the access network device needs to maintain time synchronization with the terminal when the terminal is in an inactive state or an idle state. Alternatively, the indication information is specifically used to indicate that the access network device needs to maintain time synchronization with the terminal when the terminal is in a connected state.

[0443] In one possible design, the processing module 1402 is configured to obtain subscription data of the terminal, where the subscription data of the terminal includes indication information.

[0444] In one possible design, the transceiver module 1401 is further configured to receive the terminal's clock capability from the application function and send the terminal's clock capability to the first access network device. The terminal's clock capability is used by the access network device to determine when to synchronize time with the terminal.

[0445] Optionally, the transceiver module 1401 may include a sending module (not shown in FIG14 ) and a receiving module (not shown in FIG14 ). The sending module is used to implement the sending function of the communication device 1400 , and the receiving module is used to implement the receiving function of the communication device 1400 .

[0446] Optionally, the communication device 1400 may further include a storage module (not shown in FIG14 ) storing a program or instruction. When the processing module 1402 executes the program or instruction, the communication device 1400 may perform the functions of the core network element of the method described above.

[0447] It can be understood that the communication device 1400 can be a core network network element, or a chip (system) or other parts or components that can be set in the core network network element, or a device that includes a core network network element. This application does not limit this.

[0448] In addition, the technical effects of the communication device 1400 can refer to the technical effects of the above-mentioned communication method, which will not be repeated here.

[0449] Figure 15 is a second structural diagram of a communication device provided in an embodiment of the present application. Exemplarily, the communication device may be a terminal, or a chip (system) or other component or assembly that can be provided in a terminal. As shown in Figure 15, the communication device 1500 may include a processor 1501. Optionally, the communication device 1500 may further include a memory 1502 and / or a transceiver 1503. The processor 1501 is coupled to the memory 1502 and the transceiver 1503, such as by a communication bus.

[0450] The following is a detailed introduction to the various components of the communication device 1500 with reference to FIG15 :

[0451] The processor 1501 is the control center of the communication device 1500 and can be a single processor or a collective term for multiple processing elements. For example, the processor 1501 can be one or more central processing units (CPUs), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSPs) or one or more field programmable gate arrays (FPGAs).

[0452] Optionally, the processor 1501 can execute various functions of the communication device 1500 by running or executing software programs stored in the memory 1502 and calling data stored in the memory 1502, such as executing the communication methods shown in Figures 6 to 13 above.

[0453] In a specific implementation, as an embodiment, the processor 1501 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG15 .

[0454] In a specific implementation, as an embodiment, the communication device 1500 may also include multiple processors, such as the processor 1501 and the processor 1504 shown in FIG15 . Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0455] The memory 1502 is used to store the software program for executing the solution of the present application, and the execution is controlled by the processor 1501. The specific implementation method can refer to the above method embodiment and will not be repeated here.

[0456] Alternatively, the memory 1502 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1502 may be integrated with the processor 1501 or exist independently and be coupled to the processor 1501 via an interface circuit (not shown in FIG. 15 ) of the communication device 1500. This embodiment of the present application does not specifically limit this.

[0457] Transceiver 1503 is used for communication with other communication devices. For example, if communication device 1500 is a terminal, transceiver 1503 can be used to communicate with a network device or another terminal device. For another example, if communication device 1500 is a network device, transceiver 1503 can be used to communicate with a terminal or another network device.

[0458] Optionally, the transceiver 1503 may include a receiver and a transmitter (not shown separately in FIG15 ), wherein the receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0459] Optionally, the transceiver 1503 can be integrated with the processor 1501, or can exist independently and be coupled to the processor 1501 through the interface circuit of the communication device 1500 (not shown in Figure 15). This embodiment of the present application does not specifically limit this.

[0460] It is understandable that the structure of the communication device 1500 shown in FIG15 does not constitute a limitation on the communication device, and the actual communication device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0461] In addition, the technical effects of the communication device 1500 can refer to the technical effects of the methods described in the above method embodiments, and will not be repeated here.

[0462] It should be understood that the processor in the embodiments of the present application may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0463] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0464] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired method (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state drive.

[0465] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. A and B can be singular or plural. Furthermore, the character " / " as used herein generally indicates an "or" relationship between the associated objects, but it may also indicate an "and / or" relationship. For specific understanding, please refer to the context.

[0466] In this application, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.

[0467] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0468] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0469] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0470] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0472] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0473] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0474] The above is only a specific implementation method of the present application, but the scope of protection of the present application is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered by the scope of protection of the present application.

Claims

1. A communication method, characterized in that: The method comprises: The terminal receives a first message from a first access network device; wherein the first message is used to indicate a time when the first access network device sends the first message; The terminal determines the time when the terminal receives the first message according to the time when the first access network device sends the first message, the time when the first access network device sends the second message, and the time when the terminal receives the second message; wherein the second message is a message sent by the first access network device before sending the first message, and the time when the terminal receives the second message is the time when the terminal is synchronized with the first access network device; The terminal determines the time when the terminal receives the first message as the time when the terminal is synchronized with the first access network device.

2. The method according to claim 1, characterized in that The terminal receives a first message from a first access network device, including: When the terminal is in an inactive state or an idle state, the terminal receives the first message broadcast by the first access network device.

3. The method according to claim 2, characterized in that The first message is a system information block SIB.

4. The method according to claim 1, characterized in that: The terminal receives a first message from a first access network device, including: When the terminal is in a connected state, the terminal receives the first message that is unicast or broadcast by the first access network device to the terminal.

5. The method according to claim 4, characterized in that The first message is a radio resource control RRC message.

6. The method according to any one of claims 1 to 5, characterized in that The first message is also used to indicate the time when the first access network device sends the second message.

7. The method according to claim 6, characterized in that The second message is used to indicate a time when the first access network device sends the second message, and the method further includes: Determining, by the terminal, a correspondence between a time when the first access network device sends the second message and a time when the terminal receives the second message; In a case where the terminal receives the first message, the method further includes: The terminal determines, according to the time when the first access network device sends the second message indicated by the first message, the time when the terminal receives the second message from the corresponding relationship.

8. The method according to any one of claims 1 to 7, characterized in that The terminal determines, according to the time when the first access network device sends the first message, the time when the first access network device sends the second message, and the time when the terminal receives the second message, the time when the terminal receives the first message, including: Determining, by the terminal, a time difference between a time when the first access network device sends the first message and a time when the first access network device sends the second message; The terminal determines, according to the time difference and the time when the terminal receives the second message, the time when the terminal receives the first message.

9. The method according to any one of claims 1 to 7, characterized in that: The second message is a most recently received message among messages for time synchronization received by the terminal before the terminal receives the first message.

10. A communication method, characterized in that: The method comprises: The first access network device receives indication information, wherein the indication information is used to indicate that the access network device needs to maintain time synchronization with the terminal; In response to the indication information, the first access network device sends a first message, wherein the first message is used to indicate the time when the first access network device sends the first message, and the time when the first access network device sends the first message is used by the terminal to maintain time synchronization with the first access network device.

11. The method according to claim 10, characterized in that: The indication information is specifically used to indicate that the access network device needs to maintain time synchronization with the terminal when the terminal is in an inactive state or an idle state; The first access network device sending a first message includes: When the terminal is in an inactive state or an idle state, the first access network device broadcasts the first message.

12. The method according to claim 10, characterized in that: The indication information is specifically used to indicate that the access network device needs to maintain time synchronization with the terminal when the terminal is in a connected state; The first access network device sending a first message includes: When the terminal is in a connected state, the first access network device unicasts or broadcasts the first message to the terminal.

13. The method according to any one of claims 10 to 12, characterized in that: The method further comprises: The first access network device receives the clock capability of the terminal; The first access network device determines, according to the clock capability of the terminal, a timing for sending the first message; The first access network device sending a first message includes: The first access network device sends the first message at a timing for sending the first message.

14. The method according to any one of claims 10 to 13, characterized in that: The first message is also used to indicate the time when the first access network device sends the second message.

15. The method according to claim 14, characterized in that The method further comprises: After the first access network device sends the second message to the terminal, the first access network device saves the time when the first access network device sends the second message.

16. The method according to any one of claims 10 to 15, characterized in that The second message is the latest message sent by the first access network device among the messages for time synchronization sent before sending the first message.

17. The method according to any one of claims 10 to 16, characterized in that The method further comprises: In a case where the terminal reselects from the first access network device to the second access network device, the first access network device determines to stop sending the first message.

18. A communication device, characterized in that: The apparatus comprises: a module for executing the method according to any one of claims 1-9.

19. A communication device, characterized in that: The apparatus comprises: a module for executing the method according to any one of claims 10-17.

20. A communication device, characterized in that: The communication device comprises: a processor and a memory; the memory is used to store computer instructions, and when the processor executes the instructions, the communication device executes the method according to any one of claims 1 to 17.

21. A communication system, characterized in that: The communication system comprises: a terminal and a first access network device, wherein the terminal is used to execute the method according to any one of claims 1 to 9, and the first access network device is used to execute the method according to any one of claims 10 to 17.

22. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program or instructions, and when the computer program or instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 17.

Citation Information

Patent Citations

  • Time synchronization method and device, computer readable medium and electronic equipment

    CN111525973A

  • Time information interaction method and device

    CN115486152A

  • Clock synchronization

    US20220286991A1

  • Adaptive service areas for multicast session continuity

    US20230011492A1

  • Time synchronization method and device

    WO2019095575A1