WO2023125392A1 - 一种通信方法及装置 - Google Patents

一种通信方法及装置 Download PDF

Info

Publication number
WO2023125392A1
WO2023125392A1 PCT/CN2022/141866 CN2022141866W WO2023125392A1 WO 2023125392 A1 WO2023125392 A1 WO 2023125392A1 CN 2022141866 W CN2022141866 W CN 2022141866W WO 2023125392 A1 WO2023125392 A1 WO 2023125392A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
clock
access network
timing
time
Prior art date
Application number
PCT/CN2022/141866
Other languages
English (en)
French (fr)
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 WO2023125392A1 publication Critical patent/WO2023125392A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes

Definitions

  • the present application relates to the technical field of communication, and in particular to a communication method and device.
  • the third generation partnership project (3rd generation partnership project, 3GPP) supports the clock in the 5th generation (5G) network to serve time for terminal devices.
  • the clock of the network element of the access network can serve time for the terminal device.
  • the network element of the access network can send time information to the terminal device through a system message or a radio resource control (RRC) message.
  • the time information It is used to indicate the time of the clock of the network element of the access network; for another example, the clock of the TNF network element can serve time for the terminal equipment.
  • the TNF network element can send time information to the network element of the access network through the AMF network element. The time information is used to indicate the clock time of the TNF network element, and then the access network element sends the time information to the terminal device.
  • the present application provides a communication method and device, which are used to determine a clock serving time for multiple terminal devices, thereby implementing time service for multiple terminal devices.
  • the embodiment of the present application provides a communication method, which can be applied to the first communication device or a chip in the first communication device, taking the application of the method to the first communication device as an example, in this method, the first A communication device receives a timing request message from a second communication device, the timing request message is used to request timing for a plurality of terminal devices, the plurality of terminal devices including a first terminal device and a second terminal device; and, according to a or the plurality of candidate clocks is determined as a target clock for timing the plurality of terminal devices based on the timing error accuracy corresponding to the timing of the plurality of terminal devices, and uses the target clock to provide time for the plurality of terminal devices.
  • the first communication device determines the target clock according to the timing error accuracy corresponding to one or more candidate clocks for multiple terminal equipments, and uses the target clock for multiple terminal equipments, it can be realized as multiple Terminal equipment time service, and it is convenient to meet the time synchronization requirements between multiple terminal equipment.
  • the timing error accuracy corresponding to the timing of the multiple terminal devices by the target clock is less than or equal to the first threshold; or, the target clock is the timing error accuracy corresponding to the timing of the multiple terminal devices.
  • the timing error precision is less than or equal to the timing error precision corresponding to the time service of the multiple terminal devices by other candidate clocks in the one or more candidate clocks.
  • the timing request message further includes clock precisions of the multiple terminal devices, and the clock precision of the target clock matches the clock precisions of the multiple terminal devices.
  • the one or more candidate clocks include a clock of a network element of the first access network; determining a target clock serving time for the plurality of terminals includes: determining the clock of the first access network The clock of the unit provides time for the first terminal device and provides time for the second terminal device.
  • the first access network element is a serving network element of the first terminal device; determining that the clock of the first access network element serves time for the second terminal device, Including: determining that the clock of the network element of the first access network provides time service for the second terminal device through the network element of the second access network, and the network element of the second access network is the service network of the second terminal device
  • the clock of the network element of the first access network serves the timing of the plurality of terminal devices, and the corresponding timing error accuracy is: the clock of the network element of the first access network serves the time of the network element of the second access network delay.
  • the method further includes: receiving first report information from the network element of the first access network, where the first report information includes that the clock of the network element of the first access network is The time delay of the network element timing of the second access network.
  • the method further includes: sending a first request message, where the first request message includes the identifier of the network element of the second access network, and the first request message is used to request the Report information first.
  • the method further includes: receiving first capability information from a network element of the first access network, where the first capability information is used to indicate a first reporting period, and the first reporting The information is valid within the first reporting period.
  • the one or more candidate clocks include a clock of a network element of the first access network and a clock of a network element of the second access network, and the network element of the first access network is the clock of the network element of the second access network
  • a service network element of a terminal device, the second access network network element being the service network element of the second terminal device; determining a target clock serving time for the plurality of terminal devices includes: determining the first access network element The clock of the access network element provides time for the first terminal device, and the clock of the second access network element provides time for the second terminal device.
  • the clock of the network element of the first access network provides the time for the first terminal equipment
  • the clock of the network element of the second access network provides the time for the second terminal equipment.
  • the timing error accuracy is: a clock error between the clock of the network element of the first access network and the clock of the network element of the second access network.
  • the one or more candidate clocks include a clock of a clock network function TNF network element; determining the target clock for timing service of the plurality of terminal devices includes: determining that the clock of the TNF network element is timing for the first terminal device and timing for the second terminal device.
  • determining that the clock of the TNF network element provides time for the first terminal device and provides time for the second terminal device includes: determining that the clock of the TNF network element passes through the first access network The network element provides time for the first terminal device, and the clock of the TNF network element provides time for the second terminal device through the second access network element; the first access network element is the first A serving network element of a terminal device, where the second access network element is a serving network element of the second terminal device;
  • the clock of the TNF network element is the time service error accuracy corresponding to the time service of the multiple terminal devices to satisfy the following formula:
  • W is the timing error precision corresponding to the clock of the TNF network element serving the timing of the plurality of terminal devices
  • Tt1 is the delay of the clock of the TNF network element serving the timing of the network element of the first access network
  • Tt2 is the time delay for the clock of the TNF network element to serve the time for the network element of the second access network.
  • the first communication device is a TNF network element.
  • receiving the timing request message from the second communication device includes: receiving the timing request message from the Network Opening Function (NEF) network element.
  • NEF Network Opening Function
  • the multiple terminal devices correspond to a first AMF network element
  • the first communication device is the first AMF network element.
  • receiving the timing request message from the second communication device includes: receiving the timing request message from the NEF network element.
  • the embodiment of the present application provides a communication method, which can be applied to the second communication device or a chip in the second communication device, taking the application of the method to the second communication device as an example, in this method, the first The second communication device receives a first timing request message, and the first timing request message includes a plurality of terminal equipment identifications; if the multiple terminal equipment corresponds to at least two AMF network elements, then sends a second timing request to the TNF network element message, the third timing request message includes the identifiers of the multiple terminal devices; if the multiple terminal devices correspond to the first AMF network element, then send the third timing request message to the first AMF network element, the The third timing request message includes identifiers of the multiple terminal devices.
  • the method further includes: sending a query message to a UDM network element, where the query message includes the identifiers of the plurality of terminal devices; receiving the information sent by the UDM network element according to the query message.
  • the identifiers of the AMF network elements corresponding to the multiple terminal devices.
  • the second communication device is an NEF network element; receiving the first timing request message includes: receiving the first timing request message from the AF network element.
  • the first timing request message, the second timing request message, and the third timing request message further include clock precisions of the multiple terminal devices.
  • the present application provides a communication device, the communication device has the function of realizing the above first aspect, for example, the communication device includes a corresponding module or unit or means (means) for performing the operations involved in the above first aspect , the modules or units or means may be realized by software, or by hardware, or by executing corresponding software by hardware.
  • the communication device includes a processing unit and a communication unit, wherein the communication unit can be used to send and receive signals to realize communication between the communication device and other devices; the processing unit can be used to perform the communication Some internal operations of the device.
  • the functions performed by the processing unit and the communication unit may correspond to the operations involved in the first aspect above.
  • the communication device includes a processor, and the processor can be used to be coupled with the memory.
  • the memory may store necessary computer programs or instructions to realize the functions referred to in the first aspect above.
  • the processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the communication device may implement the method in any possible design or implementation manner in the first aspect above.
  • the communication device includes a processor and a memory, and the memory can store necessary computer programs or instructions for realizing the functions mentioned in the above first aspect.
  • the processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the communication device may implement the method in any possible design or implementation manner in the first aspect above.
  • the communication device includes a processor and an interface circuit, where the processor is used to communicate with other devices through the interface circuit, and perform any possible design or implementation in the first aspect above. method.
  • the present application provides a communication device.
  • the communication device has the function of realizing the above-mentioned second aspect.
  • the communication device includes a module or unit or means corresponding to performing the operations involved in the above-mentioned second aspect.
  • Modules, units, or means can be realized by software, or by hardware, or by executing corresponding software by hardware.
  • the communication device includes a processing unit and a communication unit, wherein the communication unit can be used to send and receive signals to realize communication between the communication device and other devices; the processing unit can be used to perform the communication Some internal operations of the device.
  • the functions performed by the processing unit and the communication unit may correspond to the operations involved in the second aspect above.
  • the communication device includes a processor, and the processor can be used to be coupled with the memory.
  • the memory may store necessary computer programs or instructions to realize the functions referred to in the second aspect above.
  • the processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the communication device implements the method in any possible design or implementation manner in the second aspect above.
  • the communication device includes a processor and a memory, and the memory can store necessary computer programs or instructions for realizing the functions mentioned in the second aspect above.
  • the processor may execute the computer program or instruction stored in the memory, and when the computer program or instruction is executed, the communication device implements the method in any possible design or implementation manner in the second aspect above.
  • the communication device includes a processor and an interface circuit, where the processor is used to communicate with other devices through the interface circuit, and perform any possible design or implementation of the second aspect above. method.
  • the processor can be implemented by hardware or by software.
  • the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software
  • the processor may be a general-purpose processor, which is realized by reading software codes stored in the memory.
  • there may be one or more processors, and one or more memories.
  • the memory can be integrated with the processor, or the memory can be separated from the processor.
  • the memory and the processor can be integrated on the same chip, or they can be respectively arranged on different chips.
  • the embodiment of the present application does not limit the type of the memory and the arrangement of the memory and the processor.
  • the present application provides a communication system, which may include the communication device provided in the third aspect and the communication device provided in the fourth aspect; optionally, it may also include a plurality of terminal devices.
  • the present application provides a computer-readable storage medium, where computer-readable instructions are stored in the computer-readable medium, and when a computer reads and executes the computer-readable instructions, the computer executes the above-mentioned first aspect or A method in any of the possible designs of the second aspect.
  • the present application provides a computer program product.
  • the computer reads and executes the computer program product, the computer executes the method in any possible design of the first aspect or the second aspect above.
  • the present application provides a chip, the chip includes a processor, the processor is coupled with a memory, and is used to read and execute a software program stored in the memory, so as to realize the above-mentioned first aspect or second Aspects of any one of the possible design methods.
  • FIG. 1A and FIG. 1B are schematic diagrams of two network architectures provided by the embodiment of the present application.
  • FIG. 2 is a schematic diagram of a possible implementation flow for obtaining time delay and clock error provided by the embodiment of the present application;
  • FIG. 3 is a schematic flowchart corresponding to the communication method provided in Embodiment 1 of the present application.
  • FIG. 4 is a schematic flowchart corresponding to the communication method provided in Embodiment 2 of the present application.
  • FIG. 5 is a schematic flowchart corresponding to the communication method provided in Embodiment 3 of the present application.
  • FIG. 6 is a possible exemplary block diagram of a device involved in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 1A is a schematic diagram of a 5G network architecture based on a service-based architecture.
  • the 5G network architecture shown in FIG. 1A may include terminal equipment, access network equipment, and core network equipment.
  • the terminal device accesses the data network (data network, DN) through the access network device and the core network device.
  • data network data network
  • the core network equipment includes some or all of the following network elements: unified data management (unified data management, UDM) network elements, unified database (unified data repository, UDR) network elements, network exposure function (network exposure function, NEF) Network element (not shown in the figure), application function (application function, AF) network element, policy control function (policy control function, PCF) network element, access and mobility management function (access and mobility management function, AMF) Network element, session management function (session management function, SMF) network element, user plane function (user plane function, UPF) network element, network storage function (Network Repository Function, NRF) network element (not shown in the figure), clock Network function (timing network function, TNF) network element.
  • unified data management unified data management
  • UDR unified data repository
  • NEF network exposure function
  • NEF network exposure function
  • application function application function, AF
  • policy control function policy control function
  • PCF policy control function
  • AMF access and mobility management function
  • AMF session management function
  • SMF session management function
  • the terminal equipment also called user equipment, UE of this application is a device with wireless transceiver function, which can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; it can also be deployed on water (such as ships, etc.); can also be deployed in the air (such as aircraft, balloons and satellites, etc.).
  • the terminal device may be a mobile phone, a tablet computer (pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal, an augmented reality (augmented reality, AR) terminal, an industrial control (industrial control ), wireless terminals in self driving, wireless terminals in remote medical, wireless terminals in smart grid, wireless terminals in transportation safety , wireless terminals in smart cities, wireless terminals in smart homes, etc.
  • VR virtual reality
  • AR augmented reality
  • industrial control industrial control
  • the above-mentioned terminal device can establish a connection with the operator network through an interface provided by the operator network (such as N1, etc.), and use services such as data and/or voice provided by the operator network.
  • the terminal device can also access the DN through the operator's network, and use the operator's service deployed on the DN, and/or the service provided by a third party.
  • the above-mentioned third party may be a service party other than the operator's network and the terminal device, and may provide other services such as data and/or voice for the terminal device.
  • the specific form of expression of the above-mentioned third party can be determined according to the actual application scenario, and is not limited here.
  • An access network device (also called an access network element) is a device that provides a wireless communication function for a terminal device.
  • Access network equipment includes, but is not limited to: a next-generation base station (g nodeB, gNB) in 5G, an evolved node B (evolved node B, eNB), a radio network controller (radio network controller, RNC), a node B ( node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved nodeB, or home node B, HNB), baseband unit (baseBand unit , BBU), transmission point (transmitting and receiving point, TRP), transmission point (transmitting point, TP), mobile switching center, etc.
  • g nodeB, gNB next-generation base station
  • eNB evolved node B
  • RNC radio network controller
  • RNC radio network controller
  • node B node B
  • base station controller base
  • Access network equipment and terminal equipment can be fixed or mobile. Access network equipment and terminal equipment can be deployed on land, including indoor or outdoor, handheld or vehicle-mounted; they can also be deployed on water; they can also be deployed on aircraft, balloons and artificial satellites in the air.
  • the embodiments of the present application do not limit the application scenarios of the access network device and the terminal device.
  • the mobility management network element is a control plane network element provided by the operator network, which is responsible for access control and mobility management of terminal equipment accessing the operator network, such as including mobility status management, assigning user temporary identities, Functions such as authenticating and authorizing users.
  • 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.
  • the session management network element is a control plane network element provided by an operator network, and is responsible for managing a protocol data unit (protocol data unit, PDU) session of a terminal device.
  • a PDU session is a channel for transmitting PDUs, and terminal equipment needs to transmit PDUs with DN through the PDU session.
  • the PDU session is established, maintained and deleted by the SMF network element.
  • 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, which are not limited in this application.
  • the user plane network element is a gateway provided by an operator, and is a gateway for communication between the operator's network and the DN.
  • UPF network elements include data packet routing and transmission, packet detection, service usage reporting, Quality of Service (QoS) processing, lawful interception, uplink packet detection, downlink data packet storage, and other user-plane-related functions.
  • QoS Quality of Service
  • the user plane network element can be a UPF network element.
  • future communication such as 6G, the user plane network element can still be a UPF network element, or have other names, which are not limited in this application.
  • the data management network element is the control plane network element provided by the operator, which is responsible for storing the subscriber permanent identifier (SUPI), credential, and security context of the subscriber in the operator's network. context), signing data and other information.
  • the information stored by the data management network element can be used for authentication and authorization of terminal equipment to access the operator's network.
  • the subscribers of the above-mentioned operator network may specifically be users who use services provided by the operator network, such as users who use China Telecom's mobile phone chip card, or users who use China Mobile's mobile phone chip card.
  • the subscription permanent identifier (SUPI) of the above-mentioned subscriber may be the number of the mobile phone chip card or the like.
  • the credential and security context of the above-mentioned contracted user may be small files 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 aforementioned security context may be data (cookie) or token (token) stored on the user's local terminal (such as a mobile phone).
  • the subscription data of the above-mentioned subscribers can be the supporting services of the mobile phone chip card, such as the data package or network usage of the mobile phone chip card.
  • permanent identifiers, credentials, security contexts, authentication data (cookies), and tokens are equivalent to information related to authentication and authorization. In this application document, for the convenience of description, no distinction or limitation is made.
  • the embodiment of the present application will be described by taking the security context as an example, but the embodiment of the present application is also applicable to authentication and/or authorization information expressed in other ways.
  • the data management network element can be a UDM network element.
  • future communication such as 6G, the data management network element can still be a UDM network element, or have other names, which are not limited in this application.
  • the unified database network element is a control plane network element provided by an operator, and includes the access function 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, which are not limited in this application.
  • the network open network element is a control plane network element provided by an operator.
  • the network opening network element opens the external interface of the operator's network to the third party in a secure manner.
  • the network open NE can serve as a relay for the session management NE to communicate with the third-party NE.
  • the open network element can be used as the translation of the identification information of the subscriber and the translation of the identification information of the third-party network element. For example, when the network open network element sends the subscriber's SUPI from the operator's network to a third party, it may translate the SUPI into its corresponding external identity (identity, ID).
  • an open network element when an open network element sends an external ID (the third-party network element ID) to the operator network, it can translate it into SUPI.
  • the network open network element can be a NEF network element.
  • future communications such as 6G, the network open network element can still be a NEF network element, or have other names, which are not limited in this application.
  • the application function network element is used to transfer the requirements from the application side to the network side, for example, QoS requirements or user status event subscription.
  • the application function network element can be a third-party functional entity, or an application server deployed by an 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, which are not limited in this application.
  • the policy control network element is a control plane function provided by the operator, and is used to provide the policy of the PDU session to the session management network element.
  • Policies may include accounting-related policies, QoS-related policies, and authorization-related policies.
  • 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, which are not limited in this application.
  • the network element with the network storage function may be used to provide the network element discovery function, and provide network element information corresponding to the network element type based on the request of other network elements.
  • the network element with the network storage function also provides network element management services, such as network element registration, update, de-registration, and network element status subscription and push.
  • the network storage function network element may be an NRF network element.
  • future communications such as 6G, the network storage function network element may still be an NRF network element, or have other names, which are not limited in this application.
  • the clock network function network element can be used to manage the information of one or more clocks in the 5G network, and can provide clock time information externally through its own port, such as directly or indirectly to terminal equipment, access network equipment, core Network devices or third-party application function network elements provide clock time information.
  • the time information represents the time, moment or time point of the clock.
  • the clock network function network element may be a TNF network element.
  • the function of the TNF network element may be implemented by a time sensitive communication and time synchronization function (time sensitive communication and time synchronization function, TSCTSF) network element defined by 3GPP. accomplish.
  • TSCTSF time sensitive communication and time synchronization function
  • the clock network function network element can still be a TNF network element, or have other names, which are not limited in this application.
  • DN is a network outside the operator's network.
  • the operator's network can access multiple DNs, and various services can be deployed on the DN, which can provide data and/or voice services for terminal equipment.
  • 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 a company's internal office network, and the mobile phone or computer of the company's employees can be a terminal device, and the employee's mobile phone or computer can access information and data resources on the company's internal office network.
  • Npcf, Nudr, Nudm, Naf, Namf, Nsmf, and Ntnf in Figure 1A are the service interfaces provided by the above PCF, UDR, UDM, AF, AMF, SMF, and TNF, respectively, and are used to call corresponding service operations.
  • N1, N2, N3, N4, and N6 are interface serial numbers, and the meanings of these interface serial numbers may refer to the description in FIG. 1B.
  • FIG. 1B is a schematic diagram of a 5G network architecture based on a point-to-point interface.
  • the interface between each control plane network element in Fig. 1A is a service interface
  • the interface between each control plane network element in Fig. 1B is a point-to-point interface.
  • N1 the interface between the AMF and the terminal device, which can be used to transmit NAS signaling (such as including QoS rules from the AMF) to the terminal device.
  • N2 the interface between the AMF and the RAN, which can be used to transfer radio bearer control information from the core network side to the RAN.
  • N3 the interface between the RAN and the UPF, mainly used to transfer the uplink and downlink user plane data between the RAN and the UPF.
  • N4 The interface between SMF and UPF, which can be used to transfer information between the control plane and the user plane, including controlling the distribution of forwarding rules, QoS control rules, traffic statistics rules, etc. Information reporting.
  • N5 the interface between the AF and the PCF, which can be used for sending application service requests and reporting network events.
  • N6 the interface between UPF and DN, used to transfer the uplink and downlink user data flow between UPF and DN.
  • N7 the interface between PCF and SMF, which can be used to deliver protocol data unit (protocol data unit, PDU) session granularity and service data flow granularity control policy.
  • protocol data unit protocol data unit
  • PDU protocol data unit
  • N8 the interface between AMF and UDM, which can be used for AMF to obtain subscription data and authentication data related to access and mobility management from UDM, and for AMF to register information related to current mobility management of terminal equipment with UDM.
  • N9 a user plane interface between UPF and UPF, used to transmit uplink and downlink user data flows between UPFs.
  • N10 the interface between SMF and UDM, which can be used for SMF to obtain session management-related subscription data from UDM, and for SMF to register current session-related information of terminal equipment with UDM.
  • N11 the interface between SMF and AMF, which can be used to transfer PDU session tunnel information between RAN and UPF, transfer control messages sent to terminal devices, transfer radio resource control information sent to RAN, etc.
  • N15 the interface between PCF and AMF, which can be used to issue terminal device policies and access control related policies.
  • N35 the interface between UDM and UDR, which can be used for UDM to obtain user subscription data information from UDR.
  • N36 the interface between PCF and UDR, which can be used for PCF to obtain policy-related subscription data and application data-related information from UDR.
  • the above-mentioned network element or function may be a network element in a hardware device, or a software function running on dedicated hardware, or a virtualization function instantiated on a platform (for example, a cloud platform).
  • a platform for example, a cloud platform.
  • the foregoing network element or function may be implemented by one device, or jointly implemented by multiple devices, or may be a functional module in one device, which is not specifically limited in this embodiment of the present application.
  • an embodiment of the present application provides a communication method.
  • the first communication device receives a timing request message from the second communication device, and the timing request message is used to request multiple time service to a plurality of terminal devices; the first communication device determines the target clock for time service to multiple terminal devices according to the timing error accuracy corresponding to one or more candidate clocks for time service to multiple terminal devices, and uses the target clock to provide time service to multiple terminal devices .
  • the first communication device determines the target clock according to the timing error accuracy corresponding to the time service of multiple terminal devices by one or more candidate clocks, it can realize time service for multiple terminal devices, and it is convenient to meet the requirements between multiple terminal devices. time synchronization requirements.
  • the clock accuracy of the terminal device may include two parts, the first part is a value, and the second part is a time unit.
  • the second part of the clock precision of the terminal device depends on the minimum time unit of the clock of the terminal device, such as seconds, milliseconds, microseconds, etc.; the first part of the clock precision of the terminal device depends on the adjustment step of the clock of the terminal device, such as 1.
  • the first node When communicating between different nodes, there will be a transmission delay (referred to as delay). For example, if the clock of the first node serves time for the second node, there will be a time service delay.
  • the first node is an access network element, and the second node is a terminal device; or, the first node is a first access network element, and the second node is a second access network element; or , the first node is a TNF network element, and the second node is an access network element.
  • Clock errors may exist between clocks of different nodes. For example, if the clocks of the first node and the clocks of the second node are not synchronized, there will be clock errors between the clocks of the first node and the clocks of the second node.
  • the process may include:
  • the first node sends the first signal to the second node at time t1, and records the time t1 of sending the first signal; correspondingly, the second node receives the first signal at time t2, and records the time of receiving the first signal t2.
  • the second node sends the second signal to the first node at time t3, and records the time t3 at which the second signal is sent; correspondingly, the first node receives the second signal at time t4, and records the time at which the second signal is received t4.
  • the second node sends time information to the first node, where the time information includes time t2 and time t3; correspondingly, the first node receives the time information.
  • the first node determines the time delay for the clock of the first node to serve time to the second node.
  • the first node can determine the time delay T for the clock of the first node to serve the second node through the following formula:
  • the first node determines a clock error between the clock of the first node and the clock of the second node according to the time information.
  • the first node can determine the clock error F between the clock of the first node and the clock of the second node by the following formula:
  • the first node may also send the time t1 and the time t4 to the second node, and then the second node calculates the time delay T and the clock error F.
  • the calculation of the time delay T and the clock error F by the first node will be described as an example.
  • FIG. 3 is a schematic flowchart corresponding to the communication method provided in Embodiment 1 of the present application. As shown in Figure 3, including:
  • the first communication device receives a timing request message from the second communication device, where the timing request message is used to request timing for multiple terminal devices.
  • the timing request message may include identifiers of multiple terminal devices.
  • the two terminal devices may be a first terminal device and a second terminal device respectively.
  • the access network element serving the first terminal device may be the first access network element, for example, the first terminal device is located in the coverage area of the first access network element, and then the first access network element
  • the service may be provided for the first terminal device;
  • the network element of the access network serving the second terminal device may be a network element of the second access network, for example, the second terminal device is located in the coverage area of the network element of the second access network, and then
  • the network element of the second access network may provide a service for the second terminal device.
  • the timing request message may also include other possible information, such as clock accuracy of multiple terminal devices.
  • the time precision of the first terminal device and the second terminal device may be the same, for example, the time precision of the first terminal device and the second terminal device is 1 millisecond; or, the time precision of the first terminal device may be higher than that of the second terminal device.
  • Accuracy for example, the time precision of the first terminal device is 1 millisecond, and the time precision of the second terminal device is 1 second; or, the time precision of the first terminal device can be lower than that of the second terminal device, such as the time of the first terminal device The precision is 1 second, and the time precision of the second terminal device is 1 millisecond.
  • the first communication device may be a TNF network element, or when the first terminal device and the second terminal device correspond to the same AMF network element (such as the first AMF network element), the first communication device may also be the first AMF network element.
  • a network element; the second communication device may be a NEF network element.
  • the first communication device determines a target clock to serve time to multiple terminal devices according to timing error accuracy corresponding to one or more candidate clocks serving time to multiple terminal devices.
  • S302 may include step a, step b, and step c.
  • the first communication device may determine a candidate clock for each terminal device to provide time for the terminal device.
  • the first communication device may determine that the candidate clocks for timing the first terminal device include: 1 the clock of the network element of the first access network, 2 the clock of the network element of the second access network, 3 the clock of the TNF network and, for the second terminal equipment, the candidate clocks that the first communication device may determine to provide timing for the second terminal equipment include: 4 the clock of the network element of the first access network, 5 the clock of the network element of the second access network Clock, 6 the clock of the TNF network element.
  • the first communication device may determine the timing error accuracy corresponding to any clock in 123 serving time for the first terminal device and any clock in 456 serving time for the second terminal device.
  • the first communication device may determine the timing error accuracy
  • the clock of the network element of the second access network is the timing error accuracy corresponding to the time service for the first terminal equipment and the time service for the second terminal equipment (corresponding to 2 and 5, hereinafter referred to as the second timing mode)
  • the network element of the first access network is the time service of the first terminal equipment and the clock of the second access network element is the time service of the second terminal equipment (corresponding to 1 5, hereinafter referred to as the third timing method) corresponding to the timing error accuracy
  • the clock of the TNF network element is the first Time service for a terminal device and timing error accuracy corresponding to time service for a second terminal device (corresponding to 36, hereinafter referred to as the fourth timing method).
  • the timing error accuracy may refer to the error between the timing delay corresponding to the timing for the first terminal device and the timing delay corresponding to the timing for the second terminal device, or may also refer to the error between the timing delay corresponding to the timing for the first terminal device.
  • the clock error between the clock of the first terminal device and the clock of the second terminal device after the device and the second terminal device are clocked.
  • timing methods Only four of the timing methods are listed here, and other timing methods may also be included, which will not be listed one by one here.
  • the clock of the first access network element provides timing for the first terminal device.
  • the first access network element sends the first time information to the first terminal device.
  • the first time information is used to indicate that the first The time of the clock of the network element of the access network; and, the clock of the network element of the first access network serves time for the second terminal device, since the network element of the first access network is not the network element of the access network serving the second terminal device, Therefore, the clock of the first access network element serving time for the second terminal device may mean that the clock of the first access network element provides time for the second terminal device through the second access network element, such as the first access network The network element sends the first time information to the second access network element, and then the second access network element sends the first time information to the second terminal device.
  • the clock of the network element of the first access network provides time for the first terminal device (for example, the delay of the first access network device sending the first time information to the first terminal device) and the time delay of the second access network
  • the clock of the network element provides the same time delay for the second terminal device (for example, the second access network device sends the first time information to the second terminal device)
  • the timing error accuracy corresponding to the first timing method can be: the clock of the first access network element is the time delay of the second access network element, or in other words, the first access network element to the second access network
  • the time delay for the clock of the first access network element to serve the time of the second access network element may be determined by the first access network element through formula 1 described above.
  • the clock of the second access network element provides time service for the first terminal equipment. Since the second access network element is not an access network element serving the first terminal equipment, the second access network element The clock of the network element providing time service to the first terminal device may mean that the network element of the second access network provides time service to the first terminal device through the network element of the first access network, for example, the network element of the second access network
  • the network element of the access network sends the second time information, and the second time information is used to indicate the time of the clock of the network element of the second access network, and then the network element of the first access network sends the second time information to the first terminal device;
  • the clock of the network element of the second access network serves time for the second terminal device, for example, the second access network element sends the second time information to the second terminal device.
  • timing error precision 2 may be: the time delay when the clock of the network element of the second access network is the time service of the network element of the first access network.
  • the time delay during which the clock of the network element of the second access network serves the time of the network element of the first access network may be determined by the network element of the second access network through the formula 1 described above.
  • the clock of the network element of the first access network provides time for the first terminal device
  • the clock of the network element of the second access network provides time for the second terminal device.
  • the timing error precision corresponding to the third timing mode may be: the clock error between the clock of the network element of the first access network and the clock of the network element of the second access network.
  • the clock error between the clock of the network element of the first access network and the clock of the network element of the second access network may be determined by the network element of the first access network through the formula 2 described above.
  • the clock of the TNF network element provides timing for the first terminal equipment, for example, the TNF network element sends the third time information to the first access network element, and the third time information is the time of the clock of the TNF network element information, and then the first access network element sends the third time information to the first terminal device; and the clock of the TNF network element provides timing for the second terminal device, for example, the TNF network element sends the second time information to the second access network element Three time information, and then the second access network element sends the third time information to the second terminal device.
  • W is the timing error accuracy 4
  • Tt1 is the clock of the TNF network element as the first connection
  • Tt2 is the time delay of the time service of the TNF network element to the network element of the second access network.
  • the time delay during which the clock of the TNF network element provides time to the network element of the first access network and the network element of the second access network may be determined by the TNF network element through Formula 2 described above.
  • the first communication device can obtain from the network element of the first access network the time delay for the clock of the network element of the first access network to serve the time of the network element of the second access network, and then obtain the timing error accuracy of 1; the first communication device can Obtain from the second access network element the clock of the second access network element as the time delay of the first access network element, and then obtain the timing error accuracy 2; the first communication device can obtain from the first access network Obtain the clock error between the clock of the first access network element and the clock of the second access network element, and then obtain the timing error accuracy 3; the first communication device can obtain the clock of the TNF network element from the TNF network element as The timing delay between the first access network element and the second access network element (if the first communication device is a TNF network element, this step does not need to be performed), and then the timing error accuracy 4 is obtained.
  • the first communication device may determine a target clock for timing the multiple terminal devices according to the timing error accuracy corresponding to each of the multiple timing modes.
  • the first communication device may determine timing error accuracies corresponding to all possible timing modes, and determine target clocks for multiple terminal devices according to the timing error accuracies corresponding to these timing modes. Or, because the timing error accuracy corresponding to some timing methods is obviously larger (for example, the timing error corresponding to the clock of the first access network element serving the first terminal equipment and the clock of the TNF network element serving the second terminal equipment Accuracy is obviously larger), therefore, the first communication device can also determine the timing error accuracy corresponding to some timing methods, and according to the timing error accuracy corresponding to these timing methods, determine the target clock as the timing target clock for multiple terminal equipment, thereby Save processing resources.
  • the first communication device may determine timing error accuracy 1, timing error accuracy 2, timing error accuracy 3, and timing error accuracy 4, and according to timing error accuracy 1, timing error accuracy 2, timing error accuracy 3, and timing error accuracy 4 Size, select the target timing mode, and then determine the clock that serves multiple terminal devices corresponding to the target timing mode as the target clock.
  • the target timing mode may be the timing mode corresponding to the smallest timing error precision among timing error precision 1, timing error precision 2, timing error precision 3 and timing error precision 4.
  • timing error accuracy 1 ⁇ timing error accuracy 2 ⁇ timing error accuracy 3 ⁇ timing error accuracy 4 then the target timing mode is the first timing mode, and the target clock is the clock of the first access network element.
  • the first communication device may, according to the sizes of timing error accuracy 1, timing error accuracy 2, timing error accuracy 3, and timing error accuracy 4 and the multiple terminal equipment For the clock precision of the device, select the target timing mode.
  • the clock precision of the clock serving multiple terminal devices corresponding to the target timing mode matches the clock precision of multiple terminal devices.
  • timing error accuracy 1 ⁇ timing error accuracy 2 ⁇ timing error accuracy 3 ⁇ timing error accuracy 4 matches the clock accuracy of multiple terminal devices, Then the target timing mode selected by the first communication device may be the first timing mode.
  • timing error accuracy 1 timing error accuracy 2 ⁇ timing error accuracy 3 ⁇ timing error accuracy 4
  • the clock accuracy of the clock serving multiple terminal devices corresponding to the first timing method does not match the clock accuracy of multiple terminal devices If the clock precision of the clock serving multiple terminal devices corresponding to the second timing mode matches the clock precision of the multiple terminal devices, then the target timing mode selected by the first communication device may be the second timing mode.
  • timing error accuracy 1 ⁇ timing error accuracy 2 ⁇ timing error accuracy 3 ⁇ timing error accuracy 4 the clock accuracy of the clock serving multiple terminal devices corresponding to the first timing method does not match the clock accuracy of multiple terminal devices If the clock precision of the clock serving multiple terminal devices corresponding to the first timing mode matches the clock precision of multiple terminal devices, then the target timing mode selected by the first communication device may be the second timing mode.
  • matching the clock precision of the clock serving multiple terminal devices corresponding to the first timing mode with the clock precision of multiple terminal devices may refer to: the first access network element
  • the clock accuracy of is higher than or equal to the clock accuracy of multiple end devices.
  • Matching the clock precision of the clock serving multiple terminal devices corresponding to the second timing mode with the clock precision of multiple terminal devices may refer to: the clock precision of the network element of the second access network is higher than or equal to the clock precision of multiple terminal devices precision.
  • matching the clock precision of the clock serving multiple terminal devices with the clock precision of multiple terminal devices may refer to: the clock precision of the network element of the first access network is higher than or equal to the clock of the first terminal device precision, and the clock precision of the network element of the second access network is higher than or equal to the clock precision of the second terminal device.
  • Matching the clock precision of the clock serving multiple terminal devices corresponding to the fourth timing mode with the clock precision of multiple terminal devices may mean that the clock precision of the TNF network element is higher than or equal to the clock precision of multiple terminal devices.
  • the clock precision of the clock serving multiple terminal devices corresponding to the first timing mode matches more
  • the clock precision of a terminal device may refer to: the clock precision of the network element of the first access network is higher than or equal to the clock precision of the first terminal device.
  • Matching the clock precision of the clock serving multiple terminal devices corresponding to the second timing mode with the clock precision of multiple terminal devices may refer to: the clock precision of the network element of the second access network is higher than or equal to the clock of the first terminal device precision.
  • matching the clock precision of the clock serving multiple terminal devices with the clock precision of multiple terminal devices may refer to: the clock precision of the network element of the first access network is higher than or equal to the clock of the first terminal device precision, and the clock precision of the network element of the second access network is higher than or equal to the clock precision of the second terminal device.
  • Matching the clock precision of the clock serving multiple terminal devices corresponding to the fourth timing mode with the clock precision of multiple terminal devices may refer to: the clock precision of the TNF network element is higher than or equal to the clock precision of the first terminal device.
  • the first communication device after the first communication device determines a certain timing error accuracy (such as timing error accuracy 1), it can compare the timing error accuracy 1 with the first threshold; if the timing error accuracy 1 is greater than the first threshold, then continue to determine the timing error accuracy (such as timing error accuracy 2) corresponding to other timing methods, and compare the timing error accuracy 2 with the first threshold; if the timing error accuracy 2 is less than or equal to the first threshold, Then it can be determined that the second timing method is the target timing method, and then the clock corresponding to the second timing method that serves multiple terminal devices is determined as the target clock.
  • the first communication device does not need to determine other timing methods
  • the corresponding timing error accuracy can effectively save processing resources.
  • the first threshold may be predefined by the protocol, which is not specifically limited.
  • the first communication device uses the target clock to serve time for multiple terminal devices.
  • the specific implementation of the first communication device using the target clock to serve multiple terminal devices can refer to the description in Embodiment 2.
  • the first communication device is a first AMF network element
  • the first communication device uses the target clock to serve time for multiple terminal devices reference may be made to the description in Embodiment 3.
  • the first communication device can perform one time service for multiple terminal devices by executing the above S302 to S303.
  • the first communication device can perform S302 to S303 multiple times, so as to provide The device performs multiple timings.
  • the first communication device determines the target clock according to the timing error accuracy corresponding to one or more candidate clocks serving multiple terminal devices, it can implement timing for multiple terminal devices, and it is convenient Meet the time synchronization requirements between multiple terminal devices.
  • the first communication device in the first embodiment is a TNF network element
  • the second communication device is a NEF network element as an example, and a possible implementation will be described in conjunction with FIG. 4 process.
  • FIG. 4 is a schematic flowchart corresponding to the communication method provided in Embodiment 2 of the present application. This process may be applicable to a situation where multiple terminal devices (such as a first terminal device and a second terminal device) correspond to different AMF network elements. As shown in Figure 4, including:
  • the AF network element sends a first timing request message to the NEF network element, where the first timing request message includes identifiers of multiple terminal devices; correspondingly, the NEF network element receives the first timing request message.
  • the first timing request message may also include clock precisions of multiple terminal devices.
  • the NEF network element determines that the first terminal device and the second terminal device correspond to different AMF network elements, and sends a second timing request message to the TNF network element, and correspondingly, the TNF network element receives the second timing request message.
  • the content included in the second timing request message is the same as that included in the first timing request message.
  • the NEF network element can obtain the identifier of the AMF network element corresponding to the first terminal device from the UDM network element according to the identifier of the first terminal device; and, according to the identifier of the second terminal device
  • the identifier is to obtain the identifier of the AMF network element corresponding to the second terminal device from the UDM network element.
  • the NEF network element can send a query message to the UDM network element.
  • the query message includes the identifier of the first terminal device and the identifier of the second terminal device; correspondingly, the UDM network element can send the first terminal device to the NEF network element according to the query message.
  • the identifier of the corresponding AMF network element and the identifier of the AMF network element corresponding to the second terminal device can determine that the first terminal device and the second terminal device correspond to different AMF network elements, such as the first The terminal device corresponds to the first AMF network element, and the second terminal device corresponds to the second AMF network element.
  • the NEF network element after the NEF network element receives the first timing request message, it may not judge whether the first terminal device and the second terminal device correspond to different AMF network elements, and directly send the TNF network element Send a second timing request message.
  • S402 corresponds to S301 in the first embodiment.
  • first timing request message and the second timing request message in the second embodiment reference may be made to the description about the timing request message in the first embodiment.
  • the TNF network element sends a request message 1 to the network element of the first access network according to the second timing request message, where the request message 1 includes the identifier of the network element of the second access network.
  • the TNF network element may send a request message 1 to the first access network element through the first AMF network element, for example, the TNF network element may obtain the first AMF corresponding to the first terminal device from the NEF network element or the UDM network element The identification of the network element, and then send the request message 1 to the first access network element through the first AMF network element.
  • the network element of the first access network receives the request message 1, and sends a response message 1 to the TNF network element according to the request message 1.
  • the network element of the first access network may determine the time delay for the clock of the network element of the first access network to provide time for the network element of the second access network in the manner described above, The clock error between the clock of the incoming network element and the clock of the second access network element, and then send a response message 1 to the TNF network element, the response message 1 includes the reported information 1, and the reported information 1 includes the first access network
  • the clock of the element is the time delay of the network element of the second access network, and the clock error between the clock of the network element of the first access network and the clock of the network element of the second access network.
  • the first access network element may also send capability information 1 to the TNF network element, for example, the first access network element sends capability information 1 to the TNF network element through a response message 1, that is, The response message 1 may further include capability information 1, the capability information 1 is used to indicate the reporting period 1, and the reporting information 1 is valid within the reporting period 1.
  • the first access network element may subsequently actively report the time when the clock of the first access network element provides time for the second access network element according to the reporting cycle 1. delay and the clock error between the clock of the network element of the first access network and the clock of the network element of the second access network.
  • the reporting period 1 is 1 hour
  • the TNF network element After the TNF network element receives the reported information 1, it can be determined that the reported information 1 is always valid within the following 1 hour. Therefore, when the TNF network element needs to use the clock of the first access network element to provide time delay for the second access network element (for example, when the TNF network element provides time for multiple terminal devices again, it needs to use the clock of the first access network element again).
  • the clock of the network element of the access network is the time delay of the network element of the second access network to determine the timing error accuracy 1)
  • the reported information 1 is valid, the first access network included in the reported information 1 can be used.
  • the clock of the first access network element is the time delay of the second access network element, and there is no need to send a request message to the first access network element to obtain the clock of the first access network element to provide timing for the second access network element delay, which can effectively save the overhead of transmission resources.
  • the TNF network element sends a request message 2 to the network element of the second access network according to the second timing request message, where the request message 2 includes the identifier of the network element of the first access network.
  • the TNF network element can send the request message 2 to the second access network element through the second AMF network element, for example, the TNF network element can obtain the second AMF corresponding to the second terminal device from the NEF network element or the UDM network element The identification of the network element, and then send the request message 2 to the second access network element through the second AMF network element.
  • the network element of the second access network receives the request message 2, and sends a response message 2 to the TNF network element according to the request message 2.
  • the network element of the second access network may determine the time delay for the clock of the network element of the second access network to provide time for the network element of the first access network in the manner described above.
  • the network element of the second access network may determine the clock error between the clock of the network element of the first access network and the clock of the network element of the second access network, and then send a response message 2 to the TNF network element, the response message 2 includes the report information 2, and the report information 2 includes The clock of the network element of the second access network is the time delay of the network element of the first access network.
  • the reported information 2 may also include the clock of the network element of the first access network and the time delay of the network element of the second access network. Clock error between clocks.
  • the second access network element may also send the capability information 2 to the TNF network element, for example, the second access network element sends the capability information 2 to the TNF network element through a response message 2, that is, The response message 2 may further include capability information 2, the capability information 2 is used to indicate the reporting period 2, and the reporting information 2 is valid within the reporting period 2.
  • the second access network element may subsequently actively report the time when the clock of the second access network element provides time for the first access network element according to the reporting period 2. delay.
  • the TNF network element can determine that the reporting information 2 is always valid within the next 1 hour. Therefore, when the TNF network element needs to use the second access network element to provide time delay for the first access network element (for example, when the TNF network element provides time for multiple terminal devices again, it needs to use the second access network element again).
  • the clock of the network element is the time delay of the network element of the first access network to determine the timing error accuracy 2
  • the second access network element included in the reported information 2 can be used
  • the clock is the time delay of the first access network element, and there is no need to send a request message to the first access network element to obtain the time when the clock of the second access network element is the time service of the first access network element delay, which can effectively save the overhead of transmission resources.
  • the TNF network element determines a target clock for timing the multiple terminal devices according to the timing error accuracy corresponding to the one or more candidate clocks serving the multiple terminal devices.
  • the TNF network element can determine the timing error accuracy 1 according to the time delay of the clock of the first access network element for the second access network element;
  • the clock is the time delay of the network element of the first access network, and the timing error accuracy 2 is determined;
  • the TNF network element can be determined according to the clock error between the clock of the network element of the first access network and the clock of the network element of the second access network Timing error accuracy 3; and, the TNF network element can also use the method described above to determine the time delay for the clock of the TNF network element to serve the first access network element and the second access network element, and according to the TNF network element
  • the clock of the cell is the time delay between the network element of the first access network and the network element of the second access network, and determines the timing error accuracy 4.
  • the TNF network element can select the target timing method according to the timing error accuracy 1, timing error accuracy 2, timing error accuracy 3, and timing error accuracy 4; or, the TNF network element can select the target timing method according to the timing error accuracy 1, timing error accuracy 2 , the timing error precision 3 and the timing error precision 4 and the clock precisions of multiple terminal devices, select the target timing mode, and then determine the clock corresponding to the target timing mode as the target clock for multiple terminal devices.
  • S403 to S407 correspond to S302 in the first embodiment, and the two may refer to each other.
  • the TNF network element uses the target clock to serve time for multiple terminal devices.
  • the TNF network element using the target clock to provide time for multiple terminal devices may refer to that the TNF network element sends the indication information 1a to the first access network element, and the indication information 1a It is used to indicate that the clock of the network element of the first access network serves time for multiple terminal devices, and the indication information 1a may include identifiers of the multiple terminal devices and an identifier of the network element of the second access network.
  • the first access network element may send the first time information to the first terminal device, and send the first time information to the second access network element according to the identifier of the second access network element.
  • the network element of the second access network may send the first time information to the second terminal device according to the identifier of the second terminal device.
  • the TNF network element using the target clock to provide time for multiple terminal devices may refer to that the TNF network element sends indication information 1b to the second access network element, and the indication information 1b is used to indicate the first
  • the clock of the network element of the second access network serves time for multiple terminal devices, and the indication information 1b may include the identifiers of the multiple terminal devices and the identifier of the network element of the first access network.
  • the second access network element may send the second time information to the second terminal device, and send the second time information to the first access network element according to the identifier of the first access network element.
  • the identifier of the first terminal device and the second time information may send the second time information to the first terminal device according to the identifier of the first terminal device.
  • the TNF network element using the target clock to serve multiple terminal devices may refer to that the TNF network element sends indication information 1c to the first access network element, and the indication information 1c is used to indicate the first access network element.
  • the clock of an access network element serves time for the first terminal device, and the indication information 1c may include the identifier of the first terminal device; correspondingly, after the first access network element receives the indication information 1c, it may send the first terminal equipment Send the first time information.
  • the TNF network element sends indication information 1d to the second access network element, the indication information 1d is used to indicate that the clock of the second access network element serves time for the second terminal device, and the indication information 1d may include the second terminal device's identification; correspondingly, after receiving the indication information 1d, the network element of the second access network may send the second time information to the second terminal device.
  • the TNF network element adopts the target clock to provide time service for a plurality of terminal equipments.
  • the information 1e includes the identifier of the first terminal device and third time information; correspondingly, after receiving the indication information 1e, the network element of the first access network may send the third time information to the first terminal device.
  • the TNF network element sends indication information 1f to the second access network element through the second AMF network element, and the indication information 1f includes the identifier of the second terminal device and third time information; correspondingly, the second access network element After receiving the indication information 1f, the third time information may be sent to the second terminal device.
  • the target clock can be determined by the TNF network element according to the timing error accuracy corresponding to one or more candidate clocks for multiple terminal devices, Therefore, it is possible to implement time service for multiple terminal devices, and it is convenient to meet the time synchronization requirements among multiple terminal devices.
  • the first communication device in the first embodiment is used as the first AMF network element
  • the second communication device is the NEF network element as an example, and a possibility is described in conjunction with FIG. 5 implementation process.
  • FIG. 5 is a schematic flowchart corresponding to the communication method provided in Embodiment 3 of the present application. This process may be applicable to a situation where multiple terminal devices (such as a first terminal device and a second terminal device) correspond to the same AMF network element. As shown in Figure 4, including:
  • the AF network element sends a first timing request message to the NEF network element, where the first timing request message includes identifiers of multiple terminal devices; correspondingly, the NEF network element receives the first timing request message.
  • the first timing request message may also include clock precisions of multiple terminal devices.
  • the NEF network element determines that the first terminal device and the second terminal device correspond to the same AMF network element (such as the first AMF network element), and sends a third timing request message to the first AMF network element.
  • the first AMF network element receives the third timing request message.
  • the content included in the third timing request message is the same as that included in the first timing request message.
  • S502 corresponds to S301 in the first embodiment.
  • first timing request message and the third timing request message in the third embodiment reference may be made to the description about the timing request message in the first embodiment.
  • the first AMF network element sends a request message 3 to the network element of the first access network according to the third timing request message, where the request message 3 includes the identifier of the network element of the second access network.
  • the first access network element receives the request message 3, and sends a response message 3 to the first AMF network element according to the request message 3.
  • the content included in the request message 3 and the response message 3 can refer to the description of the request message 1 and the response message 1 in the second embodiment, and details are not repeated here.
  • the first AMF network element sends a request message 4 to the second access network element according to the third timing request message, where the request message 4 includes the identifier of the first access network element.
  • the network element of the second access network receives the request message 4, and sends a response message 4 to the first AMF network element according to the request message 4.
  • the content included in the request message 4 and the response message 4 can refer to the description of the request message 2 and the response message 2 in the second embodiment, and details are not repeated here.
  • the first AMF network element sends a request message 5 to the TNF network element according to the third timing request message, where the request message 5 includes the identifier of the first access network element and the identifier of the second access network element.
  • the TNF network element receives the request message 5, and sends a response message 5 to the first AMF network element according to the request message 5.
  • the TNF network element After the TNF network element receives the request message 5, it can use the method described above to determine the time delay for the clock of the TNF network element to serve the first access network element according to the identifier of the first access network element and, according to the identification of the network element of the second access network, use the method described above to determine the time delay for the clock of the TNF network element to provide time for the network element of the second access network. Furthermore, a response message 5 is sent to the first AMF network element, the response message 5 includes the reporting information 3, and the reporting information 3 includes the time delay that the clock of the TNF network element is the time service of the first access network element, and the clock of the TNF network element is the time delay of the first access network element. 2. The time delay of access network element timing.
  • the TNF network element can also send the capability information 3 to the first AMF network element, for example, the TNF network element sends the capability information 3 to the first AMF network element through a response message 3, that is, the response message 3 also sends the capability information 3 to the first AMF network element.
  • Capability information 3 may be included, and the capability information 3 is used to indicate the reporting period 3, and the reporting information 3 is valid within the reporting period 3.
  • the TNF network element after the TNF network element sends the report information 3 to the first AMF network element, it can subsequently actively report the time delay of the clock of the TNF network element for the first access network element and the time delay of the TNF network element according to the reporting cycle 3.
  • the clock is the time delay of the network element of the second access network.
  • the reporting period 3 is 1 hour
  • the first AMF network element needs to use the clock of the TNF network element again to provide time delay for the second access network element (for example, when the first AMF network element provides time service for multiple terminal devices again, it is necessary to use the TNF network element again to
  • the clock of the cell is the time delay of the first access network element timing and the clock of the TNF network element is the time delay of the second access network element to determine the timing error accuracy 4
  • the reported information 3 is valid
  • the time delay of the clock of the TNF network element included in the reported information 3 to provide time to the network element of the first access network and the time delay of the clock of the TNF network element to provide time to the network element of the second access network can be used without further reporting to the TNF
  • the network element sends a request message to obtain the time delay when the clock of the TNF network element serves the first access network element
  • the first AMF network element determines a target clock to serve the multiple terminal devices according to the timing error accuracy corresponding to the one or more candidate clocks serving the multiple terminal devices.
  • the first AMF network element can determine the timing error accuracy 1 according to the time delay of the clock of the first access network element for the second access network element;
  • the clock of the network element is the time delay of the network element of the first access network, and the timing error accuracy 2 is determined;
  • the first AMF network element can be based on the clock of the network element of the first access network and the clock of the network element of the second access network
  • the clock error between determines the timing error accuracy 3;
  • the first AMF network element can also use the method described above to determine that the clock of the TNF network element is the timing of the first access network element and the second access network element Delay, and according to the time delay of the clock of the TNF network element for the first access network element and the second access network element, determine the timing error accuracy4.
  • the first AMF network element can select the target timing method according to the timing error accuracy 1, timing error accuracy 2, timing error accuracy 3, and timing error accuracy 4; or, the first AMF network element can select the target timing method according to the timing error accuracy 1, Timing Error Accuracy 2, Timing Error Accuracy 3, and Timing Error Accuracy 4, as well as the clock accuracy of multiple terminal devices, select the target timing method, and then determine the clock corresponding to the target timing method for multiple terminal devices as the target clock .
  • S503 to S509 correspond to S302 in the first embodiment, and the two may refer to each other.
  • the first AMF network element uses the target clock to serve time for multiple terminal devices.
  • the first AMF network element using the target clock to provide time service for multiple terminal devices may refer to the first AMF network element sending instruction information 2a to the first access network element
  • the indication information 2a is used to indicate that the clock of the network element of the first access network serves time for multiple terminal devices, and the indication information 2a may include identifications of the multiple terminal equipments and an identification of the network element of the second access network.
  • the first access network element may send the first time information to the first terminal device, and send the time information to the second access network element according to the identifier of the second access network element.
  • the network element of the second access network may send the first time information to the second terminal device according to the identifier of the second terminal device.
  • the first AMF network element using the target clock to provide time for multiple terminal devices may refer to that the first AMF network element sends the indication information 2b to the second access network element, and the indication information 2b Used to indicate that the clock of the network element of the second access network serves time for multiple terminal devices, the indication information 2b may include identifiers of the multiple terminal devices and the identifier of the network element of the first access network.
  • the second access network element may send the second time information to the second terminal device, and send the second time information to the first access network element according to the identifier of the first access network element.
  • the network element of the first access network may send the second time information to the first terminal device according to the identifier of the first terminal device.
  • the first AMF network element using the target clock to provide time for multiple terminal devices may refer to that the first AMF network element sends the indication information 2c to the first access network element, and the indication information 2c Used to indicate that the clock of the network element of the first access network serves time for the first terminal device, the indication information 2c may include the identifier of the first terminal equipment; correspondingly, after the network element of the first access network receives the indication information 2c, it may send The first terminal device sends the first time information.
  • the first AMF network element sends indication information 2d to the second access network element
  • the indication information 2d is used to indicate that the clock of the second access network element serves time for the second terminal device
  • the indication information 2d may include the second terminal device
  • the identification of the device correspondingly, after receiving the indication information 2d, the network element of the second access network may send the second time information to the second terminal device.
  • the first AMF network element adopts the target clock to provide time service for multiple terminal devices, which may refer to that the first AMF sends indication information 2e to the TNF network element, and the indication information 2e is used to indicate the TNF network element
  • the clock of the clock provides time service for multiple terminal devices, and then the TNF network element can provide time service for multiple terminal devices according to the indication information 2e.
  • the indication information 2e refer to the description in Embodiment 2.
  • the first AMF network element when multiple terminal devices correspond to the same AMF network element (such as the first AMF network element), the first AMF network element can serve multiple terminal devices according to one or more candidate clocks.
  • the target clock can be determined according to the corresponding timing error accuracy, so as to implement time service for multiple terminal devices and facilitate meeting the time synchronization requirements among multiple terminal devices.
  • step numbers of the various flowcharts described in Embodiment 1 to Embodiment 3 are only an example of the execution flow, and do not constitute a restriction on the order of execution of the steps. There is no timing dependence between each other in the embodiments of the present application There is no strict order of execution among the steps of a relationship. Not all the steps illustrated in each flow chart are necessary steps, and some steps may be deleted on the basis of each flow chart according to actual needs, or other possible steps may be added on the basis of each flow chart according to actual needs.
  • the network element may include corresponding hardware structures and/or software modules for performing various functions.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • the communication device may be divided into functional units according to the above method examples.
  • each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • FIG. 6 shows a possible exemplary block diagram of the device involved in the embodiment of the present application.
  • an apparatus 600 may include: a processing unit 602 and a communication unit 603 .
  • the processing unit 602 is used to control and manage the actions of the device 600 .
  • the communication unit 603 is used to support communication between the apparatus 600 and other devices.
  • the communication unit 603 is also referred to as a transceiver unit, and may include a receiving unit and/or a sending unit, configured to perform receiving and sending operations respectively.
  • the device 600 may further include a storage unit 601 for storing program codes and/or data of the device 600 .
  • the device 600 may be the first communication device in the foregoing embodiments.
  • the processing unit 602 may support the apparatus 600 to execute the actions of the first communication apparatus in the above method examples (such as FIG. 3 , FIG. 4 or FIG. 5 ).
  • the processing unit 602 mainly executes internal actions of the first communication device in the method example (such as FIG. 3 , FIG. 4 or FIG. 5 ), and the communication unit 603 may support communication between the device 600 and other devices.
  • the communication unit 603 is configured to: receive a timing request message from the second communication device, the timing request message is used to request timing for multiple terminal devices, and the multiple terminal devices include the first terminal device and a second terminal device; the processing unit 602 is configured to: determine a target clock for timing the multiple terminal devices according to the timing error accuracy corresponding to one or more candidate clocks for the multiple terminal devices, and adopt The target clock serves time for the plurality of terminal devices.
  • the timing error accuracy corresponding to the timing of the multiple terminal devices by the target clock is less than or equal to the first threshold; or, the target clock is the timing error accuracy corresponding to the timing of the multiple terminal devices.
  • the timing error precision is less than or equal to the timing error precision corresponding to the time service of the multiple terminal devices by other candidate clocks in the one or more candidate clocks.
  • the timing request message further includes clock precisions of the multiple terminal devices; the clock precision of the target clock matches the clock precisions of the multiple terminal devices.
  • the one or more candidate clocks include a clock of a network element of the first access network; the processing unit 602 is specifically configured to: determine that the clock of the network element of the first access network is the clock of the network element of the first access network A terminal device is timed and the second terminal device is timed.
  • the first access network element is a serving network element of the first terminal device; the processing unit 602 is specifically configured to: determine that the clock of the first access network element passes the second Two network elements of the access network serve time for the second terminal equipment, and the network element of the second access network is a serving network element of the second terminal equipment; the clock of the network element of the first access network is the The timing error accuracy corresponding to the timing of multiple terminal devices is: the time delay when the clock of the network element of the first access network is the time service of the network element of the second access network.
  • the communication unit 603 is further configured to: receive first report information from the network element of the first access network, where the first report information includes the clock of the network element of the first access network Time delay for the network element of the second access network.
  • the communication unit 603 is further configured to: send a first request message, where the first request message includes the identifier of the network element of the second access network, and the first request message is used to request the The above first reported information.
  • the communication unit 603 is further configured to: receive first capability information from a network element of the first access network, where the first capability information is used to indicate a first reporting period, and the first The reported information is valid within the first reporting period.
  • the one or more candidate clocks include a clock of a network element of the first access network and a clock of a network element of the second access network, and the network element of the first access network is the clock of the network element of the second access network A serving network element of a terminal device, the second access network element being the serving network element of the second terminal device; the processing unit 602 is specifically configured to: determine that the clock of the first access network element is the The first terminal equipment is timed and the clock of the second access network element is the second terminal equipment timed.
  • the clock of the network element of the first access network provides the time for the first terminal equipment
  • the clock of the network element of the second access network provides the time for the second terminal equipment.
  • the timing error accuracy is: a clock error between the clock of the network element of the first access network and the clock of the network element of the second access network.
  • the one or more candidate clocks include a clock of a TNF network element; the processing unit 602 is specifically configured to: determine that the clock of the TNF network element serves time for the first terminal device and provides time for the Time service of the second terminal device.
  • the processing unit 602 is specifically configured to: determine that the clock of the TNF network element provides time service to the first terminal device through the network element of the first access network, and the clock of the TNF network element Time service for the second terminal device through the second access network element; the first access network element is a serving network element of the first terminal device, and the second access network element is The serving network element of the second terminal device; the clock of the TNF network element is the time service error accuracy corresponding to the time service of the multiple terminal devices satisfying the following formula:
  • W is the timing error precision corresponding to the clock of the TNF network element serving the timing of the plurality of terminal devices
  • Tt1 is the delay of the clock of the TNF network element serving the timing of the network element of the first access network
  • Tt2 is the time delay for the clock of the TNF network element to serve the time for the network element of the second access network.
  • the device 600 may be the second communication device in the foregoing embodiments.
  • the processing unit 602 may support the device 600 to execute the actions of the second communication device in the above method examples (such as FIG. 3 , FIG. 4 or FIG. 5 ).
  • the processing unit 602 mainly executes internal actions of the second communication device in the method example (such as FIG. 3 , FIG. 4 or FIG. 5 ), and the communication unit 603 may support communication between the device 600 and other devices.
  • each unit in the device can be implemented in the form of software called by the processing element; they can also be implemented in the form of hardware; some units can also be implemented in the form of software called by the processing element, and some units can be implemented in the form of hardware.
  • each unit can be a separate processing element, or it can be integrated in a certain chip of the device.
  • it can also be stored in the memory in the form of a program, which is called and executed by a certain processing element of the device. Function.
  • all or part of these units can be integrated together, or implemented independently.
  • the processing element mentioned here may also be a processor, which may be an integrated circuit with signal processing capabilities.
  • each operation of the above method or each unit above may be realized by an integrated logic circuit of hardware in the processor element, or implemented in the form of software called by the processing element.
  • the units in any of the above devices may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (application specific integrated circuit, ASIC), or, one or Multiple microprocessors (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), or a combination of at least two of these integrated circuit forms.
  • ASIC application specific integrated circuit
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the units in the device can be implemented in the form of a processing element scheduler
  • the processing element can be a processor, such as a general-purpose central processing unit (central processing unit, CPU), or other processors that can call programs.
  • CPU central processing unit
  • these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • the above unit for receiving is an interface circuit of the device for receiving signals from other devices.
  • the receiving unit is an interface circuit for the chip to receive signals from other chips or devices.
  • the above sending unit is an interface circuit of the device, and is used to send signals to other devices.
  • the sending unit is an interface circuit used by the chip to send signals to other chips or devices.
  • the device 700 may be the first communication device or the second communication device in the above embodiments, and is configured to realize the functions of the first communication device or the second communication device in the above embodiments.
  • the device 700 may include a processor 701 , a memory 702 and an interface circuit 703 .
  • the processor 701 can be used to process the communication protocol and communication data, and control the device 700 .
  • the memory 702 can be used to store programs and data, and the processor 701 can execute the method performed by the device 700 in the embodiment of the present application based on the programs.
  • the interface circuit 703 can be used for the apparatus 700 to communicate with other devices, the communication can be wired communication or wireless communication, and the interface circuit can be, for example, a service interface.
  • the above memory 702 may also be externally connected to the device 700 , and in this case the device 700 may include an interface circuit 703 and a processor 701 .
  • the above interface circuit 703 may also be externally connected to the device 700 , and in this case the device 700 may include a memory 702 and a processor 701 .
  • the device 700 may include a processor 701 .
  • the apparatus 700 shown in FIG. 7 can implement various processes related to the apparatus 700 in the foregoing method embodiments.
  • the operations and/or functions of the various modules in the apparatus 700 shown in FIG. 7 are respectively for realizing the corresponding processes in the foregoing method embodiments.
  • system and “network” in the embodiments of the present application may be used interchangeably.
  • “At least one” means one or more, and “plurality” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there can be three types of 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 contextual objects are an “or” relationship.
  • “At least one of the following” or similar expressions refer to any combination of these items, including any combination of single or plural items. For example "at least one of A, B and C” includes A, B, C, AB, AC, BC or ABC. And, unless otherwise specified, ordinal numerals such as “first” and “second” mentioned in the embodiments of this application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects degree.
  • the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Electric Clocks (AREA)

Abstract

本申请涉及通信领域,公开了一种通信方法及装置。其中方法包括:第一通信装置接收来自第二通信装置的授时请求消息,授时请求消息用于请求为多个终端设备授时,多个终端设备包括第一终端设备和第二终端设备;以及,根据一个或多个候选时钟为多个终端设备授时所对应的授时误差精度,确定为多个终端设备授时的目标时钟,并采用目标时钟为多个终端设备授时。如此,由于第一通信装置根据一个或多个候选时钟为多个终端设备授时所对应的授时误差精度来确定目标时钟,从而能够实现为多个终端设备授时,且便于满足多个终端设备之间的时间同步需求。

Description

一种通信方法及装置
相关申请的交叉引用
本申请要求在2021年12月27日提交中国专利局、申请号为202111614166.9、申请名称为“一种通信方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种通信方法及装置。
背景技术
第三代合作伙伴计划(3rd generation partnership project,3GPP)支持第五代(the 5th generation,5G)网络中的时钟为终端设备授时,其中,5G网络中能够为终端设备授时的时钟可以有多种。比如,接入网网元的时钟可以为终端设备授时,具体来说,接入网网元可以通过系统消息或者无线资源控制(radio resource control,RRC)消息向终端设备发送时间信息,该时间信息用于指示接入网网元的时钟的时间;又比如,TNF网元的时钟可以为终端设备授时,具体来说,TNF网元可以通过AMF网元向接入网网元发送时间信息,该时间信息用于指示TNF网元的时钟的时间,进而由接入网网元将该时间信息发送给终端设备。
然而,当需要为多个终端设备授时时,由于为多个终端设备中不同终端设备授时的时钟都可能会有多种,此种情形下,如何为多个终端设备授时,仍需进一步的研究。
发明内容
本申请提供了一种通信方法及装置,用于确定为多个终端设备授时的时钟,从而实现为多个终端设备授时。
第一方面,本申请实施例提供一种通信方法,该方法可以应用于第一通信装置或者第一通信装置中的芯片,以该方法应用于第一通信装置为例,在该方法中,第一通信装置接收来自第二通信装置的授时请求消息,所述授时请求消息用于请求为多个终端设备授时,所述多个终端设备包括第一终端设备和第二终端设备;以及,根据一个或多个候选时钟为所述多个终端设备授时所对应的授时误差精度,确定为所述多个终端设备授时的目标时钟,并采用所述目标时钟为所述多个终端设备授时。
采用上述方法,由于第一通信装置根据一个或多个候选时钟为多个终端设备授时所对应的授时误差精度来确定目标时钟,并采用目标时钟为多个终端设备授时,从而能够实现为多个终端设备授时,且便于满足多个终端设备之间的时间同步需求。
在一种可能的设计中,所述目标时钟为所述多个终端设备授时所对应的授时误差精度小于或等于第一阈值;或者,所述目标时钟为所述多个终端设备授时所对应的授时误差精度小于或等于所述一个或多个候选时钟中的其它候选时钟为所述多个终端设备授时所对应的授时误差精度。
在一种可能的设计中,所述授时请求消息还包括所述多个终端设备的时钟精度,所述目标时钟的时钟精度匹配所述多个终端设备的时钟精度。
在一种可能的设计中,所述一个或多个候选时钟包括第一接入网网元的时钟;确定为所述多个终端授时的目标时钟,包括:确定所述第一接入网网元的时钟为所述第一终端设备授时以及为所述第二终端设备授时。
在一种可能的设计中,所述第一接入网网元为所述第一终端设备的服务网元;确定所述第一接入网网元的时钟为所述第二终端设备授时,包括:确定所述第一接入网网元的时钟通过第二接入网网元为所述第二终端设备授时,所述第二接入网网元为所述第二终端设备的服务网元;所述第一接入网网元的时钟为所述多个终端设备授时所对应的授时误差精度为:所述第一接入网网元的时钟为第二接入网网元授时的时延。
在一种可能的设计中,所述方法还包括:接收来自所述第一接入网网元的第一上报信息,所述第一上报信息包括所述第一接入网网元的时钟为所述第二接入网网元授时的时延。
在一种可能的设计中,所述方法还包括:发送第一请求消息,所述第一请求消息包括所述第二接入网网元的标识,所述第一请求消息用于请求所述第一上报信息。
在一种可能的设计中,所述方法还包括:接收来自所述第一接入网网元的第一能力信息,所述第一能力信息用于指示第一上报周期,所述第一上报信息在所述第一上报周期内有效。
在一种可能的设计中,所述一个或多个候选时钟包括第一接入网网元的时钟和第二接入网网元的时钟,所述第一接入网网元为所述第一终端设备的服务网元,所述第二接入网网元为所述第二终端设备的服务网元;确定为所述多个终端设备授时的目标时钟,包括:确定所述第一接入网网元的时钟为所述第一终端设备授时以及所述第二接入网网元的时钟为所述第二终端设备授时。
在一种可能的设计中,所述第一接入网网元的时钟为所述第一终端设备授时以及所述第二接入网网元的时钟为所述第二终端设备授时所对应的授时误差精度为:所述第一接入网网元的时钟和所述第二接入网网元的时钟之间的时钟误差。
在一种可能的设计中,所述一个或多个候选时钟包括时钟网络功能TNF网元的时钟;确定为所述多个终端设备授时的目标时钟,包括:确定所述TNF网元的时钟为所述第一终端设备授时以及为所述第二终端设备授时。
在一种可能的设计中,确定所述TNF网元的时钟为所述第一终端设备授时以及为所述第二终端设备授时,包括:确定所述TNF网元的时钟通过第一接入网网元为所述第一终端设备授时,以及所述TNF网元的时钟通过第二接入网网元为所述第二终端设备授时;所述第一接入网网元为所述第一终端设备的服务网元,所述第二接入网网元为所述第二终端设备的服务网元;
所述TNF网元的时钟为所述多个终端设备授时所对应的授时误差精度满足如下公式:
W=Tt1-Tt2
其中,W为所述TNF网元的时钟为所述多个终端设备授时所对应的授时误差精度,Tt1为所述TNF网元的时钟为所述第一接入网网元授时的时延,Tt2为所述TNF网元的时钟为所述第二接入网网元授时的时延。
在一种可能的设计中,所述第一通信装置为TNF网元。此种情况下,接收来自第二通信装置的授时请求消息,包括:接收来自网络开放功能NEF网元的所述授时请求消息。
在一种可能的设计中,所述多个终端设备对应第一AMF网元,所述第一通信装置为所述第一AMF网元。此种情况下,接收来自第二通信装置的授时请求消息,包括:接收来自NEF网元的所述授时请求消息。
第二方面,本申请实施例提供一种通信方法,该方法可以应用于第二通信装置或者第二通信装置中的芯片,以该方法应用于第二通信装置为例,在该方法中,第二通信装置接收第一授时请求消息,所述第一授时请求消息包括多个终端设备的标识;若所述多个终端设备对应至少两个AMF网元,则向TNF网元发送第二授时请求消息,所述第三授时请求消息包括所述多个终端设备的标识;若所述多个终端设备对应第一AMF网元,则向所述第一AMF网元发送第三授时请求消息,所述第三授时请求消息包括所述多个终端设备的标识。
在一种可能的设计中,所述方法还包括:向UDM网元发送查询消息,所述查询消息包括所述多个终端设备的标识;接收所述UDM网元根据所述查询消息发送的所述多个终端设备对应的AMF网元的标识。
在一种可能的设计中,所述第二通信装置为NEF网元;接收第一授时请求消息,包括:接收来自AF网元所述第一授时请求消息。
在一种可能的设计中,所述第一授时请求消息、所述第二授时请求消息以及所述第三授时请求消息还包括所述多个终端设备的时钟精度。
第三方面,本申请提供一种通信装置,所述通信装置具备实现上述第一方面的功能,比如,所述通信装置包括执行上述第一方面涉及操作所对应的模块或单元或手段(means),所述模块或单元或手段可以通过软件实现,或者通过硬件实现,也可以通过硬件执行相应的软件实现。
在一种可能的设计中,所述通信装置包括处理单元、通信单元,其中,通信单元可以用于收发信号,以实现该通信装置和其它装置之间的通信;处理单元可以用于执行该通信装置的一些内部操作。处理单元、通信单元执行的功能可以和上述第一方面涉及的操作相对应。
在一种可能的设计中,所述通信装置包括处理器,处理器可以用于与存储器耦合。所述存储器可以保存实现上述第一方面涉及的功能的必要计算机程序或指令。所述处理器可执行所述存储器存储的计算机程序或指令,当所述计算机程序或指令被执行时,使得所述通信装置实现上述第一方面中任意可能的设计或实现方式中的方法。
在一种可能的设计中,所述通信装置包括处理器和存储器,存储器可以保存实现上述第一方面涉及的功能的必要计算机程序或指令。所述处理器可执行所述存储器存储的计算机程序或指令,当所述计算机程序或指令被执行时,使得所述通信装置实现上述第一方面中任意可能的设计或实现方式中的方法。
在一种可能的设计中,所述通信装置包括处理器和接口电路,其中,处理器用于通过所述接口电路与其它装置通信,并执行上述第一方面中任意可能的设计或实现方式中的方法。
第四方面,本申请提供一种通信装置,所述通信装置具备实现上述第二方面的功能,比如,所述通信装置包括执行上述第二方面涉及操作所对应的模块或单元或手段,所述模块或单元或手段可以通过软件实现,或者通过硬件实现,也可以通过硬件执行相应的软件实现。
在一种可能的设计中,所述通信装置包括处理单元、通信单元,其中,通信单元可以用于收发信号,以实现该通信装置和其它装置之间的通信;处理单元可以用于执行该通信装置的一些内部操作。处理单元、通信单元执行的功能可以和上述第二方面涉及的操作相对应。
在一种可能的设计中,所述通信装置包括处理器,处理器可以用于与存储器耦合。所述存储器可以保存实现上述第二方面涉及的功能的必要计算机程序或指令。所述处理器可执行所述存储器存储的计算机程序或指令,当所述计算机程序或指令被执行时,使得所述通信装置实现上述第二方面中任意可能的设计或实现方式中的方法。
在一种可能的设计中,所述通信装置包括处理器和存储器,存储器可以保存实现上述第二方面涉及的功能的必要计算机程序或指令。所述处理器可执行所述存储器存储的计算机程序或指令,当所述计算机程序或指令被执行时,使得所述通信装置实现上述第二方面中任意可能的设计或实现方式中的方法。
在一种可能的设计中,所述通信装置包括处理器和接口电路,其中,处理器用于通过所述接口电路与其它装置通信,并执行上述第二方面中任意可能的设计或实现方式中的方法。
可以理解地,上述第三方面或第四方面中,处理器可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,该处理器可以是逻辑电路、集成电路等;当通过软件来实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。此外,以上处理器可以为一个或多个,存储器可以为一个或多个。存储器可以与处理器集成在一起,或者存储器与处理器分离设置。在具体实现过程中,存储器可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型以及存储器与处理器的设置方式不做限定。
第五方面,本申请提供一种通信系统,该通信系统可以包括上述第三方面所提供的通信装置和上述第四方面所提供的通信装置;可选地,还可以包括多个终端设备。
第六方面,本申请提供一种计算机可读存储介质,所述计算机存储介质中存储有计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算机执行上述第一方面或第二方面的任一种可能的设计中的方法。
第七方面,本申请提供一种计算机程序产品,当计算机读取并执行所述计算机程序产品时,使得计算机执行上述第一方面或第二方面的任一种可能的设计中的方法。
第八方面,本申请提供一种芯片,所述芯片包括处理器,所述处理器与存储器耦合,用于读取并执行所述存储器中存储的软件程序,以实现上述第一方面或第二方面的任一种可能的设计中的方法。
本申请的这些方面或其它方面在以下实施例的描述中会更加简明易懂。
附图说明
图1A和图1B为本申请实施例提供的两种网络架构示意图;
图2为本申请实施例提供的获取时延和时钟误差的一种可能的实现流程示意图;
图3为本申请实施例一提供的通信方法所对应的流程示意图;
图4为本申请实施例二提供的通信方法所对应的流程示意图;
图5为本申请实施例三提供的通信方法所对应的流程示意图;
图6为本申请实施例中所涉及的装置的可能的示例性框图;
图7为本申请实施例提供的一种通信装置的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
图1A为基于服务化架构的5G网络架构示意图。图1A所示的5G网络架构中可包括终端设备、接入网设备以及核心网设备。终端设备通过接入网设备和核心网设备接入数据网络(data network,DN)。其中,核心网设备包括以下网元中的部分或者全部:统一数据管理(unified data management,UDM)网元、统一数据库(unified data repository,UDR)网元、网络开放功能(network exposure function,NEF)网元(图中未示出)、应用功能(application function,AF)网元、策略控制功能(policy control function,PCF)网元、接入与移动性管理功能(access and mobility management function,AMF)网元、会话管理功能(session management function,SMF)网元、用户面功能(user plane function,UPF)网元、网络存储功能(Network Repository Function,NRF)网元(图中未示出)、时钟网络功能(timing network function,TNF)网元。
本申请的终端设备(也可以称为用户设备(user equipment,UE))是一种具有无线收发功能的设备,可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。所述终端设备可以是手机(mobile phone)、平板电脑(pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端、增强现实(augmented reality,AR)终端、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等。
上述终端设备可通过运营商网络提供的接口(例如N1等)与运营商网络建立连接,使用运营商网络提供的数据和/或语音等服务。终端设备还可通过运营商网络访问DN,使用DN上部署的运营商业务,和/或第三方提供的业务。其中,上述第三方可为运营商网络和终端设备之外的服务方,可为终端设备提供他数据和/或语音等服务。其中,上述第三方的具体表现形式,具体可根据实际应用场景确定,在此不做限制。
接入网设备(也可以称为接入网网元),是一种为终端设备提供无线通信功能的设备。接入网设备例如包括但不限于:5G中的下一代基站(g nodeB,gNB)、演进型节点B(evolved node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved nodeB,或home node B,HNB)、基带单元(baseBand unit,BBU)、传输点(transmitting and receiving point,TRP)、发射点(transmitting point,TP)、移动交换中心等。
接入网设备和终端设备可以是固定位置的,也可以是可移动的。接入网设备和终端设备可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上;还可以部署在空中的飞机、气球和人造卫星上。本申请的实施例对接入网设备和终端设备的应用场景不做限定。
本申请中,移动性管理网元是由运营商网络提供的控制面网元,负责终端设备接入运营商网络的接入控制和移动性管理,例如包括移动状态管理,分配用户临时身份标识,认证和授权用户等功能。在5G中,移动性管理网元可以是AMF网元,在未来通信如第六代(the 6th generation,6G)中,移动性管理网元仍可以是AMF网元,或有其它的名称,本申请不做限定。
本申请中,会话管理网元是由运营商网络提供的控制面网元,负责管理终端设备的协议数据单元(protocol data unit,PDU)会话。PDU会话是一个用于传输PDU的通道,终端设备需要通过PDU会话与DN互相传送PDU。PDU会话由SMF网元负责建立、维护和删除等。会话管理网元包括会话管理(如会话建立、修改和释放,包含用户面网元和接入网设备之间的隧道维护)、用户面网元的选择和控制、业务和会话连续性(Service and Session Continuity,SSC)模式选择、漫游等会话相关的功能。在5G中,会话管理网元可以是SMF网元,在未来通信如6G中,会话管理网元仍可以是SMF网元,或有其它的名称,本申请不做限定。
本申请中,用户面网元是由运营商提供的网关,是运营商网络与DN通信的网关。UPF网元包括数据包路由和传输、包检测、业务用量上报、服务质量(Quality of Service,QoS)处理、合法监听、上行包检测、下行数据包存储等用户面相关的功能。在5G中,用户面网元可以是UPF网元,在未来通信如6G中,用户面网元仍可以是UPF网元,或有其它的名称,本申请不做限定。
本申请中,数据管理网元是由运营商提供的控制面网元,负责存储运营商网络中签约用户的用户永久标识符(subscriber permanent identifier,SUPI)、信任状(credential)、安全上下文(security context)、签约数据等信息。数据管理网元所存储的这些信息可用于终端设备接入运营商网络的认证和授权。其中,上述运营商网络的签约用户具体可为使用运营商网络提供的业务的用户,例如使用中国电信的手机芯卡的用户,或者使用中国移动的手机芯卡的用户等。上述签约用户的永久签约标识(subscription permanent identifier,SUPI)可为该手机芯卡的号码等。上述签约用户的信任状、安全上下文可为该手机芯卡的加密密钥或者跟该手机芯卡加密相关的信息等存储的小文件,用于认证和/或授权。上述安全上下文可为存储在用户本地终端(例如手机)上的数据(cookie)或者令牌(token)等。上述签约用户的签约数据可为该手机芯卡的配套业务,例如该手机芯卡的流量套餐或者使用网络等。需要说明的是,永久标识符、信任状、安全上下文、认证数据(cookie)、以及令牌等同认证、授权相关的信息,在本申请文件中,为了描述方便起见不做区分、限制。如果不做特殊说明,本申请实施例将以用安全上下文为例进行来描述,但本申请实施例同样适用于其他表述方式的认证、和/或授权信息。在5G中,数据管理网元可以是UDM网元,在未来通信如6G中,数据管理网元仍可以是UDM网元,或有其它的名称,本申请不做限定。
本申请中,统一数据库网元是由运营商提供的控制面网元,包含执行签约数据、策略数据、应用数据等类型数据的存取功能。在5G中,统一数据库网元可以是UDR网元,在未来通信如6G中,统一数据库网元仍可以是UDR网元,或有其它的名称,本申请不做限定。
本申请中,网络开放网元是由运营商提供控制面网元。网络开放网元以安全的方式对第三方开放运营商网络的对外接口。在会话管理网元需要与第三方的网元通信时,网络开 放网元可作为会话管理网元与第三方的网元通信的中继。网络开放网元作为中继时,可作为签约用户的标识信息的翻译,以及第三方的网元的标识信息的翻译。比如,网络开放网元将签约用户的SUPI从运营商网络发送到第三方时,可以将SUPI翻译成其对应的外部身份标识(identity,ID)。反之,网络开放网元将外部ID(第三方的网元ID)发送到运营商网络时,可将其翻译成SUPI。在5G中,网络开放网元可以是NEF网元,在未来通信如6G中,网络开放网元仍可以是NEF网元,或有其它的名称,本申请不做限定。
本申请中,应用功能网元用于传递应用侧对网络侧的需求,例如,QoS需求或用户状态事件订阅等。应用功能网元可以是第三方功能实体,也可以是运营商部署的应用服务器。在5G中,应用功能网元可以是AF网元,在未来通信如6G中,应用功能网元仍可以是AF网元,或有其它的名称,本申请不做限定。
本申请中,策略控制网元是由运营商提供的控制面功能,用于向会话管理网元提供PDU会话的策略。策略可以包括计费相关策略、QoS相关策略和授权相关策略等。在5G中,策略控制网元可以是PCF网元,在未来通信如6G中,策略控制网元仍可以是PCF网元,或有其它的名称,本申请不做限定。
本申请中,网络存储功能网元可用于提供网元发现功能,基于其他网元的请求,提供网元类型对应的网元信息。网络存储功能网元还提供网元管理服务,如网元注册、更新、去注册以及网元状态订阅和推送等。在5G中,网络存储功能网元可以是NRF网元,在未来通信如6G中,网络存储功能网元仍可以是NRF网元,或有其它的名称,本申请不做限定。
本申请中,时钟网络功能网元可用于管理5G网络的一个或多个时钟的信息,且可以通过自己的端口对外提供时钟的时间信息,比如直接或间接向终端设备、接入网设备、核心网设备或第三方应用功能网元提供时钟的时间信息。其中,时间信息表示时钟的时间、时刻或时间点。在5G中,时钟网络功能网元可以是TNF网元,示例性地,TNF网元的功能可以由3GPP定义的时间敏感通信和时间同步功能(time sensitive communication and time synchronization function,TSCTSF)网元来实现。在未来通信如6G中,时钟网络功能网元仍可以是TNF网元,或有其它的名称,本申请不做限定。
DN,是位于运营商网络之外的网络,运营商网络可以接入多个DN,DN上可部署多种业务,可为终端设备提供数据和/或语音等服务。例如,DN是某智能工厂的私有网络,智能工厂安装在车间的传感器可为终端设备,DN中部署了传感器的控制服务器,控制服务器可为传感器提供服务。传感器可与控制服务器通信,获取控制服务器的指令,根据指令将采集的传感器数据传送给控制服务器等。又例如,DN是某公司的内部办公网络,该公司员工的手机或者电脑可为终端设备,员工的手机或者电脑可以访问公司内部办公网络上的信息、数据资源等。
图1A中Npcf、Nudr、Nudm、Naf、Namf、Nsmf、Ntnf分别为上述PCF、UDR、UDM、AF、AMF、SMF、TNF提供的服务化接口,用于调用相应的服务化操作。N1、N2、N3、N4,以及N6为接口序列号,这些接口序列号的含义可参见图1B中的描述。
图1B为基于点对点接口的5G网络架构示意图,其中的网元的功能的介绍可以参考图1A中对应的网元的功能的介绍,不再赘述。图1B与图1A的主要区别在于:图1A中的 各个控制面网元之间的接口是服务化的接口,图1B中的各个控制面网元之间的接口是点对点的接口。
在图1B所示的架构中,各个网元之间的接口名称及功能如下:
1)、N1:AMF与终端设备之间的接口,可以用于向终端设备传递NAS信令(如包括来自AMF的QoS规则)等。
2)、N2:AMF与RAN之间的接口,可以用于传递核心网侧至RAN的无线承载控制信息等。
3)、N3:RAN与UPF之间的接口,主要用于传递RAN与UPF间的上下行用户面数据。
4)、N4:SMF与UPF之间的接口,可以用于控制面与用户面之间传递信息,包括控制面向用户面的转发规则、QoS控制规则、流量统计规则等的下发以及用户面的信息上报。
5)、N5:AF与PCF之间的接口,可以用于应用业务请求下发以及网络事件上报。
6)、N6:UPF与DN的接口,用于传递UPF与DN之间的上下行用户数据流。
7)、N7:PCF与SMF之间的接口,可以用于下发协议数据单元(protocol data unit,PDU)会话粒度以及业务数据流粒度控制策略。
8)、N8:AMF与UDM间的接口,可以用于AMF向UDM获取接入与移动性管理相关签约数据与鉴权数据,以及AMF向UDM注册终端设备当前移动性管理相关信息等。
9)、N9:UPF和UPF之间的用户面接口,用于传递UPF间的上下行用户数据流。
10)、N10:SMF与UDM间的接口,可以用于SMF向UDM获取会话管理相关签约数据,以及SMF向UDM注册终端设备当前会话相关信息等。
11)、N11:SMF与AMF之间的接口,可以用于传递RAN和UPF之间的PDU会话隧道信息、传递发送给终端设备的控制消息、传递发送给RAN的无线资源控制信息等。
12)、N15:PCF与AMF之间的接口,可以用于下发终端设备策略及接入控制相关策略。
13)、N35:UDM与UDR间的接口,可以用于UDM从UDR中获取用户签约数据信息。
14)、N36:PCF与UDR间的接口,可以用于PCF从UDR中获取策略相关签约数据以及应用数据相关信息。
可以理解的是,上述网元或者功能既可以是硬件设备中的网络元件,也可以是在专用硬件上运行软件功能,或者是平台(例如,云平台)上实例化的虚拟化功能。作为一种可能的实现方法,上述网元或者功能可以由一个设备实现,也可以由多个设备共同实现,还可以是一个设备内的一个功能模块,本申请实施例对此不作具体限定。
基于图1A或图1B所示意的网络架构,本申请实施例提供一种通信方法,在该方法中,第一通信装置接收来自第二通信装置的授时请求消息,授时请求消息用于请求为多个终端设备授时;第一通信装置根据一个或多个候选时钟为多个终端设备授时所对应的授时误差精度,确定为多个终端设备授时的目标时钟,并采用目标时钟为多个终端设备授时。如此,由于第一通信装置根据一个或多个候选时钟为多个终端设备授时所对应的授时误差精度来确定目标时钟,从而能够实现为多个终端设备授时,且便于满足多个终端设备之间的时间同步需求。
下面先对本申请实施例所涉及的相关技术特征进行解释说明。需要说明的是,这些解释是为了让本申请实施例更容易被理解,而不应该视为对本申请所要求的保护范围的限定。
(1)时钟精度
以终端设备为例,终端设备的时钟精度可以包括两部分内容,第一部分为数值,第二部分为时间单位。终端设备的时钟精度的第二部分取决于终端设备的时钟的最小时间单位,比如秒、毫秒、微妙等;终端设备的时钟精度的第一部分取决于终端设备的时钟的调整步长,比如1。时钟精度的值越小,则说明时钟精度越高;时钟精度的值越大,则说明时钟精度越低。可以理解的是,时钟精度也可以称为时间精度。
(2)时延(delay)、时钟误差(offset)
不同节点之间通信时,会存在传输时延(简称为时延)。比如,第一节点的时钟为第二节点授时,会存在授时时延。在一个示例中,第一节点为接入网网元,第二节点为终端设备;或者,第一节点为第一接入网网元,第二节点为第二接入网网元;又或者,第一节点为TNF网元,第二节点为接入网网元。
不同节点的时钟之间可能存在时钟误差,比如第一节点的时钟和第二节点的时钟不同步,则第一节点的时钟和第二节点的时钟之间存在时钟误差。
下面结合图2描述获取时延和时钟误差的一种可能的实现流程,如图2所示,该流程可以包括:
S201,第一节点在时间t1向第二节点发送第一信号,并记录发送第一信号的时间t1;相应地,第二节点在时间t2接收到第一信号,并记录接收第一信号的时间t2。
S202,第二节点在时间t3向第一节点发送第二信号,并记录发送第二信号的时间t3;相应地,第一节点在时间t4接收到第二信号,并记录接收第二信号的时间t4。
S203,第二节点向第一节点发送时间信息,时间信息包括时间t2和时间t3;相应地,第一节点接收时间信息。
S204,第一节点根据时间信息,确定第一节点的时钟为第二节点授时的时延。
此处,第一节点可以通过如下公式确定第一节点的时钟为第二节点授时的时延T:
T=[(t2-t1)+(t4-t3)]/2……公式1
S205,第一节点根据时间信息,确定第一节点的时钟和第二节点的时钟之间的时钟误差。
此处,第一节点可以通过如下公式确定第一节点的时钟和第二节点的时钟之间的时钟误差F:
F=[(t2-t1)-(t4-t3)]/2……公式2
需要说明的是,在其它可能的实施例中,也可以由第一节点将时间t1、时间t4发送给第二节点,进而由第二节点来计算时延T和时钟误差F。本申请实施例中,将以由第一节点计算时延T和时钟误差F为例进行描述。
下面结合实施例一至实施例三对本申请实施例提供的通信方法进行介绍。
实施例一
图3为本申请实施例一提供的通信方法所对应的流程示意图。如图3所示,包括:
S301,第一通信装置接收来自第二通信装置的授时请求消息,该授时请求消息用于请 求为多个终端设备授时。
此处,授时请求消息可以包括多个终端设备的标识。以多个终端设备为两个终端设备为例,两个终端设备可以分别为第一终端设备和第二终端设备。其中,为第一终端设备服务的接入网网元可以为第一接入网网元,比如第一终端设备位于第一接入网网元的覆盖区域内,进而第一接入网网元可以为第一终端设备提供服务;为第二终端设备服务的接入网网元可以为第二接入网网元,比如第二终端设备位于第二接入网网元的覆盖区域内,进而第二接入网网元可以为第二终端设备提供服务。
示例性地,授时请求消息还可以包括其它可能的信息,比如多个终端设备的时钟精度。其中,第一终端设备和第二终端设备的时间精度可以相同,比如第一终端设备和第二终端设备的时间精度均为1毫秒;或者,第一终端设备可以高于第二终端设备的时间精度,比如第一终端设备的时间精度为1毫秒,第二终端设备的时间精度为1秒;又或者,第一终端设备可以低于第二终端设备的时间精度,比如第一终端设备的时间精度为1秒,第二终端设备的时间精度为1毫秒。
示例性地,第一通信装置可以为TNF网元,或者当第一终端设备和第二终端设备对应同一AMF网元(比如第一AMF网元)时,第一通信装置也可以为第一AMF网元;第二通信装置可以为NEF网元。
S302,第一通信装置根据一个或多个候选时钟为多个终端设备授时所对应的授时误差精度,确定为多个终端设备授时的目标时钟。
作为一种可能的实现,S302可以包括步骤a、步骤b和步骤c。
步骤a,第一通信装置根据授时请求消息,确定需要为多个终端设备授时后,可以针对每个终端设备,确定为该终端设备授时的候选时钟。
比如,针对于第一终端设备,第一通信装置可以确定为第一终端设备授时的候选时钟包括:①第一接入网网元的时钟、②第二接入网网元的时钟、③TNF网元的时钟;以及,针对于第二终端设备,第一通信装置可以确定为第二终端设备授时的候选时钟包括:④第一接入网网元的时钟、⑤第二接入网网元的时钟、⑥TNF网元的时钟。
步骤b,第一通信装置可以确定①②③中的任一时钟为第一终端设备授时以及④⑤⑥中的任一时钟为第二终端设备授时所对应的授时误差精度。
比如,第一通信装置可以确定第一接入网网元的时钟为第一终端设备授时以及为第二终端设备授时(对应①④,下文中称为第一授时方式)所对应的授时误差精度、第二接入网网元的时钟为第一终端设备授时以及为第二终端设备授时(对应②⑤,下文中称为第二授时方式)所对应的授时误差精度、第一接入网网元的时钟为第一终端设备授时以及第二接入网网元的时钟为第二终端设备授时(对应①⑤,下文中称为第三授时方式)所对应的授时误差精度、TNF网元的时钟为第一终端设备授时以及为第二终端设备授时(对应③⑥,下文中称为第四授时方式)所对应的授时误差精度等。其中,授时误差精度可以是指,为第一终端设备授时所对应的授时时延与为第二终端设备授时所对应的授时时延之间的误差,或者也可以是指,在为第一终端设备和第二终端设备授时后,第一终端设备的时钟与第二终端设备的时钟之间的时钟误差。
此处仅列举出其中的四种授时方式,还可以包括其它授时方式,此处不再一一列举。
下面对第一通信装置确定多种授时方式(比如上述四种授时方式)所对应的授时误差精度的实现进行描述。
(1)第一授时方式
在第一授时方式中,第一接入网网元的时钟为第一终端设备授时,比如第一接入网元向第一终端设备发送第一时间信息,第一时间信息用于指示第一接入网网元的时钟的时间;以及,第一接入网网元的时钟为第二终端设备授时,由于第一接入网网元不是为第二终端设备服务的接入网网元,因此第一接入网网元的时钟为第二终端设备授时可以是指,第一接入网网元的时钟通过第二接入网网元为第二终端设备授时,比如第一接入网网元向第二接入网网元发送第一时间信息,进而由第二接入网网元将第一时间信息发送给第二终端设备。
本申请实施例中,假设第一接入网网元的时钟为第一终端设备授时(比如第一接入网设备向第一终端设备发送第一时间信息)的时延和第二接入网网元的时钟为第二终端设备授时(比如第二接入网设备向第二终端设备发送第一时间信息)的时延相同,因此,则第一授时方式所对应的授时误差精度(为便于描述,称为授时误差精度1)可以为:第一接入网网元的时钟为第二接入网网元授时的时延,或者说,第一接入网网元向第二接入网网元发送第一时间信息的时延。其中,第一接入网网元的时钟为第二接入网网元授时的时延可以由第一接入网网元通过前文所描述的公式1来确定。
(2)第二授时方式
在第二授时方式中,第二接入网网元的时钟为第一终端设备授时,由于第二接入网网元不是为第一终端设备服务的接入网网元,因此第二接入网网元的时钟为第一终端设备授时可以是指,第二接入网网元通过第一接入网网元为第一终端设备授时,比如,第二接入网网元向第一接入网网元发送第二时间信息,第二时间信息用于指示第二接入网网元的时钟的时间,进而由第一接入网网元将第二时间信息发送给第一终端设备;以及,第二接入网网元的时钟为第二终端设备授时,比如,第二接入网元向第二终端设备发送第二时间信息。
第二授时方式所对应的授时误差精度(为便于描述,称为授时误差精度2)可以为:第二接入网网元的时钟为第一接入网网元授时的时延。其中,第二接入网网元的时钟为第一接入网网元授时的时延可以由第二接入网网元通过前文所描述的公式1来确定。
(3)第三授时方式
在第三授时方式中,第一接入网网元的时钟为第一终端设备授时,以及第二接入网网元的时钟为第二终端设备授时。第三授时方式所对应的授时误差精度(为便于描述,称为授时误差精度3)可以为:第一接入网网元的时钟和第二接入网网元的时钟之间的时钟误差。其中,第一接入网网元的时钟和第二接入网网元的时钟之间的时钟误差可以由第一接入网网元通过前文所描述的公式2来确定。
(4)第四授时方式
在第四授时方式中,TNF网元的时钟为第一终端设备授时,比如,TNF网元向第一接入网元发送第三时间信息,第三时间信息即为TNF网元的时钟的时间信息,进而由第一接入网网元将第三时间信息发送给第一终端设备;以及TNF网元的时钟为第二终端设备授时,比如,TNF网元向第二接入网元发送第三时间信息,进而由第二接入网网元将第三时间信息发送给第二终端设备。
第四授时方式所对应的授时误差精度(为便于描述,称为授时误差精度4)为:W=Tt1-Tt2,其中,W为授时误差精度4,Tt1为TNF网元的时钟为第一接入网网元授时 的时延,Tt2为TNF网元为第二接入网网元授时的时延。TNF网元的时钟为第一接入网网元和第二接入网网元授时的时延可以由TNF网元通过前文所描述的公式2确定。
如此,第一通信装置可以从第一接入网网元获取第一接入网网元的时钟为第二接入网网元授时的时延,进而得到授时误差精度1;第一通信装置可以从第二接入网网元获取第二接入网网元的时钟为第一接入网网元授时的时延,进而得到授时误差精度2;第一通信装置可以从第一接入网网元获取第一接入网网元的时钟和第二接入网网元的时钟之间的时钟误差,进而得到授时误差精度3;第一通信装置可以从TNF网元获取TNF网元的时钟为第一接入网网元和第二接入网网元授时的时延(如果第一通信装置为TNF网元,则无需执行该步骤),进而得到授时误差精度4。
步骤c,第一通信装置可以根据多种授时方式中每种授时方式所对应的授时误差精度,确定为多个终端设备授时的目标时钟。
作为一种可能的实现,第一通信装置可以确定出所有可能的授时方式所对应的授时误差精度,并根据这些授时方式所对应的授时误差精度,确定为多个终端设备授时的目标时钟。或者,由于一些授时方式所对应的授时误差精度明显较大(比如,第一接入网网元的时钟为第一终端设备授时以及TNF网元的时钟为第二终端设备授时所对应的授时误差精度明显较大),因此,第一通信装置也可以确定出部分授时方式所对应的授时误差精度,并根据这些授时方式所对应的授时误差精度,确定为多个终端设备授时的目标时钟,从而节省处理资源。
比如,第一通信装置可以确定授时误差精度1、授时误差精度2、授时误差精度3和授时误差精度4,并根据授时误差精度1、授时误差精度2、授时误差精度3和授时误差精度4的大小,选择目标授时方式,进而将目标授时方式所对应的为多个终端设备授时的时钟确定为目标时钟。比如,目标授时方式可以为授时误差精度1、授时误差精度2、授时误差精度3和授时误差精度4中的最小授时误差精度所对应的授时方式。举个例子,授时误差精度1<授时误差精度2<授时误差精度3<授时误差精度4,则目标授时方式为第一授时方式,目标时钟为第一接入网网元的时钟。
示例性地,当授时请求消息中包括多个终端设备的时钟精度时,第一通信装置可以根据授时误差精度1、授时误差精度2、授时误差精度3和授时误差精度4的大小以及多个终端设备的时钟精度,选择目标授时方式,目标授时方式所对应的为多个终端设备授时的时钟的时钟精度匹配多个终端设备的时钟精度。比如,授时误差精度1<授时误差精度2<授时误差精度3<授时误差精度4,且第一授时方式所对应的为多个终端设备授时的时钟的时钟精度匹配多个终端设备的时钟精度,则第一通信装置选择出的目标授时方式可以为第一授时方式。又比如,授时误差精度1=授时误差精度2<授时误差精度3<授时误差精度4,第一授时方式所对应的为多个终端设备授时的时钟的时钟精度不匹配多个终端设备的时钟精度,第二授时方式所对应的为多个终端设备授时的时钟的时钟精度匹配多个终端设备的时钟精度,则第一通信装置选择出的目标授时方式可以为第二授时方式。又比如,授时误差精度1<授时误差精度2<授时误差精度3<授时误差精度4,第一授时方式所对应的为多个终端设备授时的时钟的时钟精度不匹配多个终端设备的时钟精度,第一授时方式所对应的为多个终端设备授时的时钟的时钟精度匹配多个终端设备的时钟精度,则第一通信装置选择出的目标授时方式可以为第二授时方式。
其中,当多个终端设备的时钟精度相同时,第一授时方式所对应的为多个终端设备授 时的时钟的时钟精度匹配多个终端设备的时钟精度可以是指:第一接入网网元的时钟精度高于或等于多个终端设备的时钟精度。第二授时方式所对应的为多个终端设备授时的时钟的时钟精度匹配多个终端设备的时钟精度可以是指:第二接入网网元的时钟精度高于或等于多个终端设备的时钟精度。第三授时方式所对应的为多个终端设备授时的时钟的时钟精度匹配多个终端设备的时钟精度可以是指:第一接入网网元的时钟精度高于或等于第一终端设备的时钟精度,以及第二接入网网元的时钟精度高于或等于第二终端设备的时钟精度。第四授时方式所对应的为多个终端设备授时的时钟的时钟精度匹配多个终端设备的时钟精度可以是指:TNF网元的时钟精度高于或等于多个终端设备的时钟精度。
当多个终端设备的时钟精度不同(比如第一终端设备的时钟精度高于第二终端设备的时钟精度)时,第一授时方式所对应的为多个终端设备授时的时钟的时钟精度匹配多个终端设备的时钟精度可以是指:第一接入网网元的时钟精度高于或等于第一终端设备的时钟精度。第二授时方式所对应的为多个终端设备授时的时钟的时钟精度匹配多个终端设备的时钟精度可以是指:第二接入网网元的时钟精度高于或等于第一终端设备的时钟精度。第三授时方式所对应的为多个终端设备授时的时钟的时钟精度匹配多个终端设备的时钟精度可以是指:第一接入网网元的时钟精度高于或等于第一终端设备的时钟精度,以及第二接入网网元的时钟精度高于或等于第二终端设备的时钟精度。第四授时方式所对应的为多个终端设备授时的时钟的时钟精度匹配多个终端设备的时钟精度可以是指:TNF网元的时钟精度高于或等于第一终端设备的时钟精度。
可以理解的是,在其它可能的实现中,当第一通信装置确定出某一授时误差精度(比如授时误差精度1)后,可以将授时误差精度1与第一阈值进行比较;若授时误差精度1大于第一阈值,则继续确定其它授时方式对应的授时误差精度(比如授时误差精度2),并将授时误差精度2与第一阈值进行比较;若授时误差精度2小于或等于第一阈值,则可以确定第二授时方式为目标授时方式,进而将第二授时方式所对应的为多个终端设备授时的时钟确定为目标时钟,可选地,第一通信装置也可以无需再确定其它授时方式对应的授时误差精度,从而有效节省处理资源。其中,第一阈值可以为协议预先定义的,具体不做限定。
S303,第一通信装置采用目标时钟为多个终端设备授时。
此处,当第一通信装置为TNF网元时,第一通信装置采用目标时钟为多个终端设备授时的具体实现可以参见实施例二中的描述,当第一通信装置为第一AMF网元时,第一通信装置采用目标时钟为多个终端设备授时的具体实现可以参见实施例三中的描述。
可以理解的是,第一通信装置通过执行上述S302至S303可以实现为多个终端设备进行一次授时,作为一种可能的实现,第一通信装置可以多次执行S302至S303,从而为多个终端设备进行多次授时。
采用上述实施例一中的方案,由于第一通信装置根据一个或多个候选时钟为多个终端设备授时所对应的授时误差精度来确定目标时钟,从而能够实现为多个终端设备授时,且便于满足多个终端设备之间的时间同步需求。
实施例二
基于上述实施例一的描述,在实施例二中,将以实施例一中的第一通信装置为TNF网元,第二通信装置为NEF网元为例,结合图4描述一种可能的实现流程。
图4为本申请实施例二提供的通信方法所对应的流程示意图。该流程可以适用于多个终端设备(比如第一终端设备和第二终端设备)对应不同AMF网元的情形。如图4所示,包括:
S401,AF网元向NEF网元发送第一授时请求消息,第一授时请求消息包括多个终端设备的标识;相应地,NEF网元接收第一授时请求消息。
示例性地,第一授时请求消息还可以包括多个终端设备的时钟精度。
S402,NEF网元确定第一终端设备和第二终端设备对应不同AMF网元,并向TNF网元发送第二授时请求消息,相应地,TNF网元接收第二授时请求消息。
此处,第二授时请求消息所包括的内容和第一授时请求消息所包括的内容相同。
示例性地,NEF网元接收到第一授时请求消息后,可以根据第一终端设备的标识,从UDM网元获取第一终端设备对应的AMF网元的标识;以及,根据第二终端设备的标识,从UDM网元获取第二终端设备对应的AMF网元的标识。比如NEF网元可以向UDM网元发送查询消息,查询消息包括第一终端设备的标识和第二终端设备的标识;相应地,UDM网元可以根据查询消息,向NEF网元发送第一终端设备对应的AMF网元的标识和第二终端设备对应的AMF网元的标识。当第一终端设备对应的AMF网元的标识和第二终端设备对应的AMF网元的标识不同时,NEF网元可以确定第一终端设备和第二终端设备对应不同AMF网元,比如第一终端设备对应第一AMF网元,第二终端设备对应第二AMF网元。
可以理解的是,在其它可能的实施例中,NEF网元接收到第一授时请求消息后,也可以不判断第一终端设备和第二终端设备是否对应不同AMF网元,直接向TNF网元发送第二授时请求消息。
上述S402对应实施例一中的S301,实施例二中的第一授时请求消息和第二授时请求消息可以参考实施例一中有关授时请求消息的描述。
S403,TNF网元根据第二授时请求消息,向第一接入网网元发送请求消息1,请求消息1包括第二接入网网元的标识。
示例性地,TNF网元可以通过第一AMF网元向第一接入网网元发送请求消息1,比如TNF网元可以从NEF网元或UDM网元获取第一终端设备对应的第一AMF网元的标识,进而通过第一AMF网元向第一接入网网元发送请求消息1。
S404,第一接入网网元接收请求消息1,并根据请求消息1,向TNF网元发送响应消息1。
示例性地,第一接入网网元可以根据请求消息1,采用前文所描述的方式来确定第一接入网网元的时钟为第二接入网网元授时的时延、第一接入网网元的时钟和第二接入网网元的时钟之间的时钟误差,进而向TNF网元发送响应消息1,响应消息1包括上报信息1,上报信息1包括第一接入网网元的时钟为第二接入网网元授时的时延、第一接入网网元的时钟和第二接入网网元的时钟之间的时钟误差。
作为一种可能的实现,第一接入网网元还可以向TNF网元发送能力信息1,比如第一接入网网元通过响应消息1向TNF网元发送能力信息1,也就是说,响应消息1还可以包括能力信息1,能力信息1用于指示上报周期1,上报信息1在上报周期1内有效。可选地,第一接入网网元在向TNF网元发送上报信息1后,后续可以按照上报周期1主动上报第一接入网网元的时钟为第二接入网网元授时的时延以及第一接入网网元的时钟和第二接入网网元的时钟之间的时钟误差。
比如,上报周期1为1小时,则TNF网元接收到上报信息1后,可以确定上报信息1在之后的1小时内始终是有效的。因此,当TNF网元需要再次使用第一接入网网元的时钟为第二接入网网元授时的时延(比如当TNF网元再次为多个终端设备授时时,需要再次使用第一接入网网元的时钟为第二接入网网元授时的时延来确定授时误差精度1)时,若上报信息1有效,则可以使用上报信息1中所包括的第一接入网网元的时钟为第二接入网网元授时的时延,而无需再向第一接入网网元发送请求消息来获取第一接入网网元的时钟为第二接入网网元授时的时延,从而能够有效节省传输资源的开销。
S405,TNF网元根据第二授时请求消息,向第二接入网网元发送请求消息2,请求消息2包括第一接入网网元的标识。
示例性地,TNF网元可以通过第二AMF网元向第二接入网网元发送请求消息2,比如TNF网元可以从NEF网元或UDM网元获取第二终端设备对应的第二AMF网元的标识,进而通过第二AMF网元向第二接入网网元发送请求消息2。
S406,第二接入网网元接收请求消息2,并根据请求消息2,向TNF网元发送响应消息2。
此处,第二接入网网元可以根据请求消息2,采用前文所描述的方式来确定第二接入网网元的时钟为第一接入网网元授时的时延,可选地,还可以确定第一接入网网元的时钟和第二接入网网元的时钟之间的时钟误差,进而向TNF网元发送响应消息2,响应消息2包括上报信息2,上报信息2包括第二接入网网元的时钟为第一接入网网元授时的时延,可选地,上报信息2还可以包括第一接入网网元的时钟和第二接入网网元的时钟之间的时钟误差。
作为一种可能的实现,第二接入网网元还可以向TNF网元发送能力信息2,比如第二接入网网元通过响应消息2向TNF网元发送能力信息2,也就是说,响应消息2还可以包括能力信息2,能力信息2用于指示上报周期2,上报信息2在上报周期2内有效。可选地,第二接入网网元在向TNF网元发送响应消息2后,后续可以按照上报周期2主动上报第二接入网网元的时钟为第一接入网网元授时的时延。
比如,上报周期2为1小时,则TNF网元接收到上报信息2后,可以确定上报信息2在之后的1小时内始终是有效的。因此,当TNF网元需要再次使用第二接入网网元为第一接入网网元授时的时延(比如当TNF网元再次为多个终端设备授时时,需要再次使用第二接入网网元的时钟为第一接入网网元授时的时延来确定授时误差精度2)时,若上报信息2有效,则可以使用上报信息2中所包括的第二接入网网元的时钟为第一接入网网元授时的时延,而无需再向第一接入网网元发送请求消息来获取第二接入网网元的时钟为第一接入网网元授时的时延,从而能够有效节省传输资源的开销。
可以理解的是,上述S403和S405可以同时执行。
S407,TNF网元根据一个或多个候选时钟为所述多个终端设备授时所对应的授时误差精度,确定为所述多个终端设备授时的目标时钟。
示例性地,TNF网元可以根据第一接入网网元的时钟为第二接入网网元授时的时延,确定授时误差精度1;TNF网元可以根据第二接入网网元的时钟为第一接入网网元授时的时延,确定授时误差精度2;TNF网元可以根据第一接入网网元的时钟与第二接入网网元的时钟之间的时钟误差确定授时误差精度3;以及,TNF网元还可以采用前文所描述的方式来确定TNF网元的时钟为第一接入网网元和第二接入网网元授时的时延,并根据TNF 网元的时钟为第一接入网网元和第二接入网网元授时的时延,确定授时误差精度4。
进而,TNF网元可以根据授时误差精度1、授时误差精度2、授时误差精度3和授时误差精度4的大小,选择目标授时方式;或者,TNF网元可以根据授时误差精度1、授时误差精度2、授时误差精度3和授时误差精度4的大小以及多个终端设备的时钟精度,选择目标授时方式,进而将目标授时方式所对应的为多个终端设备授时的时钟确定为目标时钟。
上述S403至S407对应实施例一中的S302,二者可以相互参考。
S408,TNF网元采用目标时钟为多个终端设备授时。
示例性地,若目标授时方式为第一授时方式,则TNF网元采用目标时钟为多个终端设备授时可以是指,TNF网元向第一接入网网元发送指示信息1a,指示信息1a用于指示第一接入网网元的时钟为多个终端设备授时,指示信息1a可以包括多个终端设备的标识和第二接入网网元的标识。相应地,第一接入网网元接收到指示信息1a后,可以向第一终端设备发送第一时间信息,以及根据第二接入网网元的标识,向第二接入网网元发送第二终端设备的标识和第一时间信息。相应地,第二接入网网元可以根据第二终端设备的标识,将第一时间信息发送给第二终端设备。
若目标授时方式为第二授时方式,则TNF网元采用目标时钟为多个终端设备授时可以是指,TNF网元向第二接入网网元发送指示信息1b,指示信息1b用于指示第二接入网网元的时钟为多个终端设备授时,指示信息1b可以包括多个终端设备的标识和第一接入网网元的标识。相应地,第二接入网网元接收到指示信息1b后,可以向第二终端设备发送第二时间信息,以及根据第一接入网网元的标识,向第一接入网网元发送第一终端设备的标识和第二时间信息。相应地,第一接入网网元可以根据第一终端设备的标识,将第二时间信息发送给第一终端设备。
若目标授时方式为第三授时方式,则TNF网元采用目标时钟为多个终端设备授时可以是指,TNF网元向第一接入网网元发送指示信息1c,指示信息1c用于指示第一接入网网元的时钟为第一终端设备授时,指示信息1c可以包括第一终端设备的标识;相应地,第一接入网网元接收到指示信息1c后,可以向第一终端设备发送第一时间信息。以及,TNF网元向第二接入网网元发送指示信息1d,指示信息1d用于指示第二接入网网元的时钟为第二终端设备授时,指示信息1d可以包括第二终端设备的标识;相应地,第二接入网网元接收到指示信息1d后,可以向第二终端设备发送第二时间信息。
若目标授时方式为第四授时方式,则TNF网元采用目标时钟为多个终端设备授时可以是指,TNF网元通过第一AMF网元向第一接入网网元发送指示信息1e,指示信息1e包括第一终端设备的标识和第三时间信息;相应地,第一接入网网元接收到指示信息1e后,可以向第一终端设备发送第三时间信息。以及,TNF网元通过第二AMF网元向第二接入网网元发送指示信息1f,指示信息1f包括第二终端设备的标识和第三时间信息;相应地,第二接入网网元接收到指示信息1f后,可以向第二终端设备发送第三时间信息。
采用上述实施例二中的方案,当多个终端设备对应不同AMF网元时,可以由TNF网元根据一个或多个候选时钟为多个终端设备授时所对应的授时误差精度来确定目标时钟,从而能够实现为多个终端设备授时,且便于满足多个终端设备之间的时间同步需求。
实施例三
基于上述实施例一的描述,在实施例三中,将以实施例一中的第一通信装置为第一AMF网元,第二通信装置为NEF网元为例,结合图5描述一种可能的实现流程。
图5为本申请实施例三提供的通信方法所对应的流程示意图。该流程可以适用于多个终端设备(比如第一终端设备和第二终端设备)对应同一AMF网元的情形。如图4所示,包括:
S501,AF网元向NEF网元发送第一授时请求消息,第一授时请求消息包括多个终端设备的标识;相应地,NEF网元接收第一授时请求消息。
示例性地,第一授时请求消息还可以包括多个终端设备的时钟精度。
S502,NEF网元确定第一终端设备和第二终端设备对应同一AMF网元(比如第一AMF网元),并向第一AMF网元发送第三授时请求消息,相应地,第一AMF网元接收第三授时请求消息。
此处,第三授时请求消息所包括的内容和第一授时请求消息所包括的内容相同。
上述S502对应实施例一中的S301,实施例三中的第一授时请求消息和第三授时请求消息可以参考实施例一中有关授时请求消息的描述。
S503,第一AMF网元根据第三授时请求消息,向第一接入网网元发送请求消息3,请求消息3包括第二接入网网元的标识。
S504,第一接入网网元接收请求消息3,并根据请求消息3,向第一AMF网元发送响应消息3。
此处,请求消息3和响应消息3所包括的内容可以参见实施例二中有关请求消息1和响应消息1的描述,不再赘述。
S505,第一AMF网元根据第三授时请求消息,向第二接入网网元发送请求消息4,请求消息4包括第一接入网网元的标识。
S506,第二接入网网元接收请求消息4,并根据请求消息4,向第一AMF网元发送响应消息4。
此处,请求消息4和响应消息4所包括的内容可以参见实施例二中有关请求消息2和响应消息2的描述,不再赘述。
S507,第一AMF网元根据第三授时请求消息,向TNF网元发送请求消息5,请求消息5包括第一接入网网元的标识和第二接入网网元的标识。
S508,TNF网元接收请求消息5,并根据请求消息5,向第一AMF网元发送响应消息5。
此处,TNF网元接收到请求消息5后,可以根据第一接入网网元的标识,采用前文所描述的方式来确定TNF网元的时钟为第一接入网网元授时的时延;以及,根据第二接入网网元的标识,采用前文所描述的方式来确定TNF网元的时钟为第二接入网网元授时的时延。进而,向第一AMF网元发送响应消息5,响应消息5包括上报信息3,上报信息3包括TNF网元的时钟为第一接入网网元授时的时延、TNF网元的时钟为第二接入网网元授时的时延。
作为一种可能的实现,TNF网元还可以向第一AMF网元发送能力信息3,比如TNF网元通过响应消息3向第一AMF网元发送能力信息3,也就是说,响应消息3还可以包括能力信息3,能力信息3用于指示上报周期3,上报信息3在上报周期3内有效。可选地,TNF网元在向第一AMF网元发送上报信息3后,后续可以按照上报周期3主动上报TNF 网元的时钟为第一接入网网元授时的时延以及TNF网元的时钟为第二接入网网元授时的时延。
比如,上报周期3为1小时,则第一AMF网元接收到上报信息3后,可以确定上报信息3在之后的1小时内始终是有效的。因此,当第一AMF网元需要再次使用TNF网元的时钟为第二接入网网元授时的时延(比如当第一AMF网元再次为多个终端设备授时时,需要再次使用TNF网元的时钟为第一接入网网元授时的时延以及TNF网元的时钟为第二接入网网元授时的时延,来确定授时误差精度4)时,若上报信息3有效,则可以使用上报信息3中所包括的TNF网元的时钟为第一接入网网元授时的时延以及TNF网元的时钟为第二接入网网元授时的时延,而无需再向TNF网元发送请求消息来获取TNF网元的时钟为第一接入网网元授时的时延以及TNF网元的时钟为第二接入网网元授时的时延,从而能够有效节省传输资源的开销。
可以理解的是,上述S503、S505和S507可以同时执行或者也可以不同时执行,本申请实施例对执行的先后顺序不做限定。
S509,第一AMF网元根据一个或多个候选时钟为所述多个终端设备授时所对应的授时误差精度,确定为所述多个终端设备授时的目标时钟。
此处,第一AMF网元可以根据第一接入网网元的时钟为第二接入网网元授时的时延,确定授时误差精度1;第一AMF网元可以根据第二接入网网元的时钟为第一接入网网元授时的时延,确定授时误差精度2;第一AMF网元可以根据第一接入网网元的时钟与第二接入网网元的时钟之间的时钟误差确定授时误差精度3;以及,第一AMF网元还可以采用前文所描述的方式来确定TNF网元的时钟为第一接入网网元和第二接入网网元授时的时延,并根据TNF网元的时钟为第一接入网网元和第二接入网网元授时的时延,确定授时误差精度4。
进而,第一AMF网元可以根据授时误差精度1、授时误差精度2、授时误差精度3和授时误差精度4的大小,选择目标授时方式;或者,第一AMF网元可以根据授时误差精度1、授时误差精度2、授时误差精度3和授时误差精度4的大小以及多个终端设备的时钟精度,选择目标授时方式,进而将目标授时方式所对应的为多个终端设备授时的时钟确定为目标时钟。
上述S503至S509对应实施例一中的S302,二者可以相互参考。
S510,第一AMF网元采用目标时钟为多个终端设备授时。
示例性地,若目标授时方式为第一授时方式,则第一AMF网元采用目标时钟为多个终端设备授时可以是指,第一AMF网元向第一接入网网元发送指示信息2a,指示信息2a用于指示第一接入网网元的时钟为多个终端设备授时,指示信息2a可以包括多个终端设备的标识和第二接入网网元的标识。相应地,第一接入网网元接收到指示信息2a后,可以向第一终端设备发送第一时间信息,以及根据第二接入网网元的标识,向第二接入网网元发送第二终端设备的标识和第一时间信息。相应地,第二接入网网元可以根据第二终端设备的标识,将第一时间信息发送给第二终端设备。
若目标授时方式为第二授时方式,则第一AMF网元采用目标时钟为多个终端设备授时可以是指,第一AMF网元向第二接入网网元发送指示信息2b,指示信息2b用于指示第二接入网网元的时钟为多个终端设备授时,指示信息2b可以包括多个终端设备的标识和第一接入网网元的标识。相应地,第二接入网网元接收到指示信息2b后,可以向第二终 端设备发送第二时间信息,以及根据第一接入网网元的标识,向第一接入网网元发送第一终端设备的标识和第二时间信息。相应地,第一接入网网元可以根据第一终端设备的标识,将第二时间信息发送给第一终端设备。
若目标授时方式为第三授时方式,则第一AMF网元采用目标时钟为多个终端设备授时可以是指,第一AMF网元向第一接入网网元发送指示信息2c,指示信息2c用于指示第一接入网网元的时钟为第一终端设备授时,指示信息2c可以包括第一终端设备的标识;相应地,第一接入网网元接收到指示信息2c后,可以向第一终端设备发送第一时间信息。以及,第一AMF网元向第二接入网网元发送指示信息2d,指示信息2d用于指示第二接入网网元的时钟为第二终端设备授时,指示信息2d可以包括第二终端设备的标识;相应地,第二接入网网元接收到指示信息2d后,可以向第二终端设备发送第二时间信息。
若目标授时方式为第四授时方式,则第一AMF网元采用目标时钟为多个终端设备授时可以是指,第一AMF向TNF网元发送指示信息2e,指示信息2e用于指示TNF网元的时钟为多个终端设备授时,进而TNF网元可以根据指示信息2e为多个终端设备授时,具体参见实施例二中的描述。
采用上述实施例三中的方案,当多个终端设备对应同一AMF网元(比如第一AMF网元)时,可以由第一AMF网元根据一个或多个候选时钟为多个终端设备授时所对应的授时误差精度来确定目标时钟,从而能够实现为多个终端设备授时,且便于满足多个终端设备之间的时间同步需求。
针对于上述实施例一至实施例三,可以理解的是:
(1)实施例一至实施例三所描述的各个流程图的步骤编号仅为执行流程的一种示例,并不构成对步骤执行的先后顺序的限制,本申请实施例中相互之间没有时序依赖关系的步骤之间没有严格的执行顺序。各个流程图中所示意的步骤并非全部是必须执行的步骤,可以根据实际需要在各个流程图的基础上删除部分步骤,或者也可以根据实际需要在各个流程图的基础上增添其它可能的步骤。
(2)上述侧重描述了实施例一至实施例三中不同实施例之间的差异之处,除差异之处的其它内容,实施例一至实施例三之间可以相互参照;此外,同一实施例中,不同实现方式或不同示例之间也可以相互参照。
上述主要从通信装置交互的角度对本申请实施例提供的方案进行了介绍。可以理解的是,为了实现上述功能,网元可以包括执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请的实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对通信装置进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
在采用集成的单元的情况下,图6示出了本申请实施例中所涉及的装置的可能的示例性框图。如图6所示,装置600可以包括:处理单元602和通信单元603。处理单元602 用于对装置600的动作进行控制管理。通信单元603用于支持装置600与其他设备的通信。可选地,通信单元603也称为收发单元,可以包括接收单元和/或发送单元,分别用于执行接收和发送操作。装置600还可以包括存储单元601,用于存储装置600的程序代码和/或数据。
该装置600可以为上述实施例中的第一通信装置。处理单元602可以支持装置600执行上文中各方法示例(比如图3、图4或图5)中第一通信装置的动作。或者,处理单元602主要执行方法示例(比如图3、图4或图5)中的第一通信装置的内部动作,通信单元603可以支持装置600与其它设备之间的通信。
比如,在一个实施例中,通信单元603用于:接收来自第二通信装置的授时请求消息,所述授时请求消息用于请求为多个终端设备授时,所述多个终端设备包括第一终端设备和第二终端设备;处理单元602用于:根据一个或多个候选时钟为所述多个终端设备授时所对应的授时误差精度,确定为所述多个终端设备授时的目标时钟,并采用所述目标时钟为所述多个终端设备授时。
在一种可能的设计中,所述目标时钟为所述多个终端设备授时所对应的授时误差精度小于或等于第一阈值;或者,所述目标时钟为所述多个终端设备授时所对应的授时误差精度小于或等于所述一个或多个候选时钟中的其它候选时钟为所述多个终端设备授时所对应的授时误差精度。
在一种可能的设计中,所述授时请求消息还包括所述多个终端设备的时钟精度;所述目标时钟的时钟精度匹配所述多个终端设备的时钟精度。
在一种可能的设计中,所述一个或多个候选时钟包括第一接入网网元的时钟;处理单元602具体用于:确定所述第一接入网网元的时钟为所述第一终端设备授时以及为所述第二终端设备授时。
在一种可能的设计中,所述第一接入网网元为所述第一终端设备的服务网元;处理单元602具体用于:确定所述第一接入网网元的时钟通过第二接入网网元为所述第二终端设备授时,所述第二接入网网元为所述第二终端设备的服务网元;所述第一接入网网元的时钟为所述多个终端设备授时所对应的授时误差精度为:所述第一接入网网元的时钟为第二接入网网元授时的时延。
在一种可能的设计中,通信单元603还用于:接收来自所述第一接入网网元的第一上报信息,所述第一上报信息包括所述第一接入网网元的时钟为所述第二接入网网元授时的时延。
在一种可能的设计中,通信单元603还用于:发送第一请求消息,所述第一请求消息包括所述第二接入网网元的标识,所述第一请求消息用于请求所述第一上报信息。
在一种可能的设计中,通信单元603还用于:接收来自所述第一接入网网元的第一能力信息,所述第一能力信息用于指示第一上报周期,所述第一上报信息在所述第一上报周期内有效。
在一种可能的设计中,所述一个或多个候选时钟包括第一接入网网元的时钟和第二接入网网元的时钟,所述第一接入网网元为所述第一终端设备的服务网元,所述第二接入网网元为所述第二终端设备的服务网元;处理单元602具体用于:确定所述第一接入网网元的时钟为所述第一终端设备授时以及所述第二接入网网元的时钟为所述第二终端设备授时。
在一种可能的设计中,所述第一接入网网元的时钟为所述第一终端设备授时以及所述第二接入网网元的时钟为所述第二终端设备授时所对应的授时误差精度为:所述第一接入网网元的时钟和所述第二接入网网元的时钟之间的时钟误差。
在一种可能的设计中,所述一个或多个候选时钟包括TNF网元的时钟;处理单元602具体用于:确定所述TNF网元的时钟为所述第一终端设备授时以及为所述第二终端设备授时。
在一种可能的设计中,处理单元602具体用于:确定所述TNF网元的时钟通过所述第一接入网网元为所述第一终端设备授时,以及所述TNF网元的时钟通过所述第二接入网网元为所述第二终端设备授时;所述第一接入网网元为所述第一终端设备的服务网元,所述第二接入网网元为所述第二终端设备的服务网元;所述TNF网元的时钟为所述多个终端设备授时所对应的授时误差精度满足如下公式:
W=Tt1-Tt2
其中,W为所述TNF网元的时钟为所述多个终端设备授时所对应的授时误差精度,Tt1为所述TNF网元的时钟为所述第一接入网网元授时的时延,Tt2为所述TNF网元的时钟为所述第二接入网网元授时的时延。
该装置600可以为上述实施例中的第二通信装置。处理单元602可以支持装置600执行上文中各方法示例(比如图3、图4或图5)中第二通信装置的动作。或者,处理单元602主要执行方法示例(比如图3、图4或图5)中的第二通信装置的内部动作,通信单元603可以支持装置600与其它设备之间的通信。
应理解以上装置中单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且装置中的单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元以硬件的形式实现。例如,各个单元可以为单独设立的处理元件,也可以集成在装置的某一个芯片中实现,此外,也可以以程序的形式存储于存储器中,由装置的某一个处理元件调用并执行该单元的功能。此外这些单元全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件又可以成为处理器,可以是一种具有信号的处理能力的集成电路。在实现过程中,上述方法的各操作或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路实现或者以软件通过处理元件调用的形式实现。
在一个例子中,以上任一装置中的单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital singnal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA),或这些集成电路形式中至少两种的组合。再如,当装置中的单元可以通过处理元件调度程序的形式实现时,该处理元件可以是处理器,比如通用中央处理器(central processing unit,CPU),或其它可以调用程序的处理器。再如,这些单元可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。
以上用于接收的单元是一种该装置的接口电路,用于从其它装置接收信号。例如,当该装置以芯片的方式实现时,该接收单元是该芯片用于从其它芯片或装置接收信号的接口电路。以上用于发送的单元是一种该装置的接口电路,用于向其它装置发送信号。例如,当该装置以芯片的方式实现时,该发送单元是该芯片用于向其它芯片或装置发送信号的接口电路。
参考图7,为本申请实施例提供的一种装置的结构示意图。装置700可以为以上实施例中的第一通信装置或第二通信装置,用于实现以上实施例中第一通信装置或第二通信装置的功能。
如图7所示,装置700可包括处理器701、存储器702以及接口电路703。处理器701可用于对通信协议以及通信数据进行处理,以及对装置700进行控制。存储器702可用于存储程序和数据,处理器701可基于该程序执行本申请实施例中由装置700执行的方法。接口电路703可用于装置700与其他设备进行通信,该通信可以为有线通信或无线通信,该接口电路例如可以是服务化接口。
以上存储器702也可以是外接于装置700,此时装置700可包括接口电路703以及处理器701。以上接口电路703也可以是外接于装置700,此时装置700可包括存储器702以及处理器701。当接口电路703以及存储器702均外接于装置700时,装置700可包括处理器701。
图7所示的装置700能够实现上述方法实施例中涉及装置700的各个过程。图7所示的装置700中的各个模块的操作和/或功能,分别为了实现上述方法实施例中的相应流程。具体可参见上述方法实施例中的描述,为避免重复,此处适当省略详述描述。
本申请实施例中的术语“系统”和“网络”可被互换使用。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A、同时存在A和B、单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如“A,B和C中的至少一个”包括A,B,C,AB,AC,BC或ABC。以及,除非有特别说明,本申请实施例提及“第一”、“第二”等序数词是用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他 可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (27)

  1. 一种通信方法,其特征在于,所述方法适用于第一通信装置,所述方法包括:
    接收来自第二通信装置的授时请求消息,所述授时请求消息用于请求为多个终端设备授时,所述多个终端设备包括第一终端设备和第二终端设备;
    根据一个或多个候选时钟为所述多个终端设备授时所对应的授时误差精度,确定为所述多个终端设备授时的目标时钟;
    采用所述目标时钟为所述多个终端设备授时。
  2. 根据权利要求1所述的方法,其特征在于,所述目标时钟为所述多个终端设备授时所对应的授时误差精度小于或等于第一阈值;或者,
    所述目标时钟为所述多个终端设备授时所对应的授时误差精度小于或等于所述一个或多个候选时钟中的其它候选时钟为所述多个终端设备授时所对应的授时误差精度。
  3. 根据权利要求1或2所述的方法,其特征在于,所述授时请求消息还包括所述多个终端设备的时钟精度;
    所述目标时钟的时钟精度匹配所述多个终端设备的时钟精度。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述一个或多个候选时钟包括第一接入网网元的时钟;
    确定为所述多个终端授时的目标时钟,包括:确定所述第一接入网网元的时钟为所述第一终端设备授时以及为所述第二终端设备授时。
  5. 根据权利要求4所述的方法,其特征在于,所述第一接入网网元为所述第一终端设备的服务网元;确定所述第一接入网网元的时钟为所述第二终端设备授时,包括:确定所述第一接入网网元的时钟通过第二接入网网元为所述第二终端设备授时,所述第二接入网网元为所述第二终端设备的服务网元;
    所述第一接入网网元的时钟为所述多个终端设备授时所对应的授时误差精度为:所述第一接入网网元的时钟为第二接入网网元授时的时延。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    接收来自所述第一接入网网元的第一上报信息,所述第一上报信息包括所述第一接入网网元的时钟为所述第二接入网网元授时的时延。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    发送第一请求消息,所述第一请求消息包括所述第二接入网网元的标识,所述第一请求消息用于请求所述第一上报信息。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    接收来自所述第一接入网网元的第一能力信息,所述第一能力信息用于指示第一上报周期,所述第一上报信息在所述第一上报周期内有效。
  9. 根据权利要求1至3中任一项所述的方法,其特征在于,所述一个或多个候选时钟包括第一接入网网元的时钟和第二接入网网元的时钟,所述第一接入网网元为所述第一终端设备的服务网元,所述第二接入网网元为所述第二终端设备的服务网元;
    确定为所述多个终端设备授时的目标时钟,包括:确定所述第一接入网网元的时钟为所述第一终端设备授时以及所述第二接入网网元的时钟为所述第二终端设备授时。
  10. 根据权利要求9所述的方法,其特征在于,所述第一接入网网元的时钟为所述第一 终端设备授时以及所述第二接入网网元的时钟为所述第二终端设备授时所对应的授时误差精度为:所述第一接入网网元的时钟和所述第二接入网网元的时钟之间的时钟误差。
  11. 根据权利要求1至3中任一项所述的方法,其特征在于,所述一个或多个候选时钟包括时钟网络功能TNF网元的时钟;
    确定为所述多个终端设备授时的目标时钟,包括:确定所述TNF网元的时钟为所述第一终端设备授时以及为所述第二终端设备授时。
  12. 根据权利要求11所述的方法,其特征在于,确定所述TNF网元的时钟为所述第一终端设备授时以及为所述第二终端设备授时,包括:确定所述TNF网元的时钟通过第一接入网网元为所述第一终端设备授时,以及所述TNF网元的时钟通过第二接入网网元为所述第二终端设备授时;所述第一接入网网元为所述第一终端设备的服务网元,所述第二接入网网元为所述第二终端设备的服务网元;
    所述TNF网元的时钟为所述多个终端设备授时所对应的授时误差精度满足如下公式:
    W=Tt1-Tt2
    其中,W为所述TNF网元的时钟为所述多个终端设备授时所对应的授时误差精度,Tt1为所述TNF网元的时钟为所述第一接入网网元授时的时延,Tt2为所述TNF网元的时钟为所述第二接入网网元授时的时延。
  13. 一种通信装置,其特征在于,所述装置包括通信单元和处理单元;
    所述通信单元用于:接收来自第二通信装置的授时请求消息,所述授时请求消息用于请求为多个终端设备授时,所述多个终端设备包括第一终端设备和第二终端设备;
    所述处理单元用于:根据一个或多个候选时钟为所述多个终端设备授时所对应的授时误差精度,确定为所述多个终端设备授时的目标时钟;采用所述目标时钟为所述多个终端设备授时。
  14. 根据权利要求13所述的装置,其特征在于,所述目标时钟为所述多个终端设备授时所对应的授时误差精度小于或等于第一阈值;或者,
    所述目标时钟为所述多个终端设备授时所对应的授时误差精度小于或等于所述一个或多个候选时钟中的其它候选时钟为所述多个终端设备授时所对应的授时误差精度。
  15. 根据权利要求13或14所述的装置,其特征在于,所述授时请求消息还包括所述多个终端设备的时钟精度;
    所述目标时钟的时钟精度匹配所述多个终端设备的时钟精度。
  16. 根据权利要求13至15中任一项所述的装置,其特征在于,所述一个或多个候选时钟包括第一接入网网元的时钟;
    所述处理单元具体用于:确定所述第一接入网网元的时钟为所述第一终端设备授时以及为所述第二终端设备授时。
  17. 根据权利要求16所述的装置,其特征在于,所述第一接入网网元为所述第一终端设备的服务网元;所述处理单元具体用于:确定所述第一接入网网元的时钟通过第二接入网网元为所述第二终端设备授时,所述第二接入网网元为所述第二终端设备的服务网元;
    所述第一接入网网元的时钟为所述多个终端设备授时所对应的授时误差精度为:所述第一接入网网元的时钟为第二接入网网元授时的时延。
  18. 根据权利要求17所述的装置,其特征在于,所述通信单元还用于:
    接收来自所述第一接入网网元的第一上报信息,所述第一上报信息包括所述第一接入 网网元的时钟为所述第二接入网网元授时的时延。
  19. 根据权利要求18所述的装置,其特征在于,所述通信单元还用于:
    发送第一请求消息,所述第一请求消息包括所述第二接入网网元的标识,所述第一请求消息用于请求所述第一上报信息。
  20. 根据权利要求19所述的装置,其特征在于,所述通信单元还用于:
    接收来自所述第一接入网网元的第一能力信息,所述第一能力信息用于指示第一上报周期,所述第一上报信息在所述第一上报周期内有效。
  21. 根据权利要求13至15中任一项所述的装置,其特征在于,所述一个或多个候选时钟包括第一接入网网元的时钟和第二接入网网元的时钟,所述第一接入网网元为所述第一终端设备的服务网元,所述第二接入网网元为所述第二终端设备的服务网元;
    所述处理单元具体用于:确定所述第一接入网网元的时钟为所述第一终端设备授时以及所述第二接入网网元的时钟为所述第二终端设备授时。
  22. 根据权利要求21所述的装置,其特征在于,所述第一接入网网元的时钟为所述第一终端设备授时以及所述第二接入网网元的时钟为所述第二终端设备授时所对应的授时误差精度为:所述第一接入网网元的时钟和所述第二接入网网元的时钟之间的时钟误差。
  23. 根据权利要求13至15中任一项所述的装置,其特征在于,所述一个或多个候选时钟包括TNF网元的时钟;
    所述处理单元具体用于:确定所述TNF网元的时钟为所述第一终端设备授时以及为所述第二终端设备授时。
  24. 根据权利要求23所述的装置,其特征在于,所述处理单元具体用于:确定所述TNF网元的时钟通过所述第一接入网网元为所述第一终端设备授时,以及所述TNF网元的时钟通过所述第二接入网网元为所述第二终端设备授时;所述第一接入网网元为所述第一终端设备的服务网元,所述第二接入网网元为所述第二终端设备的服务网元;
    所述TNF网元的时钟为所述多个终端设备授时所对应的授时误差精度满足如下公式:
    W=Tt1-Tt2
    其中,W为所述TNF网元的时钟为所述多个终端设备授时所对应的授时误差精度,Tt1为所述TNF网元的时钟为所述第一接入网网元授时的时延,Tt2为所述TNF网元的时钟为所述第二接入网网元授时的时延。
  25. 一种通信装置,其特征在于,包括处理器,所述处理器和存储器耦合,所述存储器中存储有计算机程序;所述处理器用于调用所述存储器中的计算机程序,使得所述通信装置执行如权利要求1至12任一所述的方法。
  26. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序或指令,当所述计算机程序或指令被计算机执行时,实现如权利要求1至12中任一项所述方法。
  27. 一种计算机程序产品,其特征在于,当计算机读取并执行所述计算机程序产品时,使得所述计算机执行权利要求1至12中任一项所述的方法。
PCT/CN2022/141866 2021-12-27 2022-12-26 一种通信方法及装置 WO2023125392A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111614166.9 2021-12-27
CN202111614166.9A CN116367185A (zh) 2021-12-27 2021-12-27 一种通信方法及装置

Publications (1)

Publication Number Publication Date
WO2023125392A1 true WO2023125392A1 (zh) 2023-07-06

Family

ID=86922218

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141866 WO2023125392A1 (zh) 2021-12-27 2022-12-26 一种通信方法及装置

Country Status (2)

Country Link
CN (1) CN116367185A (zh)
WO (1) WO2023125392A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109687931A (zh) * 2019-02-02 2019-04-26 北京邮电大学 用于移动网络的授时方法、设备及可读存储介质
CN111148211A (zh) * 2019-12-31 2020-05-12 京信通信系统(中国)有限公司 时钟同步方法、装置、计算机设备和存储介质
CN111865466A (zh) * 2020-07-10 2020-10-30 润电能源科学技术有限公司 时间同步方法、装置、被授时设备和存储介质
WO2021238685A1 (zh) * 2020-05-29 2021-12-02 华为技术有限公司 一种通信方法、装置及计算机可读存储介质
CN113746585A (zh) * 2020-05-28 2021-12-03 华为技术有限公司 授时方法和通信装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109687931A (zh) * 2019-02-02 2019-04-26 北京邮电大学 用于移动网络的授时方法、设备及可读存储介质
CN111148211A (zh) * 2019-12-31 2020-05-12 京信通信系统(中国)有限公司 时钟同步方法、装置、计算机设备和存储介质
CN113746585A (zh) * 2020-05-28 2021-12-03 华为技术有限公司 授时方法和通信装置
WO2021238685A1 (zh) * 2020-05-29 2021-12-02 华为技术有限公司 一种通信方法、装置及计算机可读存储介质
CN111865466A (zh) * 2020-07-10 2020-10-30 润电能源科学技术有限公司 时间同步方法、装置、被授时设备和存储介质

Also Published As

Publication number Publication date
CN116367185A (zh) 2023-06-30

Similar Documents

Publication Publication Date Title
WO2020220747A1 (zh) 一种tsn业务的处理方法、装置及系统
KR102648251B1 (ko) 클록 드리프트 프로세싱 방법, 네트워크 기능 네트워크 엘리먼트들, 및 저장 매체
WO2020221266A1 (zh) 一种通信方法及装置
WO2021017550A1 (zh) 一种事件报告的发送方法、装置及系统
US20220217505A1 (en) Message transmission method and apparatus
US20220272607A1 (en) Network Access Method and Communication Apparatus
WO2020220799A1 (zh) 一种通信方法、装置及系统
US20230171672A1 (en) Route configuration method and apparatus
US20220022099A1 (en) Communication method and communications apparatus
WO2020248709A1 (zh) 一种mdbv的确定方法、装置及系统
WO2023179238A1 (zh) 一种授时方法、通信装置及通信系统
WO2024032304A1 (zh) 一种时钟同步保证方法及装置
WO2022194262A1 (zh) 安全通信的方法和装置
WO2022222745A1 (zh) 一种通信方法及装置
WO2023125392A1 (zh) 一种通信方法及装置
WO2021134347A1 (zh) 资源分配方法、装置及系统
WO2023051620A1 (zh) 一种通信方法、通信装置及通信系统
WO2021088061A1 (zh) 通信方法及装置
WO2023104123A1 (zh) 一种通信方法、装置及设备
WO2023231465A1 (zh) 一种时间同步方法、通信装置及通信系统
WO2023231450A1 (zh) 一种时间同步方法及通信装置
WO2023061207A1 (zh) 一种通信方法、通信装置及通信系统
WO2023134431A1 (zh) 一种授时方法、通信装置及通信系统
WO2023082858A1 (zh) 确定移动性管理策略的方法、通信装置及通信系统
WO2023045741A1 (zh) 定位方法及装置、可读存储介质

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

Country of ref document: EP

Kind code of ref document: A1