A clock conversion method, device and storage medium
By obtaining the master clock registration information of TSN and 5G systems, determining the clock conversion strategy and sending it to the converter, the problem of inconsistent clock values in the 5G-TSN converged system is solved, and high-precision and high-reliability clock conversion is achieved, ensuring the stability and reliability of the network.
Patent Information
- Application Number
- CN202210790881.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-05
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2042-07-05
AI Technical Summary
In 5G-TSN converged systems, the clock values of the TSN system and 5G system are inconsistent, resulting in inaccurate message clock conversion, affecting the reliability and stability of network operation.
By obtaining the master clock registration information of the TSN and 5G systems, determining the clock conversion strategy and sending it to the TSN converter, the clock conversion of messages between the TSN system and the 5G system is realized.
It realizes high-precision and high-reliability clock conversion, ensuring the deterministic transmission of the 5G-TSN converged system.
Smart Images

Figure CN115173985B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technologies, and in particular, to a clock conversion method, apparatus, and storage medium. Background Art
[0002] Time Sensitive Networking (TSN) is one of the important technologies for the industrial Internet to achieve low latency, high reliability, and deterministic transmission; the large bandwidth, low latency, and high reliability characteristics of the 5G system can meet the flexible mobility of industrial devices and provide a stable and reliable wireless transmission technology for factories. Therefore, the 5G+TSN integration is an important foundation for realizing the wirelessization and flexible manufacturing of the industrial Internet in the future.
[0003] Clock synchronization is the basis and prerequisite for related technologies of deterministic communication networks, and it is also the primary problem to be solved in the 5G-TSN integration. The 5G system and the industrial Internet have their own Grand Master (GM) clocks, and the clocks of each network element device in the 5G system are synchronized with the 5G system's own master clock. Among them, the Network-Side TSN Translator (NW-TT) and the Device-side TSN Translator (DS-TT) in the 5G system need to support two clock synchronization methods of the 5G system and the TSN network at the same time. The clock synchronization within the TSN system and the 5G system can keep the clocks of the devices within their respective systems aligned. However, the clocks of the TSN system and the 5G system may not be consistent. When a packet carries the clock value of the TSN system, it may not be accurately processed in the 5G system, and vice versa. Therefore, when a packet is transmitted through the DS-TT / NW-TT, the DS-TT / NW-TT needs to perform clock conversion on the packet.
[0004] Therefore, the accuracy and reliability of clock conversion are particularly important, which will affect the reliability and stability of network operation. Summary of the Invention
[0005] The present invention provides a clock conversion method, apparatus, and storage medium to solve the problem of converting different clock values in a 5G-TSN integrated system, implement a high-precision and high-reliability clock conversion function, and ensure the deterministic transmission of the 5G-TSN integrated system.
[0006] According to one aspect of the present invention, a clock conversion method is provided, which is applied to an integrated system of a 5G system and a Time Sensitive Networking (TSN) system; the method includes:
[0007] Obtain the TSN clock registration information and the 5G clock registration information, where the TSN clock registration information is the registration information corresponding to the master clock of the TSN system, and the 5G clock registration information is the registration information corresponding to the master clock of the 5G system;
[0008] Determine the clock conversion strategy of the TSN converter according to the TSN clock registration information and the 5G clock registration information;
[0009] Send the clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the clock conversion strategy.
[0010] According to another aspect of the present invention, there is provided a clock conversion device integrated in a fusion system of a 5G system and a time-sensitive network (TSN) system; the device includes:
[0011] A registration information acquisition module for obtaining the TSN clock registration information and the 5G clock registration information, where the TSN clock registration information is the registration information corresponding to the master clock of the TSN system, and the 5G clock registration information is the registration information corresponding to the master clock of the 5G system;
[0012] A conversion strategy determination module for determining the clock conversion strategy of the TSN converter according to the TSN clock registration information and the 5G clock registration information;
[0013] A conversion strategy sending module for sending the clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the clock conversion strategy.
[0014] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the clock conversion method according to any embodiment of the present invention when executed.
[0015] In the technical solution of the embodiment of the present invention, by obtaining the TSN clock registration information and the 5G clock registration information, the TSN clock registration information is the registration information corresponding to the master clock of the TSN system, and the 5G clock registration information is the registration information corresponding to the master clock of the 5G system; determining the clock conversion strategy of the TSN converter according to the TSN clock registration information and the 5G clock registration information; sending the clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN based on the clock conversion strategy, which can solve the problem of conversion between different clock values in the 5G-TSN fusion system, realize the high-precision and high-reliability clock conversion function, and ensure the deterministic transmission of the 5G-TSN fusion system.
[0016] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can obtain other drawings without creative efforts based on these drawings.
[0018] Figure 1 is a schematic structural diagram of a 5G-TSN fusion system;
[0019] Figure 2 is a schematic interaction process diagram of clock conversion based on a 5G-TSN fusion system provided by the present invention;
[0020] Figure 3 is a flowchart of a clock conversion method provided according to Embodiment 1 of the present invention;
[0021] Figure 4 is a flowchart of a clock conversion method provided according to Embodiment 2 of the present invention;
[0022] Figure 5 is a flowchart of a clock conversion method provided according to Embodiment 3 of the present invention;
[0023] Figure 6 is a flowchart of a clock conversion method provided according to Embodiment 4 of the present invention;
[0024] Figure 7 is a flowchart of a clock conversion method provided according to Embodiment 5 of the present invention;
[0025] Figure 8It is a schematic structural diagram of a clock conversion device provided in Embodiment 6 of the present invention. Detailed implementation manners
[0026] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0028] Figure 1 It is a schematic structural diagram of a 5G-TSN fusion system. As Figure 1As shown, each network element device in the 5G system, including user equipment (UE), 5G base station (gNB), user plane function (UPF), network-side TSN translator (NW-TT), and device-side TSN translator (DS-TT), etc., their clocks are synchronized with the main clock of the 5G system itself. The time-sensitive networking (TSN) system includes TSN end devices, a first TSN switch respectively connected to the TSN end devices and the DS-TT in the 5G system, the main clock of the TSN system, a second TSN switch respectively connected to the main clock of the TSN system and the NW-TT in the 5G system, and a centralized network configuration module (CNC) respectively connected to the second TSN switch and the time-sensitive networking application functions (TSN AF) in the 5G core network. The CNC is used to forward information between the TSN AF and the main clock of the TSN system. In addition, the entire end-to-end 5G system can be regarded as a time-aware system that meets the IEEE 802.1AS protocol, and the NW-TT and DS-TT need to support the IEEE 802.1AS protocol and execute all functions related to IEEE 802.1AS.
[0029] In the 5G-TSN convergence system, the 5G system and the TSN system are respectively configured with a main clock. Figure 2 It is a schematic diagram of the interaction process of clock conversion based on the 5G-TSN convergence system provided by the present invention. As Figure 2 shown, after the 5G-TSN system is powered on, the main clock of the TSN system initiates registration to the CNC module through the second TSN switch, while the main clock of the 5G system initiates registration to the TSN AF module of the 5G core network. After the CNC receives the registration information of the main clock of the TSN system, it forwards it to the TSN AF module. When the TSN AF module detects the main clocks from the 5G system and the TSN system, it determines the clock conversion strategy corresponding to the TSN translator and distributes the clock conversion strategy to the corresponding NW-TT and DS-TT. After the DS-TT and NW-TT receive the clock conversion strategy issued by the TSN AF, when there are packets in the network that need to be transmitted from the TSN system to the 5G system or from the 5G system to the TSN system, they respectively perform clock value conversion according to the issued clock conversion strategy to ensure that the packets in the 5G-TSN system carry accurate clock values and are reliably processed.
[0030] Embodiment 1
[0031] Figure 3 The figure is a flowchart of a clock conversion method provided by Embodiment 1 of the present invention. This embodiment is applicable to the clock conversion in a 5G-TSN fusion system that integrates a 5G system and a Time-Sensitive Networking (TSN) system. This method can be executed by a clock conversion device, which can be implemented in the form of hardware and / or software, and can be configured in the fusion system of the 5G system and the TSN system, such as in the Time Sensitive Networking Application Functions (TSN AF) module or the control module that stores the clock conversion method of the fusion system. As Figure 3 shown, the method includes:
[0032] S110. Obtain the TSN clock registration information and the 5G clock registration information. The TSN clock registration information is the registration information corresponding to the master clock of the TSN system, and the 5G clock registration information is the registration information corresponding to the master clock of the 5G system.
[0033] Specifically, a master clock is respectively configured in the TSN system and the 5G system. The master clock of the TSN system can initiate registration to the CNC to generate the TSN clock registration information, and the CNC forwards the TSN clock registration information to the TSN AF module (or control module) so that the TSN AF module obtains the TSN clock registration information. At the same time, after receiving the registration information of the master clock of the TSN system, the CNC can also record the TSN clock registration information locally. The master clock of the 5G system can directly initiate registration to the TSN AF module (or control module) of the 5G core network to generate the 5G clock registration information.
[0034] Exemplarily, the master clock is configured with a clock source, which is used to provide a square wave clock pulse signal with stable frequency and level matching for the ring pulse generator. The clock source can be composed of a positive feedback oscillation circuit composed of a quartz crystal oscillator and a NAND gate, and its output can be sent to the ring pulse generator. The clock registration information may include: the clock information of the master clock itself and the clock parameter information, and the clock parameter information may include information such as the clock device ID, clock level, clock frequency, and clock network type.
[0035] Exemplarily, the TSN clock registration information may include: the TSN clock registration information corresponding to the primary clock configured in the initial state in the TSN system and the TSN clock registration information corresponding to the primary clock after the change in the TSN system. The TSN clock registration information may be the TSN clock registration information corresponding to multiple TSN primary clocks in the TSN system. Similarly, the 5G clock registration information may include: the 5G clock registration information corresponding to the primary clock configured in the initial state in the 5G system and the 5G clock registration information corresponding to the primary clock after the change in the 5G system. The 5G clock registration information may be the 5G clock registration information corresponding to multiple 5G primary clocks in the 5G system.
[0036] S120. Determine the clock conversion strategy of the TSN converter according to the TSN clock registration information and the 5G clock registration information;
[0037] Specifically, when the TSN AF module (or control module) detects the clock registration information from the 5G system and the TSN system respectively, determine the conversion relationship between the primary clock of the 5G system and the primary clock of the TSN system according to the TSN clock registration information and the 5G clock registration information, and the clock conversion strategy can be determined according to the conversion relationship and the preset mapping strategy corresponding to the TSN converter. Among them, the preset mapping strategy can be flexibly set according to conversion requirements and the configuration information of the 5G-TSN fusion system, etc., to meet different service requirements.
[0038] It should be noted that when there are packets to be transmitted from the TSN system to the 5G system or from the 5G system to the TSN system in the 5G-TSN fusion system, the clock conversion processes of NW-TT and DS-TT can be considered as inverse processes. Therefore, the clock conversion strategies of NW-TT and DS-TT are also different, and the clock conversion strategy corresponding to NW-TT and the clock conversion strategy corresponding to DS-TT need to be determined respectively according to the TSN clock registration information and the 5G clock registration information.
[0039] S130. Send the clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the clock conversion strategy.
[0040] Specifically, send the clock conversion strategy corresponding to NW-TT to NW-TT, and send the clock conversion strategy corresponding to DS-TT to DS-TT. Based on the clock conversion strategy corresponding to NW-TT, when a packet is transmitted from the TSN system to the 5G system, convert the primary clock value of the TSN system carried in the packet into the primary clock value of the 5G system; based on the clock conversion strategy corresponding to DS-TT, when a packet is transmitted from the 5G system to the TSN system, convert the primary clock value of the 5G system carried in the packet into the primary clock value of the TSN system.
[0041] Exemplarily, the manner in which the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the clock conversion strategy can be that after the DS-TT / NW-TT determines the target clock value based on the clock conversion strategy, it modifies the value of the timestamp in the packet transmitted from the source system (5G system / TSN system) to the target clock value. The modified timestamp value is a timestamp that is strictly aligned with the target system (TSN system / 5G system), ensuring the correct execution of the functions related to deterministic communication in the target system.
[0042] In the technical solution of the embodiment of the present invention, by obtaining the TSN clock registration information and the 5G clock registration information, where the TSN clock registration information is the registration information corresponding to the master clock of the TSN system, and the 5G clock registration information is the registration information corresponding to the master clock of the 5G system; determining the clock conversion strategy of the TSN converter according to the TSN clock registration information and the 5G clock registration information; the TSN converter includes: the network-side TSN converter NW-TT and the device-side TSN converter DS-TT; sending the clock conversion strategy to the corresponding TSN converter, and the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN based on the clock conversion strategy, which can solve the problem of converting different clock values in the 5G-TSN convergence system, realize the high-precision and high-reliability clock conversion function, and ensure the deterministic transmission of the 5G-TSN convergence system.
[0043] Optionally, on the basis of the above embodiment, the TSN clock registration information includes: the first TSN clock registration information, which is the information generated when the first TSN master clock initiates registration to the centralized network configuration CNC module;
[0044] Correspondingly, obtaining the TSN clock registration information in step S120 includes: receiving the first TSN clock registration information forwarded by the CNC module.
[0045] Specifically, after the TSN system is powered on, the first master clock in the TSN system can initiate registration to the CNC to generate the first TSN clock registration information, and the CNC forwards the first TSN clock registration information to the TSN AF module (or control module), so that the TSN AF module (or control module) obtains the first TSN clock registration information.
[0046] After performing step S120 and obtaining the first TSN clock registration information and the 5G clock registration information, determining the first clock conversion strategy of the TSN converter according to the first TSN clock registration information and the 5G clock registration information, and sending the first clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the first clock conversion strategy.
[0047] Optionally, based on the above embodiments, determining the clock conversion strategy of the TSN converter according to the TSN clock registration information and the 5G clock registration information includes:
[0048] Determining the clock frequency offset according to the TSN master clock frequency and the 5G master clock frequency;
[0049] Determining the clock value offset according to the TSN master clock value and the 5G master clock value;
[0050] Determining the clock conversion factor corresponding to the TSN converter according to the clock frequency offset and the clock value offset;
[0051] Obtaining the preset mapping strategy corresponding to the TSN converter; the parameters of the preset mapping strategy include: the clock value of the 5G system, the clock value of the TSN system, and the mapping factor between the clock values of the 5G system and the TSN system;
[0052] Substituting the clock conversion factor into the mapping factor of the preset mapping strategy to obtain the clock conversion strategy of the TSN converter.
[0053] It should be noted that the clock conversion factor can be obtained through basic arithmetic operations such as addition, subtraction, multiplication, and division of the clock frequency offset parameter and the clock value offset parameter in the TSN clock registration information and the 5G clock registration information, or through composite operations based on the composite values of each parameter. The preset mapping strategy can be pre-configured and remain unchanged subsequently; it can also be completed through configuration in the initial state and dynamically adjusted by the TSN AF according to the network operation status subsequently.
[0054] Specifically, the method for determining the clock conversion factor according to the TSN clock registration information and the 5G clock registration information can be: determining the clock frequency offset rate R f and the clock value offset rate R t between the master clock of the 5G system and the master clock of the TSN system according to the TSN clock registration information and the 5G clock registration information; determining the clock conversion factor R0 according to the clock frequency offset rate R f and the clock value offset rate R t 。
[0055] Through the TSN AF module (or control module) in the fusion system, the clock conversion strategy of the TSN converter is determined according to the detected TSN clock registration information and 5G clock registration information, and the clock conversion strategy is sent to the corresponding NW-TT or DS-TT, enabling the NW-TT and DS-TT to directly perform clock conversion on the packets transmitted between the TSN system and the 5G system based on the clock conversion strategy. High-precision and high-reliability clock conversion functions can be achieved without complex calculations, shortening the time-consuming of clock conversion and ensuring the deterministic transmission of the 5G-TSN fusion system.
[0056] Exemplarily, the TSN converter includes: a network-side TSN converter NW-TT and a device-side TSN converter DS-TT; correspondingly, determining the clock conversion factor according to the clock frequency offset and the clock value offset includes:
[0057] Determining the product of the clock frequency offset and the clock value offset as the clock conversion factor corresponding to the network-side TSN converter NW-TT:
[0058] Determining the reciprocal of the product of the clock frequency offset and the clock value offset as the clock conversion factor corresponding to the device-side TSN converter DS-TT.
[0059] Specifically, the preset mapping strategies corresponding to different TSN converters are different. Since when there are packets in the 5G-TSN fusion system that need to be transmitted from the TSN system to the 5G system or from the 5G system to the TSN system, the clock conversion processes of the NW-TT and the DS-TT can be considered reciprocal processes. When determining the clock conversion strategy from the 5G network to the TSN network, the conversion factor corresponding to the network-side TSN converter NW-TT is R0 = R f ×R t , where R f is the clock frequency offset, R f = TSN main clock frequency / 5G main clock frequency; R t is the clock value offset, R t = TSN main clock value / 5G main clock value.
[0060] When determining the clock conversion strategy from the TSN network to the 5G network, the conversion factor corresponding to the device-side TSN converter DS-TT is 1 / R = 1 / (R f ×R t ). Therefore, the preset mapping strategy corresponding to the NW-TT can be T = T s ×R; the preset mapping strategy corresponding to the DS-TT can be T s = T × R. Where T is the TSN main clock value, T sThe clock value corresponding to the master clock of the 5G system, and R is the mapping factor of the preset mapping strategy. Substituting R = R0 or R = 1 / R0 into the preset mapping strategy can obtain the clock conversion strategy of the corresponding TSN converter.
[0061] Optionally, the master clock of the 5G system includes: a first 5G master clock and / or a second 5G master clock; wherein, the master clock of the 5G system changes from the first 5G master clock to the second 5G master clock, or both the first 5G master clock and the second 5G master clock exist simultaneously in the 5G system;
[0062] The master clock of the TSN system includes: a first TSN master clock and / or a second TSN master clock; wherein, the master clock of the TSN system changes from the first TSN master clock to the second TSN master clock, or both the first TSN master clock and the second TSN master clock exist simultaneously in the TSN system.
[0063] Specifically, in the integrated system of the 5G system and the TSN system, both the 5G system and the TSN system can include one or more clocks. Among the clocks included in the 5G system, at least include: a first 5G master clock and / or a second 5G master clock. Among the clocks included in the TSN system, at least include: a first TSN master clock and / or a second TSN master clock.
[0064] Among them, there may be the following two scenarios for the clocks in the 5G system: The first scenario is that the master clock of the 5G system changes. For example, the master clock of the 5G system changes from the first 5G master clock to the second 5G master clock, that is, the state of the first 5G master clock changes from the master clock state to the non-master clock state, and the state of the second 5G master clock changes from the non-master clock state to the master clock state. The second scenario is that there are at least two 5G master clocks in the 5G system. For example, both the first 5G master clock and the second 5G master clock exist simultaneously in the 5G system.
[0065] Similarly, there may be the following two scenarios for the clocks in the TSN system: The first scenario is that the master clock of the TSN system changes. For example, the master clock of the TSN system changes from the first TSN master clock to the second TSN master clock, that is, the state of the first TSN master clock changes from the master clock state to the non-master clock state, and the state of the second TSN master clock changes from the non-master clock state to the master clock state. The second scenario is that there are at least two TSN master clocks in the TSN system. For example, both the first TSN master clock and the second TSN master clock exist simultaneously in the TSN system.
[0066] Embodiment 2
[0067] Figure 4The flowchart of a clock conversion method provided in the second embodiment of the present invention. This embodiment is based on any of the above embodiments and addresses the situation where the main clock of the TSN system changes during the operation of the 5G-TSN fusion system. As Figure 4 shown, the method includes:
[0068] S210. Obtain 5G clock registration information.
[0069] S220. When the main clock of the TSN system changes from the first TSN main clock to the second TSN main clock, receive the registration information change notice sent by the CNC module; the registration information change notice includes: the second TSN clock registration information; the second TSN clock registration information is the information generated when the second TSN main clock initiates registration with the CNC module after the main clock of the TSN system changes from the first TSN main clock to the second TSN main clock.
[0070] Specifically, when the main clock of the TSN system changes, from the first TSN main clock to the second TSN main clock, the second TSN main clock initiates registration with the CNC module and generates the second TSN clock registration information. The CNC module locally records the second TSN clock registration information corresponding to the second TSN main clock and sends a registration information change notice to the TSN AF module (or control module). The registration information change notice includes: the second TSN clock registration information corresponding to the second TSN main clock.
[0071] Optionally, the registration information change notice may further include: the first TSN clock registration information to be deleted; the first TSN clock registration information to be deleted is the first TSN clock registration information locally stored in the CNC module that is deleted when the CNC module detects that the status of the first TSN main clock changes to a non-main clock.
[0072] Specifically, when the CNC module receives the registration initiated by the second TSN main clock, it detects the status of the first main clock before the change in the TSN system. If it is found that the main clock of the TSN system changes from the status of the first TSN main clock to a non-main clock, it deletes the first TSN clock registration information corresponding to the first TSN main clock stored locally and writes the deleted first TSN clock registration information as the first TSN clock registration information to be deleted into the registration information change notice and sends it to the TSN AF module.
[0073] S230. Based on the registration information change notice, delete the first TSN clock registration information and the clock conversion strategy determined according to the first TSN clock registration information and the 5G clock registration information.
[0074] Specifically, the TSN AF module (or control module) deletes the first TSN clock registration information stored locally in the TSN AF module (or control module) and the clock conversion policy determined according to the first TSN clock registration information and the 5G clock registration information based on the first TSN clock registration information to be deleted in the registration information change notice.
[0075] S240. Determine the second clock conversion policy of the TSN converter according to the second TSN clock registration information and the 5G clock registration information; the TSN converter includes: a network-side TSN converter NW-TT and a device-side TSN converter DS-TT.
[0076] S250. Send the second clock conversion policy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the second clock conversion policy.
[0077] The technical solution of the embodiment of the present invention obtains the 5G clock registration information; in the case where the master clock of the TSN system changes from the first TSN master clock to the second TSN master clock, receives the registration information change notice sent by the CNC module; determines the clock conversion policy of the TSN converter according to the second TSN clock registration information and the 5G clock registration information; the TSN converter includes: a network-side TSN converter NW-TT and a device-side TSN converter DS-TT; sends the second clock conversion policy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the second clock conversion policy, can solve the conversion problem of different clock values in the 5G-TSN fusion system, and still realizes the high-precision and high-reliability clock conversion function in the case of the master clock change in the TSN system, and ensures the deterministic transmission of the 5G-TSN fusion system.
[0078] Embodiment III
[0079] Figure 5 It is a flowchart of a clock conversion method provided by Embodiment III of the present invention. This embodiment is based on any of the above embodiments and aims at the situation where the 5G system has a master clock change during the operation of the 5G-TSN fusion system. As Figure 5 shown, the method includes:
[0080] S310. Obtain the TSN clock registration information.
[0081] Specifically, the method for obtaining the TSN clock registration information in this embodiment may be the same as any of the above embodiments, and the TSN clock registration information may be the first TSN clock registration information or the second TSN clock registration information.
[0082] S320. When the primary clock of the 5G system changes from the first 5G primary clock to the second 5G primary clock, receive the second 5G clock registration information sent by the second 5G primary clock; the second 5G clock registration information is the information generated when the second 5G primary clock initiates registration to the TSN AF module after the primary clock of the 5G system changes from the first 5G primary clock to the second 5G primary clock.
[0083] Specifically, when the primary clock of the 5G system changes, from the first 5G primary clock to the second 5G primary clock, the changed second 5G primary clock initiates registration to the TSN AF module and generates the second 5G clock registration information, enabling the TSN AF module to receive the second 5G clock registration information sent by the second 5G primary clock.
[0084] Optionally, after receiving the second 5G clock registration information sent by the second 5G primary clock, it further includes:
[0085] Detect the status of the first 5G primary clock;
[0086] If the status of the first 5G primary clock changes to non-primary clock, delete the first 5G clock registration information and the clock conversion strategy determined according to the TSN clock registration information and the first 5G clock registration information.
[0087] Specifically, after the TSN AF module receives the second 5G clock registration information sent by the second 5G primary clock of the 5G system, it detects the status of the first primary clock before the change in the 5G system. If it is found that the status of the first 5G primary clock of the 5G system changes to non-primary clock, delete the first 5G clock registration information corresponding to the first 5G primary clock of the 5G system stored locally in the TSN AF module and the clock conversion strategy determined according to the TSN clock registration information and the first 5G clock registration information.
[0088] S330. Determine the third clock conversion strategy of the TSN converter according to the TSN clock registration information and the second 5G clock registration information; the TSN converter includes: the network-side TSN converter NW-TT and the device-side TSN converter DS-TT.
[0089] S340. Send the third clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the third clock conversion strategy.
[0090] The technical solution of the embodiment of the present invention is to obtain the TSN clock registration information; when the primary clock of the 5G system changes from the first 5G primary clock to the second 5G primary clock, receive the second 5G clock registration information sent by the second 5G primary clock; determine the third clock conversion strategy of the TSN converter according to the TSN clock registration information and the second 5G clock registration information; the TSN converter includes: a network-side TSN converter NW-TT and a device-side TSN converter DS-TT; send the third clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the third clock conversion strategy, which can solve the conversion problem of different clock values in the 5G-TSN fusion system. When the primary clock of the 5G system changes, it still realizes a high-precision and highly reliable clock conversion function, ensuring the deterministic transmission of the 5G-TSN fusion system.
[0091] Embodiment 4
[0092] Figure 6 It is a flowchart of a clock conversion method provided by Embodiment 4 of the present invention. This embodiment is based on any of the above embodiments and is for the case where at least two TSN primary clocks are configured in the TSN system during the operation of the 5G-TSN fusion system. As Figure 6 shown, the method includes:
[0093] S410. Obtain the TSN clock registration information and the 5G clock registration information.
[0094] Specifically, obtain the 5G clock registration information and the TSN clock registration information corresponding to each TSN primary clock in the TSN system. The manner of obtaining the 5G clock registration information and the TSN clock registration information may be the same as any of the above embodiments, and the embodiments of the present invention will not elaborate on this.
[0095] S420. Determine the clock conversion strategies of the TSN converters corresponding to each TSN primary clock in the TSN system according to the TSN clock registration information corresponding to each TSN primary clock in the TSN system and the 5G clock registration information.
[0096] Specifically, if the TSN system is configured with at least two TSN primary clocks, such as the first TSN primary clock and the second primary clock; then it is necessary to determine the clock conversion strategies of the TSN converters corresponding to each TSN primary clock in the TSN system according to the TSN clock registration information corresponding to each TSN primary clock and the 5G clock registration information. It can be understood that the number of determined clock conversion strategies is the same as the number of primary clocks in the TSN system and they are in one-to-one correspondence.
[0097] S430. Send each clock conversion policy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system respectively based on each received clock conversion policy.
[0098] Specifically, if the TSN system is configured with at least two TSN system master clocks, NW-TT / DS-TT will receive the same number of clock conversion policies, and NW-TT / DS-TT needs to perform clock conversion on the packets transmitted between the 5G system and the TSN system respectively based on each received clock conversion policy.
[0099] The technical solution of the embodiment of the present invention, by obtaining the TSN clock registration information and the 5G clock registration information; according to the TSN clock registration information and the 5G clock registration information corresponding to each TSN master clock in the TSN system, respectively determining the clock conversion policies of the TSN converters corresponding to each TSN master clock in the TSN system; sending each clock conversion policy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system respectively based on each received clock conversion policy, can solve the problem of conversion between different clock values in the 5G-TSN fusion system, configure multiple TSN master clocks in the TSN system, perform clock value conversion respectively, improve the reliability and accuracy of clock conversion, and ensure the deterministic transmission of the 5G-TSN fusion system.
[0100] Embodiment Five
[0101] Figure 7 It is a flowchart of a clock conversion method provided for Embodiment Five of the present invention. This embodiment is based on any of the above embodiments and aims at the situation where the 5G system is configured with at least two 5G master clocks during the operation of the 5G-TSN fusion system. As Figure 7 shown, the method includes:
[0102] S410. Obtain the TSN clock registration information and the 5G clock registration information.
[0103] Specifically, obtain the TSN clock registration information and the 5G clock registration information corresponding to each 5G master clock in the 5G system. The methods of obtaining the 5G clock registration information and the TSN clock registration information can be the same as any of the above embodiments, and the embodiments of the present invention will not elaborate on this.
[0104] S420. According to the 5G clock registration information and the TSN clock registration information corresponding to each 5G master clock in the 5G system, respectively determine the clock conversion policies of the TSN converters corresponding to each 5G master clock in the 5G system.
[0105] Specifically, if the 5G system is configured with at least two 5G master clocks, such as a first 5G master clock and a second 5G master clock, it is necessary to determine the clock conversion strategies of the TSN converters corresponding to each 5G master clock in the 5G system according to the 5G clock registration information and the TSN clock registration information corresponding to each 5G master clock. It can be understood that the number of determined clock conversion strategies is the same as the number of master clocks in the 5G system and they are in one-to-one correspondence.
[0106] S430. Send each clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on each received clock conversion strategy.
[0107] Specifically, if the 5G system is configured with at least two 5G master clocks, NW-TT / DS-TT will receive the same number of clock conversion strategies, and NW-TT / DS-TT needs to perform clock conversion on the packets transmitted between the 5G system and the TSN system based on each received clock conversion strategy.
[0108] The technical solution of the embodiment of the present invention, by obtaining the TSN clock registration information and the 5G clock registration information; determining the clock conversion strategies of the TSN converters corresponding to each 5G master clock in the 5G system according to the 5G clock registration information and the TSN clock registration information corresponding to each 5G master clock in the 5G system; sending each clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on each received clock conversion strategy, can solve the problem of conversion of different clock values in the 5G-TSN fusion system, configure multiple 5G master clocks in the 5G system, perform conversion of clock values respectively, improve the reliability and accuracy of clock conversion, and ensure the deterministic transmission of the 5G-TSN fusion system.
[0109] Embodiment Six
[0110] Figure 8 FIG. 16 is a schematic structural diagram of a clock conversion device provided in Embodiment Six of the present invention. This device can be integrated into a fusion system of a 5G system and a time-sensitive network TSN system, such as the application function TSN AF module of the fusion system. As Figure 8 shown, the device includes: a registration information acquisition module 610, a conversion strategy determination module 620, and a conversion strategy sending module 630
[0111] Among them, the registration information acquisition module 610 is used to obtain the TSN clock registration information and the 5G clock registration information. The TSN clock registration information is the registration information corresponding to the master clock of the TSN system, and the 5G clock registration information is the registration information corresponding to the master clock of the 5G system;
[0112] A conversion strategy determination module 620, configured to determine a clock conversion strategy of the TSN converter according to the TSN clock registration information and the 5G clock registration information;
[0113] A conversion strategy sending module 630, configured to send the clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the clock conversion strategy.
[0114] Optionally, the 5G system in the fusion system includes: a first 5G master clock and / or a second 5G master clock; wherein, the master clock of the 5G system changes from the first 5G master clock to the second 5G master clock, or both the first 5G master clock and the second 5G master clock exist simultaneously in the 5G system;
[0115] The TSN system in the fusion system includes: a first TSN master clock and / or a second TSN master clock; wherein, the master clock of the TSN system changes from the first TSN master clock to the second TSN master clock, or both the first TSN master clock and the second TSN master clock exist simultaneously in the TSN system.
[0116] Optionally, the TSN clock registration information includes: first TSN clock registration information, which is information generated when the first TSN master clock initiates registration to the centralized network configuration CNC module;
[0117] Correspondingly, the registration information acquisition module 610 includes:
[0118] A first registration information receiving unit, configured to receive the first TSN clock registration information forwarded by the centralized network configuration CNC module.
[0119] Optionally, the TSN clock registration information further includes: second TSN clock registration information, which is information generated when the second TSN master clock initiates registration to the CNC module after the master clock of the TSN system changes from the first TSN master clock to the second TSN master clock;
[0120] Correspondingly, the registration information acquisition module 610 includes:
[0121] A second registration information receiving unit, configured to receive a registration information change notice sent by the CNC module when the master clock of the TSN system changes from the first TSN master clock to the second TSN master clock, where the registration information change notice includes: second TSN clock registration information;
[0122] Optionally, the registration information change notice further includes: the first TSN clock registration information to be deleted; the first TSN clock registration information to be deleted is the first TSN clock registration information locally in the CNC module that is deleted when the CNC module detects that the status of the first TSN master clock changes to a non-master clock.
[0123] The device further includes:
[0124] A first deletion module, configured to, after receiving the registration information change notice sent by the CNC module, based on the registration information change notice, delete the first TSN clock registration information and the clock conversion policy determined according to the first TSN clock registration information and the 5G clock registration information.
[0125] Optionally, the 5G clock registration information includes: second 5G clock registration information, which is information generated when the second 5G master clock initiates registration to the application function TSN AF module of the convergence system after the master clock of the 5G system changes from the first 5G master clock to the second 5G master clock.
[0126] Correspondingly, the registration information acquisition module 610 includes:
[0127] A third registration information receiving unit, configured to receive the second 5G clock registration information sent by the second 5G master clock when the master clock of the 5G system changes from the first 5G master clock to the second 5G master clock.
[0128] Optionally, the device further includes:
[0129] A detection module, configured to detect the status of the first 5G master clock after receiving the second 5G clock registration information sent by the second 5G master clock of the 5G system.
[0130] A second deletion module, configured to, if the status of the first 5G master clock changes to a non-master clock, delete the first 5G clock registration information and the clock conversion policy determined according to the TSN clock registration information and the first 5G clock registration information; the first 5G clock registration information is information generated when the first 5G master clock initiates registration to the TSN AF module.
[0131] Optionally, the TSN system includes: at least two TSN master clocks; the TSN clock registration information includes: the TSN clock registration information corresponding to each TSN master clock in the TSN system.
[0132] Correspondingly, the conversion policy determination module 620 includes:
[0133] A first policy determination unit, configured to determine a clock conversion policy of a TSN converter corresponding to each of the TSN master clocks respectively according to the 5G clock registration information and the TSN clock registration information corresponding to each of the TSN master clocks.
[0134] Optionally, the 5G clock registration information includes: 5G clock registration information respectively corresponding to each of the TSN master clocks;
[0135] Correspondingly, the conversion policy determination module 620 includes:
[0136] A second policy determination unit, configured to determine a clock conversion policy of a TSN converter corresponding to each of the 5G master clocks respectively according to the TSN clock registration information and the 5G clock registration information corresponding to each of the 5G master clocks.
[0137] Optionally, the conversion policy determination module 620 is specifically configured to:
[0138] Determine a clock frequency offset according to the TSN master clock frequency and the 5G master clock frequency;
[0139] Determine a clock value offset according to the TSN master clock value and the 5G master clock value;
[0140] Determine a clock conversion factor corresponding to the TSN converter according to the clock frequency offset and the clock value offset;
[0141] Obtain a preset mapping policy of the TSN converter; parameters of the preset mapping policy include: a clock value of the 5G system, a clock value of the TSN system, and a clock value conversion factor between the 5G system and the TSN system;
[0142] Substitute the clock conversion factor into the mapping factor of the preset mapping policy to obtain the clock conversion policy of the TSN converter.
[0143] The clock conversion device provided by the embodiments of the present invention can execute the clock conversion method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
[0144] Embodiment Seven
[0145] Embodiment 7 of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the clock conversion method provided by all the inventive embodiments of the present application: obtaining TSN clock registration information and 5G clock registration information, where the TSN clock registration information is the registration information corresponding to the master clock of the TSN system, and the 5G clock registration information is the registration information corresponding to the master clock of the 5G system; determining a clock conversion strategy for the TSN converter according to the TSN clock registration information and the 5G clock registration information; and sending the clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the clock conversion strategy.
[0146] One or more computer-readable media in any combination can be adopted. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.
[0147] A computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device.
[0148] The program code contained on a computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0149] Computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network including a local area network (LAN) or a wide area network (WAN), or, may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0150] It should be understood that the strategies can use the various forms of the processes shown above, reorder, add or delete steps. For example, the steps recited in the present invention may be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitations are set herein.
[0151] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A clock conversion method, characterized in that Applied to a converged system of a 5G system and a Time-Sensitive Networking (TSN) system; the method includes: Obtain TSN clock registration information and 5G clock registration information, where the TSN clock registration information is the registration information corresponding to the master clock of the TSN system, and the 5G clock registration information is the registration information corresponding to the master clock of the 5G system; the TSN clock registration information includes: the TSN master clock frequency and the TSN master clock value, and the 5G clock registration information includes: the 5G master clock frequency and the 5G master clock value; Determine the clock conversion strategy of the TSN converter according to the TSN clock registration information and the 5G clock registration information; Send the clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the clock conversion strategy.
2. The method according to claim 1, wherein The master clock of the 5G system includes: a first 5G master clock and / or a second 5G master clock; wherein, the master clock of the 5G system changes from the first 5G master clock to the second 5G master clock, or both the first 5G master clock and the second 5G master clock exist simultaneously in the 5G system; The master clock of the TSN system includes: a first TSN master clock and / or a second TSN master clock; wherein, the master clock of the TSN system changes from the first TSN master clock to the second TSN master clock, or both the first TSN master clock and the second TSN master clock exist simultaneously in the TSN system.
3. The method according to claim 2, wherein The TSN clock registration information includes: first TSN clock registration information, which is the information generated when the first TSN master clock initiates registration to the Centralized Network Configuration (CNC) module; Correspondingly, the obtaining of the TSN clock registration information includes: Receiving the first TSN clock registration information forwarded by the CNC module.
4. The method according to claim 3, characterized in that, The TSN clock registration information further includes: second TSN clock registration information, which is the information generated when the master clock of the TSN system changes from the first TSN master clock to the second TSN master clock and the second TSN master clock initiates registration to the CNC module; Correspondingly, the obtaining of the TSN clock registration information includes: In the case where the master clock of the TSN system changes from the first TSN master clock to the second TSN master clock, receiving a registration information change notice sent by the CNC module, where the registration information change notice includes: the second TSN clock registration information.
5. The method according to claim 4, wherein The registration information change notice further includes: the first TSN clock registration information to be deleted; the first TSN clock registration information to be deleted is the first TSN clock registration information locally deleted by the CNC module when the CNC module detects that the status of the first TSN master clock changes to a non-master clock; After receiving the registration information change notice sent by the CNC module, it further includes: Based on the registration information change notification, delete the first TSN clock registration information and the clock conversion strategy determined according to the first TSN clock registration information and the 5G clock registration information.
6. The method according to claim 2, wherein The 5G clock registration information includes: second 5G clock registration information, where the second 5G clock registration information is information generated when the second 5G master clock initiates registration with the application function TSN AF module of the converged system after the master clock of the 5G system is changed from the first 5G master clock to the second 5G master clock; Accordingly, obtain 5G clock registration information, including: When the first 5G master clock is changed to the second 5G master clock, the second 5G clock registration information sent by the second 5G master clock of the 5G system is received.
7. The method according to claim 6, characterized in that, After receiving the second 5G clock registration information sent by the second 5G master clock of the 5G system, the method further includes: Detecting a status of the first 5G master clock; If the state of the first 5G master clock changes to a non-master clock, deleting the first 5G clock registration information and the clock conversion strategy determined according to the TSN clock registration information and the first 5G clock registration information; The first 5G clock registration information is information generated when the first 5G master clock initiates registration with the TSN AF module.
8. The method according to claim 2, wherein The TSN clock registration information includes: TSN clock registration information corresponding to each TSN master clock; Accordingly, determining a clock conversion strategy of the TSN converter according to the TSN clock registration information and the 5G clock registration information includes: According to the 5G clock registration information and the TSN clock registration information corresponding to each of the TSN master clocks, the clock conversion strategy of the TSN converter corresponding to each of the TSN master clocks is determined respectively.
9. The method according to claim 2, wherein The 5G clock registration information includes: 5G clock registration information corresponding to each of the 5G master clocks; Accordingly, determining a clock conversion strategy of the TSN converter according to the TSN clock registration information and the 5G clock registration information includes: According to the TSN clock registration information and the 5G clock registration information corresponding to each of the 5G master clocks, the clock conversion strategy of the TSN converter corresponding to each of the 5G master clocks is determined respectively.
10. The method according to claim 1, wherein Determining a clock conversion strategy of a TSN converter according to the TSN clock registration information and the 5G clock registration information includes: Determining a clock frequency offset based on the TSN master clock frequency and the 5G master clock frequency; Determine a clock value offset based on the TSN master clock value and the 5G master clock value; Determine a clock conversion factor corresponding to the TSN converter according to the clock frequency offset and the clock value offset; Obtaining a preset mapping strategy of the TSN converter; the parameters of the preset mapping strategy include: a clock value of the 5G system, a clock value of the TSN system, and a clock value conversion factor between the 5G system and the TSN system; The clock conversion factor is substituted into the mapping factor of the preset mapping strategy to obtain the clock conversion strategy of the TSN converter.
11. A clock conversion device, characterized in that, Integrated in a converged system of a 5G system and a Time-Sensitive Networking (TSN) system; the device includes: A registration information acquisition module, configured to acquire TSN clock registration information and 5G clock registration information, where the TSN clock registration information is the registration information corresponding to the master clock of the TSN system, and the 5G clock registration information is the registration information corresponding to the master clock of the 5G system; the TSN clock registration information includes: the TSN master clock frequency and the TSN master clock value, and the 5G clock registration information includes: the 5G master clock frequency and the 5G master clock value; A conversion strategy determination module, configured to determine a clock conversion strategy for a TSN converter according to the TSN clock registration information and the 5G clock registration information; A conversion strategy sending module, configured to send the clock conversion strategy to the corresponding TSN converter, so that the TSN converter performs clock conversion on the packets transmitted between the 5G system and the TSN system based on the clock conversion strategy.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a processor to implement the clock conversion method according to any one of claims 1-10 when executed.
Citation Information
Patent Citations
Method and device for delivering time-sensitive networking synchronization information in mobile communication system
WO2021141296A1
Information control method and communication device
WO2021160164A1