Time service method and device and related equipment

By pre-configuring the same master clock identifier between the network-side device and the terminal, the problem of inconsistent clock domains between the terminal and the network-side device is solved, and normal communication between devices is achieved.

CN118804256APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410038140.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-10
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The connected device of the terminal and the connected device on the network side are not in the same clock domain, causing communication impact.

Method used

By preconfiguring the same master clock identifier between the network side device and the terminal, it is ensured that the master clock identifiers in the timing messages received by the first downstream device and the second downstream device are the same, so that they are in the same clock domain.

Benefits of technology

It solves the problem of clock domain inconsistency between terminals and network-side devices and ensures normal communication and control between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118804256A_ABST
    Figure CN118804256A_ABST
Patent Text Reader

Abstract

The invention provides a time service method and device and related equipment, and relates to the field of time synchronization, and the method comprises the steps: transmitting a first time service message to first lower hanging equipment; wherein a master clock identifier in the first time service message is a target identifier, the target identifier is the same as a master clock identifier in a second time service message sent by the terminal to a second under-hanging device, the first under-hanging device is the under-hanging device of the network side device, and the second under-hanging device is the under-hanging device of the terminal. According to the invention, the main clock identifiers in the time service messages respectively received by the first lower-hanging device and the second lower-hanging device are the same, so that the first lower-hanging device and the second lower-hanging device can be located in the same clock domain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of time synchronization, and in particular to a timing method, a timing device and related equipment. Background Art

[0002] At present, 3GPP defines two time synchronization mechanisms, namely, the time synchronization mechanism based on the time-sensitive network architecture and the time synchronization mechanism based on the master clock source for external time synchronization. The time synchronization mechanism based on the time-sensitive network architecture requires the introduction of new network elements, which will have a certain impact on other network elements and the business process is relatively complex. The time synchronization mechanism based on the master clock source for external time synchronization, the terminal's downstream devices and the network's downstream devices are not in the same clock domain, which affects the communication between the terminal's downstream devices and the network's downstream devices. Summary of the invention

[0003] The embodiments of the present invention provide a timing method, apparatus and related equipment to solve the problem that the downstream equipment of the terminal and the downstream equipment of the network side are not in the same clock domain, which affects the communication between the downstream equipment of the terminal and the downstream equipment of the network side.

[0004] To solve the above technical problems, the present invention is achieved as follows:

[0005] In a first aspect, an embodiment of the present invention provides a timing method, which is applied to a network side device, and the method includes:

[0006] Sending a first timing message to a first downstream device;

[0007] Among them, the master clock identifier in the first timing message is the target identifier, and the target identifier is the same as the master clock identifier in the second timing message sent by the terminal to the second downstream device. The first downstream device is the downstream device of the network side device, and the second downstream device is the downstream device of the terminal.

[0008] Optionally, before sending the first timing message to the first downstream device, the method further includes:

[0009] Receiving a protocol data unit (PDU) session creation request sent by the terminal, wherein the PDU session creation request includes information requesting the target identifier;

[0010] Determining the target identifier based on the PDU session creation request;

[0011] A PDU session creation success response message carrying the target identifier is sent to the terminal.

[0012] Optionally, the determining the target identifier based on the PDU session request includes:

[0013] Determine, based on the PDU session creation request, at least one candidate identifier and a constraint condition of each of the at least one candidate identifier;

[0014] The target identifier is determined from the at least one candidate identifier based on the constraint condition of each candidate identifier by a session management function SMF.

[0015] Optionally, the determining, based on the PDU session creation request, at least one candidate identifier and a constraint condition of each of the at least one candidate identifier comprises at least one of the following:

[0016] Based on the first belonging information of the terminal in the PDU session creation request, a unified data management function UDM signs a first candidate identifier and determines that the belonging information included in the constraint condition of the first candidate identifier is the first belonging information, and the first belonging information is 5G local area network virtual network LAN VN group information;

[0017] Determine, by the SMF, a second candidate identifier based on the first attribution information and determine that the attribution information included in the constraint condition of the second candidate identifier is the first attribution information;

[0018] Determine, by the SMF, based on the second attribution information of the terminal in the PDU session creation request, a third candidate identifier and determine that the attribution information included in the constraint condition of the third candidate identifier is the second attribution information, and the second attribution information is network instance NetworkInstance information;

[0019] Determine, by the SMF, based on the third attribution information of the terminal in the PDU session creation request, a fourth candidate identifier and determine that the attribution information included in the constraint condition of the fourth candidate identifier is the third attribution information, and the third attribution information is a data network name DNN;

[0020] Determine, by the SMF, based on the fourth attribution information of the terminal in the PDU session creation request, a fifth candidate identifier and determine that the attribution information included in the constraint condition of the fifth candidate identifier is the fourth attribution information, and the fourth attribution information is the DNN and single network slice selection auxiliary information S-NSSAI;

[0021] The SMF determines the pre-configured master clock identifier as the sixth candidate identifier based on the PDU session creation request, and the constraint condition of the sixth candidate identifier includes the affiliation information of the fifth affiliation information, and the fifth affiliation information is used to indicate that it matches any affiliation information.

[0022] Optionally, before sending the first timing message to the first downstream device, the method further includes:

[0023] Receiving a message forwarding control protocol PFCP association message sent by the SMF through a user plane function UPF, wherein the PFCP association message carries the target identifier and a constraint condition of the target identifier;

[0024] The UPF determines, among the downstream devices of the UPF, a downstream device whose affiliation information matches the affiliation information of the target identifier as the first downstream device.

[0025] Optionally, the constraint condition of each candidate identifier includes a priority of each candidate identifier, and the determining of the target identifier from the at least one candidate identifier by the SMF based on the constraint condition of each candidate identifier includes:

[0026] Determining the target identifier from the at least one candidate identifier by the SMF based on the priority of each candidate identifier;

[0027] Before sending the first timing message to the first downstream device, the method further includes:

[0028] Receiving, through the UPF, a PFCP association message sent by the SMF, the PFCP association message carrying the at least one candidate identifier and a constraint condition of each candidate identifier in the at least one candidate identifier;

[0029] Determining the target identifier by the UPF based on the priority of each candidate identifier;

[0030] The UPF determines, among the downstream devices of the UPF, a downstream device whose affiliation information matches the affiliation information of the target identifier as the first downstream device.

[0031] Optionally, the network side device includes a base station and a UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and before sending the first timing message to the first downstream device, the method further includes:

[0032] The base station broadcasts target signaling carrying the target identifier, so that the terminal obtains the target identifier based on the target signaling.

[0033] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0034] In a second aspect, an embodiment of the present invention provides a timing method, applied to a terminal, the method comprising:

[0035] Sending a second timing message to the second downstream device;

[0036] Among them, the master clock identifier in the second timing message is a target identifier, and the target identifier is the same as the master clock identifier in the first timing message sent by the network side device to the first downstream device, the first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

[0037] Optionally, before sending the second timing message to the second downstream device, the method further includes:

[0038] Sending a protocol data unit (PDU) session creation request to the network side device, wherein the PDU session creation request includes information requesting the target identifier;

[0039] Receive a PDU session creation success response message sent by the network side device, wherein the PDU session creation success response message carries the target identifier.

[0040] Optionally, the network side device includes a base station and a user plane function UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and before sending the second timing message to the second downstream device, the method further includes:

[0041] Receiving target signaling carrying the target identifier broadcast by a base station;

[0042] The target identifier is obtained based on the target signaling.

[0043] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0044] In a third aspect, an embodiment of the present invention provides a timing device, including:

[0045] A first sending module, used for sending a first timing message to a first downstream device;

[0046] Among them, the master clock identifier in the first timing message is the target identifier, and the target identifier is the same as the master clock identifier in the second timing message sent by the terminal to the second downstream device. The first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

[0047] Optionally, the device further comprises:

[0048] A first receiving module is used to receive a protocol data unit PDU session creation request sent by the terminal, wherein the PDU session creation request includes information requesting the target identifier;

[0049] A first determining module, configured to determine the target identifier based on the PDU session creation request;

[0050] The second sending module is used to send a PDU session creation success response message carrying the target identifier to the terminal.

[0051] Optionally, the first determining module is specifically configured to:

[0052] Determine, based on the PDU session creation request, at least one candidate identifier and a constraint condition of each of the at least one candidate identifier;

[0053] The target identifier is determined from the at least one candidate identifier based on the constraint condition of each candidate identifier by a session management function SMF.

[0054] Optionally, the first determining module is specifically configured to perform at least one of the following:

[0055] Based on the first affiliation information of the terminal in the PDU session creation request, a unified data management function UDM signs a first candidate identifier and determines that the affiliation information included in the constraint condition of the first candidate identifier is the first affiliation information, and the first affiliation information is 5G local area network virtual network LAN VN group information;

[0056] Determine, by the SMF, a second candidate identifier based on the first attribution information and determine that the attribution information included in the constraint condition of the second candidate identifier is the first attribution information;

[0057] Determine, by the SMF, based on the second attribution information of the terminal in the PDU session creation request, a third candidate identifier and determine that the attribution information included in the constraint condition of the third candidate identifier is the second attribution information, and the second attribution information is network instance NetworkInstance information;

[0058] Determine, by the SMF, based on the third attribution information of the terminal in the PDU session creation request, a fourth candidate identifier and determine that the attribution information included in the constraint condition of the fourth candidate identifier is the third attribution information, and the third attribution information is a data network name DNN;

[0059] Determine, by the SMF, based on the fourth attribution information of the terminal in the PDU session creation request, a fifth candidate identifier and determine that the attribution information included in the constraint condition of the fifth candidate identifier is the fourth attribution information, and the fourth attribution information is the DNN and single network slice selection auxiliary information S-NSSAI;

[0060] The SMF determines the pre-configured master clock identifier as the sixth candidate identifier based on the PDU session creation request, and the constraint condition of the sixth candidate identifier includes the affiliation information of the fifth affiliation information, and the fifth affiliation information is used to indicate that it matches any affiliation information.

[0061] Optionally, the device further comprises:

[0062] A second receiving module is used to receive a message forwarding control protocol PFCP association message sent by the SMF through a user plane function UPF, where the PFCP association message carries the target identifier and the constraint condition of the target identifier;

[0063] The second determination module is used to determine, through the UPF, a downstream device of the UPF whose affiliation information matches the affiliation information of the target identifier as the first downstream device.

[0064] Optionally, the constraint condition of each candidate identifier includes a priority of each candidate identifier, and the first determining module is specifically configured to:

[0065] Determining the target identifier from the at least one candidate identifier by the SMF based on the priority of each candidate identifier;

[0066] The device also includes:

[0067] A third receiving module is used to receive a PFCP association message sent by the SMF through the UPF, where the PFCP association message carries the at least one candidate identifier and a constraint condition of each candidate identifier in the at least one candidate identifier;

[0068] A third determination module, configured to determine the target identifier based on the priority of each candidate identifier through the UPF;

[0069] The fourth determination module is used to determine, through the UPF, a downstream device among the downstream devices of the UPF, whose affiliation information matches the affiliation information of the target identifier as the first downstream device.

[0070] Optionally, the network side device includes a base station and a UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and the apparatus further includes:

[0071] The broadcast module is used to broadcast the target signaling carrying the target identifier through the base station, so that the terminal obtains the target identifier based on the target signaling.

[0072] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0073] In a fourth aspect, an embodiment of the present invention provides a timing device, including:

[0074] A first sending module, used for sending a second timing message to a second downstream device;

[0075] Among them, the master clock identifier in the second timing message is a target identifier, and the target identifier is the same as the master clock identifier in the first timing message sent by the network side device to the first downstream device, the first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

[0076] Optionally, the device further comprises:

[0077] A second sending module is used to send a protocol data unit PDU session creation request to the network side device, wherein the PDU session creation request includes information requesting the target identifier;

[0078] The first receiving module is used to receive a PDU session creation success response message sent by the network side device, and the PDU session creation success response message carries the target identifier.

[0079] Optionally, the network side device includes a base station and a user plane function UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and the apparatus further includes:

[0080] A second receiving module, used to receive a target signaling carrying the target identifier broadcast by a base station;

[0081] An acquisition module is used to acquire the target identifier based on the target signaling.

[0082] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0083] In a fifth aspect, an embodiment of the present invention provides a network side device, including a processor and a transceiver.

[0084] The transceiver is used to send a first timing message to the first downstream device;

[0085] Among them, the master clock identifier in the first timing message is the target identifier, and the target identifier is the same as the master clock identifier in the second timing message sent by the terminal to the second downstream device. The first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

[0086] Optionally, the transceiver is further used to receive a protocol data unit PDU session creation request sent by the terminal, wherein the PDU session creation request includes information requesting the target identifier;

[0087] The processor is configured to determine the target identifier based on the PDU session creation request;

[0088] The transceiver is further used to send a PDU session creation success response message carrying the target identifier to the terminal.

[0089] Optionally, the processor is specifically configured to:

[0090] Determine, based on the PDU session creation request, at least one candidate identifier and a constraint condition of each of the at least one candidate identifier;

[0091] The target identifier is determined from the at least one candidate identifier based on the constraint condition of each candidate identifier by a session management function SMF.

[0092] Optionally, the processor is specifically configured to perform at least one of the following:

[0093] Based on the first belonging information of the terminal in the PDU session creation request, a unified data management function UDM signs a first candidate identifier and determines that the belonging information included in the constraint condition of the first candidate identifier is the first belonging information, and the first belonging information is 5G local area network virtual network LAN VN group information;

[0094] Determine, by the SMF, a second candidate identifier based on the first attribution information and determine that the attribution information included in the constraint condition of the second candidate identifier is the first attribution information;

[0095] Determine, by the SMF, based on the second attribution information of the terminal in the PDU session creation request, a third candidate identifier and determine that the attribution information included in the constraint condition of the third candidate identifier is the second attribution information, and the second attribution information is network instance NetworkInstance information;

[0096] Determine, by the SMF, based on the third attribution information of the terminal in the PDU session creation request, a fourth candidate identifier and determine that the attribution information included in the constraint condition of the fourth candidate identifier is the third attribution information, and the third attribution information is a data network name DNN;

[0097] Determine, by the SMF, based on the fourth attribution information of the terminal in the PDU session creation request, a fifth candidate identifier and determine that the attribution information included in the constraint condition of the fifth candidate identifier is the fourth attribution information, and the fourth attribution information is the DNN and single network slice selection auxiliary information S-NSSAI;

[0098] The SMF determines the pre-configured master clock identifier as the sixth candidate identifier based on the PDU session creation request, and the constraint condition of the sixth candidate identifier includes the affiliation information of the fifth affiliation information, and the fifth affiliation information is used to indicate that it matches any affiliation information.

[0099] Optionally, the transceiver is further used to receive a message forwarding control protocol PFCP association message sent by the SMF through a user plane function UPF, wherein the PFCP association message carries the target identifier and a constraint condition of the target identifier;

[0100] The processor is further configured to determine, through the UPF, a downstream device among downstream devices of the UPF, whose attribution information matches the attribution information of the target identifier as the first downstream device.

[0101] Optionally, the constraint condition of each candidate identifier includes a priority of each candidate identifier, and the processor is specifically configured to:

[0102] Determining the target identifier from the at least one candidate identifier by the SMF based on the priority of each candidate identifier;

[0103] The transceiver is further used to receive a PFCP association message sent by the SMF through the UPF, where the PFCP association message carries the at least one candidate identifier and a constraint condition of each candidate identifier in the at least one candidate identifier;

[0104] The processor is further configured to determine the target identifier based on the priority of each candidate identifier through the UPF;

[0105] The processor is further configured to determine, through the UPF, a downstream device among downstream devices of the UPF, whose attribution information matches the attribution information of the target identifier as the first downstream device.

[0106] Optionally, the network side device includes a base station and a UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and the transceiver is also used to broadcast target signaling carrying the target identifier through the base station, so that the terminal obtains the target identifier based on the target signaling.

[0107] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0108] In a sixth aspect, an embodiment of the present invention provides a terminal, including a processor and a transceiver.

[0109] The transceiver is used to send a second timing message to the second downstream device;

[0110] Among them, the master clock identifier in the second timing message is a target identifier, and the target identifier is the same as the master clock identifier in the first timing message sent by the network side device to the first downstream device, the first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

[0111] Optionally, the transceiver is further used to send a protocol data unit PDU session creation request to the network side device, wherein the PDU session creation request includes information requesting the target identifier;

[0112] The transceiver is also used to receive a PDU session creation success response message sent by the network side device, and the PDU session creation success response message carries the target identifier.

[0113] Optionally, the network side device includes a base station and a user plane function UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and the transceiver is further used to receive target signaling carrying the target identifier broadcast by the base station;

[0114] The processor is further configured to obtain the target identifier based on the target signaling.

[0115] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0116] In the seventh aspect, an embodiment of the present invention provides a network side device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the timing method described in the first aspect are implemented.

[0117] In an eighth aspect, an embodiment of the present invention provides a terminal, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the timing method described in the second aspect.

[0118] In the ninth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the time synchronization method as described in the first aspect are implemented; or, when the computer program is executed by a processor, the steps of the time synchronization method as described in the second aspect are implemented.

[0119] In an embodiment of the present invention, a network side device sends a first timing message to a first downstream device, and a master clock identifier in the first timing message is a target identifier, which is the same as a master clock identifier in a second timing message sent by the terminal to a second downstream device. Thus, the master clock identifiers in the timing messages respectively received by the first downstream device and the second downstream device are the same, so that the first downstream device and the second downstream device can be located in the same clock domain. BRIEF DESCRIPTION OF THE DRAWINGS

[0120] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0121] Figure 1 This is one of the flow charts of a timing method provided by an embodiment of the present invention;

[0122] Figure 2 This is one of the flow charts of a timing example provided by an embodiment of the present invention;

[0123] Figure 3 This is the second flowchart of a timing example provided by an embodiment of the present invention;

[0124] Figure 4 This is a flowchart of a timing example provided by an embodiment of the present invention;

[0125] Figure 5 This is a second flow chart of a timing method provided by an embodiment of the present invention;

[0126] Figure 6 This is one of the structural schematic diagrams of a timing device provided by an embodiment of the present invention;

[0127] Figure 7This is a second structural diagram of a timing device provided by an embodiment of the present invention;

[0128] Figure 8 It is a structural diagram of a network side device provided by an embodiment of the present invention;

[0129] Fig. 9 It is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0130] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0131] The following first describes the relevant contents of the present invention.

[0132] 3GPP defines a mechanism for time synchronization based on the time-sensitive network architecture of DS-TT / NW-TT. The time-sensitive network architecture needs to introduce new network elements such as time-sensitive network application function (TSN AF), TSC or TSF, which will have a certain impact on other network elements, and the business process is more complicated, and the cost of commercial deployment in the existing network is high.

[0133] 3GPP also defines a time synchronization mechanism based on the 5G Grandmaster Clock (GM) as the main clock source for external service timing, which simplifies the network architecture and implementation difficulty of time synchronization. Based on the main clock source, external timing is mainly for the terminal (User Equipment, UE) to obtain 5G time through the SIB9 signaling broadcast by the 5G base station, and the user plane function (UPF) in the network side equipment obtains 5G time from the transmission network. Based on the obtained 5G time, the UE and UPF respectively perform timing to their respective downstream devices, so that the terminal's downstream devices and the UPF's downstream devices obtain time synchronized with the 5G clock. However, the terminal and UPF usually obtain different master clock identifiers based on their respective standards, and send different master clock identifiers to their respective downstream devices. At present, in some practical application scenarios (such as industrial automation control, especially motion control), in order to ensure the security and isolation of time synchronization, the terminal's downstream devices (such as servo drives) and the UPF's downstream devices (such as programmable logic controllers (PLC)) will verify the consistency of the master clock identifier. If the master clock identifier obtained by the terminal's downstream device is different from that of the UPF's downstream device, it is considered that the terminal's downstream device and the UPF's downstream device are not in the same clock domain, and normal business communication and control will not be possible between the devices.

[0134] In an embodiment of the present invention, a timing method, apparatus and related equipment are proposed to solve the problem that the downstream device of the terminal and the downstream device of the network side are not in the same clock domain, which affects the communication between the downstream device of the terminal and the downstream device of the network side.

[0135] See also Figure 1 , Figure 1 This is one of the flow charts of a timing method provided by an embodiment of the present invention, which is used for a network side device, such as Figure 1 As shown, the method comprises the following steps:

[0136] Step 101: Send a first timing message to a first downstream device;

[0137] Among them, the master clock identifier in the first timing message is the target identifier, and the target identifier is the same as the master clock identifier in the second timing message sent by the terminal to the second downstream device. The first downstream device is the downstream device of the network side device, and the second downstream device is the downstream device of the terminal.

[0138] In step 101, the first downstream device is a downstream device of the UPF in the network side device, and the network side device synchronizes time to the first downstream device, specifically, the UPF in the network side device sends a first timing message to the first downstream device. Among them, the UPF can send the first timing message to the first downstream device based on the generalized precision time protocol (gPTP) 802.1AS or the Precision Timing Protocol (PTP) 1588, and the first timing message includes an Announce message. The master clock identifier in the first timing message is the target identifier, mainly because the grandmasterIdentity field in the Announce message takes the value of the target identifier.

[0139] The second downstream device is a downstream device of the terminal, and the terminal can perform timing on the second downstream device based on gPTP 802.1AS or PTP 1588, and send a second timing message to the second downstream device. The master clock identifier in the second timing message is the same as the target identifier, that is, the grandmasterIdentity field in the Announce message included in the first timing message and the second timing message respectively has the same value.

[0140] The UPF and the terminal send the same Grandmaster Identity (GMID) to the first and second downstream devices respectively, so that the first and second downstream devices can receive the same GMID, so that the first and second downstream devices are located in the same clock domain, which can meet the verification requirements of the downstream devices on both sides for GMID. Among them, GMID can also be called 5G GMID.

[0141] In the embodiment of the present invention, the UPF and the terminal send the same GMID to the first downstream device and the second downstream device respectively, so that the first downstream device and the second downstream device can be located in the same clock domain, and the verification requirements of the downstream devices on both sides for GMID can be met.

[0142] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0143] See also Figure 2In this implementation, both the UPF and the UE support obtaining the GMID through local configuration, and support passing the GMID to their respective downstream devices in the timing message. The GMIDs configured locally by the UPF and the UE in the embodiment of the present invention are the same (both are target identifiers), so that the UPF and the UE can pass the same GMID to the first downstream device and the second downstream device, respectively.

[0144] In the embodiment of the present invention, the same GMID is pre-configured in UPF and UE, so that UPF and UE can respectively transmit the same GMID to their respective downstream devices, and the process is simple and easy to implement in actual application scenarios.

[0145] Optionally, the network side device includes a base station and a UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and before sending the first timing message to the first downstream device, the method further includes:

[0146] The base station broadcasts target signaling carrying the target identifier, so that the terminal obtains the target identifier based on the target signaling.

[0147] See also Figure 3 , the base station and UPF support obtaining the same 5G GMID (i.e., target identifier) ​​through local configuration. Before the UPF performs timing on the first downstream device, the base station broadcasts a target signaling carrying the target identifier, and the UE obtains the target identifier through the target signaling broadcast by the base station. Among them, the target signaling can be SIB9 signaling.

[0148] In the embodiment of the present invention, the same 5G GMID is locally configured in the base station and UPF, and the base station supports passing the locally configured 5G GMID to the UE through target signaling, so that the 5G GMID obtained by the UE is the same as the 5G GMID locally configured by the UPF, and then the UPF and the UE can respectively pass the same GMID to their respective downstream devices. In the embodiment of the present invention, the process of the UE and UPF obtaining the same 5G GMID is simple and easy to implement in actual application scenarios.

[0149] Optionally, before sending the first timing message to the first downstream device, the method further includes:

[0150] receiving a protocol data unit (PDU) session creation request sent by the terminal, wherein the PDU session creation request includes information requesting the target identifier;

[0151] Determining the target identifier based on the PDU session creation request;

[0152] A PDU session creation success response message carrying the target identifier is sent to the terminal.

[0153] See also Figure 4 , the UE sends a PDU session establishment request (session establishment request) to the session management function (SMF) in the network side device, and the PDU session establishment request includes the information of the requested target identifier. Among them, the UE can send a PDU session creation request to the SMF through NAS signaling, and the information of the requested target identifier can be but is not limited to the 5GSMcapability field in the PDU session establishment request message indicating that the UE supports time synchronization capability, and the SMF is required to provide the 5G GMID to the UE.

[0154] The SMF determines the target identifier based on the UE's PDU session creation request, and can carry the target identifier to the UE in the PDU session establishment accept response message via NAS signaling.

[0155] In this implementation, the PDU session creation request sent by the UE to the network side device includes information requesting the target identifier. The network side device can determine the target identifier based on the PDU session creation request, and can pass the target identifier to the UE through a PDU session establishment accept response message. Before the UE's downstream device communicates with the downstream device of the network side device, the UE and the network side device need to establish a PDU session. Through the above method, when the UE requests to create a PDU session, the target identifier can be obtained in time based on the PDU session creation success response message sent by the network side device. In this way, the UE and the network side device can also pass the target identifier to their respective downstream devices in time, meeting the verification requirements of the target identifiers of the downstream devices on both sides when they need to communicate later.

[0156] Optionally, the determining the target identifier based on the PDU session request includes:

[0157] Determine, based on the PDU session creation request, at least one candidate identifier and a constraint condition of each of the at least one candidate identifier;

[0158] The target identifier is determined from the at least one candidate identifier based on the constraint condition of each candidate identifier by a session management function SMF.

[0159] In this implementation, the constraint condition is, for example, the priority of each candidate identifier. In the embodiment of the present invention, the constraint condition can be customized, and the target identifier is determined from at least one candidate identifier through the constraint condition, which is conducive to improving the flexibility of the target identifier.

[0160] Optionally, the determining, based on the PDU session creation request, at least one candidate identifier and a constraint condition of each of the at least one candidate identifier comprises at least one of the following:

[0161] Based on the first affiliation information of the terminal in the PDU session creation request, a first candidate identifier is signed and the affiliation information included in the constraint condition of the first candidate identifier is determined to be the first affiliation information through a unified data management function (UDM), and the first affiliation information is 5G local area network virtual network (LAN VN) group information;

[0162] Determine, by SMF, a second candidate identifier based on the first attribution information, and determine that the attribution information included in the constraint condition of the second candidate identifier is the first attribution information;

[0163] Determine, by SMF, a third candidate identifier based on the second attribution information of the terminal in the PDU session creation request, and determine that the attribution information included in the constraint condition of the third candidate identifier is the second attribution information, where the second attribution information is network instance information;

[0164] Determine, by SMF, a fourth candidate identifier based on the third attribution information of the terminal in the PDU session creation request, and determine that the attribution information included in the constraint condition of the fourth candidate identifier is the third attribution information, and the third attribution information is a data network name (Data Network Name, DNN);

[0165] Determine, by SMF, based on the fourth attribution information of the terminal in the PDU session creation request, a fifth candidate identifier and determine that the attribution information included in the constraint condition of the fifth candidate identifier is the fourth attribution information, and the fourth attribution information is the DNN and single network slice selection assistance information (Single Network Slice Selection Assistance Information, S-NSSAI);

[0166] Based on the PDU session creation request, the SMF determines the pre-configured master clock identifier as the sixth candidate identifier, and the constraint condition of the sixth candidate identifier includes the fifth attribution information, and the fifth attribution information is used to indicate that it matches any attribution information.

[0167] The first affiliation information is the 5G LAN VN group information to which the UE belongs. The UDM signs a contract with the first candidate identifier based on the first affiliation information of the terminal in the PDU session creation request. The affiliation information included in the constraint conditions of the first candidate identifier is the first affiliation information, that is, the 5G LAN VN group information included in the constraint conditions of the first candidate identifier is consistent with the 5G LAN VN group information of the terminal. After the UDM determines the first candidate identifier and the constraint conditions of the first candidate identifier, the first candidate identifier and the constraint conditions of the first candidate identifier can be sent to the SMF through the signing information, and the SMF determines the target identifier from the candidate identifiers based on the candidate identifier and the constraint conditions of the candidate identifier.

[0168] SMF can also determine the second candidate identifier based on the first affiliation information of the terminal, and determine that the affiliation information included in the constraint conditions of the second candidate identifier is the first affiliation information, that is, the 5GLAN VN group information included in the constraint conditions of the second candidate identifier is consistent with the 5G LAN VN group information corresponding to the terminal.

[0169] The SMF can also determine the third candidate identifier based on the second attribution information of the terminal, and determine that the attribution information included in the constraint conditions of the third candidate identifier is the second attribution information, that is, the NetworkInstance information included in the constraint conditions of the third candidate identifier is consistent with the NetworkInstance information corresponding to the terminal.

[0170] The SMF can also determine the fourth candidate identifier based on the third attribution information of the terminal, and determine that the attribution information included in the constraint conditions of the fourth candidate identifier is the third attribution information, that is, the DNN included in the constraint conditions of the fourth candidate identifier is consistent with the DNN corresponding to the terminal.

[0171] The SMF can also determine the fifth candidate identifier based on the fourth attribution information of the terminal, and determine that the attribution information included in the constraint conditions of the fifth candidate identifier is the fourth attribution information, that is, the DNN and S-NSSAI included in the constraint conditions of the fifth candidate identifier are consistent with the DNN and S-NSSAI corresponding to the terminal.

[0172] SMF can also determine the pre-configured master clock identifier as the sixth candidate identifier, and determine that the attribution information included in the constraint conditions of the sixth candidate identifier is the fifth attribution information, and the fifth attribution information is used to indicate that it matches any attribution information, that is, the attribution information of any downstream device of the UPF matches the fifth attribution information.

[0173] The embodiment of the present invention can determine the candidate identifiers in a variety of ways, which is conducive to improving the flexibility of determining the candidate identifiers.

[0174] Optionally, before sending the first timing message to the first downstream device, the method further includes:

[0175] Receiving, through the UPF, a Packet Forwarding Control Protocol (PFCP) association message sent by the SMF, wherein the PFCP association message carries the target identifier and a constraint condition of the target identifier;

[0176] The UPF determines, among the downstream devices of the UPF, a downstream device whose affiliation information matches the affiliation information of the target identifier as the first downstream device.

[0177] After the SMF determines the target identifier, it can send a PFCP association message carrying the target identifier and the constraint conditions of the target identifier to the UPF through the N4 interface. The PFCP association message can specifically be one of the following:

[0178] PFCP Association Setup Request message when SMF initiates PFCP Association establishment;

[0179] PFCP Association Update request message initiated by SMF;

[0180] PFCP Association Setup response message when UPF initiates PFCP Association establishment;

[0181] PFCP Association Update response message when UPF initiates PFCP Association update.

[0182] After the UPF receives the target identifier and the constraint conditions of the target identifier, the UPF determines the downstream device whose ownership information matches the ownership information of the target identifier among the downstream devices of the UPF as the first downstream device. The ownership information of the target identifier is consistent with the ownership information of the terminal, and the ownership information of the first downstream device matches the ownership information of the target identifier, so that the ownership information of the first downstream device matches the ownership information of the terminal, and then the first downstream device is a device among the downstream devices of the UPF that may communicate with the downstream device of the terminal (i.e., the second downstream device).

[0183] Taking the above-mentioned first candidate identifier as the target identifier as an example, the target identifier's affiliation information and the terminal's affiliation information are the same 5G LAN VN group information, and the target identifier's 5G LAN VN group information matches the 5G LAN VN group information of the first downstream device, so that the first downstream device matches the 5G LAN VN group information of the terminal, and the terminal and the first downstream device belong to the same 5G LAN VN group, and the terminal's second downstream device may communicate with the first downstream device.

[0184] In an embodiment of the present invention, when the UPF includes multiple downstream devices, the above method can be used to determine the first downstream device that will communicate with the second downstream device, pass the target identifier to the first downstream device through the UPF, pass the target identifier to the terminal through the SMF, and the terminal passes it to the second downstream device, which can satisfy the consistency verification of the master clock identifier by the first downstream device and the second downstream device.

[0185] Optionally, the constraint condition of each candidate identifier includes a priority of each candidate identifier, and the determining of the target identifier from the at least one candidate identifier by the SMF based on the constraint condition of each candidate identifier includes:

[0186] Determining the target identifier from the at least one candidate identifier by the SMF based on the priority of each candidate identifier;

[0187] Before sending the first timing message to the first downstream device, the method further includes:

[0188] Receiving, through the UPF, a PFCP association message sent by the SMF, the PFCP association message carrying the at least one candidate identifier and a constraint condition of each candidate identifier in the at least one candidate identifier;

[0189] Determining the target identifier by the UPF based on the priority of each candidate identifier;

[0190] The UPF determines, among the downstream devices of the UPF, a downstream device whose affiliation information matches the affiliation information of the target identifier as the first downstream device.

[0191] In this implementation, the SMF may determine the target identifier from at least one candidate identifier based on the priority of each candidate identifier.

[0192] See also Figure 4, SMF can send at least one candidate identifier and the constraint conditions corresponding to each candidate identifier to UPF through a PFCP association message, and UPF determines the target identifier based on the priority in the constraint conditions corresponding to each candidate identifier. After determining the target identifier, based on the attribution information of the target identifier, the first downstream device whose attribution information matches the attribution information of the target identifier is determined from all downstream devices of UPF.

[0193] It should be noted that the matching of the PFCP association message and the attribution information in this embodiment can refer to the above embodiment, and to avoid repetition, it will not be described again.

[0194] In an embodiment of the present invention, when the UPF includes multiple downstream devices, the above method can be used to determine the first downstream device that will communicate with the second downstream device, pass the target identifier to the first downstream device through the UPF, pass the target identifier to the terminal through the SMF, and the terminal passes it to the second downstream device, which can satisfy the consistency verification of the master clock identifier by the first downstream device and the second downstream device.

[0195] See also Figure 5 , Figure 5 This is a second flowchart of a timing method provided by an embodiment of the present invention, which is applied to a terminal, and the method includes:

[0196] Step 201: Send a second timing message to a second downstream device;

[0197] Among them, the master clock identifier in the second timing message is a target identifier, and the target identifier is the same as the master clock identifier in the first timing message sent by the network side device to the first downstream device, the first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

[0198] Optionally, before sending the second timing message to the second downstream device, the method further includes:

[0199] Sending a protocol data unit (PDU) session creation request to the network side device, wherein the PDU session creation request includes information requesting the target identifier;

[0200] Receive a PDU session creation success response message sent by the network side device, wherein the PDU session creation success response message carries the target identifier.

[0201] Optionally, the network side device includes a base station and a user plane function UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and before sending the second timing message to the second downstream device, the method further includes:

[0202] Receiving target signaling carrying the target identifier broadcast by a base station;

[0203] The target identifier is obtained based on the target signaling.

[0204] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0205] It should be noted that this embodiment is Figure 1 The implementation method of the corresponding terminal in the embodiment shown in the figure can be found in the specific implementation method. Figure 1 In order to avoid repeated description, the relevant description of the embodiment shown will not be repeated in this embodiment, and the same beneficial effects can still be achieved.

[0206] See also Figure 6 , Figure 6 : is a structural diagram of a timing device provided by an embodiment of the present invention, wherein the timing device 300 includes:

[0207] A first sending module 301 is used to send a first timing message to a first downstream device;

[0208] Among them, the master clock identifier in the first timing message is the target identifier, and the target identifier is the same as the master clock identifier in the second timing message sent by the terminal to the second downstream device. The first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

[0209] Optionally, the device further comprises:

[0210] A first receiving module is used to receive a protocol data unit PDU session creation request sent by the terminal, wherein the PDU session creation request includes information requesting the target identifier;

[0211] A first determining module, configured to determine the target identifier based on the PDU session creation request;

[0212] The second sending module is used to send a PDU session creation success response message carrying the target identifier to the terminal.

[0213] Optionally, the first determining module is specifically configured to:

[0214] Determine, based on the PDU session creation request, at least one candidate identifier and a constraint condition of each of the at least one candidate identifier;

[0215] The target identifier is determined from the at least one candidate identifier based on the constraint condition of each candidate identifier by a session management function SMF.

[0216] Optionally, the first determining module is specifically configured to perform at least one of the following:

[0217] Based on the first belonging information of the terminal in the PDU session creation request, a unified data management function UDM signs a first candidate identifier and determines that the belonging information included in the constraint condition of the first candidate identifier is the first belonging information, and the first belonging information is 5G local area network virtual network LAN VN group information;

[0218] Determine, by the SMF, a second candidate identifier based on the first attribution information and determine that the attribution information included in the constraint condition of the second candidate identifier is the first attribution information;

[0219] Determine, by the SMF, based on the second attribution information of the terminal in the PDU session creation request, a third candidate identifier and determine that the attribution information included in the constraint condition of the third candidate identifier is the second attribution information, and the second attribution information is network instance NetworkInstance information;

[0220] Determine, by the SMF, based on the third attribution information of the terminal in the PDU session creation request, a fourth candidate identifier and determine that the attribution information included in the constraint condition of the fourth candidate identifier is the third attribution information, and the third attribution information is a data network name DNN;

[0221] Determine, by the SMF, based on the fourth attribution information of the terminal in the PDU session creation request, a fifth candidate identifier and determine that the attribution information included in the constraint condition of the fifth candidate identifier is the fourth attribution information, and the fourth attribution information is the DNN and single network slice selection auxiliary information S-NSSAI;

[0222] The SMF determines the pre-configured master clock identifier as the sixth candidate identifier based on the PDU session creation request, and the constraint condition of the sixth candidate identifier includes the affiliation information of the fifth affiliation information, and the fifth affiliation information is used to indicate that it matches any affiliation information.

[0223] Optionally, the device further comprises:

[0224] A second receiving module is used to receive a message forwarding control protocol PFCP association message sent by the SMF through a user plane function UPF, where the PFCP association message carries the target identifier and the constraint condition of the target identifier;

[0225] The second determination module is used to determine, through the UPF, a downstream device of the UPF whose affiliation information matches the affiliation information of the target identifier as the first downstream device.

[0226] Optionally, the constraint condition of each candidate identifier includes a priority of each candidate identifier, and the first determining module is specifically configured to:

[0227] Determining the target identifier from the at least one candidate identifier by the SMF based on the priority of each candidate identifier;

[0228] The device also includes:

[0229] A third receiving module is used to receive a PFCP association message sent by the SMF through the UPF, where the PFCP association message carries the at least one candidate identifier and a constraint condition of each candidate identifier in the at least one candidate identifier;

[0230] A third determination module, configured to determine the target identifier based on the priority of each candidate identifier through the UPF;

[0231] The fourth determination module is used to determine, through the UPF, a downstream device among the downstream devices of the UPF, whose affiliation information matches the affiliation information of the target identifier as the first downstream device.

[0232] Optionally, the network side device includes a base station and a UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and the apparatus further includes:

[0233] The broadcast module is used to broadcast the target signaling carrying the target identifier through the base station, so that the terminal obtains the target identifier based on the target signaling.

[0234] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0235] It should be noted that the timing device 300 in the embodiment of the present invention can achieve Figure 1 The various processes implemented by the network side device in the method embodiment shown can achieve the same beneficial effects, and will not be described again here to avoid repetition.

[0236] See also Figure 7 , Figure 7 FIG. 2 is a structural diagram of a timing device provided by an embodiment of the present invention. The timing device 400 includes:

[0237] The first sending module 401 is used to send a second timing message to a second downstream device;

[0238] Among them, the master clock identifier in the second timing message is a target identifier, and the target identifier is the same as the master clock identifier in the first timing message sent by the network side device to the first downstream device, the first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

[0239] Optionally, the device further comprises:

[0240] A second sending module is used to send a protocol data unit PDU session creation request to the network side device, wherein the PDU session creation request includes information requesting the target identifier;

[0241] The first receiving module is used to receive a PDU session creation success response message sent by the network side device, and the PDU session creation success response message carries the target identifier.

[0242] Optionally, the network side device includes a base station and a user plane function UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and the apparatus further includes:

[0243] A second receiving module, used to receive a target signaling carrying the target identifier broadcast by a base station;

[0244] An acquisition module is used to acquire the target identifier based on the target signaling.

[0245] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0246] It should be noted that the timing device 400 in the embodiment of the present invention can achieve Figure 5 The various processes implemented by the terminal in the method embodiment shown can achieve the same beneficial effects, and will not be described again here to avoid repetition.

[0247] An embodiment of the present invention also provides a network side device, including: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, the various processes of the above-mentioned timing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0248] For details, see Figure 8As shown, an embodiment of the present invention further provides a network side device, including a bus 501 , a transceiver 502 , an antenna 503 , a bus interface 504 , a processor 505 and a memory 506 .

[0249] The 502 is used to send a first timing message to the first downstream device;

[0250] Among them, the master clock identifier in the first timing message is the target identifier, and the target identifier is the same as the master clock identifier in the second timing message sent by the terminal to the second downstream device. The first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

[0251] Optionally, the transceiver 502 is further configured to receive a protocol data unit (PDU) session creation request sent by the terminal, wherein the PDU session creation request includes information requesting the target identifier;

[0252] The processor 505 is configured to determine the target identifier based on the PDU session creation request;

[0253] The transceiver 502 is further configured to send a PDU session creation success response message carrying the target identifier to the terminal.

[0254] Optionally, the processor 505 is specifically configured to:

[0255] Determine, based on the PDU session creation request, at least one candidate identifier and a constraint condition of each of the at least one candidate identifier;

[0256] The target identifier is determined from the at least one candidate identifier based on the constraint condition of each candidate identifier by a session management function SMF.

[0257] Optionally, the processor 505 is specifically configured to perform at least one of the following:

[0258] Based on the first belonging information of the terminal in the PDU session creation request, a unified data management function UDM signs a first candidate identifier and determines that the belonging information included in the constraint condition of the first candidate identifier is the first belonging information, and the first belonging information is 5G local area network virtual network LAN VN group information;

[0259] Determine, by the SMF, a second candidate identifier based on the first attribution information and determine that the attribution information included in the constraint condition of the second candidate identifier is the first attribution information;

[0260] Determine, by the SMF, based on the second attribution information of the terminal in the PDU session creation request, a third candidate identifier and determine that the attribution information included in the constraint condition of the third candidate identifier is the second attribution information, and the second attribution information is network instance NetworkInstance information;

[0261] Determine, by the SMF, based on the third attribution information of the terminal in the PDU session creation request, a fourth candidate identifier and determine that the attribution information included in the constraint condition of the fourth candidate identifier is the third attribution information, and the third attribution information is a data network name DNN;

[0262] Determine, by the SMF, based on the fourth attribution information of the terminal in the PDU session creation request, a fifth candidate identifier and determine that the attribution information included in the constraint condition of the fifth candidate identifier is the fourth attribution information, and the fourth attribution information is the DNN and single network slice selection auxiliary information S-NSSAI;

[0263] The SMF determines the pre-configured master clock identifier as the sixth candidate identifier based on the PDU session creation request, and the constraint condition of the sixth candidate identifier includes the affiliation information of the fifth affiliation information, and the fifth affiliation information is used to indicate that it matches any affiliation information.

[0264] Optionally, the transceiver 502 is further used to receive a message forwarding control protocol PFCP association message sent by the SMF through a user plane function UPF, where the PFCP association message carries the target identifier and a constraint condition of the target identifier;

[0265] The processor 505 is further configured to determine, through the UPF, a downstream device among downstream devices of the UPF, whose attribution information matches the attribution information of the target identifier as the first downstream device.

[0266] Optionally, the constraint condition of each candidate identifier includes a priority of each candidate identifier, and the processor 505 is specifically configured to:

[0267] Determining the target identifier from the at least one candidate identifier by the SMF based on the priority of each candidate identifier;

[0268] The transceiver 502 is further configured to receive, through the UPF, a PFCP association message sent by the SMF, wherein the PFCP association message carries the at least one candidate identifier and a constraint condition of each candidate identifier in the at least one candidate identifier;

[0269] The processor 505 is further configured to determine the target identifier based on the priority of each candidate identifier through the UPF;

[0270] The processor 505 is further configured to determine, through the UPF, a downstream device among downstream devices of the UPF, whose attribution information matches the attribution information of the target identifier as the first downstream device.

[0271] Optionally, the network side device includes a base station and a UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and the transceiver 502 is also used to broadcast target signaling carrying the target identifier through the base station, so that the terminal obtains the target identifier based on the target signaling.

[0272] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0273] exist Figure 8 In the embodiment, the bus architecture (represented by bus 501) is shown, and bus 501 may include any number of interconnected buses and bridges, and bus 501 links various circuits including one or more processors represented by processor 505 and memory represented by memory 506. Bus 501 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 504 provides an interface between bus 501 and transceiver 502. Transceiver 502 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 505 is transmitted on a wireless medium via antenna 503, and further, antenna 503 also receives data and transmits the data to processor 505.

[0274] The processor 505 is responsible for managing the bus 501 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 506 can be used to store data used by the processor 505 when performing operations.

[0275] Optionally, the processor 505 may be a CPU, an ASIC, an FPGA or a CPLD.

[0276] An embodiment of the present invention also provides a terminal, comprising: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, the various processes of the above-mentioned timing embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0277] For details, see Fig. 9 As shown, an embodiment of the present invention further provides a terminal, including a bus 601 , a transceiver 602 , an antenna 603 , a bus interface 604 , a processor 605 and a memory 606 .

[0278] The transceiver 602 is used to send a second timing message to the second downstream device;

[0279] Among them, the master clock identifier in the second timing message is a target identifier, and the target identifier is the same as the master clock identifier in the first timing message sent by the network side device to the first downstream device, the first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

[0280] Optionally, the transceiver 602 is further configured to send a protocol data unit (PDU) session creation request to the network side device, wherein the PDU session creation request includes information requesting the target identifier;

[0281] The transceiver 602 is further configured to receive a PDU session creation success response message sent by the network side device, wherein the PDU session creation success response message carries the target identifier.

[0282] Optionally, the network side device includes a base station and a user plane function UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and the transceiver 602 is further used to receive target signaling carrying the target identifier broadcast by the base station;

[0283] The processor 605 is further configured to obtain the target identifier based on the target signaling.

[0284] Optionally, the network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

[0285] exist Fig. 9In the embodiment, a bus architecture (represented by bus 601) is shown, bus 601 may include any number of interconnected buses and bridges, bus 601 links various circuits including one or more processors represented by processor 605 and memory represented by memory 606. Bus 601 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 604 provides an interface between bus 601 and transceiver 602. Transceiver 602 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 605 is transmitted on a wireless medium via antenna 603, and further, antenna 603 also receives data and transmits the data to processor 605.

[0286] The processor 605 is responsible for managing the bus 601 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 606 can be used to store data used by the processor 605 when performing operations.

[0287] Optionally, the processor 605 may be a CPU, an ASIC, an FPGA or a CPLD.

[0288] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned timing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0289] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0290] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0291] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A timing method, applied to a network side device, characterized in that: The method comprises: Sending a first timing message to a first downstream device; Among them, the master clock identifier in the first timing message is the target identifier, and the target identifier is the same as the master clock identifier in the second timing message sent by the terminal to the second downstream device. The first downstream device is the downstream device of the network side device, and the second downstream device is the downstream device of the terminal.

2. The method according to claim 1, characterized in that Before sending the first timing message to the first downstream device, the method further includes: Receiving a protocol data unit (PDU) session creation request sent by the terminal, wherein the PDU session creation request includes information requesting the target identifier; Determining the target identifier based on the PDU session creation request; A PDU session creation success response message carrying the target identifier is sent to the terminal.

3. The method according to claim 2, characterized in that The determining the target identifier based on the PDU session request includes: Determine, based on the PDU session creation request, at least one candidate identifier and a constraint condition of each of the at least one candidate identifier; The target identifier is determined from the at least one candidate identifier based on the constraint condition of each candidate identifier by a session management function SMF.

4. The method according to claim 3, characterized in that The determining, based on the PDU session creation request, at least one candidate identifier and a constraint condition for each of the at least one candidate identifier comprises at least one of the following: Based on the first affiliation information of the terminal in the PDU session creation request, a unified data management function UDM signs a first candidate identifier and determines that the affiliation information included in the constraint condition of the first candidate identifier is the first affiliation information, and the first affiliation information is 5G local area network virtual network LAN VN group information; Determine, by the SMF, a second candidate identifier based on the first attribution information and determine that the attribution information included in the constraint condition of the second candidate identifier is the first attribution information; Determine, by the SMF, based on the second attribution information of the terminal in the PDU session creation request, a third candidate identifier and determine that the attribution information included in the constraint condition of the third candidate identifier is the second attribution information, and the second attribution information is network instance NetworkInstance information; Determine, by the SMF, based on the third attribution information of the terminal in the PDU session creation request, a fourth candidate identifier and determine that the attribution information included in the constraint condition of the fourth candidate identifier is the third attribution information, and the third attribution information is a data network name DNN; Determine, by the SMF, based on the fourth attribution information of the terminal in the PDU session creation request, a fifth candidate identifier and determine that the attribution information included in the constraint condition of the fifth candidate identifier is the fourth attribution information, and the fourth attribution information is the DNN and single network slice selection auxiliary information S-NSSAI; The SMF determines the pre-configured master clock identifier as the sixth candidate identifier based on the PDU session creation request, and the constraint condition of the sixth candidate identifier includes the affiliation information of the fifth affiliation information, and the fifth affiliation information is used to indicate that it matches any affiliation information.

5. The method according to claim 4, characterized in that Before sending the first timing message to the first downstream device, the method further includes: Receiving a message forwarding control protocol PFCP association message sent by the SMF through a user plane function UPF, wherein the PFCP association message carries the target identifier and a constraint condition of the target identifier; The UPF determines, among the downstream devices of the UPF, a downstream device whose affiliation information matches the affiliation information of the target identifier as the first downstream device.

6. The method according to claim 4, characterized in that The constraint condition of each candidate identifier includes the priority of each candidate identifier, and the determination of the target identifier from the at least one candidate identifier by the SMF based on the constraint condition of each candidate identifier includes: Determining the target identifier from the at least one candidate identifier by the SMF based on the priority of each candidate identifier; Before sending the first timing message to the first downstream device, the method further includes: Receiving, through the UPF, a PFCP association message sent by the SMF, the PFCP association message carrying the at least one candidate identifier and a constraint condition of each candidate identifier in the at least one candidate identifier; Determining the target identifier by the UPF based on the priority of each candidate identifier; The UPF determines, among the downstream devices of the UPF, a downstream device whose affiliation information matches the affiliation information of the target identifier as the first downstream device.

7. The method according to claim 1, characterized in that The network side device includes a base station and a UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and before sending the first timing message to the first downstream device, the method further includes: The base station broadcasts target signaling carrying the target identifier, so that the terminal obtains the target identifier based on the target signaling.

8. The method according to claim 1, characterized in that The network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

9. A timing method, characterized in that: Applied to a terminal, the method comprises: Sending a second timing message to the second downstream device; Among them, the master clock identifier in the second timing message is a target identifier, and the target identifier is the same as the master clock identifier in the first timing message sent by the network side device to the first downstream device, the first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

10. The method according to claim 9, characterized in that Before sending the second timing message to the second downstream device, the method further includes: Sending a protocol data unit (PDU) session creation request to the network side device, wherein the PDU session creation request includes information requesting the target identifier; Receive a PDU session creation success response message sent by the network side device, wherein the PDU session creation success response message carries the target identifier.

11. The method according to claim 9, characterized in that The network side device includes a base station and a user plane function UPF, the UPF is a UPF pre-configured with the target identifier, the base station is a base station pre-configured with the target identifier, and before sending the second timing message to the second downstream device, the method further includes: Receiving target signaling carrying the target identifier broadcast by a base station; The target identifier is obtained based on the target signaling.

12. The method according to claim 9, characterized in that The network side device includes a UPF, the UPF is a UPF pre-configured with the target identifier, and the terminal is a terminal pre-configured with the target identifier.

13. A timing device, characterized in that: include: A first sending module, used for sending a first timing message to a first downstream device; Among them, the master clock identifier in the first timing message is the target identifier, and the target identifier is the same as the master clock identifier in the second timing message sent by the terminal to the second downstream device. The first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

14. A timing device, characterized in that: include: A first sending module, used for sending a second timing message to a second downstream device; Among them, the master clock identifier in the second timing message is a target identifier, and the target identifier is the same as the master clock identifier in the first timing message sent by the network side device to the first downstream device, the first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

15. A network side device, characterized in that: Including processor and transceiver, The transceiver is used to send a first timing message to the first downstream device; Among them, the master clock identifier in the first timing message is the target identifier, and the target identifier is the same as the master clock identifier in the second timing message sent by the terminal to the second downstream device. The first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

16. A terminal, characterized in that: Including processor and transceiver, The transceiver is used to send a second timing message to the second downstream device; Among them, the master clock identifier in the second timing message is a target identifier, and the target identifier is the same as the master clock identifier in the first timing message sent by the network side device to the first downstream device, the first downstream device is a downstream device of the network side device, and the second downstream device is a downstream device of the terminal.

17. A network side device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the timing method according to any one of claims 1 to 8.

18. A terminal, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the timing method according to any one of claims 9 to 12 are implemented.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the timing method according to any one of claims 1 to 8 are implemented; or, when the computer program is executed by the processor, the steps of the timing method according to any one of claims 9 to 12 are implemented.