Clock synchronization method, device, equipment and storage medium

By sending information when switching in the terminal group to determine the target clock reference terminal, the problem of low clock synchronization efficiency of the terminal as the main TSN clock node is solved, and the appropriate main TSN clock node determination of the access network device is realized, thereby improving the clock synchronization Efficiency and continuity.

CN114830564BActive Publication Date: 2024-12-03GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202080086430.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-02
Publication Date
2024-12-03
Estimated Expiration
2040-03-02

AI Technical Summary

Technical Problem

In the existing Industrial Internet of Things (IIoT), clock synchronization lacks an effective method when the terminal is the main TSN clock node, resulting in inefficient clock synchronization.

Method used

A clock synchronization method is provided, by sending information to determine the target clock reference terminal when switching in the terminal group, enabling the access network device to determine a suitable main TSN clock node to realize clock synchronization. The method includes supporting the same TSN service type in the terminal group, sending information to instruct the access network device to determine the target clock reference terminal, and upon receiving the information, the access network device determines the main TSN clock node based on the information.

Benefits of technology

It improves the clock synchronization efficiency of the terminal during the switching process, ensures the continuity and accuracy of the clock synchronization under TSN services, and enhances the reliability and low latency characteristics of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114830564B_ABST
    Figure CN114830564B_ABST
Patent Text Reader

Abstract

A clock synchronization method, device, equipment and storage medium, relating to the field of communication technology. The method comprises: when a terminal in a first terminal group needs to be switched from a first access network device to a second access network device, first information can be sent to the second access network device during the switching process, and the second access network device can determine a target clock reference terminal based on the first information, and the target clock reference terminal is used as a first master TSN clock node (301). In this way, during the switching process, the second access network device can determine a suitable master TSN clock node for clock synchronization, so as to achieve clock synchronization under the TSN service supported by the target clock reference terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a clock synchronization method, device, equipment and storage medium. Background Art

[0002] In order to ensure low latency and high reliability transmission, IIoT (Industrial Internet of Things) introduced TSN (Time Sensitive Network). TSN can include multiple TSN services. Usually, when transmitting TSN services, it is necessary to ensure that the terminal supporting the TSN service is synchronized with the base station clock corresponding to the terminal.

[0003] To this end, R16 supports network devices as master TSN clock nodes, that is, network devices can determine TSN clock information by themselves. In this way, when clock synchronization is required, the network device can send TSN clock information to the terminal. In this case, the terminal can synchronize the clock with the network device based on the TSN clock information.

[0004] Recently, R17 proposed supporting the terminal as the master TSN clock node, that is, the terminal can determine the TSN clock information by itself. However, there is currently no method to achieve clock synchronization using the terminal as the master TSN clock node. Summary of the invention

[0005] The embodiments of the present application provide a clock synchronization method, apparatus, device and storage medium, which can be used to solve the problem of clock synchronization. The technical solution is as follows:

[0006] In a first aspect, a clock synchronization method is provided, which is applied to a first access network device, and the method includes:

[0007] When a terminal in the first terminal group needs to be switched, sending first information to the second access network device during the switching process;

[0008] The time period sensitive network TSN service types supported by the terminals in the first terminal group are the same, the first information is used by the second access network device to determine the target clock reference terminal, the target clock reference terminal is used as the first master TSN clock node, the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group;

[0009] The TSN service types supported by the terminals in the second terminal group are the same, and the TSN service types supported by the terminals in the second terminal group are the same as the TSN service types supported by the terminals in the first terminal group.

[0010] In a second aspect, a clock synchronization method is provided, which is applied to a second access network device, and the method includes:

[0011] receiving first information sent by a first access network device, where the first information is sent by the first access network device during a switching process when a terminal in a first terminal group needs to be switched;

[0012] Determine a target clock reference terminal according to the first information, the target clock reference terminal is used as a first master time period sensitive network TSN clock node, the first master TSN clock node is a master TSN clock node under the second access network device, or the first master TSN clock node is a master TSN clock node of a TSN service supported by a second terminal group under the second access network device;

[0013] Among them, the TSN service types supported by the terminals in the first terminal group are the same, the TSN service types supported by the terminals in the second terminal group are the same, and the TSN service types supported by the terminals in the second terminal group are the same as the TSN service types supported by the terminals in the first terminal group.

[0014] In a third aspect, a clock synchronization method is provided, which is applied to a third access network device, and the method includes:

[0015] In case that the second clock reference terminal is changed, determining a target terminal in the third terminal group;

[0016] Among them, the second clock reference terminal is used as a third master time period sensitive network TSN clock node, the third master TSN clock node is the master TSN clock node under the third access network device, or the third master TSN clock node is the master TSN clock node of the TSN service supported by the third terminal group, the target terminal is a terminal re-determined to be used as the third master TSN clock node, the third terminal group is the terminal group where the second clock reference terminal is located, and the terminals in the third terminal group support the same TSN service type.

[0017] In a fourth aspect, a clock synchronization method is provided, which is applied to a first terminal, and the method includes:

[0018] When the first terminal is used as a first master time segment sensitive network TSN clock node, sending TSN clock information to the first access network device;

[0019] In a case where the first terminal is not used as the first master TSN clock node, receiving the TSN clock information;

[0020] Among them, the first master TSN clock node is the master TSN clock node under the first access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group under the first access network device, and the terminals in the first terminal group support the same TSN service type.

[0021] In a fifth aspect, a clock synchronization device is provided, which is configured in a first access network device, and the device includes:

[0022] A sending module, configured to send first information to the second access network device during a switching process when a terminal in the first terminal group needs to be switched;

[0023] The time period sensitive network TSN service types supported by the terminals in the first terminal group are the same, the first information is used by the second access network device to determine the target clock reference terminal, the target clock reference terminal is used as the first master TSN clock node, the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group;

[0024] The TSN service types supported by the terminals in the second terminal group are the same, and the TSN service types supported by the terminals in the second terminal group are the same as the TSN service types supported by the terminals in the first terminal group.

[0025] In a sixth aspect, a clock synchronization device is provided, which is configured in a second access network device, and the device includes:

[0026] A receiving module, configured to receive first information sent by a first access network device, where the first information is sent by the first access network device during a switching process when a terminal in the first terminal group needs to be switched;

[0027] A determination module, configured to determine a target clock reference terminal according to the first information, wherein the target clock reference terminal is used as a first master time period sensitive network TSN clock node, wherein the first master TSN clock node is a master TSN clock node under the second access network device, or wherein the first master TSN clock node is a master TSN clock node for a TSN service supported by a second terminal group under the second access network device;

[0028] Among them, the TSN service types supported by the terminals in the first terminal group are the same, the TSN service types supported by the terminals in the second terminal group are the same, and the TSN service types supported by the terminals in the second terminal group are the same as the TSN service types supported by the terminals in the first terminal group.

[0029] In a seventh aspect, a clock synchronization device is provided, which is configured in a third access network device, and the device includes:

[0030] A determination module, configured to determine a target terminal in a third terminal group when a change occurs to the second clock reference terminal;

[0031] Among them, the second clock reference terminal is used as a third master time period sensitive network TSN clock node, the third master TSN clock node is the master TSN clock node under the third access network device, or the third master TSN clock node is the master TSN clock node of the TSN service supported by the third terminal group, the target terminal is a terminal re-determined to be used as the third master TSN clock node, the third terminal group is the terminal group where the second clock reference terminal is located, and the terminals in the third terminal group support the same TSN service type.

[0032] In an eighth aspect, a clock synchronization device is provided, which is configured in a first terminal, and the device includes:

[0033] A sending module, configured to send TSN clock information to the first access network device when the first terminal is used as a first main time segment sensitive network TSN clock node;

[0034] A receiving module, configured to receive the TSN clock information when the first terminal is not used as the first master TSN clock node;

[0035] Among them, the first master TSN clock node is the master TSN clock node under the first access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group under the first access network device, and the terminals in the first terminal group support the same TSN service type.

[0036] In the ninth aspect, a communication system is provided, comprising a terminal and an access network device, wherein the terminal comprises any device described in the eighth aspect, and the access network device comprises any device described in the fifth aspect, or comprises any device described in the sixth aspect.

[0037] In a tenth aspect, a terminal is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement any method described in the fourth aspect.

[0038] In the eleventh aspect, an access network device is provided, the access network device comprising a processor and a memory, the memory storing at least one instruction, the at least one instruction being used to be executed by the processor to implement any of the methods described in the first aspect above, or to implement any of the methods described in the second aspect above, or to implement any of the methods described in the third aspect above.

[0039] In the twelfth aspect, a computer-readable storage medium is provided, on which instructions are stored, and when the instructions are executed by a processor, any of the methods described in the first aspect above is implemented, or any of the methods described in the second aspect above is implemented, or any of the methods described in the third aspect above is implemented.

[0040] In a thirteenth aspect, a computer-readable storage medium is provided, on which instructions are stored, and when the instructions are executed by a processor, the method described in the fourth aspect is implemented.

[0041] In the fourteenth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect, or any of the methods described in the second aspect, or any of the methods described in the third aspect.

[0042] In a fifteenth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method described in the fourth aspect.

[0043] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0044] In the case where the terminal in the first terminal group needs to be switched from the first access network device to the second access network device, the first access network device can send the first information to the second access network device during the switching process, so that the second access network device can determine the target clock reference terminal based on the first information. That is, the second access network device can determine the first master TSN clock node based on the first information, and the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group, so that the second access network device can determine the appropriate master TSN clock node for clock synchronization during the switching process. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0046] Figure 1 is a TSN schematic diagram provided by an exemplary embodiment of the present application;

[0047] Figure 2 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;

[0048] Figure 3 is a flowchart of a clock synchronization method provided by an exemplary embodiment of the present application;

[0049] Figure 4 is a flowchart of a clock synchronization method provided by another exemplary embodiment of the present application;

[0050] Figure 5 is a schematic diagram of a clock synchronization method provided by an exemplary embodiment of the present application;

[0051] Figure 6 is a flowchart of a clock synchronization method provided by an exemplary embodiment of the present application;

[0052] Figure 7 is a flowchart of a clock synchronization method provided by another exemplary embodiment of the present application;

[0053] Figure 8 is a schematic diagram of a clock synchronization method provided by an exemplary embodiment of the present application;

[0054] Fig. 9 is a flowchart of a clock synchronization method provided by an exemplary embodiment of the present application;

[0055] Fig.10 is a structural diagram of a clock synchronization device provided by an exemplary embodiment of the present application;

[0056] Fig.11 is a structural schematic diagram of a clock synchronization device provided by another exemplary embodiment of the present application;

[0057] Fig.12 is a structural schematic diagram of a clock synchronization device provided by another exemplary embodiment of the present application;

[0058] Fig.13 is a structural schematic diagram of a clock synchronization device provided by another exemplary embodiment of the present application;

[0059] Fig.14 It is a structural diagram of a communication device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0061] Before introducing the clock synchronization method provided in the embodiment of the present application in detail, a brief introduction to the relevant terms and implementation environment involved in the embodiment of the present application is first given.

[0062] First, the relevant terms involved in the embodiments of the present application are briefly introduced.

[0063] 1. TSN

[0064] IIoT supports the transmission of FA (Factory Automation), TI (Transport Industry), EPD (Electrical Power Distribution) and other services in the 5G (5th-Generation) system. In order to ensure high reliability and low latency transmission, IIoT introduces TSN. Figure 1 As shown in the figure, in the TSN network, the 5G network will act as a TSN bridge to provide services for TSN services.

[0065] R16 supports using network devices as master TSN clock nodes and terminals as slave TSN clock nodes. That is, network devices can determine TSN clock information by themselves. When TSN services are transmitted in the 5G system, that is, when clock synchronization of TSN services is required, network devices can send TSN clock information to terminals. In this way, terminals can synchronize clocks with network devices based on the TSN clock information.

[0066] The TSN clock information may be sent to the terminal via broadcast, multicast or unicast.

[0067] 2. Cell switching

[0068] If a terminal using network services moves from one cell to another, or due to wireless transmission service load adjustment, activation operation maintenance, equipment failure, etc., in order to ensure communication continuity and service quality, the system must switch the communication link between the terminal and the source cell to the new cell. This process is called cell switching.

[0069] Exemplarily, the entire switching process is divided into the following three stages:

[0070] (1) Handover preparation: including measurement control and reporting, handover request and handover response. That is, the source network device sends a handover request message to the target network device. After receiving the handover request message, the target network device may send a handover response message to the source network device. The handover response message may include a handover command. When the source network device receives the handover response message, it may forward the handover command to the terminal.

[0071] (2) Switching execution: After receiving the switching command, the terminal can immediately execute the switching process, that is, the terminal can disconnect from the source network device and establish a connection with the target network device.

[0072] (3) Handover completion: When the target network device establishes a connection with the terminal, the target network device can perform path switching with AMF (Access and Mobility Management Function) and UPF (UserPlane Function) to release the terminal context.

[0073] Next, the implementation environment involved in the embodiments of the present application is briefly introduced.

[0074] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: GSM (Global System of Mobile communication) system, CDMA (Code Division Multiple Access) system, WCDMA (Wideband Code Division Multiple Access) system, GPRS (General Packet Radio Service), LTE (Long Term Evolution) system, FDD (Frequency Division Duplex) system, TDD (Time Division Duplex) system, LTE-A (A advanced Long Term Evolution) system, NR (New Redio, New Wireless) system, NR system evolution system, LTE-U (LTE-based access to unlicensed spectrum, LTE on unlicensed spectrum) system, NR-U (NR-based access to unlicensed spectrum, NR on unlicensed spectrum) system, UMTS (Universal Mobile Telecommunication System, Universal Mobile Telecommunication System), WiMAX (Worldwide interoperability for Microwave Access (Global Interconnected Microwave Access) communication system, WLAN (Wireless Local Area Networks), WiFi (Wireless Fidelity), next generation communication system or other communication systems, etc.

[0075] Generally speaking, traditional communication systems support a limited number of connections and are easy to implement. However, with the development of communication technology, mobile communication systems will not only support traditional communications, but will also support, for example, D2D (Device to Device) communication, M2M (Machine to Machine) communication, MTC (Machine Type Communication), and V2V (Vehicle to Vehicle) communication, etc. The embodiments of the present application can also be applied to these communication systems.

[0076] The system architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0077] For example, the communication system 200 used in the embodiment of the present application is as follows: Figure 2 As shown. The communication system 200 may include an access network device 210, which may be a device that communicates with a terminal 220 (or referred to as a communication terminal, terminal). The access network device 210 may provide communication coverage for a specific geographical area, and may communicate with terminals located within the coverage area. Optionally, the access network device 210 may be an eNB (Evolutional Node B), or a wireless controller in a CRAN (Cloud Radio Access Network), or the access network device may be a mobile switching center, a relay station, an access point, a vehicle-mounted device, a wearable device, a hub, a switch, a bridge, a router, a network-side device in a 5G network, or an access network device in a future communication system, etc.

[0078] The communication system 200 also includes at least one terminal 220 located within the coverage of the access network device 210. As used herein, "terminal" includes but is not limited to connection via a wired line, such as PSTN (Public Switched Telephone Networks), DSL (Digital Subscriber Line), digital cable, direct cable connection; and / or another data connection / network; and / or via a wireless interface, such as, for a cellular network, WLAN, a digital television network such as a DVB-H network, a satellite network, an AM-FM broadcast transmitter; and / or another terminal's device configured to receive / send communication signals; and / or an IoT (Internet of Things) device. A terminal configured to communicate via a wireless interface may be referred to as a "wireless communication terminal", "wireless terminal" or "mobile terminal". Examples of mobile terminals include, but are not limited to, satellite or cellular telephones; PCS (Personal Communieations System) terminals that may combine cellular radiotelephones with data processing, fax, and data communications capabilities; PDAs that may include radiotelephones, pagers, Internet / Intranet access, Web browsers, notepads, calendars, and / or GPS (Global Positioning System) receivers; and conventional laptop and / or palmtop receivers or other electronic devices that include radiotelephone transceivers. A terminal may refer to an access terminal, UE (User Equipment), a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user device. The access terminal can be a cellular phone, a cordless phone, a SIP (Session Initiation Protocol) phone, a WLL (Wireless Local Loop) station, a PDA (Personal Digital Assistant), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal in a 5G network, or a terminal in a future evolved PLMN, etc.

[0079] Optionally, D2D communication may be performed between the terminals 220 .

[0080] Optionally, the 5G communication system or 5G network may also be referred to as an NR system or NR network.

[0081] Figure 2An access network device and two terminals are shown exemplarily. Optionally, the communication system 200 may include multiple access network devices and the coverage area of ​​each access network device may include other numbers of terminals. For example, in a switching scenario, it generally includes a first access network device and a second access network device, the first access network device being the source access network device and the second access network device being the target access network device, that is, the terminal switches from the first access network device to the second access network device.

[0082] Optionally, the communication system 200 may also include other network entities such as a network controller and a mobility management entity, which is not limited in the embodiments of the present application.

[0083] It should be understood that the device with communication function in the network / system in the embodiment of the present application can be referred to as a communication device. Figure 2 Taking the communication system 200 shown as an example, the communication equipment may include an access network device 210 and a terminal 220 with communication functions. The access network device 210 and the terminal 220 may be the specific devices described above and will not be repeated here. The communication equipment may also include other devices in the communication system 200, such as a network controller, a mobile management entity and other network entities, which is not limited in the embodiments of the present application.

[0084] After introducing the relevant terms and implementation environment involved in the embodiments of the present application, the clock synchronization method provided in the embodiments of the present application will be described in detail with reference to the accompanying drawings.

[0085] Please refer to Figure 3 ,Should Figure 3 is a flowchart of a clock synchronization method according to an exemplary embodiment. The clock synchronization method can be applied to the above Figure 2 In the implementation environment shown, the clock synchronization method may include at least part of the following contents:

[0086] Step 301: When a terminal in a first terminal group needs to be switched, first information is sent to a second access network device during the switching process.

[0087] Among them, the terminals in the first terminal group support the same TSN service type, the first information is used for the second access network device to determine the target clock reference terminal, the target clock reference terminal is used as the first master TSN clock node, the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group. The terminals in the second terminal group support the same TSN service type, and the TSN service type supported by the terminals in the second terminal group is the same as the TSN service type supported by the terminals in the first terminal group.

[0088] The terminal that needs to be switched may be one terminal in the first terminal group, may be multiple terminals in the first terminal group, or may be all terminals in the first terminal group, which is not limited in this embodiment.

[0089] Generally, there may be multiple terminals within the coverage of any access network device in the 5G system, and the multiple terminals may support the same type of TSN services or different types of TSN services. In this case, the terminals supporting the same type of TSN services among the multiple terminals may be classified into the same terminal group.

[0090] Exemplarily, the terminals supporting the specified TSN service among the multiple terminals within the coverage of the first access network device can be classified into the first terminal group. Similarly, the terminals supporting the specified TSN service among the multiple terminals within the coverage of the second access network device can be classified into the second terminal group.

[0091] The target clock reference terminal may be included in the terminal that needs to be switched, or may not be included in the terminal that needs to be switched, which is not limited in this embodiment.

[0092] The second access network device refers to the target access network device, that is, the terminal that needs to be switched needs to be switched from the first access network device to the second access network device.

[0093] In this embodiment, based on the different setting rules of the main TSN clock node in the 5G system, the first main TSN clock node can be the main TSN clock node of the second terminal group under the second access network device, and the first main TSN clock node can also be the main TSN clock node of the TSN service supported by the first terminal group.

[0094] As an example, when there are multiple access network devices in the 5G system, if there is no clock synchronization between the multiple access network devices, each access network device can perform clock synchronization based on its own determined master TSN clock node. In this case, each access network device corresponds to its own master TSN clock node.

[0095] In view of the above situation, during the switching process, after the first access network device sends the first information to the second access network device, the second access network device determines the main TSN clock node used for clock synchronization of the second terminal group based on the first information.

[0096] Exemplarily, when the target clock reference terminal is used as the first master TSN clock node, and the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, the second access network device is clock-synchronized with the target clock reference terminal, and the remaining terminals in the second terminal group except the target clock reference terminal are clock-synchronized with the second access network device, or the remaining terminals in the second terminal group except the target clock reference terminal are directly clock-synchronized with the target clock reference terminal. In this case, the clock synchronization of the second terminal group under the TSN service it supports can be guaranteed.

[0097] As another example, when there are multiple access network devices in a 5G system, if the clocks of the multiple access network devices are synchronized, the multiple access network devices can use the same master TSN clock node for the same type of TSN services.

[0098] In view of the above situation, during the switching process, after the first access network device sends the first information to the second access network device, the second access network device determines the main TSN clock node for the TSN service supported by the first terminal group based on the first information.

[0099] Exemplarily, when the target clock reference terminal is used as the first master TSN clock node, and the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group, since the TSN service type supported by the terminals in the second terminal group is the same as the TSN service type supported by the terminals in the first terminal group, the second access network device can perform clock synchronization with the target clock reference terminal, and the remaining terminals in the second terminal group except the target clock reference terminal can perform clock synchronization with the second access network device, or the remaining terminals in the second terminal group except the target clock reference terminal can directly perform clock synchronization with the target clock reference terminal. In this case, it can be guaranteed that the terminals in the second terminal group are clock synchronized under the TSN services they support.

[0100] It should be noted that, in the case of clock synchronization between the multiple access network devices, except for the first access network device and the second access network device, the other access network devices among the multiple access network devices can perform clock synchronization with the second access network device.

[0101] It should be noted that when there are multiple access network devices in the 5G system and the clocks of the multiple access network devices are synchronized, any access network device among the multiple access network devices can select a terminal from the terminal group within its coverage as the main TSN clock node.

[0102] In combination with the above description, it can be determined that when the terminal in the first terminal group needs to be switched from the first access network device to the second access network device, the first access network device can send a first information to the second access network device during the switching process, so as to instruct the second access network device to determine the target clock reference terminal through the first information, that is, to instruct the second access network device to determine the first main TSN clock node through the first information. In this way, the second access network device can perform clock synchronization with the first main TSN clock node to achieve clock synchronization under the TSN service supported by the target clock reference terminal.

[0103] Exemplarily, when a terminal in the first terminal group moves from the coverage of the first access network device to the coverage of the second access network device, the first access network device may determine that the terminal in the first terminal group needs to be switched from the first access network device to the second access network device. In this way, the first access network device may send the first information to the second access network device during the switching process.

[0104] In an embodiment of the present application, when a terminal in the first terminal group needs to be switched from the first access network device to the second access network device, the first access network device can send the first information to the second access network device during the switching process, so that the second access network device can determine the target clock reference terminal based on the first information. That is, the second access network device can determine the first master TSN clock node based on the first information, and the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group, so that the second access network device can determine the appropriate master TSN clock node for clock synchronization during the switching process.

[0105] Please refer to Figure 4 ,Should Figure 4 is a flowchart of a clock synchronization method according to an exemplary embodiment. The clock synchronization method can be applied to the above Figure 2 In the implementation environment shown, the clock synchronization method may include at least part of the following contents:

[0106] Step 401: When a terminal in a first terminal group needs to be switched, first information is sent to a second access network device during the switching process.

[0107] Among them, the terminals in the first terminal group support the same TSN service type, the first information is used for the second access network device to determine the target clock reference terminal, the target clock reference terminal is used as the first master TSN clock node, the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group. The terminals in the second terminal group support the same TSN service type, and the TSN service type supported by the terminals in the second terminal group is the same as the TSN service type supported by the terminals in the first terminal group.

[0108] The specific implementation method can be found in Figure 3 Step 301 in the embodiment will not be repeated here.

[0109] As an example, the first information is carried by the handover request. Alternatively, the first information is sent after receiving an information sending indication sent by the second access network device, where the information sending indication is used to instruct the first access network device to send the first information.

[0110] The switching request may be used to request the second access network device to perform switching with a terminal that needs to be switched under the first access network device.

[0111] For example, Figure 5 As shown, when the first access network device determines that the terminal in the first terminal group needs to be switched, the first access network device may send a switching request to the second access network device, and the switching request may carry the first information.

[0112] Alternatively, when the first access network device receives an information sending indication sent by the second access network device, it indicates that the second access network device can receive the first information. In this case, the first access network device can send the first information to the second access network device according to the indication of the information sending indication.

[0113] Exemplarily, the information sending indication may be carried in a switching response message. Thus, when the first access network device receives the switching response message, if it is determined that the switching response message carries an information sending indication, the first access network device may send the first information to the second access network device according to the indication of the information sending indication.

[0114] Based on Figure 4 In an optional embodiment, the terminal to be switched includes a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, the second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group.

[0115] In this case, the first information includes at least one of the following:

[0116] (1) a first clock reference terminal identifier;

[0117] (2) specifying a QoS flow (Quality of Service flow) identifier, and specifying that the QoS flow indicated by the QoS flow identifier is used to transmit TSN clock information;

[0118] (3) Specifying a DRB (Data Radio Bearer) identifier, and specifying that the wireless data bearer indicated by the DRB identifier is used to transmit TSN clock information.

[0119] The specified QoS flow may include a specified uplink QoS flow, may include a specified downlink QoS flow, or may include both a specified uplink QoS flow and a specified downlink QoS flow, which is not limited in this embodiment.

[0120] The designated wireless data bearer may include a designated uplink wireless data bearer, may include a designated downlink wireless data bearer, or may include both a designated uplink wireless data bearer and a designated downlink wireless data bearer, which is not limited in this embodiment.

[0121] In this embodiment, based on the different setting rules of the main TSN clock node in the 5G system, the second main TSN clock node can be the main TSN clock node of the first terminal group under the first access network device, and the second main TSN clock node can also be the main TSN clock node of the TSN service supported by the first terminal group.

[0122] The specific implementation method can be found in Figure 3 Step 301 in the embodiment will not be repeated here.

[0123] Exemplarily, if the first clock reference terminal is used as the second master TSN clock node, the first access network device is synchronized with the first clock reference terminal, and the other terminals in the first terminal group except the first clock reference terminal are synchronized with the first access network device, or the other terminals in the first terminal group except the first clock reference terminal can also be directly synchronized with the first clock reference terminal. In this case, the clock synchronization of the first terminal group under the TSN service it supports can be guaranteed.

[0124] The first clock reference terminal identifier can be used by the second access network device to identify the first clock reference terminal in the terminal that needs to be switched. Exemplarily, the first clock reference terminal identifier can be an ID (Identity) of the first clock reference terminal.

[0125] In which, when the first clock reference terminal is used as the second master TSN clock node, the first clock reference terminal can establish a specified QoS flow or a specified wireless data bearer to transmit TSN clock information to the first access network device through the specified QoS flow or the specified wireless data bearer.

[0126] In this case, the specified QoS flow corresponds to a specified QoS flow identifier. In this way, the second access network device can determine the specified QoS flow by identifying the specified QoS flow identifier, thereby identifying the first clock reference terminal in the terminal that needs to be switched according to the specified QoS flow.

[0127] Similarly, a designated wireless data bearer corresponds to a designated DRB identifier. Thus, the second access network device can determine the designated wireless data bearer by identifying the designated DRB identifier. Thus, the first clock reference terminal can be identified in the terminal that needs to be switched according to the designated DRB identifier.

[0128] That is, at least one of the first clock reference terminal identifier, the specified QoS flow identifier, and the specified DRB identifier can be used by the second access network device to identify the first clock reference terminal in the terminal that needs to be switched.

[0129] In this way, when the terminals that need to be switched include the first clock reference terminal, the first access network device can send information indicating the first clock reference terminal to the second access network device. For example, the first access network device can send one or more of the first clock reference terminal identifier, the specified QoS flow identifier, and the specified DRB identifier to the second access network device.

[0130] Exemplarily, the first information also includes at least one of the following: the terminal group identifier of the first terminal group, the terminal identifier of other terminals in the first terminal group except the first clock reference terminal, the TSN service identifier, the TSN group identifier, the TSN clock domain identifier, and the TSN time domain identifier.

[0131] The terminal group identifier of the first terminal group may be used by the second access network device to determine the terminal group to which the terminal to be switched belongs. Exemplarily, the terminal group identifier of the first terminal group may be the ID of the first terminal group.

[0132] Among them, the TSN service identifier can be used by the second access network device to determine the TSN service type supported by the terminal that needs to be switched. In this way, the second access network device can classify the terminal that needs to be switched into the corresponding terminal group according to the TSN service type supported by the terminal that needs to be switched.

[0133] The TSN clock domain identifier can be used by the second access network device to determine the clock domain corresponding to the TSN service supported by the terminal to be switched during transmission.

[0134] The TSN time domain identifier can be used by the second access network device to determine the time domain corresponding to the TSN service supported by the terminal to be switched during transmission.

[0135] The TSN group identifier refers to the identifier of the service group to which the TSN service supported by the terminal to be switched belongs, or the TSN group identifier refers to the identifier of the terminal group consisting of all terminals supporting the TSN service when the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group. It should be noted that the terminals supporting the TSN service may belong to the same access network device or to different access network devices, which is not limited in this embodiment.

[0136] That is to say, in one implementation method, when the terminal that needs to be switched includes the first clock reference terminal, the first information sent by the first access network device may include one or more of the terminal group identifier of the first terminal group, the terminal identifiers of other terminals in the first terminal group except the first clock reference terminal, the TSN service identifier, the TSN group identifier, the TSN clock domain identifier to which it belongs, and the TSN time domain identifier to which it belongs. In this way, the second access network device can obtain the service group affiliation information or terminal group affiliation information of the terminal that needs to be switched, and assign the terminal that needs to be switched to the corresponding terminal group or service group.

[0137] In another implementation, when the terminal that needs to be switched includes a first clock reference terminal, the first information sent by the first access network device may include information for identifying the first clock reference terminal, and may also include a terminal group identifier of the first terminal group, terminal identifiers of other terminals in the first terminal group except the first clock reference terminal, a TSN service identifier, a TSN group identifier, a corresponding TSN clock domain identifier, and a corresponding TSN time domain identifier. In this way, the second access network device can determine the first clock reference terminal among the terminals that need to be switched, and can obtain more information about the terminal that needs to be switched, thereby assigning the terminal that needs to be switched to the corresponding terminal group or service group.

[0138] As an example, if the terminals that need to be switched are part of the terminals in the first terminal group, and the terminals that need to be switched include the first clock reference terminal, the first access network device may also perform the following operations: establish a designated QoS flow or a designated wireless data bearer with the target terminal in the terminals that do not need to be switched and are included in the first terminal group, and the designated QoS flow or the designated wireless data bearer is used to transmit TSN clock information. The target terminal is a terminal that is re-determined to be used as the second main TSN clock node.

[0139] In the case where the terminals that need to be switched include the first clock reference terminal, if the first clock reference terminal is switched to the second access network device, the first clock reference terminal is no longer used as the second master TSN clock node, that is, the first access network device no longer performs clock synchronization with the first clock reference terminal. In this case, the first access network device can determine the target terminal from the terminals that do not need to be switched and are included in the first terminal group, that is, re-determine the terminal used as the second master TSN clock node.

[0140] Furthermore, the first access network device can establish a specified QoS flow or a specified wireless data bearer with the target terminal, so that the target terminal can send TSN clock information to the first access network device through the specified QoS flow or the specified wireless data bearer, and the first access network device can perform clock synchronization with the target terminal based on the TSN clock information.

[0141] Exemplarily, the target terminal is determined by at least one of the following nodes: a first access network device, a core network node, a CNC (Centralized Network Controller) node, all terminals in the first terminal group that do not need to be switched, any terminal among all terminals in the first terminal group that do not need to be switched, a designated terminal among all terminals in the first terminal group that do not need to be switched, and a first clock reference terminal.

[0142] Among them, the core network node may include an AMF node, an SMF (Session Management Function) node, etc., which is not limited in this embodiment.

[0143] Among them, the AMF node can be used for mobility management, and the AMF node can be connected to the terminal. The SMF node can be used for session management, and the SMF node can be connected to the AMF node.

[0144] The CNC node can be used to uniformly manage all TSN services in TSN.

[0145] Among them, the designated terminal among all the terminals in the first terminal group that do not need to be switched may be designated by the first access network device or by the core network node, which is not limited in this embodiment.

[0146] That is, when the terminal that needs to be switched includes the first clock reference terminal, the target terminal can be determined by one or more of the first access network device, the core network node, the CNC node, all terminals in the first terminal group that do not need to be switched, any terminal among all terminals in the first terminal group that do not need to be switched, a designated terminal among all terminals in the first terminal group that do not need to be switched, and the first clock reference terminal.

[0147] For example, when the terminal that needs to be switched includes the first clock reference terminal, the target terminal can be determined by the first access network device, or the first access network device and all terminals in the first terminal group that do not need to be switched can jointly determine the target terminal. This embodiment does not limit this.

[0148] In summary, when the terminal that needs to be switched includes the first clock reference terminal, the target terminal can be determined among the terminals that do not need to be switched in the first terminal group to be used as the second main TSN clock node. In this way, the first access network device can perform clock synchronization with the target terminal, thereby ensuring the continuity of clock synchronization under the TSN service supported by the first clock reference terminal when the first clock reference terminal is switched.

[0149] Of course, when the terminal that needs to be switched includes the first clock reference terminal, if the first clock reference terminal is used as the main TSN clock node of the TSN service supported by the first terminal group, that is, the main TSN clock nodes corresponding to the TSN service supported by at least one access network device are all the first clock reference terminals, the first access network device can only send the first information to the second access network device. In this case, there is no need to redetermine the target terminal in the first terminal group and establish a new designated QoSflow or designated wireless data bearer.

[0150] Based on Figure 4 In an optional embodiment, the terminal that needs to be switched does not include the first clock reference terminal, the first clock reference terminal is used as the second master TSN clock node, the second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group.

[0151] In this case, the first information includes: a candidate terminal identifier, where the candidate terminal is determined by the first access network device from the terminals that need to be switched.

[0152] As an example, the candidate terminal refers to a candidate terminal relative to the first clock reference terminal, that is, when the first clock reference terminal is changed, the candidate terminal can be used as the second master TSN clock node.

[0153] Among them, the candidate terminal identifier can be used by the second access network device to determine the candidate terminal among the terminals that need to be switched. Further, the candidate terminal can be determined by the second access network device according to a reference policy, and the reference policy can be set according to actual needs.

[0154] Exemplarily, the first access network device may select a terminal with higher clock accuracy as a candidate terminal among the terminals that need to be switched, or may select a terminal with smaller local oscillator as a candidate terminal among the terminals that need to be switched, or may select a terminal with higher service quality as a candidate terminal among the terminals that need to be switched, etc. This embodiment does not limit this.

[0155] That is, when the terminals that need to be switched do not include the first clock reference terminal, the first access network device may determine a candidate terminal among the terminals that need to be switched, and send information indicating the candidate terminal to the second access network device.

[0156] It should be noted that, when the terminals that need to be switched do not include the first clock reference terminal, the first access network device may not obtain the candidate terminal from the terminals that need to be switched, and this embodiment does not limit this.

[0157] Exemplarily, the first information also includes at least one of the following: the terminal group identifier of the first terminal group, the terminal identifier of other terminals in the first terminal group except the first clock reference terminal, the TSN service identifier, the TSN group identifier, the TSN clock domain identifier, and the TSN time domain identifier.

[0158] That is to say, in one implementation method, when the terminal that needs to be switched does not include the first clock reference terminal, the first information sent by the first access network device may include one or more of the terminal group identifier of the first terminal group, the terminal identifiers of other terminals in the first terminal group except the first clock reference terminal, the TSN service identifier, the TSN group identifier, the TSN clock domain identifier to which it belongs, and the TSN time domain identifier to which it belongs. In this way, the second access network device can obtain the service group affiliation information or terminal group affiliation information of the terminal that needs to be switched, and assign the terminal that needs to be switched to the corresponding terminal group or service group.

[0159] In another implementation, when the terminal that needs to be switched does not include the first clock reference terminal, the first information sent by the first access network device may include information for identifying candidate terminals, and may also include the terminal group identifier of the first terminal group, the terminal identifiers of other terminals in the first terminal group except the first clock reference terminal, the TSN service identifier, the TSN group identifier, the TSN clock domain identifier, and the TSN time domain identifier. In this way, the second access network device can determine the candidate terminal among the terminals that need to be switched, and can obtain more information about the terminal that needs to be switched, so as to assign the terminal that needs to be switched to the corresponding terminal group or service group.

[0160] As an example, if the terminals to be switched are part of the terminals in the first terminal group, and the terminals to be switched do not include the first clock reference terminal, the first access network device may also perform the following operations: performing clock synchronization with the first clock reference terminal.

[0161] That is, when some terminals in the first terminal group under the first access network device need to be switched, and the terminals that need to be switched do not include the first clock reference terminal, the first clock reference terminal can continue to be used as the second main TSN clock node. Therefore, the first access network device can perform clock synchronization with the first clock reference terminal to ensure clock synchronization under the TSN service supported by the first clock reference terminal.

[0162] Based on Figure 4 In an optional embodiment, if the second master TSN clock node changes at the first time point, a change message is sent to the second access network device, and the change message is used to notify the second access network device that the second master TSN clock node has changed. The second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group.

[0163] Among them, the change of the second main TSN clock node may include the switching of the terminal used as the second main TSN clock node, the power failure of the terminal used as the second main TSN clock node, the abnormality of the terminal used as the second main TSN clock node, the terminal used as the second main TSN clock node moving outside the coverage of the first access network device, etc. This embodiment does not limit this.

[0164] In this embodiment, when the first clock reference terminal used as the second master TSN clock node is changed, the first clock reference terminal is no longer used as the second master TSN clock node, that is, the first access network device no longer performs clock synchronization with the first clock reference terminal. In this case, the first access network device can send a change message to the second access network device to notify the second access network device that the first clock reference terminal is no longer used as the second master TSN clock node.

[0165] As an example, the change message may include at least one of the following: a change indication, a TSN service identifier, a first clock reference terminal identifier, a TSN clock domain identifier, a service cell identifier to which the target terminal belongs, an access network device identifier to which the target terminal belongs, a TSN group identifier, a terminal group identifier of the first terminal group, and terminal identifiers of other terminals in the first terminal group except the first clock reference terminal identifier.

[0166] The target terminal refers to a terminal that is newly determined to be used as a second master TSN clock node.

[0167] The change indication may be used by the second access network device to determine that the first clock reference terminal is no longer used as the second master TSN clock node.

[0168] The TSN service identifier may be used by the second access network device to determine the TSN service type supported by the first clock reference terminal.

[0169] The TSN clock domain identifier can be used by the second access network device to determine the clock domain corresponding to the TSN service supported by the first clock reference terminal during transmission.

[0170] The first clock reference terminal identifier may be used by the second access network device to determine the first clock reference terminal in the terminal that needs to be switched.

[0171] The TSN group identifier refers to the identifier of the service group to which the TSN service supported by the first clock reference terminal belongs, or the TSN group identifier refers to the identifier of the terminal group consisting of all terminals supporting the TSN service when the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group. It should be noted that the terminals supporting the TSN service may belong to the same access network device or to different access network devices, which is not limited in this embodiment.

[0172] That is, the change message may include a change indication, a TSN service identifier, a first clock reference terminal identifier, a TSN clock domain identifier, a service cell identifier to which the target terminal belongs, an access network device identifier to which the target terminal belongs, a TSN group identifier, a terminal group identifier of the first terminal group, and one or more terminal identifiers of other terminals in the first terminal group except the first clock reference terminal identifier. In this way, the second access network device can determine a more suitable terminal to be used as the first main TSN clock node based on the change message.

[0173] As an example, the first time point includes at least one of the following situations: after the first clock reference terminal used as the second main TSN clock node is changed. After the first access network device sends a switching request. After the first access network device receives a switching response message from the second access network device. In the time period after the first access network device sends a switching request and before the first network device sends a switching command to the terminal that needs to be switched. In the time period after the first access network device sends a switching request and before the terminal that needs to be switched establishes a connection with the second access network device. Before the first access network device releases the connection with the terminal.

[0174] Among them, the switching command refers to the command sent by the second access network device, which is used to instruct the terminal that needs to switch to perform the switch. Usually, the second access network device sends the switching command to the first access network device, and the first access network device forwards the switching command to the terminal that needs to switch.

[0175] Exemplarily, after a first clock reference terminal used as a second master TSN clock node is changed, the first clock reference terminal is no longer used as a second TSN clock node, and the first access network device may send a change message to the second access network device.

[0176] Exemplarily, after the first access network device sends a switching request, the first clock reference terminal changes, that is, the first clock reference terminal is no longer used as the second main TSN clock node, the first access network device can send a change message to the second access network device.

[0177] Exemplarily, after the first access network device receives the switching response message from the second access network device, the first clock reference terminal changes, that is, the first clock reference terminal is no longer used as the second main TSN clock node, the first access network device can send a change message to the second access network device.

[0178] Exemplarily, when the first access network device sends a switching request and before the first network device sends a switching command to the terminal that needs to switch, the first clock reference terminal changes, that is, the first clock reference terminal is no longer used as the second main TSN clock node. The first access network device can send a change message to the second access network device.

[0179] Exemplarily, when the first access network device sends a switching request and before the terminal to be switched establishes a connection with the second access network device, the first clock reference terminal changes, that is, the first clock reference terminal is no longer used as the second main TSN clock node. The first access network device can send a change message to the second access network device.

[0180] Exemplarily, before the first access network device releases the connection with the terminal, the first clock reference terminal changes, that is, the first clock reference terminal is no longer used as the second main TSN clock node, the first access network device can send a change message to the second access network device.

[0181] In this way, the second access network device can promptly determine that the second main TSN clock node has changed by receiving the change message, and the second access network device can select a terminal to be used as the first main TSN clock node based on the change message. In this case, the second access network device can perform clock synchronization with the terminal used as the first main TSN clock node.

[0182] It should be noted that the first access network device can send change messages to one or more of the second access network device, the adjacent access network device of the first access network device, the core network node, other access network devices supporting the TSN service that use the first clock reference terminal as the main TSN clock node, and the CNC node, and this embodiment does not limit this.

[0183] It should also be noted that the first network device may send a change message when the first clock reference terminal is switched, or may send a change message when the first clock reference terminal is not switched, and this embodiment does not limit this.

[0184] Based on Figure 4 In an optional embodiment of the present invention, the first access network device may further perform the following operations:

[0185] 1. Determine the second master TSN clock node based on whether the terminal in the first terminal group corresponds to a specified QoS flow or a specified wireless data bearer. The specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information. The second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group.

[0186] The establishment of the designated QoS flow or the designated wireless data bearer may be determined by the terminal, may be determined by the core network node, or may be determined by the first access network device, and this embodiment does not limit this.

[0187] If the designated QoS flow or the designated wireless data bearer is established by the terminal or by the core network node, the first access network device cannot determine the terminal to be used as the second main TSN clock node in the first terminal group. In this case, the first access network device can determine the terminal to be used as the second main TSN clock node in the first terminal group based on whether the terminal corresponds to the designated QoS flow or the designated wireless data bearer.

[0188] That is, when the first access network device determines that a terminal in the first terminal group corresponds to a specified QoS flow or a specified wireless data bearer, it can be determined that the terminal can be used as the second master TSN clock node. When the first access network device determines that a terminal in the first terminal group does not correspond to a specified QoS flow or a specified wireless data bearer, it can be determined that the terminal cannot be used as the second master TSN clock node.

[0189] 2. Determine the second master TSN clock node based on whether the terminals in the first terminal group are capable of establishing a specified QoS flow or a specified wireless data bearer.

[0190] Exemplarily, the first access network device can determine whether the terminal is capable of establishing a specified QoS flow or a specified wireless data bearer based on the clock accuracy of the terminal, or can determine whether the terminal is capable of establishing a specified QoS flow or a specified wireless data bearer based on the local oscillator of the terminal, or can determine whether the terminal is capable of establishing a specified QoS flow or a specified wireless data bearer based on the service quality of the terminal, etc. This embodiment does not limit this.

[0191] For example, if the service quality of the terminal is higher than the specified service quality threshold, the first access network device can determine that the terminal is capable of establishing a specified QoS flow or a specified wireless data bearer. If the service quality of the terminal is lower than or equal to the specified service quality threshold, the first access network device can determine that the terminal is not capable of establishing a specified QoS flow or a specified wireless data bearer. The specified service instruction threshold can be set according to actual needs.

[0192] That is, when the first access network device determines that the terminal in the first terminal group is capable of establishing a specified QoS flow or a specified wireless data bearer, it can be determined that the terminal can be used as the second master TSN clock node. When the first access network device determines that the terminal in the first terminal group is not capable of establishing a specified QoS flow or a specified wireless data bearer, it can be determined that the terminal cannot be used as the second master TSN clock node.

[0193] 3. Determine the second master TSN clock node based on whether the terminal in the first terminal group has a designated identifier, wherein the designated identifier is an identifier of the terminal used as the second master TSN clock node.

[0194] Among them, the identifier can be pre-configured, or it can be indicated or configured to the terminal by a network device. For example, the identifier can be configured to the terminal by a CNC node, or it can be configured to the terminal by a first access network device. This embodiment does not limit this.

[0195] That is, when the first access network device determines that a terminal in the first terminal group corresponds to an identifier of the second master TSN clock node, it can be determined that the terminal can be used as the second master TSN clock node. When the first access network device determines that a terminal in the first terminal group does not correspond to an identifier of the second master TSN clock node, it can be determined that the terminal cannot be used as the second master TSN clock node.

[0196] In an embodiment of the present application, when a terminal in the first terminal group needs to be switched from the first access network device to the second access network device, the first access network device can send the first information to the second access network device during the switching process, so that the second access network device can determine the target clock reference terminal based on the first information. That is, the second access network device can determine the first master TSN clock node based on the first information, and the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group, so that during the switching process, the second access network device can determine the appropriate master TSN clock node for clock synchronization to achieve clock synchronization under the TSN service supported by the target clock reference terminal.

[0197] As an example, when the terminals that need to be switched include a first clock reference terminal, the first access network device can send information for identifying the first clock reference terminal to the second access network device, so that the second access network device can determine the first main TSN clock node with reference to the first clock reference terminal.

[0198] In this case, the first access network device can select a target terminal from the terminals that do not need to be switched and included in the first terminal group as the second main TSN clock node, so that the first access network device can synchronize the clock with the target node, ensuring the continuity of clock synchronization under the TSN service supported by the first clock reference terminal.

[0199] Of course, if the first clock reference terminal is used as the main TSN clock node of the TSN service supported by the first terminal group, the first access network device can only send the first information to the second access network device without redetermining the target terminal among the terminals that do not need to be switched and included in the first terminal group.

[0200] As an example, when the first clock reference terminal is not included in the terminals that need to be switched, the first access network device can select a candidate terminal from the terminals that need to be switched, and send information for identifying the candidate terminal to the second access network device. In this way, the second access network device can determine the first main TSN clock node with reference to the candidate terminal.

[0201] Of course, when the terminal that needs to be switched does not include the first clock reference terminal, the first information may also not include information used to identify the candidate terminal. In this case, the first information may include the terminal group identifier of the first terminal group, the terminal identifiers of other terminals in the first terminal group except the first clock reference terminal, the TSN service identifier, the TSN group identifier, the TSN clock domain identifier, and the TSN time domain identifier. This embodiment does not limit this.

[0202] In this case, the first clock reference terminal can continue to be used as the second master TSN clock node, so that the first access network device can perform clock synchronization with the first clock reference terminal to ensure clock synchronization under the TSN service supported by the first clock reference terminal.

[0203] As an example, when the terminals that need to be switched include the first clock reference terminal, if the first clock reference terminal changes at a first time point, the first access network device can send a change message to the second access network device. In this way, the second access network device can promptly determine that the first clock reference terminal is no longer used as the second main TSN clock node. On this basis, the second access network device can select a more suitable terminal to be used as the first main TSN clock node.

[0204] Please refer to Figure 6 ,Should Figure 6 is a flowchart of a clock synchronization method according to an exemplary embodiment. The clock synchronization method can be applied to the above Figure 2In the implementation environment shown, the clock synchronization method is mainly performed by the second access network device, and may include at least part of the following contents:

[0205] Step 601: Receive first information sent by the first access network device, the first information being sent by the first access network device during a switching process when a terminal in the first terminal group needs to switch, wherein the terminals in the first terminal group support the same time segment sensitive network TSN service type.

[0206] That is, when the terminals in the first terminal group need to be switched from the first access network device to the second access network device, the second access network device can receive the first information sent by the first access network device during the switching process.

[0207] As an example, the first information is carried by the handover request. Alternatively, the first information is received after the second access network device sends an information sending indication, where the information sending indication is used to instruct the first access network device to send the first information.

[0208] The switching request may be used to request the second access network device to perform switching with a terminal that needs to be switched under the first access network device.

[0209] Exemplarily, in the case where the first information is carried by a switching request, when the second access network device receives the switching request sent by the first access network device, the first information can be obtained from the switching request.

[0210] When the second access network device can receive the first information, the second access network device can send an information sending instruction to the first access network device to instruct the first access network device to send the first information. In this way, the second access network device can receive the first information after sending the information sending instruction.

[0211] Exemplarily, the information sending indication may be carried in a switching response message, so that the second access network device may send a switching response message to the first access network device. In this case, the second access network device may receive the first information after sending the switching response message.

[0212] In a possible implementation, the second access network device may further perform the following operation: sending the first information to the terminals in the second terminal group under the second access network device, wherein the TSN service types supported by the terminals in the second terminal group are the same, and the TSN service types supported by the terminals in the second terminal group are the same as the TSN service types supported by the terminals in the first terminal group.

[0213] That is, if the second access network device receives the first information, the second access network device may send the first information to the terminals in the second terminal group that have the same TSN service type as that supported by the first terminal group.

[0214] Exemplarily, the second access network device may send the first information to the terminals in the second terminal group by means of broadcast, unicast, or dedicated RRC (Radio Resource Control) messages.

[0215] Exemplarily, the second access network device may send the first information to the terminal in the second terminal group after the terminal that needs to be switched is switched. The second access network device may also send the first information to the terminal in the second terminal group during the switching process of the terminal that needs to be switched. This embodiment does not limit this.

[0216] Step 602: According to the first information, determine the target clock reference terminal, the target clock reference terminal is used as the first master TSN clock node, the first master TSN clock node is the master TSN clock node under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the second terminal group under the second access network device.

[0217] In this embodiment, based on the different setting rules of the main TSN clock node in the 5G system, the first main TSN clock node can be the main TSN clock node of the second terminal group under the second access network device, and the first main TSN clock node can also be the main TSN clock node of the TSN service supported by the second terminal group.

[0218] The specific implementation method can be found in Figure 3 Step 301 in the embodiment will not be repeated here.

[0219] That is, when the first information is received, the second access network device can determine the target clock reference terminal used as the first master TSN clock node according to the first information. In this way, the second access network device can perform clock synchronization with the target clock reference terminal to achieve clock synchronization under the TSN service supported by the target clock reference terminal.

[0220] Based on Figure 6 In an optional embodiment, if the terminal to be switched is part of the terminals in the first terminal group, the terminal to be switched does not include the first clock reference terminal, the first clock reference terminal is used as the second master TSN clock node, the second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group.

[0221] In this case, the first information includes: a candidate terminal identifier, where the candidate terminal is determined by the first access network device from the terminals that need to be switched.

[0222] That is, when the terminals that need to be switched do not include the first clock reference terminal, the first access network device may determine a candidate terminal among the terminals that need to be switched, and send information indicating the candidate terminal to the second access network device.

[0223] Exemplarily, the first information also includes at least one of the following: the terminal group identifier of the first terminal group, the terminal identifier of other terminals in the first terminal group except the first clock reference terminal, the TSN service identifier, the TSN group identifier, the TSN clock domain identifier, and the TSN time domain identifier.

[0224] That is, in one implementation, when the terminal that needs to be switched does not include the first clock reference terminal, the first information sent by the first access network device may include one or more of the terminal group identifier of the first terminal group, the terminal identifiers of other terminals in the first terminal group except the first clock reference terminal, the TSN service identifier, the TSN group identifier, the TSN clock domain identifier to which it belongs, and the TSN time domain identifier to which it belongs. In this way, the second access network device can obtain the service group affiliation information or terminal group affiliation information of the terminal that needs to be switched, and assign the terminal that needs to be switched to the corresponding terminal group or service group.

[0225] In another implementation, when the terminal that needs to be switched does not include the first clock reference terminal, the first information sent by the first access network device may include information for identifying candidate terminals, and may also include the terminal group identifier of the first terminal group, the terminal identifiers of other terminals in the first terminal group except the first clock reference terminal, the TSN service identifier, the TSN group identifier, the TSN clock domain identifier, and the TSN time domain identifier. In this way, the second access network device can determine the candidate terminal among the terminals that need to be switched, and can obtain more information about the terminal that needs to be switched, so as to assign the terminal that needs to be switched to the corresponding terminal group or service group.

[0226] As an example, the second access network device may also perform at least one of the following operations: determine the candidate terminal as the target clock reference terminal, establish a specified QoS flow or a specified wireless data bearer with the target clock reference terminal, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0227] The specified QoS flow may include a specified uplink QoS flow, may include a specified downlink QoS flow, or may include both a specified uplink QoS flow and a specified downlink QoS flow, which is not limited in this embodiment.

[0228] The designated wireless data bearer may include a designated uplink wireless data bearer, may include a designated downlink wireless data bearer, or may include both a designated uplink wireless data bearer and a designated downlink wireless data bearer, which is not limited in this embodiment.

[0229] That is, when the terminal to be switched includes a candidate terminal, the second access network device can directly determine the candidate terminal as the target clock reference terminal. In this case, the switching command sent by the second access network device can include information instructing the candidate terminal to establish a specified QoS flow or a specified wireless data bearer.

[0230] In this way, the second access network device can establish a specified QoS flow or a specified wireless data bearer with the target clock reference terminal, so that the target clock reference terminal can send TSN clock information to the second access network device through the specified QoS flow or the specified wireless data bearer, and the second access network device can perform clock synchronization according to the TSN clock information to achieve clock synchronization under the TSN service supported by the target clock reference terminal.

[0231] Exemplarily, the second access network device may not determine the candidate terminal as the target clock reference terminal, that is, the second access network device may determine the terminal currently used as the first master TSN clock node as the target clock reference terminal. In this case, the second access network device can perform clock synchronization with the target clock reference terminal.

[0232] Exemplarily, the second access network device may also determine the target clock reference terminal according to the capability of the terminal. That is, the second access network device may compare the capabilities of the candidate terminal with the terminal currently used as the first master TSN clock node, and determine the terminal with stronger capability as the target clock reference terminal.

[0233] For example, the second access network device can compare the service quality of the candidate terminal with the terminal currently used as the first master TSN clock node. If the service quality of the candidate terminal is higher, the candidate terminal is determined to be the target clock reference terminal. If the service quality of the terminal currently used as the first master TSN clock node is higher, the terminal currently used as the first master TSN clock node is determined to be the target clock reference terminal.

[0234] Exemplarily, the second access network device may not determine the candidate terminal as the target clock reference terminal, but may directly determine the terminal currently used as the second main TSN clock node as the target clock reference terminal. In this case, the second access network device can perform clock synchronization with the target clock reference terminal, or the second access network device can perform clock synchronization with the access network device to which the target clock reference terminal belongs.

[0235] Based on Figure 6 In an optional embodiment, the terminals that need to be switched are some terminals in the first terminal group, and the terminals that need to be switched include a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, and the second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group.

[0236] In this case, the first information includes at least one of the following:

[0237] (1) The first clock reference terminal identifier specifies the QoS flow identifier;

[0238] (2) Specifying the QoS flow indicated by the QoS flow identifier is used to transmit TSN clock information;

[0239] (3) Specifying a radio data bearer DRB identifier, and specifying that the radio data bearer indicated by the DRB identifier is used to transmit TSN clock information.

[0240] That is, when the terminal that needs to be switched includes a first clock reference terminal, the second access network device can receive information indicating the first clock reference terminal, for example, the second access network device can receive one or more of the first clock reference terminal identifier, a specified QoS flow identifier, and a specified DRB identifier.

[0241] Exemplarily, the first information also includes at least one of the following: the terminal group identifier of the first terminal group, the terminal identifier of other terminals in the first terminal group except the first clock reference terminal, the TSN service identifier, the TSN group identifier, the TSN clock domain identifier, and the TSN time domain identifier.

[0242] For details, please refer to Figure 4 Step 401 in the embodiment will not be repeated here.

[0243] That is to say, in one implementation, when the terminal that needs to be switched includes the first clock reference terminal, the first information may include one or more of the terminal group identifier of the first terminal group, the terminal identifiers of other terminals in the first terminal group except the first clock reference terminal, the TSN service identifier, the TSN group identifier, the TSN clock domain identifier, and the TSN time domain identifier. In this way, the second access network device can obtain the service group affiliation information or terminal group affiliation information of the terminal that needs to be switched, and assign the terminal that needs to be switched to the corresponding terminal group or service group.

[0244] In another implementation, when the terminal that needs to be switched includes a first clock reference terminal, the first information may include information for identifying the first clock reference terminal, and may also include a terminal group identifier of the first terminal group, terminal identifiers of other terminals in the first terminal group except the first clock reference terminal, a TSN service identifier, a TSN group identifier, a corresponding TSN clock domain identifier, and a corresponding TSN time domain identifier. In this way, the second access network device can determine the first clock reference terminal in the terminal that needs to be switched, and can obtain more information about the terminal that needs to be switched, thereby assigning the terminal that needs to be switched to the corresponding terminal group or service group.

[0245] As an example, the second access network device may also perform at least one of the following operations: determining the first clock reference terminal as a target clock reference terminal, establishing a specified QoS flow or a specified wireless data bearer with the target clock reference terminal, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0246] That is, when the terminal to be switched includes the first clock reference terminal, the second access network device can directly determine the first clock reference terminal as the target clock reference terminal. In this case, the switching command sent by the second access network device may include information instructing the first clock reference terminal to establish a specified QoS flow or a specified wireless data bearer.

[0247] In this way, the second access network device can establish a specified QoS flow or a specified wireless data bearer with the target clock reference terminal, so that the target clock reference terminal can send TSN clock information to the second access network device through the specified QoS flow or the specified wireless data bearer, and the second access network device can perform clock synchronization according to the TSN clock information to achieve clock synchronization under the TSN service supported by the target clock reference terminal.

[0248] Exemplarily, the second access network device may not determine the first clock reference terminal as the target clock reference terminal, that is, the second access network device may determine the terminal currently used as the first master TSN clock node as the target clock reference terminal. In this case, the second access network device may perform clock synchronization with the target clock reference terminal, or the second access network device may perform clock synchronization with the access network device to which the target clock reference terminal belongs.

[0249] Exemplarily, the second access network device may also determine the target clock reference terminal according to the capability of the terminal. That is, the second access network device may compare the capabilities of the first clock reference terminal and the terminal currently used as the first master TSN clock node, and determine the terminal with stronger capability as the target clock reference terminal.

[0250] For example, the second access network device can compare the service quality of the first clock reference terminal with that of the terminal currently used as the first master TSN clock node. If the service quality of the first clock reference terminal is higher, the first clock reference terminal is determined to be the target clock reference terminal. If the service quality of the terminal currently used as the first master TSN clock node is higher, the terminal currently used as the first master TSN clock node is determined to be the target clock reference terminal.

[0251] Based on Figure 6 In an optional embodiment, if the terminal to be switched includes a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, and the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node for a TSN service supported by the first terminal group. The second access network device may also perform the following operations: when the first clock reference terminal changes, a change message is received, and the change message is used to notify the second access network device that the second master TSN clock node has changed.

[0252] Among them, the change of the second main TSN clock node may include the switching of the terminal used as the second main TSN clock node, the power failure of the terminal used as the second main TSN clock node, the abnormality of the terminal used as the second main TSN clock node, the terminal used as the second main TSN clock node moving outside the coverage of the first access network device, etc. This embodiment does not limit this.

[0253] In this embodiment, when the first clock reference terminal used as the second master TSN clock node changes, the first clock reference terminal is no longer used as the second master TSN clock node, that is, the first access network device no longer performs clock synchronization with the first clock reference terminal. In this way, when the terminal to be switched includes the first clock reference terminal, if the first clock reference terminal changes, that is, the first clock reference terminal is no longer used as the second master TSN clock node, the second access network device can determine that the first clock reference terminal is no longer used as the first master TSN clock node through the change message sent by the first access network device.

[0254] As an example, the change message may include at least one of the following: a change indication, a TSN service identifier, a first clock reference terminal identifier, a TSN clock domain identifier, a service cell identifier to which the target terminal belongs, an access network device identifier to which the target terminal belongs, a TSN group identifier, a terminal group identifier of the first terminal group, and terminal identifiers of other terminals in the first terminal group except the first clock reference terminal identifier.

[0255] The target terminal refers to a terminal that is newly determined to be used as a second master TSN clock node.

[0256] The change indication may be used by the second access network device to determine that the first clock reference terminal is no longer used as the second master TSN clock node.

[0257] The TSN service identifier may be used by the second access network device to determine the TSN service type supported by the first clock reference terminal.

[0258] The TSN clock domain identifier can be used by the second access network device to determine the clock domain corresponding to the TSN service supported by the first clock reference terminal during transmission.

[0259] The first clock reference terminal identifier may be used by the second access network device to determine the first clock reference terminal in the terminal that needs to be switched.

[0260] The TSN group identifier refers to the identifier of the service group to which the TSN service supported by the first clock reference terminal belongs, or the TSN group identifier refers to the identifier of the terminal group consisting of all terminals supporting the TSN service when the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group. It should be noted that the terminals supporting the TSN service may belong to the same access network device or to different access network devices, which is not limited in this embodiment.

[0261] That is, the change message may include a change indication, a TSN service identifier, a first clock reference terminal identifier, a TSN clock domain identifier, a service cell identifier to which the target terminal belongs, an access network device identifier to which the target terminal belongs, a TSN group identifier, a terminal group identifier of the first terminal group, and one or more terminal identifiers of other terminals in the first terminal group except the first clock reference terminal identifier. In this way, the second access network device can determine a more suitable terminal to be used as the first main TSN clock node based on the change message.

[0262] As an example, the second access network device may also perform the following operation: sending a change message to the terminals in the second terminal group under the second access network device.

[0263] That is, when the second access network device receives the change message, the second access network device can send the change message to the terminal of the second terminal group. In this way, the terminal in the second terminal group can also determine that the first clock reference terminal is no longer used as the second master TSN clock node.

[0264] Exemplarily, the second access network device may send the change message to the terminals in the second terminal group by means of broadcast, unicast, or dedicated RRC messages.

[0265] Based on Figure 6In an optional embodiment, if the terminal to be switched includes a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, and the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node for a TSN service supported by the first terminal group. The second access network device may also perform the following operations:

[0266] 1. Determine the second main TSN clock node based on whether the terminal to be switched corresponds to a specified QoS flow or a specified wireless data bearer.

[0267] That is, when the second access network device determines that the terminal to be switched corresponds to a specified QoS flow or a specified wireless data bearer, it can be determined that the terminal can be used as the second master TSN clock node. When the second access network device determines that the terminal to be switched does not correspond to a specified QoS flow or a specified wireless data bearer, it can be determined that the terminal cannot be used as the second master TSN clock node.

[0268] 2. Determine the second master TSN clock node based on whether the terminal to be switched is capable of establishing a specified QoS flow or a specified wireless data bearer. The specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0269] That is, when the second access network device determines that the terminal to be switched is capable of establishing a specified QoS flow or a specified wireless data bearer, it can be determined that the terminal can be used as the second master TSN clock node. When the second access network device determines that the terminal to be switched is not capable of establishing a specified QoS flow or a specified wireless data bearer, it can be determined that the terminal cannot be used as the second master TSN clock node.

[0270] 3. Determine the second master TSN clock node based on whether the terminal to be switched has a designated identifier, wherein the designated identifier is the identifier of the terminal used as the second master TSN clock node.

[0271] Among them, the identifier can be pre-configured, or it can be indicated or configured to the terminal by a network device. For example, the identifier can be configured to the terminal by a CNC node, or it can be configured to the terminal by a first access network device. This embodiment does not limit this.

[0272] That is, when the second access network device determines that the terminal to be switched corresponds to the identifier of the second master TSN clock node, it can be determined that the terminal can be used as the second master TSN clock node. When the second access network device determines that the terminal to be switched does not correspond to the identifier of the second master TSN clock node, it can be determined that the terminal cannot be used as the second master TSN clock node.

[0273] In an embodiment of the present application, when a terminal in the first terminal group needs to be switched from the first access network device to the second access network device, the second access network device can receive the first information during the switching process, so that the second access network device can determine the target clock reference terminal based on the first information. That is, the second access network device can determine the first master TSN clock node based on the first information, and the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group, so that the second access network device can determine the appropriate master TSN clock node for clock synchronization during the switching process.

[0274] As an example, when the terminal to be switched includes the first clock reference terminal, the first information may include relevant information of the first clock reference terminal, and the second access network device may determine the first clock reference terminal in the terminal to be switched based on the first information.

[0275] In this case, the second access network device can directly determine the first clock reference terminal as the target clock reference terminal, that is, the first clock reference terminal can be used as the first master TSN clock node, so that the second access network device can synchronize the clock with the target clock reference terminal.

[0276] As an example, when the terminals that need to be switched do not include the first clock reference terminal, the first information may include relevant information of the candidate terminals, and the second access network device may determine the candidate terminals among the terminals that need to be switched based on the first information.

[0277] In this case, the second access network device can directly determine the candidate terminal as the target clock reference terminal, that is, the candidate terminal can be used as the first master TSN clock node, so that the second access network device can synchronize the clock with the target clock reference terminal.

[0278] Of course, in this case, the second access network device may not determine the candidate terminal as the target clock reference terminal, but may directly determine the terminal currently used as the second master TSN clock node as the target clock reference terminal.

[0279] As an example, when the terminals that need to be switched include the first clock reference terminal, if the first clock reference terminal changes, the second access network device can receive the change message sent by the first access network device. In this way, the second access network device can promptly determine that the first clock reference terminal is no longer used as the second main TSN clock node. On this basis, the second access network device can select a more suitable terminal to be used as the first main TSN clock node.

[0280] Please refer to Figure 7 ,Should Figure 7 is a flowchart of a clock synchronization method according to an exemplary embodiment. The clock synchronization method can be applied to the above Figure 2 In the implementation environment shown, the clock synchronization method is mainly performed by a third access network device, which can be a first access network device or a second access network device, that is, the third access network device can be a source access network device or a target access network device. The clock synchronization method can include at least part of the following contents:

[0281] Step 701: When a second clock reference terminal is changed, determine a target terminal in a third terminal group.

[0282] Among them, the second clock reference terminal is used as the third master TSN clock node, the third master TSN clock node is the master TSN clock node under the third access network device, or the third master TSN clock node is the master TSN clock node of the TSN service supported by the third terminal group, the target terminal is the re-determined terminal used as the third master TSN clock node, the third terminal group is the terminal group where the second clock reference terminal is located, and the terminals in the third terminal group support the same TSN service type.

[0283] Among them, the change of the second main TSN clock node may include the switching of the terminal used as the second main TSN clock node, the power failure of the terminal used as the second main TSN clock node, the abnormality of the terminal used as the second main TSN clock node, the terminal used as the second main TSN clock node moving outside the coverage of the first access network device, etc. This embodiment does not limit this.

[0284] In this embodiment, based on the different setting rules of the main TSN clock node in the 5G system, the third main TSN clock node can be the main TSN clock node of the third terminal group under the third access network device, and the third main TSN clock node can also be the main TSN clock node of the TSN service supported by the third terminal group.

[0285] The specific implementation method can be found in Figure 3 Step 301 in the embodiment will not be repeated here.

[0286] In this embodiment, when the terminal used as the second master TSN clock node changes, the terminal is no longer used as the second master TSN clock node, that is, the third access network device no longer performs clock synchronization with the terminal used as the second master TSN clock node.

[0287] In this case, the third access network device can determine the target terminal in the third terminal group, that is, determine the terminal that can be used as the third master TSN clock node, so that the third access network device can perform clock synchronization with the target terminal.

[0288] Exemplarily, the third access network device may select the terminal with the highest clock accuracy in the third terminal group as the target terminal, or may select the terminal with the smallest local oscillator in the third terminal group as the target terminal, or may select the terminal with the highest service quality in the third terminal group as the target terminal, etc. This embodiment does not limit this.

[0289] In a possible implementation manner, the third access network device may further perform the following operations: establish a specified QoS flow or a specified wireless data bearer with the target terminal, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0290] The specified QoS flow may include a specified uplink QoS flow, may include a specified downlink QoS flow, or may include both a specified uplink QoS flow and a specified downlink QoS flow, which is not limited in this embodiment.

[0291] The designated wireless data bearer may include a designated uplink wireless data bearer, may include a designated downlink wireless data bearer, or may include both a designated uplink wireless data bearer and a designated downlink wireless data bearer, which is not limited in this embodiment.

[0292] That is, when the target terminal is determined, the third access network device can establish a specified QoS flow or a specified wireless data bearer with the target terminal. In this way, the target terminal can send TSN clock information to the first access network device through the specified QoS flow or the specified wireless data bearer, and the first access network device can perform clock synchronization with the target terminal based on the TSN clock information.

[0293] Exemplarily, the target terminal is determined by at least one of the following nodes: a core network node, a CNC node, a third access network device, all terminals in a third terminal group, any terminal in the third terminal group, a designated terminal in the third terminal group, and a second clock reference terminal.

[0294] Among them, the core network node may include an AMF node, an SMF node, etc., which is not limited in this embodiment.

[0295] The designated terminal in the third terminal group may be designated by a third access network device or by a core network node, which is not limited in this embodiment.

[0296] That is, when the second clock reference terminal changes, the target terminal can be determined by one or more of the core network node, the CNC node, the third access network device, all terminals in the third terminal group, any terminal in the third terminal group, a designated terminal in the third terminal group, and the second clock reference terminal.

[0297] For example, when the second clock reference terminal changes, the third access network device may determine the target terminal in the third terminal group. Alternatively, the third access network device and the second clock reference terminal may jointly determine the target terminal in the third terminal group, which is not limited in this embodiment.

[0298] As an example, the second access network device may also perform the following operation: when the target terminal is determined by the third access network device, send a change message to the first node, where the change message includes a terminal identifier of the target terminal.

[0299] The terminal identification of the target terminal may be used by the first node to determine the target terminal among multiple terminals within the coverage of the second access network. Exemplarily, the terminal identification of the target terminal may be an ID of the target terminal.

[0300] like Figure 8 As shown, when the target terminal is determined by a third access network device, the third access network device can determine the relevant information of the target terminal, thereby generating a change message, and then the third access network device can send a change message to the first node to indicate that the second clock reference terminal of the first node has changed, and the first node can determine the target terminal from multiple terminals within the coverage of the third access network device based on the terminal identifier of the target terminal included in the change message.

[0301] Exemplarily, the third access network device may send the change message to the first node by broadcasting, unicasting, or a dedicated RRC message.

[0302] Exemplarily, the change message also includes at least one of the following: a change indication, a TSN service identifier, a TSN clock domain identifier, a second clock reference terminal identifier, a service cell identifier to which the target terminal belongs, an access network device identifier to which the target terminal belongs, a TSN group identifier, a terminal group identifier of a third terminal group, and a terminal identifier of other terminals in the third terminal group except the second clock reference terminal.

[0303] The change indication may be used by the first node to determine that the second clock reference terminal is no longer used as the second master TSN clock node.

[0304] Among them, the TSN service identifier can be used by the first node to determine the TSN service type supported by the target terminal. In this way, if the TSN service type supported by the first node is the same as the TSN service type supported by the target terminal, the first node can perform clock synchronization with the target terminal.

[0305] The TSN clock domain identifier can be used by the first node to determine the clock domain corresponding to the TSN service supported by the target terminal during transmission.

[0306] The terminal group identifier of the third terminal group may be used by the first node to determine the terminal group to which the target terminal belongs. Exemplarily, the terminal group identifier of the third terminal group may be an ID of the third terminal group.

[0307] The second clock reference terminal identifier may be used by the first node to determine the second clock reference terminal among multiple terminals within the coverage of the third access network device.

[0308] The serving cell identifier to which the target terminal belongs may be used by the first node to determine the serving cell to which the target terminal belongs.

[0309] In the case of clock synchronization between multiple access network devices, the multiple access network devices may use the same master TSN clock node for clock synchronization. In this case, the service cell to which the target terminal belongs may not be the service cell to which the first node belongs.

[0310] For example, in the case where the clocks between the second access network device and the third access network device are synchronized, if the target terminal is within the coverage of the third access network device, the service cell to which the target terminal belongs is the cell within the coverage of the third access network device. If the target terminal is within the coverage of the second access network device, the service cell to which the target terminal belongs is the cell within the coverage of the second access network device.

[0311] The access network device identifier to which the target terminal belongs may be used by the first node to determine the access network device to which the target terminal belongs.

[0312] In the case of clock synchronization between multiple access network devices, the multiple access network devices may use the same master TSN clock node for clock synchronization. In this case, the access network device to which the target terminal belongs may not be the access network device to which the first node belongs.

[0313] For example, in the case where the clocks between the second access network device and the third access network device are synchronized, if the target terminal is within the coverage of the third access network device, the access network device to which the target terminal belongs is the third access network device. If the target terminal is within the coverage of the second access network, the access network device to which the target terminal belongs is the second access network device.

[0314] The TSN group identifier refers to the identifier of the service group to which the TSN service supported by the second clock reference terminal belongs, or the TSN group identifier refers to the identifier of the terminal group composed of all terminals supporting the TSN service when the third master TSN clock node is the master TSN clock node of the TSN service supported by the third terminal group. It should be noted that the terminals supporting the TSN service may belong to the same access network device or to different access network devices, which is not limited in this embodiment.

[0315] That is, in addition to the terminal identifier of the target terminal, the change message sent by the third access network device may also include a change indication, a TSN service identifier, a TSN clock domain identifier, a second clock reference terminal identifier, a service cell identifier to which the target terminal belongs, an access network device identifier to which the target terminal belongs, a TSN group identifier, a terminal group identifier of the third terminal group, and one or more terminal identifiers of other terminals in the third terminal group except the second clock reference terminal. In this way, the first node can obtain more information about the target terminal.

[0316] Exemplarily, the first node includes at least one of the following: all terminals supporting the TSN service corresponding to the third terminal group, all terminals under the third access network device, all terminals in the third terminal group, other terminals in the third terminal group except the target terminal, a second clock reference terminal, and the target terminal.

[0317] That is, the third access network device can send change messages to all terminals supporting the TSN service corresponding to the third terminal group, all terminals under the third access network device, all terminals in the third terminal group, other terminals in the third terminal group except the target terminal, the second clock reference terminal, and one or more of the target terminals.

[0318] For example, the third access network device may send a change message to all terminals under the third access network device, or may send a change message to the second clock reference terminal and the target terminal, which is not limited in this embodiment.

[0319] As an example, the second access network device can also perform the following operations: when the target terminal is determined by all terminals in the third terminal group, any terminal in the third terminal group, the second clock reference terminal, the first clock reference terminal or a designated terminal in the third terminal group, receive a change message, the change message including the terminal identifier of the target terminal.

[0320] That is, when the target terminal is determined by all terminals in the third terminal group, any terminal in the third terminal group, the second clock reference terminal, the first clock reference terminal or one or more designated terminals in the third terminal group, since the third access network device does not directly determine the target terminal, the third access network device cannot determine the information of the target terminal. In this case, the third access network device can determine the target terminal in the third terminal group by receiving a change message.

[0321] Exemplarily, the second access network device may also perform the following operation: sending a change message to the first node.

[0322] That is, when the second access network device receives the change message, the second access network device may send a change message to the first node to indicate to the first node that the second clock reference terminal is no longer used as the third master TSN clock node.

[0323] As an example, the second access network device may also perform the following operation: when the target terminal is determined by a core network node or a CNC node, receive a change message, where the change message includes a terminal identifier of the target terminal.

[0324] That is, when the target terminal is determined by the core network node, since the third access network device does not directly determine the target terminal, the third access network device cannot determine the information of the target terminal. In this case, the third access network device can receive the change message sent by the core network node, and thus can determine the target terminal in the third terminal group based on the change message.

[0325] Exemplarily, the change message may be sent by the core network node to the third access network device via a NAS (Non-Access Stratum) message.

[0326] In the embodiment of the present application, when the second clock reference terminal is changed, the second clock reference terminal is no longer used as the third master TSN clock node, that is, the third access network device can no longer perform clock synchronization with the second clock reference terminal. In this case, the third access network device can determine a suitable master TSN clock node in the third terminal group to which the second clock reference terminal belongs for clock synchronization.

[0327] In an embodiment of the present application, when the second clock reference terminal changes, the third access network device may further instruct the second clock reference terminal to release or suspend a specified QoS flow or a specified wireless data bearer.

[0328] Please refer to Fig. 9 ,Should Fig. 9is a flowchart of a clock synchronization method according to an exemplary embodiment. The clock synchronization method can be applied to the above Figure 2 In the implementation environment shown, the clock synchronization method is executed by the first terminal and may include at least part of the following contents:

[0329] Step 901: When a first terminal is used as a first master TSN clock node, TSN clock information is sent to a first access network device.

[0330] Among them, the first master TSN clock node is the master TSN clock node under the first access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group under the first access network device, and the terminals in the first terminal group support the same TSN service type.

[0331] In this embodiment, based on the different setting rules of the main TSN clock node in the 5G system, the first main TSN clock node can be the main TSN clock node of the first terminal group under the first access network device, and the first main TSN clock node can also be the main TSN clock node of the TSN service supported by the first terminal group.

[0332] The specific implementation method can be found in Figure 3 Step 301 in the embodiment will not be repeated here.

[0333] That is, when the first terminal is used as the first master TSN clock node, the first terminal can send TSN clock information to the first access network device, so that the first access network device can perform clock synchronization according to the TSN clock information.

[0334] Exemplarily, the TSN clock information includes at least one of the following: TSN service arrival time, TSN service departure time, TSN time domain identifier, TSN clock domain identifier, time information, time information type, clock synchronization accuracy information, SFN (System Frame Number, system frame number) information, and propagation delay compensation indication.

[0335] The TSN service arrival time refers to the transmission start time of the TSN service supported by the first terminal, and the TSN service departure time refers to the transmission end time of the TSN service supported by the first terminal.

[0336] The TSN clock domain identifier may be used by the first access network device to determine the clock domain corresponding to the TSN service supported by the first terminal during transmission.

[0337] Among them, the TSN time domain identifier can be used by the first access network device to determine the time domain corresponding to the TSN service supported by the first terminal during transmission.

[0338] The clock synchronization accuracy information may be used by the first access network device to determine the clock synchronization accuracy of the first terminal.

[0339] The time information may be used to indicate time. Exemplarily, the time information may be second-level time information, nanosecond-level time information, etc., which is not limited in this embodiment.

[0340] Among them, the time information type can be used by the first access network device to determine the type of time information. Exemplarily, the time information type can be a default type, a request type, a response type, etc., which is not limited in this embodiment.

[0341] Among them, the SFN information can be used by the first access network device to determine the system frame number when the first terminal sends TSN clock information.

[0342] The propagation delay compensation indication may be used by the first access network device to determine whether the first terminal performs propagation delay compensation.

[0343] That is, the first terminal can send one or more of the TSN service arrival time, TSN service departure time, the TSN time domain identifier, the TSN clock domain identifier, time information, time information type, clock synchronization accuracy information, system frame number SFN information, and propagation delay compensation indication to the first access network device, so that the first access network device can perform clock synchronization with the first terminal based on the received information.

[0344] Of course, the first terminal may not send the TSN clock information to the first network device, but may directly send the TSN clock information to the core network node. In this case, the TSN clock information may be forwarded by the core network node.

[0345] In a possible implementation, the first terminal may further perform the following operations: when the reference event is triggered, send updated TSN clock information to the first access network device, or send updated TSN clock information to the first access network device at specified intervals.

[0346] The reference event and the specified duration may be set according to actual conditions, and this embodiment does not limit this.

[0347] Exemplarily, when a reference event is triggered, it can indicate that the TSN clock information has been updated, and thus, the first terminal can send updated TSN clock information to the first access network device. In this case, the first access network device can synchronize the clock with the first terminal according to the updated TSN clock information.

[0348] Exemplarily, when a specified time has passed since the last time TSN clock information was sent, it can be said that the TSN clock information has been updated. Thus, the first terminal can send updated TSN clock information to the first access network device. In this case, the first access network device can synchronize the clock with the first terminal based on the updated TSN clock information.

[0349] Exemplarily, the updated TSN clock information may be carried in a specified DRB, a specified QoS flow, a dedicated RRC message, a MAC CE (Medium Access Control Control Element) or a physical layer signaling, etc., which is not limited in this embodiment.

[0350] The specified QoS flow may include a specified uplink QoS flow, may include a specified downlink QoS flow, or may include both a specified uplink QoS flow and a specified downlink QoS flow, which is not limited in this embodiment.

[0351] The designated wireless data bearer may include a designated uplink wireless data bearer, may include a designated downlink wireless data bearer, or may include both a designated uplink wireless data bearer and a designated downlink wireless data bearer, which is not limited in this embodiment.

[0352] As an example, the reference event being triggered includes at least one of the following: TSN service arrival, TSN clock information change, and TSN clock information change granularity being greater than or equal to a specified threshold granularity.

[0353] The specified threshold granularity may be set according to actual conditions, and this embodiment does not limit this.

[0354] For example, when a TSN service arrives, it may indicate that the TSN clock information needs to be updated. In this case, the first terminal may send updated TSN clock information to the first access network device. In this way, the first access network device may synchronize with the first terminal based on the updated TSN clock information to achieve clock synchronization under the TSN service supported by the first terminal, thereby ensuring the transmission reliability of the TSN service supported by the first terminal.

[0355] Exemplarily, when the TSN clock information changes, it may indicate that the TSN clock information needs to be updated. In this case, the first terminal may send updated TSN clock information to the first access network device. In this way, the first access network device may synchronize with the first terminal according to the updated TSN clock information to achieve clock synchronization under the TSN service supported by the first terminal.

[0356] Exemplarily, when the TSN clock information change granularity is greater than or equal to the specified threshold granularity, since the change granularity is large, it can be indicated that the TSN clock information needs to be updated. In this case, the first terminal can send updated TSN clock information to the first access network device. In this way, the first access network device can synchronize with the first terminal according to the updated TSN clock information to achieve clock synchronization under the TSN service supported by the first terminal.

[0357] For example, the specified threshold granularity can be set to 1ms. If the TSN clock information change granularity is 2ms, since the TSN clock information change granularity is greater than the specified threshold granularity, it can be indicated that the TSN clock information needs to be updated. In this case, the first terminal can send updated TSN clock information to the first access network device.

[0358] Of course, the first terminal may not send the updated TSN clock information to the first network device, but directly send the updated TSN clock information to the core network node. In this case, the core network node may forward the updated TSN clock information.

[0359] In one possible implementation, the first terminal is used as the first master TSN clock node. Before sending TSN clock information to the first access network device, the first terminal can also perform the following operations: establish a specified QoS flow or a specified wireless data bearer with the first access network device, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0360] That is, if the first terminal is used as the main TSN clock node under the first access network device, the first terminal can receive the designated QoS flow establishment signaling or the designated wireless data bearer establishment signaling of the first access network device. In this case, the first terminal can establish the designated QoS flow or the designated wireless data bearer according to the designated QoS flow establishment signaling or the designated wireless data bearer establishment signaling, so that the first terminal can send TSN clock information to the first access network device through the designated QoS flow or the designated wireless data bearer.

[0361] In a possible implementation, when the first terminal is used as the first master TSN clock node, the first terminal may further perform the following operations: when the first master TSN clock node is changed, if the first terminal is not the target terminal, release or suspend the specified QoS flow or the specified wireless data bearer. The target terminal is the terminal re-determined to be used as the first master TSN clock node.

[0362] Among them, the change of the first main TSN clock node may include: the first terminal switching, the first terminal power failure, the first terminal abnormality, the first terminal moving out of the coverage of the first access network device, etc. This embodiment does not limit this.

[0363] Typically, when the first master TSN clock node changes, the first terminal is no longer used as the first master TSN clock node, that is, the first access network device no longer performs clock synchronization with the first terminal. In this case, the first terminal can release the specified QoS flow or the specified wireless data bearer. Exemplarily, the first terminal can delete the specified QoS flow or the specified wireless data bearer corresponding to the first terminal before the target terminal establishes the specified QoS flow or the specified wireless data bearer. In this way, the first terminal cannot send TSN clock information to the first access network device or the core network node or other terminals.

[0364] Alternatively, the first terminal may suspend the specified QoS flow or the specified wireless data bearer. That is, the first terminal may suspend the use of the specified QoS flow or the specified wireless data bearer. In this way, the first terminal may not send TSN clock information to the first access network device or the core network node or other terminals.

[0365] Exemplarily, the target terminal is determined by at least one of the following nodes: a core network node, a centralized network controller CNC node, a first terminal, a first access network device, all terminals in the first terminal group, any terminal in the first terminal group, a designated terminal in the first terminal group, and the first terminal.

[0366] Among them, the core network node may include an AMF node, an SMF node, etc., which is not limited in this embodiment.

[0367] The designated terminal in the first terminal group may be designated by the first access network device or by a core network node, which is not limited in this embodiment.

[0368] That is, when the first clock reference terminal changes, the target terminal can be determined by the core network node, the CNC node, the first terminal, the first access network device, all terminals in the first terminal group, any terminal in the first terminal group, a designated terminal in the first terminal group, or one or more of the first terminals.

[0369] For example, when the first clock reference terminal changes, the first access network device may determine the target terminal in the first terminal group. Alternatively, the first access network device and the first clock reference terminal may jointly determine the target terminal in the first terminal group, which is not limited in this embodiment.

[0370] As an example, the first terminal may also perform the following operation: determining a change message, where the change message includes a terminal identifier of the target terminal.

[0371] In the case where the target terminal is determined by the first terminal, the first terminal may determine the relevant information of the target terminal, that is, the terminal identifier of the target terminal, thereby generating a change message.

[0372] Among them, when the target terminal is determined by one or more of the core network node, the centralized network controller CNC node, the first terminal, the first access network device, all terminals in the first terminal group, any terminal in the first terminal group, and a designated terminal in the first terminal group, since the first terminal does not directly determine the target terminal, the first terminal cannot determine the relevant information of the target terminal. In this case, the first terminal can receive a change message.

[0373] Exemplarily, the change message also includes at least one of the following: a change indication, a TSN service identifier, a first terminal identifier, a TSN clock domain identifier, a service cell identifier to which the target terminal belongs, an access network device identifier to which the target terminal belongs, a TSN group identifier, a terminal group identifier of the first terminal group, and a terminal identifier of other terminals in the first terminal group except the first terminal.

[0374] The TSN service identifier may be used by the first terminal to determine the TSN service type supported by the target terminal.

[0375] The TSN clock domain identifier may be used by the first terminal to determine the clock domain corresponding to the TSN service supported by the target terminal during transmission.

[0376] The serving cell identifier to which the target terminal belongs may be used by the first terminal to determine the serving cell to which the target terminal belongs.

[0377] The access network device identifier to which the target terminal belongs may be used by the first terminal to determine the access network device to which the target terminal belongs.

[0378] The TSN group identifier refers to the identifier of the terminal group consisting of all terminals supporting the TSN service when the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group. It should be noted that the terminals supporting the TSN service may belong to the same access network device or to different access network devices, which is not limited in this embodiment.

[0379] That is, in addition to the terminal identifier of the target terminal, the change message may also include a change indication, a TSN service identifier, a first terminal identifier, a TSN clock domain identifier, a service cell identifier to which the target terminal belongs, an access network device identifier to which the target terminal belongs, a TSN group identifier, a terminal group identifier of the first terminal group, and one or more terminal identifiers of other terminals in the first terminal group except the first terminal. In this way, the first terminal can obtain more information about the target terminal.

[0380] As an example, the first terminal may also perform the following operation: sending a change message to the first node.

[0381] That is, in the case where the target terminal determines the change message, the first terminal may send a change message to the first node to indicate that the first terminal is no longer used as the first master TSN clock node.

[0382] Exemplarily, the first node includes at least one of the following: all terminals supporting the TSN service corresponding to the first terminal group, all terminals under the first access network device, all terminals in the first terminal group, the target terminal, and other terminals in the first terminal group except the target terminal.

[0383] That is, the first terminal can send change messages to all terminals supporting the TSN service corresponding to the first terminal group, all terminals under the first access network device, all terminals in the first terminal group, the target terminal, and one or more terminals in the first terminal group except the target terminal.

[0384] Step 902: When the first terminal is not used as the first master TSN clock node, receive TSN clock information.

[0385] That is, if the first terminal is not used as a master TSN clock node under the first access network device, the first terminal can receive TSN clock information, so that the first terminal can perform clock synchronization with the first access network device based on the TSN clock information.

[0386] Exemplarily, the TSN clock information may be carried in a specified downlink DRB, a specified downlink QoS flow, a broadcast message, a dedicated RRC message, etc., which is not limited in this embodiment.

[0387] In a possible implementation, when the first terminal is not used as the first master TSN clock node, the first terminal may also perform the following operations: when the first master TSN clock node is changed, if the first terminal is a target terminal, a specified QoS flow or a specified wireless data bearer is established with the first access network device. The target terminal is a terminal newly determined to be used as the first master TSN clock node.

[0388] When the first master TSN clock node is changed, the first terminal is no longer used as the first master TSN clock node. In this case, if the first terminal is a target terminal, that is, if the first terminal is a terminal newly determined to be used as the first master TSN clock node, the first terminal can establish a designated QoS flow or a designated wireless data bearer with the first access network device, so that the first terminal can send TSN clock information to the first access network device through the designated QoS flow or the designated wireless data bearer.

[0389] Exemplarily, the target terminal is determined by at least one of the following nodes: a core network node, a CNC node, a first access network device, all terminals in the first terminal group, any terminal in the first terminal group, a designated terminal in the first terminal group, and the first terminal.

[0390] For details, please refer to Fig. 9 Step 901 in the embodiment will not be repeated here.

[0391] As an example, the first terminal may also perform the following operation: determining a change message, where the change message includes a terminal identifier of the target terminal.

[0392] For details, please refer to Fig. 9 Step 901 in the embodiment will not be repeated here.

[0393] Exemplarily, the change message also includes at least one of the following: a change indication, a TSN service identifier, a first terminal identifier, a TSN clock domain identifier to which it belongs, a service cell identifier to which the target terminal belongs, an access network device identifier to which the target terminal belongs, a TSN group identifier, a terminal group identifier of the first terminal group, and a terminal identifier of other terminals in the first terminal group except the first terminal.

[0394] For details, please refer to Fig. 9 Step 901 in the embodiment will not be repeated here.

[0395] As an example, the first terminal may also perform the following operation: sending a change message to the first node.

[0396] For details, please refer to Fig. 9 Step 901 in the embodiment will not be repeated here.

[0397] Exemplarily, the first node includes at least one of the following: all terminals supporting the TSN service corresponding to the first terminal group, all terminals under the first access network device, all terminals in the first terminal group, the target terminal, and other terminals in the first terminal group except the target terminal.

[0398] For details, please refer to Fig. 9Step 901 in the embodiment will not be repeated here.

[0399] In a possible implementation manner, the first terminal may further perform the following operations:

[0400] 1. If the first terminal corresponds to a specified QoS flow or a specified wireless data bearer, or the first terminal is capable of establishing a specified QoS flow or a specified wireless data bearer, it is determined that the first terminal is used as the first master TSN clock node, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0401] Exemplarily, when the first terminal corresponds to a specified QoS flow or a specified wireless data bearer, it indicates that the first terminal can be used as the first master TSN clock node. When the first terminal does not correspond to a specified QoS flow or a specified wireless data bearer, it indicates that the first terminal cannot be used as the first master TSN clock node.

[0402] Exemplarily, when the first terminal is capable of establishing a specified QoS flow or a specified wireless data bearer, it indicates that the first terminal can be used as the first master TSN clock node. When the first terminal is not capable of establishing a specified QoS flow or a specified wireless data bearer, it can be determined that the first terminal cannot be used as the first master TSN clock node.

[0403] 2. If the first terminal receives a designated QoS flow establishment signaling or a designated wireless data bearer establishment signaling, it is determined that the first terminal is used as the first master TSN clock node. The designated QoS flow establishment signaling is used to instruct the first terminal to establish a designated QoS flow, the designated wireless data bearer establishment signaling is used to instruct the first terminal to establish a designated wireless data bearer, and the designated QoS flow or designated wireless data bearer is used to transmit TSN clock information.

[0404] That is, the first terminal can determine whether the first terminal can be used as the first master TSN clock node by determining whether to receive the specified QoS flow establishment signaling or the specified radio data bearer establishment signaling.

[0405] Exemplarily, when the first terminal receives a designated QoS flow establishment signaling or a designated wireless data bearer establishment signaling, it indicates that the first terminal can be used as the first master TSN clock node. In this way, the first terminal can establish a designated QoS flow or a designated wireless data bearer based on the designated QoS flow establishment signaling or the designated wireless data bearer establishment signaling. In this case, the first terminal can send TSN clock information to the first access network device, and the TSN clock information can be used for clock synchronization between the first access network device and the first terminal.

[0406] Exemplarily, when the first terminal does not receive the specified QoS flow establishment signaling or the specified wireless data bearer establishment signaling, it indicates that the first terminal cannot be used as the first master TSN clock node. In this case, the first terminal can receive the TSN clock information sent by the first access network device. In this case, the first terminal can perform clock synchronization with the first access network device based on the TSN clock information.

[0407] 3. If the first terminal has a designated identifier, determine that the first terminal is used as the first master TSN clock node, wherein the designated identifier is an identifier of the terminal used as the first master TSN clock node.

[0408] Among them, the identifier can be pre-configured, or it can be indicated or configured to the terminal by a network device. For example, the identifier can be configured to the terminal by a CNC node, or it can be configured to the terminal by a first access network device. This embodiment does not limit this.

[0409] That is, the first terminal can determine whether the first terminal can be used as the first master TSN clock node by determining whether there is a corresponding identifier of the third master TSN clock node.

[0410] Exemplarily, when the first terminal corresponds to the identifier of the first master TSN clock node, it can be determined that the terminal can be used as the first master TSN clock node. In this case, the first terminal can send TSN clock information to the first access network device, and the TSN clock information can be used for clock synchronization between the first access network device and the first terminal.

[0411] Exemplarily, when the first access network device determines that the terminal to be switched does not have an identifier corresponding to the first master TSN clock node, it can be determined that the terminal cannot be used as the first master TSN clock node. In this case, the first terminal can receive TSN clock information sent by the first access network device. In this case, the first terminal can perform clock synchronization with the first access network device based on the TSN clock information.

[0412] In an embodiment of the present application, when the first terminal is used as the first master TSN clock node, the first terminal can send TSN clock information to the first access network device, so that the first access network device can perform clock synchronization with the first terminal based on the TSN clock information. When the first terminal is not used as the first master TSN clock node, the first terminal can receive TSN clock information, so that the first terminal can perform clock synchronization with the first access network device based on the TSN clock information.

[0413] Please refer to Fig.10 ,Should Fig.10is a structural diagram of a clock synchronization device according to an exemplary embodiment. The device may be configured in a terminal, and the device may include:

[0414] The sending module 1010 is used to send first information to the second access network device during the switching process when the terminals in the first terminal group need to switch; wherein the time period sensitive network TSN service types supported by the terminals in the first terminal group are the same, and the first information is used by the second access network device to determine the target clock reference terminal, and the target clock reference terminal is used as the first master TSN clock node, and the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group; the TSN service types supported by the terminals in the second terminal group are the same, and the TSN service types supported by the terminals in the second terminal group are the same as the TSN service types supported by the terminals in the first terminal group.

[0415] In a possible implementation of the present application, the terminal that needs to be switched includes a first clock reference terminal, and the first clock reference terminal is used as a second master TSN clock node. The second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group; the first information includes at least one of the following: a first clock reference terminal identifier; a specified service quality flow QoS flow identifier, and the QoS flow indicated by the specified QoS flow identifier is used to transmit TSN clock information; a specified wireless data bearer DRB identifier, and the wireless data bearer indicated by the specified DRB identifier is used to transmit the TSN clock information.

[0416] In a possible implementation of the present application, the terminal that needs to be switched does not include a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, the second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group; the first information includes: a candidate terminal identifier, and the candidate terminal is determined by the first access network device from the terminal that needs to be switched.

[0417] In a possible implementation of the present application, the first information also includes at least one of the following: a terminal group identifier of the first terminal group; a terminal identifier of other terminals in the first terminal group except the first clock reference terminal; a TSN service identifier; a TSN group identifier; a TSN clock domain identifier; and a TSN time domain identifier.

[0418] In a possible implementation of the present application, the terminal that needs to be switched is part of the terminals in the first terminal group, and the terminals that need to be switched include the first clock reference terminal; the device also includes: an establishment module 1020, which is used to establish a specified QoS flow or a specified wireless data bearer with a target terminal among the terminals that do not need to be switched and are included in the first terminal group, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information; wherein the target terminal is a terminal that is re-determined to be used as the second main TSN clock node.

[0419] In a possible implementation of the present application, the target terminal is determined by at least one of the following nodes: the first access network device; the core network node; the centralized network controller CNC node; all terminals in the first terminal group that do not need to be switched; any terminal among all terminals in the first terminal group that do not need to be switched; a designated terminal among all terminals in the first terminal group that do not need to be switched; the first clock reference terminal.

[0420] In a possible implementation of the present application, the terminal that needs to be switched is part of the terminals in the first terminal group, and the terminals that need to be switched do not include the first clock reference terminal; the device also includes: a clock synchronization module 1030, which is used to perform clock synchronization with the first clock reference terminal.

[0421] In a possible implementation of the present application, it is characterized in that the first information is carried by a switching request; or, the first information is sent after receiving an information sending indication sent by the second access network device, and the information sending indication is used to instruct the first access network device to send the first information.

[0422] In a possible implementation of the present application, the sending module 1010 is also used to: if the second main TSN clock node changes at the first time point, send a change message to the second access network device, and the change message is used to notify the second access network device that the second main TSN clock node has changed; wherein the second main TSN clock node is the main TSN clock node under the first access network device, or the second main TSN clock node is the main TSN clock node of the TSN service supported by the first terminal group.

[0423] In a possible implementation of the present application, the first time point includes at least one of the following situations: after the first clock reference terminal used as the second main TSN clock node is changed; after the first access network device sends a switching request; after the first access network device receives a switching response message from the second access network device; within a time period from the first access network device sending the switching request to the first network device sending a switching command to the terminal to be switched; within a time period from the first access network device sending the switching request to the terminal to be switched establishing a connection with the second access network device; before the first access network device releases the connection with the terminal.

[0424] In a possible implementation of the present application, the device also includes: a determination module 1040, which is used to determine the second main TSN clock node based on whether the terminal in the first terminal group corresponds to a specified QoS flow or a specified wireless data bearer; or, the determination module 1040 is used to determine the second main TSN clock node based on whether the terminal in the first terminal group is capable of establishing the specified QoS flow or the specified wireless data bearer; wherein the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information; the second main TSN clock node is the main TSN clock node under the first access network device, or the second main TSN clock node is the main TSN clock node of the TSN service supported by the first terminal group.

[0425] In an embodiment of the present application, when a terminal in the first terminal group needs to be switched from the first access network device to the second access network device, the first access network device can send the first information to the second access network device during the switching process, so that the second access network device can determine the target clock reference terminal based on the first information. That is, the second access network device can determine the first master TSN clock node based on the first information, and the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group, so that during the switching process, the second access network device can determine the appropriate master TSN clock node for clock synchronization to achieve clock synchronization under the TSN service supported by the target clock reference terminal.

[0426] As an example, when the terminals that need to be switched include a first clock reference terminal, the first access network device can send information for identifying the first clock reference terminal to the second access network device, so that the second access network device can determine the first main TSN clock node with reference to the first clock reference terminal.

[0427] In this case, the first access network device can select a target terminal from the terminals that do not need to be switched and included in the first terminal group as the second main TSN clock node, so that the first access network device can synchronize the clock with the target node, ensuring the continuity of clock synchronization under the TSN service supported by the first clock reference terminal.

[0428] As an example, when the first clock reference terminal is not included in the terminals that need to be switched, the first access network device can select a candidate terminal from the terminals that need to be switched, and send information for identifying the candidate terminal to the second access network device. In this way, the second access network device can determine the first main TSN clock node with reference to the candidate terminal.

[0429] In this case, the first clock reference terminal can continue to be used as the second master TSN clock node, so that the first access network device can perform clock synchronization with the first clock reference terminal to ensure clock synchronization under the TSN service supported by the first clock reference terminal.

[0430] As an example, when the terminals that need to be switched include the first clock reference terminal, if the first clock reference terminal changes at a first time point, the first access network device can send a change message to the second access network device. In this way, the second access network device can promptly determine that the first clock reference terminal is no longer used as the second main TSN clock node. On this basis, the second access network device can select a more suitable terminal to be used as the first main TSN clock node.

[0431] Please refer to Fig.11 ,Should Fig.11 is a structural diagram of a clock synchronization device according to an exemplary embodiment. The device may be configured in a terminal, and the device may include:

[0432] The receiving module 1110 is configured to receive first information sent by a first access network device, where the first information is sent by the first access network device during a switching process when a terminal in a first terminal group needs to be switched;

[0433] The determination module 1120 is used to determine the target clock reference terminal according to the first information, and the target clock reference terminal is used as a first master time period sensitive network TSN clock node. The first master TSN clock node is the master TSN clock node under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the second terminal group under the second access network device; the terminals in the first terminal group support the same TSN service type, the terminals in the second terminal group support the same TSN service type, and the terminals in the second terminal group support the same TSN service type as the terminals in the first terminal group.

[0434] In a possible implementation of the present application, the apparatus further includes: a sending module 1130, configured to send the first information to a terminal in the second terminal group.

[0435] In a possible implementation of the present application, the terminal that needs to be switched includes a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, the second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group; the receiving module 1110 is also used to: when the first clock reference terminal changes, receive a change message, and the change message is used to notify the second access network device that the second master TSN clock node has changed.

[0436] In a possible implementation of the present application, the apparatus further includes: a sending module 1130, configured to send the change message to the terminals in the second terminal group.

[0437] In a possible implementation of the present application, the terminal that needs to be switched is part of the terminals in the first terminal group, and the terminal that needs to be switched includes a first clock reference terminal, and the first clock reference terminal is used as a second master TSN clock node, and the second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group; the first information includes at least one of the following: a first clock reference terminal identifier; a specified service quality flow QoS flow identifier, and the QoSflow indicated by the specified QoS flow identifier is used to transmit TSN clock information; a specified wireless data bearer DRB identifier, and the wireless data bearer indicated by the specified DRB identifier is used to transmit the TSN clock information.

[0438] In a possible implementation of the present application, the device also includes at least one of the following: a determination module 1120, used to determine the first clock reference terminal as the target clock reference terminal; an establishment module 1140, used to establish a specified QoS flow or a specified wireless data bearer with the target clock reference terminal, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0439] In a possible implementation of the present application, the terminal that needs to be switched is part of the terminals in the first terminal group, the terminal that needs to be switched does not include the first clock reference terminal, the first clock reference terminal is used as the second master TSN clock node, the second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group; the first information includes: a candidate terminal identifier, and the candidate terminal is determined by the first access network device from the terminals that need to be switched.

[0440] In a possible implementation of the present application, the device also includes at least one of the following: a determination module 1120, used to determine the candidate terminal as the target clock reference terminal; an establishment module 1140, used to establish a specified QoS flow or a specified wireless data bearer with the target clock reference terminal, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0441] In a possible implementation of the present application, the first information also includes at least one of the following: a terminal group identifier of the first terminal group; a terminal identifier of other terminals in the first terminal group except the first clock reference terminal; a TSN service identifier; a TSN group identifier; a TSN clock domain identifier; and a TSN time domain identifier.

[0442] In a possible implementation of the present application, the first information is carried by a switching request; or, the first information is received after the second access network device sends an information sending indication, and the information sending indication is used to instruct the first access network device to send the first information.

[0443] In a possible implementation of the present application, the terminal that needs to be switched includes a first clock reference terminal, and the first clock reference terminal is used as a second master TSN clock node. The second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group; the determination module 1120 is also used to: determine the second master TSN clock node based on whether the terminal that needs to be switched corresponds to a specified QoS flow or a specified wireless data bearer; or determine the second master TSN clock node based on whether the terminal that needs to be switched is capable of establishing the specified QoS flow or the specified wireless data bearer; the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0444] In an embodiment of the present application, when a terminal in the first terminal group needs to be switched from the first access network device to the second access network device, the second access network device can receive the first information during the switching process, so that the second access network device can determine the target clock reference terminal based on the first information. That is, the second access network device can determine the first master TSN clock node based on the first information, and the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group, so that the second access network device can determine the appropriate master TSN clock node for clock synchronization during the switching process.

[0445] As an example, when the terminal to be switched includes the first clock reference terminal, the first information may include relevant information of the first clock reference terminal, and the second access network device may determine the first clock reference terminal in the terminal to be switched based on the first information.

[0446] In this case, the second access network device can directly determine the first clock reference terminal as the target clock reference terminal, that is, the first clock reference terminal can be used as the first master TSN clock node, so that the second access network device can synchronize the clock with the target clock reference terminal.

[0447] As an example, when the terminals that need to be switched do not include the first clock reference terminal, the first information may include relevant information of the candidate terminals, and the second access network device may determine the candidate terminals among the terminals that need to be switched based on the first information.

[0448] In this case, the second access network device can directly determine the candidate terminal as the target clock reference terminal, that is, the candidate terminal can be used as the first master TSN clock node, so that the second access network device can synchronize the clock with the target clock reference terminal.

[0449] As an example, when the terminals that need to be switched include the first clock reference terminal, if the first clock reference terminal changes, the second access network device can receive the change message sent by the first access network device. In this way, the second access network device can promptly determine that the first clock reference terminal is no longer used as the second main TSN clock node. On this basis, the second access network device can select a more suitable terminal to be used as the first main TSN clock node.

[0450] Please refer to Fig.12 ,Should Fig.12 is a structural diagram of a clock synchronization device according to an exemplary embodiment. The device may be configured in a terminal, and the device may include:

[0451] The determination module 1210 is used to determine the target terminal in the third terminal group when the second clock reference terminal changes; wherein the second clock reference terminal is used as a third master time period sensitive network TSN clock node, the third master TSN clock node is the master TSN clock node under the third access network device, or the third master TSN clock node is the master TSN clock node of the TSN service supported by the third terminal group, the target terminal is the terminal re-determined to be used as the third master TSN clock node, the third terminal group is the terminal group where the second clock reference terminal is located, and the terminals in the third terminal group support the same TSN service type.

[0452] In a possible implementation of the present application, the device also includes: an establishment module 1220, used to establish a specified service quality flow QoS flow or a specified wireless data bearer with the target terminal, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0453] In a possible implementation of the present application, the target terminal is determined by at least one of the following nodes: a core network node; a centralized network controller CNC node; the third access network device; all terminals in the third terminal group; any terminal in the third terminal group; a designated terminal in the third terminal group; or the second clock reference terminal.

[0454] In a possible implementation of the present application, the apparatus further includes: a sending module 1230, configured to send a change message to the first node when the target terminal is determined by the third access network device, the change message including a terminal identifier of the target terminal.

[0455] In a possible implementation of the present application, the device also includes: a receiving module 1240, which is used to receive a change message when the target terminal is determined by all terminals in the third terminal group, any terminal in the third terminal group, the second clock reference terminal or a designated terminal in the third terminal group, and the change message includes a terminal identifier of the target terminal.

[0456] In a possible implementation of the present application, the device further includes: a sending module 1230, configured to send the change message to the first node.

[0457] In a possible implementation of the present application, the device also includes: a receiving module 1240, which is used to receive a change message when the target terminal is determined by the core network node or the CNC node, and the change message includes a terminal identifier of the target terminal.

[0458] In a possible implementation of the present application, the change message also includes at least one of the following: a change indication; a TSN service identifier; a TSN clock domain identifier; the second clock reference terminal identifier; the service cell identifier to which the target terminal belongs; the access network device identifier to which the target terminal belongs; the TSN group identifier; the terminal group identifier of the third terminal group; and the terminal identifiers of other terminals in the third terminal group except the second clock reference terminal.

[0459] In a possible implementation of the present application, the first node includes at least one of the following: all terminals supporting the TSN service corresponding to the third terminal group; all terminals under the third access network device; all terminals in the third terminal group; other terminals in the third terminal group except the target terminal; the second clock reference terminal; the target terminal.

[0460] In the embodiment of the present application, when the second clock reference terminal is changed, the second clock reference terminal is no longer used as the third master TSN clock node, that is, the third access network device can no longer perform clock synchronization with the second clock reference terminal. In this case, the third access network device can determine a suitable master TSN clock node in the third terminal group to which the second clock reference terminal belongs for clock synchronization.

[0461] Please refer to Fig.13 ,Should Fig.13 is a structural diagram of a clock synchronization device according to an exemplary embodiment. The device may be configured in a terminal, and the device may include:

[0462] A sending module 1310 is configured to send TSN clock information to the first access network device when the first terminal is used as a first master time segment sensitive network TSN clock node;

[0463] A receiving module 1320, configured to receive the TSN clock information when the first terminal is not used as the first master TSN clock node;

[0464] Among them, the first master TSN clock node is the master TSN clock node under the first access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group under the first access network device, and the terminals in the first terminal group support the same TSN service type.

[0465] In a possible implementation of the present application, the first terminal is used as the first master TSN clock node, and the device also includes: an establishment module 1330, which is used to establish a specified service quality flow QoS flow or a specified wireless data bearer with the first access network device, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0466] In a possible implementation of the present application, the first terminal is used as the first master TSN clock node, and the device also includes: a release module 1340, which is used to release or suspend the specified QoS flow or the specified wireless data bearer when the first master TSN clock node changes, if the first terminal is not the target terminal; wherein the target terminal is the terminal re-determined to be used as the first master TSN clock node.

[0467] In a possible implementation of the present application, the first terminal is not used as the first master TSN clock node, and the device also includes: a module 1330, which is used to establish a specified QoS flow or a specified wireless data bearer with the first access network device if the first master TSN clock node changes and the first terminal is a target terminal; wherein the target terminal is a terminal that is re-determined to be used as the first master TSN clock node.

[0468] In a possible implementation of the present application, the target terminal is determined by at least one of the following nodes: a core network node; a centralized network controller CNC node; the first terminal; the first access network device; all terminals in the first terminal group; any terminal in the first terminal group; a designated terminal in the first terminal group; the first terminal.

[0469] In a possible implementation of the present application, the apparatus further includes: a determination module 1350, configured to determine a change message, wherein the change message includes a terminal identifier of the target terminal.

[0470] In a possible implementation of the present application, the sending module 1310 is further used to: send the change message to the first node.

[0471] In a possible implementation of the present application, the first node includes at least one of the following: all terminals supporting the TSN service corresponding to the first terminal group; all terminals under the first access network device; all terminals in the first terminal group; the target terminal; other terminals in the first terminal group except the target terminal.

[0472] In a possible implementation of the present application, the change message also includes at least one of the following: a change indication; a TSN service identifier; a first terminal identifier; a TSN clock domain identifier; a service cell identifier to which the target terminal belongs; an access network device identifier to which the target terminal belongs; a TSN group identifier; a terminal group identifier of the first terminal group; and terminal identifiers of other terminals in the first terminal group except the first terminal.

[0473] In a possible implementation of the present application, the device also includes: a determination module 1350, which is used to determine that the first terminal is used as the first main TSN clock node if the first terminal corresponds to a specified QoS flow or a specified wireless data bearer, or the first terminal is capable of establishing the specified QoS flow or the specified wireless data bearer, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0474] In a possible implementation of the present application, the device also includes: a determination module 1350, which is used to determine that the first terminal is used as the first main TSN clock node if the first terminal receives a specified QoS flow establishment signaling or a specified wireless data bearer establishment signaling; wherein the specified QoS flow establishment signaling is used to instruct the first terminal to establish the specified QoS flow, the specified wireless data bearer establishment signaling is used to instruct the first terminal to establish the specified wireless data bearer, and the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

[0475] In a possible implementation of the present application, the sending module 1310 is also used to: send updated TSN clock information to the first access network device when a reference event is triggered; or send updated TSN clock information to the first access network device at specified time intervals.

[0476] In a possible implementation of the present application, the reference event being triggered includes at least one of the following: TSN service arrival; TSN clock information change; TSN clock information change granularity is greater than or equal to a specified threshold granularity.

[0477] In a possible implementation of the present application, the TSN clock information includes at least one of the following: TSN service arrival time; TSN service departure time; TSN time domain identifier; TSN clock domain identifier; time information; time information type; clock synchronization accuracy information; system frame number SFN information; and propagation delay compensation indication.

[0478] In an embodiment of the present application, when the first terminal is used as the first master TSN clock node, the first terminal can send TSN clock information to the first access network device, so that the first access network device can perform clock synchronization with the first terminal based on the TSN clock information. When the first terminal is not used as the first master TSN clock node, the first terminal can receive TSN clock information, so that the first terminal can perform clock synchronization with the first access network device based on the TSN clock information.

[0479] Please refer to Fig.14, which shows a structural schematic diagram of a communication device provided by an exemplary embodiment of the present application. The communication device can be any one of a first network device, a second network device, a third network device or a terminal. The communication device includes: a processor 1401, a receiver 1402, a transmitter 1403, a memory 1404 and a bus 1405.

[0480] The processor 1401 includes one or more processing cores. The processor 1401 executes various functional applications and information processing by running software programs and modules.

[0481] The receiver 1402 and the transmitter 1403 may be implemented as a communication component, which may be a communication chip.

[0482] The memory 1404 is connected to the processor 1401 via a bus 1405 .

[0483] The memory 1404 may be used to store at least one instruction, and the processor 1401 may be used to execute the at least one instruction to implement each step performed by the first IAB base station in each of the above method embodiments.

[0484] In addition, the memory 1404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof. The volatile or non-volatile storage device includes but is not limited to: a magnetic disk or an optical disk, an EEPROM (Electrically Erasable Programmable read only memory), an EPROM (Erasable Programmable Read-Only Memory), a SRAM (Static Random Access Memory), a ROM (Read Only Memory), a magnetic storage device, a flash memory, and a PROM (Programmable Read-Only Memory).

[0485] The present application provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is loaded and executed by the processor to implement the clock synchronization method provided by each of the above method embodiments.

[0486] The present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the clock synchronization methods provided by the above-mentioned various method embodiments.

[0487] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0488] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A clock synchronization method, characterized in that: Applied in a first access network device, the method includes: When a terminal in the first terminal group needs to be switched, sending first information to the second access network device during the switching process; The time period sensitive network TSN service types supported by the terminals in the first terminal group are the same, the first information is used by the second access network device to determine the target clock reference terminal, the target clock reference terminal is used as the first master TSN clock node, the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the second terminal group; The TSN service types supported by the terminals in the second terminal group are the same, and the TSN service types supported by the terminals in the second terminal group are the same as the TSN service types supported by the terminals in the first terminal group.

2. The method according to claim 1, characterized in that The terminal to be switched includes a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of a TSN service supported by the first terminal group; The first information includes at least one of the following: The first clock reference terminal identifier; Specify a QoS flow identifier, where the QoS flow indicated by the specified QoS flow identifier is used to transmit TSN clock information; A wireless data bearer DRB identifier is specified, and the wireless data bearer indicated by the specified DRB identifier is used to transmit the TSN clock information.

3. The method according to claim 1, characterized in that The terminal to be switched does not include a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of a TSN service supported by the first terminal group; The first information includes: a candidate terminal identifier, where the candidate terminal is determined by the first access network device from the terminals that need to be switched.

4. The method according to any one of claims 2 to 3, characterized in that: The first information also includes at least one of the following: a terminal group identifier of the first terminal group; terminal identifiers of other terminals in the first terminal group except the first clock reference terminal; TSN service identifier; TSN group identifier; The TSN clock domain identifier to which it belongs; The TSN time domain identifier to which it belongs.

5. The method according to claim 2, characterized in that The terminals that need to be switched are some terminals in the first terminal group, and the terminals that need to be switched include the first clock reference terminal; The method further comprises: Establishing a designated QoS flow or a designated wireless data bearer with a target terminal among the terminals that do not need to be switched and are included in the first terminal group, wherein the designated QoS flow or the designated wireless data bearer is used to transmit TSN clock information; The target terminal is a newly determined terminal used as the second master TSN clock node.

6. The method according to claim 5, characterized in that The target terminal is determined by at least one of the following nodes: the first access network device; Core network nodes; Centralized network controller CNC node; All terminals in the first terminal group that do not need to be switched; any terminal among all terminals in the first terminal group that do not need to be switched; a designated terminal among all terminals in the first terminal group that do not need to be switched; The first clock reference terminal.

7. The method according to claim 3, characterized in that The terminals that need to be switched are some terminals in the first terminal group, and the terminals that need to be switched do not include the first clock reference terminal; The method further comprises: Perform clock synchronization with the first clock reference terminal.

8. The method according to any one of claims 1 to 3, characterized in that The first information is carried by a handover request; or, The first information is sent after receiving an information sending indication sent by the second access network device, and the information sending indication is used to instruct the first access network device to send the first information.

9. The method according to claim 1, characterized in that If the second master TSN clock node changes at the first time point, sending a change message to the second access network device, where the change message is used to notify the second access network device that the second master TSN clock node has changed; The second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group.

10. The method according to claim 9, characterized in that The first time point includes at least one of the following situations: After a first clock reference terminal used as a second master TSN clock node is changed; After the first access network device sends a switching request; After the first access network device receives a switching response message from the second access network device; The switching time period is between the time when the first access network device sends the switching request and the time when the first network device sends the switching command to the terminal that needs to be switched; The period is between after the first access network device sends a switching request and before the terminal to be switched establishes a connection with the second access network device; Before the first access network device releases the connection with the terminal.

11. The method according to claim 1, characterized in that The method further comprises: Determine a second master TSN clock node based on whether the terminals in the first terminal group correspond to a specified QoS flow or a specified wireless data bearer; or, Determining the second master TSN clock node based on whether the terminals in the first terminal group are capable of establishing the specified QoS flow or the specified wireless data bearer; Wherein, the designated QoS flow or the designated wireless data bearer is used to transmit TSN clock information; The second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of the TSN service supported by the first terminal group.

12. A clock synchronization method, characterized in that: Applied in a second access network device, the method includes: receiving first information sent by a first access network device, where the first information is sent by the first access network device during a switching process when a terminal in a first terminal group needs to be switched; Determine a target clock reference terminal according to the first information, the target clock reference terminal is used as a first master time period sensitive network TSN clock node, the first master TSN clock node is a master TSN clock node under the second access network device, or the first master TSN clock node is a master TSN clock node of a TSN service supported by a second terminal group under the second access network device; Among them, the TSN service types supported by the terminals in the first terminal group are the same, the TSN service types supported by the terminals in the second terminal group are the same, and the TSN service types supported by the terminals in the second terminal group are the same as the TSN service types supported by the terminals in the first terminal group.

13. The method according to claim 12, characterized in that The method further comprises: The first information is sent to terminals in the second terminal group.

14. The method according to claim 12, characterized in that The terminal to be switched includes a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of a TSN service supported by the first terminal group; The method further comprises: In the case where the first clock reference terminal is changed, a change message is received, where the change message is used to notify the second access network device that the second main TSN clock node is changed.

15. The method according to claim 14, characterized in that The method further comprises: The change message is sent to the terminals in the second terminal group.

16. The method according to claim 12, characterized in that The terminals that need to be switched are some terminals in the first terminal group, and the terminals that need to be switched include a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, and the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of a TSN service supported by the first terminal group; The first information includes at least one of the following: The first clock reference terminal identifier; Specify a QoS flow identifier, where the QoS flow indicated by the specified QoS flow identifier is used to transmit TSN clock information; A wireless data bearer DRB identifier is specified, and the wireless data bearer indicated by the specified DRB identifier is used to transmit the TSN clock information.

17. The method according to claim 16, characterized in that The method further comprises at least one of the following: Determining the first clock reference terminal as the target clock reference terminal; A designated QoS flow or a designated wireless data bearer is established with the target clock reference terminal, where the designated QoS flow or the designated wireless data bearer is used to transmit TSN clock information.

18. The method according to claim 12, characterized in that The terminals that need to be switched are some terminals in the first terminal group, the terminals that need to be switched do not include the first clock reference terminal, the first clock reference terminal is used as the second master TSN clock node, the second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group; The first information includes: a candidate terminal identifier, where the candidate terminal is determined by the first access network device from terminals that need to be switched.

19. The method according to claim 18, characterized in that The method further comprises at least one of the following: Determining the candidate terminal as the target clock reference terminal; A designated QoS flow or a designated wireless data bearer is established with the target clock reference terminal, where the designated QoS flow or the designated wireless data bearer is used to transmit TSN clock information.

20. The method according to any one of claims 14 to 19, characterized in that The first information also includes at least one of the following: a terminal group identifier of the first terminal group; terminal identifiers of other terminals in the first terminal group except the first clock reference terminal; TSN service identifier; TSN group identifier; The TSN clock domain identifier to which it belongs; The TSN time domain identifier to which it belongs.

21. The method according to any one of claims 12 to 19, characterized in that The first information is carried by a handover request; or, The first information is received after the second access network device sends an information sending indication, and the information sending indication is used to instruct the first access network device to send the first information.

22. The method of claim 12, wherein: The terminal to be switched includes a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of a TSN service supported by the first terminal group; The method further comprises: Determine the second main TSN clock node based on whether the terminal to be switched corresponds to a specified QoS flow or a specified wireless data bearer; or, Determining the second master TSN clock node based on whether the terminal that needs to be switched is capable of establishing the specified QoS flow or the specified wireless data bearer; The designated QoS flow or the designated wireless data bearer is used to transmit TSN clock information.

23. A clock synchronization device, characterized in that: Configured in a first access network device, the apparatus comprises: A sending module, configured to send first information to the second access network device during a switching process when a terminal in the first terminal group needs to be switched; The time period sensitive network TSN service types supported by the terminals in the first terminal group are the same, the first information is used by the second access network device to determine the target clock reference terminal, the target clock reference terminal is used as the first master TSN clock node, the first master TSN clock node is the master TSN clock node of the second terminal group under the second access network device, or the first master TSN clock node is the master TSN clock node of the TSN service supported by the second terminal group; The TSN service types supported by the terminals in the second terminal group are the same, and the TSN service types supported by the terminals in the second terminal group are the same as the TSN service types supported by the terminals in the first terminal group.

24. The device according to claim 23, characterized in that The terminal to be switched includes a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of a TSN service supported by the first terminal group; The first information includes at least one of the following: The first clock reference terminal identifier; Specify a QoS flow identifier, where the QoS flow indicated by the specified QoS flow identifier is used to transmit TSN clock information; A wireless data bearer DRB identifier is specified, and the wireless data bearer indicated by the specified DRB identifier is used to transmit the TSN clock information.

25. The device according to claim 23, characterized in that The terminal to be switched does not include a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of a TSN service supported by the first terminal group; The first information includes: a candidate terminal identifier, where the candidate terminal is determined by the first access network device from the terminals that need to be switched.

26. The device according to any one of claims 24-25, characterized in that The first information also includes at least one of the following: a terminal group identifier of the first terminal group; terminal identifiers of other terminals in the first terminal group except the first clock reference terminal; TSN service identifier; TSN group identifier; The TSN clock domain identifier to which it belongs; The TSN time domain identifier to which it belongs.

27. The device according to claim 24, characterized in that The terminals that need to be switched are some terminals in the first terminal group, and the terminals that need to be switched include the first clock reference terminal; The device also includes: An establishing module, configured to establish a specified QoS flow or a specified wireless data bearer with a target terminal in the terminal that does not need to be switched and is included in the first terminal group, wherein the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information; The target terminal is a newly determined terminal used as the second master TSN clock node.

28. The device according to claim 27, characterized in that The target terminal is determined by at least one of the following nodes: the first access network device; Core network nodes; Centralized network controller CNC node; All terminals in the first terminal group that do not need to be switched; any terminal among all terminals in the first terminal group that do not need to be switched; a designated terminal among all terminals in the first terminal group that do not need to be switched; The first clock reference terminal.

29. The device according to claim 25, characterized in that The terminals that need to be switched are some terminals in the first terminal group, and the terminals that need to be switched do not include the first clock reference terminal; The device also includes: A clock synchronization module is used to perform clock synchronization with the first clock reference terminal.

30. The device according to any one of claims 23 to 25, characterized in that The first information is carried by a handover request; or, The first information is sent after receiving an information sending indication sent by the second access network device, and the information sending indication is used to instruct the first access network device to send the first information.

31. The device according to claim 23, characterized in that The sending module is also used for: If the second master TSN clock node changes at the first time point, sending a change message to the second access network device, where the change message is used to notify the second access network device that the second master TSN clock node has changed; The second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group.

32. The device according to claim 31, characterized in that The first time point includes at least one of the following situations: After a first clock reference terminal used as a second master TSN clock node is changed; After the first access network device sends a switching request; After the first access network device receives a switching response message from the second access network device; The switching time period is between the time when the first access network device sends the switching request and the time when the first network device sends the switching command to the terminal that needs to be switched; The period is between after the first access network device sends a switching request and before the terminal to be switched establishes a connection with the second access network device; Before the first access network device releases the connection with the terminal.

33. The device according to claim 23, characterized in that The device also includes: A determination module, configured to determine a second master TSN clock node based on whether a terminal in the first terminal group corresponds to a specified QoS flow or a specified wireless data bearer; or, The determination module is used to determine the second master TSN clock node based on whether the terminal in the first terminal group is capable of establishing the specified QoS flow or the specified wireless data bearer; Wherein, the designated QoS flow or the designated wireless data bearer is used to transmit TSN clock information; The second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of the TSN service supported by the first terminal group.

34. A clock synchronization device, characterized in that: Configured in the second access network device, the device includes: A receiving module, configured to receive first information sent by a first access network device, where the first information is sent by the first access network device during a switching process when a terminal in the first terminal group needs to be switched; A determination module, configured to determine a target clock reference terminal according to the first information, wherein the target clock reference terminal is used as a first master time period sensitive network TSN clock node, wherein the first master TSN clock node is a master TSN clock node under the second access network device, or wherein the first master TSN clock node is a master TSN clock node for a TSN service supported by a second terminal group under the second access network device; Among them, the TSN service types supported by the terminals in the first terminal group are the same, the TSN service types supported by the terminals in the second terminal group are the same, and the TSN service types supported by the terminals in the second terminal group are the same as the TSN service types supported by the terminals in the first terminal group.

35. The device according to claim 34, characterized in that The device also includes: A sending module is used to send the first information to the terminals in the second terminal group.

36. The device according to claim 34, characterized in that The terminal to be switched includes a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of a TSN service supported by the first terminal group; The receiving module is also used for: In the case where the first clock reference terminal is changed, a change message is received, where the change message is used to notify the second access network device that the second main TSN clock node is changed.

37. The device according to claim 36, characterized in that The device also includes: A sending module is used to send the change message to the terminals in the second terminal group.

38. The device according to claim 34, characterized in that The terminals that need to be switched are some terminals in the first terminal group, and the terminals that need to be switched include a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, and the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of a TSN service supported by the first terminal group; The first information includes at least one of the following: The first clock reference terminal identifier; Specify a QoS flow identifier, where the QoS flow indicated by the specified QoS flow identifier is used to transmit TSN clock information; A wireless data bearer DRB identifier is specified, and the wireless data bearer indicated by the specified DRB identifier is used to transmit the TSN clock information.

39. The device according to claim 38, characterized in that The device further comprises at least one of the following: The determining module is used to determine the first clock reference terminal as the target clock reference terminal; An establishing module is used to establish a specified QoS flow or a specified wireless data bearer with the target clock reference terminal, wherein the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

40. The device of claim 34, wherein: The terminals that need to be switched are some terminals in the first terminal group, the terminals that need to be switched do not include the first clock reference terminal, the first clock reference terminal is used as the second master TSN clock node, the second master TSN clock node is the master TSN clock node under the first access network device, or the second master TSN clock node is the master TSN clock node of the TSN service supported by the first terminal group; The first information includes: a candidate terminal identifier, where the candidate terminal is determined by the first access network device from terminals that need to be switched.

41. The device according to claim 40, characterized in that The device further comprises at least one of the following: The determining module is used to determine the candidate terminal as the target clock reference terminal; An establishing module is used to establish a specified QoS flow or a specified wireless data bearer with the target clock reference terminal, wherein the specified QoS flow or the specified wireless data bearer is used to transmit TSN clock information.

42. The device according to any one of claims 36 to 38, characterized in that The first information also includes at least one of the following: a terminal group identifier of the first terminal group; terminal identifiers of other terminals in the first terminal group except the first clock reference terminal; TSN service identifier; TSN group identifier; The TSN clock domain identifier to which it belongs; The TSN time domain identifier to which it belongs.

43. The device according to any one of claims 34 to 38, characterized in that The first information is carried by a handover request; or, The first information is received after the second access network device sends an information sending indication, and the information sending indication is used to instruct the first access network device to send the first information.

44. The device of claim 34, wherein: The terminal to be switched includes a first clock reference terminal, the first clock reference terminal is used as a second master TSN clock node, the second master TSN clock node is a master TSN clock node under the first access network device, or the second master TSN clock node is a master TSN clock node of a TSN service supported by the first terminal group; The determining module is also used for: Determine the second main TSN clock node based on whether the terminal to be switched corresponds to a specified QoS flow or a specified wireless data bearer; or, Determining the second master TSN clock node based on whether the terminal that needs to be switched is capable of establishing the specified QoS flow or the specified wireless data bearer; The designated QoS flow or the designated wireless data bearer is used to transmit TSN clock information.

45. A communication device, characterized in that: The communication device includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the steps of any one of the methods of claims 1-11, or to implement the steps of any one of the methods of claims 12-22.

46. ​​A communication system, characterized in that: It comprises a terminal and an access network device, wherein the access network device comprises the apparatus described in any one of claims 23-33, or the access network device comprises the apparatus described in any one of claims 34-44.

47. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by a processor, the steps of any method of claims 1-11 are implemented, or the steps of any method of claims 12-22 are implemented.

Citation Information

Patent Citations

  • Clock synchronization method and device

    CN102440031A

  • SOPC (System on a Programmable Chip) networking based sub-microsecond level clock synchronizing method and system

    CN105429725A

  • Clock synchronization method and device, and communication system

    CN106105103A

  • Clock synchronization method and apparatus

    CN106656393A

  • Method for transmitting time synchronization messages in a communication network, network component, and communication network

    CN106664145A