A clock synchronization method, device, network equipment, converter and storage medium
By receiving and processing the second clock synchronization message generated by the TSN converter in the 5G-TSN converged system, the clock synchronization interruption problem caused by the main clock failure of the TSN system is solved, and the reliability of system clock synchronization and real-time and certainty of data transmission are realized.
Patent Information
- Application Number
- CN202211013908.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2042-08-23
AI Technical Summary
In 5G-TSN converged system, when the main clock of the TSN system fails, there is a problem of clock synchronization interruption, resulting in the real-time and reliability of data transmission that cannot be guaranteed.
By receiving the second clock synchronization message sent by the TSN converter, the message is generated according to the clock synchronization protocol of the TSN system and the first clock synchronization message sent by the main clock of the 5G system, thereby realizing clock synchronization in the case of a main clock failure.
It solves the problem of clock synchronization interruption, maintains strict synchronization of clock values of various devices of 5G-TSN converged system, improves the reliability of clock synchronization, and ensures the certainty and real-time nature of data transmission.
Smart Images

Figure CN115397004B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a clock synchronization method, device, network equipment, converter 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 of the 5G system can meet the flexible mobility of industrial equipment and provide factories with stable and reliable wireless transmission technology. Therefore, the integration of 5G+TSN is an important foundation for realizing the wirelessization and flexible manufacturing of the industrial Internet in the future.
[0003] In the actual operation of the fusion system of 5G system and TSN system, the master clock of TSN system may fail. Even if there is a backup master clock, the master clock reselection mechanism specified by the protocol will have a certain clock synchronization interruption period. During the interruption period, the TSN system will lose the clock synchronization function and cannot perform clock synchronization. Once the TSN system loses the clock synchronization function, the real-time and reliability of data transmission cannot be guaranteed. Summary of the invention
[0004] The present invention provides a clock synchronization method, device, network equipment, converter and storage medium to solve the problem of clock synchronization interruption when the master clock of the TSN system fails and the master clock is reselected, realize real-time clock synchronization function, improve the clock synchronization reliability of the 5G-TSN fusion system, and ensure the determinism and real-time nature of data transmission in the 5G-TSN fusion system.
[0005] According to one aspect of the present invention, a clock synchronization method is provided, which is applied to a network device in a fusion system of a 5G system and a time-sensitive network TSN system, and the method includes:
[0006] Receiving a second clock synchronization message sent by the TSN converter in the fusion system; wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system;
[0007] When a master clock of the TSN system fails, clock synchronization is performed according to the second clock synchronization message.
[0008] According to another aspect of the present invention, a clock synchronization method is provided, which is applied to a TSN converter in a fusion system of a 5G system and a time-sensitive network TSN system, and the method includes:
[0009] Upon receiving a first clock synchronization message sent by the master clock of the 5G system, generating a second clock synchronization message according to the clock synchronization protocol used by the TSN system and the first clock synchronization message;
[0010] The second clock synchronization message is sent to the network device in the TSN system, so that the network device performs clock synchronization based on the second clock synchronization message.
[0011] According to another aspect of the present invention, a clock synchronization device is provided, which is a network device integrated in a fusion system of a 5G system and a time-sensitive network TSN system, and the device includes:
[0012] A first message receiving module, used to receive a second clock synchronization message sent by the TSN converter in the fusion system; wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system;
[0013] The first network device synchronization module is used to perform clock synchronization according to the second clock synchronization message when the master clock of the TSN system fails.
[0014] According to another aspect of the present invention, a clock synchronization device is provided, which is integrated into a TSN converter in a fusion system of a 5G system and a time-sensitive network TSN system, comprising:
[0015] A message generation module, configured to generate a second clock synchronization message according to the clock synchronization protocol used by the TSN system and the first clock synchronization message when receiving a first clock synchronization message sent by the master clock of the 5G system;
[0016] The message sending module is used to send the second clock synchronization message to the network device in the TSN system, so that the network device performs clock synchronization based on the second clock synchronization message.
[0017] According to another aspect of the present invention, a network device is provided, wherein the network device is arranged in the TSN system in a fusion system of a 5G system and a time-sensitive network TSN system, and the network device comprises:
[0018] at least one processor; and
[0019] a memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the clock synchronization method described in any embodiment of the present invention.
[0021] According to another aspect of the present invention, a converter is provided, wherein the converter is arranged in the 5G system in a fusion system of a 5G system and a time sensitive network TSN system, and the converter comprises:
[0022] at least one processor; and
[0023] a memory communicatively connected to the at least one processor; wherein,
[0024] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the clock synchronization method described in any embodiment of the present invention.
[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the clock synchronization method described in any embodiment of the present invention when executed.
[0026] The technical solution of the embodiment of the present invention is to receive the second clock synchronization message sent by the TSN converter in the fusion system; wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system; in the event of a failure of the master clock of the TSN system, clock synchronization is performed according to the second clock synchronization message, thereby solving the problem of clock synchronization interruption when the master clock of the TSN system fails and the master clock is reselected, and achieving the beneficial effect of keeping the clock values of each device in the 5G-TSN fusion system strictly synchronized, improving the clock synchronization reliability of the 5G-TSN fusion system, and ensuring the determinism and real-time nature of data transmission in the 5G-TSN fusion system.
[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended 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
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 It is a schematic diagram of the principle of a clock synchronization method based on a 5G-TSN fusion system in the prior art;
[0030] Figure 2 It is a schematic diagram of the principle of a clock synchronization method based on a 5G-TSN fusion system provided by an embodiment of the present invention;
[0031] Figure 3 is a flowchart of a clock synchronization method provided according to Embodiment 1 of the present invention;
[0032] Figure 4A is a flowchart of a clock synchronization method provided according to Embodiment 2 of the present invention;
[0033] Figure 4B It is a timing diagram of clock synchronization of network devices in the TSN system when clock synchronization messages from different systems arrive at the network devices at the same time;
[0034] Figure 4C It is a timing diagram of clock synchronization of network devices in the TSN system when clock synchronization messages from different systems do not arrive at the network devices at the same time;
[0035] Figure 5 is a flowchart of a clock synchronization method provided according to Embodiment 3 of the present invention;
[0036] Figure 6 is a schematic diagram of the structure of a clock synchronization device provided according to a fourth embodiment of the present invention;
[0037] Figure 7 is a structural schematic diagram of a clock synchronization device provided according to Embodiment 5 of the present invention;
[0038] Figure 8 is a schematic diagram of the structure of a network device that implements the clock synchronization method of an embodiment of the present invention;
[0039] Fig. 9 It is a schematic diagram of the structure of a converter for implementing the clock synchronization method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0041] 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 are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0042] Figure 1 This is a schematic diagram of the principle of a clock synchronization method based on a 5G-TSN fusion system in the prior art. Figure 1As shown, each network element device in the 5G system includes a user equipment (UE), a 5G base station (gNB), a user plane function (UPF), a network-side TSN translator (NW-TT), a device-side TSN translator (DS-TT), and a 5G core network, etc. Each network element device in the 5G system is connected to the master clock of the 5G system and maintains clock synchronization with the master clock of the 5G system. The time sensitive network (TSN) system includes network devices on the device side connected to the DS-TT in the 5G system (including the first TSN end device), network devices on the network side connected to the NW-TT in the 5G system (including the first switch, the second switch, and the second TSN end device), and the master clock of the TSN system. Among them, the first TSN switch is connected to the 5G core network through the network configuration module (CNC); CNC is used to forward the interaction information between the 5G core network and the master clock of the TSN system; NW-TT is used for the interaction between the network devices on the network side of the 5G system and the TSN system; the DS-TT is used for the interaction between the network devices on the device side of the 5G system and the TSN system.
[0043] The clocks of each network device in the TSN system (including network devices on the device side and network devices on the network side) are synchronized with the master clock of the TSN system, and have nothing to do with the master clock of the 5G system. However, DS-TT and NW-TT need to support different clock synchronization methods of the 5G system and the TSN system at the same time to realize the recognition and conversion of clock values between the 5G system and the TSN system.
[0044] During the actual operation of the above 5G-TSN fusion system, the master clock of the TSN system may fail. In this case, the clock can be synchronized through the backup master clock, but the master clock reselection mechanism specified in the protocol will also have a certain clock synchronization interruption period. During the interruption period, the TSN system will cause the TSN system to lose the clock synchronization function and cannot perform clock synchronization. Once the TSN system loses the clock synchronization function, the real-time and deterministic data transmission cannot be guaranteed.
[0045] In order to solve the above problem, an embodiment of the present invention provides a clock synchronization method without interruption period. Figure 2 Schematic diagram of the principle of a clock synchronization method based on a 5G-TSN fusion system provided by an embodiment of the present invention. Figure 2As shown, in an embodiment of the present invention, the master clock of the TSN system in the fusion system sends a clock synchronization message to the TSN converter in the 5G system (hereinafter referred to as the converter refers to DS-TT and NW-TT). In addition, it is pioneered that the TSN converter in the fusion system will also generate a second clock synchronization message based on the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system and send it to each network device in the fusion system, so that when the master clock of the TSN system fails and cannot provide clock synchronization messages to each network device in the TSN system, the network device can receive the second clock synchronization message sent by the TSN converter, and indirectly synchronize with the master clock of the 5G system, so as to keep the clock values of each network device in the TSN system strictly synchronized, thereby improving the clock synchronization reliability of the 5G-TSN fusion system and ensuring the certainty and real-time data transmission of the 5G-TSN fusion system.
[0046] Embodiment 1
[0047] Figure 3 A flowchart of a clock synchronization method is provided for Embodiment 1 of the present invention. This embodiment can be applied to network equipment in a fusion system of a 5G system and a time-sensitive network TSN system, and can maintain a clock synchronization function when a master clock of the TSN system fails. The method can be executed by a clock synchronization device, which can be implemented in the form of hardware and / or software, and can be configured in a network device of the TSN system in a 5G-TSN fusion system.
[0048] like Figure 3 As shown, the method includes:
[0049] S110. Receive a second clock synchronization message sent by the TSN converter in the fusion system; wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system.
[0050] The clock synchronization method provided in this embodiment is executed by the network equipment of the TSN system in the fusion system of the 5G system and the time-sensitive network TSN system (hereinafter referred to as the 5G-TSN fusion system). The network equipment of the TSN system may include: network equipment on the network side of the TSN system and network equipment on the device side of the TSN system. The network equipment on the network side of the TSN system refers to the network equipment in the TSN system that is directly or indirectly connected to the network-side TSN converter NW-TT in the 5G system (for example Figure 2The first TSN switch, the second TSN switch, and the second TSN end device in the 5G system); the network device on the device side of the TSN system refers to the network device in the TSN system that is directly or indirectly connected to the device-side TSN converter DS-TT in the 5G system (for example Figure 2 The first TSN end device in the world).
[0051] Among them, the first clock synchronization message can be understood as a clock synchronization message sent by the master clock of the 5G system; the second clock synchronization message can be understood as a clock synchronization message sent by the TSN converter of the 5G system in the fusion system. The second clock synchronization message can be obtained by converting the first clock synchronization message through the clock synchronization protocol used by the TSN system. The information carried in the second clock synchronization message and the first clock synchronization message may include: the master clock information of the 5G system; the master clock information of the 5G system may include: clock source, clock level, clock value, clock frequency, clock ID, etc. The second clock synchronization message also needs to carry the clock synchronization domain number, which is determined based on the domain number of the TSN system and is consistent with the domain number of the TSN system.
[0052] Specifically, in the 5G-TSN fusion system, the 5G system and the TSN system are respectively configured with a master clock, and the clock source is configured for the master clock. For example, the master clock of the TSN system is configured as clock A, and the clock source is a constant temperature crystal oscillator; the master clock of the 5G system is configured as clock B, and the clock source is the Global Positioning System (GPS).
[0053] After the 5G-TSN fusion system is powered on, the master clock of the 5G system sends a first clock synchronization message to each network device in the 5G system, including the TSN converter. When the TSN converter (including NW-TT and DS-TT) receives the first clock synchronization message sent by the master clock of the 5G system, it will generate a second clock synchronization message according to the clock synchronization protocol used by the TSN system and the information carried in the first clock synchronization message, and send the second clock synchronization message to the network device of the TSN system, so that the network device of the TSN system receives the second clock synchronization message sent by the TSN converter in the 5G system.
[0054] S120: When a master clock of the TSN system fails, perform clock synchronization according to the second clock synchronization message.
[0055] Specifically, in the traditional 5G-TSN fusion system, when the master clock of the TSN system fails, the backup master clock can be used to send clock synchronization messages to each network device in the TSN system. However, the master clock reselection mechanism specified by the protocol will result in a clock synchronization interruption period, during which the TSN system will lose its clock synchronization function and will be unable to perform clock synchronization.
[0056] In this embodiment, when the master clock of the TSN system fails and cannot provide clock synchronization messages to each network device in the TSN system, the network device can receive the second clock synchronization message sent by the TSN converter and indirectly synchronize with the 5G system master clock.
[0057] Exemplarily, the method of performing clock synchronization according to the second clock synchronization message may be: adjusting the local clock value of the network device in the TSN system according to the clock value carried in the second clock synchronization message. The method of adjusting the local clock value of the TSN system may be executed in accordance with the IEEE 802.1AS protocol. When performing clock synchronization, the time delay between the network device in the TSN system and the connected TSN converter may be further considered to make the clock synchronization more accurate. For example, according to the delay measurement method specified by the preset protocol (such as the IEEE 802.1AS protocol), the path delay between the network device of the TSN system and the connected TSN converter is measured. The embodiment of the present invention does not impose any restrictions on the method for adjusting the local clock value of the network device and the method for measuring the path delay between the network device and the connected TSN converter.
[0058] In an embodiment of the present invention, a second clock synchronization message sent by a TSN converter in a 5G-TSN fusion system is received through a network device of a TSN system in the fusion system; wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system; in the event that the master clock of the TSN system fails, clock synchronization is performed according to the second clock synchronization message, so that when the master clock of the TSN system fails and cannot provide clock synchronization messages to each network device in the TSN system, the network device can receive the second clock synchronization message sent by the TSN converter, and indirectly synchronize with the 5G system master clock, so as to keep the clock values of each network device in the TSN system strictly synchronized, thereby improving the clock synchronization reliability of the 5G-TSN fusion system and ensuring the determinism and real-time performance of data transmission in the 5G-TSN fusion system.
[0059] Optionally, the network device includes: a network device in the TSN system device side and a network device in the TSN system network side;
[0060] The network device on the TSN system device side is used to receive the second clock synchronization message sent by the device side TSN converter in the fusion system;
[0061] The network device on the network side of the TSN system is used to receive the second clock synchronization message sent by the network side TSN converter in the fusion system.
[0062] Specifically, the 5G system of the 5G-TSN fusion system includes: a network-side TSN converter NW-TT and a device-side TSN converter DS-TT. The network-side TSN converter NW-TT in the 5G system is directly or indirectly connected to the network equipment on the network side of the TSN system; the device-side TSN converter DS-TT in the 5G system is directly or indirectly connected to the network equipment on the device side of the TSN system; the clock synchronization processes of the network equipment on the device side of the TSN system and the network equipment on the network side of the TSN system are independent of each other and do not interfere with each other.
[0063] Therefore, based on the connection relationship between the network equipment in the TSN system and the converter in the 5G system, the device-side TSN converter DS-TT can send the second clock synchronization message to the network equipment on the device side of the connected TSN system, but will not send the second clock synchronization message to the network equipment on the network side of the TSN system, so that the network equipment on the device side of the TSN system receives the second clock synchronization message sent by the device-side TSN converter in the fusion system.
[0064] The network-side TSN converter NW-TT can send the second clock synchronization message to the network device on the network side of the connected TSN system, but will not send the second clock synchronization message to the network device on the device side of the TSN system, so that the network device on the device side of the TSN system receives the second clock synchronization message sent by the network-side TSN converter in the fusion system.
[0065] Embodiment 2
[0066] Figure 4A This is a flowchart of a clock synchronization method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment adds the technical feature of "receiving a third clock synchronization message sent by the master clock of the TSN system when the master clock of the TSN system is not faulty; performing clock synchronization according to the second clock synchronization message and the third clock synchronization message". This embodiment can be applied to network equipment of the TSN system in a 5G-TSN fusion system, and performs clock synchronization when the master clock of the TSN system is not faulty.
[0067] like Figure 4A As shown, the method includes:
[0068] S210. Receive a second clock synchronization message sent by the TSN converter in the fusion system; wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system.
[0069] S220: When the master clock of the TSN system is not faulty, receive a third clock synchronization message sent by the master clock of the TSN system.
[0070] The third clock synchronization message may be understood as a message containing the master clock information of the TSN system and capable of realizing clock synchronization of the TSN system.
[0071] Exemplarily, in a 5G-TSN fusion system, a master clock is configured in the 5G system and the TSN system respectively, and a clock source is configured for the master clock, and the master clocks of the 5G system and the TSN system are independent of each other. After the 5G-TSN fusion system is powered on, each network element device in the 5G system adjusts the local clock value according to the first clock synchronization message sent by the master clock of the 5G system based on the 5G clock synchronization protocol adopted by the 5G system, so as to synchronize with the master clock of the 5G system.
[0072] like Figure 2 As shown, when the master clock of the TSN system is not faulty, the master clock of the TSN system sends a third clock synchronization message to each network device in the TSN system. Therefore, in addition to receiving the second clock synchronization message sent by the TSN converter, each network device in the TSN system can also receive the third clock synchronization message sent by the master clock of the TSN system.
[0073] In the TSN system, each network device can perform clock synchronization based on the TSN clock synchronization protocol adopted by the TSN system and the clock value carried in the third clock synchronization message sent by the master clock of the TSN system, so that the local clock of the network device is synchronized with the master clock of the TSN system.
[0074] S230. Perform clock synchronization according to the second clock synchronization message and the third clock synchronization message.
[0075] Specifically, the second clock synchronization message from the 5G system and the third clock synchronization message from the TSN system both follow the clock synchronization protocol used by the TSN system, wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the information carried in the first clock synchronization message sent by the master clock of the 5G system. However, the clock information contained in the two is different, so the local clock value must be adjusted according to the second clock synchronization message and the third clock synchronization message to achieve clock synchronization.
[0076] Exemplarily, the method of performing clock synchronization according to the second clock synchronization message and the third clock synchronization message may include: performing clock synchronization once according to the clock values carried in the second clock synchronization message and the third clock synchronization message respectively; or performing clock synchronization after the clock values carried in the second clock synchronization message and the third clock synchronization message are processed based on a merging algorithm. When performing clock synchronization, the time delay between the network device in the TSN system and the connected TSN converter may be further considered to make the clock synchronization more accurate. It can be understood that the specific execution steps for performing clock synchronization based on the clock value carried by the second clock synchronization message, the clock value carried by the third clock synchronization message, and the merged value of the clock value carried in the third clock synchronization message are the same, and the embodiment of the present invention does not limit the method for adjusting the local clock value of the network device and the method for measuring the path delay between the network device and the connected TSN converter.
[0077] The technical solution of the embodiment of the present invention is to receive, through the network equipment of the TSN system in the 5G-TSN fusion system, a second clock synchronization message sent by the TSN converter in the fusion system; wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system; when the master clock of the TSN system is not faulty, receive the third clock synchronization message sent by the master clock of the TSN system; perform clock synchronization according to the second clock synchronization message and the third clock synchronization message, thereby improving the reliability of clock synchronization and the accuracy of clock synchronization.
[0078] Optionally, performing clock synchronization according to the second clock synchronization message and the third clock synchronization message includes:
[0079] If the second clock synchronization message and the third clock synchronization message arrive at the network device at the same time, perform clock synchronization after merging the clock values carried in the second clock synchronization message and the third clock synchronization message;
[0080] If the second clock synchronization message and the third clock synchronization message do not arrive at the network device at the same time, clock synchronization is performed in sequence based on the arrival order of the second clock synchronization message and the third clock synchronization message.
[0081] Specifically, in addition to being able to receive the second clock synchronization message sent by the TSN converter in the 5G system, the network equipment in the TSN system can also receive the third clock synchronization message sent by the master clock of the TSN system when the TSN system is not faulty. However, the second clock synchronization message from the TSN converter of the 5G system and the third clock synchronization message from the master clock of the TSN system may arrive at the network equipment in the TSN system at different times. The two clock synchronization messages may arrive at the network equipment at the same time or at different times.
[0082] For the second clock synchronization message and the third clock synchronization message that arrive at the network device at the same time, the clock values carried in the second clock synchronization message and the third clock synchronization message are merged and then clock synchronization is performed; for the second clock synchronization message and the third clock synchronization message that do not arrive at the network device at the same time, there is no need to perform merging processing, and clock synchronization can be performed in sequence according to the order of arrival.
[0083] Optionally, the performing clock synchronization after merging the clock values carried in the second clock synchronization message and the third clock synchronization message includes:
[0084] determining a first path delay between the network device and a master clock of the TSN system and a second path delay between the network device and the TSN converter;
[0085] Compensating the clock value carried in the third clock synchronization message according to the first path delay to obtain a first corrected clock value;
[0086] Compensating the clock value carried in the second clock synchronization message according to the second path delay to obtain a second corrected clock value;
[0087] Merging the first corrected clock value and the second corrected clock value to obtain a target clock value;
[0088] The local clock value of the network device is adjusted according to the target clock value.
[0089] Specifically, Figure 4B This is a timing diagram of the clock synchronization of the network devices of the TSN system when the clock synchronization messages of different systems arrive at the network devices at the same time. Because there is a delay between the network device and the master clock of the TSN system, there is also a delay between the network device and the TSN converter. Therefore, if Figure 4BAs shown, if the second clock synchronization message and the third clock synchronization message reach the network device at the same time, the first path delay between the network device and the master clock of the TSN system and the second path delay between the network device and the corresponding TSN converter (DS-TT / NW-TT) can be determined. The clock value carried in the clock synchronization message is compensated according to the path delay to obtain a corrected clock value, the corrected clock values corresponding to the clock values carried by the clock synchronization messages of the two different systems are merged to obtain a target clock value, and the local clock value of the network device is adjusted according to the target clock value.
[0090] Exemplarily, a method for determining the first path delay between the network device and the master clock of the TSN system may be: when the network device receives the third clock synchronization message sent by the master clock of the TSN system, the first path delay between the network device and the master clock of the TSN system is measured according to the delay measurement method specified by the clock synchronization protocol adopted by the TSN system.
[0091] The method for determining the second path delay between the network device and the TSN converter can be: when the network device receives the second clock synchronization message sent by the TSN converter of the 5G system, the second path delay between the network device and the corresponding TSN converter (DS-TT / NW-TT) is measured according to the delay measurement method specified by the clock synchronization protocol adopted by the TSN system.
[0092] Exemplarily, a method for merging the corrected clock values corresponding to the clock values carried by clock synchronization messages of two different systems to obtain the target clock value may be to determine the average value of the corrected clock values corresponding to the clock values carried in the two clock synchronization messages as the target clock value; or to determine the corrected clock value corresponding to the clock value carried by the clock synchronization message with a higher clock frequency in the two clock synchronization messages as the target clock value; or to determine the corrected clock value corresponding to the clock value carried by the clock synchronization message with a higher clock level in the two clock synchronization messages as the target clock value. The embodiment of the present invention does not limit the method for merging clock values.
[0093] Optionally, the performing clock synchronization in sequence based on the arrival order of the second clock synchronization message and the third clock synchronization message includes:
[0094] If the third clock synchronization message arrives at the network device before the second clock synchronization message, clock synchronization is first performed based on the third clock synchronization message, and then clock synchronization is performed based on the second clock synchronization message;
[0095] If the second clock synchronization message arrives at the network device before the third clock synchronization message, clock synchronization is first performed based on the second clock synchronization message, and then clock synchronization is performed based on the third clock synchronization message.
[0096] Specifically, if the second clock synchronization message and the third clock synchronization message do not arrive at the network device of the TSN system at the same time, synchronization is performed in sequence according to the order in which the clock synchronization messages arrive at the network devices. Clock synchronization is performed once according to the clock synchronization message that arrives at the network device first, and then clock synchronization is performed again according to the clock synchronization message that arrives at the network device later.
[0097] In this embodiment, if the second clock synchronization message and the third clock synchronization message do not arrive at the network device of the TSN system at the same time, the network device will perform two local clock value adjustments successively. Since the faster the synchronization frequency, the higher the clock synchronization accuracy, the accuracy of clock synchronization is further improved.
[0098] For example, Figure 4C This is a timing diagram of clock synchronization of network devices in the TSN system when clock synchronization messages from different systems do not arrive at the network devices at the same time. Figure 4C The case where the second clock synchronization message arrives at the network device before the third clock synchronization message is specifically described. It is easy to understand that the case where the third clock synchronization message arrives at the network device before the second clock synchronization message is similar, and this embodiment will not be described in detail. Figure 4C As shown, the network device on the TSN device side adjusts the local clock value according to the second clock synchronization message sent by DS-TT, and the second path delay between the network device and DS-TT can also be considered; the local clock value is adjusted according to the third clock synchronization message sent by the master clock of the TSN system, and the first path delay between the network device and the master clock of the TSN system can be considered.
[0099] The network device on the TSN network side adjusts the local clock value according to the second clock synchronization message sent by NW-TT, and can also consider the second path delay between the network device and NW-TT. The local clock value is adjusted according to the third clock synchronization message sent by the master clock of the TSN system, and the first path delay between the network device and the master clock of the TSN system can be considered.
[0100] Optionally, the performing clock synchronization based on the second clock synchronization message includes:
[0101] determining a second path delay between the network device and the TSN converter;
[0102] The local clock value of the network device is adjusted according to the second path delay and the clock value carried by the second clock synchronization message.
[0103] Specifically, the method for clock synchronization based on the second clock synchronization message is: when the network device receives the second clock synchronization message sent by the TSN converter of the 5G system, the second path delay between the network device and the corresponding TSN converter (DS-TT / NW-TT) is measured in accordance with the provisions of the IEEE 802.1AS protocol, and the local clock value of the network device is adjusted according to the second path delay and the clock value carried by the second clock synchronization message.
[0104] Exemplarily, the method for adjusting the local clock value of the network device according to the second path delay and the clock value carried by the second clock synchronization message can be: taking the sum of the second path delay and the clock value carried by the second clock synchronization message as the synchronization clock value of the network device, and the network device adjusts the local clock value to the synchronization clock value.
[0105] Optionally, performing clock synchronization based on the third clock synchronization message includes:
[0106] determining a first path delay between the network device and a master clock of the TSN system;
[0107] The local clock value of the network device is adjusted according to the first path delay and the clock value carried by the third clock synchronization message.
[0108] Specifically, the method of performing clock synchronization based on the third clock synchronization message is similar to the method of performing clock synchronization based on the second clock synchronization message. The method of performing clock synchronization based on the third clock synchronization message can be: when the network device receives the third clock synchronization message sent by the master clock of the TSN system, in accordance with the provisions of the IEEE 802.1AS protocol, the first path delay between the network device and the master clock of the TSN system is measured, and the local clock value of the network device is adjusted according to the first path delay and the clock value carried by the third clock synchronization message.
[0109] Exemplarily, the method for adjusting the local clock value of the network device according to the first path delay and the clock value carried by the third clock synchronization message can be: taking the sum of the first path delay and the clock value carried by the third clock synchronization message as the synchronization clock value of the network device, and the network device adjusts the local clock value to the synchronization clock value.
[0110] Embodiment 3
[0111] Figure 5A flowchart of a clock synchronization method provided in Embodiment 1 of the present invention. This embodiment can be applied to a TSN converter in a fusion system of a 5G system and a time-sensitive network TSN system to maintain a clock synchronization function when a master clock of the TSN system fails. The method can be executed by a clock synchronization device, which can be implemented in the form of hardware and / or software. The clock synchronization device can be configured in a TSN converter of a 5G system in a 5G-TSN fusion system.
[0112] like Figure 5 As shown, the method includes:
[0113] S310. When receiving a first clock synchronization message sent by the master clock of the 5G system, generate a second clock synchronization message according to the clock synchronization protocol used by the TSN system and the first clock synchronization message.
[0114] Among them, the first clock synchronization message can be understood as a clock synchronization message sent by the master clock of the 5G system; the second clock synchronization message can be understood as a clock synchronization message generated and sent by the TSN converter in the 5G system. The second clock synchronization message can be obtained by converting the first clock synchronization message through the clock synchronization protocol used by the TSN system. The information carried in the second clock synchronization message and the first clock synchronization message may include: the master clock information of the 5G system; the master clock information of the 5G system may include: clock source, clock level, clock value, clock frequency, clock ID, etc. The clock synchronization domain number in the second clock synchronization message is the same as that of the TSN system.
[0115] Specifically, when the TSN converter (including NW-TT and DS-TT) receives the first clock synchronization message sent by the master clock of the 5G system, in addition to performing clock synchronization processing according to the preset protocol (such as 3GPP R16 / R17), it will also generate a second clock synchronization message based on the clock synchronization protocol used by the TSN system and the information carried in the first clock synchronization message.
[0116] Exemplarily, a method for generating a second clock synchronization message according to the clock synchronization protocol used by the TSN system and the information carried in the first clock synchronization message may be: extracting the first master clock information from the first clock synchronization message, and determining the second clock synchronization message according to the clock synchronization protocol used by the TSN system and the first master clock information.
[0117] S320. Send the second clock synchronization message to the network device in the TSN system, so that the network device performs clock synchronization based on the second clock synchronization message.
[0118] Specifically, the TSN converter sends the second clock synchronization message to the network device connected to the TSN system, so that the network device of the TSN system receives the second clock synchronization message sent by the TSN converter in the fusion system. Therefore, when the master clock of the TSN system fails and cannot provide clock synchronization messages to each network device in the TSN system, the network device can receive the second clock synchronization message sent by the TSN converter, and indirectly synchronize with the 5G system master clock, so as to keep the clock values of each network device in the TSN system strictly synchronized, improve the clock synchronization reliability of the 5G-TSN fusion system, and ensure the certainty and real-time nature of data transmission in the 5G-TSN fusion system. When the master clock of the TSN system does not fail, the network device can perform clock synchronization according to the clock synchronization message sent by the master clock of the TSN system and the second clock synchronization message sent by the TSN converter, so as to improve the accuracy of clock synchronization.
[0119] The technical solution of the embodiment of the present invention is to generate a second clock synchronization message according to the clock synchronization protocol used by the TSN system and the first clock synchronization message when receiving the first clock synchronization message sent by the master clock of the 5G system; send the second clock synchronization message to the network equipment in the TSN system, so that the network equipment performs clock synchronization based on the second clock synchronization message, thereby improving the clock synchronization reliability of the 5G-TSN fusion system when the master clock of the TSN system fails, and ensuring the certainty and real-time nature of the data transmission of the 5G-TSN fusion system; and improving the accuracy of clock synchronization when the master clock of the TSN system does not fail.
[0120] In the 5G-TSN fusion system, the 5G system and the TSN system are respectively configured with master clocks, and the clock sources are configured for the master clocks. For example, the master clock of the TSN system is configured as clock A, and the clock source is a constant temperature crystal oscillator; the master clock of the 5G system is configured as clock B, and the clock source is the Global Positioning System (GPS).
[0121] Specifically, after the 5G-TSN fusion system is powered on, the 5G system and the TSN system are synchronized according to their respective clock synchronization protocols, and the clock synchronization processes of the two are independent of each other.
[0122] The master clock of the 5G system sends the first clock synchronization message to each network element device in the 5G system, including the TSN converter. Based on the 5G clock synchronization protocol adopted by the 5G system, each network element device in the 5G system adjusts the local clock value according to the first clock synchronization message sent by the master clock of the 5G system to achieve synchronization with the master clock of the 5G system. In the 5G system, the clocks of each network element device except DS-TT and NW-TT are synchronized with the master clock of the 5G system itself, and have nothing to do with the master clock of the TSN system.
[0123] Similarly, the master clock of the TSN system sends a third clock synchronization message to each network device and TSN converter in the TSN system. Each network device and each TSN converter in the TSN system adjusts the local clock value according to the third clock synchronization message sent by the master clock of the TSN system based on the TSN clock synchronization protocol adopted by the TSN system, so as to synchronize with the master clock of the TSN system. The clocks of each network device in the TSN system are synchronized with the master clock of the TSN system, and have nothing to do with the master clock of the 5G system.
[0124] In particular, the TSN converter (DS-TT or NW-TT) can support both the clock synchronization mode of the 5G system and the clock synchronization mode of the TSN system. It should be noted that when the clock synchronization message of the TSN system needs to be transmitted through the 5G system, the network equipment of the TSN system processes it according to the 3GPP R16 / R17 standard, and the DS-TT and NW-TT perform the corresponding processing and forwarding functions. The other network element devices of the 5G system only transmit the clock synchronization message of the TSN system, but do not participate in the synchronization.
[0125] Optionally, the TSN converter includes: a network-side TSN converter and a device-side TSN converter;
[0126] The network-side TSN converter is used to send the second clock synchronization message to a network device in the network side of the TSN system;
[0127] The device-side TSN converter is used to send the second clock synchronization message to the network device in the device side of the TSN system.
[0128] Specifically, the 5G system of the 5G-TSN fusion system includes: a network-side TSN converter NW-TT and a device-side TSN converter DS-TT. The network-side TSN converter NW-TT in the TSN system and the 5G system is directly or indirectly connected to the network equipment on the network side of the TSN system; the device-side TSN converter DS-TT in the TSN system and the 5G system is directly or indirectly connected to the network equipment on the device side of the TSN system; the clock synchronization processes of the network equipment on the device side of the TSN system and the network equipment on the network side of the TSN system are independent of each other and do not interfere with each other.
[0129] Therefore, based on the connection relationship between the network device in the TSN system and the converter in the 5G system, the device-side TSN converter DS-TT can send the second clock synchronization message to the network device on the device side of the connected TSN system, but will not send the second clock synchronization message to the network device on the network side of the TSN system.
[0130] The network-side TSN converter NW-TT may send the second clock synchronization message to the network device on the network side of the connected TSN system, but may not send the second clock synchronization message to the network device on the device side of the TSN system.
[0131] Embodiment 4
[0132] Figure 6 This is a schematic diagram of the structure of a clock synchronization device provided in Embodiment 4 of the present invention. The clock synchronization device can be integrated into a network device of a TSN system in a fusion system of a 5G system and a time-sensitive network TSN system. Figure 6 As shown, the device includes: a first message receiving module 410 and a first network device synchronization module 420;
[0133] The first message receiving module 410 is used to receive a second clock synchronization message sent by the TSN converter in the fusion system; wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system;
[0134] The first network device synchronization module 420 is configured to perform clock synchronization according to the second clock synchronization message when a master clock of the TSN system fails.
[0135] Optionally, the network device includes: a network device on the TSN system device side and a network device on the TSN system network side;
[0136] The network device on the TSN system device side is used to receive the second clock synchronization message sent by the device side TSN converter in the fusion system;
[0137] The network device on the network side of the TSN system is used to receive the second clock synchronization message sent by the network side TSN converter in the fusion system.
[0138] Optionally, the device further comprises:
[0139] A second message receiving module, used for receiving a third clock synchronization message sent by the master clock of the TSN system when the master clock of the TSN system is not faulty;
[0140] The second network device synchronization module is used to perform clock synchronization according to the second clock synchronization message and the third clock synchronization message.
[0141] Optionally, the second network device synchronization module includes:
[0142] A first clock synchronization unit, configured to perform clock synchronization after merging the clock values carried in the second clock synchronization message and the third clock synchronization message if the second clock synchronization message and the third clock synchronization message arrive at the network device at the same time;
[0143] The second clock synchronization unit is used to perform clock synchronization in sequence based on the arrival order of the second clock synchronization message and the third clock synchronization message if the second clock synchronization message and the third clock synchronization message do not arrive at the network device at the same time.
[0144] Optionally, the first clock synchronization unit is specifically configured to:
[0145] determining a first path delay between the network device and a master clock of the TSN system and a second path delay between the network device and the TSN converter;
[0146] Compensating the clock value carried in the third clock synchronization message according to the first path delay to obtain a first corrected clock value;
[0147] Compensating the clock value carried in the second clock synchronization message according to the second path delay to obtain a second corrected clock value;
[0148] Merging the second corrected clock value and the second corrected clock value to obtain a target clock value;
[0149] The local clock value of the network device is adjusted according to the target clock value.
[0150] Optionally, the second clock synchronization unit includes:
[0151] A first clock synchronization subunit, configured to first perform clock synchronization based on the third clock synchronization message, and then perform clock synchronization based on the second clock synchronization message, if the third clock synchronization message arrives at the network device before the second clock synchronization message;
[0152] The second clock synchronization subunit is used to perform clock synchronization based on the second clock synchronization message first and then based on the third clock synchronization message if the second clock synchronization message arrives at the network device before the third clock synchronization message.
[0153] Optionally, the first clock synchronization subunit is specifically used to:
[0154] determining a second path delay between the network device and the TSN converter;
[0155] The local clock value of the network device is adjusted according to the second path delay and the clock value carried by the second clock synchronization message.
[0156] Optionally, the second clock synchronization subunit is specifically used to:
[0157] determining a first path delay between the network device and a master clock of the TSN system;
[0158] The local clock value of the network device is adjusted according to the first path delay and the clock value carried by the third clock synchronization message.
[0159] The clock synchronization device provided in the embodiment of the present invention can execute the clock synchronization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0160] Embodiment 5
[0161] Figure 7 This is a schematic diagram of the structure of a clock synchronization device provided in Embodiment 5 of the present invention. The clock synchronization device can be integrated into a TSN converter in a fusion system of a 5G system and a time-sensitive network TSN system. Figure 7 As shown, the device includes: a message generating module 510 and a message sending module 520;
[0162] Among them, the message generation module 510 is used to generate a second clock synchronization message according to the clock synchronization protocol used by the TSN system and the first clock synchronization message when receiving the first clock synchronization message sent by the master clock of the 5G system;
[0163] The message sending module 520 is used to send the second clock synchronization message to the network device in the TSN system, so that the network device performs clock synchronization based on the second clock synchronization message.
[0164] Optionally, the TSN converter includes: a network-side TSN converter and a device-side TSN converter;
[0165] Accordingly, the TSN converter includes: a network-side TSN converter and a device-side TSN converter;
[0166] The network-side TSN converter is used to send the second clock synchronization message to a network device in the network side of the TSN system;
[0167] The device-side TSN converter is used to send the second clock synchronization message to the network device in the device side of the TSN system.
[0168] The clock synchronization device provided in the embodiment of the present invention can execute the clock synchronization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0169] Embodiment 6
[0170] Figure 8 A schematic diagram of a network device 10 that can be used to implement an embodiment of the present invention is shown. The network device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The network device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0171] like Figure 8As shown, the network device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the network device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0172] A number of components in the network device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the network device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0173] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 performs the various methods and processes described above, such as a clock synchronization method: receiving a second clock synchronization message sent by a TSN converter in the fusion system; wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system; in the event of a failure of the master clock of the TSN system, clock synchronization is performed according to the second clock synchronization message.
[0174] Embodiment 7
[0175] Fig. 9A schematic diagram of a converter 20 that can be used to implement an embodiment of the present invention is shown. The network device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The network device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0176] like Fig. 9 As shown, the converter 20 includes at least one processor 21, and a memory connected to the at least one processor 21, such as a read-only memory (ROM) 22, a random access memory (RAM) 23, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 21 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 22 or the computer program loaded from the storage unit 28 to the random access memory (RAM) 23. In the RAM 23, various programs and data required for the operation of the converter 20 can also be stored. The processor 21, ROM 22 and RAM 23 are connected to each other through a bus 24. An input / output (I / O) interface 25 is also connected to the bus 24.
[0177] A number of components in the converter 20 are connected to the I / O interface 25, including: an input unit 26, such as an input port, etc.; an output unit 27, such as various types of output ports, etc.; a storage unit 28, such as a magnetic disk, an optical disk, etc.; and a communication unit 29, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 29 allows the converter 20 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0178] The processor 21 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 21 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 21 performs the various methods and processes described above, such as a clock synchronization method: upon receiving a first clock synchronization message sent by the master clock of the 5G system, a second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message; the second clock synchronization message is sent to the network device in the TSN system, so that the network device performs clock synchronization based on the second clock synchronization message.
[0179] In some embodiments, the clock synchronization method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18 / 28. In some embodiments, part or all of the computer program can be loaded and / or installed on the network device 10 / converter 20 via the ROM 12 / 22 and / or the communication unit 19 / 29. When the computer program is loaded into the RAM 13 and executed by the processor 11 / 21, one or more steps of any clock synchronization method described above can be performed. Alternatively, in other embodiments, the processor 11 / 21 can be configured to perform any clock synchronization method by any other appropriate means (e.g., by means of firmware).
[0180] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0181] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0182] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.
[0183] To provide interaction with a user, the systems and techniques described herein may be implemented on a network device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the network device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0184] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0185] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0186] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0187] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A clock synchronization method, characterized in that: A network device of a TSN system in a fusion system of a 5G system and a time-sensitive network TSN system, the method comprising: Receiving a second clock synchronization message sent by the TSN converter in the fusion system; wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system; In the event that a master clock of the TSN system fails, performing clock synchronization according to the second clock synchronization message; When the master clock of the TSN system does not fail, receiving a third clock synchronization message sent by the master clock of the TSN system; performing clock synchronization according to the second clock synchronization message and the third clock synchronization message; The performing clock synchronization according to the second clock synchronization message and the third clock synchronization message includes: If the second clock synchronization message and the third clock synchronization message arrive at the network device at the same time, perform clock synchronization after merging the clock values carried in the second clock synchronization message and the third clock synchronization message; If the second clock synchronization message and the third clock synchronization message do not arrive at the network device at the same time, clock synchronization is performed in sequence based on the arrival order of the second clock synchronization message and the third clock synchronization message.
2. The method according to claim 1, characterized in that: The network equipment includes: a network equipment on the TSN system equipment side and a network equipment on the TSN system network side; The network device on the TSN system device side is used to receive the second clock synchronization message sent by the device side TSN converter in the fusion system; The network device on the network side of the TSN system is used to receive the second clock synchronization message sent by the network side TSN converter in the fusion system.
3. The method according to claim 1, characterized in that: The performing clock synchronization after merging the clock values carried in the second clock synchronization message and the third clock synchronization message includes: determining a first path delay between the network device and a master clock of the TSN system and a second path delay between the network device and the TSN converter; Compensating the clock value carried in the third clock synchronization message according to the first path delay to obtain a first corrected clock value; Compensating the clock value carried in the second clock synchronization message according to the second path delay to obtain a second corrected clock value; Merging the first corrected clock value and the second corrected clock value to obtain a target clock value; The local clock value of the network device is adjusted according to the target clock value.
4. The method according to claim 1, characterized in that: The performing clock synchronization in sequence based on the arrival order of the second clock synchronization message and the third clock synchronization message includes: If the third clock synchronization message arrives at the network device before the second clock synchronization message, clock synchronization is first performed based on the third clock synchronization message, and then clock synchronization is performed based on the second clock synchronization message; If the second clock synchronization message arrives at the network device before the third clock synchronization message, clock synchronization is first performed based on the second clock synchronization message, and then clock synchronization is performed based on the third clock synchronization message.
5. The method according to claim 4, characterized in that The performing clock synchronization based on the second clock synchronization message includes: determining a second path delay between the network device and the TSN converter; The local clock value of the network device is adjusted according to the second path delay and the clock value carried by the second clock synchronization message.
6. The method according to claim 4, characterized in that The performing clock synchronization based on the third clock synchronization message includes: determining a first path delay between the network device and a master clock of the TSN system; The local clock value of the network device is adjusted according to the first path delay and the clock value carried by the third clock synchronization message.
7. A clock synchronization method, characterized in that: A TSN converter applied to a fusion system of a 5G system and a time-sensitive network TSN system, the method comprising: Upon receiving a first clock synchronization message sent by the master clock of the 5G system, generating a second clock synchronization message according to the clock synchronization protocol used by the TSN system and the first clock synchronization message; Sending the second clock synchronization message to the network device in the TSN system, so that the network device performs clock synchronization based on the second clock synchronization message when the master clock of the TSN system fails; receiving the third clock synchronization message sent by the master clock of the TSN system when the master clock of the TSN system does not fail, and performing clock synchronization according to the second clock synchronization message and the third clock synchronization message; The performing clock synchronization according to the second clock synchronization message and the third clock synchronization message includes: If the second clock synchronization message and the third clock synchronization message arrive at the network device at the same time, perform clock synchronization after merging the clock values carried in the second clock synchronization message and the third clock synchronization message; If the second clock synchronization message and the third clock synchronization message do not arrive at the network device at the same time, clock synchronization is performed in sequence based on the arrival order of the second clock synchronization message and the third clock synchronization message.
8. The method according to claim 7, characterized in that The TSN converter includes: a network-side TSN converter and a device-side TSN converter; The network-side TSN converter is used to send the second clock synchronization message to a network device in the network side of the TSN system; The device-side TSN converter is used to send the second clock synchronization message to the network device in the device side of the TSN system.
9. A clock synchronization device, characterized in that: A network device of the TSN system integrated in a fusion system of a 5G system and a time-sensitive network TSN system, the device comprising: A first message receiving module, used to receive a second clock synchronization message sent by the TSN converter in the fusion system; wherein the second clock synchronization message is generated according to the clock synchronization protocol used by the TSN system and the first clock synchronization message sent by the master clock of the 5G system; A first network device synchronization module, configured to perform clock synchronization according to the second clock synchronization message when a master clock of the TSN system fails; A second message receiving module, used for receiving a third clock synchronization message sent by the master clock of the TSN system when the master clock of the TSN system is not faulty; A second network device synchronization module, configured to perform clock synchronization according to the second clock synchronization message and the third clock synchronization message; The second network device synchronization module includes: A first clock synchronization unit, configured to perform clock synchronization after merging the clock values carried in the second clock synchronization message and the third clock synchronization message if the second clock synchronization message and the third clock synchronization message arrive at the network device at the same time; The second clock synchronization unit is used to perform clock synchronization in sequence based on the arrival order of the second clock synchronization message and the third clock synchronization message if the second clock synchronization message and the third clock synchronization message do not arrive at the network device at the same time.
10. A clock synchronization device, characterized in that: The TSN converter integrated into the fusion system of 5G system and time-sensitive network TSN system includes: A message generation module, configured to generate a second clock synchronization message according to the clock synchronization protocol used by the TSN system and the first clock synchronization message when receiving a first clock synchronization message sent by the master clock of the 5G system; A message sending module, configured to send the second clock synchronization message to the network device in the TSN system, so that the network device performs clock synchronization based on the second clock synchronization message when the master clock of the TSN system fails; when the master clock of the TSN system does not fail, receive the third clock synchronization message sent by the master clock of the TSN system, and perform clock synchronization according to the second clock synchronization message and the third clock synchronization message; The performing clock synchronization according to the second clock synchronization message and the third clock synchronization message includes: If the second clock synchronization message and the third clock synchronization message arrive at the network device at the same time, perform clock synchronization after merging the clock values carried in the second clock synchronization message and the third clock synchronization message; If the second clock synchronization message and the third clock synchronization message do not arrive at the network device at the same time, clock synchronization is performed in sequence based on the arrival order of the second clock synchronization message and the third clock synchronization message.
11. A network device, characterized in that: The network device is arranged in the TSN system in the fusion system of the 5G system and the time-sensitive network TSN system, and the network device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the clock synchronization method according to any one of claims 1 to 6.
12. A converter, characterized in that: The converter is arranged in the 5G system in a fusion system of the 5G system and the time sensitive network TSN system, and the converter comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the clock synchronization method according to any one of claims 7 to 8.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the clock synchronization method according to any one of claims 1 to 8 when executed.
Citation Information
Patent Citations
Time synchronization method and apparatus
WO2022027666A1