WO2023179238A1 - Timing method, communication apparatus, and communication system - Google Patents

Timing method, communication apparatus, and communication system Download PDF

Info

Publication number
WO2023179238A1
WO2023179238A1 PCT/CN2023/075684 CN2023075684W WO2023179238A1 WO 2023179238 A1 WO2023179238 A1 WO 2023179238A1 CN 2023075684 W CN2023075684 W CN 2023075684W WO 2023179238 A1 WO2023179238 A1 WO 2023179238A1
Authority
WO
WIPO (PCT)
Prior art keywords
clock
information
timing
time
access network
Prior art date
Application number
PCT/CN2023/075684
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 WO2023179238A1 publication Critical patent/WO2023179238A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/004Synchronisation arrangements compensating for timing error of reception due to propagation delay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/0055Synchronisation arrangements determining timing error of reception due to propagation delay
    • H04W56/0065Synchronisation arrangements determining timing error of reception due to propagation delay using measurement of signal travel time

Definitions

  • the present application relates to the field of communication technology, and in particular, to a timing method, communication device and communication system.
  • the timing capability of the fifth generation (5G) network is a network function that can be opened to the outside world. Take the terminal device requesting 5G network timing as an example. The terminal device sends a timing request to the clock management network element of the core network through the access network device. The clock management network element selects the appropriate timing network element based on the timing request, and then instructs the timing network element. The timing network element provides timing services for terminal equipment, that is, the timing network element provides clock information with appropriate clock accuracy to the terminal equipment.
  • Embodiments of the present application provide a timing method, communication device and communication system to reduce timing errors and improve clock synchronization accuracy.
  • embodiments of the present application provide a timing 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 receives the clock information from the timing network element; the access network device performs the processing according to the clock information and the clock information in the access network device.
  • One dwell time to provide timing services for terminal equipment.
  • the access network equipment when the access network equipment provides timing services to the terminal equipment, it not only refers to the clock information from the timing network element, but also considers the residence time caused by the clock information being transmitted within the access network equipment, thereby reducing the time required for the clock information to be transmitted within the access network equipment.
  • the timing error caused by the internal transmission of the access network equipment improves the timing accuracy of the access network equipment in providing timing services to the terminal equipment, thus improving the clock synchronization accuracy of the terminal equipment.
  • the access network device provides timing services for the terminal device based on the clock information and the first residence time of the clock information in the access network device, including: the access network device based on the first residence time of the clock information in the access network device.
  • a dwell time, a clock frequency ratio and the timing information determine the synchronization time.
  • the clock frequency ratio represents the ratio of clock frequencies between the access network device and the timing network element; the access network device sends timing to the terminal device Information, the timing information includes the synchronization time, and the synchronization time is used for clock synchronization of the terminal device.
  • the access network device provides timing services for the terminal device based on the clock information and the first residence time of the clock information in the access network device, including: the access network device based on the first residence time of the clock information in the access network device.
  • a residence time and the clock frequency ratio determine the second residence time of the clock information in the access network device.
  • the clock frequency ratio represents the ratio of clock frequencies between the access network device and the timing network element.
  • the first residence time indicates that the access network equipment
  • the second residence time represents the residence time based on the clock domain of the timing network element; the access network device sends timing information to the terminal device, and the timing information includes the clock information and the During the second residence time, the timing information is used for clock synchronization of the terminal device.
  • the access network device provides timing services to the terminal device based on the clock information and the first residence time of the clock information in the access network device, including: the access network device provides the terminal with The device sends timing information.
  • the timing information includes the first residence time, a clock frequency ratio and the clock information.
  • the clock frequency ratio represents the ratio of clock frequencies between the access network equipment and the timing network element.
  • the timing information is expressed in Perform clock synchronization on the terminal device.
  • the first residence time includes the time when the access network device receives the clock information and the time when the access network device sends the clock information to the terminal device.
  • the access network device receives indication information from a clock management network element, the indication information instructs to measure the clock frequency ratio; the access network device measures the clock frequency ratio according to the indication information.
  • embodiments of the present application provide a timing 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 sends a notification message to the clock management network element.
  • the notification message includes first indication information and identification information of the clock source where clock desynchronization occurs.
  • An indication information indicates that clock desynchronization occurs in the clock source; the access network device receives configuration information from the clock management network element, the configuration information includes second indication information and identification information of the timing network element, and the second indication information indicates Measure the time synchronization information between the clock on the access network device and the clock on the timing network element; the access network device performs clock synchronization on the clock source based on the time synchronization information.
  • the access network device when a clock source on the access network device experiences clock desynchronization, the access network device actively requests the clock management network element to configure a timing network element for time synchronization for the clock source.
  • the access network device After measuring the time synchronization information between the access network equipment and the timing network element, the clock synchronization (i.e., clock synchronization) with the clock source of the timing network element is completed based on the time synchronization information, so that the subsequent access network equipment
  • the clock source of the network access equipment can provide accurate clock information for the terminal equipment, improving the timing accuracy of the access network equipment providing timing services to the terminal equipment, thus improving the clock synchronization accuracy of the terminal equipment.
  • the access network device measures the time synchronization information according to the second indication information.
  • the time synchronization information includes a deviation, which represents a deviation between the clock on the access network device and the clock on the timing network element; the access network device performs the time synchronization based on the time synchronization information.
  • the clock source performs clock synchronization, including: the access network device determines the time synchronization time based on the local time of the clock source and the deviation; the access network device performs clock synchronization on the clock source based on the time synchronization time.
  • the time synchronization information includes a transmission delay, which represents a transmission delay between a clock on the access network device and a clock on the timing network element; the access network device is based on The time synchronization information performs clock synchronization on the clock source, including: the access network equipment determines the time synchronization time based on the clock information from the timing network element and the transmission delay; the access network equipment determines the time synchronization time based on the time synchronization time , perform clock synchronization on this clock source.
  • the access network device receives the clock information from the timing network element.
  • embodiments of the present application provide a timing 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 timing information from the access network device, the timing information includes clock information of the timing network element, and the first stay of the clock information in the access network device.
  • the ratio between time and clock frequency, the first dwell time represents the dwell time based on the clock domain of the access network device, and the clock frequency ratio represents the ratio of clock frequencies between the access network device and the timing network element; It should end
  • the terminal device determines the synchronization time according to the first residence time, the clock frequency ratio and the clock information; the terminal device performs clock synchronization according to the synchronization time.
  • the access network equipment when the access network equipment provides timing services to the terminal equipment, it not only refers to the clock information from the timing network element, but also considers the residence time caused by the clock information being transmitted within the access network equipment, thereby reducing the time required for the clock information to be transmitted within the access network equipment.
  • the timing error caused by the internal transmission of the access network equipment improves the timing accuracy of the access network equipment in providing timing services to the terminal equipment, thus improving the clock synchronization accuracy of the terminal equipment.
  • the terminal device determines the synchronization time based on the first dwell time, the clock frequency ratio and the clock information, including: the terminal device determines the clock based on the first dwell time and the clock frequency ratio.
  • the second residence time of the information in the access network device, the second residence time represents the residence time based on the clock domain of the timing network element; the terminal device determines the residence time based on the second residence time and the clock information. synchronised time.
  • 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-mentioned first aspect or 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 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 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 units or means for executing each step of any implementation method in the above 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 first to third aspects.
  • the processor includes one or more.
  • 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 further provide a computer-readable storage medium, in which instructions are stored, and when run on a communication device, the instructions in the above-mentioned first to third aspects are achieved. Any implementation method is executed.
  • 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 chip system, including: a processor, configured to execute any implementation method in the above first to third aspects.
  • embodiments of the present application further provide a communication system, including a timing network element and an access network device for performing any method of the first aspect.
  • the timing network element is used to send clock information to the access network device.
  • embodiments of the present application further provide a communication system, including a clock management network element, and a system for executing the first Any method of access network equipment in two aspects.
  • the clock management network element is configured to receive a notification message from the access network device.
  • the notification message includes first indication information and identification information of a clock source in which clock desynchronization occurs.
  • the first indication information indicates that the clock source has clock desynchronization. Out of sync; and, sending configuration information to the access network device, the configuration information including second indication information and identification information of the timing network element, the second indication information indicating measuring the clock on the access network device and the timing network element Time synchronization information between clocks on the unit.
  • 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(a) is a flow chart of a timing method provided by an embodiment of the present application.
  • Figure 2(b) is a schematic diagram of a method for determining a clock frequency ratio provided by an embodiment of the present application
  • Figure 3(a) is a flow chart of a timing method provided by an embodiment of the present application.
  • Figure 3(b) is a schematic diagram of a method for determining deviation and transmission delay provided by an embodiment of the present application
  • Figure 4 is a flow chart of a timing method provided by an embodiment of the present application.
  • Figure 5 is a flow chart of a timing method provided by an embodiment of the present application.
  • Figure 6 is a flow chart of a timing 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 elements, UPF network elements, wireless access network (radio access network, RAN) equipment, clock network function (timing network function, TNF) 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 session management function
  • UPF network elements
  • wireless access network radio access network, RAN
  • clock network function timing network function
  • 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
  • Modules or units with partial functions of the base station for example, can be centralized units (CU) or distributed units (CU).
  • 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.
  • 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, downlink data packet storage, etc.
  • 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). Contract signing by the above-mentioned contract users
  • the data can be 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 contexts, authentication data (cookies), and information related to token equivalent authentication and authorization are 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 subscriber's SUPI from the operator network to a third party, it can translate the SUPI into its corresponding external identity (ID).
  • ID 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, and the clock information can also be called time information; 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, for example, It is a UPF network element, a base station, 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 TNF network element.
  • future communications such as 6G, the clock management network element can still be a TNF network element, or have other names.
  • This application does not limit it.
  • the time sensitive communication and time synchronization function (TSCTSF) network element defined by 3GPP such as the TSCTSF network element defined by the 3GPP R17 standard, can be used to support the implementation of the embodiments of the present application. Some or all functions of the TNF network element.
  • 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 employees of the company can be used as terminal devices.
  • the employees' mobile phones or computers can access information and data resources on the company's internal office network.
  • Npcf, Nufr, Nudm, Naf, Namf, and Nsmf are the service interfaces provided by the above-mentioned PCF network element, UDR network element, UDM network element, AF network element, AMF network element, and SMF network element respectively.
  • 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 access Wireless resource control information of 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 user subscription data information from UDR network element.
  • 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 TNF network element, base station, and UE are used as specific examples of the clock management network element, access network equipment, and terminal equipment respectively, and the TNF network element is referred to as TNF for short.
  • Figure 2(a) is a flow chart of a timing method provided by an embodiment of the present application. The method includes the following steps:
  • Step 201 The timing network element sends clock information to the base station.
  • the timing network element here may be TNF, UPF, SMF, etc., and the timing network element is not limited in the embodiment of this application.
  • the clock information represents the time, moment or time point of the clock, and the clock information may also be called time information.
  • the clock information is the clock information provided by the clock source in the timing network element, and the clock information is clock information based on the clock domain of the timing network element.
  • Step 202 The base station provides timing services to the UE based on the clock information and the first residence time of the clock information in the base station.
  • the first dwell time represents the dwell time based on the clock domain of the base station.
  • the first residence time may include the time when the base station receives the clock information and the time when the base station sends the clock information to the UE. For example, when the base station receives the clock information at time T1 and sends the clock information to the UE at time T2, the first residence time is T2. -T1.
  • the base station when the base station provides timing services to the UE, it not only refers to the clock information from the timing network element, but also considers the dwell time caused by the internal transmission of the clock information in the base station, thereby reducing the time caused by the internal transmission of the clock information in the base station.
  • the timing error improves the timing accuracy of the base station in providing timing services to the UE, thus improving the clock synchronization accuracy of the UE.
  • the following describes three different implementation methods for the base station to provide timing services for the UE in the above step 202.
  • Method 1 The base station determines the synchronization time based on the first dwell time, clock frequency ratio and timing information, and then the base station sends the timing information to the UE.
  • the timing information includes the synchronization time, and the UE performs clock synchronization based on the synchronization time.
  • the clock frequency ratio represents the ratio of clock frequencies between the base station and the timing network element.
  • the base station before step 202, the base station also receives indication information from the TNF.
  • the indication information instructs the base station to measure the clock frequency ratio between the base station and the timing network element, and then the base station measures the clock frequency ratio according to the indication information.
  • the synchronization time determined by the base station T3 + (T2 - T1) * ratio, where T3 is the time corresponding to the clock information provided by the timing network element, ratio represents the clock frequency ratio, T2 - T1 is the first residence time, which represents the base station
  • the internal delay (or dwell time) of the base station is based on the clock domain.
  • T2 represents the time when the base station sends clock information to the UE.
  • T1 represents the time when the base station receives the clock information.
  • (T2-T1)*ratio represents the timing network element.
  • the clock domain of the base station is referenced within the The internal delay is to convert the internal delay of the base station based on the clock domain of the base station into the internal delay of the base station based on the clock domain of the timing network element.
  • This (T2-T1)*ratio is also called the second
  • the second residence time still represents the residence time of the clock information inside the base station, but the second residence time is expressed based on the clock domain of the timing network element.
  • Method 2 The base station determines the second residence time of the clock information in the base station based on the ratio of the first residence time and the clock frequency, and then the base station sends the timing information to the UE.
  • the timing information includes the clock information of the timing network element and the second residence time.
  • the UE performs clock synchronization based on the clock information of the timing network element and the second residence time. That is, the UE performs clock synchronization based on the clock information of the timing network element and the second residence time to determine the synchronization time, and performs clock synchronization based on the synchronization time.
  • the clock frequency ratio represents the ratio of clock frequencies between the base station and the timing network element.
  • the base station before step 202, the base station also receives indication information from the TNF.
  • the indication information instructs the base station to measure the clock frequency ratio between the base station and the timing network element, and then the base station measures the clock frequency ratio according to the indication information.
  • the second residence time represents the residence time (or internal delay) based on the clock domain of the timing network element.
  • the second residence time still represents the residence time of the clock information inside the base station, but the second residence time It is expressed based on the clock domain of the timing network element.
  • T3 is the time corresponding to the clock information provided by the timing network element.
  • the internal delay (or dwell time) of the base station T2 represents the time when the base station sends clock information to the UE, and T1 represents the time when the base station receives the clock information.
  • Method 3 The base station sends timing information to the UE.
  • the timing information includes the first dwell time, the clock frequency ratio and the clock information.
  • the UE determines the synchronization time based on the first dwell time, the clock frequency ratio and the clock information, and performs clock synchronization based on the synchronization time.
  • the clock frequency ratio represents the ratio of clock frequencies between the base station and the timing network element.
  • the base station before step 202, the base station also receives indication information from the TNF.
  • the indication information instructs the base station to measure the clock frequency ratio between the base station and the timing network element, and then the base station measures the clock frequency ratio according to the indication information.
  • T3 and (T2-T1)*ratio can refer to the description in method one.
  • FIG. 2(b) is a schematic diagram of a method for determining a clock frequency ratio provided by an embodiment of the present application. The method is as follows:
  • Time t1 The timing network element (such as SMF, UPF, TNF, etc.) sends message 1 to the base station.
  • the header of the message 1 carries the sending time t1 of message 1. This t1 is based on the clock domain of the timing network element. The time recorded for the benchmark;
  • Time t2 The base station receives message 1 at time t2. This t2 is the time recorded based on the clock domain of the base station. The base station records t2 and t1;
  • Time t3 The timing network element sends message 2 to the base station at time t3.
  • the header of message 2 carries the sending time t3 of message 2. This t3 is the time recorded based on the clock domain of the timing network element;
  • Time t4 The base station receives message 2 at time t4. This t4 is the time recorded based on the clock domain of the base station. The base station records t4 and t3.
  • Figure 3(a) is a flow chart of a timing method provided by an embodiment of the present application. The method includes the following steps:
  • Step 301 The base station sends a notification message to the TNF.
  • the notification message includes first indication information and identification information of the clock source where clock desynchronization occurs.
  • the first indication information indicates that clock desynchronization occurs on the clock source.
  • the base station when a clock source on the base station is out of sync due to some reason (such as failure, building obstruction, etc.), the base station sends a notification message to the TNF to inform the TNF: This clock source has clock desynchronization.
  • Step 302 The base station receives configuration information from the TNF.
  • the configuration information includes second indication information and identification information of the timing network element.
  • the second indication information indicates the measurement of time synchronization information between the clock on the base station and the clock on the timing network element.
  • the TNF After receiving the notification message, the TNF selects a timing network element (such as UPF, SMF or the TNF, etc.) for the base station, and then sends configuration information to the base station.
  • the configuration information contains the identification information of the timing network element. and also includes second instruction information used to instruct the base station to measure the time synchronization information between the clock on the base station and the clock on the timing network element.
  • Step 303 The base station synchronizes the clock source according to the time synchronization information.
  • the base station After receiving the configuration information, the base station measures the time synchronization information between the clock on the base station and the clock on the timing network element according to the second instruction information, and based on the time synchronization information, performs a check on the clock source on the base station where clock desynchronization occurs. Clock synchronization enables the normal operation of the clock source.
  • the base station when a clock source on the base station experiences clock desynchronization, the base station actively requests the TNF to configure a timing network element for the clock source for time synchronization.
  • the base station measures the distance between the base station and the timing network element.
  • the clock synchronization i.e., clock synchronization
  • the clock synchronization with the clock source of the timing network element is completed based on the time synchronization information, so that the clock source of the base station can subsequently provide accurate clock information for the UE, improving the
  • the base station provides the UE with the timing accuracy of the timing service, thereby improving the UE's clock synchronization accuracy.
  • the base station may also locally store the time synchronization information between the clock on the base station and the clock on the timing network element, and then the configuration information in the above step 302 may not carry the above second step. indication information, so after the base station receives the configuration information, the base station does not need to temporarily measure the time synchronization information between the clock on the base station and the clock on the timing network element, but obtains the clock on the base station and the clock on the timing network element locally. The base station then performs clock synchronization on the clock source based on the time synchronization information.
  • the time synchronization information between the clock on the base station and the clock on the timing network element that is pre-stored by the base station may be sent by the timing network element to the base station, or may be measured by the base station in step 301. This application is not limited to this. .
  • the base station locally stores the time synchronization information between the clock on the base station and the clock on the timing network element in advance, and the configuration information in the above step 302 carries the above second indication information, then the base station will The indication information measures the time synchronization information between the clock on the base station and the clock on the timing network element.
  • the base station determines that the clock on the timing network element may have failed, so the base station can notify the TNF Re-select a timing network element to provide time synchronization services, or the base station sends a notification message to the TNF to notify that the clock on the timing network element is faulty or abnormal.
  • the following describes two different implementation methods for the base station to synchronize the clock source on the base station that is out of synchronization based on the time synchronization information.
  • the time synchronization information measured by the base station between the clock on the base station and the clock on the timing network element includes a deviation, which represents the deviation between the clock on the base station and the clock on the timing network element.
  • the base station determines the time synchronization time based on the local time of the clock source on the base station where the clock is out of synchronization and the deviation, and then the base station synchronizes the clock source based on the time synchronization time.
  • synchronization time T1 + offset, where T1 represents the local time of the clock source where clock desynchronization occurs, and offset represents the deviation.
  • the time synchronization information measured by the base station between the clock on the base station and the clock on the timing network element includes the transmission delay.
  • the transmission delay represents the transmission delay between the clock on the base station and the clock on the timing network element. .
  • the base station determines the time synchronization time based on the clock information from the timing network element and the transmission delay, and then the base station synchronizes the clock source based on the time synchronization time.
  • time synchronization time T2 + delay, where T2 is the time corresponding to the clock information of the timing network element, and delay represents the transmission delay.
  • Figure 3(b) is a schematic diagram of a method for determining deviation and transmission delay provided by an embodiment of the present application. The method is as follows:
  • Time t1 The base station sends message 1 to the timing network element (such as SMF, UPF, TNF, etc.) at time t1.
  • the header of the message 1 carries the sending time t1 of message 1.
  • the t1 is based on the clock of the base station.
  • the domain is the time recorded as the base;
  • Time t2 The timing network element receives message 1 at time t2. This t2 is the time recorded based on the clock domain of the timing network element;
  • Time t3 The timing network element sends message 2 to the base station at time t3.
  • the header of this message 2 carries the reception time t2 of message 1 and the sending time t3 of message 2.
  • the t3 is based on the time of the timing network element.
  • the clock domain is the time recorded as a reference;
  • Time t4 The base station receives message 2 at time t4. This t4 is the time recorded based on the clock domain of the base station. The base station records t1, t2, t3, and t4.
  • FIG. 2(a) and FIG. 3(a) will be described in detail below with reference to specific embodiments.
  • the following embodiments in Figures 4 and 5 are specific implementations of the above-mentioned embodiment in Figure 2(a), and the following embodiment in Figure 6 is a specific implementation of the above-mentioned embodiment in Figure 3(a).
  • FIG. 4 is a schematic flowchart of a timing method provided by an embodiment of the present application. The method includes the following steps:
  • Step 401a The base station sends a request message to the NRF.
  • the request message includes the identification information of the base station and the timing accuracy of one or more clock sources on the base station.
  • the request message includes the timing accuracy of the one clock source. If there are multiple clock sources on the base station, the request message may include the timing accuracy of one or more clock sources.
  • Step 401b The UPF sends a request message to the NRF.
  • the request message includes the identification information of the UPF and the timing accuracy of one or more clock sources on the UPF.
  • the request message includes the timing accuracy of that clock source. If there are multiple clock sources on the UPF, the request message may include the timing accuracy of one or more clock sources.
  • the other network elements can also send the identification information of the other network elements and one or more clocks on the other network elements to the NRF in the above manner. source timing accuracy.
  • the other network elements may be, for example, SMF, PCF and other network elements.
  • the timing accuracy in the above steps 401a and 401b refers to the unit to which the timing information can be accurate. For example, nanoseconds (ns), microseconds (us), etc.
  • the request messages in the above steps 401a and 401b may be NG Setup Request messages.
  • the execution order between the above steps 401a and 401b is not limited.
  • Step 402a TNF sends a subscription request message to NRF.
  • the subscription request message is used to subscribe to the timing accuracy of the clock network element.
  • the timing accuracy of the clock network element refers to the timing accuracy of the clock source in the clock network element.
  • Step 402b The NRF sends a notification message to the TNF.
  • the notification message includes the identification information of the clock network element and the timing accuracy of the clock network element.
  • the clock network elements here include but are not limited to base stations and UPF.
  • the timing precision of each clock network element can be one or more.
  • steps 402a to 402b describe that the TNF obtains the timing accuracy of each clock network element through subscription.
  • the NRF can also actively send the timing accuracy of each clock network element to the TNF.
  • Step 403 The UE sends a timing request message to the TNF.
  • the timing request message includes the identification information of the UE, the identification information of the base station, and the timing accuracy required by the UE.
  • the identification information of the base station is the identification information of the serving base station of the UE.
  • the timing request message may be a NAS message or a PDU Session Establishment Request message.
  • Step 404a The TNF sends a query request message to the UDM.
  • the query request message includes the identification information of the UE.
  • the query request message is used to request to query the timing accuracy of the UE contract.
  • Step 404b UDM sends a query response message to the TNF, where the query response message includes the timing accuracy contracted by the UE.
  • steps 404a and 404b are optional steps.
  • Step 405 The TNF determines the clock network element that meets the timing accuracy required by the UE.
  • step 405 is specifically: if the timing accuracy contracted by the UE is higher than or equal to the timing accuracy required by the UE, the TNF determines the clock network element that meets the timing accuracy required by the UE. If the timing accuracy contracted by the UE is lower than the timing accuracy required by the UE, the TNF does not determine the clock network element for the UE.
  • the clock network element here can be a base station, UPF, TNF or other network element.
  • the TNF determines that the clock network element that meets the timing accuracy required by the UE is the TNF, indicating that when the timing accuracy of the TNF's clock source meets the timing accuracy required by the UE, the TNF can also determine that it will provide timing services to the UE.
  • step 405 the TNF determines that the clock network element that meets the timing accuracy required by the UE is the TNF, the following steps 406 to 407 are performed after step 405, that is, the TNF provides timing services for the UE.
  • Step 406 The TNF sends timing configuration information to the base station.
  • the timing configuration information includes the identification information of the UE, the clock information of the TNF, and the indication information.
  • the indication information indicates measuring the clock frequency ratio between the base station and the TNF.
  • the timing accuracy corresponding to the clock information of the TNF is the same as the timing accuracy required by the UE.
  • the base station After receiving the timing configuration information, the base station records the time T1 when the timing configuration information is received. And the base station measures the clock frequency ratio between the base station and the TNF according to the instruction information, and the ratio is represented by ratio.
  • Step 407 The base station sends timing information to the UE.
  • the base station after calculating the ratio, sends timing information to the UE.
  • the timing information includes TNF clock information, T1, T2 and ratio.
  • T2 is the sending time of the base station sending timing information to the UE.
  • T2-T1*ratio represents the internal delay of the base station based on the clock domain of TNF, that is, converting the internal delay of the base station based on the clock domain of the base station into the internal delay of the base station based on the clock domain of TNF time delay. Subsequently, the UE implements clock synchronization based on the synchronization time.
  • the TNF selects a clock network element that provides timing services for the UE.
  • the clock network element provides the UE with clock information that meets the timing accuracy required by the UE, which can provide the UE with clock information with appropriate timing accuracy.
  • this solution not only refers to the clock information provided by the clock network element, but also refers to the transmission delay of the clock information provided by the clock network element within the base station, so it can reduce the clock network The error caused by the clock information provided by the UE during the transmission process is eliminated, thereby improving the clock synchronization accuracy of the UE.
  • FIG. 5 is a flow chart of a timing method provided by an embodiment of the present application. The method includes the following steps:
  • Step 501a is the same as step 401a above.
  • Step 501b is the same as step 401b above.
  • the execution order between the above steps 501a and 501b is not limited.
  • Step 502a is the same as step 402a above.
  • Step 502b is the same as step 402b above.
  • Step 503 is the same as step 403 above.
  • Step 504a is the same as step 404a above.
  • Step 504b is the same as step 404b above.
  • Step 505 is the same as step 405 above.
  • step 505 the TNF determines that the clock network element that meets the timing accuracy required by the UE is UPF, the following steps 506 to 509 are performed after step 505, that is, the UPF provides timing services for the UE.
  • Step 506 The TNF sends timing configuration information to the UPF.
  • the timing configuration information includes the identification information of the UE, the identification information of the base station, the timing accuracy required by the UE, and indication information.
  • the indication information is used to instruct the UPF to provide timing services for the UE.
  • Step 507 The TNF sends timing configuration information to the base station.
  • the timing configuration information includes the identification information of the UE, the identification information of the UPF, and indication information.
  • the indication information indicates measuring the clock frequency ratio between the base station and the UPF.
  • the base station measures the clock frequency ratio between the base station and the TNF based on the instruction information.
  • the ratio is expressed as ratio.
  • the execution order of the above steps 506 and 507 is not limited.
  • Step 508 The UPF sends timing information 1 to the base station.
  • the timing information 1 includes the identification information of the UE and the clock information of the UPF.
  • the timing accuracy corresponding to the clock information of the UPF is the same as the timing accuracy required by the UE.
  • the base station After receiving the timing information 1, the base station records the time T1 when the timing information 1 is received.
  • Step 509 The base station sends timing information 2 to the UE.
  • the base station after receiving the timing information 1 from the UPF, the base station sends the timing information 2 to the UE.
  • the timing information 2 includes the clock information of the UPF, T1, T2 and ratio.
  • the T2 is the timing information sent by the base station to the UE. 2 hours.
  • (T2-T1)*ratio represents the internal delay of the base station based on the UPF clock domain, that is, converting the internal delay of the base station based on the clock domain of the base station into the base station based on the UPF clock domain Internal delay. Subsequently, the UE implements clock synchronization based on the synchronization time.
  • the base station after receiving the timing information 1 from the UPF, the base station further determines the sending time (represented by T2) of the timing information 2 sent by the base station to the UE, and calculates the UPF clock based on T1, T2 and ratio.
  • the internal delay of the base station based on the UPF domain, and then the timing information 2 sent to the UE includes the clock information of the UPF and the internal delay of the base station based on the UPF clock domain, where the base station based on the UPF clock domain
  • the internal delay (T2-T1)*ratio.
  • the base station after receiving the timing information 1 from the UPF, the base station further determines the time (represented by T2) when the base station sends the timing information 2 to the UE, and calculates the UPF clock domain based on T1, T2 and ratio.
  • the internal delay of the base station as the reference, and the synchronization time calculated by the base station T3 + the internal delay of the base station with the UPF clock domain as the reference, where T3 is the time corresponding to the UPF clock information, and the UPF clock domain as the reference
  • the internal delay of the base station (T2-T1)*ratio.
  • the timing information 2 sent by the base station to the UE includes the synchronization time. Subsequently, the UE implements clock synchronization based on the synchronization time.
  • the TNF selects a clock network element that provides timing services for the UE.
  • the clock network element provides the UE with clock information that meets the timing accuracy required by the UE, which can provide the UE with clock information with appropriate timing accuracy.
  • this solution not only refers to the clock information provided by the clock network element, but also refers to the transmission delay of the clock information provided by the clock network element within the base station, so it can reduce the clock network The error caused by the clock information provided by the UE during the transmission process is eliminated, thereby improving the clock synchronization accuracy of the UE.
  • FIG. 6 is a flow chart of a timing method provided by an embodiment of the present application.
  • clock desynchronization occurs in a certain clock source on the base station.
  • the clock source cannot receive clock information used for time adjustment, resulting in clock desynchronization, which in turn causes the clock source of the base station to be unable to continue to provide timing services for the UE.
  • the method includes the following steps:
  • Step 601a is the same as step 401a above.
  • Step 601b is the same as step 401b above.
  • the execution order between the above steps 601a and 601b is not limited.
  • Step 602a is the same as step 402a above.
  • Step 602b is the same as step 402b above.
  • Step 603a The base station provides timing services for the UE.
  • the specific process of this step is: the UE sends a timing request message to the base station.
  • the timing request message includes the identification information of the UE and the timing accuracy required by the UE.
  • the base station sends the timing request message to the AMF, and the AMF sends the timing request message to the TNF.
  • the TNF determines that the base station meets the timing accuracy required by the UE, and then notifies the base station to provide timing services for the UE, so that the base station sends the clock information of the base station to the UE, and then the UE implements clock synchronization based on the clock information.
  • Step 603b The clock source on the base station is out of sync and cannot continue to provide timing services to the UE.
  • the base station sends a clock out of sync notification message to the TNF.
  • the clock out of sync notification message includes indication information and the clock source where the clock is out of sync.
  • This indication information is used to indicate that the clock source of the base station is out of synchronization.
  • the reason for clock desynchronization may be that the clock signal received by the base station for time synchronization is blocked, causing the base station to be unable to perform clock synchronization on the clock source based on the clock information in the clock signal.
  • the clock source of the base station is synchronized by receiving the global navigation satellite system (GNSS) signal. If the base station cannot receive the GNSS signal, it cannot synchronize the clock source of the base station based on the clock information in the GNSS signal. to synchronize.
  • GNSS global navigation satellite system
  • the identification information of the clock source where clock desynchronization occurs may be the clock domain number of the clock source.
  • the clock desynchronization notification message does not need to carry the identification information of the clock source where clock desynchronization occurs.
  • TNF can learn the clock source where clock desynchronization occurs based on the identification information of the base station.
  • Step 604 The TNF determines the clock network element that provides time synchronization services for the base station based on the identification information of the clock source where clock desynchronization occurs.
  • the clock network element that provides time synchronization services for the base station is configured with a target clock source.
  • the target clock source can provide a target timing accuracy that is the same as the timing accuracy corresponding to the clock source where clock desynchronization occurs.
  • the clock network element that provides the time synchronization service for the base station is the UPF
  • the following steps 605 to 608 are performed after step 604, that is, the UPF provides the time synchronization service for the base station.
  • Step 605 The TNF sends time synchronization configuration information to the UPF.
  • the time synchronization configuration information includes the base station's identification information, timing accuracy, and indication information.
  • the indication information is used to instruct the UPF to provide time synchronization services for the base station.
  • the timing accuracy is the timing accuracy corresponding to the clock source on the base station where clock desynchronization occurs.
  • Step 606 The TNF sends time synchronization configuration information to the base station.
  • the time synchronization configuration information includes UPF identification information, timing accuracy, and indication information.
  • the indication information indicates measuring the time synchronization information between the clock on the base station and the clock on the UPF. .
  • the timing accuracy is the timing accuracy corresponding to the clock source on the base station where clock desynchronization occurs.
  • the base station measures the time synchronization information between the clock on the base station and the clock on the UPF according to the instruction information.
  • the timing information includes an offset.
  • the time synchronization information includes transmission delay.
  • the execution order of the above steps 605 and 606 is not limited.
  • Step 607 The UPF sends timing information to the base station.
  • the timing information includes the clock information of the UPF.
  • This step 608 is an optional step.
  • the timing accuracy corresponding to the clock information of the UPF is the same as the timing accuracy of the clock source on the base station where clock desynchronization occurs.
  • Step 608 The base station completes clock synchronization with the UPF based on the time synchronization information.
  • step 608 is specifically: the base station determines the time synchronization time based on the local time of the clock source where the clock desynchronization occurs and the deviation, And complete the clock synchronization with UPF according to the time synchronization time.
  • the time adjustment time T1 + offset, where T1 represents the local time of the clock source where clock desynchronization occurs, and offset represents the deviation.
  • the base station when the clock source in the base station is out of synchronization, the base station notifies the TNF to select a clock network element that provides time synchronization services for the base station, and then the clock network element provides time synchronization services for the base station to maintain the clock of the base station. accuracy.
  • 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 clock information from the timing network element; the processing unit 710 is used to calculate the clock information according to the clock information and the clock information.
  • timing services are provided for the terminal equipment.
  • the processing unit 710 is specifically configured to determine the synchronization time based on the first residence time, a clock frequency ratio and the timing information.
  • the clock frequency ratio represents the relationship between the access network device and the timing network element. and sending timing information to the terminal device through the transceiver unit 720.
  • the timing information includes the synchronization time, and the synchronization time is used for clock synchronization of the terminal device.
  • the processing unit 710 is specifically configured to determine the second residence time of the clock information in the access network device based on the first residence time and the clock frequency ratio, the clock frequency ratio indicating the The ratio of the clock frequency between the access network device and the timing network element.
  • the first dwell time represents the dwell time based on the clock domain of the access network device.
  • the second dwell time represents the dwell time based on the clock domain of the timing network element.
  • the residence time based on the clock domain; and sending timing information to the terminal device through the transceiver unit 720, where the timing information includes the clock information and the second residence time, and the timing information is used for clock synchronization of the terminal device.
  • the processing unit 710 is specifically configured to send timing information to the terminal device through the transceiver unit 720.
  • the timing information includes the first residence time, a clock frequency ratio and the clock information.
  • the clock frequency ratio Indicates the ratio of clock frequencies between the access network equipment and the timing network element.
  • the timing information is used for clock synchronization of the terminal equipment.
  • the first residence time includes the time when the access network device receives the clock information and the time when the access network device sends the clock information to the terminal device.
  • the transceiver unit 720 is also configured to receive indication information from the clock management network element, the indication information instructing to measure the clock frequency ratio; the processing unit 710 is also configured to measure the clock frequency ratio according to the indication information. Clock frequency ratio.
  • the transceiver unit 720 is used to send a notification message to the clock management network element.
  • the notification message includes the first indication information and the occurrence of clock desynchronization.
  • Identification information of the clock source the first indication information indicates that clock desynchronization occurs in the clock source; receiving configuration information from the clock management network element, the configuration information includes second indication information and identification information of the timing network element, the second
  • the instruction information indicates measuring the time synchronization information between the clock on the access network device and the clock on the timing network element; the processing unit 710 is configured to perform clock synchronization on the clock source based on the time synchronization information.
  • the processing unit 710 is also configured to measure the time synchronization information according to the second indication information.
  • the time synchronization information includes a deviation, which represents a deviation between the clock on the access network device and the clock on the timing network element; the processing unit 710 is specifically configured to calculate the clock source according to the clock source. The local time and the deviation are used to determine the time synchronization time; based on the time synchronization time, clock synchronization is performed on the clock source.
  • the time synchronization information includes a transmission delay, which represents a transmission delay between the clock on the access network device and the clock on the timing network element; the processing unit 710, specifically It is used to determine the time synchronization time based on the clock information from the timing network element and the transmission delay; and perform clock synchronization on the clock source based on the time synchronization time.
  • a transmission delay which represents a transmission delay between the clock on the access network device and the clock on the timing network element
  • the processing unit 710 specifically It is used to determine the time synchronization time based on the clock information from the timing network element and the transmission delay; and perform clock synchronization on the clock source based on the time synchronization time.
  • the transceiver unit 720 is also used to receive the clock information from the timing network element.
  • the transceiver unit 720 is used to receive timing information from the access network device.
  • the timing information includes the clock information of the timing network element, the clock information in The ratio between the first dwell time and the clock frequency in the access network device.
  • the first dwell time represents the dwell time based on the clock domain of the access network device.
  • the clock frequency ratio represents the ratio between the access network device and the timing service.
  • the ratio of clock frequencies between network elements; the processing unit 710 is configured to determine the synchronization time according to the first residence time, the clock frequency ratio and the clock information; and perform clock synchronization according to the synchronization time.
  • the processing unit 710 is specifically configured to determine the second residence time of the clock information in the access network device according to the first residence time and the clock frequency ratio, and the second residence time represents The dwell time is based on the clock domain of the timing network element; the synchronization time is determined based on the second dwell time and the clock information.
  • 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, A server or data center transmits via wired or wireless means to another website site, computer, server, or data center.
  • 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.
  • “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.
  • the character “/” generally indicates that the related objects before and after are an “or” relationship; in the formula of this application, the character “/” indicates that the related objects before and after are a kind of "division” Relationship.

Abstract

Provided in the embodiments of the present application are a timing method, a communication apparatus, and a communication system. The method comprises: an access network device receiving clock information from a timing network element; and the access network device providing a time service for a network device according to the clock information and a first duration of stay of the clock information within the access network device. In the solution, an access network device provides a time service for a terminal device not only with reference to clock information from a timing network element, but also in consideration of a duration of stay of the clock information due to the transmission of the clock information in the access network device, such that a timing error caused by the transmission of the clock information in the access network device is reduced, and the timing accuracy of the access network device providing the time service for the terminal device is improved, thereby improving the accuracy of clock synchronization of the terminal device.

Description

一种授时方法、通信装置及通信系统Timing method, communication device and communication system
相关申请的交叉引用Cross-references to related applications
本申请要求在2022年03月25日提交中国专利局、申请号为202210306010.2、申请名称为“一种授时方法、通信装置及通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the China Patent Office on March 25, 2022, with application number 202210306010.2 and application title "A timing 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 timing method, communication device and communication system.
背景技术Background technique
第五代(5th generation,5G)网络的授时能力,是一种可以开放给外部的网络功能。以终端设备请求5G网络授时为例,终端设备通过接入网设备向核心网的时钟管理网元发送授时请求,时钟管理网元根据该授时请求,选择合适的授时网元,然后指示该授时网元为终端设备提供授时服务,也即该授时网元向终端设备提供合适时钟精度的时钟信息。The timing capability of the fifth generation (5G) network is a network function that can be opened to the outside world. Take the terminal device requesting 5G network timing as an example. The terminal device sends a timing request to the clock management network element of the core network through the access network device. The clock management network element selects the appropriate timing network element based on the timing request, and then instructs the timing network element. The timing network element provides timing services for terminal equipment, that is, the timing network element provides clock information with appropriate clock accuracy to the terminal equipment.
如何减少授时误差,提升时钟同步精度,有待解决。How to reduce timing errors and improve clock synchronization accuracy remains to be solved.
发明内容Contents of the invention
本申请实施例提供一种授时方法、通信装置及通信系统,用以减少授时误差,提升时钟同步精度。Embodiments of the present application provide a timing method, communication device and communication system to reduce timing errors and improve clock synchronization accuracy.
第一方面,本申请实施例提供一种授时方法,该方法可以由接入网设备或接入网设备中的模块(如芯片)来执行。以接入网设备执行该方法为例,该方法包括:接入网设备接收来自授时网元的时钟信息;该接入网设备根据该时钟信息和该时钟信息在该接入网设备内的第一停留时间,为终端设备提供授时服务。In the first aspect, embodiments of the present application provide a timing 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 receives the clock information from the timing network element; the access network device performs the processing according to the clock information and the clock information in the access network device. One dwell time to provide timing services for terminal equipment.
上述方案,接入网设备为终端设备提供授时服务时,不仅参考了来自授时网元的时钟信息,还考虑了该时钟信息在接入网设备内部传输带来的停留时间,从而减少时钟信息在接入网设备内部传输时带来的授时误差,提升了接入网设备为终端设备提供授时服务的授时精度,因而可以提升终端设备的时钟同步精度。In the above scheme, when the access network equipment provides timing services to the terminal equipment, it not only refers to the clock information from the timing network element, but also considers the residence time caused by the clock information being transmitted within the access network equipment, thereby reducing the time required for the clock information to be transmitted within the access network equipment. The timing error caused by the internal transmission of the access network equipment improves the timing accuracy of the access network equipment in providing timing services to the terminal equipment, thus improving the clock synchronization accuracy of the terminal equipment.
在一种实现方法中,该接入网设备根据该时钟信息和该时钟信息在该接入网设备内的第一停留时间,为终端设备提供授时服务,包括:该接入网设备根据该第一停留时间、时钟频率比值和该授时信息,确定同步时间,该时钟频率比值表示该接入网设备与该授时网元之间的时钟频率之比;该接入网设备向该终端设备发送授时信息,该授时信息包括该同步时间,该同步时间用于该终端设备进行时钟同步。In an implementation method, the access network device provides timing services for the terminal device based on the clock information and the first residence time of the clock information in the access network device, including: the access network device based on the first residence time of the clock information in the access network device. A dwell time, a clock frequency ratio and the timing information determine the synchronization time. The clock frequency ratio represents the ratio of clock frequencies between the access network device and the timing network element; the access network device sends timing to the terminal device Information, the timing information includes the synchronization time, and the synchronization time is used for clock synchronization of the terminal device.
在一种实现方法中,该接入网设备根据该时钟信息和该时钟信息在该接入网设备内的第一停留时间,为终端设备提供授时服务,包括:该接入网设备根据该第一停留时间和该时钟频率比值,确定该时钟信息在该接入网设备内的第二停留时间,该时钟频率比值表示该接入网设备与该授时网元之间的时钟频率之比,该第一停留时间表示以该接入网设备的 时钟域为基准的停留时间,该第二停留时间表示以该授时网元的时钟域为基准的停留时间;该接入网设备向该终端设备发送授时信息,该授时信息包括该时钟信息和该第二停留时间,该授时信息用于该终端设备进行时钟同步。In an implementation method, the access network device provides timing services for the terminal device based on the clock information and the first residence time of the clock information in the access network device, including: the access network device based on the first residence time of the clock information in the access network device. A residence time and the clock frequency ratio determine the second residence time of the clock information in the access network device. The clock frequency ratio represents the ratio of clock frequencies between the access network device and the timing network element. The first residence time indicates that the access network equipment The second residence time represents the residence time based on the clock domain of the timing network element; the access network device sends timing information to the terminal device, and the timing information includes the clock information and the During the second residence time, the timing information is used for clock synchronization of the terminal device.
在一种实现方法中,该接入网设备根据该时钟信息和该时钟信息在该接入网设备内的第一停留时间,为终端设备提供授时服务,包括:该接入网设备向该终端设备发送授时信息,该授时信息包括该第一停留时间、时钟频率比值和该时钟信息,该时钟频率比值表示该接入网设备与该授时网元之间的时钟频率之比,该授时信息用于该终端设备进行时钟同步。In an implementation method, the access network device provides timing services to the terminal device based on the clock information and the first residence time of the clock information in the access network device, including: the access network device provides the terminal with The device sends timing information. The timing information includes the first residence time, a clock frequency ratio and the clock information. The clock frequency ratio represents the ratio of clock frequencies between the access network equipment and the timing network element. The timing information is expressed in Perform clock synchronization on the terminal device.
在一种实现方法中,该第一停留时间包括该接入网设备收到该时钟信息的时间和该接入网设备向该终端设备发送该时钟信息的时间。In an implementation method, the first residence time includes the time when the access network device receives the clock information and the time when the access network device sends the clock information to the terminal device.
在一种实现方法中,该接入网设备接收来自时钟管理网元的指示信息,该指示信息指示测量该时钟频率比值;该接入网设备根据该指示信息,测量该时钟频率比值。In an implementation method, the access network device receives indication information from a clock management network element, the indication information instructs to measure the clock frequency ratio; the access network device measures the clock frequency ratio according to the indication information.
第二方面,本申请实施例提供一种授时方法,该方法可以由接入网设备或接入网设备中的模块(如芯片)来执行。以接入网设备执行该方法为例,该方法包括:接入网设备向时钟管理网元发送通知消息,该通知消息包括第一指示信息和发生时钟失步的时钟源的标识信息,该第一指示信息指示该时钟源发生时钟失步;该接入网设备接收来自该时钟管理网元的配置信息,该配置信息包括第二指示信息和授时网元的标识信息,该第二指示信息指示测量该接入网设备上的时钟与该授时网元上的时钟之间的对时信息;该接入网设备根据该对时信息,对该时钟源进行时钟同步。In the second aspect, embodiments of the present application provide a timing 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 sends a notification message to the clock management network element. The notification message includes first indication information and identification information of the clock source where clock desynchronization occurs. An indication information indicates that clock desynchronization occurs in the clock source; the access network device receives configuration information from the clock management network element, the configuration information includes second indication information and identification information of the timing network element, and the second indication information indicates Measure the time synchronization information between the clock on the access network device and the clock on the timing network element; the access network device performs clock synchronization on the clock source based on the time synchronization information.
上述方案,当接入网设备上的某个时钟源发生时钟失步,则该接入网设备主动请求时钟管理网元为该时钟源配置一个用于对时的授时网元,接入网设备在测量出接入网设备与该授时网元之间的对时信息后,根据该对时信息完成与该授时网元的时钟源之间的时钟对时(即时钟同步),从而后续该接入网设备的该时钟源可以为终端设备提供精确的时钟信息,提升了接入网设备为终端设备提供授时服务的授时精度,因而可以提升终端设备的时钟同步精度。In the above scheme, when a clock source on the access network device experiences clock desynchronization, the access network device actively requests the clock management network element to configure a timing network element for time synchronization for the clock source. The access network device After measuring the time synchronization information between the access network equipment and the timing network element, the clock synchronization (i.e., clock synchronization) with the clock source of the timing network element is completed based on the time synchronization information, so that the subsequent access network equipment The clock source of the network access equipment can provide accurate clock information for the terminal equipment, improving the timing accuracy of the access network equipment providing timing services to the terminal equipment, thus improving the clock synchronization accuracy of the terminal equipment.
在一种实现方法中,该接入网设备根据该第二指示信息,测量该对时信息。In an implementation method, the access network device measures the time synchronization information according to the second indication information.
在一种实现方法中,该对时信息包括偏差,该偏差表示该接入网设备上的时钟与该授时网元上的时钟之间的偏差;该接入网设备根据该对时信息,对该时钟源进行时钟同步,包括:该接入网设备根据该时钟源的本地时间和该偏差,确定对时时间;该接入网设备根据该对时时间,对该时钟源进行时钟同步。In one implementation method, the time synchronization information includes a deviation, which represents a deviation between the clock on the access network device and the clock on the timing network element; the access network device performs the time synchronization based on the time synchronization information. The clock source performs clock synchronization, including: the access network device determines the time synchronization time based on the local time of the clock source and the deviation; the access network device performs clock synchronization on the clock source based on the time synchronization time.
在一种实现方法中,该对时信息包括传输时延,该传输时延表示该接入网设备上的时钟与该授时网元上的时钟之间的传输时延;该接入网设备根据该对时信息,对该时钟源进行时钟同步,包括:该接入网设备根据来自该授时网元的时钟信息和该传输时延,确定对时时间;该接入网设备根据该对时时间,对该时钟源进行时钟同步。In an implementation method, the time synchronization information includes a transmission delay, which represents a transmission delay between a clock on the access network device and a clock on the timing network element; the access network device is based on The time synchronization information performs clock synchronization on the clock source, including: the access network equipment determines the time synchronization time based on the clock information from the timing network element and the transmission delay; the access network equipment determines the time synchronization time based on the time synchronization time , perform clock synchronization on this clock source.
在一种实现方法中,该接入网设备接收来自该授时网元的该时钟信息。In an implementation method, the access network device receives the clock information from the timing network element.
第三方面,本申请实施例提供一种授时方法,该方法可以由终端设备或终端设备中的模块(如芯片)来执行。以终端设备执行该方法为例,该方法包括:终端设备接收来自接入网设备的授时信息,该授时信息包括授时网元的时钟信息、该时钟信息在该接入网设备内的第一停留时间和时钟频率比值,该第一停留时间表示以该接入网设备的时钟域为基准的停留时间,该时钟频率比值表示该接入网设备与该授时网元之间的时钟频率之比;该终 端设备根据该第一停留时间、该时钟频率比值和该时钟信息,确定同步时间;该终端设备根据该同步时间进行时钟同步。In the third aspect, embodiments of the present application provide a timing 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 timing information from the access network device, the timing information includes clock information of the timing network element, and the first stay of the clock information in the access network device. The ratio between time and clock frequency, the first dwell time represents the dwell time based on the clock domain of the access network device, and the clock frequency ratio represents the ratio of clock frequencies between the access network device and the timing network element; It should end The terminal device determines the synchronization time according to the first residence time, the clock frequency ratio and the clock information; the terminal device performs clock synchronization according to the synchronization time.
上述方案,接入网设备为终端设备提供授时服务时,不仅参考了来自授时网元的时钟信息,还考虑了该时钟信息在接入网设备内部传输带来的停留时间,从而减少时钟信息在接入网设备内部传输时带来的授时误差,提升了接入网设备为终端设备提供授时服务的授时精度,因而可以提升终端设备的时钟同步精度。In the above scheme, when the access network equipment provides timing services to the terminal equipment, it not only refers to the clock information from the timing network element, but also considers the residence time caused by the clock information being transmitted within the access network equipment, thereby reducing the time required for the clock information to be transmitted within the access network equipment. The timing error caused by the internal transmission of the access network equipment improves the timing accuracy of the access network equipment in providing timing services to the terminal equipment, thus improving the clock synchronization accuracy of the terminal equipment.
在一种实现方法中,该终端设备根据该第一停留时间、该时钟频率比值和该时钟信息,确定同步时间,包括:该终端设备根据该第一停留时间和该时钟频率比值,确定该时钟信息在该接入网设备内的第二停留时间,该第二停留时间表示以该授时网元的时钟域为基准的停留时间;该终端设备根据该第二停留时间和该时钟信息,确定该同步时间。In an implementation method, the terminal device determines the synchronization time based on the first dwell time, the clock frequency ratio and the clock information, including: the terminal device determines the clock based on the first dwell time and the clock frequency ratio. The second residence time of the information in the access network device, the second residence time represents the residence time based on the clock domain of the timing network element; the terminal device determines the residence time based on the second residence time and the clock information. synchronised time.
第四方面,本申请实施例提供一种通信装置,该装置可以是接入网设备或接入网设备中的模块(如芯片)。该装置具有实现上述第一方面或第二方面的任意实现方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In the fourth 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-mentioned first aspect or 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 fifth 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 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.
第六方面,本申请实施例提供一种通信装置,包括用于执行上述第一方面至第三方面中的任意实现方法的各个步骤的单元或手段(means)。In a sixth aspect, embodiments of the present application provide a communication device, including units or means for executing each step of any implementation method in the above first to third aspects.
第七方面,本申请实施例提供一种通信装置,包括与存储器耦合的处理器,该处理器用于调用所述存储器中存储的程序,以执行上述第一方面至第三方面中的任意实现方法。该存储器可以位于该装置之内,也可以位于该装置之外。且该处理器可以是一个或多个。In a seventh 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 an eighth 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 first to third aspects. The processor includes one or more.
第九方面,本申请实施例提供一种通信装置,包括处理器和存储器;该存储器用于存储计算机指令,当该装置运行时,该处理器执行该存储器存储的计算机指令,以使该装置执行上述第一方面至第三方面中的任意实现方法。In a ninth 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.
第十方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在通信装置上运行时,使得上述第一方面至第三方面中的任意实现方法被执行。In a tenth 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 above-mentioned first to third aspects are achieved. Any implementation method is executed.
第十一方面,本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序或指令,当计算机程序或指令被通信装置运行时,使得上述第一方面至第三方面中的任意实现方法被执行。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 chip system, including: a processor, configured to execute any implementation method in the above first to third aspects.
第十三方面,本申请实施例还提供一种通信系统,包括授时网元,和用于执行第一方面的任意方法的接入网设备。该授时网元,用于向该接入网设备发送时钟信息。In a thirteenth aspect, embodiments of the present application further provide a communication system, including a timing network element and an access network device for performing any method of the first aspect. The timing network element is used to send clock information to the access network device.
第十四方面,本申请实施例还提供一种通信系统,包括时钟管理网元,和用于执行第 二方面的任意方法的接入网设备。该时钟管理网元,用于接收来自该接入网设备的通知消息,该通知消息包括第一指示信息和发生时钟失步的时钟源的标识信息,该第一指示信息指示该时钟源发生时钟失步;以及,向该接入网设备发送配置信息,该配置信息包括第二指示信息和授时网元的标识信息,该第二指示信息指示测量该接入网设备上的时钟与该授时网元上的时钟之间的对时信息。In a fourteenth aspect, embodiments of the present application further provide a communication system, including a clock management network element, and a system for executing the first Any method of access network equipment in two aspects. The clock management network element is configured to receive a notification message from the access network device. The notification message includes first indication information and identification information of a clock source in which clock desynchronization occurs. The first indication information indicates that the clock source has clock desynchronization. Out of sync; and, sending configuration information to the access network device, the configuration information including second indication information and identification information of the timing network element, the second indication information indicating measuring the clock on the access network device and the timing network element Time synchronization information between clocks on the unit.
附图说明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(a)为本申请实施例提供的一种授时方法的流程图;Figure 2(a) is a flow chart of a timing method provided by an embodiment of the present application;
图2(b)为本申请实施例提供的确定时钟频率比值的方法示意图;Figure 2(b) is a schematic diagram of a method for determining a clock frequency ratio provided by an embodiment of the present application;
图3(a)为本申请实施例提供的一种授时方法的流程图;Figure 3(a) is a flow chart of a timing method provided by an embodiment of the present application;
图3(b)为本申请实施例提供的确定偏差和传输时延的方法示意图;Figure 3(b) is a schematic diagram of a method for determining deviation and transmission delay provided by an embodiment of the present application;
图4为本申请实施例提供的一种授时方法的流程图;Figure 4 is a flow chart of a timing method provided by an embodiment of the present application;
图5为本申请实施例提供的一种授时方法的流程图;Figure 5 is a flow chart of a timing method provided by an embodiment of the present application;
图6为本申请实施例提供的一种授时方法的流程图;Figure 6 is a flow chart of a timing 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网元、无线接入网(radio access network,RAN)设备、时钟网络功能(timing network function,TNF)网元等。上述运营商网络中,除无线接入网设备之外的网元或设备可以称为核心网网元或核心网设备。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 elements, UPF network elements, wireless access network (radio access network, RAN) equipment, clock network function (timing network function, TNF) network elements, etc. In the above operator network, network elements or equipment other than wireless access network equipment may 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 Modules or units with partial functions of the base station, for example, can be centralized units (CU) or distributed units (CU). 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)、移动台、移动终端等。终端设备可以广泛应用于各种场景,例如,设备到设备(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. 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, downlink data packet storage, etc. 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). Contract signing by the above-mentioned contract users The data can be 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 contexts, authentication data (cookies), and information related to token equivalent authentication and authorization are 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翻译成其对应的外部身份标识(identity,ID)。反之,网络开放网元将外部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 subscriber's SUPI from the operator network to a third party, it can translate the SUPI into its corresponding external identity (ID). 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中,时钟管理网元可以是TNF网元,在未来通信如6G中,时钟管理网元仍可以是TNF网元,或有其它的名称,本申请不做限定。一种实现方法中,可以由3GPP定义的时间敏感通信和时间同步功能(Time Sensitive Communication and Time Synchronization Function,TSCTSF)网元,比如3GPP R17标准定义的TSCTSF网元,来支持实现本申请实施例中的TNF网元的部分或全部功能。 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, and the clock information can also be called time information; 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, for example, It is a UPF network element, a base station, 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 TNF network element. In future communications such as 6G, the clock management network element can still be a TNF network element, or have other names. This application does not limit it. In one implementation method, the time sensitive communication and time synchronization function (TSCTSF) network element defined by 3GPP, such as the TSCTSF network element defined by the 3GPP R17 standard, can be used to support the implementation of the embodiments of the present application. Some or all functions of the TNF network element.
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 employees of the company can be used as terminal devices. The employees' mobile phones or computers can access information and data resources on the company's internal office network.
图1(a)中Npcf、Nufr、Nudm、Naf、Namf、Nsmf分别为上述PCF网元、UDR网元、UDM网元、AF网元、AMF网元和SMF网元提供的服务化接口,用于调用相应的服务化操作。N1、N2、N3、N4以及N6为接口序列号,这些接口序列号的含义如下:In Figure 1(a), Npcf, Nufr, Nudm, Naf, Namf, and Nsmf are the service interfaces provided by the above-mentioned PCF network element, UDR network element, UDM network element, AF network element, AMF network element, and SMF network element respectively. Use To call the corresponding service-based operations. 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 access Wireless resource control information of 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 user subscription data information from UDR network element.
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.
在本申请的实施例中,以TNF网元、基站、UE分别作为时钟管理网元、接入网设备、终端设备的具体示例进行描述,并且,将TNF网元简称为TNF。In the embodiment of this application, the TNF network element, base station, and UE are used as specific examples of the clock management network element, access network equipment, and terminal equipment respectively, and the TNF network element is referred to as TNF for short.
图2(a)为本申请实施例提供的一种授时方法的流程图,该方法包括以下步骤:Figure 2(a) is a flow chart of a timing method provided by an embodiment of the present application. The method includes the following steps:
步骤201,授时网元向基站发送时钟信息。Step 201: The timing network element sends clock information to the base station.
这里的授时网元可以是TNF、UPF、SMF等,本申请实施例中不限定授时网元。The timing network element here may be TNF, UPF, SMF, etc., and the timing network element is not limited in the embodiment of this application.
该时钟信息表示时钟的时间、时刻或时间点,时钟信息也可以称为时间信息。The clock information represents the time, moment or time point of the clock, and the clock information may also be called time information.
该时钟信息是授时网元中的时钟源提供的时钟信息,该时钟信息是以授时网元的时钟域为基准的时钟信息。The clock information is the clock information provided by the clock source in the timing network element, and the clock information is clock information based on the clock domain of the timing network element.
步骤202,基站根据时钟信息和时钟信息在基站内的第一停留时间,为UE提供授时服务。Step 202: The base station provides timing services to the UE based on the clock information and the first residence time of the clock information in the base station.
第一停留时间表示以基站的时钟域为基准的停留时间。该第一停留时间可以包括基站收到时钟信息的时间和基站向UE发送时钟信息的时间,比如基站在T1时刻收到时钟信息,在T2时刻向UE发送时钟信息,则第一停留时间为T2-T1。The first dwell time represents the dwell time based on the clock domain of the base station. The first residence time may include the time when the base station receives the clock information and the time when the base station sends the clock information to the UE. For example, when the base station receives the clock information at time T1 and sends the clock information to the UE at time T2, the first residence time is T2. -T1.
上述方案,基站为UE提供授时服务时,不仅参考了来自授时网元的时钟信息,还考虑了该时钟信息在基站内部传输带来的停留时间,从而减少时钟信息在基站内部传输时带来的授时误差,提升了基站为UE提供授时服务的授时精度,因而可以提升UE的时钟同步精度。In the above scheme, when the base station provides timing services to the UE, it not only refers to the clock information from the timing network element, but also considers the dwell time caused by the internal transmission of the clock information in the base station, thereby reducing the time caused by the internal transmission of the clock information in the base station. The timing error improves the timing accuracy of the base station in providing timing services to the UE, thus improving the clock synchronization accuracy of the UE.
下面介绍上述步骤202基站为UE提供授时服务的三种不同实现方法。The following describes three different implementation methods for the base station to provide timing services for the UE in the above step 202.
方法一,基站根据第一停留时间、时钟频率比值和授时信息,确定同步时间,然后基站向UE发送授时信息,该授时信息包括同步时间,UE根据该同步时间进行时钟同步。其中,时钟频率比值表示基站与授时网元之间的时钟频率之比。Method 1: The base station determines the synchronization time based on the first dwell time, clock frequency ratio and timing information, and then the base station sends the timing information to the UE. The timing information includes the synchronization time, and the UE performs clock synchronization based on the synchronization time. Among them, the clock frequency ratio represents the ratio of clock frequencies between the base station and the timing network element.
一种实现方法中,在步骤202之前,基站还接收来自TNF的指示信息,该指示信息指示基站测量基站与授时网元之间的时钟频率比值,然后基站根据指示信息测量时钟频率比值。In one implementation method, before step 202, the base station also receives indication information from the TNF. The indication information instructs the base station to measure the clock frequency ratio between the base station and the timing network element, and then the base station measures the clock frequency ratio according to the indication information.
其中,基站确定的同步时间=T3+(T2-T1)*ratio,其中T3是授时网元提供的时钟信息对应的时间,ratio表示时钟频率比值,T2-T1是第一停留时间,其表示以基站的时钟域为基准的基站的内部时延(或停留时间),T2表示基站向UE发送时钟信息的时间,T1表示基站收到时钟信息的时间,(T2-T1)*ratio表示以授时网元的时钟域为基准的基站的内 部时延,也即将以基站的时钟域为基准的基站的内部时延转换为以授时网元的时钟域为基准的基站的内部时延,该(T2-T1)*ratio也称为第二停留时间,该第二停留时间仍然表示时钟信息在基站内部的停留时间,但该第二停留时间是以授时网元的时钟域为基准进行表示的。Among them, the synchronization time determined by the base station = T3 + (T2 - T1) * ratio, where T3 is the time corresponding to the clock information provided by the timing network element, ratio represents the clock frequency ratio, T2 - T1 is the first residence time, which represents the base station The internal delay (or dwell time) of the base station is based on the clock domain. T2 represents the time when the base station sends clock information to the UE. T1 represents the time when the base station receives the clock information. (T2-T1)*ratio represents the timing network element. The clock domain of the base station is referenced within the The internal delay is to convert the internal delay of the base station based on the clock domain of the base station into the internal delay of the base station based on the clock domain of the timing network element. This (T2-T1)*ratio is also called the second The second residence time still represents the residence time of the clock information inside the base station, but the second residence time is expressed based on the clock domain of the timing network element.
方法二,基站根据第一停留时间和时钟频率比值,确定时钟信息在基站内的第二停留时间,然后基站向UE发送授时信息,该授时信息包括授时网元的时钟信息和第二停留时间,UE根据授时网元的时钟信息和第二停留时间进行时钟同步,也即UE根据授时网元的时钟信息和第二停留时间进行时钟同步确定同步时间,并根据同步时间进行时钟同步。其中,时钟频率比值表示基站与授时网元之间的时钟频率之比。Method 2: The base station determines the second residence time of the clock information in the base station based on the ratio of the first residence time and the clock frequency, and then the base station sends the timing information to the UE. The timing information includes the clock information of the timing network element and the second residence time. The UE performs clock synchronization based on the clock information of the timing network element and the second residence time. That is, the UE performs clock synchronization based on the clock information of the timing network element and the second residence time to determine the synchronization time, and performs clock synchronization based on the synchronization time. Among them, the clock frequency ratio represents the ratio of clock frequencies between the base station and the timing network element.
一种实现方法中,在步骤202之前,基站还接收来自TNF的指示信息,该指示信息指示基站测量基站与授时网元之间的时钟频率比值,然后基站根据指示信息测量时钟频率比值。In one implementation method, before step 202, the base station also receives indication information from the TNF. The indication information instructs the base station to measure the clock frequency ratio between the base station and the timing network element, and then the base station measures the clock frequency ratio according to the indication information.
其中,第二停留时间表示以授时网元的时钟域为基准的停留时间(或称为内部时延),该第二停留时间仍然表示时钟信息在基站内部的停留时间,但该第二停留时间是以授时网元的时钟域为基准进行表示的。The second residence time represents the residence time (or internal delay) based on the clock domain of the timing network element. The second residence time still represents the residence time of the clock information inside the base station, but the second residence time It is expressed based on the clock domain of the timing network element.
具体的,UE计算得到同步时间=T3+第二停留时间。其中,T3是授时网元提供的时钟信息对应的时间。Specifically, the UE calculates synchronization time = T3 + second residence time. Among them, T3 is the time corresponding to the clock information provided by the timing network element.
该第二停留时间由基站计算得到,且第二停留时间=(T2-T1)*ratio,其中,ratio表示时钟频率比值,T2-T1是第一停留时间,其表示以基站的时钟域为基准的基站的内部时延(或停留时间),T2表示基站向UE发送时钟信息的时间,T1表示基站收到时钟信息的时间。The second residence time is calculated by the base station, and the second residence time = (T2-T1)*ratio, where ratio represents the clock frequency ratio, and T2-T1 is the first residence time, which is based on the clock domain of the base station. The internal delay (or dwell time) of the base station, T2 represents the time when the base station sends clock information to the UE, and T1 represents the time when the base station receives the clock information.
方法三,基站向UE发送授时信息,授时信息包括第一停留时间、时钟频率比值和时钟信息,UE根据第一停留时间、时钟频率比值和时钟信息确定同步时间,并根据同步时间进行时钟同步。其中,该时钟频率比值表示基站与授时网元之间的时钟频率之比。Method 3: The base station sends timing information to the UE. The timing information includes the first dwell time, the clock frequency ratio and the clock information. The UE determines the synchronization time based on the first dwell time, the clock frequency ratio and the clock information, and performs clock synchronization based on the synchronization time. Wherein, the clock frequency ratio represents the ratio of clock frequencies between the base station and the timing network element.
一种实现方法中,在步骤202之前,基站还接收来自TNF的指示信息,该指示信息指示基站测量基站与授时网元之间的时钟频率比值,然后基站根据指示信息测量时钟频率比值。In one implementation method, before step 202, the base station also receives indication information from the TNF. The indication information instructs the base station to measure the clock frequency ratio between the base station and the timing network element, and then the base station measures the clock frequency ratio according to the indication information.
具体的,UE计算得到同步时间=T3+(T2-T1)*ratio。其中,T3以及(T2-T1)*ratio的含义可以参考方法一中的描述。Specifically, the UE calculates the synchronization time=T3+(T2-T1)*ratio. Among them, the meaning of T3 and (T2-T1)*ratio can refer to the description in method one.
下面结合附图说明上述方法一至方法三中的时钟频率比值(ratio)的确定方法。图2(b)为本申请实施例提供的确定时钟频率比值的方法示意图。该方法如下:The method for determining the clock frequency ratio (ratio) in the above-mentioned method 1 to method 3 will be described below with reference to the accompanying drawings. FIG. 2(b) is a schematic diagram of a method for determining a clock frequency ratio provided by an embodiment of the present application. The method is as follows:
t1时刻:授时网元(如SMF、UPF、TNF等)向基站发送报文1,该报文1的报文头中携带报文1的发送时间t1,该t1是以授时网元的时钟域为基准记录的时间;Time t1: The timing network element (such as SMF, UPF, TNF, etc.) sends message 1 to the base station. The header of the message 1 carries the sending time t1 of message 1. This t1 is based on the clock domain of the timing network element. The time recorded for the benchmark;
t2时刻:基站在t2时刻收到报文1,该t2是以基站的时钟域为基准记录的时间,基站记录t2以及t1;Time t2: The base station receives message 1 at time t2. This t2 is the time recorded based on the clock domain of the base station. The base station records t2 and t1;
t3时刻:授时网元在t3时刻向基站发送报文2,该报文2的报文头中携带报文2的发送时间t3,该t3是以授时网元的时钟域为基准记录的时间;Time t3: The timing network element sends message 2 to the base station at time t3. The header of message 2 carries the sending time t3 of message 2. This t3 is the time recorded based on the clock domain of the timing network element;
t4时刻:基站在t4时刻收到报文2,该t4是以基站的时钟域为基准记录的时间,基站记录t4以及t3。Time t4: The base station receives message 2 at time t4. This t4 is the time recorded based on the clock domain of the base station. The base station records t4 and t3.
基站计算得到ratio=(t4-t2)/(t3-t1),其中,ratio表示基站与授时网元之间的时钟频率比 值。The base station calculates ratio=(t4-t2)/(t3-t1), where ratio represents the clock frequency ratio between the base station and the timing network element. value.
图3(a)为本申请实施例提供的一种授时方法的流程图,该方法包括以下步骤:Figure 3(a) is a flow chart of a timing method provided by an embodiment of the present application. The method includes the following steps:
步骤301,基站向TNF发送通知消息,通知消息包括第一指示信息和发生时钟失步的时钟源的标识信息,第一指示信息指示该时钟源发生时钟失步。Step 301: The base station sends a notification message to the TNF. The notification message includes first indication information and identification information of the clock source where clock desynchronization occurs. The first indication information indicates that clock desynchronization occurs on the clock source.
也即,当基站上的某个时钟源因为某种原因(如故障、建筑物遮挡等)而导致该时钟源发生时钟失步,则基站向TNF发送通知消息,以告知TNF:该基站上的该时钟源发生时钟失步。That is, when a clock source on the base station is out of sync due to some reason (such as failure, building obstruction, etc.), the base station sends a notification message to the TNF to inform the TNF: This clock source has clock desynchronization.
步骤302,基站接收来自TNF的配置信息,配置信息包括第二指示信息和授时网元的标识信息,第二指示信息指示测量基站上的时钟与授时网元上的时钟之间的对时信息。Step 302: The base station receives configuration information from the TNF. The configuration information includes second indication information and identification information of the timing network element. The second indication information indicates the measurement of time synchronization information between the clock on the base station and the clock on the timing network element.
TNF收到通知消息后,为该基站选择一个用于对时的授时网元(如UPF、SMF或该TNF等),然后向基站发送配置信息,该配置信息包含该授时网元的标识信息,以及还包含用于指示基站测量基站上的时钟与授时网元上的时钟之间的对时信息的第二指示信息。After receiving the notification message, the TNF selects a timing network element (such as UPF, SMF or the TNF, etc.) for the base station, and then sends configuration information to the base station. The configuration information contains the identification information of the timing network element. and also includes second instruction information used to instruct the base station to measure the time synchronization information between the clock on the base station and the clock on the timing network element.
步骤303,基站根据对时信息,对时钟源进行时钟同步。Step 303: The base station synchronizes the clock source according to the time synchronization information.
基站收到配置信息后,根据第二指示信息测量基站上的时钟与授时网元上的时钟之间的对时信息,并根据该对时信息,对该基站上发生时钟失步的时钟源进行时钟同步,实现时钟源的正常工作。After receiving the configuration information, the base station measures the time synchronization information between the clock on the base station and the clock on the timing network element according to the second instruction information, and based on the time synchronization information, performs a check on the clock source on the base station where clock desynchronization occurs. Clock synchronization enables the normal operation of the clock source.
上述方案,当基站上的某个时钟源发生时钟失步,则该基站主动请求TNF为该时钟源配置一个用于对时的授时网元,基站在测量出基站与该授时网元之间的对时信息后,根据该对时信息完成与该授时网元的时钟源之间的时钟对时(即时钟同步),从而后续该基站的该时钟源可以为UE提供精确的时钟信息,提升了基站为UE提供授时服务的授时精度,因而可以提升UE的时钟同步精度。In the above scheme, when a clock source on the base station experiences clock desynchronization, the base station actively requests the TNF to configure a timing network element for the clock source for time synchronization. The base station measures the distance between the base station and the timing network element. After the time synchronization information is completed, the clock synchronization (i.e., clock synchronization) with the clock source of the timing network element is completed based on the time synchronization information, so that the clock source of the base station can subsequently provide accurate clock information for the UE, improving the The base station provides the UE with the timing accuracy of the timing service, thereby improving the UE's clock synchronization accuracy.
或者,在另一种实现方法中,基站也可以预先在本地保存有基站上的时钟与授时网元上的时钟之间的对时信息,则上述步骤302的配置信息中可以不携带上述第二指示信息,因此基站在收到配置信息后,基站不需要临时去测量基站上的时钟与授时网元上的时钟之间的对时信息,而是从本地获取基站上的时钟与授时网元上的时钟之间的对时信息,然后基站根据对时信息,对时钟源进行时钟同步。其中,基站预先保存的基站上的时钟与授时网元上的时钟之间的对时信息可以是授时网元发送给基站的,也可以是基站在步骤301测量到的,本申请对此不限定。Alternatively, in another implementation method, the base station may also locally store the time synchronization information between the clock on the base station and the clock on the timing network element, and then the configuration information in the above step 302 may not carry the above second step. indication information, so after the base station receives the configuration information, the base station does not need to temporarily measure the time synchronization information between the clock on the base station and the clock on the timing network element, but obtains the clock on the base station and the clock on the timing network element locally. The base station then performs clock synchronization on the clock source based on the time synchronization information. The time synchronization information between the clock on the base station and the clock on the timing network element that is pre-stored by the base station may be sent by the timing network element to the base station, or may be measured by the base station in step 301. This application is not limited to this. .
一种实现方法中,基站预先在本地保存有基站上的时钟与授时网元上的时钟之间的对时信息,并且上述步骤302的配置信息中携带上述第二指示信息,则基站根据第二指示信息测量基站上的时钟与授时网元上的时钟之间的对时信息。如果基站测量的对时信息的取值与基站本地保存的对时信息的取值之间的差值大于预设阈值,则基站确定该授时网元上的时钟可能发生故障,因此基站可以通知TNF重新选择一个授时网元提供对时服务,或者基站向TNF发送通知消息,用于通知授时网元上的时钟发生故障或异常。In one implementation method, the base station locally stores the time synchronization information between the clock on the base station and the clock on the timing network element in advance, and the configuration information in the above step 302 carries the above second indication information, then the base station will The indication information measures the time synchronization information between the clock on the base station and the clock on the timing network element. If the difference between the value of the time synchronization information measured by the base station and the value of the time synchronization information stored locally by the base station is greater than the preset threshold, the base station determines that the clock on the timing network element may have failed, so the base station can notify the TNF Re-select a timing network element to provide time synchronization services, or the base station sends a notification message to the TNF to notify that the clock on the timing network element is faulty or abnormal.
下面介绍基站根据对时信息,对基站上的发生失步的时钟源进行时钟同步的两种不同实现方法。The following describes two different implementation methods for the base station to synchronize the clock source on the base station that is out of synchronization based on the time synchronization information.
方法一,基站测量到的基站上的时钟与授时网元的时钟之间的对时信息包括偏差,该偏差表示基站上的时钟与授时网元上的时钟之间的偏差。基站根据基站上发生时钟失步的时钟源的本地时间和该偏差确定对时时间,然后基站根据对时时间对时钟源进行时钟同步。 Method 1: The time synchronization information measured by the base station between the clock on the base station and the clock on the timing network element includes a deviation, which represents the deviation between the clock on the base station and the clock on the timing network element. The base station determines the time synchronization time based on the local time of the clock source on the base station where the clock is out of synchronization and the deviation, and then the base station synchronizes the clock source based on the time synchronization time.
比如,对时时间=T1+offset,其中,T1表示发生时钟失步的时钟源的本地时间,offset表示偏差。For example, synchronization time = T1 + offset, where T1 represents the local time of the clock source where clock desynchronization occurs, and offset represents the deviation.
方法二,基站测量到的基站上的时钟与授时网元的时钟之间的对时信息包括传输时延,该传输时延表示基站上的时钟与授时网元上的时钟之间的传输时延。基站根据来自授时网元的时钟信息和该传输时延确定对时时间,然后基站根据对时时间对时钟源进行时钟同步。Method 2: The time synchronization information measured by the base station between the clock on the base station and the clock on the timing network element includes the transmission delay. The transmission delay represents the transmission delay between the clock on the base station and the clock on the timing network element. . The base station determines the time synchronization time based on the clock information from the timing network element and the transmission delay, and then the base station synchronizes the clock source based on the time synchronization time.
比如,对时时间=T2+delay,其中,T2是授时网元的时钟信息对应的时间,delay表示传输时延。For example, time synchronization time = T2 + delay, where T2 is the time corresponding to the clock information of the timing network element, and delay represents the transmission delay.
下面结合附图说明上述方法中的偏差和传输时延的确定方法。图3(b)为本申请实施例提供的确定偏差和传输时延的方法示意图。该方法如下:The method for determining the deviation and transmission delay in the above method will be described below with reference to the accompanying drawings. Figure 3(b) is a schematic diagram of a method for determining deviation and transmission delay provided by an embodiment of the present application. The method is as follows:
t1时刻:基站在t1时刻向授时网元(如SMF、UPF、TNF等)发送报文1,该报文1的报文头中携带报文1的发送时间t1,该t1是以基站的时钟域为基准记录的时间;Time t1: The base station sends message 1 to the timing network element (such as SMF, UPF, TNF, etc.) at time t1. The header of the message 1 carries the sending time t1 of message 1. The t1 is based on the clock of the base station. The domain is the time recorded as the base;
t2时刻:授时网元在t2时刻收到报文1,该t2是以授时网元的时钟域为基准记录的时间;Time t2: The timing network element receives message 1 at time t2. This t2 is the time recorded based on the clock domain of the timing network element;
t3时刻:授时网元在t3时刻向基站发送报文2,该报文2的报文头中携带报文1的接收时间t2以及报文2的发送时间t3,该t3是以授时网元的时钟域为基准记录的时间;Time t3: The timing network element sends message 2 to the base station at time t3. The header of this message 2 carries the reception time t2 of message 1 and the sending time t3 of message 2. The t3 is based on the time of the timing network element. The clock domain is the time recorded as a reference;
t4时刻:基站在t4时刻收到报文2,该t4是以基站的时钟域为基准记录的时间,基站记录t1、t2、t3、t4。Time t4: The base station receives message 2 at time t4. This t4 is the time recorded based on the clock domain of the base station. The base station records t1, t2, t3, and t4.
基站计算得到offset=((ratio*t2-t1)-(t4-ratio*t3))/2,delay=((ratio*t2-t1)+(t4-ratio*t3))/2,其中,offset表示基站的时钟与授时网元的时钟之间的偏差,delay表示基站的时钟与授时网元的时钟之间的传输时延。The base station calculates offset=((ratio*t2-t1)-(t4-ratio*t3))/2, delay=((ratio*t2-t1)+(t4-ratio*t3))/2, where, offset Indicates the deviation between the clock of the base station and the clock of the timing network element, and delay represents the transmission delay between the clock of the base station and the clock of the timing network element.
其中,当ratio=1,表示基站与授时网元之间的时钟频率相同,则offset=((t2-t1)-(t4-t3))/2,delay=((t2-t1)+(t4-t3))/2。比如,当基站的时钟源与授时网元的时钟源的授时精度相同,则ratio=1。Among them, when ratio=1, it means that the clock frequency between the base station and the timing network element is the same, then offset=((t2-t1)-(t4-t3))/2, delay=((t2-t1)+(t4 -t3))/2. For example, when the timing accuracy of the clock source of the base station and the clock source of the timing network element are the same, ratio=1.
下面结合具体实施例,对上述图2(a)及图3(a)的实施例进行具体说明。以下图4、图5的实施例是上述图2(a)的实施例的具体实现,以下图6的实施例是上述图3(a)的实施例的具体实现。The above-mentioned embodiments of FIG. 2(a) and FIG. 3(a) will be described in detail below with reference to specific embodiments. The following embodiments in Figures 4 and 5 are specific implementations of the above-mentioned embodiment in Figure 2(a), and the following embodiment in Figure 6 is a specific implementation of the above-mentioned embodiment in Figure 3(a).
图4为本申请实施例提供的一种授时方法的流程示意图。该方法包括以下步骤:Figure 4 is a schematic flowchart of a timing method provided by an embodiment of the present application. The method includes the following steps:
步骤401a,基站向NRF发送请求消息,该请求消息包括基站的标识信息和基站上的一个或多个时钟源的授时精度。Step 401a: The base station sends a request message to the NRF. The request message includes the identification information of the base station and the timing accuracy of one or more clock sources on the base station.
如果基站上仅有一个时钟源,则该请求消息包括该一个时钟源的授时精度。如果基站上有多个时钟源,则该请求消息可以包括一个或多个时钟源的授时精度。If there is only one clock source on the base station, the request message includes the timing accuracy of the one clock source. If there are multiple clock sources on the base station, the request message may include the timing accuracy of one or more clock sources.
步骤401b,UPF向NRF发送请求消息,该请求消息包括UPF的标识信息和UPF上的一个或多个时钟源的授时精度。Step 401b: The UPF sends a request message to the NRF. The request message includes the identification information of the UPF and the timing accuracy of one or more clock sources on the UPF.
如果UPF上仅有一个时钟源,则该请求消息包括该一个时钟源的授时精度。如果UPF上有多个时钟源,则该请求消息可以包括一个或多个时钟源的授时精度。If there is only one clock source on the UPF, the request message includes the timing accuracy of that clock source. If there are multiple clock sources on the UPF, the request message may include the timing accuracy of one or more clock sources.
可选的,如果还有其它网元上也部署有时钟源,则该其它网元也可以按照上述方式,向NRF发送该其它网元的标识信息以及该其它网元上的一个或多个时钟源的授时精度。该其它网元比如可以是SMF、PCF等网元。Optionally, if there are clock sources deployed on other network elements, the other network elements can also send the identification information of the other network elements and one or more clocks on the other network elements to the NRF in the above manner. source timing accuracy. The other network elements may be, for example, SMF, PCF and other network elements.
上述步骤401a以及步骤401b中的授时精度,指的是授时的信息可以精确到的单位, 比如为纳秒(ns),微秒(us)等。The timing accuracy in the above steps 401a and 401b refers to the unit to which the timing information can be accurate. For example, nanoseconds (ns), microseconds (us), etc.
一种实现方法中,上述步骤401a以及步骤401b中的请求消息可以是NG Setup Request消息。In one implementation method, the request messages in the above steps 401a and 401b may be NG Setup Request messages.
上述步骤401a和步骤401b之间的执行顺序不限。The execution order between the above steps 401a and 401b is not limited.
步骤402a,TNF向NRF发送订阅请求消息,该订阅请求消息用于订阅时钟网元的授时精度。Step 402a: TNF sends a subscription request message to NRF. The subscription request message is used to subscribe to the timing accuracy of the clock network element.
其中,时钟网元的授时精度,指的是时钟网元中的时钟源的授时精度。Among them, the timing accuracy of the clock network element refers to the timing accuracy of the clock source in the clock network element.
步骤402b,NRF向TNF发送通知消息,该通知消息包括时钟网元的标识信息以及时钟网元的授时精度。Step 402b: The NRF sends a notification message to the TNF. The notification message includes the identification information of the clock network element and the timing accuracy of the clock network element.
这里的时钟网元包括但不限于基站、UPF。每个时钟网元的授时精度可以是一个或多个。The clock network elements here include but are not limited to base stations and UPF. The timing precision of each clock network element can be one or more.
上述步骤402a至步骤402b介绍的是TNF通过订阅的方式获取到各个时钟网元的授时精度。作为一种替代的实现方法,也可以是NRF主动向TNF发送各个时钟网元的授时精度。The above steps 402a to 402b describe that the TNF obtains the timing accuracy of each clock network element through subscription. As an alternative implementation method, the NRF can also actively send the timing accuracy of each clock network element to the TNF.
步骤403,UE向TNF发送授时请求消息,该授时请求消息包括UE的标识信息、基站的标识信息和UE要求的授时精度。Step 403: The UE sends a timing request message to the TNF. The timing request message includes the identification information of the UE, the identification information of the base station, and the timing accuracy required by the UE.
该基站的标识信息即为该UE的服务基站的标识信息。The identification information of the base station is the identification information of the serving base station of the UE.
一种实现方法中,该授时请求消息可以是NAS消息或PDU Session Establishment Request消息。In one implementation method, the timing request message may be a NAS message or a PDU Session Establishment Request message.
步骤404a,TNF向UDM发送查询请求消息,该查询请求消息包括UE的标识信息,该查询请求消息用于请求查询UE签约的授时精度。Step 404a: The TNF sends a query request message to the UDM. The query request message includes the identification information of the UE. The query request message is used to request to query the timing accuracy of the UE contract.
步骤404b,UDM向TNF发送查询响应消息,该查询响应消息包括UE签约的授时精度。Step 404b: UDM sends a query response message to the TNF, where the query response message includes the timing accuracy contracted by the UE.
上述步骤404a和步骤404b为可选步骤。The above steps 404a and 404b are optional steps.
步骤405,TNF确定满足UE要求的授时精度的时钟网元。Step 405: The TNF determines the clock network element that meets the timing accuracy required by the UE.
其中,如果执行上述步骤404a和步骤404b,则该步骤405具体为:如果UE签约的授时精度高于或等于UE要求的授时精度,则TNF确定满足UE要求的授时精度的时钟网元。如果UE签约的授时精度低于UE要求的授时精度,则TNF不为UE确定时钟网元。If the above-mentioned steps 404a and 404b are executed, step 405 is specifically: if the timing accuracy contracted by the UE is higher than or equal to the timing accuracy required by the UE, the TNF determines the clock network element that meets the timing accuracy required by the UE. If the timing accuracy contracted by the UE is lower than the timing accuracy required by the UE, the TNF does not determine the clock network element for the UE.
这里的时钟网元可以是基站、UPF、TNF或其它网元。其中,TNF确定满足UE要求的授时精度的时钟网元是该TNF,表明当TNF的时钟源的授时精度满足UE要求的授时精度,则TNF也可以确定由自身向UE提供授时服务。The clock network element here can be a base station, UPF, TNF or other network element. Among them, the TNF determines that the clock network element that meets the timing accuracy required by the UE is the TNF, indicating that when the timing accuracy of the TNF's clock source meets the timing accuracy required by the UE, the TNF can also determine that it will provide timing services to the UE.
如果该步骤405中TNF确定满足UE要求的授时精度的时钟网元是该TNF,则在步骤405之后执行以下步骤406至步骤407,也即由TNF为UE提供授时服务。If in step 405 the TNF determines that the clock network element that meets the timing accuracy required by the UE is the TNF, the following steps 406 to 407 are performed after step 405, that is, the TNF provides timing services for the UE.
步骤406,TNF向基站发送授时配置信息,该授时配置信息包括UE的标识信息,TNF的时钟信息以及指示信息,该指示信息指示测量该基站与该TNF之间的时钟频率比值。Step 406: The TNF sends timing configuration information to the base station. The timing configuration information includes the identification information of the UE, the clock information of the TNF, and the indication information. The indication information indicates measuring the clock frequency ratio between the base station and the TNF.
其中,该TNF的时钟信息对应的授时精度与UE要求的授时精度相同。The timing accuracy corresponding to the clock information of the TNF is the same as the timing accuracy required by the UE.
基站接收到授时配置信息后,记录收到授时配置信息的时间T1。并且基站根据指示信息,测量该基站与该TNF之间的时钟频率比值,该比值用ratio表示。After receiving the timing configuration information, the base station records the time T1 when the timing configuration information is received. And the base station measures the clock frequency ratio between the base station and the TNF according to the instruction information, and the ratio is represented by ratio.
步骤407,基站向UE发送授时信息。Step 407: The base station sends timing information to the UE.
一种实现方法中,基站在计算得到ratio之后,向UE发送授时信息,该授时信息包括 TNF的时钟信息、T1、T2以及ratio,该T2是基站向UE发送授时信息的发送时间。UE接收到授时信息之后,计算得到同步时间=T3+(T2-T1)*ratio,其中T3是TNF的时钟信息对应的时间,T2-T1表示以基站的时钟域为基准的基站的内部时延,(T2-T1)*ratio表示以TNF的时钟域为基准的基站的内部时延,也即将以基站的时钟域为基准的基站的内部时延转换为以TNF的时钟域为基准的基站的内部时延。后续,UE根据该同步时间实现时钟同步。In one implementation method, after calculating the ratio, the base station sends timing information to the UE. The timing information includes TNF clock information, T1, T2 and ratio. T2 is the sending time of the base station sending timing information to the UE. After the UE receives the timing information, it calculates the synchronization time = T3 + (T2-T1)*ratio, where T3 is the time corresponding to the clock information of the TNF, and T2-T1 represents the internal delay of the base station based on the clock domain of the base station. (T2-T1)*ratio represents the internal delay of the base station based on the clock domain of TNF, that is, converting the internal delay of the base station based on the clock domain of the base station into the internal delay of the base station based on the clock domain of TNF time delay. Subsequently, the UE implements clock synchronization based on the synchronization time.
另一种实现方法中,基站在计算得到ratio之后,进一步确定基站向UE发送授时信息的发送时间(用T2表示),并根据T1、T2以及ratio计算得到以TNF的时钟域为基准的基站的内部时延,然后向UE发送的授时信息中包括TNF的时钟信息以及以TNF的时钟域为基准的基站的内部时延,其中,以TNF的时钟域为基准的基站的内部时延=(T2-T1)*ratio。UE接收到授时信息之后,UE计算得到同步时间=T3+以TNF的时钟域为基准的基站的内部时延,其中T3是TNF的时钟信息对应的时间。后续,UE根据该同步时间实现时钟同步。In another implementation method, after the base station calculates the ratio, it further determines the sending time (represented by T2) of the timing information sent by the base station to the UE, and calculates the base station based on the TNF clock domain based on T1, T2 and ratio. Internal delay, and then the timing information sent to the UE includes the clock information of the TNF and the internal delay of the base station based on the clock domain of the TNF, where the internal delay of the base station based on the clock domain of the TNF = (T2 -T1)*ratio. After the UE receives the timing information, the UE calculates the synchronization time = T3 + the internal delay of the base station based on the clock domain of the TNF, where T3 is the time corresponding to the clock information of the TNF. Subsequently, the UE implements clock synchronization based on the synchronization time.
另一种实现方法中,基站在计算得到ratio之后,进一步确定基站向UE发送授时信息的发送时间(用T2表示),并根据T1、T2以及ratio计算得到以TNF的时钟域为基准的基站的内部时延,以及计算得到同步时间=T3+以TNF的时钟域为基准的基站的内部时延,其中T3是TNF的时钟信息对应的时间,以TNF的时钟域为基准的基站的内部时延=(T2-T1)*ratio。然后基站向UE发送的授时信息中包括该同步时间。后续,UE根据该同步时间实现时钟同步。In another implementation method, after the base station calculates the ratio, it further determines the sending time (represented by T2) of the timing information sent by the base station to the UE, and calculates the base station based on the TNF clock domain based on T1, T2 and ratio. Internal delay, and the calculated synchronization time = T3 + the internal delay of the base station based on the clock domain of TNF, where T3 is the time corresponding to the clock information of TNF, and the internal delay of the base station based on the clock domain of TNF = (T2-T1)*ratio. Then the timing information sent by the base station to the UE includes the synchronization time. Subsequently, the UE implements clock synchronization based on the synchronization time.
上述方案,由TNF为UE选择提供授时服务的时钟网元,该时钟网元为UE提供满足UE要求的授时精度的时钟信息,可以实现为UE提供合适的授时精度的时钟信息。并且,该方案计算用于UE进行时钟同步的同步时间时,不仅参考了时钟网元提供的时钟信息,还参考了时钟网元提供的时钟信息在基站内部传输的时延,因此可以减少时钟网元提供的时钟信息在传输过程中引起的误差,从而提升UE的时钟同步精度。In the above solution, the TNF selects a clock network element that provides timing services for the UE. The clock network element provides the UE with clock information that meets the timing accuracy required by the UE, which can provide the UE with clock information with appropriate timing accuracy. Moreover, when calculating the synchronization time for UE clock synchronization, this solution not only refers to the clock information provided by the clock network element, but also refers to the transmission delay of the clock information provided by the clock network element within the base station, so it can reduce the clock network The error caused by the clock information provided by the UE during the transmission process is eliminated, thereby improving the clock synchronization accuracy of the UE.
图5为本申请实施例提供的一种授时方法的流程图。该方法包括以下步骤:Figure 5 is a flow chart of a timing method provided by an embodiment of the present application. The method includes the following steps:
步骤501a,同上述步骤401a。Step 501a is the same as step 401a above.
步骤501b,同上述步骤401b。Step 501b is the same as step 401b above.
上述步骤501a和步骤501b之间的执行顺序不限。The execution order between the above steps 501a and 501b is not limited.
步骤502a,同上述步骤402a。Step 502a is the same as step 402a above.
步骤502b,同上述步骤402b。Step 502b is the same as step 402b above.
步骤503,同上述步骤403。Step 503 is the same as step 403 above.
步骤504a,同上述步骤404a。Step 504a is the same as step 404a above.
步骤504b,同上述步骤404b。Step 504b is the same as step 404b above.
步骤505,同上述步骤405。Step 505 is the same as step 405 above.
如果该步骤505中TNF确定满足UE要求的授时精度的时钟网元是UPF,则在步骤505之后执行以下步骤506至步骤509,也即由UPF为UE提供授时服务。If in step 505 the TNF determines that the clock network element that meets the timing accuracy required by the UE is UPF, the following steps 506 to 509 are performed after step 505, that is, the UPF provides timing services for the UE.
步骤506,TNF向UPF发送授时配置信息,该授时配置信息包括UE的标识信息、基站的标识信息、UE要求的授时精度和指示信息,该指示信息用于指示UPF为UE提供授时服务。 Step 506: The TNF sends timing configuration information to the UPF. The timing configuration information includes the identification information of the UE, the identification information of the base station, the timing accuracy required by the UE, and indication information. The indication information is used to instruct the UPF to provide timing services for the UE.
步骤507,TNF向基站发送授时配置信息,该授时配置信息包括UE的标识信息、UPF的标识信息和指示信息,该指示信息指示测量该基站与UPF之间的时钟频率比值。Step 507: The TNF sends timing configuration information to the base station. The timing configuration information includes the identification information of the UE, the identification information of the UPF, and indication information. The indication information indicates measuring the clock frequency ratio between the base station and the UPF.
基站根据指示信息,测量该基站与该TNF之间的时钟频率比值,该比值用ratio表示。The base station measures the clock frequency ratio between the base station and the TNF based on the instruction information. The ratio is expressed as ratio.
上述步骤506与步骤507的执行顺序不限。The execution order of the above steps 506 and 507 is not limited.
步骤508,UPF向基站发送授时信息1,该授时信息1包括UE的标识信息和UPF的时钟信息。Step 508: The UPF sends timing information 1 to the base station. The timing information 1 includes the identification information of the UE and the clock information of the UPF.
其中,该UPF的时钟信息对应的授时精度与UE要求的授时精度相同。The timing accuracy corresponding to the clock information of the UPF is the same as the timing accuracy required by the UE.
基站接收到授时信息1后,记录收到授时信息1的时间T1。After receiving the timing information 1, the base station records the time T1 when the timing information 1 is received.
步骤509,基站向UE发送授时信息2。Step 509: The base station sends timing information 2 to the UE.
一种实现方法中,基站在收到来自UPF的授时信息1之后,向UE发送授时信息2,该授时信息2包括UPF的时钟信息、T1、T2以及ratio,该T2是基站向UE发送授时信息2的时间。UE接收到授时信息2之后,计算得到同步时间=T3+(T2-T1)*ratio,其中T3是UPF的时钟信息对应的时间,T2-T1表示以基站的时钟域为基准的基站的内部时延,(T2-T1)*ratio表示以UPF的时钟域为基准的基站的内部时延,也即将以基站的时钟域为基准的基站的内部时延转换为以UPF的时钟域为基准的基站的内部时延。后续,UE根据该同步时间实现时钟同步。In one implementation method, after receiving the timing information 1 from the UPF, the base station sends the timing information 2 to the UE. The timing information 2 includes the clock information of the UPF, T1, T2 and ratio. The T2 is the timing information sent by the base station to the UE. 2 hours. After the UE receives the timing information 2, it calculates the synchronization time = T3 + (T2 - T1) * ratio, where T3 is the time corresponding to the clock information of the UPF, and T2 - T1 represents the internal delay of the base station based on the clock domain of the base station. , (T2-T1)*ratio represents the internal delay of the base station based on the UPF clock domain, that is, converting the internal delay of the base station based on the clock domain of the base station into the base station based on the UPF clock domain Internal delay. Subsequently, the UE implements clock synchronization based on the synchronization time.
另一种实现方法中,基站在收到来自UPF的授时信息1之后,进一步确定基站向UE发送授时信息2的发送时间(用T2表示),并根据T1、T2以及ratio计算得到以UPF的时钟域为基准的基站的内部时延,然后向UE发送的授时信息2中包括UPF的时钟信息以及以UPF的时钟域为基准的基站的内部时延,其中,以UPF的时钟域为基准的基站的内部时延=(T2-T1)*ratio。UE接收到授时信息2之后,计算得到同步时间=T3+以UPF的时钟域为基准的基站的内部时延,其中T3是UPF的时钟信息对应的时间。后续,UE根据该同步时间实现时钟同步。In another implementation method, after receiving the timing information 1 from the UPF, the base station further determines the sending time (represented by T2) of the timing information 2 sent by the base station to the UE, and calculates the UPF clock based on T1, T2 and ratio. The internal delay of the base station based on the UPF domain, and then the timing information 2 sent to the UE includes the clock information of the UPF and the internal delay of the base station based on the UPF clock domain, where the base station based on the UPF clock domain The internal delay = (T2-T1)*ratio. After receiving the timing information 2, the UE calculates the synchronization time = T3 + the internal delay of the base station based on the UPF clock domain, where T3 is the time corresponding to the UPF clock information. Subsequently, the UE implements clock synchronization based on the synchronization time.
另一种实现方法中,基站在收到来自UPF的授时信息1之后,进一步确定基站向UE发送授时信息2的时间(用T2表示),并根据T1、T2以及ratio计算得到以UPF的时钟域为基准的基站的内部时延,以及基站计算得到同步时间=T3+以UPF的时钟域为基准的基站的内部时延,其中T3是UPF的时钟信息对应的时间,以UPF的时钟域为基准的基站的内部时延=(T2-T1)*ratio。然后基站向UE发送的授时信息2中包括该同步时间。后续,UE根据该同步时间实现时钟同步。In another implementation method, after receiving the timing information 1 from the UPF, the base station further determines the time (represented by T2) when the base station sends the timing information 2 to the UE, and calculates the UPF clock domain based on T1, T2 and ratio. The internal delay of the base station as the reference, and the synchronization time calculated by the base station = T3 + the internal delay of the base station with the UPF clock domain as the reference, where T3 is the time corresponding to the UPF clock information, and the UPF clock domain as the reference The internal delay of the base station = (T2-T1)*ratio. Then the timing information 2 sent by the base station to the UE includes the synchronization time. Subsequently, the UE implements clock synchronization based on the synchronization time.
上述方案,由TNF为UE选择提供授时服务的时钟网元,该时钟网元为UE提供满足UE要求的授时精度的时钟信息,可以实现为UE提供合适的授时精度的时钟信息。并且,该方案计算用于UE进行时钟同步的同步时间时,不仅参考了时钟网元提供的时钟信息,还参考了时钟网元提供的时钟信息在基站内部传输的时延,因此可以减少时钟网元提供的时钟信息在传输过程中引起的误差,从而提升UE的时钟同步精度。In the above solution, the TNF selects a clock network element that provides timing services for the UE. The clock network element provides the UE with clock information that meets the timing accuracy required by the UE, which can provide the UE with clock information with appropriate timing accuracy. Moreover, when calculating the synchronization time for UE clock synchronization, this solution not only refers to the clock information provided by the clock network element, but also refers to the transmission delay of the clock information provided by the clock network element within the base station, so it can reduce the clock network The error caused by the clock information provided by the UE during the transmission process is eliminated, thereby improving the clock synchronization accuracy of the UE.
图6为本申请实施例提供的一种授时方法的流程图。其中,基站上的某个时钟源发生时钟失步,比如该时钟源无法收到用于对时的时钟信息导致发生时钟失步,进而导致该基站的时钟源无法继续为UE提供授时服务。Figure 6 is a flow chart of a timing method provided by an embodiment of the present application. Among them, clock desynchronization occurs in a certain clock source on the base station. For example, the clock source cannot receive clock information used for time adjustment, resulting in clock desynchronization, which in turn causes the clock source of the base station to be unable to continue to provide timing services for the UE.
该方法包括以下步骤:The method includes the following steps:
步骤601a,同上述步骤401a。 Step 601a is the same as step 401a above.
步骤601b,同上述步骤401b。Step 601b is the same as step 401b above.
上述步骤601a与步骤601b之间的执行顺序不限。The execution order between the above steps 601a and 601b is not limited.
步骤602a,同上述步骤402a。Step 602a is the same as step 402a above.
步骤602b,同上述步骤402b。Step 602b is the same as step 402b above.
步骤603a,基站为UE提供授时服务。Step 603a: The base station provides timing services for the UE.
该步骤的具体过程为:UE向基站发送授时请求消息,该授时请求消息包括UE的标识信息和UE要求的授时精度。基站将授时请求消息发送给AMF,AMF将授时请求消息发送给TNF。TNF确定基站满足UE要求的授时精度,则通知基站为该UE提供授时服务,从而基站向UE发送基站的时钟信息,然后UE根据该时钟信息实现时钟同步。The specific process of this step is: the UE sends a timing request message to the base station. The timing request message includes the identification information of the UE and the timing accuracy required by the UE. The base station sends the timing request message to the AMF, and the AMF sends the timing request message to the TNF. The TNF determines that the base station meets the timing accuracy required by the UE, and then notifies the base station to provide timing services for the UE, so that the base station sends the clock information of the base station to the UE, and then the UE implements clock synchronization based on the clock information.
步骤603b,基站上的时钟源发生时钟失步,无法继续为UE提供授时服务,则该基站向TNF发送时钟失步通知消息,该时钟失步通知消息包括指示信息、发生时钟失步的时钟源的标识信息和基站的标识信息。Step 603b: The clock source on the base station is out of sync and cannot continue to provide timing services to the UE. The base station sends a clock out of sync notification message to the TNF. The clock out of sync notification message includes indication information and the clock source where the clock is out of sync. The identification information and the identification information of the base station.
该指示信息用于指示该基站的时钟源发生时钟失步。其中,发生时钟失步的原因可能是该基站接收的用于对时的时钟信号被遮挡,导致基站无法根据时钟信号中的时钟信息对该时钟源进行时钟同步。例如,基站的该时钟源是通过接收全球导航卫星系统(global navigation satellite system,GNSS)信号进行同步,如果基站无法接收到该GNSS信号,则无法根据GNSS信号中的时钟信息对基站的该时钟源进行同步。This indication information is used to indicate that the clock source of the base station is out of synchronization. Among them, the reason for clock desynchronization may be that the clock signal received by the base station for time synchronization is blocked, causing the base station to be unable to perform clock synchronization on the clock source based on the clock information in the clock signal. For example, the clock source of the base station is synchronized by receiving the global navigation satellite system (GNSS) signal. If the base station cannot receive the GNSS signal, it cannot synchronize the clock source of the base station based on the clock information in the GNSS signal. to synchronize.
其中,发生时钟失步的时钟源的标识信息可以是时钟源的时钟域号。The identification information of the clock source where clock desynchronization occurs may be the clock domain number of the clock source.
需要说明的是,如果该基站上仅有一个时钟源,即该发生时钟失步的时钟源,则该时钟失步通知消息中也可以不携带发生时钟失步的时钟源的标识信息。TNF可以根据基站的标识信息,获知发生时钟失步的时钟源。It should be noted that if there is only one clock source on the base station, that is, the clock source where clock desynchronization occurs, the clock desynchronization notification message does not need to carry the identification information of the clock source where clock desynchronization occurs. TNF can learn the clock source where clock desynchronization occurs based on the identification information of the base station.
步骤604,TNF根据发生时钟失步的时钟源的标识信息,确定为基站提供对时服务的时钟网元。Step 604: The TNF determines the clock network element that provides time synchronization services for the base station based on the identification information of the clock source where clock desynchronization occurs.
其中,该为基站提供对时服务的时钟网元中配置有目标时钟源,该目标时钟源能够提供目标授时精度,该目标授时精度与该发生时钟失步的时钟源对应的授时精度相同。Among them, the clock network element that provides time synchronization services for the base station is configured with a target clock source. The target clock source can provide a target timing accuracy that is the same as the timing accuracy corresponding to the clock source where clock desynchronization occurs.
以TNF确定为基站提供对时服务的时钟网元是UPF为例,则在步骤604之后执行以下步骤605至步骤608,也即由UPF为基站提供用于对时服务。Taking the TNF as an example that the clock network element that provides the time synchronization service for the base station is the UPF, the following steps 605 to 608 are performed after step 604, that is, the UPF provides the time synchronization service for the base station.
步骤605,TNF向UPF发送对时配置信息,该对时配置信息包括基站的标识信息、授时精度和指示信息,该指示信息用于指示UPF为基站提供对时服务。Step 605: The TNF sends time synchronization configuration information to the UPF. The time synchronization configuration information includes the base station's identification information, timing accuracy, and indication information. The indication information is used to instruct the UPF to provide time synchronization services for the base station.
该授时精度即为基站上的发生时钟失步的时钟源对应的授时精度。The timing accuracy is the timing accuracy corresponding to the clock source on the base station where clock desynchronization occurs.
步骤606,TNF向基站发送对时配置信息,该对时配置信息包括UPF的标识信息、授时精度和指示信息,该指示信息指示测量该基站上的时钟与UPF上的时钟之间的对时信息。Step 606: The TNF sends time synchronization configuration information to the base station. The time synchronization configuration information includes UPF identification information, timing accuracy, and indication information. The indication information indicates measuring the time synchronization information between the clock on the base station and the clock on the UPF. .
该授时精度即为基站上的发生时钟失步的时钟源对应的授时精度。The timing accuracy is the timing accuracy corresponding to the clock source on the base station where clock desynchronization occurs.
基站根据指示信息,测量该基站上的时钟与该UPF上的时钟之间的对时信息。一种实现方法中,该对时信息包括偏差。另一种实现方法中,该对时信息包括传输时延。The base station measures the time synchronization information between the clock on the base station and the clock on the UPF according to the instruction information. In one implementation method, the timing information includes an offset. In another implementation method, the time synchronization information includes transmission delay.
上述步骤605与步骤606的执行顺序不限。The execution order of the above steps 605 and 606 is not limited.
步骤607,UPF向基站发送授时信息,该授时信息包括UPF的时钟信息。Step 607: The UPF sends timing information to the base station. The timing information includes the clock information of the UPF.
该步骤608为可选步骤。This step 608 is an optional step.
该UPF的时钟信息对应的授时精度,与上述基站上的发生时钟失步的时钟源的授时精度相同。 The timing accuracy corresponding to the clock information of the UPF is the same as the timing accuracy of the clock source on the base station where clock desynchronization occurs.
步骤608,基站根据对时信息完成与UPF的时钟同步。Step 608: The base station completes clock synchronization with the UPF based on the time synchronization information.
一种实现方法中,当不执行上述步骤607且基站确定的对时信息包括偏差,则该步骤608具体是:基站根据发生时钟失步的时钟源的本地时间和该偏差,确定对时时间,并根据该对时时间完成与UPF的时钟同步。其中,对时时间=T1+offset,其中,T1表示发生时钟失步的时钟源的本地时间,offset表示偏差。In one implementation method, when the above step 607 is not performed and the time synchronization information determined by the base station includes a deviation, step 608 is specifically: the base station determines the time synchronization time based on the local time of the clock source where the clock desynchronization occurs and the deviation, And complete the clock synchronization with UPF according to the time synchronization time. Among them, the time adjustment time = T1 + offset, where T1 represents the local time of the clock source where clock desynchronization occurs, and offset represents the deviation.
另一种实现方法中,当执行上述步骤607且基站确定的对时信息包括传输时延,则该步骤608具体是:基站根据UPF的时钟信息对应的时间和该传输时延,确定对时时间,并根据该对时时间完成与UPF的时钟同步。其中,对时时间=T2+delay,其中,T2是UPF的时钟信息对应的时间,delay表示传输时延。In another implementation method, when the above step 607 is executed and the time synchronization information determined by the base station includes the transmission delay, then step 608 is specifically: the base station determines the time synchronization time based on the time corresponding to the UPF clock information and the transmission delay. , and complete clock synchronization with UPF according to the time synchronization time. Among them, the clock synchronization time = T2 + delay, where T2 is the time corresponding to the UPF clock information, and delay represents the transmission delay.
上述方案,当基站中的时钟源发生时钟失步,该基站通知TNF选择为该基站提供对时服务的时钟网元,然后由该时钟网元为该基站提供对时服务,实现保持基站的时钟的准确性。In the above scheme, when the clock source in the base station is out of synchronization, the base station notifies the TNF to select a clock network element that provides time synchronization services for the base station, and then the clock network element provides time synchronization services for the base station to maintain the clock of the base station. accuracy.
可以理解的是,为了实现上述实施例中功能,接入网设备或终端设备包括了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本申请中所公开的实施例描述的各示例的单元及方法步骤,本申请能够以硬件或硬件和计算机软件相结合的形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用场景和设计约束条件。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 access network equipment in the above method embodiment, the transceiver unit 720 is used to receive clock information from the timing network element; the processing unit 710 is used to calculate the clock information according to the clock information and the clock information. During the first residence time in the access network equipment, timing services are provided for the terminal equipment.
在一种实现方法中,该处理单元710,具体用于根据该第一停留时间、时钟频率比值和该授时信息,确定同步时间,该时钟频率比值表示该接入网设备与该授时网元之间的时钟频率之比;以及通过该收发单元720向该终端设备发送授时信息,该授时信息包括该同步时间,该同步时间用于该终端设备进行时钟同步。In an implementation method, the processing unit 710 is specifically configured to determine the synchronization time based on the first residence time, a clock frequency ratio and the timing information. The clock frequency ratio represents the relationship between the access network device and the timing network element. and sending timing information to the terminal device through the transceiver unit 720. The timing information includes the synchronization time, and the synchronization time is used for clock synchronization of the terminal device.
在一种实现方法中,该处理单元710,具体用于根据该第一停留时间和该时钟频率比值,确定该时钟信息在该接入网设备内的第二停留时间,该时钟频率比值表示该接入网设备与该授时网元之间的时钟频率之比,该第一停留时间表示以该接入网设备的时钟域为基准的停留时间,该第二停留时间表示以该授时网元的时钟域为基准的停留时间;以及通过该收发单元720向该终端设备发送授时信息,该授时信息包括该时钟信息和该第二停留时间,该授时信息用于该终端设备进行时钟同步。 In an implementation method, the processing unit 710 is specifically configured to determine the second residence time of the clock information in the access network device based on the first residence time and the clock frequency ratio, the clock frequency ratio indicating the The ratio of the clock frequency between the access network device and the timing network element. The first dwell time represents the dwell time based on the clock domain of the access network device. The second dwell time represents the dwell time based on the clock domain of the timing network element. The residence time based on the clock domain; and sending timing information to the terminal device through the transceiver unit 720, where the timing information includes the clock information and the second residence time, and the timing information is used for clock synchronization of the terminal device.
在一种实现方法中,该处理单元710,具体用于通过该收发单元720向该终端设备发送授时信息,该授时信息包括该第一停留时间、时钟频率比值和该时钟信息,该时钟频率比值表示该接入网设备与该授时网元之间的时钟频率之比,该授时信息用于该终端设备进行时钟同步。In an implementation method, the processing unit 710 is specifically configured to send timing information to the terminal device through the transceiver unit 720. The timing information includes the first residence time, a clock frequency ratio and the clock information. The clock frequency ratio Indicates the ratio of clock frequencies between the access network equipment and the timing network element. The timing information is used for clock synchronization of the terminal equipment.
在一种实现方法中,该第一停留时间包括该接入网设备收到该时钟信息的时间和该接入网设备向该终端设备发送该时钟信息的时间。In an implementation method, the first residence time includes the time when the access network device receives the clock information and the time when the access network device sends the clock information to the terminal device.
在一种实现方法中,该收发单元720,还用于接收来自时钟管理网元的指示信息,该指示信息指示测量该时钟频率比值;该处理单元710,还用于根据该指示信息,测量该时钟频率比值。In an implementation method, the transceiver unit 720 is also configured to receive indication information from the clock management network element, the indication information instructing to measure the clock frequency ratio; the processing unit 710 is also configured to measure the clock frequency ratio according to the indication information. Clock frequency ratio.
当该通信装置700用于实现上述方法实施例中的接入网设备的功能,收发单元720,用于向时钟管理网元发送通知消息,该通知消息包括第一指示信息和发生时钟失步的时钟源的标识信息,该第一指示信息指示该时钟源发生时钟失步;接收来自该时钟管理网元的配置信息,该配置信息包括第二指示信息和授时网元的标识信息,该第二指示信息指示测量该接入网设备上的时钟与该授时网元上的时钟之间的对时信息;处理单元710,用于根据该对时信息,对该时钟源进行时钟同步。When the communication device 700 is used to implement the functions of the access network equipment in the above method embodiment, the transceiver unit 720 is used to send a notification message to the clock management network element. The notification message includes the first indication information and the occurrence of clock desynchronization. Identification information of the clock source, the first indication information indicates that clock desynchronization occurs in the clock source; receiving configuration information from the clock management network element, the configuration information includes second indication information and identification information of the timing network element, the second The instruction information indicates measuring the time synchronization information between the clock on the access network device and the clock on the timing network element; the processing unit 710 is configured to perform clock synchronization on the clock source based on the time synchronization information.
在一种实现方法中,该处理单元710,还用于根据该第二指示信息,测量该对时信息。In an implementation method, the processing unit 710 is also configured to measure the time synchronization information according to the second indication information.
在一种实现方法中,该对时信息包括偏差,该偏差表示该接入网设备上的时钟与该授时网元上的时钟之间的偏差;该处理单元710,具体用于根据该时钟源的本地时间和该偏差,确定对时时间;根据该对时时间,对该时钟源进行时钟同步。In one implementation method, the time synchronization information includes a deviation, which represents a deviation between the clock on the access network device and the clock on the timing network element; the processing unit 710 is specifically configured to calculate the clock source according to the clock source. The local time and the deviation are used to determine the time synchronization time; based on the time synchronization time, clock synchronization is performed on the clock source.
在一种实现方法中,该对时信息包括传输时延,该传输时延表示该接入网设备上的时钟与该授时网元上的时钟之间的传输时延;该处理单元710,具体用于根据来自该授时网元的时钟信息和该传输时延,确定对时时间;根据该对时时间,对该时钟源进行时钟同步。In one implementation method, the time synchronization information includes a transmission delay, which represents a transmission delay between the clock on the access network device and the clock on the timing network element; the processing unit 710, specifically It is used to determine the time synchronization time based on the clock information from the timing network element and the transmission delay; and perform clock synchronization on the clock source based on the time synchronization time.
在一种实现方法中,该收发单元720,还用于接收来自该授时网元的该时钟信息。In an implementation method, the transceiver unit 720 is also used to receive the clock information from the timing network element.
当该通信装置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 timing information from the access network device. The timing information includes the clock information of the timing network element, the clock information in The ratio between the first dwell time and the clock frequency in the access network device. The first dwell time represents the dwell time based on the clock domain of the access network device. The clock frequency ratio represents the ratio between the access network device and the timing service. The ratio of clock frequencies between network elements; the processing unit 710 is configured to determine the synchronization time according to the first residence time, the clock frequency ratio and the clock information; and perform clock synchronization according to the synchronization time.
在一种实现方法中,该处理单元710,具体用于根据该第一停留时间和该时钟频率比值,确定该时钟信息在该接入网设备内的第二停留时间,该第二停留时间表示以该授时网元的时钟域为基准的停留时间;根据该第二停留时间和该时钟信息,确定该同步时间。In an implementation method, the processing unit 710 is specifically configured to determine the second residence time of the clock information in the access network device according to the first residence time and the clock frequency ratio, and the second residence time represents The dwell time is based on the clock domain of the timing network element; the synchronization time is determined based on the second dwell time and the clock information.
有关上述处理单元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, A server or data center transmits via wired or wireless means to another website site, computer, server, or data center. 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 before and after are an "or" relationship; in the formula of this application, the character "/" indicates that the related objects before and after are a kind of "division" 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 (30)

  1. 一种授时方法,其特征在于,包括:A timing method, characterized by including:
    接入网设备接收来自授时网元的时钟信息;The access network equipment receives clock information from the timing network element;
    所述接入网设备根据所述时钟信息和所述时钟信息在所述接入网设备内的第一停留时间,为终端设备提供授时服务。The access network device provides timing services to the terminal device based on the clock information and the first residence time of the clock information in the access network device.
  2. 如权利要求1所述的方法,其特征在于,所述接入网设备根据所述时钟信息和所述时钟信息在所述接入网设备内的第一停留时间,为终端设备提供授时服务,包括:The method of claim 1, wherein the access network device provides timing services for terminal devices based on the clock information and the first residence time of the clock information in the access network device, include:
    所述接入网设备根据所述第一停留时间、时钟频率比值和所述授时信息,确定同步时间,所述时钟频率比值表示所述接入网设备与所述授时网元之间的时钟频率之比;The access network device determines the synchronization time based on the first residence time, a clock frequency ratio and the timing information, where the clock frequency ratio represents the clock frequency between the access network device and the timing network element. Ratio;
    所述接入网设备向所述终端设备发送授时信息,所述授时信息包括所述同步时间,所述同步时间用于所述终端设备进行时钟同步。The access network device sends timing information to the terminal device, where the timing information includes the synchronization time, and the synchronization time is used for clock synchronization of the terminal device.
  3. 如权利要求1所述的方法,其特征在于,所述接入网设备根据所述时钟信息和所述时钟信息在所述接入网设备内的第一停留时间,为终端设备提供授时服务,包括:The method of claim 1, wherein the access network device provides timing services for terminal devices based on the clock information and the first residence time of the clock information in the access network device, include:
    所述接入网设备根据所述第一停留时间和所述时钟频率比值,确定所述时钟信息在所述接入网设备内的第二停留时间,所述时钟频率比值表示所述接入网设备与所述授时网元之间的时钟频率之比;The access network device determines a second residence time of the clock information in the access network device based on the first residence time and the clock frequency ratio, the clock frequency ratio indicating that the access network The ratio of clock frequencies between the device and the timing network element;
    所述接入网设备向所述终端设备发送授时信息,所述授时信息包括所述时钟信息和所述第二停留时间,所述授时信息用于所述终端设备进行时钟同步。The access network device sends timing information to the terminal device, where the timing information includes the clock information and the second residence time, and the timing information is used for clock synchronization of the terminal device.
  4. 如权利要求1所述的方法,其特征在于,所述接入网设备根据所述时钟信息和所述时钟信息在所述接入网设备内的第一停留时间,为终端设备提供授时服务,包括:The method of claim 1, wherein the access network device provides timing services for terminal devices based on the clock information and the first residence time of the clock information in the access network device, include:
    所述接入网设备向所述终端设备发送授时信息,所述授时信息包括所述第一停留时间、时钟频率比值和所述时钟信息,所述时钟频率比值表示所述接入网设备与所述授时网元之间的时钟频率之比,所述授时信息用于所述终端设备进行时钟同步。The access network device sends timing information to the terminal device. The timing information includes the first residence time, a clock frequency ratio and the clock information. The clock frequency ratio represents the difference between the access network device and the terminal device. The ratio of clock frequencies between the timing network elements, the timing information is used for clock synchronization of the terminal equipment.
  5. 如权利要求4所述的方法,其特征在于,所述第一停留时间包括所述接入网设备收到所述时钟信息的时间和所述接入网设备向所述终端设备发送所述时钟信息的时间。The method of claim 4, wherein the first residence time includes the time when the access network device receives the clock information and the time when the access network device sends the clock to the terminal device. Information time.
  6. 如权利要求2至5中任一项所述的方法,其特征在于,还包括:The method according to any one of claims 2 to 5, further comprising:
    所述接入网设备接收来自时钟管理网元的指示信息,所述指示信息指示测量所述时钟频率比值;The access network device receives instruction information from a clock management network element, and the instruction information instructs to measure the clock frequency ratio;
    所述接入网设备根据所述指示信息,测量所述时钟频率比值。The access network device measures the clock frequency ratio according to the indication information.
  7. 一种授时方法,其特征在于,包括:A timing method, characterized by including:
    接入网设备向时钟管理网元发送通知消息,所述通知消息包括第一指示信息和发生时钟失步的时钟源的标识信息,所述第一指示信息指示所述时钟源发生时钟失步;The access network device sends a notification message to the clock management network element, where the notification message includes first indication information and identification information of the clock source in which clock desynchronization occurs, and the first indication information indicates that clock desynchronization occurs in the clock source;
    所述接入网设备接收来自所述时钟管理网元的配置信息,所述配置信息包括第二指示信息和授时网元的标识信息,所述第二指示信息指示测量所述接入网设备上的时钟与所述授时网元上的时钟之间的对时信息;The access network device receives configuration information from the clock management network element. The configuration information includes second indication information and identification information of the timing network element. The second indication information instructs measurement of the time on the access network device. Time synchronization information between the clock and the clock on the timing network element;
    所述接入网设备根据所述对时信息,对所述时钟源进行时钟同步。The access network device performs clock synchronization on the clock source according to the time synchronization information.
  8. 如权利要求7所述的方法,其特征在于,还包括:The method of claim 7, further comprising:
    所述接入网设备根据所述第二指示信息,测量所述对时信息。The access network device measures the time synchronization information according to the second indication information.
  9. 如权利要求7或8所述的方法,其特征在于,所述对时信息包括偏差,所述偏差表 示所述接入网设备上的时钟与所述授时网元上的时钟之间的偏差;The method according to claim 7 or 8, characterized in that the time adjustment information includes a deviation, and the deviation table Indicates the deviation between the clock on the access network device and the clock on the timing network element;
    所述接入网设备根据所述对时信息,对所述时钟源进行时钟同步,包括:The access network device performs clock synchronization on the clock source based on the time synchronization information, including:
    所述接入网设备根据所述时钟源的本地时间和所述偏差,确定对时时间;The access network device determines the time synchronization time based on the local time of the clock source and the deviation;
    所述接入网设备根据所述对时时间,对所述时钟源进行时钟同步。The access network device performs clock synchronization on the clock source according to the time synchronization time.
  10. 如权利要求7或8所述的方法,其特征在于,所述对时信息包括传输时延,所述传输时延表示所述接入网设备上的时钟与所述授时网元上的时钟之间的传输时延;The method according to claim 7 or 8, characterized in that the time synchronization information includes a transmission delay, and the transmission delay represents the difference between the clock on the access network device and the clock on the timing network element. transmission delay;
    所述接入网设备根据所述对时信息,对所述时钟源进行时钟同步,包括:The access network device performs clock synchronization on the clock source based on the time synchronization information, including:
    所述接入网设备根据来自所述授时网元的时钟信息和所述传输时延,确定对时时间;The access network device determines the time synchronization time based on the clock information from the timing network element and the transmission delay;
    所述接入网设备根据所述对时时间,对所述时钟源进行时钟同步。The access network device performs clock synchronization on the clock source according to the time synchronization time.
  11. 如权利要求10所述的方法,其特征在于,还包括:The method of claim 10, further comprising:
    所述接入网设备接收来自所述授时网元的所述时钟信息。The access network device receives the clock information from the timing network element.
  12. 一种授时方法,其特征在于,包括:A timing method, characterized by including:
    终端设备接收来自接入网设备的授时信息,所述授时信息包括授时网元的时钟信息、所述时钟信息在所述接入网设备内的第一停留时间和时钟频率比值,所述时钟频率比值表示所述接入网设备与所述授时网元之间的时钟频率之比;The terminal device receives timing information from the access network device. The timing information includes clock information of the timing network element, a first residence time of the clock information in the access network device, and a clock frequency ratio. The clock frequency The ratio represents the ratio of clock frequencies between the access network device and the timing network element;
    所述终端设备根据所述第一停留时间、所述时钟频率比值和所述时钟信息,确定同步时间;The terminal device determines the synchronization time based on the first residence time, the clock frequency ratio and the clock information;
    所述终端设备根据所述同步时间进行时钟同步。The terminal device performs clock synchronization according to the synchronization time.
  13. 如权利要求12所述的方法,其特征在于,所述终端设备根据所述第一停留时间、所述时钟频率比值和所述时钟信息,确定同步时间,包括:The method of claim 12, wherein the terminal device determines the synchronization time based on the first residence time, the clock frequency ratio and the clock information, including:
    所述终端设备根据所述第一停留时间和所述时钟频率比值,确定所述时钟信息在所述接入网设备内的第二停留时间;The terminal device determines a second residence time of the clock information in the access network device based on the first residence time and the clock frequency ratio;
    所述终端设备根据所述第二停留时间和所述时钟信息,确定所述同步时间。The terminal device determines the synchronization time based on the second residence time and the clock information.
  14. 一种通信装置,其特征在于,包括:A communication device, characterized by including:
    收发单元,用于接收来自授时网元的时钟信息;Transceiver unit, used to receive clock information from timing network elements;
    处理单元,用于根据所述时钟信息和所述时钟信息在所述接入网设备内的第一停留时间,为终端设备提供授时服务。A processing unit configured to provide timing services for the terminal device according to the clock information and the first residence time of the clock information in the access network device.
  15. 如权利要求14所述的装置,其特征在于,所述处理单元,具体用于根据所述第一停留时间、时钟频率比值和所述授时信息,确定同步时间,所述时钟频率比值表示所述接入网设备与所述授时网元之间的时钟频率之比;以及通过所述收发单元向所述终端设备发送授时信息,所述授时信息包括所述同步时间,所述同步时间用于所述终端设备进行时钟同步。The device according to claim 14, characterized in that the processing unit is specifically configured to determine the synchronization time according to the first dwell time, a clock frequency ratio and the timing information, and the clock frequency ratio represents the The ratio of clock frequencies between access network equipment and the timing network element; and sending timing information to the terminal equipment through the transceiver unit, where the timing information includes the synchronization time, and the synchronization time is used for all The terminal equipment described above performs clock synchronization.
  16. 如权利要求14所述的装置,其特征在于,所述处理单元,具体用于根据所述第一停留时间和所述时钟频率比值,确定所述时钟信息在所述接入网设备内的第二停留时间,所述时钟频率比值表示所述接入网设备与所述授时网元之间的时钟频率之比;以及通过所述收发单元向所述终端设备发送授时信息,所述授时信息包括所述时钟信息和所述第二停留时间,所述授时信息用于所述终端设备进行时钟同步。The apparatus according to claim 14, wherein the processing unit is specifically configured to determine the third location of the clock information in the access network device based on the first residence time and the clock frequency ratio. 2. Residence time, the clock frequency ratio represents the ratio of clock frequencies between the access network device and the timing network element; and sending timing information to the terminal device through the transceiver unit, where the timing information includes The clock information and the second residence time, the timing information are used for clock synchronization of the terminal device.
  17. 如权利要求14所述的装置,其特征在于,所述处理单元,具体用于通过所述收发单元向所述终端设备发送授时信息,所述授时信息包括所述第一停留时间、时钟频率比值和所述时钟信息,所述时钟频率比值表示所述接入网设备与所述授时网元之间的时钟频率 之比,所述授时信息用于所述终端设备进行时钟同步。The device of claim 14, wherein the processing unit is specifically configured to send timing information to the terminal device through the transceiver unit, where the timing information includes the first residence time, clock frequency ratio and the clock information. The clock frequency ratio represents the clock frequency between the access network device and the timing network element. The timing information is used for clock synchronization of the terminal device.
  18. 如权利要求17所述的装置,其特征在于,所述第一停留时间包括所述接入网设备收到所述时钟信息的时间和所述接入网设备向所述终端设备发送所述时钟信息的时间。The apparatus according to claim 17, wherein the first residence time includes the time when the access network device receives the clock information and the time when the access network device sends the clock to the terminal device. Information time.
  19. 如权利要求15至18中任一项所述的装置,其特征在于,所述收发单元,还用于接收来自时钟管理网元的指示信息,所述指示信息指示测量所述时钟频率比值;The device according to any one of claims 15 to 18, wherein the transceiver unit is further configured to receive indication information from a clock management network element, the indication information instructing to measure the clock frequency ratio;
    所述处理单元,还用于根据所述指示信息,测量所述时钟频率比值。The processing unit is also configured to measure the clock frequency ratio according to the indication information.
  20. 一种通信装置,其特征在于,包括:A communication device, characterized by including:
    收发单元,用于向时钟管理网元发送通知消息,所述通知消息包括第一指示信息和发生时钟失步的时钟源的标识信息,所述第一指示信息指示所述时钟源发生时钟失步;接收来自所述时钟管理网元的配置信息,所述配置信息包括第二指示信息和授时网元的标识信息,所述第二指示信息指示测量所述接入网设备上的时钟与所述授时网元上的时钟之间的对时信息;A transceiver unit configured to send a notification message to the clock management network element. The notification message includes first indication information and identification information of a clock source where clock out-of-synchronization occurs. The first indication information indicates that clock out-of-synchronization occurs on the clock source. ; Receive configuration information from the clock management network element, the configuration information includes second indication information and identification information of the timing network element, the second indication information indicates measuring the clock on the access network device and the Time synchronization information between clocks on timing network elements;
    处理单元,用于根据所述对时信息,对所述时钟源进行时钟同步。A processing unit configured to perform clock synchronization on the clock source according to the time synchronization information.
  21. 如权利要求20所述的装置,其特征在于,所述处理单元,还用于根据所述第二指示信息,测量所述对时信息。The device according to claim 20, wherein the processing unit is further configured to measure the time synchronization information according to the second indication information.
  22. 如权利要求20或21所述的装置,其特征在于,所述对时信息包括偏差,所述偏差表示所述接入网设备上的时钟与所述授时网元上的时钟之间的偏差;The device according to claim 20 or 21, wherein the time synchronization information includes a deviation, and the deviation represents a deviation between the clock on the access network device and the clock on the timing network element;
    所述处理单元,具体用于根据所述时钟源的本地时间和所述偏差,确定对时时间;根据所述对时时间,对所述时钟源进行时钟同步。The processing unit is specifically configured to determine a time synchronization time based on the local time of the clock source and the deviation; and perform clock synchronization on the clock source based on the time synchronization time.
  23. 如权利要求20或21所述的装置,其特征在于,所述对时信息包括传输时延,所述传输时延表示所述接入网设备上的时钟与所述授时网元上的时钟之间的传输时延;The device according to claim 20 or 21, wherein the time synchronization information includes a transmission delay, and the transmission delay represents the difference between the clock on the access network device and the clock on the timing network element. transmission delay;
    所述处理单元,具体用于根据来自所述授时网元的时钟信息和所述传输时延,确定对时时间;根据所述对时时间,对所述时钟源进行时钟同步。The processing unit is specifically configured to determine the time synchronization time based on the clock information from the timing network element and the transmission delay; and perform clock synchronization on the clock source based on the time synchronization time.
  24. 如权利要求23所述的装置,其特征在于,所述收发单元,还用于接收来自所述授时网元的所述时钟信息。The device according to claim 23, wherein the transceiver unit is further configured to receive the clock information from the timing network element.
  25. 一种通信装置,其特征在于,包括:A communication device, characterized by including:
    收发单元,用于接收来自接入网设备的授时信息,所述授时信息包括授时网元的时钟信息、所述时钟信息在所述接入网设备内的第一停留时间和时钟频率比值,所述时钟频率比值表示所述接入网设备与所述授时网元之间的时钟频率之比;A transceiver unit configured to receive timing information from the access network device, where the timing information includes clock information of the timing network element, the first residence time of the clock information in the access network device, and the clock frequency ratio, so The clock frequency ratio represents the ratio of clock frequencies between the access network device and the timing network element;
    处理单元,用于根据所述第一停留时间、所述时钟频率比值和所述时钟信息,确定同步时间;根据所述同步时间进行时钟同步。A processing unit configured to determine a synchronization time based on the first residence time, the clock frequency ratio and the clock information; and perform clock synchronization based on the synchronization time.
  26. 如权利要求25所述的装置,其特征在于,所述处理单元,具体用于根据所述第一停留时间和所述时钟频率比值,确定所述时钟信息在所述接入网设备内的第二停留时间;根据所述第二停留时间和所述时钟信息,确定所述同步时间。The apparatus according to claim 25, wherein the processing unit is specifically configured to determine a third location of the clock information in the access network device based on the first residence time and the clock frequency ratio. Second residence time; determine the synchronization time according to the second residence time and the clock information.
  27. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被通信装置执行时,实现如权利要求1至13中任一项所述的方法。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 13 is implemented.
  28. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序或指令,当所述计算机程序或指令被通信装置执行时,实现如权利要求1至13中任一项所述的方法。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 13 is achieved. Methods.
  29. 一种通信系统,其特征在于,包括授时网元,和用于执行如权利要求1至6中任一 项所述方法的接入网设备;A communication system, characterized in that it includes a timing network element and is used to perform any one of claims 1 to 6 Access network equipment for the method described in the item;
    所述授时网元,用于向所述接入网设备发送时钟信息。The timing network element is used to send clock information to the access network device.
  30. 一种通信系统,其特征在于,包括时钟管理网元,和用于执行如权利要求7至11中任一项所述方法的接入网设备;A communication system, characterized in that it includes a clock management network element and an access network device used to perform the method according to any one of claims 7 to 11;
    所述时钟管理网元,用于接收来自所述接入网设备的通知消息,所述通知消息包括第一指示信息和发生时钟失步的时钟源的标识信息,所述第一指示信息指示所述时钟源发生时钟失步;以及,向所述接入网设备发送配置信息,所述配置信息包括第二指示信息和授时网元的标识信息,所述第二指示信息指示测量所述接入网设备上的时钟与所述授时网元上的时钟之间的对时信息。 The clock management network element is configured to receive a notification message from the access network device, where the notification message includes first indication information and identification information of a clock source where clock desynchronization occurs, and the first indication information indicates that the A clock desynchronization occurs in the clock source; and, sending configuration information to the access network device, where the configuration information includes second indication information and identification information of the timing network element, and the second indication information indicates measuring the access Time synchronization information between the clock on the network device and the clock on the timing network element.
PCT/CN2023/075684 2022-03-25 2023-02-13 Timing method, communication apparatus, and communication system WO2023179238A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210306010.2A CN116847449A (en) 2022-03-25 2022-03-25 Time service method, communication device and communication system
CN202210306010.2 2022-03-25

Publications (1)

Publication Number Publication Date
WO2023179238A1 true WO2023179238A1 (en) 2023-09-28

Family

ID=88099814

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/075684 WO2023179238A1 (en) 2022-03-25 2023-02-13 Timing method, communication apparatus, and communication system

Country Status (2)

Country Link
CN (1) CN116847449A (en)
WO (1) WO2023179238A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117082612B (en) * 2023-10-16 2023-12-29 深圳市鑫雅达机电工程有限公司 Cluster type control method and device for motor

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149186A (en) * 2010-02-10 2011-08-10 上海华为技术有限公司 Null interface synchronization method and equipment of time division system
CN108988972A (en) * 2017-06-02 2018-12-11 华为技术有限公司 A kind of clock synchronizing method and equipment
CN109687931A (en) * 2019-02-02 2019-04-26 北京邮电大学 For the time service method of mobile network, equipment and readable storage medium storing program for executing
CN110392422A (en) * 2018-04-23 2019-10-29 华为技术有限公司 A kind of method and device of determining clock source
WO2020183330A1 (en) * 2019-03-14 2020-09-17 Nokia Technologies Oy Efficient time reference information delivery for multiple clock domains
CN113572559A (en) * 2018-11-21 2021-10-29 华为技术有限公司 Synchronization method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149186A (en) * 2010-02-10 2011-08-10 上海华为技术有限公司 Null interface synchronization method and equipment of time division system
CN108988972A (en) * 2017-06-02 2018-12-11 华为技术有限公司 A kind of clock synchronizing method and equipment
CN110392422A (en) * 2018-04-23 2019-10-29 华为技术有限公司 A kind of method and device of determining clock source
CN113572559A (en) * 2018-11-21 2021-10-29 华为技术有限公司 Synchronization method and device
CN109687931A (en) * 2019-02-02 2019-04-26 北京邮电大学 For the time service method of mobile network, equipment and readable storage medium storing program for executing
WO2020183330A1 (en) * 2019-03-14 2020-09-17 Nokia Technologies Oy Efficient time reference information delivery for multiple clock domains

Also Published As

Publication number Publication date
CN116847449A (en) 2023-10-03

Similar Documents

Publication Publication Date Title
JP7064588B2 (en) Edge network capabilities How to achieve openness, equipment, equipment and storage media
JP7183416B2 (en) Time-dependent networking communication method and apparatus
WO2020187052A1 (en) Network slice selection method and apparatus
WO2021135187A1 (en) Slice control method and apparatus
WO2021223673A1 (en) Data transmission method and apparatus
CN112566149A (en) Method, communication device and communication system for configuring service
WO2021051420A1 (en) Dns cache record determination method and apparatus
WO2023179238A1 (en) Timing method, communication apparatus, and communication system
WO2024032304A1 (en) Clock synchronization guarantee method and apparatus
WO2022222745A1 (en) Communication method and apparatus
CN114071649B (en) Method and device for accessing local network
WO2021218244A1 (en) Communication method, apparatus and system
WO2021147687A1 (en) Communication method, device and system
WO2023231465A1 (en) Time synchronization method, communication apparatus and communication system
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
WO2023045741A1 (en) Positioning method and apparatus, and readable storage medium
WO2023125392A1 (en) Communication method and apparatus
WO2023061207A1 (en) Communication method, communication apparatus, and communication system
EP4325929A1 (en) Wireless communication method, communication apparatus and communication system
WO2023104123A1 (en) Communication method and apparatus, and device
WO2023213177A1 (en) Communication method and apparatus
WO2023179262A1 (en) Cell information configuration method and apparatus, and readable storage medium and chip system
WO2023179231A1 (en) Cell information configuration method and apparatus, and readable storage medium and chip system

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: 23773489

Country of ref document: EP

Kind code of ref document: A1