WO2023231465A1 - Time synchronization method, communication apparatus and communication system - Google Patents

Time synchronization method, communication apparatus and communication system Download PDF

Info

Publication number
WO2023231465A1
WO2023231465A1 PCT/CN2023/077913 CN2023077913W WO2023231465A1 WO 2023231465 A1 WO2023231465 A1 WO 2023231465A1 CN 2023077913 W CN2023077913 W CN 2023077913W WO 2023231465 A1 WO2023231465 A1 WO 2023231465A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
time synchronization
terminal device
synchronization information
information
Prior art date
Application number
PCT/CN2023/077913
Other languages
French (fr)
Chinese (zh)
Inventor
臧昕
周润泽
王远
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023231465A1 publication Critical patent/WO2023231465A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements

Definitions

  • the present application relates to the field of communication technology, and in particular, to a time synchronization method, communication device and communication system.
  • the current synchronization method is that the terminal device receives the system information block (SIB) message broadcasted by the access network device.
  • SIB system information block
  • the SIB message carries the time synchronization information of the access network device, and the terminal device obtains the synchronization information from the SIB message. time information, and perform time synchronization with the access network equipment based on the time information.
  • the terminal equipment relies more on the timing of the access network equipment.
  • the clock source on the access network equipment fails, or the timing frequency of the access network equipment is low, the terminal equipment will be unable or unable to receive the time information in time. , which in turn causes the terminal device to be unable to maintain accurate time synchronization with the access network device, reducing the communication capability of the terminal device.
  • Embodiments of the present application provide a time synchronization method, communication device and communication system to achieve time synchronization between terminal equipment and access network equipment.
  • embodiments of the present application provide a time synchronization method, which can be executed by a terminal device or a module (such as a chip) in the terminal device.
  • the method includes: the terminal device receives the time synchronization information from the access network device; the terminal device according to the current time of the terminal device, the reception time of the time synchronization information and the time synchronization information, Perform time synchronization.
  • the terminal device can achieve precise time synchronization between the terminal device and the access network device based on the time synchronization information previously received from the access network device.
  • the terminal device does not rely on the access network device to provide timely synchronization information. Therefore, when the access network device cannot send new time synchronization information to the terminal device, or the access network device cannot send new time synchronization information to the terminal device in time, the terminal device can also complete the time synchronization, which helps to improve the terminal device. communication capabilities.
  • the terminal device performs time synchronization based on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information, including: when the preset conditions are met, the terminal device performs time synchronization according to the time synchronization information of the terminal device.
  • the current time, the reception time of the time synchronization information and the time synchronization information are time synchronized; wherein, the preset condition is: the terminal device does not receive a new time synchronization from the access network device within the set time period. information; or, the terminal device receives the first indication information and the new time synchronization information from the access network device within a set period of time, and the first indication information indicates that the new time synchronization information does not meet the requirements of the terminal device. time accuracy requirements.
  • the terminal device when the terminal device does not receive new time information from the access network device within the set time period; or, The terminal device receives indication information and new time synchronization information from the access network device within a set time period. If the indication information indicates that the new time synchronization information does not meet the time synchronization accuracy requirements of the terminal device, the terminal device can Based on the time synchronization information previously received from the access network equipment, precise time synchronization between the terminal equipment and the access network equipment is achieved, which helps to improve the communication capabilities of the terminal equipment.
  • the terminal device after the terminal device receives the time synchronization information from the access network device, the terminal device stores the reception time of the time synchronization information and the time synchronization information.
  • the terminal device stores the time synchronization information from the access network device, so that when the terminal device cannot receive new time synchronization information from the access network device within a certain time period, the terminal device can obtain the stored time synchronization information and The reception time of the time synchronization information, and time synchronization based on the time synchronization information and the reception time of the time synchronization information, helps to achieve precise time synchronization between the terminal equipment and the access network equipment, thereby helping to improve the terminal The communication capabilities of the device.
  • the terminal device performs time synchronization based on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information, including: the terminal device determines that the current time of the terminal device is consistent with the time synchronization information. The difference between the reception times of the time synchronization information; the terminal device determines the synchronization time based on the difference and the time synchronization information; the terminal device performs time synchronization based on the synchronization time.
  • the time synchronization information includes a clock frequency ratio and a clock deviation.
  • the clock frequency ratio represents a clock frequency ratio between the terminal device and the access network device.
  • the clock deviation represents a clock frequency ratio between the terminal device and the access network device. Clock deviation between access network devices; the terminal device determines the synchronization time based on the difference and the time synchronization information, including: the terminal device determines the ratio of the difference to the clock frequency ratio; the terminal device determines the synchronization time based on the ratio , the clock deviation and the reception time of the time synchronization information, determine the synchronization time.
  • the terminal device performs time synchronization based on the clock frequency ratio and clock deviation, which helps to achieve accurate time synchronization.
  • the time synchronization information includes a clock frequency ratio, a transmission delay and a sending time of the time synchronization information.
  • the clock frequency ratio represents a clock frequency ratio between the terminal device and the access network device
  • the transmission delay represents the transmission delay between the terminal device and the access network device;
  • the terminal device determines the synchronization time based on the difference and the time synchronization information, including: the terminal device determines the difference and the clock The ratio of the frequency ratio; the terminal device determines the synchronization time based on the ratio, the transmission delay and the sending time of the time synchronization information.
  • the terminal equipment performs time synchronization based on the clock frequency ratio and transmission delay, which helps to achieve accurate time synchronization.
  • the time synchronization information includes a clock deviation change rate, a clock frequency ratio, and a clock deviation.
  • the clock deviation change rate represents the change of the clock deviation over time
  • the clock frequency ratio represents the clock frequency ratio between the terminal device and the interface.
  • the clock frequency ratio between network access devices, the clock deviation represents the clock deviation between the terminal device and the access network device;
  • the terminal device determines the synchronization time based on the difference and the time synchronization information, including: the terminal The device determines the product of the clock deviation change rate and the difference, and determines the ratio of the product to the clock frequency ratio; the terminal device determines the synchronization time based on the ratio, the clock deviation, and the current time of the terminal device.
  • the terminal device performs time synchronization based on the clock frequency ratio, clock deviation and clock deviation change rate, which helps to achieve accurate time synchronization.
  • the terminal device receives the set duration from the access network device.
  • the set time period is preset.
  • the terminal device sends a time synchronization request message
  • the time synchronization request message includes identification information of the terminal device and second indication information
  • the second indication information indicates that the time synchronization service is provided for the terminal device.
  • the terminal device receives information indicating turning on the time synchronization function.
  • the terminal device turns on the time synchronization function according to the information used to indicate turning on the time synchronization function. Therefore, when the terminal device does not receive new time synchronization information from the access network device within a set period of time, the terminal device will turn on the time synchronization function according to the terminal device.
  • the current time, the reception time of the time synchronization information and the time synchronization information are synchronized. This solution helps terminal devices synchronize time in the correct way.
  • the time synchronization information includes a transmission delay and a sending time of the time synchronization information.
  • the transmission delay represents the transmission delay between the terminal device and the access network device; the terminal device is based on Before performing time synchronization on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information, the terminal device performs time synchronization based on the transmission delay and the sending time of the time synchronization information.
  • embodiments of the present application provide a time synchronization method, which can be executed by an access network device or a module (such as a chip) in the access network device.
  • the method includes: the access network device determines time synchronization information, the time synchronization information includes a clock frequency ratio, and the clock frequency ratio represents the clock frequency ratio between the terminal device and the access network device. Clock frequency ratio; the access network device sends the time synchronization information to the terminal device, and the time synchronization information is used for local time synchronization of the terminal device.
  • the access network device sends time synchronization information to the terminal device, so that later the access network device cannot send new time synchronization information to the terminal device, or the access network device cannot send new time synchronization information to the terminal device in a timely manner.
  • the terminal device can achieve precise time synchronization between the terminal device and the access network device based on the time synchronization information previously received from the access network device, which helps to improve the communication capabilities of the terminal device.
  • the time synchronization information also includes a clock deviation, where the clock deviation represents a clock deviation between the terminal device and the access network device.
  • the time synchronization information also includes a transmission delay and a sending time of the time synchronization information.
  • the transmission delay represents a transmission delay between the terminal device and the access network device.
  • the time synchronization information also includes a clock deviation change rate and a clock deviation.
  • the clock deviation change rate represents the change of the clock deviation over time.
  • the clock deviation represents the difference between the terminal device and the access network device. clock skew between.
  • the access network device determines the first clock deviation at the first time and determines the second clock deviation at the second time; the access network device determines the second clock deviation according to the second clock deviation and the third clock deviation.
  • a first difference in clock bias and a second difference between the second time and the first time determine the clock bias change rate.
  • the access network device before the access network device determines the time synchronization information, the access network device receives indication information indicating that the time synchronization service is provided for the terminal device.
  • embodiments of the present application provide a time synchronization method, which can be executed by a clock management network element or a module (such as a chip) in the clock management network element.
  • the method includes: the clock management network element receives a time synchronization request message.
  • the time synchronization request message includes identification information and indication information of the terminal device.
  • the indication information indicates that the time synchronization request message is provided for the terminal device. time service; the clock management network element selects the access network device that provides time service for the terminal device; the clock management network element sends a notification message to the policy control network element, the notification message includes the identification information of the terminal device, the access network device The identification information of the network access device and the instruction information.
  • the clock management network element selects the access network device that provides time synchronization services for the terminal device, and instructs the access network device to provide time synchronization services for the terminal device, which can realize the communication between the terminal device and the access network device. Precise time synchronization between networked devices helps improve the communication capabilities of terminal devices.
  • the clock management network element sends a query message to the unified database network element, and the query message
  • the information includes the identification information of the terminal device, and the query message requests to obtain the policy control network element that provides services for the terminal device; the clock management network element receives the identification information of the policy control network element from the unified database network element.
  • the clock management network element sends a request message to the unified data management network element.
  • the request message includes the identification information of the terminal device.
  • the request message is used to request to query whether the terminal device is authorized to provide time synchronization. service; the clock management network element receives a response message from the unified data management network element, and the response message indicates that the terminal device is authorized to provide time synchronization services.
  • the clock management network element determines that the terminal device is authorized to obtain time synchronization services, it instructs the access network device to provide time synchronization services for the terminal device, which helps avoid providing time synchronization services to unauthorized terminal devices.
  • the clock management network element receives the time adjustment request message from the terminal device or application function network element.
  • embodiments of the present application provide a communication device, which may be a terminal device or a module (such as a chip) in the terminal device.
  • the device has the function of implementing any implementation method of the above-mentioned first aspect. This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • embodiments of the present application provide a communication device, which may be an access network device or a module (such as a chip) in the access network device.
  • the device has the function of implementing any implementation method of the above second aspect. This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • embodiments of the present application provide a communication device, which may be a clock management network element or a module (such as a chip) in the clock management network element.
  • the device has the function of implementing any implementation method of the above third aspect. This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • embodiments of the present application provide a communication device, including a processor and a memory; the memory is used to store computer instructions, and when the device is running, the processor executes the computer instructions stored in the memory to cause the device to execute Any implementation method in the above first to third aspects.
  • embodiments of the present application provide a communication device, including units or means (means) for executing each step of any implementation method in the above-mentioned first to third aspects.
  • embodiments of the present application provide a communication device, including a processor coupled to a memory.
  • the processor is configured to call a program stored in the memory to execute any implementation method in the above first to third aspects.
  • the memory may be located within the device or external to the device.
  • the processor can be one or more.
  • embodiments of the present application provide a communication device, including a processor and an interface circuit.
  • the processor is configured to communicate with other devices through the interface circuit and execute any implementation method in the above-mentioned first to third aspects.
  • the processor includes one or more.
  • embodiments of the present application further provide a computer program product.
  • the computer program product includes a computer program or instructions.
  • the computer program or instructions are run by a communication device, any one of the above-mentioned first to third aspects is enabled.
  • the implementation method is executed.
  • embodiments of the present application further provide a computer-readable storage medium, in which instructions are stored, and when run on a communication device, the instructions in the first to third aspects are implemented. Any implementation method of is executed.
  • embodiments of the present application further provide a chip system, including: a processor, configured to execute the above first Any implementation method from aspect to third aspect.
  • embodiments of the present application further provide a communication system, including a terminal device for performing any of the methods of the first aspect, and an access network device for performing any of the methods of the second aspect.
  • Figure 1(a) is a schematic diagram of the 5G network architecture based on service-based architecture
  • Figure 1(b) is a schematic diagram of the 5G network architecture based on point-to-point interface
  • Figure 2 is a flow chart of a time synchronization method provided by an embodiment of the present application.
  • Figure 3(a) is an example diagram of time synchronization provided by the embodiment of the present application.
  • Figure 3(b) is another example diagram of time synchronization provided by the embodiment of the present application.
  • Figure 3(c) is another example diagram of time synchronization provided by the embodiment of the present application.
  • Figure 4 is a flow chart of a time synchronization method provided by an embodiment of the present application.
  • Figure 5 is a flow chart of a time synchronization method provided by an embodiment of the present application.
  • Figure 6 is a flow chart of a time synchronization method provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of a communication device provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of a communication device provided by an embodiment of the present application.
  • Figure 1(a) is a schematic diagram of the 5G network architecture based on service-based architecture.
  • the 5G network architecture shown in Figure 1(a) includes a data network (DN) and an operator network.
  • DN data network
  • Operator network operator network
  • the operator's network includes one or more of the following network elements: Authentication Server Function (AUSF) network element (not shown in the figure), unified data management (UDM) network element, unified database (Unified Data Repository, UDR) network element, Network Repository Function (NRF) network element (not shown in the figure), Network Exposure Function (NEF) network element (not shown in the figure), Application function (AF) network element, policy control function (PCF) network element, access and mobility management function (AMF) network element, session management function , SMF) network element, UPF network element, access network (AN) equipment (radio access network (RAN) equipment is used as an example in the figure), time-sensitive communication and time synchronization functions (Time Sensitive Communication and Time Synchronization Function, TSCTSF) network elements, etc.
  • AUSF Authentication Server Function
  • UDM unified data management
  • UDR Unified Data Repository
  • NEF Network Exposure Function
  • AF Policy control function
  • AMF access and mobility management function
  • SMF
  • Access network equipment includes wired access network equipment and wireless access network equipment.
  • the wireless access network equipment may be a base station (base station), an evolved base station (evolved NodeB, eNodeB), a transmission reception point (TRP), or a next generation base station (next generation NodeB, in the 5G mobile communication system).
  • gNB next generation base station in the 6th generation (6G) mobile communication system, the base station in the future mobile communication system or the access node in the wireless fidelity (wireless fidelity, WiFi) system, etc.; it can also be completed
  • the modules or units of some functions of the base station for example, can be a centralized unit (CU) or a distributed unit (DU).
  • the wireless access network equipment can be a macro base station, a micro base station or an indoor station, or a relay node or a donor node, etc. The embodiments of this application do not limit the specific technology and specific equipment form used by the access network equipment.
  • Terminal equipment that communicates with RAN includes terminals, user equipment (UE), mobile stations, mobile terminals, etc.
  • the terminal device is a UE as an example.
  • Terminal devices can be widely used in various scenarios, such as device-to-device (D2D), vehicle to everything (V2X) communication, machine-type communication (MTC), and the Internet of Things (Internet of things, IoT), virtual reality, augmented reality, industrial control, autonomous driving, telemedicine, smart grid, smart furniture, smart office, smart wear, smart transportation, smart city, etc.
  • Terminals can be mobile phones, tablets, computers with wireless transceiver functions, wearable devices, vehicles, drones, helicopters, airplanes, ships, robots, robotic arms, smart home devices, etc. The embodiments of this application do not limit the specific technology and specific equipment form used by the terminal equipment.
  • Access network equipment and terminal equipment can be fixed-position or removable. Access network equipment and terminal equipment can be deployed on land, indoors or outdoors, handheld or vehicle-mounted; they can also be deployed on water; they can also be deployed on aircraft, balloons and satellites in the sky. The embodiments of this application do not limit the application scenarios of access network equipment and terminal equipment.
  • the mobility management network element is a control plane network element provided by the operator's network. It is responsible for access control and mobility management of terminal devices accessing the operator's network. For example, it includes mobility status management, assigning user temporary identities, authenticating and authorizing users. and other functions.
  • the mobility management network element can be an AMF network element.
  • future communications such as the 6th generation (6G)
  • the mobility management network element can still be an AMF network element, or have other names. There are no restrictions on application.
  • the session management network element is a control plane network element provided by the operator network and is responsible for managing the protocol data unit (PDU) session of the terminal device.
  • a PDU session is a channel used to transmit PDUs. Terminal devices need to transmit PDUs to each other through the PDU session and the DN.
  • the SMF network element is responsible for establishing, maintaining and deleting PDU sessions.
  • Session management network elements include session management (such as session establishment, modification and release, including tunnel maintenance between user plane network elements and access network equipment), selection and control of user plane network elements, service and session continuity (Service and Session Continuity (SSC) mode selection, roaming and other session-related functions.
  • the session management network element can be an SMF network element.
  • future communications such as 6G, the session management network element can still be an SMF network element, or have other names. This application does not limit it.
  • the user plane network element is a gateway provided by the operator, and is the gateway for communication between the operator's network and the DN.
  • UPF network elements include user plane-related functions such as data packet routing and transmission, packet detection, business usage reporting, Quality of Service (QoS) processing, legal interception, uplink packet detection, and downlink data packet storage.
  • QoS Quality of Service
  • the user plane network element can be a UPF network element.
  • future communications such as 6G, the user plane network element can still be a UPF network element, or have other names. This application does not limit it.
  • the data management network element is a control plane network element provided by the operator. It is responsible for storing the subscriber permanent identifier (SUPI), credential, security context, and subscription of subscribed users in the operator's network. Data and other information. This information stored in the data management network element can be used for authentication and authorization of terminal devices accessing the operator's network.
  • the contract users of the above-mentioned operator network can specifically be users who use services provided by the operator network, such as users who use China Telecom's mobile phone chip cards, or users who use China Mobile's mobile phone chip cards, etc.
  • the permanent subscription identifier (Subscription Permanent Identifier, SUPI) of the above-mentioned subscriber can be the number of the mobile phone chip card, etc.
  • the trust certificate and security context of the above-mentioned contract user can be a small file stored in the encryption key of the mobile phone chip card or information related to the encryption of the mobile phone chip card, for authentication and/or authorization.
  • the above security context may be data (cookie) or token stored on the user's local terminal (such as a mobile phone).
  • the contract data of the above-mentioned contract users can be the supporting services of the mobile phone chip card, such as the traffic package or network usage of the mobile phone chip card. It should be noted that permanent identifiers, credentials, security context, authentication data (cookies), and tokens are equivalent to authentication and authorization. The relevant information is not distinguished or restricted in this application document for the convenience of description.
  • the embodiments of this application will be described using security context as an example, but the embodiments of this application are also applicable to authentication and/or authorization information expressed in other ways.
  • the data management network element can be a UDM network element.
  • future communications such as 6G, the data management network element can still be a UDM network element, or have other names. This application does not limit it.
  • the unified database network element is a control plane network element provided by the operator, and includes access functions for executing contract data, policy data, application data and other types of data.
  • the unified database network element can be a UDR network element.
  • future communications such as 6G, the unified database network element can still be a UDR network element, or have other names. This application does not limit it.
  • Network open network elements are control plane network elements provided by operators.
  • the network opening network element opens the external interface of the operator's network to third parties in a secure manner.
  • the network open network element can serve as a relay for the communication between the session management network element and the third-party network element.
  • the network open network element serves as a relay, it can be used to translate the identification information of the subscriber and the identification information of the third-party network element. For example, when the network opening network element sends the SUPI of the subscriber from the operator network to a third party, it can translate the SUPI into its corresponding external identity.
  • network opening network element when the network opening network element sends the external ID (the third-party network element ID) to the operator network, it can be translated into SUPI.
  • network open network elements can be NEF network elements.
  • future communications such as 6G, network open network elements can still be NEF network elements, or have other names. This application does not limit it.
  • the application function network element is used to transmit the requirements of the application side to the network side, such as QoS requirements or user status event subscriptions.
  • the application function network element can be a third-party functional entity or an application server deployed by the operator.
  • the application function network element can be an AF network element.
  • future communications such as 6G, the application function network element can still be an AF network element, or have other names. This application does not limit it.
  • the policy control network element is a control plane function provided by the operator and is used to provide PDU session policies to the session management network element. Policies may include accounting-related policies, QoS-related policies, authorization-related policies, etc.
  • the policy control network element can be a PCF network element.
  • future communications such as 6G, the policy control network element can still be a PCF network element, or have other names. This application does not limit it.
  • Network storage function network elements can be used to provide network element discovery functions and provide network element information corresponding to network element types based on requests from other network elements.
  • the network storage function network element also provides network element management services, such as network element registration, update, de-registration, network element status subscription and push, etc.
  • the network storage function network element can be an NRF network element.
  • future communications such as 6G, the network storage function network element can still be an NRF network element, or have other names. This application does not limit it.
  • the clock management network element can be used to manage the clock information of one or more clock sources in the 5G network. It can provide the clock information of the clock source externally through its own port, such as directly or indirectly to terminal equipment, access network equipment, core network equipment or Third-party application function network elements provide clock information. Among them, the clock information represents the time, moment or time point of the clock; the clock management network element can also select the corresponding timing network element according to the timing request of the timing requester.
  • the timing network element can be, for example, a UPF network element or an access network device. etc., or it can be the clock management network element itself, and then the clock management network element instructs the timing network element to provide timing services to the timing requester.
  • the clock management network element can be a TSCTSF network element defined by 3GPP. In future communications such as 6G, the clock management network element can still be a TSCTSF network element, or have other names. This application does not limit it.
  • DN is a network located outside the operator's network.
  • the operator's network can access multiple DNs.
  • a variety of services can be deployed on the DN, which can provide data and/or voice services to terminal devices.
  • DN is a private network of a smart factory.
  • the sensors installed in the workshop of the smart factory can be terminal devices.
  • the control server of the sensor is deployed in the DN, and the control server can provide services for the sensor.
  • the sensor can communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions.
  • DN is the internal office network of a company.
  • the mobile phones or computers of company employees can be used as terminal devices, and the employees' mobile phones or computers can access information and data resources on the company's internal office network.
  • Npcf, Nudr, Nudm, Naf, Namf, Nsmf, and Ntsctsf are respectively provided by the above-mentioned PCF network element, UDR network element, UDM network element, AF network element, AMF network element, SMF network element, and TSCTSF network element.
  • the service interface is used to call the corresponding service operation.
  • N1, N2, N3, N4 and N6 are interface serial numbers. The meanings of these interface serial numbers are as follows:
  • N1 The interface between the AMF network element and the UE, which can be used to transmit non-access stratum (NAS) signaling (such as QoS rules from the AMF network element) to the UE.
  • NAS non-access stratum
  • N2 The interface between the AMF network element and the wireless access network equipment, which can be used to transmit wireless bearer control information from the core network side to the wireless access network equipment, etc.
  • N3 The interface between the wireless access network equipment and the UPF network element, mainly used to transmit uplink user plane data and/or downlink user plane data between the wireless access network equipment and the UPF network element.
  • N4 The interface between the SMF network element and the UPF network element can be used to transfer information between the control plane and the user plane, including controlling the delivery of user-oriented forwarding rules, QoS rules, traffic statistics rules, etc. Report information on the user interface.
  • N6 The interface between the UPF network element and the DN, used to transmit the uplink user data flow and/or the downlink user data flow between the UPF network element and the DN.
  • Figure 1(b) is a schematic diagram of the 5G network architecture based on point-to-point interfaces.
  • the interfaces between the control plane network elements in Figure 1(a) are service-oriented interfaces. The interface between them is a point-to-point interface.
  • N1, N2, N3, N4 and N6 interfaces can refer to the previous description.
  • N5 The interface between the AF network element and the PCF network element, which can be used to deliver application service requests and report network events.
  • N7 The interface between PCF network element and SMF network element can be used to deliver protocol data unit (PDU) session granularity and service data flow granularity control policy.
  • PDU protocol data unit
  • N8 The interface between AMF network elements and UDM network elements, which can be used by AMF network elements to obtain access and mobility management-related subscription data and authentication data from UDM network elements, and for AMF network elements to register with UDM network elements. Information related to terminal device mobility management, etc.
  • N9 User plane interface between UPF network elements and UPF network elements, used to transmit uplink user data flow and/or downlink user data flow between UPF network elements.
  • N10 The interface between the SMF network element and the UDM network element, which can be used for the SMF network element to obtain session management-related contract data from the UDM network element, and for the SMF network element to register terminal device session-related information with the UDM network element.
  • N11 The interface between SMF network element and AMF network element can be used to transmit PDU session tunnel information between wireless access network equipment and UPF network element, control messages sent to terminal equipment, and control messages sent to Wireless resource control information of wireless access network equipment, etc.
  • N15 The interface between the PCF network element and the AMF network element, which can be used to deliver terminal device policies and access control-related policies.
  • N35 The interface between UDM network element and UDR network element, which can be used by UDM network element to obtain from UDR network element User contract data information.
  • N36 The interface between PCF network element and UDR network element, which can be used by PCF network element to obtain policy-related contract data and application data-related information from UDR network element.
  • the above network elements or functions can be network elements in hardware devices, software functions running on dedicated hardware, or virtualization functions instantiated on a platform (for example, a cloud platform).
  • a platform for example, a cloud platform.
  • the above network element or function can be implemented by one device, or can be implemented by multiple devices together, or can be a functional module in one device, which is not specifically limited in the embodiments of this application.
  • the base station and the UE are used as specific examples of access network equipment and terminal equipment respectively for description.
  • Figure 2 is a flow chart of a time synchronization method provided by an embodiment of the present application. The method includes the following steps:
  • Step 201 The base station determines time synchronization information.
  • the base station receives indication information indicating providing time synchronization services for the UE.
  • the indication information triggers the base station to determine the time synchronization information.
  • Step 202 The base station sends time synchronization information to the UE.
  • the time synchronization information is used for the UE to perform local time synchronization.
  • the UE After receiving the time synchronization information, the UE stores the reception time of the time synchronization information and the time synchronization information.
  • Step 203 The UE performs time synchronization based on the current time of the UE, the reception time of the time synchronization information, and the time synchronization information.
  • the UE when the preset conditions are met, performs time synchronization based on the current time of the UE, the reception time of the time information and the time information; where the preset condition is: the UE is not setting Receive new time synchronization information from the base station within a set time period; or, the UE receives indication information and new time synchronization information from the base station within a set time period, and the indication information indicates that the new time synchronization information does not satisfy the UE's synchronization requirements. time accuracy requirements.
  • the set duration may be sent to the UE by the base station, or may be preset on the UE.
  • the UE can achieve precise time synchronization between the UE and the base station based on the time synchronization information previously received from the base station.
  • the UE does not rely on the base station to provide timely synchronization information. Therefore, the base station cannot send new time synchronization information to the UE. , or the base station cannot send new time synchronization information to the UE in time, the UE can also complete the time synchronization, which helps to improve the communication capability of the UE.
  • the UE before the above step 201, the UE also sends a time synchronization request message to the base station or core network element (such as AMF network element, TSCTSF network element, etc.).
  • the time synchronization request message includes the identification information and instructions of the UE.
  • Information, the indication information indicates providing time synchronization services for the UE.
  • the UE before the above step 203, performs time synchronization based on the time synchronization information from the base station. For example, when the time synchronization information includes the transmission delay and the sending time of the time synchronization information, and the transmission delay represents the transmission delay between the UE and the base station, then the UE performs the processing according to the transmission delay and the sending time of the time synchronization information. Time synchronization. For another example, when the time synchronization information includes a clock deviation, and the clock deviation represents the clock deviation between the UE and the base station, the UE performs time synchronization based on the clock deviation and the reception time of the time synchronization information. In this way, precise time synchronization can be achieved.
  • the UE before the above step 203, the UE also receives information from the base station or core network element (such as AMF network element, TSCTSF network element, etc.) indicating to turn on the time synchronization function, and the UE turns on the time synchronization function based on this information. function, so that when the UE does not receive new time synchronization information from the base station within the set time period, the UE will perform time synchronization based on the current time of the UE, the reception time of the time synchronization information, and the time synchronization information.
  • This solution helps the UE perform time synchronization in the correct method.
  • the UE performs time synchronization based on the current time of the UE, the reception time of the time synchronization information, and the time synchronization information. Specifically, the UE may determine the current time of the UE and the reception time of the time synchronization information. Of The difference between them is determined, and then the synchronization time is determined based on the difference and the time synchronization information, and time synchronization is performed based on the synchronization time.
  • the following describes three different methods for the UE to determine the synchronization time based on the difference between the UE's current time and the reception time of the time synchronization information, as well as the time synchronization information.
  • the time synchronization information received by the UE includes a clock frequency ratio and a clock deviation.
  • the UE determines the ratio of the difference to the clock frequency ratio, and determines the synchronization time based on the ratio, clock deviation, and the reception time of the time synchronization information.
  • the clock frequency ratio represents the ratio between the clock frequency of the UE and the clock frequency of the base station. For example, it can be calculated based on the time when the base station sends a message to the UE and the time when the UE receives the message, and the time when the UE sends the message to the base station and the time when the base station receives the message.
  • the clock offset represents the difference between the UE's clock and the base station's clock.
  • synchronization time (tx-ty)/ratio+ty+offset.
  • tx represents the current time of the terminal device
  • ty represents the reception time of the time synchronization information
  • ratio represents the clock frequency ratio
  • offset represents the clock deviation between the base station and the UE at time ty
  • tx-ty represents the current time and time synchronization information of the UE. The difference between the reception times.
  • the UE receives the offset at time ty, and the UE updates the UE's time to ty+offset to complete time synchronization with the base station at time ty. Then, after the duration of (tx-ty) has elapsed, the UE takes the sum of the elapsed time and the UE's time at ty as the UE's synchronization time at tx. That is, the sum of (tx-ty)/ratio and (ty+offset) is regarded as the synchronization time of the UE.
  • the reason why it needs to be divided by the ratio is that the time elapsed in the UE domain needs to be converted into the time elapsed in the base station domain.
  • This method can accurately synchronize the time of the UE with the time of the base station when the UE does not receive the time synchronization information of the base station, or when the new time synchronization information received is not accurate enough.
  • the time synchronization information received by the UE includes the clock frequency ratio, transmission delay and the sending time of the time synchronization information.
  • the UE determines the ratio of the difference to the clock frequency ratio, and the UE determines the ratio, transmission delay and time synchronization information based on the ratio.
  • the sending time determines the synchronization time.
  • the clock frequency ratio represents the clock frequency ratio between the UE and the base station
  • the transmission delay represents the transmission delay between the UE and the base station.
  • synchronization time (tx-ty)/ratio+tz+delay.
  • tx represents the current time of the terminal device
  • ty represents the receiving time of the time information
  • tz represents the sending time of the time information
  • ratio represents the clock frequency ratio
  • delay represents the transmission delay
  • tx-ty represents the time between the current time of the UE and the corresponding time. The difference between the time the message was received.
  • the UE receives tz and delay at time ty, and the UE updates the time of the UE to tz+delay to complete time synchronization with the base station at time ty. Then, after the duration of (tx-ty) has elapsed, the UE takes the sum of the elapsed time and the UE's time at ty as the UE's synchronization time at tx. That is, the sum of (tx-ty)/ratio and (tz+delay) is regarded as the synchronization time of the UE.
  • the reason why it needs to be divided by the ratio is that the time elapsed in the UE domain needs to be converted into the time elapsed in the base station domain.
  • This method can accurately synchronize the time of the UE with the time of the base station when the UE does not receive the time synchronization information of the base station, or when the new time synchronization information received is not accurate enough.
  • the time synchronization information received by the UE includes the clock deviation change rate, clock frequency ratio and clock deviation.
  • the UE determines the product of the clock deviation change rate and the difference, and determines the ratio of the product to the clock frequency ratio, and then based on the ratio, clock
  • the offset and the UE's current time determine the synchronization time.
  • the clock deviation change rate represents the change of the clock deviation over time
  • the clock frequency ratio represents the clock frequency ratio between the UE and the base station
  • the clock deviation represents the clock deviation between the UE and the base station.
  • synchronization time tx+drift*(tx-ty)/ratio+offset.
  • tx represents the current time of the terminal device
  • ty represents the reception time of the time information
  • drift represents the clock deviation change rate, that is, the rate of change of the clock deviation between the base station and the UE over time
  • ratio represents the clock frequency ratio
  • offset represents The clock deviation between the base station and the UE at time ty
  • tx-ty represents the difference between the current time of the UE and the time when the time information is received.
  • the UE receives the offset at time ty, that is, the offset represents the deviation between the base station and the UE at time ty. Then after (tx-ty) time has passed, the deviation between the base station and the UE has changed, and the deviation change amount is drift*(tx-ty)/ratio, so drift*(tx-ty)/ratio+ offset represents the clock offset between the base station and the UE at tx time. Therefore, the UE uses the sum of tx and (drift*(tx-ty)/ratio+offset) as the synchronization time of the UE at time tx, and time synchronization can be achieved.
  • the reason why it needs to be divided by the ratio is that the time elapsed in the UE domain needs to be converted into the time elapsed in the base station domain.
  • This method can accurately synchronize the time of the UE with the time of the base station when the UE does not receive the time synchronization information of the base station, or when the new time synchronization information received is not accurate enough.
  • Figure 3(a) is an example diagram of time synchronization provided by the embodiment of the present application. The method is as follows:
  • Time t1 The base station sends message 1 to the UE at time t1;
  • Time t2 UE receives message 1 at time t2;
  • Time t3 UE sends message 2 to the base station at time t3.
  • the header of message 2 carries the reception time t2 of message 1 and the sending time t3 of message 2;
  • Time t4 The base station receives message 2 at time t4;
  • Time t5 UE sends message 3 to the base station at time t5, and the header of message 3 carries the sending time t5 of message 3;
  • Time t6 The base station receives message 3 at time t6.
  • the base station After the base station obtains the above time t1 to t6, it can execute the following method A or method B.
  • the method A is an example of the above-mentioned method one
  • the method B is an example of the above-mentioned method two.
  • Method A The base station calculates the ratio and offset and sends the ratio and offset to the UE.
  • ratio (t5-t3)/(t6-t4). ratio represents the clock frequency ratio between the UE and the base station.
  • offset ((t2-t1)-(t4-t3))/2.
  • offset represents the clock offset between the UE and the base station.
  • the base station sends time synchronization information to the UE at time t7, and the UE receives the time synchronization information at time t8.
  • the ratio and offset come from the latest timing information received and saved by the UE.
  • Method B the base station calculates the ratio and delay, and sends the ratio and delay to the UE.
  • ratio (t5-t3)/(t6-t4). ratio represents the clock frequency ratio between the UE and the base station.
  • delay (ratio*(t4-t1)-(t3-t2))/2.
  • delay represents the transmission delay between the UE and the base station.
  • the base station sends time synchronization information to the UE at time t7, and the UE receives the time synchronization information at time t8.
  • t_new2 (t9-t8)/ratio+t7+delay.
  • t7, ratio and delay come from the latest time synchronization information received and saved by the UE.
  • Figure 3(b) is another example diagram of time synchronization provided by the embodiment of the present application.
  • a message can carry the sending time of the message, for example, message 2 carries t3, and message 3 carries t5.
  • a message does not carry the sending time of the message.
  • message 2 does not carry t3, and message 3 does not carry t5.
  • the UE sends two messages to the base station to send time information to the base station.
  • the time information includes t2, t3 and t5.
  • the UE sends 3 messages are used to send time information to the base station.
  • the time information includes t2, t3 and t5.
  • Other aspects of the embodiment based on FIG. 3(b) are the same as the above-mentioned embodiment of FIG. 3(a).
  • Figure 3(c) is another example diagram of time synchronization provided by the embodiment of the present application. The method is as follows:
  • Time t1 The base station sends message 1 to the UE at time t1;
  • Time t2 UE receives message 1 at time t2;
  • Time t3 UE sends message 2 to the base station at time t3.
  • the header of message 2 carries the reception time t2 of message 1 and the sending time t3 of message 2;
  • Time t4 The base station receives message 2 at time t4;
  • Time t5 The base station sends message 3 to the UE at time t5;
  • Time t6 UE receives message 3 at time t6;
  • Time t7 UE sends message 4 to the base station at time t7.
  • the header of message 4 carries the reception time t6 of message 3 and the sending time t7 of message 4;
  • Time t8 The base station receives message 4 at time t8.
  • This method C is an example of method three above.
  • Method C The base station calculates the drift, ratio and offset, and sends the drift, ratio and offset to the UE.
  • ratio (t7-t3)/(t8-t4), ratio represents the clock frequency ratio between the UE and the base station.
  • the base station sends time synchronization information to the UE at time t9, and the UE receives the time synchronization information at time t10.
  • the time synchronization information includes ratio, drift, and offset2.
  • the UE also saves the received time synchronization information.
  • the drift, ratio and offset2 here come from the latest time synchronization information received and saved by the UE.
  • the above-mentioned method A and method B may be called an enhanced round trip time (Round Trip Time, RTT) time synchronization method
  • the above-mentioned method C is called a two-way RTT time synchronization method.
  • FIG. 2 The above-mentioned embodiment of FIG. 2 will be described in detail below with reference to the specific embodiments of FIGS. 4 to 6 .
  • FIG. 4 is a schematic flowchart of a time synchronization method provided by an embodiment of the present application. This method is the AF request to provide timing services to the UE.
  • the method includes the following steps:
  • Step 401 The AF sends a time synchronization request message to the NEF.
  • the time synchronization request message includes the identification information of the UE, the required time synchronization error accuracy and indication information.
  • the UE indicated by the identification information of the UE is the object that needs to be synchronized.
  • the required time error accuracy can be nanoseconds (ns), microseconds (us), etc.
  • the indication information indicates that time synchronization services are provided for the UE.
  • the indication information indicates that the time synchronization service is provided for the UE according to the enhanced RTT time synchronization method.
  • the indication information indicates that the time synchronization service is provided for the UE according to the two-way RTT time synchronization method.
  • the time synchronization request message is the Nnef_TimeSynchronization_ASTICreate/Update/Delete message.
  • Step 402 NEF sends a time synchronization request message to the TSCTSF.
  • the time synchronization request message includes the identification information of the UE, the required time synchronization error accuracy and indication information.
  • NEF After NEF receives the time request message from AF, it authenticates AF. When the authentication is passed, NEF sends a time request message to TSCTSF. The UE's identification information, required time error accuracy and indication information in the time synchronization request message sent by the NEF come from the AF.
  • the time synchronization request message is an Ntsctsf_TimeSynchronization_ASTICreate/Update/Delete message.
  • Step 403 The TSCTSF selects a base station that provides time synchronization services for the UE.
  • TSCTSF selects a base station that provides time synchronization services for the UE from multiple base stations based on the distribution information of the base stations and the required time synchronization error accuracy.
  • Step 404 The TSCTSF sends a query message to the UDR.
  • the query message includes the identification information of the UE, and the query message requests to obtain the PCF that provides services for the UE.
  • the query message is a Nudr_DM_Create/Update/Delete request message.
  • Step 405 The UDR sends a response message to the TSCTSF.
  • the response message includes the identification information of the PCF.
  • the response message is a Nudr_DM_Create/Update/Delete response message.
  • Step 406 The TSCTSF sends a notification message to the PCF.
  • the notification message includes the identification information of the UE, the identification information of the base station, the indication information and the required time error accuracy.
  • This base station is the base station selected by the TSCTSF to provide time synchronization services for the UE.
  • the identification information, indication information and required time synchronization error accuracy of the UE were received by the TSCTSF in the above step 402.
  • Step 407 The PCF sends policy information to the AMF.
  • the policy information includes the identification information of the UE, the identification information of the base station, the indication information and the required time error accuracy.
  • the UE identification information, base station identification information, indication information and required time error accuracy in the policy information are received by the PCF from the TSCTSF.
  • Step 408 The AMF sends a notification message to the base station.
  • the notification message includes the UE's identification information, indication information and required time error accuracy.
  • the base station is the base station indicated by the identification information of the base station in the policy information.
  • the UE's identification information, indication information and required time error accuracy in the notification message are received by the AMF from the PCF.
  • Step 409 The base station determines the time synchronization information according to the required time synchronization error accuracy.
  • the time synchronization information determined by the base station meets the required time synchronization error accuracy.
  • the base station when the indication information received by the base station indicates that the UE is provided with time synchronization services, the base station first selects the enhanced RTT time synchronization method or the bidirectional RTT time synchronization method according to the required time synchronization error accuracy. Specifically, if the enhanced RTT time synchronization method is selected, the base station determines the time synchronization information based on the enhanced RTT time synchronization method and the required time synchronization error accuracy. The content of the time synchronization information can refer to the aforementioned method A or method B. If the two-way RTT time synchronization method is selected, the base station determines the time synchronization information based on the two-way RTT time synchronization method and the required time synchronization error accuracy. The content of the time synchronization information can refer to the aforementioned method C.
  • the base station determines the time synchronization information according to the enhanced RTT time synchronization method and the required time synchronization error accuracy.
  • the content of the time information please refer to the aforementioned method A or method B.
  • the base station determines the time synchronization information based on the two-way RTT time synchronization method and the required time synchronization error accuracy.
  • the content of the time information can refer to the aforementioned method C.
  • Step 410 The base station sends time synchronization information to the UE.
  • the base station also sends information indicating the time synchronization function to the UE, so that the UE enables the time synchronization function based on the information, which helps to accurately achieve time synchronization.
  • Step 411 The UE performs time synchronization based on the time synchronization information.
  • step 411 For the specific implementation of step 411, reference can be made to the description of the embodiment in FIG. 2 and will not be described again.
  • the TSCTSF may send a time synchronization response message to NEF to notify the successful time synchronization, and then the NEF sends a time synchronization response message to the AF to notify the successful time synchronization.
  • the AF requests time synchronization services for the UE
  • the TSCTSF selects a base station that provides time synchronization services for the UE, and the base station sends time synchronization information to the UE. Therefore, when the base station cannot send time synchronization information to the UE, or the base station cannot send time synchronization information to the UE in a timely manner, If the UE sends time synchronization information, the UE can achieve precise time synchronization between the UE and the base station based on the time synchronization information previously received from the base station, which helps to improve the communication capability of the UE.
  • FIG. 5 is a schematic flowchart of a time synchronization method provided by an embodiment of the present application. This method is that when the clock source on the base station fails, the UE performs time synchronization based on locally saved time information.
  • the method includes the following steps:
  • Step 501 The base station sends a notification message to the TSCTSF.
  • the notification message includes the identification information of the base station and indication information 1.
  • the indication information 1 indicates that the clock source of the base station fails.
  • the notification message also includes identification information of a UE that is affected by a clock source failure of the base station. That is, due to a clock source failure of the base station, it is impossible to continue to provide time synchronization services to the UE.
  • Step 502 The TSCTSF determines the UEs affected by the clock source failure of the base station.
  • step 501 When the notification message in step 501 above carries the identification information of the UE affected by the clock source failure of the base station, there is no need to perform step 502.
  • step 502 is executed.
  • TSCTSF sends a request message to AMF/PCF.
  • the request message includes the identification information of the base station.
  • the request message requests to obtain the identification information of the UE affected by the clock source failure of the base station.
  • AMF/PCF sends the request message to TSCTSF. Identification information of the UE affected by the clock source failure of the base station.
  • Step 503 TSCTSF sends a query message to the UDR.
  • the query message includes the identification information of the UE, and the query message requests to obtain the PCF that provides services for the UE.
  • the UE indicated by the identification information of the UE is the UE affected by the clock source failure of the base station.
  • the query message is a Nudr_DM_Create/Update/Delete request message.
  • Step 504 The UDR sends a response message to the TSCTSF.
  • the response message includes the identification information of the PCF.
  • the response message is a Nudr_DM_Create/Update/Delete response message.
  • Step 505 The TSCTSF sends a notification message to the PCF.
  • the notification message includes the UE's identification information and indication information 2.
  • This indication information 2 instructs the UE to perform local time synchronization.
  • Step 506 The PCF sends policy information to the AMF, where the policy information includes the UE's identification information and indication information 2.
  • Step 507 AMF sends indication information 2 to the UE.
  • the AMF also sends information indicating the time synchronization function to the UE, so that the UE enables the time synchronization function based on the information, which helps to accurately achieve time synchronization.
  • Step 508 The UE performs time synchronization based on locally saved time information.
  • step 508 reference can be made to the description of the embodiment in FIG. 2 and will not be described again.
  • TSCTSF can notify the UE to perform local time synchronization, that is, the UE achieves precise time synchronization between the UE and the base station based on the time synchronization information previously received from the base station, which helps to improve the UE's communication capabilities.
  • FIG. 6 is a schematic flowchart of a time synchronization method provided by an embodiment of the present application. This method is that the UE actively requests to provide time synchronization services for the UE.
  • the method includes the following steps:
  • Step 601 The UE sends a time synchronization request message to the AMF.
  • the time synchronization request message includes the identification information of the UE, the required time synchronization error accuracy and indication information.
  • the UE indicated by the identification information of the UE is the object that needs to be synchronized.
  • the indication information indicates that time synchronization services are provided for the UE.
  • the indication information indicates that the time synchronization service is provided for the UE according to the enhanced RTT time synchronization method.
  • the indication information indicates that the time synchronization service is provided for the UE according to the two-way RTT time synchronization method.
  • the time synchronization request message is an Nnas_TimeSynchronization_ASTICreate/Update/Delete message.
  • Step 602 The AMF sends a time synchronization request message to the TSCTSF.
  • the time synchronization request message includes the identification information of the UE, the required time synchronization error accuracy and indication information.
  • the identification information of the UE, the required time error accuracy and the indication information in the time synchronization request message sent by the AMF come from the UE.
  • the time synchronization request message is an Ntsctsf_TimeSynchronization_ASTICreate/Update/Delete message.
  • Step 603 TSCTSF sends a request message to UDM, where the request message includes the identification information of the UE.
  • the request message sent by the TSCTSF to the UDM is used to request to query whether the UE is authorized to provide time synchronization services.
  • the request message sent by TSCTSF to UDM is used to request to query whether it is authorized to provide time synchronization services for the UE according to the enhanced RTT time synchronization method.
  • the request message sent by TSCTSF to UDM is used to request whether to authorize the UE to use the two-way RTT time synchronization method. Provide timely services.
  • Step 604 UDM sends a response message to TSCTSF.
  • the response message indicates that the UE is authorized to provide time synchronization services for the UE, or that the UE is authorized to provide time synchronization services for the UE according to the enhanced RTT time synchronization method, or that the UE is authorized to provide time synchronization services for the UE according to the two-way RTT time synchronization method.
  • Steps 605 to 613 are the same as steps 403 to 411 described above.
  • the UE actively requests time synchronization services, and the TSCTSF selects a base station that provides time synchronization services for the UE.
  • the base station sends time synchronization information to the UE. Therefore, when the base station cannot send time synchronization information to the UE, or the base station cannot send time synchronization information to the UE in a timely manner, By sending time synchronization information, the UE can achieve precise time synchronization between the UE and the base station based on the time synchronization information previously received from the base station, which helps to improve the communication capabilities of the UE.
  • the access network device or the terminal device includes corresponding hardware structures and/or software modules that perform each function.
  • the units and method steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software driving the hardware depends on the specific application scenarios and design constraints of the technical solution.
  • Figures 7 and 8 are schematic structural diagrams of possible communication devices provided by embodiments of the present application. These communication devices can be used to implement the functions of the access network equipment or terminal equipment in the above method embodiments, and therefore can also achieve the beneficial effects of the above method embodiments.
  • the communication device may be an access network device or a terminal device, or may be a module (such as a chip) in the access network device or a module (such as a chip) in the terminal device.
  • the communication device 700 shown in FIG. 7 includes a processing unit 710 and a transceiver unit 720.
  • the communication device 700 is used to implement the functions of the access network equipment or terminal equipment in the above method embodiment.
  • the transceiver unit 720 may be used to implement corresponding communication functions.
  • the transceiver unit 720 may also be called a communication interface or communication unit.
  • the processing unit 710 may be used to implement corresponding processing functions.
  • the communication device 700 further includes a storage unit, which can be used to store instructions and/or data, and the processing unit 710 can read the instructions and/or data in the storage unit, so that the communication device 700 implements each of the foregoing. Actions of terminal equipment (such as UE) or access network equipment (such as base station) in method embodiments.
  • the transceiver unit 720 is used to receive time synchronization information from the access network device; the processing unit 710 is used to adjust the time according to the current time of the terminal device, The reception time of the time synchronization information and the time synchronization information are time synchronized.
  • the processing unit 710 is specifically configured to perform time synchronization based on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information when a preset condition is met; wherein, the preset time Assume that the condition is: the terminal device does not receive new time adjustment information from the access network device within a set time period; or the terminal device receives the first indication information and the first indication information from the access network device within a set time period.
  • New time synchronization information, the first indication information indicates that the new time synchronization information does not meet the time synchronization accuracy requirements of the terminal device.
  • the terminal device after the terminal device receives the time synchronization information from the access network device, the terminal device stores the reception time of the time synchronization information and the time synchronization information.
  • the processing unit 710 is specifically configured to determine the difference between the current time of the terminal device and the reception time of the time synchronization information; determine the synchronization time based on the difference and the time synchronization information; Time synchronization is performed based on the synchronization time.
  • the time synchronization information includes a clock frequency ratio and a clock deviation.
  • the clock frequency ratio represents a clock frequency ratio between the terminal device and the access network device.
  • the clock deviation represents a clock frequency ratio between the terminal device and the access network device. Clock deviation between access network devices; the processing unit 710 is specifically used to determine the ratio of the difference to the clock frequency ratio; The synchronization time is determined based on the ratio, the clock deviation and the reception time of the time synchronization information.
  • the time synchronization information includes a clock frequency ratio, a transmission delay and a sending time of the time synchronization information.
  • the clock frequency ratio represents a clock frequency ratio between the terminal device and the access network device
  • the transmission delay represents the transmission delay between the terminal device and the access network device;
  • the processing unit 710 is specifically used to determine the ratio of the difference to the clock frequency ratio;
  • the processing unit 710 is specifically used to determine the ratio according to the ratio , the transmission delay and the sending time of the time synchronization information determine the synchronization time.
  • the time synchronization information includes a clock deviation change rate, a clock frequency ratio, and a clock deviation.
  • the clock deviation change rate represents the change of the clock deviation over time
  • the clock frequency ratio represents the clock frequency ratio between the terminal device and the interface.
  • the clock frequency ratio between network access devices, the clock deviation represents the clock deviation between the terminal device and the access network device;
  • the processing unit 710 is specifically used to determine the product of the clock deviation change rate and the difference, and Determine the ratio of the product to the clock frequency ratio;
  • the processing unit 710 is specifically configured to determine the synchronization time based on the ratio, the clock deviation and the current time of the terminal device.
  • the transceiver unit 720 is also configured to receive the set duration from the access network device.
  • the set time period is preset.
  • the transceiver unit 720 is also configured to send a time synchronization request message.
  • the time synchronization request message includes identification information of the terminal device and second indication information.
  • the second indication information indicates that the time synchronization request message is provided for the terminal device. On-time service.
  • the transceiver unit 720 is also used to receive information indicating turning on the time synchronization function.
  • the time synchronization information includes a transmission delay and a sending time of the time synchronization information.
  • the transmission delay represents the transmission delay between the terminal device and the access network device; the processing unit 710, It is also used to perform time synchronization based on the transmission delay and the sending time of the time synchronization information before performing time synchronization based on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information.
  • the processing unit 710 is used to determine the time synchronization information.
  • the time synchronization information includes a clock frequency ratio, and the clock frequency ratio indicates that the terminal equipment and The clock frequency ratio between the access network devices; the transceiver unit 720 is used to send the time synchronization information to the terminal device, and the time synchronization information is used for local time synchronization of the terminal device.
  • the time synchronization information also includes a clock deviation, where the clock deviation represents a clock deviation between the terminal device and the access network device.
  • the time synchronization information also includes a transmission delay and a sending time of the time synchronization information.
  • the transmission delay represents a transmission delay between the terminal device and the access network device.
  • the time synchronization information also includes a clock deviation change rate and a clock deviation.
  • the clock deviation change rate represents the change of the clock deviation over time.
  • the clock deviation represents the difference between the terminal device and the access network device. clock skew between.
  • the processing unit 710 is used to determine the first clock deviation at the first time, and determine the second clock deviation at the second time; according to the difference between the second clock deviation and the first clock deviation.
  • the transceiver unit 720 is also configured to receive indication information indicating that the time synchronization service is provided for the terminal device before the processing unit 710 determines the time synchronization information.
  • the transceiver unit 720 is used to receive a time synchronization request message.
  • the time synchronization request message includes the identification information of the terminal device. and indication information, the indication information indicates that the time synchronization service is provided for the terminal device;
  • the processing unit 710 is used to select the access network device that provides the time synchronization service for the terminal device;
  • the transceiver unit 720 is also used to provide the policy control network element with Send a notification message, which includes the identification information of the terminal device, the identification information of the access network device, and the indication information.
  • the transceiver unit 720 is also used to send a query message to the unified database network element.
  • the query message includes the identification information of the terminal device, and the query message requests to obtain the policy control network that provides services for the terminal device. element; receiving the identification information of the policy control network element from the unified database network element.
  • the transceiver unit 720 is also used to send a request message to the unified data management network element.
  • the request message includes the identification information of the terminal device.
  • the request message is used to request to query whether the terminal device is authorized to provide Time synchronization service; receiving a response message from the unified data management network element, the response message indicating authorization to provide time synchronization service for the terminal device.
  • the transceiver unit 720 is also configured to receive the time request message from the terminal device or application function network element.
  • the communication device 800 shown in FIG. 8 includes a processor 810 and an interface circuit 820.
  • the processor 810 and the interface circuit 820 are coupled to each other.
  • the interface circuit 820 may be a transceiver or an input-output interface.
  • the communication device 800 may also include a memory 830 for storing instructions executed by the processor 810 or input data required for the processor 810 to run the instructions or data generated after the processor 810 executes the instructions.
  • the processor 810 is used to realize the function of the above processing unit 710
  • the interface circuit 820 is used to realize the function of the above transceiver unit 720.
  • processor in the embodiment of the present application can be a central processing unit (CPU), or other general-purpose processor, digital signal processor (DSP), or application-specific integrated circuit (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
  • CPU central processing unit
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor can be a microprocessor or any conventional processor.
  • the method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions.
  • Software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory In memory, register, hard disk, mobile hard disk, CD-ROM or any other form of storage medium well known in the art.
  • An exemplary storage medium is coupled to the processor such that the processor can read information from the storage medium and write information to the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and storage media may be located in an ASIC.
  • the processor and the storage medium may also exist as discrete components in the base station or terminal.
  • the computer program product includes one or more computer programs or instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, a base station, a UE, or other programmable devices.
  • the computer program or instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another.
  • the computer program or instructions may be transmitted from a website, computer, Server or data center Transmission to another website, computer, server or data center by wired or wireless means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media.
  • the available media may be magnetic media, such as floppy disks, hard disks, and tapes; optical media, such as digital video optical disks; or semiconductor media, such as solid-state hard drives.
  • the computer-readable storage medium may be volatile or nonvolatile storage media, or may include both volatile and nonvolatile types of storage media.

Landscapes

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

Abstract

Embodiments of the present application provide a time synchronization method, a communication apparatus, and a communication system. The method comprises: a terminal device receiving timing information from an access network device; when the terminal device does not receive new timing information from the access network device within a set duration, the terminal device performing time synchronization according to the current time of the terminal device, the receiving time of the timing information, and the timing information. According to the solution, when the access network device cannot send new timing information to the terminal device, or the access network device cannot send new timing information to the terminal device in time, the terminal device can realize accurate time synchronization between the terminal device and the access network device according to the timing information received from the access network device, and the communication capability of the terminal device can be improved.

Description

一种时间同步方法、通信装置及通信系统A time synchronization method, communication device and communication system
相关申请的交叉引用Cross-references to related applications
本申请要求在2022年05月31日提交中国专利局、申请号为202210613427.3、申请名称为“一种时间同步方法、通信装置及通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the China Patent Office on May 31, 2022, with application number 202210613427.3 and the application title "A time synchronization method, communication device and communication system", the entire content of which is incorporated by reference. in this application.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种时间同步方法、通信装置及通信系统。The present application relates to the field of communication technology, and in particular, to a time synchronization method, communication device and communication system.
背景技术Background technique
为保证终端设备与其它设备之间的正确通信,一般需要对终端设备进行时间同步。目前的同步方法是,终端设备接收接入网设备广播发送的系统信息块(system information block,SIB)消息,该SIB消息中携带接入网设备的对时信息,终端设备从SIB消息中获取对时信息,并根据对时信息执行与接入网设备之间的时间同步。In order to ensure correct communication between the terminal device and other devices, time synchronization of the terminal device is generally required. The current synchronization method is that the terminal device receives the system information block (SIB) message broadcasted by the access network device. The SIB message carries the time synchronization information of the access network device, and the terminal device obtains the synchronization information from the SIB message. time information, and perform time synchronization with the access network equipment based on the time information.
上述方案,终端设备较为依赖接入网设备的授时,当接入网设备上的时钟源故障,或者接入网设备的授时频率较低,将会导致终端设备无法或不能及时收到对时信息,进而导致终端设备无法与接入网设备之间保持精确的时间同步,降低了终端设备的通信能力。In the above scheme, the terminal equipment relies more on the timing of the access network equipment. When the clock source on the access network equipment fails, or the timing frequency of the access network equipment is low, the terminal equipment will be unable or unable to receive the time information in time. , which in turn causes the terminal device to be unable to maintain accurate time synchronization with the access network device, reducing the communication capability of the terminal device.
发明内容Contents of the invention
本申请实施例提供一种时间同步方法、通信装置及通信系统,用以实现终端设备与接入网设备之间的时间同步。Embodiments of the present application provide a time synchronization method, communication device and communication system to achieve time synchronization between terminal equipment and access network equipment.
第一方面,本申请实施例提供一种时间同步方法,该方法可以由终端设备或终端设备中的模块(如芯片)来执行。以终端设备执行该方法为例,该方法包括:终端设备接收来自接入网设备的对时信息;该终端设备根据该终端设备的当前时间、该对时信息的接收时间和该对时信息,进行时间同步。In the first aspect, embodiments of the present application provide a time synchronization method, which can be executed by a terminal device or a module (such as a chip) in the terminal device. Taking the terminal device executing this method as an example, the method includes: the terminal device receives the time synchronization information from the access network device; the terminal device according to the current time of the terminal device, the reception time of the time synchronization information and the time synchronization information, Perform time synchronization.
上述方案,终端设备可以根据之前从接入网设备收到的对时信息,实现终端设备与接入网设备之间的精确时间同步,终端设备不依赖于接入网设备及时提供对时信息,因此当接入网设备不能向终端设备发送新的对时信息,或者接入网设备不能及时地向终端设备发送新的对时信息,则终端设备也能够完成对时,有助于提升终端设备的通信能力。With the above solution, the terminal device can achieve precise time synchronization between the terminal device and the access network device based on the time synchronization information previously received from the access network device. The terminal device does not rely on the access network device to provide timely synchronization information. Therefore, when the access network device cannot send new time synchronization information to the terminal device, or the access network device cannot send new time synchronization information to the terminal device in time, the terminal device can also complete the time synchronization, which helps to improve the terminal device. communication capabilities.
一种可能的实现方法中,终端设备根据该终端设备的当前时间、该对时信息的接收时间和该对时信息,进行时间同步,包括:当满足预设条件,该终端设备根据该终端设备的当前时间、该对时信息的接收时间和该对时信息,进行时间同步;其中,该预设条件为:该终端设备未在设定时长内从该接入网设备收到新的对时信息;或者,该终端设备在设定时长内从该接入网设备收到第一指示信息和新的对时信息,该第一指示信息指示该新的对时信息不满足该终端设备的对时精度要求。In a possible implementation method, the terminal device performs time synchronization based on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information, including: when the preset conditions are met, the terminal device performs time synchronization according to the time synchronization information of the terminal device. The current time, the reception time of the time synchronization information and the time synchronization information are time synchronized; wherein, the preset condition is: the terminal device does not receive a new time synchronization from the access network device within the set time period. information; or, the terminal device receives the first indication information and the new time synchronization information from the access network device within a set period of time, and the first indication information indicates that the new time synchronization information does not meet the requirements of the terminal device. time accuracy requirements.
上述方案,当该终端设备未在设定时长内从该接入网设备收到新的对时信息;或者, 该终端设备在设定时长内从该接入网设备收到指示信息和新的对时信息,该指示信息指示该新的对时信息不满足该终端设备的对时精度要求,则终端设备可以根据之前从接入网设备收到的对时信息,实现终端设备与接入网设备之间的精确时间同步,有助于提升终端设备的通信能力。In the above solution, when the terminal device does not receive new time information from the access network device within the set time period; or, The terminal device receives indication information and new time synchronization information from the access network device within a set time period. If the indication information indicates that the new time synchronization information does not meet the time synchronization accuracy requirements of the terminal device, the terminal device can Based on the time synchronization information previously received from the access network equipment, precise time synchronization between the terminal equipment and the access network equipment is achieved, which helps to improve the communication capabilities of the terminal equipment.
一种可能的实现方法中,该终端设备接收来自接入网设备的对时信息之后,该终端设备存储该对时信息的接收时间和该对时信息。In a possible implementation method, after the terminal device receives the time synchronization information from the access network device, the terminal device stores the reception time of the time synchronization information and the time synchronization information.
上述方案,终端设备存储来自接入网设备的对时信息,从而后续当终端设备不能在谁当时长内从接入网设备接收新的对时信息时,终端设备能够获取存储的对时信息和该对时信息的接收时间,并根据该对时信息和该对时信息的接收时间进行时间同步,有助于实现终端设备与接入网设备之间的精确时间同步,进而有助于提升终端设备的通信能力。In the above scheme, the terminal device stores the time synchronization information from the access network device, so that when the terminal device cannot receive new time synchronization information from the access network device within a certain time period, the terminal device can obtain the stored time synchronization information and The reception time of the time synchronization information, and time synchronization based on the time synchronization information and the reception time of the time synchronization information, helps to achieve precise time synchronization between the terminal equipment and the access network equipment, thereby helping to improve the terminal The communication capabilities of the device.
一种可能的实现方法中,该终端设备根据该终端设备的当前时间、该对时信息的接收时间和该对时信息,进行时间同步,包括:该终端设备确定该终端设备的当前时间与该对时信息的接收时间之间的差值;该终端设备根据该差值和该对时信息,确定同步时间;该终端设备根据该同步时间,进行时间同步。In a possible implementation method, the terminal device performs time synchronization based on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information, including: the terminal device determines that the current time of the terminal device is consistent with the time synchronization information. The difference between the reception times of the time synchronization information; the terminal device determines the synchronization time based on the difference and the time synchronization information; the terminal device performs time synchronization based on the synchronization time.
一种可能的实现方法中,该对时信息包括时钟频率比值和时钟偏差,该时钟频率比值表示该终端设备与该接入网设备之间的时钟频率比值,该时钟偏差表示该终端设备与该接入网设备之间的时钟偏差;该终端设备根据该差值和该对时信息,确定同步时间,包括:该终端设备确定该差值与该时钟频率比值的比值;该终端设备根据该比值、该时钟偏差和该对时信息的接收时间,确定该同步时间。In a possible implementation method, the time synchronization information includes a clock frequency ratio and a clock deviation. The clock frequency ratio represents a clock frequency ratio between the terminal device and the access network device. The clock deviation represents a clock frequency ratio between the terminal device and the access network device. Clock deviation between access network devices; the terminal device determines the synchronization time based on the difference and the time synchronization information, including: the terminal device determines the ratio of the difference to the clock frequency ratio; the terminal device determines the synchronization time based on the ratio , the clock deviation and the reception time of the time synchronization information, determine the synchronization time.
上述方案,终端设备结合时钟频率比值、时钟偏差进行时间同步,有助于实现精确地时间同步。In the above solution, the terminal device performs time synchronization based on the clock frequency ratio and clock deviation, which helps to achieve accurate time synchronization.
一种可能的实现方法中,该对时信息包括时钟频率比值、传输时延和该对时信息的发送时间,该时钟频率比值表示该终端设备与该接入网设备之间的时钟频率比值,该传输时延表示该终端设备与该接入网设备之间的传输时延;该终端设备根据该差值和该对时信息,确定同步时间,包括:该终端设备确定该差值与该时钟频率比值的比值;该终端设备根据该比值、该传输时延和该对时信息的发送时间,确定该同步时间。In a possible implementation method, the time synchronization information includes a clock frequency ratio, a transmission delay and a sending time of the time synchronization information. The clock frequency ratio represents a clock frequency ratio between the terminal device and the access network device, The transmission delay represents the transmission delay between the terminal device and the access network device; the terminal device determines the synchronization time based on the difference and the time synchronization information, including: the terminal device determines the difference and the clock The ratio of the frequency ratio; the terminal device determines the synchronization time based on the ratio, the transmission delay and the sending time of the time synchronization information.
上述方案,终端设备结合时钟频率比值、传输时延进行时间同步,有助于实现精确地时间同步。In the above solution, the terminal equipment performs time synchronization based on the clock frequency ratio and transmission delay, which helps to achieve accurate time synchronization.
一种可能的实现方法中,该对时信息包括时钟偏差变化率、时钟频率比值和时钟偏差,该时钟偏差变化率表示时钟偏差随时间的变化量,该时钟频率比值表示该终端设备与该接入网设备之间的时钟频率比值,该时钟偏差表示该终端设备与该接入网设备之间的时钟偏差;该终端设备根据该差值和该对时信息,确定同步时间,包括:该终端设备确定该时钟偏差变化率与该差值的乘积,并确定该乘积与该时钟频率比值的比值;该终端设备根据该比值、该时钟偏差和该终端设备的当前时间,确定该同步时间。In a possible implementation method, the time synchronization information includes a clock deviation change rate, a clock frequency ratio, and a clock deviation. The clock deviation change rate represents the change of the clock deviation over time, and the clock frequency ratio represents the clock frequency ratio between the terminal device and the interface. The clock frequency ratio between network access devices, the clock deviation represents the clock deviation between the terminal device and the access network device; the terminal device determines the synchronization time based on the difference and the time synchronization information, including: the terminal The device determines the product of the clock deviation change rate and the difference, and determines the ratio of the product to the clock frequency ratio; the terminal device determines the synchronization time based on the ratio, the clock deviation, and the current time of the terminal device.
上述方案,终端设备结合时钟频率比值、时钟偏差和时钟偏差变化率进行时间同步,有助于实现精确地时间同步。In the above solution, the terminal device performs time synchronization based on the clock frequency ratio, clock deviation and clock deviation change rate, which helps to achieve accurate time synchronization.
一种可能的实现方法中,该终端设备接收来自该接入网设备的该设定时长。In a possible implementation method, the terminal device receives the set duration from the access network device.
一种可能的实现方法中,该设定时长是预设置的。In a possible implementation method, the set time period is preset.
一种可能的实现方法中,该终端设备发送对时请求消息,该对时请求消息包括该终端设备的标识信息和第二指示信息,该第二指示信息指示为该终端设备提供对时服务。 In a possible implementation method, the terminal device sends a time synchronization request message, the time synchronization request message includes identification information of the terminal device and second indication information, and the second indication information indicates that the time synchronization service is provided for the terminal device.
一种可能的实现方法中,该终端设备接收用于指示开启对时功能的信息。In a possible implementation method, the terminal device receives information indicating turning on the time synchronization function.
上述方案,终端设备根据用于指示开启对时功能的信息开启对时功能,从而后续当终端设备未在设定时长内从接入网设备收到新的对时信息,则终端设备根据终端设备的当前时间、对时信息的接收时间和对时信息,进行时间同步。该方案有助于终端设备按照正确方法进行时间同步。In the above scheme, the terminal device turns on the time synchronization function according to the information used to indicate turning on the time synchronization function. Therefore, when the terminal device does not receive new time synchronization information from the access network device within a set period of time, the terminal device will turn on the time synchronization function according to the terminal device. The current time, the reception time of the time synchronization information and the time synchronization information are synchronized. This solution helps terminal devices synchronize time in the correct way.
一种可能的实现方法中,该对时信息包括传输时延和该对时信息的发送时间,该传输时延表示该终端设备与该接入网设备之间的传输时延;该终端设备根据该终端设备的当前时间、该对时信息的接收时间和该对时信息,进行时间同步之前,该终端设备根据该传输时延和该对时信息的发送时间,进行时间同步。In a possible implementation method, the time synchronization information includes a transmission delay and a sending time of the time synchronization information. The transmission delay represents the transmission delay between the terminal device and the access network device; the terminal device is based on Before performing time synchronization on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information, the terminal device performs time synchronization based on the transmission delay and the sending time of the time synchronization information.
第二方面,本申请实施例提供一种时间同步方法,该方法可以由接入网设备或接入网设备中的模块(如芯片)来执行。以接入网设备执行该方法为例,该方法包括:接入网设备确定对时信息,该对时信息包括时钟频率比值,该时钟频率比值表示该终端设备与该接入网设备之间的时钟频率比值;该接入网设备向终端设备发送该对时信息,该对时信息用于该终端设备进行本地时间同步。In the second aspect, embodiments of the present application provide a time synchronization method, which can be executed by an access network device or a module (such as a chip) in the access network device. Taking the access network device executing this method as an example, the method includes: the access network device determines time synchronization information, the time synchronization information includes a clock frequency ratio, and the clock frequency ratio represents the clock frequency ratio between the terminal device and the access network device. Clock frequency ratio; the access network device sends the time synchronization information to the terminal device, and the time synchronization information is used for local time synchronization of the terminal device.
上述方案,接入网设备向终端设备发送对时信息,从而后续当接入网设备不能向终端设备发送新的对时信息,或者接入网设备不能及时地向终端设备发送新的对时信息,则终端设备可以根据之前从接入网设备收到的对时信息,实现终端设备与接入网设备之间的精确时间同步,有助于提升终端设备的通信能力。In the above solution, the access network device sends time synchronization information to the terminal device, so that later the access network device cannot send new time synchronization information to the terminal device, or the access network device cannot send new time synchronization information to the terminal device in a timely manner. , then the terminal device can achieve precise time synchronization between the terminal device and the access network device based on the time synchronization information previously received from the access network device, which helps to improve the communication capabilities of the terminal device.
一种可能的实现方法中,该对时信息还包括时钟偏差,该时钟偏差表示该终端设备与该接入网设备之间的时钟偏差。In a possible implementation method, the time synchronization information also includes a clock deviation, where the clock deviation represents a clock deviation between the terminal device and the access network device.
一种可能的实现方法中,该对时信息还包括传输时延和该对时信息的发送时间,该传输时延表示该终端设备与该接入网设备之间的传输时延。In a possible implementation method, the time synchronization information also includes a transmission delay and a sending time of the time synchronization information. The transmission delay represents a transmission delay between the terminal device and the access network device.
一种可能的实现方法中,该对时信息还包括时钟偏差变化率和时钟偏差,该时钟偏差变化率表示时钟偏差随时间的变化量,该时钟偏差表示该终端设备与该接入网设备之间的时钟偏差。In a possible implementation method, the time synchronization information also includes a clock deviation change rate and a clock deviation. The clock deviation change rate represents the change of the clock deviation over time. The clock deviation represents the difference between the terminal device and the access network device. clock skew between.
一种可能的实现方法中,该接入网设备确定在第一时间的第一时钟偏差,以及确定在第二时间的第二时钟偏差;该接入网设备根据该第二时钟偏差与该第一时钟偏差的第一差值,以及该第二时间与该第一时间的第二差值,确定该时钟偏差变化率。In a possible implementation method, the access network device determines the first clock deviation at the first time and determines the second clock deviation at the second time; the access network device determines the second clock deviation according to the second clock deviation and the third clock deviation. A first difference in clock bias and a second difference between the second time and the first time determine the clock bias change rate.
一种可能的实现方法中,该接入网设备确定对时信息之前,该接入网设备接收指示信息,该指示信息指示为该终端设备提供对时服务。In a possible implementation method, before the access network device determines the time synchronization information, the access network device receives indication information indicating that the time synchronization service is provided for the terminal device.
第三方面,本申请实施例提供一种时间同步方法,该方法可以由时钟管理网元或时钟管理网元中的模块(如芯片)来执行。以时钟管理网元执行该方法为例,该方法包括:时钟管理网元接收对时请求消息,该对时请求消息包括终端设备的标识信息和指示信息,该指示信息指示为该终端设备提供对时服务;该时钟管理网元选择为该终端设备提供对时服务的接入网设备;该时钟管理网元向策略控制网元发送通知消息,该通知消息包括该终端设备的标识信息、该接入网设备的标识信息和该指示信息。In the third aspect, embodiments of the present application provide a time synchronization method, which can be executed by a clock management network element or a module (such as a chip) in the clock management network element. Taking the clock management network element to execute this method as an example, the method includes: the clock management network element receives a time synchronization request message. The time synchronization request message includes identification information and indication information of the terminal device. The indication information indicates that the time synchronization request message is provided for the terminal device. time service; the clock management network element selects the access network device that provides time service for the terminal device; the clock management network element sends a notification message to the policy control network element, the notification message includes the identification information of the terminal device, the access network device The identification information of the network access device and the instruction information.
上述方案,时钟管理网元收到对时请求消息后,选择为终端设备提供对时服务的接入网设备,并指示该接入网设备为终端设备提供对时服务,能够实现终端设备与接入网设备之间的精确时间同步,有助于提升终端设备的通信能力。In the above solution, after receiving the time synchronization request message, the clock management network element selects the access network device that provides time synchronization services for the terminal device, and instructs the access network device to provide time synchronization services for the terminal device, which can realize the communication between the terminal device and the access network device. Precise time synchronization between networked devices helps improve the communication capabilities of terminal devices.
一种可能的实现方法中,该时钟管理网元向统一数据库网元发送查询消息,该查询消 息包括该终端设备的标识信息,该查询消息请求获取为该终端设备提供服务的策略控制网元;该时钟管理网元接收来自该统一数据库网元的该策略控制网元的标识信息。In a possible implementation method, the clock management network element sends a query message to the unified database network element, and the query message The information includes the identification information of the terminal device, and the query message requests to obtain the policy control network element that provides services for the terminal device; the clock management network element receives the identification information of the policy control network element from the unified database network element.
一种可能的实现方法中,该时钟管理网元向统一数据管理网元发送请求消息,该请求消息包括该终端设备的标识信息,该请求消息用于请求查询是否授权为该终端设备提供对时服务;该时钟管理网元接收来自该统一数据管理网元的响应消息,该响应消息指示授权为该终端设备提供对时服务。In a possible implementation method, the clock management network element sends a request message to the unified data management network element. The request message includes the identification information of the terminal device. The request message is used to request to query whether the terminal device is authorized to provide time synchronization. service; the clock management network element receives a response message from the unified data management network element, and the response message indicates that the terminal device is authorized to provide time synchronization services.
上述方案,时钟管理网元确定终端设备被授权获取对时服务,则指示接入网设备为该终端设备提供对时服务,有助于避免为未被授权的终端设备提供对时服务。In the above solution, if the clock management network element determines that the terminal device is authorized to obtain time synchronization services, it instructs the access network device to provide time synchronization services for the terminal device, which helps avoid providing time synchronization services to unauthorized terminal devices.
一种可能的实现方法中,该时钟管理网元接收来自该终端设备或应用功能网元的该对时请求消息。In a possible implementation method, the clock management network element receives the time adjustment request message from the terminal device or application function network element.
第四方面,本申请实施例提供一种通信装置,该装置可以是终端设备或终端设备中的模块(如芯片)。该装置具有实现上述第一方面的任意实现方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect, embodiments of the present application provide a communication device, which may be a terminal device or a module (such as a chip) in the terminal device. The device has the function of implementing any implementation method of the above-mentioned first aspect. This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第五方面,本申请实施例提供一种通信装置,该装置可以是接入网设备或接入网设备中的模块(如芯片)。该装置具有实现上述第二方面的任意实现方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fifth aspect, embodiments of the present application provide a communication device, which may be an access network device or a module (such as a chip) in the access network device. The device has the function of implementing any implementation method of the above second aspect. This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第六方面,本申请实施例提供一种通信装置,该装置可以是时钟管理网元或时钟管理网元中的模块(如芯片)。该装置具有实现上述第三方面的任意实现方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a sixth aspect, embodiments of the present application provide a communication device, which may be a clock management network element or a module (such as a chip) in the clock management network element. The device has the function of implementing any implementation method of the above third aspect. This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第七方面,本申请实施例提供一种通信装置,包括处理器和存储器;该存储器用于存储计算机指令,当该装置运行时,该处理器执行该存储器存储的计算机指令,以使该装置执行上述第一方面至第三方面中的任意实现方法。In a seventh aspect, embodiments of the present application provide a communication device, including a processor and a memory; the memory is used to store computer instructions, and when the device is running, the processor executes the computer instructions stored in the memory to cause the device to execute Any implementation method in the above first to third aspects.
第八方面,本申请实施例提供一种通信装置,包括用于执行上述第一方面至第三方面中的任意实现方法的各个步骤的单元或手段(means)。In an eighth aspect, embodiments of the present application provide a communication device, including units or means (means) for executing each step of any implementation method in the above-mentioned first to third aspects.
第九方面,本申请实施例提供一种通信装置,包括与存储器耦合的处理器,该处理器用于调用所述存储器中存储的程序,以执行上述第一方面至第三方面中的任意实现方法。该存储器可以位于该装置之内,也可以位于该装置之外。且该处理器可以是一个或多个。In a ninth aspect, embodiments of the present application provide a communication device, including a processor coupled to a memory. The processor is configured to call a program stored in the memory to execute any implementation method in the above first to third aspects. . The memory may be located within the device or external to the device. And the processor can be one or more.
第十方面,本申请实施例提供一种通信装置,包括处理器和接口电路,所述处理器用于通过接口电路与其它装置通信,并执行上述第一方面至第三方面中的任意实现方法。该处理器包括一个或多个。In a tenth aspect, embodiments of the present application provide a communication device, including a processor and an interface circuit. The processor is configured to communicate with other devices through the interface circuit and execute any implementation method in the above-mentioned first to third aspects. The processor includes one or more.
第十一方面,本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序或指令,当计算机程序或指令被通信装置运行时,使得上述第一方面至第三方面中的任意实现方法被执行。In an eleventh aspect, embodiments of the present application further provide a computer program product. The computer program product includes a computer program or instructions. When the computer program or instructions are run by a communication device, any one of the above-mentioned first to third aspects is enabled. The implementation method is executed.
第十二方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在通信装置上运行时,使得上述第一方面至第三方面中的任意实现方法被执行。In a twelfth aspect, embodiments of the present application further provide a computer-readable storage medium, in which instructions are stored, and when run on a communication device, the instructions in the first to third aspects are implemented. Any implementation method of is executed.
第十三方面,本申请实施例还提供一种芯片系统,包括:处理器,用于执行上述第一 方面至第三方面中的任意实现方法。In a thirteenth aspect, embodiments of the present application further provide a chip system, including: a processor, configured to execute the above first Any implementation method from aspect to third aspect.
第十四方面,本申请实施例还提供一种通信系统,包括用于执行上述第一方面任意方法的终端设备,和用于执行上述第二方面任意方法的接入网设备。In a fourteenth aspect, embodiments of the present application further provide a communication system, including a terminal device for performing any of the methods of the first aspect, and an access network device for performing any of the methods of the second aspect.
附图说明Description of the drawings
图1(a)为基于服务化架构的5G网络架构示意图;Figure 1(a) is a schematic diagram of the 5G network architecture based on service-based architecture;
图1(b)为基于点对点接口的5G网络架构示意图;Figure 1(b) is a schematic diagram of the 5G network architecture based on point-to-point interface;
图2为本申请实施例提供的一种时间同步方法的流程图;Figure 2 is a flow chart of a time synchronization method provided by an embodiment of the present application;
图3(a)为本申请实施例提供的一种时间同步的示例图;Figure 3(a) is an example diagram of time synchronization provided by the embodiment of the present application;
图3(b)为本申请实施例提供的一种时间同步的又一示例图;Figure 3(b) is another example diagram of time synchronization provided by the embodiment of the present application;
图3(c)为本申请实施例提供的一种时间同步的又一示例图;Figure 3(c) is another example diagram of time synchronization provided by the embodiment of the present application;
图4为本申请实施例提供的一种时间同步方法的流程图;Figure 4 is a flow chart of a time synchronization method provided by an embodiment of the present application;
图5为本申请实施例提供的一种时间同步方法的流程图;Figure 5 is a flow chart of a time synchronization method provided by an embodiment of the present application;
图6为本申请实施例提供的一种时间同步方法的流程图;Figure 6 is a flow chart of a time synchronization method provided by an embodiment of the present application;
图7为本申请实施例提供的一种通信装置示意图;Figure 7 is a schematic diagram of a communication device provided by an embodiment of the present application;
图8为本申请实施例提供的一种通信装置示意图。Figure 8 is a schematic diagram of a communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
图1(a)为基于服务化架构的5G网络架构示意图。图1(a)所示的5G网络架构中包括数据网络(data network,DN)和运营商网络。下面对其中的部分网元的功能进行简单介绍。Figure 1(a) is a schematic diagram of the 5G network architecture based on service-based architecture. The 5G network architecture shown in Figure 1(a) includes a data network (DN) and an operator network. The following is a brief introduction to the functions of some of the network elements.
运营商网络包括以下网元中的一个或多个:鉴权服务器功能(Authentication Server Function,AUSF)网元(图中未示出)、统一数据管理(unified data management,UDM)网元、统一数据库(Unified Data Repository,UDR)网元、网络存储功能(Network Repository Function,NRF)网元(图中未示出)、网络开放功能(network exposure function,NEF)网元(图中未示出)、应用功能(application function,AF)网元、策略控制功能(policy control function,PCF)网元、接入与移动性管理功能(access and mobility management function,AMF)网元、会话管理功能(session management function,SMF)网元、UPF网元、接入网(access network,AN)设备(图中以无线接入网(radio access network,RAN)设备作为示例)、时间敏感通信和时间同步功能(Time Sensitive Communication and Time Synchronization Function,TSCTSF)网元等。上述运营商网络中,除接入网设备之外的网元或设备可以称为核心网网元或核心网设备。The operator's network includes one or more of the following network elements: Authentication Server Function (AUSF) network element (not shown in the figure), unified data management (UDM) network element, unified database (Unified Data Repository, UDR) network element, Network Repository Function (NRF) network element (not shown in the figure), Network Exposure Function (NEF) network element (not shown in the figure), Application function (AF) network element, policy control function (PCF) network element, access and mobility management function (AMF) network element, session management function , SMF) network element, UPF network element, access network (AN) equipment (radio access network (RAN) equipment is used as an example in the figure), time-sensitive communication and time synchronization functions (Time Sensitive Communication and Time Synchronization Function, TSCTSF) network elements, etc. In the above operator network, network elements or equipment other than access network equipment can be called core network elements or core network equipment.
接入网设备包括有线接入网设备和无线接入网设备。其中,无线接入网设备可以是基站(base station)、演进型基站(evolved NodeB,eNodeB)、发送接收点(transmission reception point,TRP)、5G移动通信系统中的下一代基站(next generation NodeB,gNB)、第六代(6th generation,6G)移动通信系统中的下一代基站、未来移动通信系统中的基站或无线保真(wireless fidelity,WiFi)系统中的接入节点等;也可以是完成基站部分功能的模块或单元,例如,可以是集中式单元(central unit,CU),也可以是分布式单元(distributed unit,DU)。无线接入网设备可以是宏基站,也可以是微基站或室内站,还可以是中继节点或施主节点等。本申请的实施例对接入网设备所采用的具体技术和具体设备形态不做限定。 Access network equipment includes wired access network equipment and wireless access network equipment. The wireless access network equipment may be a base station (base station), an evolved base station (evolved NodeB, eNodeB), a transmission reception point (TRP), or a next generation base station (next generation NodeB, in the 5G mobile communication system). gNB), the next generation base station in the 6th generation (6G) mobile communication system, the base station in the future mobile communication system or the access node in the wireless fidelity (wireless fidelity, WiFi) system, etc.; it can also be completed The modules or units of some functions of the base station, for example, can be a centralized unit (CU) or a distributed unit (DU). The wireless access network equipment can be a macro base station, a micro base station or an indoor station, or a relay node or a donor node, etc. The embodiments of this application do not limit the specific technology and specific equipment form used by the access network equipment.
与RAN通信的终端设备包括终端、用户设备(user equipment,UE)、移动台、移动终端等。图中以终端设备为UE作为示例。终端设备可以广泛应用于各种场景,例如,设备到设备(device-to-device,D2D)、车物(vehicle to everything,V2X)通信、机器类通信(machine-type communication,MTC)、物联网(internet of things,IoT)、虚拟现实、增强现实、工业控制、自动驾驶、远程医疗、智能电网、智能家具、智能办公、智能穿戴、智能交通、智慧城市等。终端可以是手机、平板电脑、带无线收发功能的电脑、可穿戴设备、车辆、无人机、直升机、飞机、轮船、机器人、机械臂、智能家居设备等。本申请的实施例对终端设备所采用的具体技术和具体设备形态不做限定。Terminal equipment that communicates with RAN includes terminals, user equipment (UE), mobile stations, mobile terminals, etc. In the figure, the terminal device is a UE as an example. Terminal devices can be widely used in various scenarios, such as device-to-device (D2D), vehicle to everything (V2X) communication, machine-type communication (MTC), and the Internet of Things (Internet of things, IoT), virtual reality, augmented reality, industrial control, autonomous driving, telemedicine, smart grid, smart furniture, smart office, smart wear, smart transportation, smart city, etc. Terminals can be mobile phones, tablets, computers with wireless transceiver functions, wearable devices, vehicles, drones, helicopters, airplanes, ships, robots, robotic arms, smart home devices, etc. The embodiments of this application do not limit the specific technology and specific equipment form used by the terminal equipment.
接入网设备和终端设备可以是固定位置的,也可以是可移动的。接入网设备和终端设备可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上;还可以部署在空中的飞机、气球和人造卫星上。本申请的实施例对接入网设备和终端设备的应用场景不做限定。Access network equipment and terminal equipment can be fixed-position or removable. Access network equipment and terminal equipment can be deployed on land, indoors or outdoors, handheld or vehicle-mounted; they can also be deployed on water; they can also be deployed on aircraft, balloons and satellites in the sky. The embodiments of this application do not limit the application scenarios of access network equipment and terminal equipment.
移动性管理网元是由运营商网络提供的控制面网元,负责终端设备接入运营商网络的接入控制和移动性管理,例如包括移动状态管理,分配用户临时身份标识,认证和授权用户等功能。在5G中,移动性管理网元可以是AMF网元,在未来通信如第六代(the 6th generation,6G)中,移动性管理网元仍可以是AMF网元,或有其它的名称,本申请不做限定。The mobility management network element is a control plane network element provided by the operator's network. It is responsible for access control and mobility management of terminal devices accessing the operator's network. For example, it includes mobility status management, assigning user temporary identities, authenticating and authorizing users. and other functions. In 5G, the mobility management network element can be an AMF network element. In future communications such as the 6th generation (6G), the mobility management network element can still be an AMF network element, or have other names. There are no restrictions on application.
会话管理网元是由运营商网络提供的控制面网元,负责管理终端设备的协议数据单元(protocol data unit,PDU)会话。PDU会话是一个用于传输PDU的通道,终端设备需要通过PDU会话与DN互相传送PDU。PDU会话由SMF网元负责建立、维护和删除等。会话管理网元包括会话管理(如会话建立、修改和释放,包含用户面网元和接入网设备之间的隧道维护)、用户面网元的选择和控制、业务和会话连续性(Service and Session Continuity,SSC)模式选择、漫游等会话相关的功能。在5G中,会话管理网元可以是SMF网元,在未来通信如6G中,会话管理网元仍可以是SMF网元,或有其它的名称,本申请不做限定。The session management network element is a control plane network element provided by the operator network and is responsible for managing the protocol data unit (PDU) session of the terminal device. A PDU session is a channel used to transmit PDUs. Terminal devices need to transmit PDUs to each other through the PDU session and the DN. The SMF network element is responsible for establishing, maintaining and deleting PDU sessions. Session management network elements include session management (such as session establishment, modification and release, including tunnel maintenance between user plane network elements and access network equipment), selection and control of user plane network elements, service and session continuity (Service and Session Continuity (SSC) mode selection, roaming and other session-related functions. In 5G, the session management network element can be an SMF network element. In future communications such as 6G, the session management network element can still be an SMF network element, or have other names. This application does not limit it.
用户面网元是由运营商提供的网关,是运营商网络与DN通信的网关。UPF网元包括数据包路由和传输、包检测、业务用量上报、服务质量(Quality of Service,QoS)处理、合法监听、上行包检测、下行数据包存储等用户面相关的功能。在5G中,用户面网元可以是UPF网元,在未来通信如6G中,用户面网元仍可以是UPF网元,或有其它的名称,本申请不做限定。The user plane network element is a gateway provided by the operator, and is the gateway for communication between the operator's network and the DN. UPF network elements include user plane-related functions such as data packet routing and transmission, packet detection, business usage reporting, Quality of Service (QoS) processing, legal interception, uplink packet detection, and downlink data packet storage. In 5G, the user plane network element can be a UPF network element. In future communications such as 6G, the user plane network element can still be a UPF network element, or have other names. This application does not limit it.
数据管理网元是由运营商提供的控制面网元,负责存储运营商网络中签约用户的用户永久标识符(subscriber permanent identifier,SUPI)、信任状(credential)、安全上下文(security context)、签约数据等信息。数据管理网元所存储的这些信息可用于终端设备接入运营商网络的认证和授权。其中,上述运营商网络的签约用户具体可为使用运营商网络提供的业务的用户,例如使用中国电信的手机芯卡的用户,或者使用中国移动的手机芯卡的用户等。上述签约用户的永久签约标识(Subscription Permanent Identifier,SUPI)可为该手机芯卡的号码等。上述签约用户的信任状、安全上下文可为该手机芯卡的加密密钥或者跟该手机芯卡加密相关的信息等存储的小文件,用于认证和/或授权。上述安全上下文可为存储在用户本地终端(例如手机)上的数据(cookie)或者令牌(token)等。上述签约用户的签约数据可为该手机芯卡的配套业务,例如该手机芯卡的流量套餐或者使用网络等。需要说明的是,永久标识符、信任状、安全上下文、认证数据(cookie)、以及令牌等同认证、授权 相关的信息,在本申请文件中,为了描述方便起见不做区分、限制。如果不做特殊说明,本申请实施例将以用安全上下文为例进行来描述,但本申请实施例同样适用于其他表述方式的认证、和/或授权信息。在5G中,数据管理网元可以是UDM网元,在未来通信如6G中,数据管理网元仍可以是UDM网元,或有其它的名称,本申请不做限定。The data management network element is a control plane network element provided by the operator. It is responsible for storing the subscriber permanent identifier (SUPI), credential, security context, and subscription of subscribed users in the operator's network. Data and other information. This information stored in the data management network element can be used for authentication and authorization of terminal devices accessing the operator's network. Among them, the contract users of the above-mentioned operator network can specifically be users who use services provided by the operator network, such as users who use China Telecom's mobile phone chip cards, or users who use China Mobile's mobile phone chip cards, etc. The permanent subscription identifier (Subscription Permanent Identifier, SUPI) of the above-mentioned subscriber can be the number of the mobile phone chip card, etc. The trust certificate and security context of the above-mentioned contract user can be a small file stored in the encryption key of the mobile phone chip card or information related to the encryption of the mobile phone chip card, for authentication and/or authorization. The above security context may be data (cookie) or token stored on the user's local terminal (such as a mobile phone). The contract data of the above-mentioned contract users can be the supporting services of the mobile phone chip card, such as the traffic package or network usage of the mobile phone chip card. It should be noted that permanent identifiers, credentials, security context, authentication data (cookies), and tokens are equivalent to authentication and authorization. The relevant information is not distinguished or restricted in this application document for the convenience of description. Unless otherwise specified, the embodiments of this application will be described using security context as an example, but the embodiments of this application are also applicable to authentication and/or authorization information expressed in other ways. In 5G, the data management network element can be a UDM network element. In future communications such as 6G, the data management network element can still be a UDM network element, or have other names. This application does not limit it.
统一数据库网元是由运营商提供的控制面网元,包含执行签约数据、策略数据、应用数据等类型数据的存取功能。在5G中,统一数据库网元可以是UDR网元,在未来通信如6G中,统一数据库网元仍可以是UDR网元,或有其它的名称,本申请不做限定。The unified database network element is a control plane network element provided by the operator, and includes access functions for executing contract data, policy data, application data and other types of data. In 5G, the unified database network element can be a UDR network element. In future communications such as 6G, the unified database network element can still be a UDR network element, or have other names. This application does not limit it.
网络开放网元是由运营商提供控制面网元。网络开放网元以安全的方式对第三方开放运营商网络的对外接口。在会话管理网元需要与第三方的网元通信时,网络开放网元可作为会话管理网元与第三方的网元通信的中继。网络开放网元作为中继时,可作为签约用户的标识信息的翻译,以及第三方的网元的标识信息的翻译。比如,网络开放网元将签约用户的SUPI从运营商网络发送到第三方时,可以将SUPI翻译成其对应的外部身份标识。反之,网络开放网元将外部ID(第三方的网元ID)发送到运营商网络时,可将其翻译成SUPI。在5G中,网络开放网元可以是NEF网元,在未来通信如6G中,网络开放网元仍可以是NEF网元,或有其它的名称,本申请不做限定。Network open network elements are control plane network elements provided by operators. The network opening network element opens the external interface of the operator's network to third parties in a secure manner. When the session management network element needs to communicate with a third-party network element, the network open network element can serve as a relay for the communication between the session management network element and the third-party network element. When the network open network element serves as a relay, it can be used to translate the identification information of the subscriber and the identification information of the third-party network element. For example, when the network opening network element sends the SUPI of the subscriber from the operator network to a third party, it can translate the SUPI into its corresponding external identity. On the contrary, when the network opening network element sends the external ID (the third-party network element ID) to the operator network, it can be translated into SUPI. In 5G, network open network elements can be NEF network elements. In future communications such as 6G, network open network elements can still be NEF network elements, or have other names. This application does not limit it.
应用功能网元用于传递应用侧对网络侧的需求,例如,QoS需求或用户状态事件订阅等。应用功能网元可以是第三方功能实体,也可以是运营商部署的应用服务器。在5G中,应用功能网元可以是AF网元,在未来通信如6G中,应用功能网元仍可以是AF网元,或有其它的名称,本申请不做限定。The application function network element is used to transmit the requirements of the application side to the network side, such as QoS requirements or user status event subscriptions. The application function network element can be a third-party functional entity or an application server deployed by the operator. In 5G, the application function network element can be an AF network element. In future communications such as 6G, the application function network element can still be an AF network element, or have other names. This application does not limit it.
策略控制网元是由运营商提供的控制面功能,用于向会话管理网元提供PDU会话的策略。策略可以包括计费相关策略、QoS相关策略和授权相关策略等。在5G中,策略控制网元可以是PCF网元,在未来通信如6G中,策略控制网元仍可以是PCF网元,或有其它的名称,本申请不做限定。The policy control network element is a control plane function provided by the operator and is used to provide PDU session policies to the session management network element. Policies may include accounting-related policies, QoS-related policies, authorization-related policies, etc. In 5G, the policy control network element can be a PCF network element. In future communications such as 6G, the policy control network element can still be a PCF network element, or have other names. This application does not limit it.
网络存储功能网元可用于提供网元发现功能,基于其他网元的请求,提供网元类型对应的网元信息。网络存储功能网元还提供网元管理服务,如网元注册、更新、去注册以及网元状态订阅和推送等。在5G中,网络存储功能网元可以是NRF网元,在未来通信如6G中,网络存储功能网元仍可以是NRF网元,或有其它的名称,本申请不做限定。Network storage function network elements can be used to provide network element discovery functions and provide network element information corresponding to network element types based on requests from other network elements. The network storage function network element also provides network element management services, such as network element registration, update, de-registration, network element status subscription and push, etc. In 5G, the network storage function network element can be an NRF network element. In future communications such as 6G, the network storage function network element can still be an NRF network element, or have other names. This application does not limit it.
时钟管理网元可用于管理5G网络的一个或多个时钟源的时钟信息,可以通过自己的端口对外提供时钟源的时钟信息,比如直接或间接向终端设备、接入网设备、核心网设备或第三方应用功能网元提供时钟信息。其中,时钟信息表示时钟的时间、时刻或时间点;时钟管理网元还可以根据授时请求方的授时请求,选择相应的授时网元,该授时网元比如可以是UPF网元、接入网设备等,也可以是该时钟管理网元本身,然后时钟管理网元指示授时网元为授时请求方提供授时服务。在5G中,时钟管理网元可以是3GPP定义的TSCTSF网元,在未来通信如6G中,时钟管理网元仍可以是TSCTSF网元,或有其它的名称,本申请不做限定。The clock management network element can be used to manage the clock information of one or more clock sources in the 5G network. It can provide the clock information of the clock source externally through its own port, such as directly or indirectly to terminal equipment, access network equipment, core network equipment or Third-party application function network elements provide clock information. Among them, the clock information represents the time, moment or time point of the clock; the clock management network element can also select the corresponding timing network element according to the timing request of the timing requester. The timing network element can be, for example, a UPF network element or an access network device. etc., or it can be the clock management network element itself, and then the clock management network element instructs the timing network element to provide timing services to the timing requester. In 5G, the clock management network element can be a TSCTSF network element defined by 3GPP. In future communications such as 6G, the clock management network element can still be a TSCTSF network element, or have other names. This application does not limit it.
DN,是位于运营商网络之外的网络,运营商网络可以接入多个DN,DN上可部署多种业务,可为终端设备提供数据和/或语音等服务。例如,DN是某智能工厂的私有网络,智能工厂安装在车间的传感器可为终端设备,DN中部署了传感器的控制服务器,控制服务器可为传感器提供服务。传感器可与控制服务器通信,获取控制服务器的指令,根据指令将采集的传感器数据传送给控制服务器等。又例如,DN是某公司的内部办公网络,该 公司员工的手机或者电脑可为终端设备,员工的手机或者电脑可以访问公司内部办公网络上的信息、数据资源等。DN is a network located outside the operator's network. The operator's network can access multiple DNs. A variety of services can be deployed on the DN, which can provide data and/or voice services to terminal devices. For example, DN is a private network of a smart factory. The sensors installed in the workshop of the smart factory can be terminal devices. The control server of the sensor is deployed in the DN, and the control server can provide services for the sensor. The sensor can communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions. For another example, DN is the internal office network of a company. The mobile phones or computers of company employees can be used as terminal devices, and the employees' mobile phones or computers can access information and data resources on the company's internal office network.
图1(a)中Npcf、Nudr、Nudm、Naf、Namf、Nsmf、Ntsctsf分别为上述PCF网元、UDR网元、UDM网元、AF网元、AMF网元、SMF网元、TSCTSF网元提供的服务化接口,用于调用相应的服务化操作。N1、N2、N3、N4以及N6为接口序列号,这些接口序列号的含义如下:In Figure 1(a), Npcf, Nudr, Nudm, Naf, Namf, Nsmf, and Ntsctsf are respectively provided by the above-mentioned PCF network element, UDR network element, UDM network element, AF network element, AMF network element, SMF network element, and TSCTSF network element. The service interface is used to call the corresponding service operation. N1, N2, N3, N4 and N6 are interface serial numbers. The meanings of these interface serial numbers are as follows:
1)、N1:AMF网元与UE之间的接口,可以用于向UE传递非接入层(non access stratum,NAS)信令(如包括来自AMF网元的QoS规则)等。1), N1: The interface between the AMF network element and the UE, which can be used to transmit non-access stratum (NAS) signaling (such as QoS rules from the AMF network element) to the UE.
2)、N2:AMF网元与无线接入网设备之间的接口,可以用于传递核心网侧至无线接入网设备的无线承载控制信息等。2), N2: The interface between the AMF network element and the wireless access network equipment, which can be used to transmit wireless bearer control information from the core network side to the wireless access network equipment, etc.
3)、N3:无线接入网设备与UPF网元之间的接口,主要用于传递无线接入网设备与UPF网元间的上行用户面数据和/或下行用户面数据。3), N3: The interface between the wireless access network equipment and the UPF network element, mainly used to transmit uplink user plane data and/or downlink user plane data between the wireless access network equipment and the UPF network element.
4)、N4:SMF网元与UPF网元之间的接口,可以用于控制面与用户面之间传递信息,包括控制面向用户面的转发规则、QoS规则、流量统计规则等的下发以及用户面的信息上报。4), N4: The interface between the SMF network element and the UPF network element can be used to transfer information between the control plane and the user plane, including controlling the delivery of user-oriented forwarding rules, QoS rules, traffic statistics rules, etc. Report information on the user interface.
5)、N6:UPF网元与DN的接口,用于传递UPF网元与DN之间的上行用户数据流和/或下行用户数据流。5), N6: The interface between the UPF network element and the DN, used to transmit the uplink user data flow and/or the downlink user data flow between the UPF network element and the DN.
图1(b)为基于点对点接口的5G网络架构示意图,其中的网元的功能的介绍可以参考图1(a)中对应的网元的功能的介绍,不再赘述。图1(b)与图1(a)的主要区别在于:图1(a)中的各个控制面网元之间的接口是服务化的接口,图1(b)中的各个控制面网元之间的接口是点对点的接口。Figure 1(b) is a schematic diagram of the 5G network architecture based on point-to-point interfaces. For the introduction of the functions of the network elements, please refer to the introduction of the functions of the corresponding network elements in Figure 1(a) and will not be described again. The main difference between Figure 1(b) and Figure 1(a) is that the interfaces between the control plane network elements in Figure 1(a) are service-oriented interfaces. The interface between them is a point-to-point interface.
在图1(b)所示的架构中,各个网元之间的接口名称及功能如下:In the architecture shown in Figure 1(b), the interface names and functions between each network element are as follows:
1)、N1、N2、N3、N4和N6接口的含义可以参考前述描述。1), the meaning of N1, N2, N3, N4 and N6 interfaces can refer to the previous description.
2)、N5:AF网元与PCF网元之间的接口,可以用于应用业务请求下发以及网络事件上报。2), N5: The interface between the AF network element and the PCF network element, which can be used to deliver application service requests and report network events.
3)、N7:PCF网元与SMF网元之间的接口,可以用于下发协议数据单元(protocol data unit,PDU)会话粒度以及业务数据流粒度控制策略。3), N7: The interface between PCF network element and SMF network element can be used to deliver protocol data unit (PDU) session granularity and service data flow granularity control policy.
4)、N8:AMF网元与UDM网元间的接口,可以用于AMF网元向UDM网元获取接入与移动性管理相关签约数据与鉴权数据,以及AMF网元向UDM网元注册终端设备移动性管理相关信息等。4), N8: The interface between AMF network elements and UDM network elements, which can be used by AMF network elements to obtain access and mobility management-related subscription data and authentication data from UDM network elements, and for AMF network elements to register with UDM network elements. Information related to terminal device mobility management, etc.
5)、N9:UPF网元和UPF网元之间的用户面接口,用于传递UPF网元间的上行用户数据流和/或下行用户数据流。5), N9: User plane interface between UPF network elements and UPF network elements, used to transmit uplink user data flow and/or downlink user data flow between UPF network elements.
6)、N10:SMF网元与UDM网元间的接口,可以用于SMF网元向UDM网元获取会话管理相关签约数据,以及SMF网元向UDM网元注册终端设备会话相关信息等。6), N10: The interface between the SMF network element and the UDM network element, which can be used for the SMF network element to obtain session management-related contract data from the UDM network element, and for the SMF network element to register terminal device session-related information with the UDM network element.
7)、N11:SMF网元与AMF网元之间的接口,可以用于传递无线接入网设备和UPF网元之间的PDU会话隧道信息、传递发送给终端设备的控制消息、传递发送给无线接入网设备的无线资源控制信息等。7), N11: The interface between SMF network element and AMF network element can be used to transmit PDU session tunnel information between wireless access network equipment and UPF network element, control messages sent to terminal equipment, and control messages sent to Wireless resource control information of wireless access network equipment, etc.
8)、N15:PCF网元与AMF网元之间的接口,可以用于下发终端设备策略及接入控制相关策略。8), N15: The interface between the PCF network element and the AMF network element, which can be used to deliver terminal device policies and access control-related policies.
9)、N35:UDM网元与UDR网元间的接口,可以用于UDM网元从UDR网元中获取 用户签约数据信息。9), N35: The interface between UDM network element and UDR network element, which can be used by UDM network element to obtain from UDR network element User contract data information.
10)、N36:PCF网元与UDR网元间的接口,可以用于PCF网元从UDR网元中获取策略相关签约数据以及应用数据相关信息。10), N36: The interface between PCF network element and UDR network element, which can be used by PCF network element to obtain policy-related contract data and application data-related information from UDR network element.
可以理解的是,上述网元或者功能既可以是硬件设备中的网络元件,也可以是在专用硬件上运行软件功能,或者是平台(例如,云平台)上实例化的虚拟化功能。可选的,上述网元或者功能可以由一个设备实现,也可以由多个设备共同实现,还可以是一个设备内的一个功能模块,本申请实施例对此不作具体限定。It can be understood that the above network elements or functions can be network elements in hardware devices, software functions running on dedicated hardware, or virtualization functions instantiated on a platform (for example, a cloud platform). Optionally, the above network element or function can be implemented by one device, or can be implemented by multiple devices together, or can be a functional module in one device, which is not specifically limited in the embodiments of this application.
本申请的实施例中,以基站、UE分别作为接入网设备、终端设备的具体示例进行描述。In the embodiments of this application, the base station and the UE are used as specific examples of access network equipment and terminal equipment respectively for description.
图2为本申请实施例提供的一种时间同步方法的流程图,该方法包括以下步骤:Figure 2 is a flow chart of a time synchronization method provided by an embodiment of the present application. The method includes the following steps:
步骤201,基站确定对时信息。Step 201: The base station determines time synchronization information.
可选的,在步骤201之前,基站接收指示信息,该指示信息指示为UE提供对时服务。该指示信息触发基站确定该对时信息。Optionally, before step 201, the base station receives indication information indicating providing time synchronization services for the UE. The indication information triggers the base station to determine the time synchronization information.
步骤202,基站向UE发送对时信息,该对时信息用于UE进行本地时间同步。Step 202: The base station sends time synchronization information to the UE. The time synchronization information is used for the UE to perform local time synchronization.
UE收到对时信息后,存储对时信息的接收时间和该对时信息。After receiving the time synchronization information, the UE stores the reception time of the time synchronization information and the time synchronization information.
步骤203,UE根据UE的当前时间、对时信息的接收时间和对时信息,进行时间同步。Step 203: The UE performs time synchronization based on the current time of the UE, the reception time of the time synchronization information, and the time synchronization information.
一种可能的实现方法中,当满足预设条件,UE根据UE的当前时间、对时信息的接收时间和对时信息,进行时间同步;其中,该预设条件为:该UE未在设定时长内从该基站收到新的对时信息;或者,该UE在设定时长内从基站收到指示信息和新的对时信息,该指示信息指示该新的对时信息不满足UE的对时精度要求。In a possible implementation method, when the preset conditions are met, the UE performs time synchronization based on the current time of the UE, the reception time of the time information and the time information; where the preset condition is: the UE is not setting Receive new time synchronization information from the base station within a set time period; or, the UE receives indication information and new time synchronization information from the base station within a set time period, and the indication information indicates that the new time synchronization information does not satisfy the UE's synchronization requirements. time accuracy requirements.
其中,该设定时长可以是基站发送给UE的,也可以是预设置在UE上的。The set duration may be sent to the UE by the base station, or may be preset on the UE.
上述方案,UE可以根据之前从基站收到的对时信息,实现UE与基站之间的精确时间同步,UE不依赖于基站及时提供对时信息,因此当基站不能向UE发送新的对时信息,或者基站不能及时地向UE发送新的对时信息,则UE也能够完成对时,有助于提升UE的通信能力。With the above solution, the UE can achieve precise time synchronization between the UE and the base station based on the time synchronization information previously received from the base station. The UE does not rely on the base station to provide timely synchronization information. Therefore, the base station cannot send new time synchronization information to the UE. , or the base station cannot send new time synchronization information to the UE in time, the UE can also complete the time synchronization, which helps to improve the communication capability of the UE.
一种实现方法中,上述步骤201之前,UE还向基站或核心网网元(如AMF网元、TSCTSF网元等)发送对时请求消息,该对时请求消息包括该UE的标识信息和指示信息,该指示信息指示为UE提供对时服务。In one implementation method, before the above step 201, the UE also sends a time synchronization request message to the base station or core network element (such as AMF network element, TSCTSF network element, etc.). The time synchronization request message includes the identification information and instructions of the UE. Information, the indication information indicates providing time synchronization services for the UE.
一种实现方法中,上述步骤203之前,UE根据来自基站的对时信息进行时间同步。比如,当对时信息包括传输时延和对时信息的发送时间,该传输时延表示UE与基站之间的传输时延,则UE根据该传输时延和该对时信息的发送时间,进行时间同步。再比如,当对时信息包括时钟偏差,该时钟偏差表示UE与基站之间的时钟偏差,则UE根据该时钟偏差和该对时信息的接收时间,进行时间同步。如此,可以实现精确地时间同步。In one implementation method, before the above step 203, the UE performs time synchronization based on the time synchronization information from the base station. For example, when the time synchronization information includes the transmission delay and the sending time of the time synchronization information, and the transmission delay represents the transmission delay between the UE and the base station, then the UE performs the processing according to the transmission delay and the sending time of the time synchronization information. Time synchronization. For another example, when the time synchronization information includes a clock deviation, and the clock deviation represents the clock deviation between the UE and the base station, the UE performs time synchronization based on the clock deviation and the reception time of the time synchronization information. In this way, precise time synchronization can be achieved.
一种实现方法中,上述步骤203之前,UE还接收来自基站或核心网网元(如AMF网元、TSCTSF网元等)的用于指示开启对时功能的信息,UE根据该信息开启对时功能,从而后续当UE未在设定时长内从基站收到新的对时信息,则UE根据UE的当前时间、对时信息的接收时间和对时信息,进行时间同步。该方案有助于UE按照正确方法进行时间同步。In one implementation method, before the above step 203, the UE also receives information from the base station or core network element (such as AMF network element, TSCTSF network element, etc.) indicating to turn on the time synchronization function, and the UE turns on the time synchronization function based on this information. function, so that when the UE does not receive new time synchronization information from the base station within the set time period, the UE will perform time synchronization based on the current time of the UE, the reception time of the time synchronization information, and the time synchronization information. This solution helps the UE perform time synchronization in the correct method.
一种实现方法中,上述步骤203中,UE根据UE的当前时间、对时信息的接收时间和对时信息,进行时间同步,具体可以是:UE确定UE的当前时间与对时信息的接收时间之 间的差值,然后根据差值和对时信息确定同步时间,并根据同步时间进行时间同步。In one implementation method, in the above step 203, the UE performs time synchronization based on the current time of the UE, the reception time of the time synchronization information, and the time synchronization information. Specifically, the UE may determine the current time of the UE and the reception time of the time synchronization information. Of The difference between them is determined, and then the synchronization time is determined based on the difference and the time synchronization information, and time synchronization is performed based on the synchronization time.
下面介绍UE根据UE的当前时间与对时信息的接收时间之间的差值,以及对时信息确定同步时间的三种不同方法。The following describes three different methods for the UE to determine the synchronization time based on the difference between the UE's current time and the reception time of the time synchronization information, as well as the time synchronization information.
方法一,UE收到的对时信息包括时钟频率比值和时钟偏差,UE确定差值与时钟频率比值的比值,并根据比值、时钟偏差和对时信息的接收时间,确定同步时间。Method 1: The time synchronization information received by the UE includes a clock frequency ratio and a clock deviation. The UE determines the ratio of the difference to the clock frequency ratio, and determines the synchronization time based on the ratio, clock deviation, and the reception time of the time synchronization information.
其中,时钟频率比值表示UE的时钟频率与基站的时钟频率之间的比值。比如,可以通过基站向UE发送报文的时间和UE接收到该报文的时间,以及UE向基站发送报文的时间和基站接收到该报文的时间进行计算得到。The clock frequency ratio represents the ratio between the clock frequency of the UE and the clock frequency of the base station. For example, it can be calculated based on the time when the base station sends a message to the UE and the time when the UE receives the message, and the time when the UE sends the message to the base station and the time when the base station receives the message.
时钟偏差表示UE的时钟与基站的时钟之间的差值。The clock offset represents the difference between the UE's clock and the base station's clock.
示例性地,同步时间=(tx-ty)/ratio+ty+offset。For example, synchronization time=(tx-ty)/ratio+ty+offset.
其中,tx表示终端设备的当前时间,ty表示对时信息的接收时间,ratio表示时钟频率比值,offset表示ty时刻基站与UE之间的时钟偏差,tx-ty表示UE的当前时间与对时信息的接收时间之间的差值。Among them, tx represents the current time of the terminal device, ty represents the reception time of the time synchronization information, ratio represents the clock frequency ratio, offset represents the clock deviation between the base station and the UE at time ty, and tx-ty represents the current time and time synchronization information of the UE. The difference between the reception times.
上述公式中,UE在ty时刻收到offset,且UE将UE的时间更新为ty+offset,实现在ty时刻完成与基站的时间同步。然后在经过了(tx-ty)的时长之后,UE将经过的时间与UE在ty时刻的时间的和值,作为UE在tx时刻的同步时间。也即将(tx-ty)/ratio与(ty+offset)的和值作为UE的同步时间。其中,之所以需要除以ratio,是因为需要将在UE域经过的时间转换为基站域经过的时间。该方法可以实现在UE没有接收到基站对时信息的情况下,或者在收到的新的对时信息不够精确的情况下,将UE的时间与基站的时间进行精确同步。In the above formula, the UE receives the offset at time ty, and the UE updates the UE's time to ty+offset to complete time synchronization with the base station at time ty. Then, after the duration of (tx-ty) has elapsed, the UE takes the sum of the elapsed time and the UE's time at ty as the UE's synchronization time at tx. That is, the sum of (tx-ty)/ratio and (ty+offset) is regarded as the synchronization time of the UE. Among them, the reason why it needs to be divided by the ratio is that the time elapsed in the UE domain needs to be converted into the time elapsed in the base station domain. This method can accurately synchronize the time of the UE with the time of the base station when the UE does not receive the time synchronization information of the base station, or when the new time synchronization information received is not accurate enough.
方法二,UE收到的对时信息包括时钟频率比值、传输时延和对时信息的发送时间,UE确定差值与时钟频率比值的比值,并UE根据该比值、传输时延和对时信息的发送时间确定同步时间。Method 2: The time synchronization information received by the UE includes the clock frequency ratio, transmission delay and the sending time of the time synchronization information. The UE determines the ratio of the difference to the clock frequency ratio, and the UE determines the ratio, transmission delay and time synchronization information based on the ratio. The sending time determines the synchronization time.
其中,时钟频率比值表示UE与基站之间的时钟频率比值,传输时延表示UE与基站之间的传输时延。The clock frequency ratio represents the clock frequency ratio between the UE and the base station, and the transmission delay represents the transmission delay between the UE and the base station.
示例性地,同步时间=(tx-ty)/ratio+tz+delay。For example, synchronization time=(tx-ty)/ratio+tz+delay.
其中,tx表示终端设备的当前时间,ty表示对时信息的接收时间,tz表示对时信息的发送时间,ratio表示时钟频率比值,delay表示传输时延,tx-ty表示UE的当前时间与对时信息的接收时间之间的差值。Among them, tx represents the current time of the terminal device, ty represents the receiving time of the time information, tz represents the sending time of the time information, ratio represents the clock frequency ratio, delay represents the transmission delay, and tx-ty represents the time between the current time of the UE and the corresponding time. The difference between the time the message was received.
上述公式中,UE在ty时刻收到tz和delay,且UE将UE的时间更新为tz+delay,实现在ty时刻完成与基站的时间同步。然后在经过了(tx-ty)的时长之后,UE将经过的时间与UE在ty时刻的时间的和值,作为UE在tx时刻的同步时间。也即将(tx-ty)/ratio与(tz+delay)的和值作为UE的同步时间。其中,之所以需要除以ratio,是因为需要将在UE域经过的时间转换为基站域经过的时间。该方法可以实现在UE没有接收到基站对时信息的情况下,或者在收到的新的对时信息不够精确的情况下,将UE的时间与基站的时间进行精确同步。In the above formula, the UE receives tz and delay at time ty, and the UE updates the time of the UE to tz+delay to complete time synchronization with the base station at time ty. Then, after the duration of (tx-ty) has elapsed, the UE takes the sum of the elapsed time and the UE's time at ty as the UE's synchronization time at tx. That is, the sum of (tx-ty)/ratio and (tz+delay) is regarded as the synchronization time of the UE. Among them, the reason why it needs to be divided by the ratio is that the time elapsed in the UE domain needs to be converted into the time elapsed in the base station domain. This method can accurately synchronize the time of the UE with the time of the base station when the UE does not receive the time synchronization information of the base station, or when the new time synchronization information received is not accurate enough.
方法三,UE收到的对时信息包括时钟偏差变化率、时钟频率比值和时钟偏差,UE确定时钟偏差变化率与差值的乘积,并确定乘积与时钟频率比值的比值,然后根据比值、时钟偏差和UE的当前时间确定同步时间。Method 3: The time synchronization information received by the UE includes the clock deviation change rate, clock frequency ratio and clock deviation. The UE determines the product of the clock deviation change rate and the difference, and determines the ratio of the product to the clock frequency ratio, and then based on the ratio, clock The offset and the UE's current time determine the synchronization time.
其中,时钟偏差变化率表示时钟偏差随时间的变化量,时钟频率比值表示UE与基站之间的时钟频率比值,时钟偏差表示UE与基站之间的时钟偏差。 Among them, the clock deviation change rate represents the change of the clock deviation over time, the clock frequency ratio represents the clock frequency ratio between the UE and the base station, and the clock deviation represents the clock deviation between the UE and the base station.
示例性地,同步时间=tx+drift*(tx-ty)/ratio+offset。For example, synchronization time=tx+drift*(tx-ty)/ratio+offset.
其中,tx表示终端设备的当前时间,ty表示对时信息的接收时间,drift表示时钟偏差变化率,即基站与UE之间的时钟偏差随着时间的变化率,ratio表示时钟频率比值,offset表示ty时刻基站与UE之间的时钟偏差,tx-ty表示UE的当前时间与对时信息的接收时间之间的差值。Among them, tx represents the current time of the terminal device, ty represents the reception time of the time information, drift represents the clock deviation change rate, that is, the rate of change of the clock deviation between the base station and the UE over time, ratio represents the clock frequency ratio, and offset represents The clock deviation between the base station and the UE at time ty, tx-ty represents the difference between the current time of the UE and the time when the time information is received.
其中,drift可以通过以下方式确定:基站确定在第一时间的第一时钟偏差,以及确定在第二时间的第二时钟偏差,然后根据第二时钟偏差与第一时钟偏差的第一差值,以及第二时间与第一时间的第二差值,确定drift,具体的,drift=(第二时钟偏差-第一时钟偏差)/(第二时间-第一时间)。The drift can be determined in the following manner: the base station determines the first clock deviation at the first time, and determines the second clock deviation at the second time, and then based on the first difference between the second clock deviation and the first clock deviation, And the second difference between the second time and the first time determines the drift. Specifically, drift=(second clock deviation-first clock deviation)/(second time-first time).
上述公式,UE在ty时刻收到offset,也即offset表示ty时刻基站与UE之间的偏差。然后在经过了(tx-ty)的时长之后,基站与UE之间的偏差发生了变化,且偏差变化量为drift*(tx-ty)/ratio,因此drift*(tx-ty)/ratio+offset表示tx时刻基站与UE之间的时钟偏差。因此UE将tx与(drift*(tx-ty)/ratio+offset)的和值作为UE在tx时刻的同步时间,能够实现时间同步。其中,之所以需要除以ratio,是因为需要将在UE域经过的时间转换为基站域经过的时间。该方法可以实现在UE没有接收到基站对时信息的情况下,或者在收到的新的对时信息不够精确的情况下,将UE的时间与基站的时间进行精确同步。According to the above formula, the UE receives the offset at time ty, that is, the offset represents the deviation between the base station and the UE at time ty. Then after (tx-ty) time has passed, the deviation between the base station and the UE has changed, and the deviation change amount is drift*(tx-ty)/ratio, so drift*(tx-ty)/ratio+ offset represents the clock offset between the base station and the UE at tx time. Therefore, the UE uses the sum of tx and (drift*(tx-ty)/ratio+offset) as the synchronization time of the UE at time tx, and time synchronization can be achieved. Among them, the reason why it needs to be divided by the ratio is that the time elapsed in the UE domain needs to be converted into the time elapsed in the base station domain. This method can accurately synchronize the time of the UE with the time of the base station when the UE does not receive the time synchronization information of the base station, or when the new time synchronization information received is not accurate enough.
下面结合图3(a)、图3(b)和图3(c)所示的具体示例,对上述三种方法进行说明。The above three methods will be described below with reference to specific examples shown in Figure 3(a), Figure 3(b) and Figure 3(c).
图3(a)为本申请实施例提供的时间同步的示例图。该方法如下:Figure 3(a) is an example diagram of time synchronization provided by the embodiment of the present application. The method is as follows:
t1时刻:基站在t1时刻向UE发送报文1;Time t1: The base station sends message 1 to the UE at time t1;
t2时刻:UE在t2时刻收到报文1;Time t2: UE receives message 1 at time t2;
t3时刻:UE在t3时刻向基站发送报文2,该报文2的报文头中携带报文1的接收时间t2以及报文2的发送时间t3;Time t3: UE sends message 2 to the base station at time t3. The header of message 2 carries the reception time t2 of message 1 and the sending time t3 of message 2;
t4时刻:基站在t4时刻收到报文2;Time t4: The base station receives message 2 at time t4;
t5时刻:UE在t5时刻向基站发送报文3,该报文3的报文头中携带报文3的发送时间t5;Time t5: UE sends message 3 to the base station at time t5, and the header of message 3 carries the sending time t5 of message 3;
t6时刻:基站在t6时刻收到报文3。Time t6: The base station receives message 3 at time t6.
基站获取到上述t1~t6时刻,可以执行以下方法A或方法B。其中,该方法A是上述方法一的一个示例,该方法B是上述方法二的一个示例。After the base station obtains the above time t1 to t6, it can execute the following method A or method B. Among them, the method A is an example of the above-mentioned method one, and the method B is an example of the above-mentioned method two.
方法A,基站计算得到ratio和offset,并向UE发送ratio和offset。Method A: The base station calculates the ratio and offset and sends the ratio and offset to the UE.
ratio=(t5-t3)/(t6-t4)。ratio表示UE与基站之间的时钟频率比值。ratio=(t5-t3)/(t6-t4). ratio represents the clock frequency ratio between the UE and the base station.
offset=((t2-t1)-(t4-t3))/2。offset表示UE与基站之间的时钟偏差。offset=((t2-t1)-(t4-t3))/2. offset represents the clock offset between the UE and the base station.
假设基站在t7时刻向UE发送对时信息,UE在t8时刻收到对时信息,该对时信息包括ratio和offset,则UE根据offset进行对时,UE进行对时后的时间为t_new1=t8+offset。并且,UE还保存收到的对时信息。后续,如果UE在设定时长内未从基站收到新的对时信息,则UE启动本地对时。比如,UE当前时间为t9,则UE进行本地对时后的时间为t_new2=(t9-t8)/ratio+t8+offset。其中,这里的ratio和offset来自UE最近一次收到并保存的对时信息。Assume that the base station sends time synchronization information to the UE at time t7, and the UE receives the time synchronization information at time t8. The time synchronization information includes ratio and offset. Then the UE synchronizes the time based on the offset. The time after the UE synchronizes the time is t_new1=t8 +offset. Moreover, the UE also saves the received time synchronization information. Subsequently, if the UE does not receive new time synchronization information from the base station within the set time period, the UE starts local time synchronization. For example, if the current time of the UE is t9, the time after the UE performs local time synchronization is t_new2=(t9-t8)/ratio+t8+offset. Among them, the ratio and offset here come from the latest timing information received and saved by the UE.
方法B,基站计算得到ratio和delay,并向UE发送ratio和delay。Method B, the base station calculates the ratio and delay, and sends the ratio and delay to the UE.
ratio=(t5-t3)/(t6-t4)。ratio表示UE与基站之间的时钟频率比值。ratio=(t5-t3)/(t6-t4). ratio represents the clock frequency ratio between the UE and the base station.
delay=(ratio*(t4-t1)-(t3-t2))/2。delay表示UE与基站之间的传输时延。 delay=(ratio*(t4-t1)-(t3-t2))/2. delay represents the transmission delay between the UE and the base station.
假设基站在t7时刻向UE发送对时信息,UE在t8时刻收到对时信息,该对时信息包括t7、ratio和delay,则UE根据t7和delay进行对时,UE进行对时后的时间为t_new1=t7+delay。并且,UE还保存收到的对时信息。后续,如果UE在设定时长内未从基站收到新的对时信息,则UE启动本地对时。比如,UE当前时间为t9,则UE进行本地对时后的时间为t_new2=(t9-t8)/ratio+t7+delay。其中,这里的t7、ratio和delay来自UE最近一次收到并保存的对时信息。Assume that the base station sends time synchronization information to the UE at time t7, and the UE receives the time synchronization information at time t8. The time synchronization information includes t7, ratio, and delay. Then the UE performs time synchronization based on t7 and delay. The time after the UE performs time synchronization It is t_new1=t7+delay. Moreover, the UE also saves the received time synchronization information. Subsequently, if the UE does not receive new time synchronization information from the base station within the set time period, the UE starts local time synchronization. For example, if the current time of the UE is t9, the time after the UE performs local time synchronization is t_new2=(t9-t8)/ratio+t7+delay. Among them, t7, ratio and delay here come from the latest time synchronization information received and saved by the UE.
图3(b)为本申请实施例提供的时间同步的又一示例图。该图3(b)与上述图3(a)的主要区别是:图3(a)中,一个报文中可以携带该报文的发送时间,比如报文2携带t3,报文3携带t5;图3(b)中,一个报文中不携带该报文的发送时间,比如报文2不携带t3,报文3不携带t5。基于上述区别,图3(a)中,UE通过向基站发送2个报文,实现向基站发送时间信息,该时间信息包括t2、t3和t5,图3(b)中,UE通过向基站发送3个报文,实现向基站发送时间信息,该时间信息包括t2、t3和t5。基于该图3(b)的实施例的其它方面,与上述图3(a)的实施例相同。Figure 3(b) is another example diagram of time synchronization provided by the embodiment of the present application. The main difference between Figure 3(b) and Figure 3(a) above is that in Figure 3(a), a message can carry the sending time of the message, for example, message 2 carries t3, and message 3 carries t5. ; In Figure 3(b), a message does not carry the sending time of the message. For example, message 2 does not carry t3, and message 3 does not carry t5. Based on the above differences, in Figure 3(a), the UE sends two messages to the base station to send time information to the base station. The time information includes t2, t3 and t5. In Figure 3(b), the UE sends 3 messages are used to send time information to the base station. The time information includes t2, t3 and t5. Other aspects of the embodiment based on FIG. 3(b) are the same as the above-mentioned embodiment of FIG. 3(a).
图3(c)为本申请实施例提供的时间同步的又一示例图。该方法如下:Figure 3(c) is another example diagram of time synchronization provided by the embodiment of the present application. The method is as follows:
t1时刻:基站在t1时刻向UE发送报文1;Time t1: The base station sends message 1 to the UE at time t1;
t2时刻:UE在t2时刻收到报文1;Time t2: UE receives message 1 at time t2;
t3时刻:UE在t3时刻向基站发送报文2,该报文2的报文头中携带报文1的接收时间t2以及报文2的发送时间t3;Time t3: UE sends message 2 to the base station at time t3. The header of message 2 carries the reception time t2 of message 1 and the sending time t3 of message 2;
t4时刻:基站在t4时刻收到报文2;Time t4: The base station receives message 2 at time t4;
t5时刻:基站在t5时刻向UE发送报文3;Time t5: The base station sends message 3 to the UE at time t5;
t6时刻:UE在t6时刻收到报文3;Time t6: UE receives message 3 at time t6;
t7时刻:UE在t7时刻向基站发送报文4,该报文4的报文头中携带报文3的接收时间t6以及报文4的发送时间t7;Time t7: UE sends message 4 to the base station at time t7. The header of message 4 carries the reception time t6 of message 3 and the sending time t7 of message 4;
t8时刻:基站在t8时刻收到报文4。Time t8: The base station receives message 4 at time t8.
基站获取到上述t1~t8时刻,可以执行以下方法C。该方法C是上述方法三的一个示例。After the base station obtains the above time t1 to t8, it can perform the following method C. This method C is an example of method three above.
方法C,基站计算得到drift、ratio和offset,并向UE发送drift、ratio和offset。Method C: The base station calculates the drift, ratio and offset, and sends the drift, ratio and offset to the UE.
首先,基站计算得到drift和ratio。其中,drift=(offset2-offset1)/(t8-t4),offset1=((t2-t1)-(t4-t3))/2,offset2=((t6-t5)-(t8-t7))/2,offset1和offset2均表示UE与基站之间的时钟偏差,drift表示offset随时间的变化量。ratio=(t7-t3)/(t8-t4),ratio表示UE与基站之间的时钟频率比值。First, the base station calculates drift and ratio. Among them, drift=(offset2-offset1)/(t8-t4), offset1=((t2-t1)-(t4-t3))/2, offset2=((t6-t5)-(t8-t7))/ 2. Offset1 and offset2 both represent the clock deviation between the UE and the base station, and drift represents the change in offset over time. ratio=(t7-t3)/(t8-t4), ratio represents the clock frequency ratio between the UE and the base station.
然后,基站在t9时刻向UE发送对时信息,UE侧在t10时刻收到该对时信息,该对时信息包括ratio、drift和offset2,UE进行对时后的时间为t_new1=t10+offset2。并且,UE还保存收到的对时信息。后续,如果UE在设定时长内未从基站收到新的对时信息,则UE启动本地对时。比如,UE当前时间为t11,则UE进行本地对时后的时间为t_new2=t11+drift/ratio*(t11-t10)+offset2。其中,这里的drift、ratio和offset2来自UE最近一次收到并保存的对时信息。Then, the base station sends time synchronization information to the UE at time t9, and the UE receives the time synchronization information at time t10. The time synchronization information includes ratio, drift, and offset2. The time after the UE performs time synchronization is t_new1=t10+offset2. Moreover, the UE also saves the received time synchronization information. Subsequently, if the UE does not receive new time synchronization information from the base station within the set time period, the UE starts local time synchronization. For example, if the current time of the UE is t11, the time after the UE performs local time synchronization is t_new2=t11+drift/ratio*(t11-t10)+offset2. Among them, the drift, ratio and offset2 here come from the latest time synchronization information received and saved by the UE.
本申请实施例中,可以将上述方法A和方法B称为增强往返时延(Round Trip Time,RTT)对时方法,上述方法C称为双向RTT对时方法。In the embodiment of the present application, the above-mentioned method A and method B may be called an enhanced round trip time (Round Trip Time, RTT) time synchronization method, and the above-mentioned method C is called a two-way RTT time synchronization method.
下面结合图4至图6的具体实施例,对上述图2的实施例进行具体说明。 The above-mentioned embodiment of FIG. 2 will be described in detail below with reference to the specific embodiments of FIGS. 4 to 6 .
图4为本申请实施例提供的一种时间同步方法的流程示意图。该方法是AF请求为UE提供授时服务。Figure 4 is a schematic flowchart of a time synchronization method provided by an embodiment of the present application. This method is the AF request to provide timing services to the UE.
该方法包括以下步骤:The method includes the following steps:
步骤401,AF向NEF发送对时请求消息,该对时请求消息包括UE的标识信息、要求的对时误差精度和指示信息。Step 401: The AF sends a time synchronization request message to the NEF. The time synchronization request message includes the identification information of the UE, the required time synchronization error accuracy and indication information.
该UE的标识信息所指示的UE即为需要对时的对象。The UE indicated by the identification information of the UE is the object that needs to be synchronized.
其中,要求的对时误差精度可以是纳秒(ns),微秒(us)等。Among them, the required time error accuracy can be nanoseconds (ns), microseconds (us), etc.
一种实现方法中,该指示信息指示为该UE提供对时服务。In an implementation method, the indication information indicates that time synchronization services are provided for the UE.
又一种实现方法中,该指示信息指示按照增强RTT对时方法为该UE提供对时服务。In yet another implementation method, the indication information indicates that the time synchronization service is provided for the UE according to the enhanced RTT time synchronization method.
又一种实现方法中,该指示信息指示按照双向RTT对时方法为该UE提供对时服务。In another implementation method, the indication information indicates that the time synchronization service is provided for the UE according to the two-way RTT time synchronization method.
可选的,该对时请求消息是Nnef_TimeSynchronization_ASTICreate/Update/Delete消息。Optionally, the time synchronization request message is the Nnef_TimeSynchronization_ASTICreate/Update/Delete message.
步骤402,NEF向TSCTSF发送对时请求消息,该对时请求消息包括UE的标识信息、要求的对时误差精度和指示信息。Step 402: NEF sends a time synchronization request message to the TSCTSF. The time synchronization request message includes the identification information of the UE, the required time synchronization error accuracy and indication information.
NEF收到来自AF的对时请求消息后,对AF进行认证,当认证通过后,NEF向TSCTSF发送对时请求消息。NEF发送的对时请求消息中的UE的标识信息、要求的对时误差精度和指示信息,来自AF。After NEF receives the time request message from AF, it authenticates AF. When the authentication is passed, NEF sends a time request message to TSCTSF. The UE's identification information, required time error accuracy and indication information in the time synchronization request message sent by the NEF come from the AF.
可选的,该对时请求消息是Ntsctsf_TimeSynchronization_ASTICreate/Update/Delete消息。Optionally, the time synchronization request message is an Ntsctsf_TimeSynchronization_ASTICreate/Update/Delete message.
步骤403,TSCTSF选择为UE提供对时服务的基站。Step 403: The TSCTSF selects a base station that provides time synchronization services for the UE.
比如,TSCTSF根据基站的分布信息和要求的对时误差精度,从多个基站中选择为UE提供对时服务的基站。For example, TSCTSF selects a base station that provides time synchronization services for the UE from multiple base stations based on the distribution information of the base stations and the required time synchronization error accuracy.
步骤404,TSCTSF向UDR发送查询消息,该查询消息包括UE的标识信息,该查询消息请求获取为该UE提供服务的PCF。Step 404: The TSCTSF sends a query message to the UDR. The query message includes the identification information of the UE, and the query message requests to obtain the PCF that provides services for the UE.
一种实现方法中,该查询消息是Nudr_DM_Create/Update/Delete request消息。In one implementation method, the query message is a Nudr_DM_Create/Update/Delete request message.
步骤405,UDR向TSCTSF发送响应消息,该响应消息包括PCF的标识信息。Step 405: The UDR sends a response message to the TSCTSF. The response message includes the identification information of the PCF.
一种实现方法中,该响应消息是Nudr_DM_Create/Update/Delete response消息。In one implementation method, the response message is a Nudr_DM_Create/Update/Delete response message.
步骤406,TSCTSF向PCF发送通知消息,该通知消息包括UE的标识信息、基站的标识信息、指示信息和要求的对时误差精度。Step 406: The TSCTSF sends a notification message to the PCF. The notification message includes the identification information of the UE, the identification information of the base station, the indication information and the required time error accuracy.
该基站即为TSCTSF选择的为UE提供对时服务的基站,该UE的标识信息、指示信息和要求的对时误差精度是TSCTSF在上述步骤402收到的。This base station is the base station selected by the TSCTSF to provide time synchronization services for the UE. The identification information, indication information and required time synchronization error accuracy of the UE were received by the TSCTSF in the above step 402.
步骤407,PCF向AMF发送策略信息,该策略信息包括UE的标识信息、基站的标识信息、指示信息和要求的对时误差精度。Step 407: The PCF sends policy information to the AMF. The policy information includes the identification information of the UE, the identification information of the base station, the indication information and the required time error accuracy.
该策略信息中的UE的标识信息、基站的标识信息、指示信息和要求的对时误差精度,是PCF从TSCTSF收到的。The UE identification information, base station identification information, indication information and required time error accuracy in the policy information are received by the PCF from the TSCTSF.
步骤408,AMF向基站发送通知消息,该通知消息包括UE的标识信息、指示信息和要求的对时误差精度。Step 408: The AMF sends a notification message to the base station. The notification message includes the UE's identification information, indication information and required time error accuracy.
该基站即为策略信息中的基站的标识信息所指示的基站。The base station is the base station indicated by the identification information of the base station in the policy information.
该通知消息中的UE的标识信息、指示信息和要求的对时误差精度,是AMF从PCF收到的。The UE's identification information, indication information and required time error accuracy in the notification message are received by the AMF from the PCF.
步骤409,基站根据要求的对时误差精度,确定对时信息。 Step 409: The base station determines the time synchronization information according to the required time synchronization error accuracy.
也即基站确定的对时信息,是满足要求的对时误差精度的。That is to say, the time synchronization information determined by the base station meets the required time synchronization error accuracy.
一种实现方法中,当基站收到的指示信息指示为该UE提供对时服务,则基站先根据要求的对时误差精度,选择增强RTT对时方法或双向RTT对时方法。具体的,如果选择的是增强RTT对时方法,则基站根据增强RTT对时方法和要求的对时误差精度,确定对时信息,该对时信息的内容可以参考前述方法A或方法B。如果选择的是双向RTT对时方法,则基站根据双向RTT对时方法和要求的对时误差精度,确定对时信息,该对时信息的内容可以参考前述方法C。In one implementation method, when the indication information received by the base station indicates that the UE is provided with time synchronization services, the base station first selects the enhanced RTT time synchronization method or the bidirectional RTT time synchronization method according to the required time synchronization error accuracy. Specifically, if the enhanced RTT time synchronization method is selected, the base station determines the time synchronization information based on the enhanced RTT time synchronization method and the required time synchronization error accuracy. The content of the time synchronization information can refer to the aforementioned method A or method B. If the two-way RTT time synchronization method is selected, the base station determines the time synchronization information based on the two-way RTT time synchronization method and the required time synchronization error accuracy. The content of the time synchronization information can refer to the aforementioned method C.
又一种实现方法中,当基站收到的指示信息指示按照增强RTT方法为该UE提供对时服务,则基站根据增强RTT对时方法和要求的对时误差精度,确定对时信息,该对时信息的内容可以参考前述方法A或方法B。In another implementation method, when the instruction information received by the base station indicates that the UE is provided with time synchronization services according to the enhanced RTT method, the base station determines the time synchronization information according to the enhanced RTT time synchronization method and the required time synchronization error accuracy. For the content of the time information, please refer to the aforementioned method A or method B.
又一种实现方法中,当基站收到的指示信息指示按照双向RTT方法为该UE提供对时服务,则基站根据双向RTT对时方法和要求的对时误差精度,确定对时信息,该对时信息的内容可以参考前述方法C。In another implementation method, when the instruction information received by the base station indicates that the UE is provided with time synchronization services according to the two-way RTT method, the base station determines the time synchronization information based on the two-way RTT time synchronization method and the required time synchronization error accuracy. The content of the time information can refer to the aforementioned method C.
步骤410,基站向UE发送对时信息。Step 410: The base station sends time synchronization information to the UE.
可选的,基站还向UE发送用于指示对时功能的信息,从而UE根据该信息开启对时功能,有助于准确实现时间同步。Optionally, the base station also sends information indicating the time synchronization function to the UE, so that the UE enables the time synchronization function based on the information, which helps to accurately achieve time synchronization.
步骤411,UE根据对时信息,进行时间同步。Step 411: The UE performs time synchronization based on the time synchronization information.
该步骤411的具体实现可以参考图2的实施例的描述,不再赘述。For the specific implementation of step 411, reference can be made to the description of the embodiment in FIG. 2 and will not be described again.
可选的,在上述步骤406之后,TSCTSF可以向NEF发送用于通知对时成功的对时响应消息,然后NEF向AF发送用于通知对时成功的对时响应消息。Optionally, after the above step 406, the TSCTSF may send a time synchronization response message to NEF to notify the successful time synchronization, and then the NEF sends a time synchronization response message to the AF to notify the successful time synchronization.
上述方案,由AF为UE请求对时服务,TSCTSF选择为UE提供对时服务的基站,由该基站向UE发送对时信息,从而当基站不能向UE发送对时信息,或者基站不能及时地向UE发送对时信息,则UE可以根据之前从基站收到的对时信息,实现UE与基站之间的精确时间同步,有助于提升UE的通信能力。In the above scheme, the AF requests time synchronization services for the UE, and the TSCTSF selects a base station that provides time synchronization services for the UE, and the base station sends time synchronization information to the UE. Therefore, when the base station cannot send time synchronization information to the UE, or the base station cannot send time synchronization information to the UE in a timely manner, If the UE sends time synchronization information, the UE can achieve precise time synchronization between the UE and the base station based on the time synchronization information previously received from the base station, which helps to improve the communication capability of the UE.
图5为本申请实施例提供的一种时间同步方法的流程示意图。该方法是在基站上的时钟源发生故障时,UE根据本地保存的对时信息进行时间同步。Figure 5 is a schematic flowchart of a time synchronization method provided by an embodiment of the present application. This method is that when the clock source on the base station fails, the UE performs time synchronization based on locally saved time information.
该方法包括以下步骤:The method includes the following steps:
步骤501,基站向TSCTSF发送通知消息,该通知消息包括基站的标识信息和指示信息1,该指示信息1指示该基站的时钟源发生故障。Step 501: The base station sends a notification message to the TSCTSF. The notification message includes the identification information of the base station and indication information 1. The indication information 1 indicates that the clock source of the base station fails.
可选的,该通知消息还包括UE的标识信息,该UE是受到基站的时钟源故障影响的UE。也即,由于基站的时钟源故障,导致无法继续向UE提供对时服务。Optionally, the notification message also includes identification information of a UE that is affected by a clock source failure of the base station. That is, due to a clock source failure of the base station, it is impossible to continue to provide time synchronization services to the UE.
步骤502,TSCTSF确定受到基站的时钟源故障影响的UE。Step 502: The TSCTSF determines the UEs affected by the clock source failure of the base station.
当上述步骤501的通知消息携带受到基站的时钟源故障影响的UE的标识信息,则不需要执行该步骤502。When the notification message in step 501 above carries the identification information of the UE affected by the clock source failure of the base station, there is no need to perform step 502.
当上述步骤501的通知消息携带受到基站的时钟源故障影响的UE的标识信息,则执行该步骤502。一种实现方法中,TSCTSF向AMF/PCF发送请求消息,该请求消息包括基站的标识信息,该请求消息请求获取受到该基站的时钟源故障影响的UE的标识信息,然后AMF/PCF向TSCTSF发送受到该基站的时钟源故障影响的UE的标识信息。When the notification message in step 501 above carries the identification information of the UE affected by the clock source failure of the base station, step 502 is executed. In one implementation method, TSCTSF sends a request message to AMF/PCF. The request message includes the identification information of the base station. The request message requests to obtain the identification information of the UE affected by the clock source failure of the base station. Then AMF/PCF sends the request message to TSCTSF. Identification information of the UE affected by the clock source failure of the base station.
步骤503,TSCTSF向UDR发送查询消息,该查询消息包括UE的标识信息,该查询消息请求获取为该UE提供服务的PCF。 Step 503: TSCTSF sends a query message to the UDR. The query message includes the identification information of the UE, and the query message requests to obtain the PCF that provides services for the UE.
该UE的标识信息所指示的UE即为受到基站的时钟源故障影响的UE。The UE indicated by the identification information of the UE is the UE affected by the clock source failure of the base station.
一种实现方法中,该查询消息是Nudr_DM_Create/Update/Delete request消息。In one implementation method, the query message is a Nudr_DM_Create/Update/Delete request message.
步骤504,UDR向TSCTSF发送响应消息,该响应消息包括PCF的标识信息。Step 504: The UDR sends a response message to the TSCTSF. The response message includes the identification information of the PCF.
一种实现方法中,该响应消息是Nudr_DM_Create/Update/Delete response消息。In one implementation method, the response message is a Nudr_DM_Create/Update/Delete response message.
步骤505,TSCTSF向PCF发送通知消息,该通知消息包括UE的标识信息和指示信息2。Step 505: The TSCTSF sends a notification message to the PCF. The notification message includes the UE's identification information and indication information 2.
该指示信息2指示UE进行本地对时。This indication information 2 instructs the UE to perform local time synchronization.
步骤506,PCF向AMF发送策略信息,该策略信息包括UE的标识信息和指示信息2。Step 506: The PCF sends policy information to the AMF, where the policy information includes the UE's identification information and indication information 2.
步骤507,AMF向UE发送指示信息2。Step 507: AMF sends indication information 2 to the UE.
可选的,AMF还向UE发送用于指示对时功能的信息,从而UE根据该信息开启对时功能,有助于准确实现时间同步。Optionally, the AMF also sends information indicating the time synchronization function to the UE, so that the UE enables the time synchronization function based on the information, which helps to accurately achieve time synchronization.
步骤508,UE根据本地保存的对时信息,进行时间同步。Step 508: The UE performs time synchronization based on locally saved time information.
该步骤508的具体实现可以参考图2的实施例的描述,不再赘述。For the specific implementation of step 508, reference can be made to the description of the embodiment in FIG. 2 and will not be described again.
上述方案,当基站的时钟源故障,TSCTSF可以通知UE进行本地对时,也即UE根据之前从基站收到的对时信息,实现UE与基站之间的精确时间同步,有助于提升UE的通信能力。In the above scheme, when the clock source of the base station fails, TSCTSF can notify the UE to perform local time synchronization, that is, the UE achieves precise time synchronization between the UE and the base station based on the time synchronization information previously received from the base station, which helps to improve the UE's communication capabilities.
图6为本申请实施例提供的一种时间同步方法的流程示意图。该方法是UE主动请求为该UE提供对时服务。Figure 6 is a schematic flowchart of a time synchronization method provided by an embodiment of the present application. This method is that the UE actively requests to provide time synchronization services for the UE.
该方法包括以下步骤:The method includes the following steps:
步骤601,UE向AMF发送对时请求消息,该对时请求消息包括UE的标识信息、要求的对时误差精度和指示信息。Step 601: The UE sends a time synchronization request message to the AMF. The time synchronization request message includes the identification information of the UE, the required time synchronization error accuracy and indication information.
该UE的标识信息所指示的UE即为需要对时的对象。The UE indicated by the identification information of the UE is the object that needs to be synchronized.
一种实现方法中,该指示信息指示为该UE提供对时服务。In an implementation method, the indication information indicates that time synchronization services are provided for the UE.
又一种实现方法中,该指示信息指示按照增强RTT对时方法为该UE提供对时服务。In yet another implementation method, the indication information indicates that the time synchronization service is provided for the UE according to the enhanced RTT time synchronization method.
又一种实现方法中,该指示信息指示按照双向RTT对时方法为该UE提供对时服务。In another implementation method, the indication information indicates that the time synchronization service is provided for the UE according to the two-way RTT time synchronization method.
可选的,该对时请求消息是Nnas_TimeSynchronization_ASTICreate/Update/Delete消息。Optionally, the time synchronization request message is an Nnas_TimeSynchronization_ASTICreate/Update/Delete message.
步骤602,AMF向TSCTSF发送对时请求消息,该对时请求消息包括UE的标识信息、要求的对时误差精度和指示信息。Step 602: The AMF sends a time synchronization request message to the TSCTSF. The time synchronization request message includes the identification information of the UE, the required time synchronization error accuracy and indication information.
AMF发送的对时请求消息中的UE的标识信息、要求的对时误差精度和指示信息,来自UE。The identification information of the UE, the required time error accuracy and the indication information in the time synchronization request message sent by the AMF come from the UE.
可选的,该对时请求消息是Ntsctsf_TimeSynchronization_ASTICreate/Update/Delete消息。Optionally, the time synchronization request message is an Ntsctsf_TimeSynchronization_ASTICreate/Update/Delete message.
步骤603,TSCTSF向UDM发送请求消息,该请求消息包括UE的标识信息。Step 603: TSCTSF sends a request message to UDM, where the request message includes the identification information of the UE.
当TSCTSC收到的指示信息指示为该UE提供对时服务,则TSCTSF向UDM发送的请求消息用于请求查询是否授权为该UE提供对时服务。When the indication information received by the TSCTSC indicates that time synchronization services are provided for the UE, the request message sent by the TSCTSF to the UDM is used to request to query whether the UE is authorized to provide time synchronization services.
当TSCTSC收到的指示信息指示按照增强RTT对时方法为该UE提供对时服务,则TSCTSF向UDM发送的请求消息用于请求查询是否授权按照增强RTT对时方法为该UE提供对时服务。When the indication information received by TSCTSC indicates that time synchronization services are provided for the UE according to the enhanced RTT time synchronization method, the request message sent by TSCTSF to UDM is used to request to query whether it is authorized to provide time synchronization services for the UE according to the enhanced RTT time synchronization method.
当TSCTSC收到的指示信息指示按照双向RTT对时方法为该UE提供对时服务,则TSCTSF向UDM发送的请求消息用于请求查询是否授权按照双向RTT对时方法为该UE 提供对时服务。When the instruction information received by TSCTSC indicates that the UE is provided with time synchronization services according to the two-way RTT time synchronization method, the request message sent by TSCTSF to UDM is used to request whether to authorize the UE to use the two-way RTT time synchronization method. Provide timely services.
步骤604,UDM向TSCTSF发送响应消息。Step 604: UDM sends a response message to TSCTSF.
该响应消息指示授权为该UE提供对时服务,或者指示授权按照增强RTT对时方法为该UE提供对时服务,或者指示授权按照双向RTT对时方法为该UE提供对时服务。The response message indicates that the UE is authorized to provide time synchronization services for the UE, or that the UE is authorized to provide time synchronization services for the UE according to the enhanced RTT time synchronization method, or that the UE is authorized to provide time synchronization services for the UE according to the two-way RTT time synchronization method.
步骤605至步骤613,同上述步骤403至步骤411。Steps 605 to 613 are the same as steps 403 to 411 described above.
上述方案,由UE主动请求对时服务,TSCTSF选择为UE提供对时服务的基站,由该基站向UE发送对时信息,从而当基站不能向UE发送对时信息,或者基站不能及时地向UE发送对时信息,则UE可以根据之前从基站收到的对时信息,实现UE与基站之间的精确时间同步,有助于提升UE的通信能力。In the above scheme, the UE actively requests time synchronization services, and the TSCTSF selects a base station that provides time synchronization services for the UE. The base station sends time synchronization information to the UE. Therefore, when the base station cannot send time synchronization information to the UE, or the base station cannot send time synchronization information to the UE in a timely manner, By sending time synchronization information, the UE can achieve precise time synchronization between the UE and the base station based on the time synchronization information previously received from the base station, which helps to improve the communication capabilities of the UE.
可以理解的是,为了实现上述实施例中功能,接入网设备或终端设备包括了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本申请中所公开的实施例描述的各示例的单元及方法步骤,本申请能够以硬件或硬件和计算机软件相结合的形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用场景和设计约束条件。It can be understood that, in order to implement the functions in the above embodiments, the access network device or the terminal device includes corresponding hardware structures and/or software modules that perform each function. Those skilled in the art should easily realize that the units and method steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software driving the hardware depends on the specific application scenarios and design constraints of the technical solution.
图7和图8为本申请的实施例提供的可能的通信装置的结构示意图。这些通信装置可以用于实现上述方法实施例中接入网设备或终端设备的功能,因此也能实现上述方法实施例所具备的有益效果。在本申请的实施例中,该通信装置可以是接入网设备或终端设备,也可以是接入网设备中的模块(如芯片)或终端设备中的模块(如芯片)。Figures 7 and 8 are schematic structural diagrams of possible communication devices provided by embodiments of the present application. These communication devices can be used to implement the functions of the access network equipment or terminal equipment in the above method embodiments, and therefore can also achieve the beneficial effects of the above method embodiments. In the embodiment of the present application, the communication device may be an access network device or a terminal device, or may be a module (such as a chip) in the access network device or a module (such as a chip) in the terminal device.
图7所示的通信装置700包括处理单元710和收发单元720。通信装置700用于实现上述方法实施例中接入网设备或终端设备的功能。收发单元720可以用于实现相应的通信功能。收发单元720还可以称为通信接口或通信单元。处理单元710可以用于实现相应的处理功能。可选地,该通信装置700还包括存储单元,该存储单元可以用于存储指令和/或数据,处理单元710可以读取存储单元中的指令和/或数据,以使得通信装置700实现前述各个方法实施例中的终端设备(如UE)或接入网设备(如基站)的动作。The communication device 700 shown in FIG. 7 includes a processing unit 710 and a transceiver unit 720. The communication device 700 is used to implement the functions of the access network equipment or terminal equipment in the above method embodiment. The transceiver unit 720 may be used to implement corresponding communication functions. The transceiver unit 720 may also be called a communication interface or communication unit. The processing unit 710 may be used to implement corresponding processing functions. Optionally, the communication device 700 further includes a storage unit, which can be used to store instructions and/or data, and the processing unit 710 can read the instructions and/or data in the storage unit, so that the communication device 700 implements each of the foregoing. Actions of terminal equipment (such as UE) or access network equipment (such as base station) in method embodiments.
当该通信装置700用于实现上述方法实施例中的终端设备的功能,收发单元720,用于接收来自接入网设备的对时信息;处理单元710,用于根据该终端设备的当前时间、该对时信息的接收时间和该对时信息,进行时间同步。When the communication device 700 is used to implement the functions of the terminal device in the above method embodiment, the transceiver unit 720 is used to receive time synchronization information from the access network device; the processing unit 710 is used to adjust the time according to the current time of the terminal device, The reception time of the time synchronization information and the time synchronization information are time synchronized.
一种可能的实现方法中,处理单元710,具体用于当满足预设条件,根据该终端设备的当前时间、该对时信息的接收时间和该对时信息,进行时间同步;其中,该预设条件为:该终端设备未在设定时长内从该接入网设备收到新的对时信息;或者,该终端设备在设定时长内从该接入网设备收到第一指示信息和新的对时信息,该第一指示信息指示该新的对时信息不满足该终端设备的对时精度要求。In a possible implementation method, the processing unit 710 is specifically configured to perform time synchronization based on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information when a preset condition is met; wherein, the preset time Assume that the condition is: the terminal device does not receive new time adjustment information from the access network device within a set time period; or the terminal device receives the first indication information and the first indication information from the access network device within a set time period. New time synchronization information, the first indication information indicates that the new time synchronization information does not meet the time synchronization accuracy requirements of the terminal device.
一种可能的实现方法中,该终端设备接收来自接入网设备的对时信息之后,该终端设备存储该对时信息的接收时间和该对时信息。In a possible implementation method, after the terminal device receives the time synchronization information from the access network device, the terminal device stores the reception time of the time synchronization information and the time synchronization information.
一种可能的实现方法中,处理单元710,具体用于确定该终端设备的当前时间与该对时信息的接收时间之间的差值;根据该差值和该对时信息,确定同步时间;根据该同步时间,进行时间同步。In one possible implementation method, the processing unit 710 is specifically configured to determine the difference between the current time of the terminal device and the reception time of the time synchronization information; determine the synchronization time based on the difference and the time synchronization information; Time synchronization is performed based on the synchronization time.
一种可能的实现方法中,该对时信息包括时钟频率比值和时钟偏差,该时钟频率比值表示该终端设备与该接入网设备之间的时钟频率比值,该时钟偏差表示该终端设备与该接入网设备之间的时钟偏差;处理单元710,具体用于确定该差值与该时钟频率比值的比值; 根据该比值、该时钟偏差和该对时信息的接收时间,确定该同步时间。In a possible implementation method, the time synchronization information includes a clock frequency ratio and a clock deviation. The clock frequency ratio represents a clock frequency ratio between the terminal device and the access network device. The clock deviation represents a clock frequency ratio between the terminal device and the access network device. Clock deviation between access network devices; the processing unit 710 is specifically used to determine the ratio of the difference to the clock frequency ratio; The synchronization time is determined based on the ratio, the clock deviation and the reception time of the time synchronization information.
一种可能的实现方法中,该对时信息包括时钟频率比值、传输时延和该对时信息的发送时间,该时钟频率比值表示该终端设备与该接入网设备之间的时钟频率比值,该传输时延表示该终端设备与该接入网设备之间的传输时延;处理单元710,具体用于确定该差值与该时钟频率比值的比值;处理单元710,具体用于根据该比值、该传输时延和该对时信息的发送时间,确定该同步时间。In a possible implementation method, the time synchronization information includes a clock frequency ratio, a transmission delay and a sending time of the time synchronization information. The clock frequency ratio represents a clock frequency ratio between the terminal device and the access network device, The transmission delay represents the transmission delay between the terminal device and the access network device; the processing unit 710 is specifically used to determine the ratio of the difference to the clock frequency ratio; the processing unit 710 is specifically used to determine the ratio according to the ratio , the transmission delay and the sending time of the time synchronization information determine the synchronization time.
一种可能的实现方法中,该对时信息包括时钟偏差变化率、时钟频率比值和时钟偏差,该时钟偏差变化率表示时钟偏差随时间的变化量,该时钟频率比值表示该终端设备与该接入网设备之间的时钟频率比值,该时钟偏差表示该终端设备与该接入网设备之间的时钟偏差;处理单元710,具体用于确定该时钟偏差变化率与该差值的乘积,并确定该乘积与该时钟频率比值的比值;处理单元710,具体用于根据该比值、该时钟偏差和该终端设备的当前时间,确定该同步时间。In a possible implementation method, the time synchronization information includes a clock deviation change rate, a clock frequency ratio, and a clock deviation. The clock deviation change rate represents the change of the clock deviation over time, and the clock frequency ratio represents the clock frequency ratio between the terminal device and the interface. The clock frequency ratio between network access devices, the clock deviation represents the clock deviation between the terminal device and the access network device; the processing unit 710 is specifically used to determine the product of the clock deviation change rate and the difference, and Determine the ratio of the product to the clock frequency ratio; the processing unit 710 is specifically configured to determine the synchronization time based on the ratio, the clock deviation and the current time of the terminal device.
一种可能的实现方法中,收发单元720,还用于接收来自该接入网设备的该设定时长。In a possible implementation method, the transceiver unit 720 is also configured to receive the set duration from the access network device.
一种可能的实现方法中,该设定时长是预设置的。In a possible implementation method, the set time period is preset.
一种可能的实现方法中,收发单元720,还用于发送对时请求消息,该对时请求消息包括该终端设备的标识信息和第二指示信息,该第二指示信息指示为该终端设备提供对时服务。In a possible implementation method, the transceiver unit 720 is also configured to send a time synchronization request message. The time synchronization request message includes identification information of the terminal device and second indication information. The second indication information indicates that the time synchronization request message is provided for the terminal device. On-time service.
一种可能的实现方法中,收发单元720,还用于接收用于指示开启对时功能的信息。In a possible implementation method, the transceiver unit 720 is also used to receive information indicating turning on the time synchronization function.
一种可能的实现方法中,该对时信息包括传输时延和该对时信息的发送时间,该传输时延表示该终端设备与该接入网设备之间的传输时延;处理单元710,还用于根据该终端设备的当前时间、该对时信息的接收时间和该对时信息,进行时间同步之前,根据该传输时延和该对时信息的发送时间,进行时间同步。In a possible implementation method, the time synchronization information includes a transmission delay and a sending time of the time synchronization information. The transmission delay represents the transmission delay between the terminal device and the access network device; the processing unit 710, It is also used to perform time synchronization based on the transmission delay and the sending time of the time synchronization information before performing time synchronization based on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information.
当该通信装置700用于实现上述方法实施例中的接入网设备的功能,处理单元710,用于确定对时信息,该对时信息包括时钟频率比值,该时钟频率比值表示该终端设备与该接入网设备之间的时钟频率比值;收发单元720,用于向终端设备发送该对时信息,该对时信息用于该终端设备进行本地时间同步。When the communication device 700 is used to implement the function of the access network device in the above method embodiment, the processing unit 710 is used to determine the time synchronization information. The time synchronization information includes a clock frequency ratio, and the clock frequency ratio indicates that the terminal equipment and The clock frequency ratio between the access network devices; the transceiver unit 720 is used to send the time synchronization information to the terminal device, and the time synchronization information is used for local time synchronization of the terminal device.
一种可能的实现方法中,该对时信息还包括时钟偏差,该时钟偏差表示该终端设备与该接入网设备之间的时钟偏差。In a possible implementation method, the time synchronization information also includes a clock deviation, where the clock deviation represents a clock deviation between the terminal device and the access network device.
一种可能的实现方法中,该对时信息还包括传输时延和该对时信息的发送时间,该传输时延表示该终端设备与该接入网设备之间的传输时延。In a possible implementation method, the time synchronization information also includes a transmission delay and a sending time of the time synchronization information. The transmission delay represents a transmission delay between the terminal device and the access network device.
一种可能的实现方法中,该对时信息还包括时钟偏差变化率和时钟偏差,该时钟偏差变化率表示时钟偏差随时间的变化量,该时钟偏差表示该终端设备与该接入网设备之间的时钟偏差。In a possible implementation method, the time synchronization information also includes a clock deviation change rate and a clock deviation. The clock deviation change rate represents the change of the clock deviation over time. The clock deviation represents the difference between the terminal device and the access network device. clock skew between.
一种可能的实现方法中,处理单元710,用于确定在第一时间的第一时钟偏差,以及确定在第二时间的第二时钟偏差;根据该第二时钟偏差与该第一时钟偏差的第一差值,以及该第二时间与该第一时间的第二差值,确定该时钟偏差变化率。In a possible implementation method, the processing unit 710 is used to determine the first clock deviation at the first time, and determine the second clock deviation at the second time; according to the difference between the second clock deviation and the first clock deviation. The first difference, and the second difference between the second time and the first time, determine the clock bias change rate.
一种可能的实现方法中,收发单元720,还用于在处理单元710确定对时信息之前,接收指示信息,该指示信息指示为该终端设备提供对时服务。In a possible implementation method, the transceiver unit 720 is also configured to receive indication information indicating that the time synchronization service is provided for the terminal device before the processing unit 710 determines the time synchronization information.
当该通信装置700用于实现上述方法实施例中的时钟管理网元(如TSCTSF网元)的功能,收发单元720,用于接收对时请求消息,该对时请求消息包括终端设备的标识信息 和指示信息,该指示信息指示为该终端设备提供对时服务;处理单元710,用于选择为该终端设备提供对时服务的接入网设备;收发单元720,还用于向策略控制网元发送通知消息,该通知消息包括该终端设备的标识信息、该接入网设备的标识信息和该指示信息。When the communication device 700 is used to implement the function of the clock management network element (such as the TSCTSF network element) in the above method embodiment, the transceiver unit 720 is used to receive a time synchronization request message. The time synchronization request message includes the identification information of the terminal device. and indication information, the indication information indicates that the time synchronization service is provided for the terminal device; the processing unit 710 is used to select the access network device that provides the time synchronization service for the terminal device; the transceiver unit 720 is also used to provide the policy control network element with Send a notification message, which includes the identification information of the terminal device, the identification information of the access network device, and the indication information.
一种可能的实现方法中,收发单元720,还用于向统一数据库网元发送查询消息,该查询消息包括该终端设备的标识信息,该查询消息请求获取为该终端设备提供服务的策略控制网元;接收来自该统一数据库网元的该策略控制网元的标识信息。In a possible implementation method, the transceiver unit 720 is also used to send a query message to the unified database network element. The query message includes the identification information of the terminal device, and the query message requests to obtain the policy control network that provides services for the terminal device. element; receiving the identification information of the policy control network element from the unified database network element.
一种可能的实现方法中,收发单元720,还用于向统一数据管理网元发送请求消息,该请求消息包括该终端设备的标识信息,该请求消息用于请求查询是否授权为该终端设备提供对时服务;接收来自该统一数据管理网元的响应消息,该响应消息指示授权为该终端设备提供对时服务。In a possible implementation method, the transceiver unit 720 is also used to send a request message to the unified data management network element. The request message includes the identification information of the terminal device. The request message is used to request to query whether the terminal device is authorized to provide Time synchronization service; receiving a response message from the unified data management network element, the response message indicating authorization to provide time synchronization service for the terminal device.
一种可能的实现方法中,收发单元720,还用于接收来自该终端设备或应用功能网元的该对时请求消息。In a possible implementation method, the transceiver unit 720 is also configured to receive the time request message from the terminal device or application function network element.
有关上述处理单元710和收发单元720更详细的描述可以直接参考上述方法实施例中相关描述直接得到,这里不加赘述。More detailed descriptions about the above processing unit 710 and the transceiver unit 720 can be obtained directly by referring to the relevant descriptions in the above method embodiments, and will not be described again here.
图8所示的通信装置800包括处理器810和接口电路820。处理器810和接口电路820之间相互耦合。可以理解的是,接口电路820可以为收发器或输入输出接口。可选的,通信装置800还可以包括存储器830,用于存储处理器810执行的指令或存储处理器810运行指令所需要的输入数据或存储处理器810运行指令后产生的数据。The communication device 800 shown in FIG. 8 includes a processor 810 and an interface circuit 820. The processor 810 and the interface circuit 820 are coupled to each other. It can be understood that the interface circuit 820 may be a transceiver or an input-output interface. Optionally, the communication device 800 may also include a memory 830 for storing instructions executed by the processor 810 or input data required for the processor 810 to run the instructions or data generated after the processor 810 executes the instructions.
当通信装置800用于实现上述方法实施例时,处理器810用于实现上述处理单元710的功能,接口电路820用于实现上述收发单元720的功能。When the communication device 800 is used to implement the above method embodiment, the processor 810 is used to realize the function of the above processing unit 710, and the interface circuit 820 is used to realize the function of the above transceiver unit 720.
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(central processing unit,CPU),还可以是其它通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其它可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。It can be understood that the processor in the embodiment of the present application can be a central processing unit (CPU), or other general-purpose processor, digital signal processor (DSP), or application-specific integrated circuit (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. A general-purpose processor can be a microprocessor or any conventional processor.
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器、闪存、只读存储器、可编程只读存储器、可擦除可编程只读存储器、电可擦除可编程只读存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。当然,处理器和存储介质也可以作为分立组件存在于基站或终端中。The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. Software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory In memory, register, hard disk, mobile hard disk, CD-ROM or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage media may be located in an ASIC. Of course, the processor and the storage medium may also exist as discrete components in the base station or terminal.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、基站、UE或者其它可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通 过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘;还可以是半导体介质,例如,固态硬盘。该计算机可读存储介质可以是易失性或非易失性存储介质,或可包括易失性和非易失性两种类型的存储介质。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a base station, a UE, or other programmable devices. The computer program or instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer program or instructions may be transmitted from a website, computer, Server or data center Transmission to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media, such as floppy disks, hard disks, and tapes; optical media, such as digital video optical disks; or semiconductor media, such as solid-state hard drives. The computer-readable storage medium may be volatile or nonvolatile storage media, or may include both volatile and nonvolatile types of storage media.
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In the various embodiments of this application, if there is no special explanation or logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referenced to each other. The technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。在本申请的文字描述中,字符“/”,一般表示前后关联对象是一种“或”的关系;在本申请的公式中,字符“/”,表示前后关联对象是一种“相除”的关系。In this application, "at least one" refers to one or more, and "plurality" refers to two or more. "And/or" describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. In the text description of this application, the character "/" generally indicates that the related objects are in an "or" relationship; in the formula of this application, the character "/" indicates that the related objects are in a "division" relationship. Relationship.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。 It can be understood that the various numerical numbers involved in the embodiments of the present application are only for convenience of description and are not used to limit the scope of the embodiments of the present application. The size of the serial numbers of the above processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic.

Claims (23)

  1. 一种时间同步方法,其特征在于,包括:A time synchronization method, characterized by including:
    终端设备接收来自接入网设备的对时信息;The terminal device receives time synchronization information from the access network device;
    所述终端设备根据所述终端设备的当前时间、所述对时信息的接收时间和所述对时信息,进行时间同步。The terminal device performs time synchronization based on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information.
  2. 如权利要求1所述的方法,其特征在于,所述终端设备根据所述终端设备的当前时间、所述对时信息的接收时间和所述对时信息,进行时间同步,包括:The method of claim 1, wherein the terminal device performs time synchronization based on the current time of the terminal device, the reception time of the time synchronization information and the time synchronization information, including:
    当满足预设条件,所述终端设备根据所述终端设备的当前时间、所述对时信息的接收时间和所述对时信息,进行时间同步;When the preset conditions are met, the terminal device performs time synchronization based on the current time of the terminal device, the reception time of the time synchronization information, and the time synchronization information;
    其中,所述预设条件为:Among them, the preset conditions are:
    所述终端设备未在设定时长内从所述接入网设备收到新的对时信息;或者,The terminal device does not receive new time synchronization information from the access network device within a set time period; or,
    所述终端设备在设定时长内从所述接入网设备收到第一指示信息和新的对时信息,所述第一指示信息指示所述新的对时信息不满足所述终端设备的对时精度要求。The terminal device receives first indication information and new time synchronization information from the access network device within a set time period, and the first indication information indicates that the new time synchronization information does not meet the requirements of the terminal device. Time accuracy requirements.
  3. 如权利要求1或2所述的方法,其特征在于,所述终端设备接收来自接入网设备的对时信息之后,还包括:The method according to claim 1 or 2, characterized in that after the terminal device receives the time synchronization information from the access network device, it further includes:
    所述终端设备存储所述对时信息的接收时间和所述对时信息。The terminal device stores the reception time of the time synchronization information and the time synchronization information.
  4. 如权利要求1至3中任一项所述的方法,其特征在于,所述终端设备根据所述终端设备的当前时间、所述对时信息的接收时间和所述对时信息,进行时间同步,包括:The method according to any one of claims 1 to 3, characterized in that the terminal device performs time synchronization based on the current time of the terminal device, the reception time of the time synchronization information and the time synchronization information. ,include:
    所述终端设备确定所述终端设备的当前时间与所述对时信息的接收时间之间的差值;The terminal device determines a difference between the current time of the terminal device and the reception time of the time information;
    所述终端设备根据所述差值和所述对时信息,确定同步时间;The terminal device determines the synchronization time based on the difference and the time synchronization information;
    所述终端设备根据所述同步时间,进行时间同步。The terminal device performs time synchronization according to the synchronization time.
  5. 如权利要求4所述的方法,其特征在于,所述对时信息包括时钟频率比值和时钟偏差,所述时钟频率比值表示所述终端设备与所述接入网设备之间的时钟频率比值,所述时钟偏差表示所述终端设备与所述接入网设备之间的时钟偏差;The method of claim 4, wherein the time synchronization information includes a clock frequency ratio and a clock deviation, and the clock frequency ratio represents a clock frequency ratio between the terminal device and the access network device, The clock deviation represents the clock deviation between the terminal device and the access network device;
    所述终端设备根据所述差值和所述对时信息,确定同步时间,包括:The terminal device determines the synchronization time based on the difference and the time synchronization information, including:
    所述终端设备确定所述差值与所述时钟频率比值的比值;The terminal device determines a ratio of the difference to the clock frequency ratio;
    所述终端设备根据所述比值、所述时钟偏差和所述对时信息的接收时间,确定所述同步时间。The terminal device determines the synchronization time based on the ratio, the clock deviation and the reception time of the time synchronization information.
  6. 如权利要求4所述的方法,其特征在于,所述对时信息包括时钟频率比值、传输时延和所述对时信息的发送时间,所述时钟频率比值表示所述终端设备与所述接入网设备之间的时钟频率比值,所述传输时延表示所述终端设备与所述接入网设备之间的传输时延;The method according to claim 4, wherein the time synchronization information includes a clock frequency ratio, a transmission delay and a sending time of the time synchronization information, and the clock frequency ratio indicates that the terminal device is connected to the interface. The clock frequency ratio between network access devices, and the transmission delay represents the transmission delay between the terminal device and the access network device;
    所述终端设备根据所述差值和所述对时信息,确定同步时间,包括:The terminal device determines the synchronization time based on the difference and the time synchronization information, including:
    所述终端设备确定所述差值与所述时钟频率比值的比值;The terminal device determines a ratio of the difference to the clock frequency ratio;
    所述终端设备根据所述比值、所述传输时延和所述对时信息的发送时间,确定所述同步时间。The terminal device determines the synchronization time based on the ratio, the transmission delay and the sending time of the time synchronization information.
  7. 如权利要求4所述的方法,其特征在于,所述对时信息包括时钟偏差变化率、时钟频率比值和时钟偏差,所述时钟偏差变化率表示时钟偏差随时间的变化量,所述时钟频率比值表示所述终端设备与所述接入网设备之间的时钟频率比值,所述时钟偏差表示所述终端设备与所述接入网设备之间的时钟偏差; The method of claim 4, wherein the time synchronization information includes a clock deviation change rate, a clock frequency ratio and a clock deviation, the clock deviation change rate represents the change of the clock deviation over time, and the clock frequency The ratio represents the clock frequency ratio between the terminal device and the access network device, and the clock deviation represents the clock deviation between the terminal device and the access network device;
    所述终端设备根据所述差值和所述对时信息,确定同步时间,包括:The terminal device determines the synchronization time based on the difference and the time synchronization information, including:
    所述终端设备确定所述时钟偏差变化率与所述差值的乘积,并确定所述乘积与所述时钟频率比值的比值;The terminal device determines a product of the clock deviation change rate and the difference, and determines a ratio of the product to the clock frequency ratio;
    所述终端设备根据所述比值、所述时钟偏差和所述终端设备的当前时间,确定所述同步时间。The terminal device determines the synchronization time based on the ratio, the clock deviation and the current time of the terminal device.
  8. 如权利要求2中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 2, further comprising:
    所述终端设备接收来自所述接入网设备的所述设定时长。The terminal device receives the set duration from the access network device.
  9. 如权利要求2中任一项所述的方法,其特征在于,所述设定时长是预设置的。The method according to any one of claims 2, characterized in that the set duration is preset.
  10. 如权利要求1至9中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 9, further comprising:
    所述终端设备发送对时请求消息,所述对时请求消息包括所述终端设备的标识信息和第二指示信息,所述第二指示信息指示为所述终端设备提供对时服务。The terminal device sends a time synchronization request message, the time synchronization request message includes identification information of the terminal device and second indication information, and the second indication information indicates that the time synchronization service is provided for the terminal device.
  11. 如权利要求1至10中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 10, further comprising:
    所述终端设备接收用于指示开启对时功能的信息。The terminal device receives information indicating turning on the time synchronization function.
  12. 如权利要求1至4中任一项所述的方法,其特征在于,所述对时信息包括传输时延和所述对时信息的发送时间,所述传输时延表示所述终端设备与所述接入网设备之间的传输时延;The method according to any one of claims 1 to 4, characterized in that the time synchronization information includes a transmission delay and a sending time of the time synchronization information, and the transmission delay represents the time between the terminal device and the time synchronization information. Describe the transmission delay between access network devices;
    所述终端设备根据所述终端设备的当前时间、所述对时信息的接收时间和所述对时信息,进行时间同步之前,还包括:Before the terminal device performs time synchronization based on the current time of the terminal device, the reception time of the time synchronization information and the time synchronization information, it also includes:
    所述终端设备根据所述传输时延和所述对时信息的发送时间,进行时间同步。The terminal device performs time synchronization based on the transmission delay and the sending time of the time synchronization information.
  13. 一种时间同步方法,其特征在于,包括:A time synchronization method, characterized by including:
    接入网设备确定对时信息,所述对时信息包括时钟频率比值,所述时钟频率比值表示所述终端设备与所述接入网设备之间的时钟频率比值;The access network device determines time synchronization information, the time synchronization information includes a clock frequency ratio, and the clock frequency ratio represents a clock frequency ratio between the terminal device and the access network device;
    所述接入网设备向终端设备发送所述对时信息,所述对时信息用于所述终端设备进行本地时间同步。The access network device sends the time synchronization information to the terminal device, and the time synchronization information is used for local time synchronization of the terminal device.
  14. 如权利要求13所述的方法,其特征在于,所述对时信息还包括时钟偏差,所述时钟偏差表示所述终端设备与所述接入网设备之间的时钟偏差。The method of claim 13, wherein the time synchronization information further includes a clock deviation, and the clock deviation represents a clock deviation between the terminal device and the access network device.
  15. 如权利要求13所述的方法,其特征在于,所述对时信息还包括传输时延和所述对时信息的发送时间,所述传输时延表示所述终端设备与所述接入网设备之间的传输时延。The method according to claim 13, wherein the time synchronization information further includes a transmission delay and a sending time of the time synchronization information, and the transmission delay represents the difference between the terminal equipment and the access network equipment. transmission delay between them.
  16. 如权利要求13所述的方法,其特征在于,所述对时信息还包括时钟偏差变化率和时钟偏差,所述时钟偏差变化率表示时钟偏差随时间的变化量,所述时钟偏差表示所述终端设备与所述接入网设备之间的时钟偏差。The method of claim 13, wherein the time synchronization information further includes a clock deviation change rate and a clock deviation. The clock deviation change rate represents the change of the clock deviation over time, and the clock deviation represents the clock deviation. The clock deviation between the terminal equipment and the access network equipment.
  17. 如权利要求16所述的方法,其特征在于,还包括:The method of claim 16, further comprising:
    所述接入网设备确定在第一时间的第一时钟偏差,以及确定在第二时间的第二时钟偏差;The access network device determines a first clock offset at a first time and determines a second clock offset at a second time;
    所述接入网设备根据所述第二时钟偏差与所述第一时钟偏差的第一差值,以及所述第二时间与所述第一时间的第二差值,确定所述时钟偏差变化率。The access network device determines the clock offset change based on a first difference between the second clock offset and the first clock offset, and a second difference between the second time and the first time. Rate.
  18. 如权利要求13至17中任一项所述的方法,其特征在于,所述接入网设备确定对时信息之前,还包括:The method according to any one of claims 13 to 17, characterized in that before the access network device determines the time synchronization information, it further includes:
    所述接入网设备接收指示信息,所述指示信息指示为所述终端设备提供对时服务。The access network device receives indication information, and the indication information indicates providing time synchronization services for the terminal device.
  19. 一种通信装置,其特征在于,包括处理器和存储器,所述存储器和所述处理器耦合, 所述存储器用于存储程序指令,所述处理器用于执行所述程序指令,以实现权利要求1至12中任一项所述的方法。A communication device, characterized in that it includes a processor and a memory, and the memory is coupled to the processor, The memory is used to store program instructions, and the processor is used to execute the program instructions to implement the method according to any one of claims 1 to 12.
  20. 一种通信装置,其特征在于,包括处理器和存储器,所述存储器和所述处理器耦合,所述存储器用于存储程序指令,所述处理器用于执行所述程序指令,以实现权利要求13至18中任一项所述的方法。A communication device, characterized in that it includes a processor and a memory, the memory is coupled to the processor, the memory is used to store program instructions, and the processor is used to execute the program instructions to implement claim 13 The method described in any one of to 18.
  21. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被通信装置执行时,实现如权利要求1至18中任一项所述的方法。A computer program product, characterized in that it includes a computer program, and when the computer program is executed by a communication device, the method according to any one of claims 1 to 18 is implemented.
  22. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序或指令,当所述计算机程序或指令被通信装置执行时,实现如权利要求1至18中任一项所述的方法。A computer-readable storage medium, characterized in that a computer program or instructions are stored in the storage medium. When the computer program or instructions are executed by a communication device, the implementation as described in any one of claims 1 to 18 is achieved. Methods.
  23. 一种通信系统,其特征在于,包括用于执行如权利要求1至12中任一项所述方法的终端设备,和用于执行如权利要求13至18中任一项所述方法的接入网设备。 A communication system, characterized in that it includes a terminal device for performing the method according to any one of claims 1 to 12, and an access for performing the method according to any one of claims 13 to 18. network equipment.
PCT/CN2023/077913 2022-05-31 2023-02-23 Time synchronization method, communication apparatus and communication system WO2023231465A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210613427.3 2022-05-31
CN202210613427.3A CN117202336A (en) 2022-05-31 2022-05-31 Time synchronization method, communication device and communication system

Publications (1)

Publication Number Publication Date
WO2023231465A1 true WO2023231465A1 (en) 2023-12-07

Family

ID=88998460

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/077913 WO2023231465A1 (en) 2022-05-31 2023-02-23 Time synchronization method, communication apparatus and communication system

Country Status (2)

Country Link
CN (1) CN117202336A (en)
WO (1) WO2023231465A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180351676A1 (en) * 2017-06-02 2018-12-06 Apple Inc. Securing time between nodes
CN110557823A (en) * 2018-05-31 2019-12-10 华为技术有限公司 clock synchronization method and device, terminal equipment, chip and readable storage medium
CN110662283A (en) * 2018-06-28 2020-01-07 华为技术有限公司 Clock synchronization method and device
CN111316719A (en) * 2017-11-16 2020-06-19 华为技术有限公司 Time synchronization method and device
US20210281358A1 (en) * 2020-03-08 2021-09-09 MMRFIC Technology Pvt. Ltd. Method, System and Apparatus for Time and Frequency Synchronization for High Speed Moving Platforms

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180351676A1 (en) * 2017-06-02 2018-12-06 Apple Inc. Securing time between nodes
CN111316719A (en) * 2017-11-16 2020-06-19 华为技术有限公司 Time synchronization method and device
CN110557823A (en) * 2018-05-31 2019-12-10 华为技术有限公司 clock synchronization method and device, terminal equipment, chip and readable storage medium
CN110662283A (en) * 2018-06-28 2020-01-07 华为技术有限公司 Clock synchronization method and device
US20210281358A1 (en) * 2020-03-08 2021-09-09 MMRFIC Technology Pvt. Ltd. Method, System and Apparatus for Time and Frequency Synchronization for High Speed Moving Platforms

Also Published As

Publication number Publication date
CN117202336A (en) 2023-12-08

Similar Documents

Publication Publication Date Title
JP7064588B2 (en) Edge network capabilities How to achieve openness, equipment, equipment and storage media
WO2020220747A1 (en) Tsn service processing method, apparatus and system
WO2021135187A1 (en) Slice control method and apparatus
WO2021197185A1 (en) Communication method and communication device
JP7193060B2 (en) COMMUNICATION METHOD, COMMUNICATION DEVICE, AND COMMUNICATION SYSTEM
WO2022016948A1 (en) Communication method and apparatus
WO2021254353A1 (en) Method, device, and system for releasing relay connection
KR20210125842A (en) Apparatus and method for transmitting bridge management information in wireless communication system
WO2023179238A1 (en) Timing method, communication apparatus, and communication system
WO2024032304A1 (en) Clock synchronization guarantee method and apparatus
WO2022222745A1 (en) Communication method and apparatus
US20230018378A1 (en) Parameter configuration method, apparatus and system, device and storage medium
WO2023231465A1 (en) Time synchronization method, communication apparatus and communication system
WO2021218244A1 (en) Communication method, apparatus and system
WO2022067736A1 (en) Communication method and apparatus
WO2023231450A1 (en) Time synchronization method and communication apparatus
WO2023051620A1 (en) Communication method, communication apparatus and communication system
WO2023134431A1 (en) Timing method, communication apparatus, and communication system
WO2023104123A1 (en) Communication method and apparatus, and device
WO2023125392A1 (en) Communication method and apparatus
WO2024051313A1 (en) Communication resource management method, apparatus and system, and storage medium
WO2022165787A1 (en) Parameter configuration method and apparatus, device, and storage medium
WO2023169122A1 (en) Communication method and apparatus
WO2023169127A1 (en) Communication method, terminal device, and communication apparatus
WO2023213177A1 (en) Communication method and apparatus

Legal Events

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

Ref document number: 23814664

Country of ref document: EP

Kind code of ref document: A1