Clock synchronization mode indication method and communication device

The method and device for indicating clock synchronization modes in 5G systems address inconsistent synchronization issues, ensuring effective communication and control in automotive and industrial networks by aligning synchronization modes across devices.

JP7540079B2Active Publication Date: 2024-08-26HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023510437
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-08-12
Publication Date
2024-08-26
Estimated Expiration
2040-08-12

AI Technical Summary

Technical Problem

The 5G communication systems face challenges in clock synchronization due to inconsistent clock synchronization modes, leading to incomplete communication and control between devices in automotive and industrial networks, particularly when using the IEEE 1588 protocol.

Method used

A method and device for indicating clock synchronization modes within a 5G communication system by a session management functional network element, which provides instruction information to terminal devices and user plane functional network elements to align their synchronization modes, using peer-to-peer, end-to-end transparent, or boundary clock types.

Benefits of technology

Ensures effective clock synchronization across devices in 5G systems, enabling seamless communication and control in automotive and industrial networks by aligning synchronization modes, thus facilitating consistent clock synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540079000004
    Figure 0007540079000004
  • Figure 0007540079000009
    Figure 0007540079000009
  • Figure 0007540079000010
    Figure 0007540079000010
Patent Text Reader

Abstract

The present application discloses a clock synchronization mode indication method and a communication device, which relate to the field of communications, for enabling a communication device in a 5G communication system to acquire a clock synchronization mode. The clock synchronization mode indication method includes: a session management function network element acquires first indication information, the first indication information indicating a clock synchronization mode used in a communication system in which a terminal device and a user plane function network element are located; and the session management function network element sends the first indication information to the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of communications, and in particular to a clock synchronization mode indication method and a communications device. [Background technology]

[0002] In fields such as automotive control and industrial Internet, there are strict clock synchronization requirements. When a fifth generation (5G) communication system is used in fields such as automotive control and industrial Internet, clock synchronization between a device in the 5G communication system (e.g., a terminal device or a user plane function (UPF) network element) and another device outside the 5G communication system may be implemented based on the IEEE 1588 protocol. However, the IEEE 1588 protocol currently supports multiple clock synchronization modes, and various deployment scenarios require the 5G communication system to support various clock synchronization modes. If the 5G communication system uses inconsistent clock synchronization modes, clock synchronization of an industrial network or automotive control network including the 5G communication system cannot be implemented, and basic communication and control between devices in the network cannot be implemented. Summary of the Invention [Means for solving the problem]

[0003] An embodiment of the present application provides a clock synchronization mode indication method and a communication apparatus, by which a communication device in a 5G communication system obtains a clock synchronization mode.

[0004] In order to achieve the aforementioned objectives, the following technical solutions are used in the embodiments of this application.

[0005] According to a first aspect, a clock synchronization mode indication method is provided, which includes: a session management function network element obtains first indication information, the first indication information indicating a clock synchronization mode used in a communication system in which a terminal device and a user plane function network element are located; The session management function network element sends the first indication information to the terminal device.

[0006] According to the clock synchronization mode indication method provided in this embodiment of the present application, the SMF network element obtains first indication information, and the first indication information indicates the clock synchronization mode used in the communication system in which the terminal device and the UPF network element are located, so that the terminal device and the UPF network element can process the PTP packet according to the first indication information (in other words, in different clock synchronization modes) to perform clock synchronization. In this way, the communication device in the 5G communication system obtains the clock synchronization mode.

[0007] In one possible implementation, the method further includes: the session management function network element obtains an identifier of the clock domain, and the identifier of the clock domain and the first indication information indicate a clock synchronization mode used in the clock domain by the communication system in which the terminal device and the user plane function network element are located. The session management function network element transmits the identifier of the clock domain to the terminal device. When the communication system in which the first communication device and the second communication device are located use multiple clock domains, the identifier of the clock domain is used to distinguish between different clock domains.

[0008] In one possible implementation, the method further includes the session management function network element sending an identifier of the clock domain to the user plane function network element. This implementation may be performed when the UPF network element does not configure the first indication information and the identifier of the clock domain, so that the UPF network element knows the specific clock domain corresponding to the first indication information.

[0009] In one possible implementation, the method further includes: the session management function network element sending the first indication information to the user plane function network element. This implementation may be performed when the UPF network element does not configure the first indication information.

[0010] In one possible embodiment, the method further includes: the session management function network element determines a fourth indication information based on the second indication information and the third indication information, the second indication information indicating a clock synchronization mode supported by the terminal device, the third indication information indicating a clock synchronization mode supported by the user plane function network element, and the fourth indication information indicating a clock synchronization mode supported by the session between the terminal device and the user plane function network element. The session management function network element sends the fourth indication information to the application function network element. To further determine the first indication information based on the fourth indication information, the application function network element may determine a clock synchronization mode supported by a communication system in which the first communication device and the second communication device are located.

[0011] In one possible embodiment, the method further includes: the session management function network element determines fifth indication information based on the second indication information and the third indication information, the second indication information indicating a clock synchronization mode supported by the terminal device, the third indication information indicating a clock synchronization mode supported by the user plane function network element, and the fifth indication information indicating a clock synchronization mode supported by a communication system in which the terminal device and the user plane function network element are located. The session management function network element sends the fifth indication information to the application function network element. The application function network element may determine the first indication information based on the fifth indication information.

[0012] In one possible embodiment, the method further includes: the session management function network element receiving second indication information from the terminal device. This embodiment provides a possible manner in which the SMF network element obtains the second indication information.

[0013] In one possible embodiment, the method further includes: the session management function network element receiving third indication information from the user plane function network element. This embodiment provides a possible method for the SMF network element to obtain the third indication information.

[0014] In one possible embodiment, the session management function network element sending the first indication information to the terminal device includes the session management function network element sending the first indication information to the terminal device in a protocol data unit (PDU) session establishment procedure. This embodiment provides a possible manner in which the SMF network element sends the first indication information to the terminal device.

[0015] In one possible embodiment, the session management function network element sending the first indication information to the terminal device includes the session management function network element sending the first indication information to the terminal device in a PDU session modification procedure. This embodiment provides another possible manner in which the SMF network element sends the first indication information to the terminal device.

[0016] In one possible embodiment, the clock synchronization mode includes a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type. In other words, the 5GS switching nodes, including the terminal devices and the UPF network elements, use a P2P TC, E2E TC, or BC clock synchronization mode.

[0017] According to a second aspect, a clock synchronization mode indication method is provided, including: a first communication device obtains first indication information, the first indication information indicates a clock synchronization mode used in a communication system in which the first communication device and the second communication device are located, the first communication device is a terminal device, and the second communication device is a user plane function network element, or the first communication device is a user plane function network element and the second communication device is a terminal device. The first communication device processes a Precision Time Protocol (PTP) packet according to the first indication information.

[0018] According to the clock synchronization mode indication method provided in this embodiment of the present application, a terminal device or a UPF network element obtains first indication information, and the first indication information indicates the clock synchronization mode used in the communication system in which the terminal device and the UPF network element are located, so that the terminal device and the UPF network element can process PTP packets according to the first indication information (in other words, in different clock synchronization modes) to perform clock synchronization. In this way, a communication device in a 5G communication system obtains a clock synchronization mode.

[0019] In one possible embodiment, the first communication device obtaining the first indication information includes the first communication device receiving the first indication information from a session management function network element. This embodiment provides a possible method for the first communication device to obtain the first indication information.

[0020] In one possible implementation, the method further includes the first communication device obtaining a clock domain identifier, the clock domain identifier and the first instruction information indicating a clock synchronization mode used within the clock domain by a communication system in which the first communication device and the second communication device are located. When the communication system in which the first communication device and the second communication device are located uses multiple clock domains, the clock domain identifier is used to distinguish between different clock domains, so that the first communication device and the second communication device know the particular clock domain corresponding to the first instruction information.

[0021] In one possible implementation, the first communication device obtaining the clock domain identifier includes the first communication device receiving the clock domain identifier from a session management function network element. This implementation provides a possible method by which the first communication device obtains the clock domain identifier.

[0022] In one possible implementation, the first communication device processing the Precision Time Protocol (PTP) packet based on the first indication information includes the first communication device processing the PTP packet based on the clock domain identifier and the first indication information. When the communication system in which the first communication device and the second communication device are located uses multiple clock domains, the first communication device processes the PTP packet based on the clock domain identifier and the first indication information, so that the first communication device knows the first configuration information of the corresponding clock domain.

[0023] In one possible embodiment, the first communication device is a terminal device, and the method further includes the first communication device sending the second indication information to the session management function network element in a protocol data unit (PDU) session establishment procedure, the second indication information indicating a clock synchronization mode supported by the first communication device. This embodiment provides a possible method in which the terminal device sends the second indication information to the SMF network element.

[0024] In one possible embodiment, the first communication device is a terminal device, and the method further includes: the first communication device sends second indication information to the access and mobility management function network element in a registration procedure, the second indication information indicating a clock synchronization mode supported by the first communication device. In this embodiment, the terminal device sends the second indication information to the UDM network element via the AMF network element.

[0025] In one possible embodiment, the first communication device is a user plane function network element, and the method further includes the first communication device sending the third indication information to the session management function network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure, where the third indication information indicates a clock synchronization mode supported by the first communication device. This embodiment provides several possible ways for the UPF network element to send the third indication information to the SMF network element.

[0026] In one possible embodiment, if the first indication information indicates that the clock synchronization mode is a peer-to-peer transparent clock type, the first communication device processes a precision time protocol PTP packet according to the first indication information, the first communication device receives a PTP packet from an upstream node in the communication system, updates a correction field or a suffix field of the PTP packet based on a PTP link delay between the first communication device and the upstream node, and sends the updated PTP packet to the second communication device, the PTP packet includes a synchronization packet or a follow-up packet corresponding to the synchronization packet, and the suffix field is for updating the correction field. This embodiment provides how the UPF network element and the terminal device process the PTP packet in a clock synchronization mode of a peer-to-peer transparent clock type to perform clock synchronization.

[0027] In one possible embodiment, the clock synchronization mode includes a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type. In other words, the 5GS switching nodes, including the terminal devices and the UPF network elements, use a P2P TC, E2E TC, or BC clock synchronization mode.

[0028] According to a third aspect, a communications apparatus is provided, comprising: a processing module configured to obtain first indication information, the first indication information indicating a clock synchronization mode to be used in a communications system in which a terminal device and a user plane function network element are located; and a transceiver module configured to transmit the first indication information to the terminal device.

[0029] In one possible implementation, the processing module is further configured to obtain an identifier of a clock domain, and the identifier of the clock domain and the first indication information indicate a clock synchronization mode used in the clock domain by a communication system in which the terminal device and the user plane function network element are located. The transceiver module is further configured to transmit the identifier of the clock domain to the terminal device.

[0030] In one possible implementation, the transceiver module is further configured to transmit an identifier of the clock domain to the user plane function network element.

[0031] In one possible implementation, the transceiver module is further configured to send the first indication information to the user plane function network element.

[0032] In one possible implementation, the processing module is further configured to determine fourth indication information based on the second indication information and the third indication information, the second indication information indicating a clock synchronization mode supported by the terminal device, the third indication information indicating a clock synchronization mode supported by the user plane function network element, and the fourth indication information indicating a clock synchronization mode supported by a session between the terminal device and the user plane function network element. The transceiver module is further configured to send the fourth indication information to the application function network element.

[0033] In one possible implementation, the processing module is further configured to determine fifth indication information based on the second indication information and the third indication information, the second indication information indicating a clock synchronization mode supported by the terminal device, the third indication information indicating a clock synchronization mode supported by the user plane function network element, and the fifth indication information indicating a clock synchronization mode supported by a communication system in which the terminal device and the user plane function network element are located. The transceiver module is further configured to send the fifth indication information to the application function network element.

[0034] In one possible implementation, the transceiver module is further configured to receive second indication information from the terminal device.

[0035] In one possible implementation, the transceiver module is further configured to receive third indication information from the user plane function network element.

[0036] In one possible embodiment, the transceiver module is specifically configured to transmit the first indication information to the terminal device in a protocol data unit (PDU) session establishment procedure.

[0037] In one possible embodiment, the transceiver module is specifically configured to send the first indication information to the terminal device in a PDU session modification procedure.

[0038] In one possible embodiment, the clock synchronization mode includes a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type.

[0039] According to a fourth aspect, a first communication device is provided, including a processing module configured to obtain first indication information, the first indication information indicating a clock synchronization mode used in a communication system in which the first communication device and the second communication device are located, the first communication device being a terminal device and the second communication device being a user plane function network element, or the first communication device being a user plane function network element and the second communication device being a terminal device. The processing module is further configured to process a Precision Time Protocol (PTP) packet based on the first indication information.

[0040] In one possible implementation, the apparatus further includes a transceiver module configured to receive the first indication information from the session management function network element.

[0041] In one possible implementation, the processing module is further configured to obtain an identifier of the clock domain, and the identifier of the clock domain and the first instruction information indicate a clock synchronization mode used within the clock domain by a communication system in which the first communication device and the second communication device are arranged.

[0042] In one possible implementation, the apparatus further includes a transceiver module configured to receive an identifier of the clock domain from the session management function network element.

[0043] In one possible implementation, the processing module is configured to process the PTP packet based on the identifier of the clock domain and the first indication information.

[0044] In one possible embodiment, the first communication device is a terminal device, and the first communication device further includes a transceiver module configured to send second indication information to a session management function network element in a protocol data unit (PDU) session establishment procedure, the second indication information indicating a clock synchronization mode supported by the first communication device.

[0045] In one possible implementation, the first communication device is a terminal device, and the first communication device further includes a transceiver module configured to send second indication information to the access and mobility management function network element in the registration procedure, the second indication information indicating a clock synchronization mode supported by the first communication device.

[0046] In one possible embodiment, the first communication device is a user plane function network element, and the first communication device further includes a transceiver module configured to send third indication information to the session management function network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure, wherein the third indication information indicates a clock synchronization mode supported by the first communication device.

[0047] In one possible embodiment, if the first indication information indicates that the clock synchronization mode is a peer-to-peer transparent clock type, the first communication device further includes a transceiver module. The transceiver module is configured to receive a PTP packet from an upstream node in the communication system. The processing module is configured to update a correction field or a suffix field of the PTP packet based on a PTP link delay between the first communication device and the upstream node. The transceiver module is further configured to send the updated PTP packet to the second communication device, the PTP packet including a synchronization packet or a follow-up packet corresponding to the synchronization packet, and the suffix field is for updating the correction field.

[0048] In one possible embodiment, the clock synchronization mode includes a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type.

[0049] According to a fifth aspect, there is provided a communications apparatus, comprising a processor, connected to a memory, the memory configured to store a computer program, and the processor configured to execute the computer program stored in the memory, thereby enabling the communications apparatus to perform the method according to the first aspect and any one of the implementations of the first aspect.

[0050] According to a sixth aspect, there is provided a communications apparatus, comprising a processor, connected to a memory, the memory configured to store a computer program, and the processor configured to execute the computer program stored in the memory, thereby enabling the communications apparatus to perform the method according to the second aspect and any one of the implementations of the second aspect.

[0051] According to a seventh aspect, there is provided a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed on a computer, the computer is enabled to perform the method according to the first aspect and any one of the embodiments of the first aspect.

[0052] According to an eighth aspect, there is provided a computer readable storage medium. The computer readable storage medium stores a computer program. When the computer program is executed on a computer, the computer is enabled to perform the method according to the second aspect and any one of the embodiments of the second aspect.

[0053] According to a ninth aspect, there is provided a computer program product comprising instructions which, when executed on a computer or processor, enable the computer or processor to perform a method according to the first aspect and any one of the implementations of the first aspect.

[0054] According to a tenth aspect, there is provided a computer program product comprising instructions which, when executed on a computer or processor, enable the computer or processor to perform a method according to the second aspect and any one of the implementations of the second aspect.

[0055] According to an eleventh aspect, there is provided a communication system including a communication device according to the third aspect and any one of the third aspect and a first communication device according to the fourth aspect and any one of the fourth aspect, or including a communication device according to the fifth aspect and a communication device according to the sixth aspect.

[0056] For the technical effects of the third to eleventh aspects, please refer to the contents of the first and second aspects, and the details will not be repeated here. [Brief description of the drawings]

[0057] [Figure 1a] FIG. 1 is a schematic diagram of the architecture of a 5G communication system according to an embodiment of the present application. [Figure 1b] FIG. 1 is a schematic architecture diagram of a TSN network according to an embodiment of the present application. [Figure 1c] FIG. 1 is a schematic architecture diagram of an industrial network according to an embodiment of the present application. [Diagram 2] FIG. 2 is a schematic diagram of an edge delay measurement mechanism according to an embodiment of the present application; [Diagram 3] FIG. 1 is a schematic diagram of a clock synchronization mode indication method according to an embodiment of the present application; [Figure 4] FIG. 2 is a schematic diagram of a clock synchronization mode indication method according to an embodiment of the present application; [Diagram 5] FIG. 3 is a schematic diagram of a clock synchronization mode indication method according to an embodiment of the present application; [Figure 6] FIG. 4 is a schematic diagram of a clock synchronization mode indication method according to an embodiment of the present application; [Figure 7A]FIG. 5 is a schematic diagram of a clock synchronization mode indication method according to an embodiment of the present application; [Figure 7B] FIG. 5 is a schematic diagram of a clock synchronization mode indication method according to an embodiment of the present application; [Figure 8A] FIG. 6 is a schematic diagram of a clock synchronization mode indication method according to an embodiment of the present application. [Figure 8B] FIG. 6 is a schematic diagram of a clock synchronization mode indication method according to an embodiment of the present application. [Figure 9A] FIG. 7 is a schematic diagram of a clock synchronization mode indication method according to an embodiment of the present application. [Figure 9B] FIG. 7 is a schematic diagram of a clock synchronization mode indication method according to an embodiment of the present application. [Figure 9C] FIG. 7 is a schematic diagram of a clock synchronization mode indication method according to an embodiment of the present application. [Figure 10] 1 is a schematic diagram of the structure of a communication device according to an embodiment of the present application; [Figure 11] 1 is a schematic diagram of the structure of another communication device according to an embodiment of the present application; [Figure 12] 13 is a schematic diagram of the structure of yet another communication device according to an embodiment of the present application; [Figure 13] 13 is a schematic diagram of the structure of yet another communication device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0058] Terms such as "component," "module," and "system" as used in this application refer to computer-related entities. The computer-related entities may be hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to, a process running on a processor, a processor, an object, an executable file, a thread of execution, a program, and / or a computer. In one example, both a computing device and an application running on a computing device may be a component. One or more components may reside within a process and / or thread of execution, and a component may be located on one computer and / or distributed among two or more computers. Additionally, these components may execute from various computer-readable media with various data structures. These components may communicate by using local and / or remote processes and based on signals having, for example, one or more data packets (e.g., data from one component that interacts with another component in a local or distributed system and / or interacts with another system over a network such as the Internet via signals).

[0059] The embodiments of the present application may be applied to a time division duplexing (TDD) scenario, or a frequency division duplexing (FDD) scenario.

[0060] The embodiment of the present application is described by using the scenario of a fifth generation (5G) network in a wireless communication network. It should be noted that the solution of the embodiment of the present application may also be applied to another wireless communication network, and the corresponding name may be replaced with the name of the corresponding function in another wireless communication network.

[0061] FIG. 1a provides a communication system architecture including a terminal device 101, a (radio) access network ((R)AN) network element 102, a user plane function (UPF) network element 103, a data network (DN) 104, an access and mobility management function (AMF) network element 105, a session management function (SMF) network element 106, a policy control function (PCF) network element 107, a unified data management (UDM) network element 108, an application function (AF) network element 109, and a network exposure function (NEF) network element 110.

[0062] It should be noted that the names of the interfaces between the network elements in FIG. 1a are merely examples, and in certain embodiments, the interface names may be other names. This is not limited. For example, the interface between the terminal device 101 and the AMF network element 105 is an N1 interface, the interface between the RAN network element 102 and the AMF network element 105 is an N2 interface, the interface between the RAN network element 102 and the UPF network element 103 is an N3 interface, the interface between the UPF network element 103 and the SMF network element 106 is an N4 interface, the interface between the PCF network element 107 and the AF network element 109 is an N5 interface, the interface between the UPF network element 103 and the DN 104 is an N6 interface, the interface between the SMF network element 106 and the PCF network element 107 is an N7 interface, and the interface between the AMF network element 105 and the DN 104 is an N8 interface. The interface between the AMF network element 105 and the UDM network element 108 is an N8 interface, the interface between the UPF network element 103 and the UPF network element 103 is an N9 interface, the interface between the SMF network element 106 and the UDM network element 108 is an N10 interface, the interface between the AMF network element 105 and the SMF network element 106 is an N11 interface, the interface between the UDM network element 108 and the NEF network element 110 is an N52 interface, the interface between the NEF network element 110 and the PCF network element 107 is an N30 interface, and the interface between the NEF network element 110 and the AF network element 109 is an N33 interface.

[0063] The terminal device 101 is also called user equipment (UE), mobile station (MS), mobile terminal (MT), etc., and is a device that provides voice and / or data connectivity to a user. For example, the terminal device 101 is a handheld device or an in-vehicle device with wireless connection capabilities. Currently, for example, the terminal device is a mobile phone, a tablet, a notebook computer, a palmtop computer, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal for industrial control, a wireless terminal for self driving, a wireless terminal for remote medical surgery, a wireless terminal for smart grid, a wireless terminal for transportation safety, a wireless terminal for smart city, or a wireless terminal for smart home.

[0064] The RAN network element 102 is a device that provides wireless access to the terminal device 101, and includes, but is not limited to, next generation radio access networks (NG-RAN), next generation NodeBs (gNodeBs, gNBs), wireless fidelity (Wi-Fi) access points, world interoperability for microwave access (WiMAX) base stations, and the like.

[0065] The UPF network element 103 is primarily responsible for processing user packets, such as forwarding and billing the user packets.

[0066] The DN 104 refers to a carrier network that provides data transmission services for users, such as IP multi-media service (IMS) or Internet. The terminal device 101 accesses the DN 104 by establishing a protocol data unit (PDU) session between the terminal device 101, the RAN network element 102, the UPF network element 103, and the DN 104.

[0067] The AMF network element 105 is primarily responsible for mobility management within a mobile network, such as user location update, user registration to the network, and user switching.

[0068] The SMF network element 106 is primarily responsible for session management within the mobile network, such as session establishment, modification, and release, etc. Specific functions include, for example, allocating an internet protocol (IP) address to a user, or selecting a UPF network element that provides packet forwarding functionality.

[0069] The PCF network element 107 is responsible for providing policies, such as QoS policies or slice selection policies, for the AMF and SMF network elements.

[0070] The UDM network element 108 is configured to store user data such as subscription information and authentication / authorization information.

[0071] The AF network element 109, also called a server, is responsible for providing services to the 3GPP network, interacting with the PCF network elements to perform policy control, for example influencing service routing.

[0072] The NEF network element 110 is responsible for the separation of internal and external networks and is used for exposing network capabilities including exposing monitoring capabilities, policy / charging capabilities, analysis reporting capabilities, etc.

[0073] The 5G system (5GS) defines a TSN network architecture shown in Figure 1b to support interworking with a time sensitive network (TSN) system. The TSN system is based on Layer 2 transmission and includes a TSN switching node (also called a TSN Bridge) and a TSN endpoint (end station or endpoint). The 5GS is simulated as a TSN switching node to implement the function of a TSN switching node to implement end-to-end deterministic transmission on a TSN network including the 5GS and the TSN system. Different from the existing TSN switching node, the switching node simulated by the 5GS is called a 5GS switching node.

[0074] The AF network element adapts information about 5GS to information about TSN switching nodes, interacts with the centralized user configuration (CNC) of the TSN system, and transmits configuration information distributed by the CNC of the 5GS switching node to the user plane function device of the 5GS switching node via the control plane function network element of the 5GS switching node (such as a PCF network element or an SMF network element). The device-side TSN translator (DS-TT) 110 and the network-side TSN translator (NW-TT) 111 are logical function devices of the 5GS user plane and are configured to perform external functions of the TSN switching node, such as topology discovery and CNC scheduling rule enforcement. The DS-TT may be deployed together with the terminal device or independently. Similarly, the NW-TT may be deployed together with the UPF network element or independently.

[0075] In addition to the TSN system, the 5GS may communicate with other industrial systems to form an industrial network. These industrial systems may also support industrial communication protocols other than TSN, such as the process field net (Profinet) protocol and the Ethernet for control automation technology (EtherCAT) protocol. In this case, the 5GS is simulated as a switching node in the industrial network and performs clock synchronization with other industrial systems in the industrial network. The protocol support scheme of the 5GS is similar to that of the TSN, and the switching node simulated by the 5GS is called a 5GS switching node.

[0076] As shown in FIG. 1c, an embodiment of the present application provides an architecture of an industrial network including a 5GS switching node and another industrial system (e.g., an industrial switching node or an industrial terminal) in the industrial network. In the user plane, each 5GS switching node includes at least a terminal device and a UPF network element, further includes a RAN network element (not shown) used for communication between the terminal device and the UPF network element, and optionally further includes one or more DS-TTs and NW-TTs. The DS-TTs and NW-TTs are responsible for protocol conversion and interworking between the 5GS and another industrial network. One 5GS switching node may include one or more PDU sessions. When one 5GS switching node includes multiple PDU sessions, the multiple PDU sessions may be multiple PDU sessions of one terminal device or multiple PDU sessions of different terminal devices.

[0077] It should be noted that in this application, the UPF network element may be integrated with the NW-TT, and the terminal device may be integrated with the DS-TT. The following description of the UPF network element may be replaced with the description of the NW-TT, and the following description of the terminal device may be replaced with the description of the DS-TT.

[0078] A common clock synchronization protocol is the IEEE 1588 protocol, also known as the precision time protocol (PTP). PTP packets (also known as PTP messages) used to implement clock synchronization are of two types: Event packets, which need to be accurately time-stamped when they are received and transmitted, including synchronization (Sync) packets, delay request (Delay_Req) ​​packets, peer delay request (Pdelay_Req) ​​packets, and peer delay request response (Pdelay_Resp) packets; General packets, which do not require precise timestamps to be recorded when the packets are received and transmitted, including Announce packets, Follow_Up packets, Delay_Resp packets, Peer Delay_Resp_Follow_Up packets, management packets, and signaling packets.

[0079] PTP has two types of clocks: one-step clocks and two-step clocks. In the case of one-step clocks, the Sync packet carries a timestamp generated when the packet leaves the Master node, and the Follow_Up packet is not used. In the case of two-step clocks, the Sync packet does not carry a timestamp generated when the packet leaves the Master node, and the Follow_Up packet corresponding to the Sync packet carries a timestamp. In the case of one-step clocks, the Peer Delay Request Response (Pdelay_Resp) packet carries a timestamp generated when the packet leaves the Master node, and the Peer Delay Request Response (Pdelay_Resp_Follow_Up) packet is not used. In the case of a two-step clock, the Peer Delay Request Response (Pdelay_Resp) packet does not carry a timestamp that is generated when the packet leaves the master node; the timestamp is carried in the Peer Delay Request Response Follow Up (Pdelay_Resp_Follow_Up) packet.

[0080] The 1588 protocol supports five types of nodes in different clock synchronization modes: ordinary clock (OC) node, boundary clock (BC) node, end to end transparent clock (E2E TC) node, peer to peer transparent clock (P2P TC) node, and management node. The five node types are also called five PTP device types.

[0081] A BC node is a node that supports the clock synchronization mode of BC and has multiple PTP ports in the same clock domain for clock synchronization. A BC node performs clock synchronization with an upstream node through one port and reports the time to downstream nodes through another port. In addition, a node supporting this type may also act as a clock source and report the time to downstream nodes through multiple PTP ports.

[0082] An E2E TC node does not need to perform clock synchronization with other nodes. An E2E TC node only forwards PTP packets between multiple ports and compensates for its forwarding delay based on the residence time of the Sync packet in the PTP protocol at the E2E TC node. An E2E TC node does not perform clock synchronization through any of its ports and does not calculate the delay of each link segment.

[0083] P2P TC nodes directly forward Sync, Follow_Up, and Announce packets, but do not forward other PTP packets, and are also involved in calculating the delay of each link segment across the link. P2P TC nodes measure the delay of each link segment in the Peer Delay measurement mechanism.

[0084] In the case of a one-step P2P TC node, the link delay is added to the correction field in the Sync packet, i.e., the value of the link delay plus the value of the correction field in the Sync packet is used as the value of the new correction field, and the correction field in the Sync packet is updated. At the egress port of the P2P TC node, the residence time of the Sync packet at the P2P TC node is added to the correction field in the Sync packet, i.e., the value of the residence time of the Sync packet at the P2P TC node plus the value of the correction field in the Sync packet is used as the value of the new correction field, and the correction field in the Sync packet is updated. It should be noted that before the link delay or dwell time value is added to the correctionField value, the link delay or dwell time unit and number system must be converted to the same unit and number system of the correctionField, e.g., the unit is converted to nanoseconds and the number system is converted to hexadecimal.

[0085] For a two-step P2P TC node, the link delay is added to the correction field in the Follow_Up packet corresponding to the Sync packet, in other words, the value of the link delay plus the value of the correction field in the Follow_Up packet corresponding to the Sync packet is used as the value of the new correction field, and the correction field in the Follow_Up packet corresponding to the Sync packet is updated. At the egress port of the P2P TC node, the residence time of the Sync packet at the P2P TC node is added to the correction field in the Follow_Up packet, in other words, the value of the residence time of the Sync packet at the P2P TC node plus the value of the correction field in the Follow_Up packet corresponding to the Sync packet is used as the value of the new correction field, and the correction field in the Follow_Up packet corresponding to the Sync packet is updated. Similarly, before the value of the link delay or residence time is added to the value of the correction field, the unit and number system of the link delay or residence time must be converted to the same unit and number system of the correction field. For example, the unit is converted to nanoseconds and the number system is converted to hexadecimal.

[0086] FIG. 2 shows the Peer Delay measurement mechanism. Node A and Node B measure the link delay T LTo obtain the time stamp information, the peers transfer time stamp information to each other based on the Peer Delay Request (Pdelay_Req) ​​packet, the Peer Delay Request Reply (Pdelay_Resp) packet, or the Peer Delay Request Reply Follow-Up (Pdelay_Resp_Follow_Up) packet. L =((t 2 -t 1 )+(t 4 -t 3 )) / 2, where t 1 is the time when the peer delay request (Pdelay_Req) ​​packet leaves node A's port, and t 2 is the time when the node B port receives the peer delay request (Pdelay_Req) ​​packet, and t 3 is the time when the Peer Delay Request Response (Pdelay_Resp) packet leaves the port of Node B, and t 4 is the time when node A's port receives the Peer Delay Request Response (Pdelay_Resp) packet. In the case of a one-step clock, no Peer Delay Request Response Follow-Up (Pdelay_Resp_Follow_Up) packet is required, and t 2 and t 3 is carried in the Peer Delay Request Response (Pdelay_Resp) packet. For a two-step clock, t 2 and t 3 It is carried in the Peer Delay Request Response Follow-Up (Pdelay_Resp_Follow_Up) packet.

[0087] An OC node provides only one port that supports the 1588 protocol. The port can only be a master port or a slave port. Thus, an OC node can only be used as a device-side node and cannot be used as an intermediate node in a synchronization domain.

[0088] A management node is a node capable of processing PTP management messages and may be used with nodes supporting BC, OC, E2E TC, or P2P TC. In other words, a node may support clock synchronization modes of BC, OC, E2E TC, or P2P TC and also have management node capabilities.

[0089] The differences between the E2E TC, P2P TC, and BC clock synchronization modes are as follows:

[0090] When a node is in E2E TC mode, the local clock does not need to be calibrated, only the correction field in the Sync packet, or the correction field in the Follow_Up packet corresponding to the Sync packet, needs to be modified based on the residence time of the Sync packet at the node.

[0091] When a node is in P2P TC mode, the local clock does not need to be calibrated, only the correction field in the Sync packet, or the correction field in the Follow_Up packet corresponding to the Sync packet, needs to be modified based on the residence time of the Sync packet at the node and the measured link delay between the node and the peer node.

[0092] When a node is in BC mode, after receiving a synchronization (Sync) packet from the previous hop master node, the node needs to calibrate its local clock to perform clock synchronization with the master node. In addition, the node, as the master node, generates a new synchronization (Sync) packet and sends the packet to the next hop slave node, so that the next hop slave node performs clock synchronization with the node.

[0093] In a scenario where a 5GS switching node, including a terminal device, a UPF network element, etc. in a 5GS is still located in another communication system and needs to perform clock synchronization with a communication device in the other communication system, an embodiment of the present application provides a clock synchronization mode indication method. The SMF network element sends first indication information to the terminal device (optionally, further sends the first indication information to the UPF network element). The first indication information indicates the clock synchronization mode used in the communication system in which the terminal device and the UPF network element are located. In this way, the terminal device and the UPF network element can process a precision time protocol (PTP) packet based on the first indication information to implement clock synchronization in the communication system.

[0094] As shown in FIG. 3, an embodiment of the present application provides a clock synchronization mode indication method, which includes the following steps.

[0095] S301: An SMF network element obtains first indication information.

[0096] The first indication information indicates a clock synchronization mode used in a communication system in which the first communication device and the second communication device are located. The first communication device is a terminal device and the second communication device is a UPF network element, or the first communication device is a UPF network element and the second communication device is a terminal device. In other words, the first indication information indicates a clock synchronization mode used in a communication system in which the terminal device and the UPF network element are located.

[0097] As shown in Figure 1b or Figure 1c, the communication system in which the first communication device and the second communication device (i.e., the terminal device and the UPF network element) are located refers to a 5GS switching node including the first communication device and the second communication device (i.e., the terminal device and the UPF network element).

[0098] The clock synchronization modes include the above-mentioned Peer-to-Peer Transparent Clock (P2P TC) type, End-to-End Transparent Clock (E2E TC) type, and Boundary Clock (BC) type. In other words, an SMF network element can know the clock synchronization mode of P2P TC, E2E TC, or BC currently used by 5GS switching nodes, including terminal devices and UPF network elements.

[0099] Optionally, when the communication system in which the first communication device and the second communication device are located uses multiple clock domains, the SMF network element may further obtain a clock domain identifier (Clock Domain ID). The clock domain identifier and the first indication information indicate a clock synchronization mode used in the clock domain by the communication system in which the first communication device and the second communication device are located. In other words, the clock domain identifier and the first indication information indicate a clock synchronization mode used in a specific clock domain by the communication system in which the terminal device and the UPF network element are located.

[0100] A clock domain may also be referred to as a PTP domain. A PTP domain includes multiple PTP devices, which communicate with each other based on the protocol specification. A PTP device may participate in multiple clock domains, and each clock domain is distinguished by using a clock domain identifier. Both the 5GS switching node and the switching node in the industrial network of FIG. 1c may be used as PTP devices and generate or process PTP packets according to the 1588 protocol or the PTP protocol.

[0101] The PTP device processes PTP messages from multiple clock domains independently. In other words, the PTP device may support different clock synchronization modes in different clock domains (in other words, the PTP device functions as a node supporting different clock synchronization modes). Therefore, when the communication system (i.e., 5GS switching node) in which the first communication device and the second communication device are located supports multiple clock domains, the identifier of the clock domain and the first indication information should both indicate the clock synchronization mode used in the communication system. The first communication device and the second communication device may determine the identifier of the clock domain based on the domain number carried in the PTP packet.

[0102] The following describes how the SMF network element obtains the first indication information (and the optional identifier of the clock domain).

[0103] In one possible implementation, the SMF network element may pre-configure or store the first indication information (and optional identifiers of clock domains). Specifically, the SMF network element may configure the clock synchronization mode to be used by the 5GS switching node for each clock domain, and the SMF network element may obtain the first indication information (and optional identifiers of clock domains) by querying the configuration information.

[0104] In another possible embodiment, the SMF network element may obtain the first indication information (and the optional identifier of the clock domain) from the AF network element via the PCF network element. For how the AF network element determines the first indication information (and the optional identifier of the clock domain), please refer to the description of Figure 4.

[0105] For example, the SMF network element obtains the first indication information (and an optional identifier of the clock domain) from the AF network element via the PCF network element. For example, the AF network element transmits the first indication information (and an optional identifier of the clock domain) to the PCF network element based on the AF request message. In one method, the AF network element may directly transmit the AF request message to the PCF network element, and the SMF network element obtains the first indication information (and an optional identifier of the clock domain) from the PCF network element. In another method, the AF network element transmits the AF request message to the NEF network element, and the NEF network element forwards the AF request message to the PCF network element, and the SMF network element obtains the first indication information (and an optional identifier of the clock domain) from the PCF network element.

[0106] In yet another possible embodiment, the UPF network element pre-configures or stores the first indication information (and optional identifier of the clock domain). Specifically, the UPF network element may configure the clock synchronization mode to be used by the 5GS switching node for each clock domain, and the SMF network element may obtain the first indication information (and optional identifier of the clock domain) from the UPF network element. In one method, the UPF network element may send the first indication information (and optional identifier of the clock domain) to the SMF network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure. Correspondingly, the SMF network element may obtain the first indication information (and optional identifier of the clock domain) from the UPF network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure.

[0107] For example, for an N4 association setup procedure, the SMF network element sends an N4 Association Setup Request message to the UPF network element, and the UPF network element sends an N4 Association Setup Response message to the SMF network element, the message including the first indication information (and an optional identifier of the clock domain).

[0108] For example, for an N4 session establishment procedure, the SMF network element sends an N4 Session Establishment Request message to the UPF network element, and the UPF network element sends an N4 Session Establishment Response message to the SMF network element, the message including the first indication information (and an optional identifier of the clock domain).

[0109] For example, in the case of an N4 session modification procedure, the SMF network element sends an N4 Session Modification Request message to the UPF network element, and the UPF network element sends an N4 Session Modification Response message to the SMF network element, the message including the first indication information (and an optional identifier of the clock domain).

[0110] In yet another possible embodiment, the UDM network element pre-configures or stores the first indication information (and optional identifier of the clock domain). Specifically, the UDM network element may configure the clock synchronization mode to be used by the 5GS switching node for each clock domain, and the SMF network element may obtain the first indication information (and optional identifier of the clock domain) from the UDM network element. In one method, the SMF network element may obtain the first indication information (and optional identifier of the clock domain) from the UDM network element in a PDU session establishment procedure.

[0111] The SMF network element sends a subscription data management get (Nudm_SDM_Get) request message to the UDM network element, and the UDM network element sends a subscription data management get (Nudm_SDM_Get) response message to the SMF network element, the message including the first indication information (and an optional identifier of the clock domain).

[0112] S302: The SMF network element sends first indication information to the first communication device.

[0113] In response, the first communication device receives first indication information from the SMF network element.

[0114] Optionally, the SMF network element may further transmit the identifier of the clock domain to the first communication device, and in response, the first communication device receives the identifier of the clock domain from the session management function network element.

[0115] In one possible embodiment, the first communication device is a terminal device, and the SMF network element transmits the first indication information (and the optional identifier of the clock domain) to the terminal device. In response, the terminal device receives the first indication information (and the optional identifier of the clock domain) from the SMF network element. In one method, the SMF network element transmits the first indication information (and the optional identifier of the clock domain) to the terminal device in a PDU session establishment procedure. In response, the terminal device receives the first indication information (and the optional identifier of the clock domain) from the SMF network element in a PDU session establishment procedure. In another method, the SMF network element transmits the first indication information (and the optional identifier of the clock domain) to the terminal device in a PDU session modification procedure. In response, the terminal device receives the first indication information (and the optional identifier of the clock domain) from the SMF network element in a PDU session modification procedure.

[0116] For example, in the case of a PDU session establishment procedure, the terminal device sends a PDU Session Establishment Request message to the SMF network element, and the SMF network element sends a PDU Session Establishment Accept message to the terminal device. The message includes the first indication information (and an optional identifier of the clock domain).

[0117] For example, in the case of a PDU session modification procedure, the terminal device sends a PDU Session Modification Request message to the SMF network element, and the SMF network element sends a PDU Session Modification Command message to the terminal device, the message including the first indication information (and an optional identifier of the clock domain).

[0118] In another possible embodiment, the first communication device is a UPF network element, and the SMF network element sends the first indication information (and an optional identifier of the clock domain) to the UPF network element. In response, the UPF network element receives the first indication information (and an optional identifier of the clock domain) from the SMF network element. The SMF network element sends the first indication information to the UPF network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure. In response, the UPF network element receives the first indication information from the SMF network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure.

[0119] For example, in the case of an N4 association setup procedure, the SMF network element sends an N4 association setup request message to the UPF network element, the message including the first indication information (and an optional identifier of the clock domain), and the UPF network element sends an N4 association setup response message to the SMF network element.

[0120] For example, in the case of an N4 session establishment procedure, the SMF network element sends an N4 session establishment request message to the UPF network element, where the message includes the first indication information (and an optional identifier of the clock domain). The UPF network element sends an N4 session establishment response message to the SMF network element.

[0121] For example, in the case of an N4 session modification procedure, the SMF network element sends an N4 session modification request message to the UPF network element, where the message includes the first indication information (and an optional identifier of the clock domain). The UPF network element sends an N4 session modification response message to the SMF network element.

[0122] It should be noted that if the UPF network element pre-configures or stores the first instruction information (and the optional identifier of the clock domain) and in step S301 the SMF network element obtains the first instruction information (and the optional identifier of the clock domain) from the UPF network element, the SMF network element may not send the first instruction information (or the optional identifier of the clock domain) to the UPF network element in step S302.

[0123] S303: The first communication device obtains first indication information.

[0124] Optionally, the first communication device may further obtain an identifier of the clock domain.

[0125] As described in step S302, if the first communication device is a UPF network element, the UPF network element may pre-configure or store the first indication information (and the optional identifier of the clock domain). The UPF network element may obtain the first indication information (and the optional identifier of the clock domain) by querying the configuration.

[0126] In another case, for example, the first communication device is a terminal device or the first communication device is a UPF network element, but does not pre-configure or store the first indication information (or the optional identifier of the clock domain), and the first communication device may receive the first indication information (and the optional identifier of the clock domain) from an SMF network element.

[0127] S304: The first communication device processes the PTP packet based on the first indication information.

[0128] For information on PTP packets, see the above explanation.

[0129] When the communication system in which the first communication device and the second communication device are located uses one clock domain, the first communication device may directly process the PTP packet based on the first indication information.

[0130] Optionally, when the communication system in which the first communication device and the second communication device are located uses multiple clock domains, the first communication device processes the PTP packet according to the clock domain identifier and the first indication information. In other words, after receiving the PTP packet, the first communication device checks the clock domain identifier according to the domain number in the PTP packet to determine the clock synchronization mode used in the clock domain according to the first indication information.

[0131] In one possible embodiment, if the first indication information indicates that the clock synchronization mode is a Peer-to-Peer Transparent Clock (P2P TC) type, the first communication device (used as a slave node for clock synchronization in this case) receives a PTP packet from an upstream node (also called a previous hop node or a master node) in the communication system, and updates a correction field or a suffix field of the PTP packet based on a PTP link delay between the first communication device and the upstream node. The first communication device (used as a master node for clock synchronization in this case) sends the updated PTP packet to the second communication device (used as a slave node for clock synchronization in this case), where the PTP packet includes a Sync packet or a Follow up packet corresponding to the Sync packet, and the Suffix Field is for updating the correction field.

[0132] When the first communication device updates the suffix field of the PTP packet, after receiving the updated PTP packet, the second communication device updates the correction field of the PTP packet based on the suffix field and residence time of the synchronization packet in the 5G communication system. If there is a downstream node (also called a next hop node or a slave node) of the communication system, the second communication device transmits the updated PTP packet to the downstream node of the communication system.

[0133] When the first communication device updates the correction field (correctionField) of the PTP packet, after receiving the updated PTP packet, the second communication device updates the correction field (correctionField) of the PTP packet based on the residence time of the synchronization (Sync) packet in the 5G communication system.

[0134] In another possible embodiment, if the first indication information indicates that the clock synchronization mode is an end-to-end transparent clock (E2E TC) type, the first communication device receives a synchronization (Sync) packet sent by an upstream node, and determines the exact time t a The first communication device records the exact time t that the Sync packet was received, includes the time in a suffix field of the Sync packet, and transmits the time to the second communication device, or the first communication device includes the time in a suffix field of a follow up packet corresponding to the Sync packet, and transmits the time to the second communication device. The second communication device records the exact time t that the Sync packet was received, b The residence time (t b -t a) and add the residence time to the correction field of the Sync packet or the follow-up packet corresponding to the Sync packet, and add the t a Delete.

[0135] In this case, adding the dwell time to the correction field of a Sync packet or to a Follow Up packet corresponding to a Sync packet refers to increasing the value of the correction field of the Sync packet by the value of the dwell time as the new correction field value and updating the correction field of the Sync packet, or increasing the value of the correction field of the Follow Up packet corresponding to the Sync packet by the value of the dwell time as the new correction field value and updating the correction field of the Follow Up packet.

[0136] In yet another possible embodiment, when the first indication information indicates that the clock synchronization mode is a boundary clock (BC) type, the first communication device receives a synchronization (Sync) packet sent by an upstream node, and determines the exact time t a The first communication device records the exact time t that the Sync packet was received, includes the time in a suffix field of the Sync packet, and transmits the time to the second communication device, or the first communication device includes the time in a suffix field of a follow up packet corresponding to the Sync packet, and transmits the time to the second communication device. The second communication device records the exact time t that the Sync packet was received, bThe residence time (t b -t a ), and the second communication device obtains the frequency ratio (rateRatio) in the Sync packet or the follow-up packet corresponding to the Sync packet, and converts the residence time based on the frequency ratio (i.e., rateRatio*(t b -t a ) and add the converted dwell time to the correction field of the Sync packet or the follow-up packet corresponding to the Sync packet.

[0137] In this case, adding the converted residence time to the correction field of the Sync packet or the follow-up packet corresponding to the Sync packet means increasing the value of the correction field of the Sync packet by the value of the converted residence time as the new correction field value and updating the correction field of the Sync packet, or increasing the value of the correction field of the follow-up packet corresponding to the Sync packet by the value of the converted residence time as the new correction field value and updating the correction field of the Follow-up packet.

[0138] According to the clock synchronization mode indication method provided in this embodiment of the present application, the SMF network element obtains first indication information, which indicates the clock synchronization mode used in the communication system in which the terminal device and the UPF network element are located, so that the terminal device and the UPF network element can process the PTP packet according to the first indication information (in other words, in different clock synchronization modes) to perform clock synchronization. In this way, the communication device in the 5G communication system obtains the clock synchronization mode.

[0139] The clock synchronization mode indication method is described below with reference to specific procedures.

[0140] An embodiment of the present application provides another clock synchronization mode indication method to describe a case where an SMF network element pre-configures or stores first indication information (and an optional identifier of a clock domain), or obtains the first indication information (and an optional identifier of a clock domain) from an AF network element, and sends the first indication information to a terminal device and a UPF network element. As shown in Figure 4, the method includes steps S401-S406. S401 and S402 are optional and may not be executed when the SMF network element pre-configures or stores the first indication information (and an optional identifier of a clock domain).

[0141] S401: The AF network element sends an AF request message to the PCF network element.

[0142] In one method, the AF network element may send an AF request message directly to the PCF network element. In another method, the AF network element may send an AF request message to the PCF network element via the NEF network element. In response, the PCF network element receives the AF request message from the AF network element.

[0143] The message includes the first indication information and may optionally further include at least one of an identifier of a clock domain, an identifier of a terminal device (e.g., an IP address or GPSI of the terminal device), and an identifier of a PDU session.

[0144] S402: The PCF network element sends a session management policy control update notify (Npcf_SMPolicyControl_UpdateNotify) message to the SMF network element.

[0145] In response, the SMF network element receives a Session Management Policy Control Update Notify (Npcf_SMPolicyControl_UpdateNotify) message from the PCF network element.

[0146] The message includes the first indication information, and may optionally further include at least one of an identifier of a clock domain, an identifier of a terminal device (e.g., an IP address or GPSI of the terminal device), and an identifier of a PDU session. The identifier of the terminal device (e.g., an IP address or GPSI of the terminal device) or the identifier of the PDU session is used by the SMF network element to determine the PDU session corresponding to the first indication information, and the terminal device and the UPF network element corresponding to the PDU session.

[0147] For step S401, please refer to the explanation of step S301.

[0148] S403: The SMF network element sends the first indication information (and an optional identifier of the clock domain) to the UPF network element in an N4 session modification procedure.

[0149] In response, the UPF network element receives the first indication information (and an optional identifier of the clock domain) from the SMF network element in an N4 session modification procedure.

[0150] For example, the SMF network element sends an N4 session modification request message to the UPF network element, where the message includes the first indication information. Optionally, the message further includes an identifier of the clock domain.

[0151] S404: The SMF network element sends a PDU session change command message to the terminal device.

[0152] The message includes the first indication (and an optional identifier of the clock domain).

[0153] For steps S403 and S404, please refer to the explanations of steps S302 and S303.

[0154] S405: The UPF network element processes the PTP packet based on the first indication information.

[0155] S406: The terminal device processes the PTP packet based on the first indication information.

[0156] For steps S405 and S406, please refer to the description of step S304.

[0157] The above clock synchronization mode indication method describes a case where the SMF network element pre-configures or stores the first indication information (and the optional identifier of the clock domain), or obtains the first indication information (and the optional identifier of the clock domain) from the AF network element, and sends the first indication information (and the optional identifier of the clock domain) to the terminal device and the UPF network element. In this way, the communication device in the 5G communication system obtains the clock synchronization mode.

[0158] An embodiment of the present application provides another clock synchronization mode indication method. A UPF network element pre-configures or stores first indication information (and an optional identifier of a clock domain), and an SMF network element obtains the first indication information (and an optional identifier of a clock domain) from the UPF network element, and sends the first indication information to a terminal device. As shown in Figure 5, the method includes steps S501-S504.

[0159] S501: The UPF network element sends first indication information (and an optional identifier of the clock domain) to the SMF network element in an N4 session establishment procedure.

[0160] The UPF network element may pre-configure or store the first indication information (and the optional identifier of the clock domain) in two ways:

[0161] In one method, it is assumed that the terminal device and the UPF network element support all clock synchronization modes (P2P TC type, E2E TC type, and BC type), and the UPF network element configures or stores first indication information of different clock domains.

[0162] In another method, if the terminal device supports several clock synchronization modes, the terminal device sends the clock synchronization modes supported by the terminal device to the UPF network element, and the UPF network element configures the first indication information (and an optional identifier of the clock domain) with the clock synchronization modes supported by the UPF network element.

[0163] For example, the SMF network element sends an N4 session establishment request message to the UPF network element, and the UPF network element sends an N4 session establishment response message to the SMF network element, the message including the first indication information and optionally further including an identifier of the clock domain.

[0164] Alternatively, for example, the SMF network element sends an N4 association setup request message to the UPF network element, and the UPF network element sends an N4 association setup response message to the SMF network element, the message including the first indication information and optionally further including an identifier of the clock domain.

[0165] For step S501, please refer to the explanation of step S301.

[0166] S502: The SMF network element sends first indication information (and an optional identifier of the clock domain) to the terminal device in a PDU session establishment procedure.

[0167] For example, the terminal device sends a PDU session establishment request message to the SMF network element, and the SMF network element sends a PDU session establishment accept message to the terminal device. The message includes N1 interface session management information (N1 SM Info), and the information includes first indication information. Optionally, the information further includes an identifier of a clock domain.

[0168] For step S502, please refer to the explanation of steps S302 and S303.

[0169] S503: The UPF network element processes the PTP packet based on the first indication information.

[0170] For step S503, please refer to the explanation of step S304.

[0171] S504: The terminal device processes the PTP packet based on the first indication information.

[0172] For step S504, please refer to the explanation of step S304.

[0173] The above clock synchronization mode indication method describes a case where the UPF network element pre-configures or stores the first indication information (and the optional identifier of the clock domain), and the SMF network element obtains the first indication information (and the optional identifier of the clock domain) from the UPF network element and sends the first indication information (and the optional identifier of the clock domain) to the terminal device. In this way, the communication device in the 5G communication system obtains the clock synchronization mode.

[0174] An embodiment of the present application provides another clock synchronization mode indication method. A UDM network element pre-configures or stores first indication information (and an optional identifier of a clock domain), and an SMF network element obtains the first indication information (and an optional identifier of a clock domain) from the UDM network element, and sends the first indication information to a terminal device and a UPF network element. As shown in Figure 6, the method includes steps S601-S607.

[0175] S601: A terminal device sends a PDU session establishment request message to an SMF network element.

[0176] The message includes a data network name (DNN) and single network slice selection assistance information (S-NSSAI). The message is used to request to establish a PDU session.

[0177] S602: The SMF network element sends an SDM get (Nudm_SDM_Get) request message to the UDM network element.

[0178] The message is used to obtain subscription data related to PDU session management. The message includes an identifier of the terminal device, a DNN, and an S-NSSAI. This information is used by the UDM network element to query session management subscription data related to the DNN and S-NSSAI of the terminal device.

[0179] S603: The UDM network element sends an SDM Get (Nudm_SDM_Get) response message to the SMF network element.

[0180] The message includes session management subscription data for the terminal device and related to the DNN and the S-NSSAI. The session management subscription data includes first indication information and optionally further includes an identifier of a clock domain.

[0181] For step S603, please refer to the explanation of step S301.

[0182] S604: The SMF network element sends the first indication information (and an optional identifier of the clock domain) to the UPF network element in an N4 session modification procedure.

[0183] For step S603, please refer to the explanation of step S403.

[0184] S605: The SMF network element sends a PDU session establishment acceptance message to the terminal device.

[0185] The message includes the first indication (and an optional identifier of the clock domain).

[0186] For step S605, please refer to the explanation of steps S302 and S303.

[0187] S606: The UPF network element processes the PTP packet based on the first indication information.

[0188] For step S606, please refer to the explanation of step S304.

[0189] S607: The terminal device processes the PTP packet based on the first indication information.

[0190] For step S607, please refer to the explanation of step S304.

[0191] The above clock synchronization mode indication method describes a case where the UDM network element pre-configures or stores the first indication information (and the optional identifier of the clock domain), and the SMF network element obtains the first indication information (and the optional identifier of the clock domain) from the UDM network element and sends the first indication information (and the optional identifier of the clock domain) to the terminal device. In this way, the communication device in the 5G communication system obtains the clock synchronization mode.

[0192] An embodiment of the present application provides another clock synchronization mode indication method to describe how an AF network element determines a clock synchronization mode supported by a communication system (i.e., a 5GS switching node) in which a first communication device and a second communication device (i.e., a terminal device and a UPF network element) are located, so as to further determine a first possible implementation of the first indication information.

[0193] In this embodiment, the terminal device sends the second indication information to the SMF network element, the UPF network element sends the third indication information to the SMF network element, and the SMF network element determines the fourth indication information based on the second indication information and the third indication information, and sends the fourth indication information to the AF network element. The AF network element determines the clock synchronization mode supported by the communication system (i.e., 5GS switching node) in which the first communication device and the second communication device (i.e., the terminal device and the UPF network element) are located, and determines the first indication information (and an optional identifier of the clock domain). The SMF network element obtains the first indication information (and an optional identifier of the clock domain) from the AF network element, and sends the first indication information to the terminal device and the UPF network element. As shown in FIG. 7A and FIG. 7B, the method includes steps S701 to S712.

[0194] S701: A terminal device sends second indication information to an SMF network element.

[0195] In response, the SMF network element receives second indication information from the terminal device, where the second indication information indicates a clock synchronization mode supported by the terminal device.

[0196] In one possible embodiment, the terminal device sends second indication information to the SMF network element in a PDU session establishment procedure, and in response, the SMF network element receives the second indication information from the terminal device in the PDU session establishment procedure.

[0197] For example, the terminal device sends a PDU session establishment request message to an SMF network element, where the message includes second indication information.

[0198] It should be noted that the terminal device may perform clock synchronization with another communication device in the communication system through the DS-TT device, and the DS-TT device may be independent of the terminal device or may be integrated with the terminal device. In this case, the second indication information may also indicate the clock synchronization mode supported by the DS-TT device.

[0199] S702: The UPF network element sends third indication information to the SMF network element.

[0200] Correspondingly, the SMF network element receives third indication information from the UPF network element, where the third indication information indicates a clock synchronization mode supported by the UPF network element.

[0201] In one possible embodiment, the UPF network element may send the third indication information to the SMF network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure. Correspondingly, the SMF network element may receive the third indication information from the UPF network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure.

[0202] For example, in the case of an N4 association setup procedure, the SMF network element sends an N4 association setup request message to the UPF network element, and the UPF network element sends an N4 association setup response message to the SMF network element, where the message includes third indication information.

[0203] For example, in the case of an N4 session establishment procedure, the SMF network element sends an N4 session establishment request message to the UPF network element, and the UPF network element sends an N4 session establishment response message to the SMF network element, where the message includes third indication information.

[0204] For example, in the case of an N4 session modification procedure, the SMF network element sends an N4 session modification request message to the UPF network element, and the UPF network element sends an N4 session modification response message to the SMF network element, where the message includes third indication information.

[0205] S703: The SMF network element determines fourth indication information based on the second indication information and the third indication information.

[0206] The fourth indication information indicates a clock synchronization mode supported by a session between the first communication device and the second communication device (i.e., the terminal device and the UPF network element).

[0207] The SMF network element obtains the intersection of the clock synchronization mode indicated by the second indication information and the clock synchronization mode indicated by the third indication information to obtain the fourth indication information.

[0208] For example, if the clock synchronization modes supported by the first communication device are BC and P2P TC and the clock synchronization modes supported by the second communication device are BC, E2E TC, and P2P TC, the SMF network element determines that the clock synchronization modes supported by the session between the first communication device and the second communication device are BC and P2P TC.

[0209] S704: The SMF network element sends fourth indication information to the AF network element.

[0210] In one possible embodiment, the SMF network element may send the fourth indication information to the AF network element via the PCF network element.

[0211] For example, the SMF network element sends a Session Management Policy Control Create (Npcf_SMPolicyControl_Create) message or a Session Management Policy Control Update (Npcf_SMPolicyControl_Update) message to the PCF network element to request to establish or update a Session Management Policy Association (SM Policy Association). The message includes the fourth indication information. The PCF network element may send a Policy Authorization Notify (Npcf_Policy Authorization_Notify) message directly to the AF network element, where the message includes the fourth indication information, or the PCF network element may send the fourth indication information to the AF network element via the NEF network element.

[0212] In another possible embodiment, the SMF network element may send the fourth indication information to the AF network element via the NEF network element.

[0213] S705: The AF network element determines, based on the fourth indication information, a clock synchronization mode supported by a communication system (i.e., a 5GS switching node) in which the first communication device and the second communication device (i.e., the terminal device and the UPF network element) are located.

[0214] The AF network element obtains clock synchronization modes supported by multiple PDU sessions of different terminal devices, and the multiple PDU sessions belong to one 5GS switching node, and the AF network element obtains a common part of these clock synchronization modes to determine the clock synchronization modes supported by the 5GS switching node.

[0215] S706: The AF network element determines first indication information (and an optional identifier of a clock domain) in a clock synchronization mode supported by a communication system (i.e., a 5GS switching node) in which the first communication device and the second communication device (i.e., a terminal device and a UPF network element) are located.

[0216] When a communication system (i.e., a 5GS switching node) participates in one clock domain, the AF network element selects one of the clock synchronization modes supported by the communication system (i.e., a 5GS switching node) as the first indication information, and does not need to determine an identifier of the clock domain.

[0217] When a communication system (i.e., a 5GS switching node) participates in multiple clock domains, the AF network element selects one of the clock synchronization modes supported by the communication system (i.e., a 5GS switching node) as the first instruction information for a specific clock domain (distinguished by an identifier of the clock domain) to obtain the first instruction information and the identifier of the clock domain. For example, the 5GS switching node is deployed in a factory. Multiple terminal devices in a workshop access the network together through a UPF network element. The terminal devices and UPF network elements in the same workshop belong to the same clock domain and use the same clock synchronization mode. The terminal devices and UPF network elements in different workshops may belong to different clock domains and use different clock synchronization modes. Thus, the 5GS switching node may participate in multiple clock domains and configure different clock synchronization modes for different clock domains.

[0218] Alternatively, the AF network element may send the clock synchronization mode supported by the communication system (i.e., the 5GS switching node) to the management network element, the management network element determines the first indication information (and the optional identifier of the clock domain), and the AF network element obtains the first indication information (and the optional identifier of the clock domain) from the management network element. For how the management network element determines the first indication information (and the optional identifier of the clock domain) in the clock synchronization mode supported by the communication system (i.e., the 5GS switching node), please refer to the description of the AF network element. Details will not be repeated here.

[0219] In the process of determining the clock synchronization mode by the management network element or the AF network element, the management network element or the AF network element determines the clock synchronization mode of each node on the synchronization path based on the clock requirements of the service and the network topology.

[0220] For steps S707 to S712, please refer to the explanation of steps S401 to S406.

[0221] The above clock synchronization mode indication method describes a case where the terminal device sends the clock synchronization mode supported by the terminal device to the SMF network element, the UPF network element sends the clock synchronization mode supported by the UPF network element to the SMF network element, the SMF network element determines the clock synchronization mode supported by the session between the terminal device and the UPF network element with the clock synchronization mode supported by the terminal device and the clock synchronization mode supported by the UPF network element, and sends the clock synchronization mode supported by the session between the terminal device and the UPF network element to the AF network element. The AF network element determines the clock synchronization mode supported by the communication system (i.e., 5GS switching node) where the first communication device and the second communication device (i.e., the terminal device and the UPF network element) are located with the clock synchronization mode supported by the session between the terminal device and the UPF network element, and determines the first indication information (and an optional identifier of the clock domain). The SMF network element obtains the first indication information (and an optional identifier of the clock domain) from the AF network element, and sends the first indication information to the terminal device and the UPF network element. In this way, the communication device in the 5G communication system obtains a clock synchronization mode.

[0222] An embodiment of the present application provides another clock synchronization mode indication method to describe how an AF network element determines a clock synchronization mode supported by a communication system (i.e., a 5GS switching node) in which a first communication device and a second communication device (i.e., a terminal device and a UPF network element) are located, so as to further determine a second possible implementation of the first indication information.

[0223] In this embodiment, the terminal device sends the second indication information to the SMF network element, the UPF network element sends the third indication information to the SMF network element, and the SMF network element determines the fifth indication information based on the second indication information and the third indication information, and sends the fifth indication information to the AF network element. The AF network element determines the clock synchronization mode supported by the communication system (i.e., the 5GS switching node) in which the first communication device and the second communication device (i.e., the terminal device and the UPF network element) are located, and determines the first indication information (and an optional identifier of the clock domain). The SMF network element obtains the first indication information (and an optional identifier of the clock domain) from the AF network element, and sends the first indication information to the terminal device and the UPF network element. As shown in FIG. 8A and FIG. 8B, the method includes steps S801-S812.

[0224] For steps S801 and S802, please refer to the explanation of steps S701 and S702.

[0225] S803: The SMF network element determines fifth indication information based on the second indication information and the third indication information.

[0226] The fifth indication information indicates a clock synchronization mode supported by a communication system (i.e., a 5GS switching node) in which the first communication device and the second communication device (i.e., a terminal device and a UPF network element) are located.

[0227] The SMF network element obtains a common part of the clock synchronization mode indicated by the second indication information and the clock synchronization mode indicated by the third indication information to obtain the fifth indication information.

[0228] For example, the SMF network element receives second indication information from multiple terminal devices. Suppose that the SMF network element determines, based on the second indication information a from the terminal device 1 and the third indication information from the UPF network element, that the clock synchronization modes supported by the PDU session 1 between the terminal device 1 and the UPF network element are BC and P2P TC. Based on the second indication information b from the terminal device 2 and the third indication information from the UPF network element, the SMF network element determines that the clock synchronization mode supported by the PDU session 2 between the terminal device 2 and the UPF network element is BC. The SMF network element obtains the intersection of these clock synchronization modes and determines that the clock synchronization mode supported by the 5GS switching node on which the PDU session 1 and the PDU session 2 are located is BC.

[0229] S804: The SMF network element sends fifth indication information to the AF network element.

[0230] In one possible embodiment, the SMF network element may send the fifth indication information to the AF network element via the PCF network element.

[0231] For example, the SMF network element sends a Session Management Policy Control Create (Npcf_SMPolicyControl_Create) message or a Session Management Policy Control Update (Npcf_SMPolicyControl_Update) message to the PCF network element to request to establish or update a Session Management Policy Association (SM Policy Association). The message includes the fifth indication information. The PCF network element may send a Policy Authentication Notify (Npcf_PolicyAuthentication_Notify) message directly to the AF network element, where the message includes the fifth indication information, or the PCF network element may send the fifth indication information to the AF network element via the NEF network element.

[0232] In another possible embodiment, the SMF network element may send the fifth indication information to the AF network element via the NEF network element.

[0233] S805: The AF network element determines, based on the fifth indication information, a clock synchronization mode supported by a communication system (i.e., a 5GS switching node) in which the first communication device and the second communication device (i.e., the terminal device and the UPF network element) are located.

[0234] Since the fifth indication information indicates the clock synchronization mode supported by the communication system (i.e., the 5GS switching node), the AF network element may directly determine the clock synchronization mode supported by the communication system (i.e., the 5GS switching node) based on the fifth indication information.

[0235] S806: The AF network element determines first indication information in a clock synchronization mode supported by a communication system (i.e., a 5GS switching node) in which the first communication device and the second communication device (i.e., a terminal device and a UPF network element) are located.

[0236] For step S806, please refer to the explanation of step S706.

[0237] For steps S807 to S812, please refer to the explanation of steps S401 to S406.

[0238] The above clock synchronization mode indication method describes a case where the terminal device sends the clock synchronization mode supported by the terminal device to the SMF network element, the UPF network element sends the clock synchronization mode supported by the UPF network element to the SMF network element, the SMF network element determines the clock synchronization mode supported by the communication system in which the terminal device and the UPF network element are located with the clock synchronization mode supported by the terminal device and the clock synchronization mode supported by the UPF network element, and sends the clock synchronization mode supported by the communication system in which the terminal device and the UPF network element are located to the AF network element. The AF network element determines the first indication information (and an optional identifier of the clock domain) with the clock synchronization mode supported by the communication system (i.e., the 5GS switching node) in which the first communication device and the second communication device (i.e., the terminal device and the UPF network element) are located. The SMF network element obtains the first indication information (and an optional identifier of the clock domain) from the AF network element and sends the first indication information to the terminal device and the UPF network element. In this way, the communication device in the 5G communication system acquires a clock synchronization mode.

[0239] An embodiment of the present application provides another clock synchronization mode indication method to describe how an AF network element determines a clock synchronization mode supported by a communication system (i.e., a 5GS switching node) in which a first communication device and a second communication device (i.e., a terminal device and a UPF network element) are located, so as to further determine a first possible implementation of the first indication information.

[0240] In this embodiment, the terminal device sends the second indication information to the UDM network element through the AMF network element. The UDM network element stores the second indication information in the UDR. The AF network element obtains the second indication information from the UDR, and the AF network element determines the clock synchronization mode supported by the communication system (i.e., the 5GS switching node) in which the first communication device and the second communication device (i.e., the terminal device and the UPF network element) are located based on the second indication information, and determines the first indication information (and an optional identifier of the clock domain). The SMF network element obtains the first indication information (and an optional identifier of the clock domain) from the AF network element, and sends the first indication information (and an optional identifier of the clock domain) to the terminal device and the UPF network element. As shown in Figures 9A, 9B, and 9C, the method includes steps S901 to S911.

[0241] S901: A terminal device sends second indication information to an AMF network element.

[0242] The terminal device may send the second indication information to the AMF network element in the registration procedure. In response, the AMF network element receives the second indication information from the terminal device in the registration procedure. For the second indication information, please refer to the above description.

[0243] For example, the terminal device sends a registration request message to an AMF network element, where the message includes second indication information.

[0244] S902: The AMF network element sends second indication information to a unified data repository (UDR).

[0245] The AMF network element may send the second indication information to the UDM network element in the registration procedure. In response, the UDM network element receives the second indication information from the AMF network element in the registration procedure.

[0246] For example, after receiving a registration request message from the terminal device, the AMF network element registers with the UDM network element based on a terminal device connection management registration (Nudm_UECM_Registration) message, the message including an identifier of the terminal device UE (e.g., a user subscription permanent identifier (SUPI)) and second indication information.

[0247] After receiving the second indication information, the UDM network element stores the second indication information in the UDR.

[0248] S903: The AF network element obtains second indication information from the UDR via the NEF network element.

[0249] For example, the AF network element may send an AF request message to the NEF network element, the NEF network element obtains second instruction information from the UDR, and the NEF network element sends an AF request response message to the AF network element, where the message includes the second instruction information.

[0250] The NEF network element may obtain the second indication information directly from the UDR. For example, the NEF network element may obtain the second indication information from the UDR based on a data management query (Nudr_DM_Query) request message. Alternatively, the NEF network element may obtain the second indication information from the UDR via the UDM network element. For example, the NEF network element subscribes to the clock synchronization mode supported by the terminal device from the UDM network element based on an event exposure subscribe (Nudm_EventExposure_Subscribe) message. After obtaining the second indication information from the UDR by the query, the UDM network element provides the second indication information to the NEF network element based on an event exposure subscribe (Nudm_EventExposure_Subscribe) response message.

[0251] S904: The AF network element determines, based on the second indication information, a clock synchronization mode supported by a communication system (i.e., a 5GS switching node) in which the first communication device and the second communication device (i.e., the terminal device and the UPF network element) are located.

[0252] The AF network element obtains the clock synchronization modes supported by multiple terminal devices, and the multiple terminal devices belong to one 5GS switching node, and the AF network element obtains the intersection of these clock synchronization modes to determine the clock synchronization modes supported by the 5GS switching node. In this case, it is assumed that the UPF supports all clock synchronization modes (P2P TC type, E2E TC type, and BC type). Therefore, the clock synchronization modes supported by the communication system (i.e., 5GS switching node) in which the first communication device and the second communication device (i.e., the terminal device and the UPF network element) are located are determined by the clock synchronization modes supported by the terminal devices.

[0253] S905: The AF network element determines first indication information in a clock synchronization mode supported by a communication system (i.e., a 5GS switching node) in which the first communication device and the second communication device (terminal device and UPF network element) are located.

[0254] For step S905, please refer to the explanation of step S706.

[0255] For steps S906 to S911, please refer to the explanation of steps S401 to S406.

[0256] The above clock synchronization mode indication method describes a case where a terminal device sends a clock synchronization mode supported by the terminal device to a UDM network element through an AMF network element. The UDM network element stores the clock synchronization mode supported by the terminal device in a UDR. The AF network element obtains the clock synchronization mode supported by the terminal device from the UDR. The AF network element determines the clock synchronization mode supported by the communication system (i.e., 5GS switching node) in which the first communication device and the second communication device (terminal device and UPF network element) are located in the clock synchronization mode supported by the terminal device, and determines the first indication information (and an optional identifier of the clock domain). The SMF network element obtains the first indication information (and an optional identifier of the clock domain) from the AF network element, and sends the first indication information (and an optional identifier of the clock domain) to the terminal device and the UPF network element. In this way, the communication device in the 5G communication system obtains the clock synchronization mode.

[0257] It will be understood that in the foregoing embodiments, the methods and / or steps performed by the SMF network element may also be performed by components (e.g., chips or circuits) that may be used in the SMF network element, and the methods and / or steps performed by the first communication device (terminal device or UPF network element) may also be performed by components that may be used in the first communication device.

[0258] The above mainly describes the solutions provided in the embodiments of the present application from the perspective of interactions between network elements. Correspondingly, the embodiments of the present application further provide a communication device, which is configured to implement the various methods described above. The communication device may be an SMF network element in the embodiments of the methods described above, an apparatus including the SMF network element, or a chip or function module in the SMF network element. Alternatively, the communication device may be a first communication device (terminal device or UPF network element) in the embodiments of the methods described above, or an apparatus including the first communication device described above, or a chip or function module in the first communication device.

[0259] It is understood that in order to implement the aforementioned functions, the communication device includes a hardware structure and / or a software module for performing the corresponding functions. Those skilled in the art should easily recognize that the present application can be implemented by hardware, or a combination of hardware and computer software, in combination with the example units and algorithm steps described in the embodiments disclosed herein. Whether the functions are performed by hardware or by hardware driven by computer software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use various methods for each specific application to implement the described functions, but the implementation should not be considered to go beyond the scope of the present application.

[0260] In the embodiment of the present application, the communication device may be divided into functional modules according to the embodiment of the above method. For example, each functional module may be obtained by division based on each corresponding function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware or in the form of a software function module. It should be noted that in the embodiment of the present application, the division of modules is an example, and is merely a logical division of functions. In actual implementation, other division methods may be used.

[0261] For example, the communication device is an SMF network element in the embodiment of the aforementioned method. Figure 10 is a schematic diagram of the structure of the communication device 100. The communication device 100 may be the SMF network element of Figure 1. The communication device 100 includes a processing module 1001 and a transceiver module 1002. The processing module 1001 may be called a processing unit and is configured to implement the processing function of the SMF network element in the embodiment of the aforementioned method, for example, performing step S301 in Figure 3, step S703 in Figures 7A and 7B, and step S803 in Figures 8A and 8B. The transceiver module 1002 may also be referred to as a transceiver unit and is configured to implement the transceiver functions of the SMF network element in the embodiments of the method described above, for example, performing steps S302 of Figure 3, steps S402-S404 of Figure 4, steps S501 and S502 of Figure 5, steps S601-S605 of Figure 6, steps S701, S702, S704, and S708-S710 of Figures 7A and 7B, steps S801, S802, S804, and S808-S810 of Figures 8A and 8B, and steps S907-S909 of Figures 9A, 9B, and 9C. The transceiver module 1002 may also be referred to as a transceiver circuit, a transceiver machine, a transceiver, or a communication interface.

[0262] For example, the processing module 1001 is configured to obtain first indication information, the first indication information indicating a clock synchronization mode used in a communication system in which the terminal device and the user plane function network element are located. The transceiver module 1002 is configured to transmit the first indication information to the terminal device.

[0263] In one possible implementation, the processing module 1001 is further configured to obtain an identifier of a clock domain, and the identifier of the clock domain and the first indication information indicate a clock synchronization mode used in the clock domain by a communication system in which the terminal device and the user plane function network element are located. The transceiver module 1002 is further configured to transmit the identifier of the clock domain to the terminal device.

[0264] In one possible implementation, the transceiver module 1002 is further configured to transmit the identifier of the clock domain to a user plane function network element.

[0265] In one possible implementation, the transceiver module 1002 is further configured to transmit the first indication information to the user plane function network element.

[0266] In one possible implementation, the processing module 1001 is further configured to determine a fourth indication information based on the second indication information and the third indication information, the second indication information indicating a clock synchronization mode supported by the terminal device, the third indication information indicating a clock synchronization mode supported by the user plane function network element, and the fourth indication information indicating a clock synchronization mode supported by a session between the terminal device and the user plane function network element. The transceiver module 1002 is further configured to send the fourth indication information to the application function network element.

[0267] In one possible implementation, the processing module 1001 is further configured to determine a fifth indication information based on the second indication information and the third indication information, the second indication information indicating a clock synchronization mode supported by the terminal device, the third indication information indicating a clock synchronization mode supported by the user plane function network element, and the fifth indication information indicating a clock synchronization mode supported by a communication system in which the terminal device and the user plane function network element are located. The transceiver module 1002 is further configured to send the fifth indication information to the application function network element.

[0268] In one possible implementation, the transceiver module 1002 is further configured to receive second indication information from the terminal device.

[0269] In one possible implementation, the transceiver module 1002 is further configured to receive a third indication from the user plane function network element.

[0270] In one possible embodiment, the transceiver module 1002 is specifically configured to send the first indication information to the terminal device in a protocol data unit (PDU) session establishment procedure.

[0271] In one possible implementation, the transceiver module 1002 is specifically configured to send the first indication information to the terminal device in a PDU session modification procedure.

[0272] In one possible embodiment, the clock synchronization mode includes a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type.

[0273] In this embodiment, the communication device 100 is presented in the form of functional modules obtained by division in an integrated manner. A module here may be an ASIC, a circuit, a processor executing one or more software or firmware programs, a memory, an integrated logic circuit, and / or another component capable of providing the aforementioned functionality.

[0274] Specifically, the functions / implementation processes of the processing module 1001 of Figure 10 may be implemented by a processor in the SMF network element by invoking computer-executable instructions stored in a memory. The functions / implementation processes of the transceiver module 1002 of Figure 10 may be implemented by a communication interface in the SMF network element.

[0275] Since the communication device 100 provided in this embodiment can execute the above-mentioned method, please refer to the above-mentioned method embodiment for the technical effects that can be achieved by the communication device 100. Details are not repeated here.

[0276] For example, the communication device is the first communication device (terminal device or UPF network element) in the embodiment of the aforementioned method. FIG. 11 is a schematic diagram of the structure of the communication device 110. The communication device 110 may be the terminal device or the UPF network element of FIG. 1. The communication device 110 includes a processing module 1101 and a transceiver module 1102. The processing module 1101 may be called a processing unit and is configured to implement the processing functions of the first communication device in the embodiment of the aforementioned method, for example, performing steps S303 and S304 of FIG. 3, steps S405 and S406 of FIG. 4, steps S503 and S504 of FIG. 5, steps S606 and S607 of FIG. 6, steps S711 and S712 of FIG. 7A and FIG. 7B, steps S811 and S812 of FIG. 8A and FIG. 8B, and steps S910 and S911 of FIG. 9A, FIG. 9B, and FIG. 9C. The transceiver module 1102 may also be referred to as a transceiver unit, and is configured to implement the transceiver function of the first communication device in the embodiment of the aforementioned method, for example, performing step S302 in Figure 3, steps S403 and S404 in Figure 4, steps S501 and S502 in Figure 5, steps S601, S604 and S605 in Figure 6, steps S701, S702, S709 and S710 in Figures 7A and 7B, steps S801, S802, S809 and S810 in Figures 8A and 8B, and steps S901, S908 and S909 in Figures 9A, 9B and 9C. The transceiver module 1102 may also be referred to as a transceiver circuit, a transceiver machine, a transceiver, or a communication interface.

[0277] For example, the processing module 1101 is configured to obtain first indication information, the first indication information indicating a clock synchronization mode used in a communication system in which the first communication device and the second communication device are located, the first communication device is a terminal device, and the second communication device is a user plane function network element, or the first communication device is a user plane function network element, and the second communication device is a terminal device. The processing module 1101 is further configured to process a Precision Time Protocol PTP packet based on the first indication information.

[0278] In one possible implementation, the apparatus further includes a transceiver module 1102 configured to receive the first indication information from the session management function network element.

[0279] In one possible implementation, the processing module 1101 is further configured to obtain an identifier of a clock domain, and the identifier of the clock domain and the first instruction information indicate a clock synchronization mode used within the clock domain by a communication system in which the first communication device and the second communication device are located.

[0280] In one possible implementation, the apparatus further includes a transceiver module 1102 configured to receive an identifier of the clock domain from the session management function network element.

[0281] In one possible implementation, the processing module 1101 is configured to process the PTP packet based on the identifier of the clock domain and the first indication information.

[0282] In one possible embodiment, the first communication device is a terminal device, and the first communication device further includes a transceiver module 1102 configured to send second indication information to a session management function network element in a protocol data unit (PDU) session establishment procedure, the second indication information indicating a clock synchronization mode supported by the first communication device.

[0283] In one possible embodiment, the first communication device is a terminal device, and the first communication device further includes a transceiver module 1102 configured to send second indication information to the access and mobility management function network element in the registration procedure, where the second indication information indicates a clock synchronization mode supported by the first communication device.

[0284] In one possible embodiment, the first communication device is a user plane function network element, and the first communication device further includes a transceiver module 1102 configured to send third indication information to the session management function network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure, wherein the third indication information indicates a clock synchronization mode supported by the first communication device.

[0285] In one possible embodiment, if the first indication information indicates that the clock synchronization mode is a peer-to-peer transparent clock type, the first communication device further includes a transceiver module 1102. The transceiver module 1102 is configured to receive a PTP packet from an upstream node in the communication system. The processing module 1101 is configured to update a correction field or a suffix field of the PTP packet based on a PTP link delay between the first communication device and the upstream node. The transceiver module 1102 is further configured to send the updated PTP packet to the second communication device, the PTP packet including a synchronization packet or a follow-up packet corresponding to the synchronization packet, and the suffix field is for updating the correction field.

[0286] In one possible embodiment, the clock synchronization mode includes a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type.

[0287] The second communication apparatus is the second communication device described above.

[0288] In this embodiment, the communication device 110 is presented in the form of functional modules obtained by division in an integrated manner. A module here may be an ASIC, a circuit, a processor executing one or more software or firmware programs, a memory, an integrated logic circuit, and / or another component capable of providing the aforementioned functionality.

[0289] Specifically, the functions / implementation processes of the processing module 1101 of Figure 11 may be implemented by a processor in the first communication device by invoking computer-executable instructions stored in a memory. The functions / implementation processes of the transceiver module 1102 of Figure 11 may be implemented by a communication interface in the first communication device.

[0290] Since the communication device 110 provided in this embodiment can execute the above-mentioned method, please refer to the above-mentioned method embodiment for the technical effects that can be achieved by the communication device 110. Details are not repeated here.

[0291] As shown in Figure 12, an embodiment of the present application further provides a communication device. The communication device 120 includes a processor 1201, a memory 1202, and a communication interface 1203, and the processor 1201 is connected to the memory 1202. When the processor 1201 executes a computer program or an instruction in the memory 1202, a method corresponding to the SMF network element in Figures 3 to 9A, 9B, and 9C is performed.

[0292] As shown in Figure 13, an embodiment of the present application further provides a communication device. The communication device 130 includes a processor 1301, a memory 1302, and a communication interface 1303, and the processor 1301 is connected to the memory 1302. When the processor 1301 executes a computer program or instruction in the memory 1302, a method corresponding to the first communication device, the terminal device, or the UPF network element in Figures 3 to 9A, 9B, and 9C is performed.

[0293] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, which, when executed on a computer or processor, enables the computer or processor to perform the method corresponding to the SMF network element of Figures 3 to 9A, 9B, and 9C.

[0294] An embodiment of the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed on a computer or a processor, the computer or the processor is enabled to execute a method corresponding to the first communication device, the terminal device, or the UPF network element of Figures 3 to 9A, 9B, and 9C.

[0295] An embodiment of the present application further provides a computer program product including instructions, which, when executed on a computer or processor, enable the computer or processor to perform methods corresponding to the SMF network elements of Figures 3-9A, 9B, and 9C.

[0296] An embodiment of the present application further provides a computer program product including instructions, which, when executed on a computer or processor, enable the computer or processor to perform a method corresponding to the first communication device, the terminal device, or the UPF network element of Figures 3 to 9A, 9B, and 9C.

[0297] An embodiment of the present application provides a chip system, which includes a processor used by a communication device to execute a method corresponding to the SMF network element in Figures 3-9A, 9B, and 9C, or a method corresponding to the first communication device, the terminal device, or the UPF network element in Figures 3-9A, 9B, and 9C.

[0298] In one possible design, the chip system further includes a memory, and the memory is configured to store the necessary program instructions and the necessary data. The chip system may include a chip and an integrated circuit, or may include a chip and another individual device. This is not particularly limited in this embodiment of the present application.

[0299] The communication device, chip, computer storage medium, computer program product, or chip system provided in the present application are all configured to execute the above-mentioned method. Therefore, for the beneficial effects that can be achieved by the communication device, chip, computer storage medium, computer program product, or chip system, please refer to the beneficial effects in the above-mentioned embodiments. Details will not be repeated here.

[0300] The processor in the embodiments of the present application may be a chip, for example, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or another integrated chip.

[0301] The memory in the embodiments of the present application may be volatile or non-volatile memory, or may include volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory may be random access memory (RAM) used as an external cache. By way of example and not limitation, many forms of RAM may be used, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein includes, but is not limited to, these and any other suitable types of memory.

[0302] It should be understood that the sequence numbers of the above processes do not refer to the execution order in various embodiments of the present application. The execution order of the processes should be determined based on the functions and internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0303] Those skilled in the art may recognize that in combination with the examples described in the embodiments disclosed herein, the units and algorithm steps may be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether a function is implemented by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use various methods to implement the described functions for each specific application, but the implementation should not be considered to go beyond the scope of this application.

[0304] It should be clearly understood by those skilled in the art that for the sake of simple and concise description, the detailed operation processes of the aforementioned systems, devices and units should be referred to the corresponding processes in the aforementioned method embodiments, and the details will not be described repeatedly here.

[0305] In some embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the described device embodiments are merely examples. For example, the division into units is merely a logical functional division, and other divisions may be used in actual implementation. For example, multiple units or components may be combined or integrated into other systems, or some features may be omitted or not implemented. In addition, the shown or described interconnections, direct connections, or communication connections may be implemented through some interfaces. Indirect connections or communication connections between devices or units may be implemented in electronic, mechanical, or other forms.

[0306] The units described as separate parts may or may not be physically separate, and the parts shown as units may or may not be physical units, in other words, may be located in one place or distributed among multiple network units. Some or all of the units may be selected based on the actual requirements to achieve the objectives of the solutions of the embodiments.

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

[0308] All or part of the above-mentioned embodiments may be implemented by software, hardware, firmware, or any combination thereof. When a software program is used to implement the embodiments, the embodiments may be fully or partially implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from any computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (e.g., coaxial cable, optical fiber, or Digital Subscriber Line (DSL)) or wireless (e.g., infrared, radio wave, or microwave) manner. The computer-readable storage medium may be any available medium accessible by a computer, or a data storage device that integrates one or more available media, such as a server or a data center. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, or a magnetic tape), an optical medium (e.g., a DVD), a semiconductor medium (e.g., a solid state drive (SSD)), etc.

[0309] The above description is merely a specific embodiment of the present application, and is not intended to limit the scope of protection of the present application. Any variations or replacements that are easily conceived by those skilled in the art within the technical scope disclosed in the present application shall be within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims. [Explanation of symbols]

[0310] 100 Communication equipment 101 Terminal Device 102 Radio Access Network (RAN) network elements 103 User Plane Function (UPF) Network Element 104 Data Network 105 Access and Mobility Management Function (AMF) Network Elements 106 Session Management Function (SMF) Network Element 107 Policy Control Function (PCF) Network Element 108 Unified Data Management (UDM) Network Elements 109 Application Function (AF) Network Element 110 Communication device, network exposure function (NEF) network element, device side time-dependent network (TSN) translator 111 Network side TSN translator 120 Communication Equipment 130 Communication Equipment 1001 Processing Module 1002 Transceiver Module 1101 Processing Module 1102 Transceiver Module 1201 Processor 1202 Memory 1203 Communication Interface 1301 Processor 1302 Memory 1303 Communication Interface

Claims

1. A clock synchronization mode indication method, comprising: obtaining, by a session management function network element, first indication information, the first indication information indicating a clock synchronization mode used in a communication system in which a terminal device and a user plane function network element are located, the clock synchronization mode comprising a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type; sending, by the Session Management Function network element, the first indication information to the terminal device; A method comprising:

2. obtaining, by the session management function network element, an identifier of a clock domain, the identifier of the clock domain and the first indication information indicating a clock synchronization mode used within the clock domain by the communication system in which the terminal device and the user plane function network element are located; transmitting, by the Session Management Function network element, the identifier of the clock domain to the terminal device; The method of claim 1, further comprising:

3. transmitting, by the session management function network element, the identifier of the clock domain to the user plane function network element.

3. The method of claim 2, further comprising:

4. sending, by the session management function network element, the first indication information to the user plane function network element; 4. The method of claim 1, further comprising:

5. determining, by the session management function network element, fourth indication information based on second indication information and third indication information, wherein the second indication information indicates a clock synchronization mode supported by the terminal device, the third indication information indicates a clock synchronization mode supported by the user plane function network element, and the fourth indication information indicates a clock synchronization mode supported by a session between the terminal device and the user plane function network element; sending, by the session management function network element, the fourth indication information to an application function network element; 5. The method of claim 1, further comprising:

6. determining, by the session management function network element, fifth indication information based on the second indication information and the third indication information, wherein the second indication information indicates a clock synchronization mode supported by the terminal device, the third indication information indicates a clock synchronization mode supported by the user plane function network element, and the fifth indication information indicates a clock synchronization mode supported by the communication system in which the terminal device and the user plane function network element are located; sending, by the session management function network element, the fifth indication information to an application function network element; 5. The method of claim 1, further comprising:

7. receiving, by the session management function network element, the second indication information from the terminal device; 7. The method of claim 5 or 6, further comprising:

8. receiving, by the session management function network element, the third indication information from the user plane function network element; 7. The method of claim 5 or 6, further comprising:

9. the step of transmitting, by the Session Management Function network element, the first indication information to the terminal device, 9. The method according to claim 1, comprising the step of transmitting, by the Session Management Function network element, the first indication information to the terminal device in a Protocol Data Unit (PDU) session establishment procedure.

10. the step of transmitting, by the Session Management Function network element, the first indication information to the terminal device, The method according to claim 1 , comprising the step of transmitting, by the session management function network element, the first indication information to the terminal device in a PDU session modification procedure.

11. A clock synchronization mode indication method, comprising: obtaining, by a first communication device, first indication information, the first indication information indicating a clock synchronization mode used in a communication system in which the first communication device and the second communication device are located, the clock synchronization mode comprising a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type, the first communication device being a terminal device and the second communication device being a user plane function network element, or the first communication device being a user plane function network element and the second communication device being a terminal device; processing, by the first communication device, a Precision Time Protocol (PTP) packet based on the first indication; A method comprising:

12. obtaining, by the first communication device, an identifier of a clock domain, the identifier of the clock domain and the first indication indicating a clock synchronization mode to be used within the clock domain by the communication system in which the first communication device and the second communication device are located; 12. The method of claim 11, further comprising:

13. the first communication device is the terminal device, and the method comprises:

13. The method according to claim 11, further comprising: sending, by the first communication device, second indication information to a session management function network element in a protocol data unit (PDU) session establishment procedure, the second indication information indicating a clock synchronization mode supported by the first communication device.

14. the first communication device is the terminal device, and the method comprises:

13. The method according to claim 11, further comprising the step of: sending, by the first communication device in a registration procedure, second indication information to an access and mobility management function network element, the second indication information indicating a clock synchronization mode supported by the first communication device.

15. 15. The method according to claim 13 or 14, wherein the clock synchronization mode indicated by the first indication information is a subset of an intersection set of the clock synchronization mode indicated by the second indication information and a clock synchronization mode supported by the user plane function network element.

16. the first communication device is the user plane function network element, and the method comprises:

13. The method of claim 11, further comprising: sending, by the first communication device, third indication information to a session management function network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure, wherein the third indication information indicates a clock synchronization mode supported by the first communication device.

17. 17. The method of claim 16, wherein the clock synchronization mode indicated by the first indication information is a subset of an intersection set of the clock synchronization mode indicated by the third indication information and a clock synchronization mode supported by the terminal device.

18. 18. The method according to claim 11, wherein the clock synchronization mode used within the communication system is the clock synchronization mode supported by the user plane function network element and the terminal device.

19. The first indication information indicates that the clock synchronization mode is the end-to-end transparent clock type, and the step of processing a Precision Time Protocol (PTP) packet by the first communication device based on the first indication information includes: receiving, by the first communication device, a first synchronization packet from an upstream node in the communication system; and transmitting, to the second communication device, a second synchronization packet corresponding to the first synchronization packet, wherein a suffix field of the second synchronization packet includes a precise time of the first communication device receiving the first synchronization packet; or 19. A method according to any one of claims 11 to 18, comprising the steps of: receiving, by the first communication device, a synchronization packet from an upstream node in the communication system; and transmitting a follow-up packet corresponding to the synchronization packet to the second communication device, wherein a suffix field of the follow-up packet contains an exact time of the first communication device receiving the synchronization packet.

20. When the first indication information indicates that the clock synchronization mode is the peer-to-peer transparent clock type, the step of processing a Precision Time Protocol (PTP) packet by the first communication device based on the first indication information includes:

19. The method of claim 11, comprising: receiving, by the first communication device, the PTP packet from an upstream node in the communication system; updating a correction field or a suffix field of the PTP packet based on a PTP link delay between the first communication device and the upstream node; and transmitting the updated PTP packet to the second communication device, wherein the PTP packet comprises a synchronization packet or a follow-up packet corresponding to the synchronization packet, and the suffix field is for updating the correction field.

21. The step of obtaining, by the first communication device, first indication information, further comprises: The method of claim 11, comprising receiving, by the first communication device, the first indication information from a Session Management Function network element.

22. The step of obtaining, by the first communication device, an identifier of a clock domain, further comprising:

13. The method of claim 12, comprising receiving, by the first communications device, the identifier of the clock domain from a Session Management Function network element.

23. The step of processing, by the first communication device, a Precision Time Protocol (PTP) packet based on the first indication information, further comprising:

13. The method of claim 12, comprising processing, by the first communication device, the PTP packet based on the identifier of the clock domain and the first indication.

24. A communication device disposed in a session management function network element, comprising: A processing module configured to obtain first indication information, the first indication information indicating a clock synchronization mode used in a communication system in which a terminal device and a user plane function network element are located, the clock synchronization mode comprising a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type; a transceiver module configured to transmit the first indication information to the terminal device; A communication device comprising:

25. The processing module is further configured to obtain an identifier of a clock domain, and the identifier of the clock domain and the first indication information indicate a clock synchronization mode used within the clock domain by the communication system in which the terminal device and the user plane function network element are located; the transceiver module is further configured to transmit the identifier of the clock domain to the terminal device.

25. The communication device of claim 24.

26. the transceiver module is further configured to transmit the identifier of the clock domain to the user plane function network element.

26. A communication device as claimed in claim 25.

27. the transceiver module is further configured to transmit the first indication information to the user plane function network element.

27. A communication device according to any one of claims 24 to 26.

28. A communication device described in any one of claims 24 to 27, wherein the clock synchronization mode used within the communication system is the clock synchronization mode supported by the user plane function network element and the terminal device.

29. A first communication device, a processing module configured to obtain first indication information, the first indication information indicating a clock synchronization mode used in a communication system in which the first communication device and the second communication device are located, the clock synchronization mode comprising a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type, and the first communication device is a terminal device and the second communication device is a user plane function network element, or the first communication device is a user plane function network element and the second communication device is a terminal device; Equipped with The first communication device, wherein the processing module is further configured to process a Precision Time Protocol (PTP) packet based on the first indication information.

30. The processing module comprises:

30. The first communication device of claim 29, further configured to: obtain an identifier of a clock domain, the identifier of the clock domain and the first instruction information indicating a clock synchronization mode used within the clock domain by the communication system in which the first communication device and the second communication device are located.

31. The processing module comprises: The first communication device of claim 30, configured to process the PTP packet based on the identifier of the clock domain and the first indication information.

32. If the first indication information indicates that the clock synchronization mode is the peer-to-peer transparent clock type, the first communication device further comprises a transceiver module; the transceiver module is configured to receive the PTP packets from an upstream node in the communication system; The processing module is configured to update a correction field or a suffix field of the PTP packet based on a PTP link delay between the first communication device and the upstream node; 32. The first communication device of claim 29, further configured: the transceiver module is configured to transmit an updated PTP packet to the second communication device, the PTP packet comprising a synchronization packet or a follow-up packet corresponding to the synchronization packet, and the suffix field is for updating the correction field.

33. The first indication information indicates that the clock synchronization mode is the end-to-end transparent clock type, and the first communication device processes a Precision Time Protocol (PTP) packet according to the first indication information, and the first communication device further comprises a transceiver module; the transceiver module is configured to receive a first synchronization packet from an upstream node in the communication system and transmit a second synchronization packet corresponding to the first synchronization packet to the second communication device, a suffix field of the second synchronization packet including a precise time of the first communication device receiving the first synchronization packet; or 32. The first communication device of claim 29, wherein the transceiver module is configured to receive a synchronization packet from an upstream node in the communication system and to send a follow-up packet corresponding to the synchronization packet to the second communication device, wherein a suffix field of the follow-up packet includes an exact time of the first communication device receiving the synchronization packet.

34. the first communication device is the terminal device, and the first communication device further comprises a transceiver module; 34. The first communication device of claim 29, wherein the transceiver module is configured to send second indication information to a session management function network element in a protocol data unit (PDU) session establishment procedure, the second indication information indicating a clock synchronization mode supported by the first communication device.

35. the first communication device is the terminal device, and the first communication device further comprises a transceiver module; 34. The first communication device of claim 29, wherein the transceiver module is configured to send second indication information to an access and mobility management function network element during a registration procedure, the second indication information indicating a clock synchronization mode supported by the first communication device.

36. 36. The first communication device of claim 34 or 35, wherein the clock synchronization mode indicated by the first instruction information is a subset of an intersection set of the clock synchronization mode indicated by the second instruction information and a clock synchronization mode supported by the user plane function network element.

37. The first communication device is the user plane function network element, and the first communication device further comprises a transceiver module; 34. The first communication device of claim 29, wherein the transceiver module is configured to send third indication information to a session management function network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure, the third indication information indicating a clock synchronization mode supported by the first communication device.

38. 38. The first communication device of claim 37, wherein the clock synchronization mode indicated by the first instruction information is a subset of an intersection set of the clock synchronization mode indicated by the third instruction information and a clock synchronization mode supported by the terminal device.

39. 39. The first communication device according to any one of claims 29 to 38, wherein the clock synchronization mode used within the communication system is the clock synchronization mode supported by the user plane function network element and the terminal device.

40. 11. A computer readable storage medium storing a computer program which, when executed on a computer, enables the computer to carry out the method according to any one of claims 1 to 10.

41. A computer-readable storage medium, the computer-readable storage medium storing a computer program which, when executed on a computer, enables the computer to perform a method according to any one of claims 11 to 23.

42. A clock synchronization mode indication method, comprising: receiving, by a session management function network element, from a user plane function network element, an indication of a clock synchronization mode supported by the user plane function network element; determining, by the session management function network element, based on the indication information, a clock synchronization mode to be used within a communication system in which the user plane function network element and the terminal device are located; obtaining, by the user plane function network element, the clock synchronization mode; processing, by the user plane function network element, a Precision Time Protocol (PTP) packet based on the clock synchronization mode; A method comprising:

43. receiving, by a session management function network element, from a user plane function network element, indication information indicating a clock synchronization mode supported by the user plane function network element; 43. The method of claim 42, comprising receiving, by a session management function network element, the indication information from the user plane function network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure.

44. 44. The method of claim 42 or 43, wherein the clock synchronization mode is a subset of an intersection set of the clock synchronization mode indicated by the indication information and a clock synchronization mode supported by the terminal device.

45. 45. The method according to claim 42, wherein the clock synchronization mode is the clock synchronization mode supported by the user plane function network element and the terminal device.

46. The clock synchronization mode is an end-to-end transparent clock type, and the step of processing a Precision Time Protocol (PTP) packet based on the clock synchronization mode by the user plane function network element includes: receiving, by the user plane function network element, a first synchronization packet from an upstream node in the communication system; and transmitting, to the terminal device, a second synchronization packet corresponding to the first synchronization packet, wherein a suffix field of the second synchronization packet includes a precise time of the user plane function network element receiving the first synchronization packet; or 46. ​​A method according to any one of claims 42 to 45, comprising the steps of: receiving, by the user plane function network element, a synchronization packet from an upstream node in the communication system; and transmitting a follow-up packet corresponding to the synchronization packet to the terminal device, wherein a suffix field of the follow-up packet contains the exact time of the user plane function network element receiving the synchronization packet.

47. The clock synchronization mode is a peer-to-peer transparent clock type, and the step of processing a Precision Time Protocol (PTP) packet based on the clock synchronization mode by the user plane function network element includes:

46. ​​The method of claim 42, comprising: receiving, by the user plane function network element, the PTP packet from an upstream node in the communication system; updating a correction field or a suffix field of the PTP packet based on a PTP link delay between the user plane function network element and the upstream node; and transmitting the updated PTP packet to the terminal device, wherein the PTP packet comprises a synchronization packet or a follow-up packet corresponding to the synchronization packet, and the suffix field is for updating the correction field.

48. 48. The method of any one of claims 42 to 47, wherein the clock synchronization mode comprises a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type.

49. 1. A communication system comprising: a session management function network element configured to receive, from a user plane function network element, indication information indicating a clock synchronization mode supported by the user plane function network element, and to determine, based on the indication information, a clock synchronization mode to be used in a communication system in which the user plane function network element and a terminal device are located; and a user plane function network element configured to obtain the clock synchronization mode and process a Precision Time Protocol (PTP) packet based on the clock synchronization mode.

50. 50. The communication system of claim 49, wherein the session management function network element is configured to receive the indication information from the user plane function network element in an N4 association setup procedure, an N4 session establishment procedure, or an N4 session modification procedure.

51. 51. The communication system of claim 49 or 50, wherein the clock synchronization mode is a subset of an intersection set of the clock synchronization mode indicated by the indication information and the clock synchronization modes supported by the terminal device.

52. 52. A communication system according to any one of claims 49 to 51, wherein the clock synchronization mode is the clock synchronization mode supported by the user plane function network element and the terminal device.

53. The clock synchronization mode is an end-to-end transparent clock type; The user plane function network element is configured to receive a first synchronization packet from an upstream node in the communication system, and transmit a second synchronization packet corresponding to the first synchronization packet to the terminal device, wherein a suffix field of the second synchronization packet includes a precise time of the user plane function network element receiving the first synchronization packet; or 53. The communication system according to claim 49, wherein the user plane function network element is configured to receive a synchronization packet from an upstream node in the communication system and to transmit a follow-up packet corresponding to the synchronization packet to the terminal device, the suffix field of the follow-up packet including the exact time of the user plane function network element receiving the synchronization packet.

54. The clock synchronization mode is a peer-to-peer transparent clock type; 53. The communication system of claim 49, wherein the user plane function network element is configured to receive the PTP packet from an upstream node in the communication system, update a correction field or a suffix field of the PTP packet based on a PTP link delay between the user plane function network element and the upstream node, and transmit the updated PTP packet to the terminal device, the PTP packet comprising a synchronization packet or a follow-up packet corresponding to the synchronization packet, and the suffix field is for updating the correction field.

55. 55. The communication system of any one of claims 49 to 54, wherein the clock synchronization mode comprises a peer-to-peer transparent clock type, an end-to-end transparent clock type, or a boundary clock type.

Citation Information

Patent Citations

  • Data transmission method, quality of service flow management method, equipment and medium

    CN110267312A