Cross-5G system TSN network time synchronization device and method

By designing a cross-5G system TSN network time synchronization device in the 5G system, and using a dual-link receiving unit and a data parsing and forwarding unit to correct the gPTP synchronization message, the problems of time synchronization accuracy and pace consistency in the industrial production network are solved. Improved product yield and production efficiency.

CN118748832AInactive Publication Date: 2024-10-08INSPUR COMM TECH CO LTD

Patent Information

Application Number
CN202410891834.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In 5G systems, industrial production networks have high requirements for time synchronization, and it is difficult to achieve accurate time synchronization with existing technology, resulting in a decrease in product yield and production efficiency. Especially when multiple production lines work together, it is difficult to ensure step consistency.

Method used

A cross-5G system TSN network time synchronization device is designed, including a dual-link receiving unit, a data analysis and forwarding unit and a TSN data exchange unit. By receiving and correcting gPTP synchronization messages, the residence time is calculated, and the corrected message Used for time synchronization of downstream TSN terminals to ensure synchronization of upstream and downstream clocks.

Benefits of technology

It achieves precise time synchronization, meets the instruction delay requirements in industrial production networks, improves product yield and production efficiency, and ensures step consistency in collaborative work of multiple production lines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748832A_ABST
    Figure CN118748832A_ABST
Patent Text Reader

Abstract

The invention provides a TSN network time synchronization device and method crossing a 5G system. The device comprises a double-link receiving unit used for receiving a gPTP synchronization message and a corresponding gPTP following message from an upstream TSN network master clock, and forwarding the gPTP synchronization message and the corresponding gPTP following message to a data analysis forwarding unit; the data analysis and forwarding unit is used for receiving the gPTP synchronization message and the gPTP following message issued by the double-link receiving unit; determining the residence time of the gPTP synchronization message in a 5G system; adding the residence time into the gPTP following message, and deleting a first timestamp in the gPTP following message; the corrected gPTP following message is sent to a TSN data exchange unit; and the TSN data exchange unit is used for issuing the corrected gPTP following message to a downstream TSN terminal, so that the downstream TSN terminal realizes time synchronization with the upstream TSN network master clock. According to the invention, time synchronization between the upstream TSN network master clock and the downstream TSN terminal can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of time synchronization technology, and in particular to a TSN network time synchronization device and method across 5G systems. Background Art

[0002] Time-Sensitive Networking (TSN) is a set of IEEE802.1 standards that use Ethernet wired to achieve deterministic network transmission. The fifth generation of mobile communications, 5G technology, can effectively solve the problems of lack of mobility and poor scalability in wired networks, and will become an indispensable aspect of large-scale industrial communications in the future. The 3rd Generation Partnership Project, 3GPP, is committed to making 5G real-time functions suitable for industrial applications. A key aspect is seamless integration with TSN to establish a converged 5G-TSN network.

[0003] In some application scenarios in industrial production networks, the latency requirements for instructions are extremely high. If the instructions cannot be issued and executed within a deterministic time, the product yield and production efficiency may decrease. When multiple production lines work together, they also need to keep pace. Therefore, when 5G serves such communication scenarios in industrial production networks, it needs to support high-precision time synchronization capabilities. Summary of the invention

[0004] In response to at least one of the above technical problems, an embodiment of the present invention provides a TSN network time synchronization device and method across 5G systems.

[0005] In a first aspect, a TSN network time synchronization device across 5G systems provided by an embodiment of the present invention includes:

[0006] A dual-link receiving unit, used to receive a gPTP synchronization message and a corresponding gPTP follow-up message from an upstream TSN network master clock, and forward them to a data parsing and forwarding unit; wherein the gPTP follow-up message records a first timestamp of the gPTP synchronization message entering the 5G system;

[0007] The data parsing and forwarding unit is used to receive the gPTP synchronization message and the gPTP follow-up message sent by the dual-link receiving unit; record the timestamp of the received gPTP synchronization message as the second timestamp of the gPTP synchronization message transferred out of the 5G system; determine the residence time of the gPTP synchronization message in the 5G system according to the time difference between the second timestamp and the first timestamp; add the residence time to the gPTP follow-up message, delete the first timestamp in the gPTP follow-up message, so as to realize the correction of the gPTP follow-up message; send the corrected gPTP follow-up message to the TSN data exchange unit;

[0008] The TSN data exchange unit is used to send the modified gPTP follow-up message to the downstream TSN terminal so that the downstream TSN terminal can achieve time synchronization with the upstream TSN network master clock.

[0009] In one embodiment, the dual-link receiving unit has a first 5G module and a second 5G module;

[0010] The TSN data exchange unit has a first Ethernet inlet and a second Ethernet inlet;

[0011] The data parsing and forwarding unit provides a first bridge service and a second bridge service; the first bridge service has a first 5G inlet and a first Ethernet outlet, and the second bridge service has a second 5G inlet and a second Ethernet outlet; the first 5G inlet is connected to the first 5G module, and the second 5G inlet is connected to the second 5G module; the first Ethernet outlet is connected to the first Ethernet inlet of the TSN data exchange unit, and the second Ethernet outlet is connected to the second Ethernet inlet of the TSN data exchange unit.

[0012] In one embodiment, each 5G module is used to: receive a gPTP synchronization message and a corresponding gPTP follow-up message, and send the received gPTP synchronization message and the gPTP follow-up message to a corresponding bridge service;

[0013] Each bridge service is used to: record the timestamp of the received gPTP synchronization message as the second timestamp; determine the residence time of the gPTP synchronization message in the 5G system according to the time difference between the second timestamp and the first timestamp; add the residence time to the gPTP follow-up message, delete the first timestamp in the gPTP follow-up message, so as to modify the gPTP follow-up message; send the modified gPTP follow-up message to the TSN data exchange unit;

[0014] The TSN data exchange unit is used to: receive two corrected gPTP follow-up messages through two Ethernet entrances; calibrate the port clock of each Ethernet entrance with the upstream TSN network master clock according to the corrected gPTP follow-up message received by the Ethernet entrance; select the TSN clock source port according to the port status of the two Ethernet entrances and the fluctuation range of the calibration value; synchronize the system clock of the TSN data exchange unit with the upstream TSN network master clock using the TSN clock source port; send the corrected gPTP follow-up message to the downstream TSN terminal; wherein the calibration value is the deviation between the converged port clock and the upstream TSN network master clock.

[0015] In one embodiment, each bridge service is used to: calculate the time difference between the second timestamp and the first timestamp multiple times, and use the average value of multiple time differences corresponding to the multiple calculations as the residence time.

[0016] In one embodiment, before sending the modified gPTP follow-up message to the downstream TSN terminal, the TSN data exchange unit is also used to determine whether the downstream TSN terminal supports the 802.1.AS protocol. If so, the modified gPTP follow-up message is sent to the downstream TSN terminal.

[0017] In one embodiment, the TSN data exchange unit is specifically used to: if the port states of the two Ethernet inlets are normal, use the Ethernet inlet with a smaller fluctuation range of the calibration value as the TSN clock source port.

[0018] In one embodiment, the TSN data exchange unit is specifically used to: if one Ethernet inlet is abnormal, use another normal Ethernet inlet as a TSN clock source port.

[0019] In one embodiment, the hardware method for maintaining 5G core network time synchronization between the dual-link receiving unit and the data analysis and forwarding unit and the 5G base station is as follows: the dual-link receiving unit is connected to the 5G base station, and an FPGA unit and a phase-locked loop unit are arranged between the dual-link receiving unit and the data analysis and forwarding unit. The dual-link receiving unit outputs a time signal based on the B code protocol to the FPGA unit, and the FPGA unit is used to convert the time signal based on the B code protocol into a time signal based on the 1PPS+TOD protocol and output it to the phase-locked loop unit. The phase-locked loop unit performs frequency locking processing on the time signal based on the 1PPS+TOD protocol and outputs the time signal as the reference clock of the data analysis and forwarding unit.

[0020] In one embodiment, each 5G module is also used to: receive business messages sent by the TSN converter on the network side, and send the business messages to the corresponding bridge service; each bridge service is also used to: send the received business messages to the TSN data exchange unit; the TSN data exchange unit is also used to: receive two business messages through two Ethernet entrances, and based on whether the two business messages belong to the same message, if so, delete one business message to eliminate duplicate data, and send the business messages that have not been deleted to the downstream TSN terminal.

[0021] According to a second aspect, a TSN network time synchronization method across 5G systems provided by an embodiment of the present invention is implemented based on the device provided by the first aspect, and the method includes:

[0022] The gPTP synchronization message and the corresponding gPTP follow-up message from the upstream TSN network master clock are received through the dual-link receiving unit, and forwarded to the data parsing and forwarding unit; wherein the gPTP follow-up message records the first timestamp of the gPTP synchronization message entering the 5G system;

[0023] Receive the gPTP synchronization message and gPTP follow-up message sent by the dual-link receiving unit through the data parsing and forwarding unit; record the timestamp of the received gPTP synchronization message as the second timestamp of the gPTP synchronization message transferred out of the 5G system; determine the residence time of the gPTP synchronization message in the 5G system according to the time difference between the second timestamp and the first timestamp; add the residence time to the gPTP follow-up message, and delete the first timestamp in the gPTP follow-up message to realize the correction of the gPTP follow-up message; send the corrected gPTP follow-up message to the TSN data exchange unit;

[0024] The modified gPTP follow-up message is sent to the downstream TSN terminal through the TSN data exchange unit, so that the downstream TSN terminal can achieve time synchronization with the upstream TSN network master clock.

[0025] The TSN network time synchronization device and method provided by the embodiment of the present invention have the following effects: the upstream TSN network master clock will send a gPTP synchronization message, and the gPTP synchronization message will arrive at the dual-link receiving unit. After the upstream TSN network master clock sends the gPTP synchronization message, it will immediately send the corresponding gPTP follow-up message, and the timestamp of the upstream TSN network master clock sending the gPTP synchronization message will be recorded in the gPTP follow-up message, which is the first timestamp of the gPTP synchronization message entering the 5G system. The gPTP follow-up message will also arrive at the dual-link receiving unit. When the dual-link receiving unit receives the gPTP synchronization message, it will forward the message to the data parsing forwarding unit, and when it receives the gPTP follow-up message, it will forward the gPTP follow-up message to the data parsing forwarding unit. When the data parsing forwarding unit receives the gPTP synchronization message, it will record the timestamp of the received gPTP synchronization message, that is, the second timestamp of the gPTP synchronization message transferring out of the 5G system. When the data parsing and forwarding unit receives the gPTP follow-up message, it can obtain the first timestamp in the gPTP follow-up message, and then calculate the time difference between the second timestamp and the first timestamp, so as to know the residence time of the gPTP synchronization message in the 5G system based on the time difference. The residence time pair is added to the gPTP synchronization message, and the relevant information of the first timestamp recorded in the gPTP follow-up message is deleted, so as to realize the correction of the gPTP follow-up message, and then the corrected gPTP follow-up message is sent to the data exchange unit, and then sent to the downstream TSN terminal through the data exchange unit, so that the downstream TSN terminal performs time synchronization according to the corrected gPTP follow-up message. At this point, the time synchronization between the upstream TSN network master clock and the downstream TSN terminal is realized. Since the embodiment of the present invention can realize accurate time synchronization, it meets the delay requirements of instructions in certain application scenarios in the industrial production network, and improves product yield and production efficiency. When multiple production lines work together, it can also ensure that they are in step. It is very suitable for application in industrial production scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of an application scenario of a TSN network time synchronization device across 5G systems in an embodiment of the present invention;

[0027] Figure 2 This is a structural block diagram of a TSN network time synchronization device across 5G systems in one embodiment of the present invention;

[0028] Figure 3 This is a schematic diagram of port mapping of three units in a TSN network time synchronization device across 5G systems in one embodiment of the present invention;

[0029] Figure 4 It is a schematic diagram of hardware connection of a dual-link receiving unit and a data parsing and forwarding unit in one embodiment of the present invention;

[0030] Figure 5 The figure is a flow chart of a TSN network time synchronization method across 5G systems in one embodiment of the present invention. DETAILED DESCRIPTION

[0031] Clock synchronization refers to the process of limiting the deviation between the clock of the device in the system and a specific time information source within a certain range. It is a particularly important technology in distributed systems. Its purpose is to establish a global time concept with predefined accuracy by ensuring a limited maximum offset between any two nodes. In TSN industrial networks, deterministic scheduling and resource management are inseparable from clock synchronization, requiring all nodes in the network to have a unified time scale. The 3GPP standard and the IEEE standard have conducted in-depth analysis on the integration of 5G and TSN respectively. It is feasible to integrate 5G with TSN as a TSN logical bridge. The TSN logical bridge hides the complexity of 5G by using dedicated TSN converters, achieving seamless integration of 5G and TSN. These converters provide TSN networks with interfaces that meet TSN requirements, and the key feature is to support IEEE802.1AS general precision time protocol synchronization. General Precision Time Protocol is gPTP.

[0032] See also Figure 1 , there is a 5G system between the upstream TSN network master clock and the downstream TSN terminal. Therefore, in the process of using the upstream TSN network master clock to synchronize the time of the downstream TSN terminal, it is necessary to cross the 5G system. The 5G system involves the clock source of the 5G system, namely the 5G GM, the user management module, namely the UPF, the base station, namely the gNB, the 5G-related modules in the user equipment, and the device-side TSN converter, namely the DS-TT. The UPF is connected to the upstream TSN network master clock. The UPF has a TSN converter, namely the NW-TT, and the DS-TT is connected to the downstream TSN terminal. It can be seen that the NW-TT and DS-TT introduced by the 5G system add more uncertainty to time synchronization. Unlike the wired connection of the TSN bridge, the DS-TT is wirelessly connected to the NW-TT, so the frequency offset between the DS-TT and the NW-TT cannot be accurately calculated for the gPTP message.

[0033] To this end, in a first aspect, an embodiment of the present invention provides a TSN network time synchronization device across 5G systems, see Figure 2 ,include:

[0034] A dual-link receiving unit, used to receive a gPTP synchronization message and a corresponding gPTP follow-up message from an upstream TSN network master clock, and forward them to a data parsing and forwarding unit; wherein the gPTP follow-up message records a first timestamp of the gPTP synchronization message entering the 5G system;

[0035] The data parsing and forwarding unit is used to receive the gPTP synchronization message and the gPTP follow-up message sent by the dual-link receiving unit; record the timestamp of the received gPTP synchronization message as the second timestamp of the gPTP synchronization message transferred out of the 5G system; determine the residence time of the gPTP synchronization message in the 5G system according to the time difference between the second timestamp and the first timestamp; add the residence time to the gPTP follow-up message, delete the first timestamp in the gPTP follow-up message, so as to realize the correction of the gPTP follow-up message; send the corrected gPTP follow-up message to the TSN data exchange unit;

[0036] The TSN data exchange unit is used to send the modified gPTP follow-up message to the downstream TSN terminal so that the downstream TSN terminal can achieve time synchronization with the upstream TSN network master clock.

[0037] Among them, the TSN network time synchronization device across 5G systems is equivalent to Figure 1 In DS-TT+UE, the dual-link receiving unit is equivalent to UE, and the data parsing and forwarding unit + TSN data exchange unit is equivalent to DS-TT.

[0038] Among them, the upstream TSN network master clock will send a gPTP synchronization message, and the gPTP synchronization message will reach the dual-link receiving unit after passing through UPF and gNB. When the upstream TSN network master clock sends a gPTP synchronization message, it will immediately send the corresponding gPTP follow-up message. The gPTP follow-up message records the timestamp of the upstream TSN network master clock sending the gPTP synchronization message, which is the first timestamp of the gPTP synchronization message entering the 5G system. The gPTP follow-up message will also pass through UPF and gNB to reach the dual-link receiving unit.

[0039] Among them, when the dual-link receiving unit receives the gPTP synchronization message, it will forward the message to the data analysis and forwarding unit, and when it receives the gPTP follow-up message, it will forward the gPTP follow-up message to the data analysis and forwarding unit.

[0040] Among them, when the data parsing and forwarding unit receives the gPTP synchronization message, it will record the timestamp of the received gPTP synchronization message, that is, the second timestamp of the gPTP synchronization message transferred out of the 5G system. When the data parsing and forwarding unit receives the gPTP follow-up message, it can obtain the first timestamp in the gPTP follow-up message, and then calculate the time difference between the second timestamp and the first timestamp, so as to know the residence time of the gPTP synchronization message in the 5G system based on the time difference. There is a special field preset in the gPTP follow-up message, for example, the correctionFeild field, and the residence time is added to this field, for example, the residence time and the reference time are added to obtain the calibration time. Then the relevant information of the first timestamp recorded in the gPTP follow-up message is deleted, so as to realize the correction of the gPTP follow-up message, and then the corrected gPTP follow-up message is sent to the data exchange unit, and then sent to the downstream TSN terminal through the data exchange unit, so that the downstream TSN terminal performs time synchronization according to the corrected gPTP follow-up message. At this point, the time synchronization between the upstream TSN network master clock and the downstream TSN terminal is realized.

[0041] Among them, in order to provide higher bandwidth and forwarding efficiency, the data parsing and forwarding unit can be implemented through the VPP framework. Due to the uncertainty of 5G link transmission messages, two bridge services are set up to ensure stable delivery to downstream terminals. The first bridge service can work in P2P-TC mode, and the second bridge service works in P2P-BC mode.

[0042] In one embodiment, see Figure 3 The dual-link receiving unit has a first 5G module, namely 5G module 1, and a second 5G module, namely 5G module 2; the TSN data exchange unit has a first Ethernet inlet, namely eth3, a second Ethernet inlet, namely eth4, and an Ethernet outlet eth5; the data parsing and forwarding unit provides a first bridge service, namely br-lan1 and a second bridge service, namely br-lan2; the first bridge service has a first 5G inlet, namely 5g1, and a first Ethernet outlet, namely eth1, and the second bridge service has a second 5G inlet, namely 5g2, and a second Ethernet outlet, namely eth2; the first 5G inlet is connected to the first 5G module, and the second 5G inlet is connected to the second 5G module; the first Ethernet outlet is connected to the first Ethernet inlet of the TSN data exchange unit, and the second Ethernet outlet is connected to the second Ethernet inlet of the TSN data exchange unit.

[0043] Among them, one transmission path is: the first 5G module of the dual-link receiving unit - the first 5G inlet of the data parsing and forwarding unit - the first Ethernet outlet of the data parsing and forwarding unit - the first Ethernet inlet of the TSN data exchange unit. The other transmission path is: the second 5G module of the dual-link receiving unit - the second 5G inlet of the data parsing and forwarding unit - the second Ethernet outlet of the data parsing and forwarding unit - the second Ethernet inlet of the TSN data exchange unit.

[0044] It can be seen that the use of a dual-path redundant transmission mechanism can prevent network service interruption and data loss caused by network failures, packet loss and other anomalies.

[0045] Based on the above dual-path redundant transmission mechanism, in one embodiment, each 5G module is used to: receive a gPTP synchronization message and a corresponding gPTP follow-up message, and send the received gPTP synchronization message and the gPTP follow-up message to the corresponding bridge service;

[0046] Each bridge service is used to: record the timestamp of the received gPTP synchronization message as the second timestamp; determine the residence time of the gPTP synchronization message in the 5G system according to the time difference between the second timestamp and the first timestamp; add the residence time to the gPTP follow-up message, delete the first timestamp in the gPTP follow-up message, so as to modify the gPTP follow-up message; send the modified gPTP follow-up message to the TSN data exchange unit;

[0047] The TSN data exchange unit is used to: receive two corrected gPTP follow-up messages through two Ethernet entrances; calibrate the port clock of each Ethernet entrance with the upstream TSN network master clock according to the corrected gPTP follow-up message received by the Ethernet entrance; select the TSN clock source port according to the port status of the two Ethernet entrances and the fluctuation range of the calibration value; synchronize the system clock of the TSN data exchange unit with the upstream TSN network master clock using the TSN clock source port; send the corrected gPTP follow-up message to the downstream TSN terminal; wherein the calibration value is the deviation between the converged port clock and the upstream TSN network master clock.

[0048] That is to say, for one transmission path: after the first 5G module receives the received gPTP synchronization message, it forwards the received gPTP synchronization message to the first bridge service, and then the first bridge service records the second timestamp. After receiving the gPTP follow-up message, the time difference between the second timestamp and the first timestamp is calculated, and then the residence time of the gPTP synchronization message in the 5G system is determined based on the time difference. Then the gPTP follow-up message is corrected using the residence time, and the corrected gPTP follow-up message is sent to the TSN data exchange unit. For another transmission path, after the second 5G module receives the received gPTP synchronization message, it forwards the received gPTP synchronization message to the second bridge service, and then the second bridge service records the second timestamp. After receiving the gPTP follow-up message, the time difference between the second timestamp and the first timestamp is calculated, and then the residence time of the gPTP synchronization message in the 5G system is determined based on the time difference. Then the gPTP follow-up message is corrected using the residence time, and the corrected gPTP follow-up message is sent to the TSN data exchange unit.

[0049] That is to say, the TSN data exchange unit will receive two corrected gPTP follow-up messages. Then each Ethernet interface calibrates the port clock of this Ethernet entrance according to the time information in the corrected gPTP follow-up message it receives. After the port clocks of the two Ethernet entrances are calibrated, one Ethernet entrance is selected as the TSN clock source port according to the port status of the two Ethernet entrances and the fluctuation range of the calibration value, and then the system clock of the TSN data exchange unit is calibrated according to the port clock of the TSN clock source port. After the system clock calibration is completed, the corrected gPTP follow-up message is sent to the downstream TSN terminal.

[0050] The calibration value refers to the deviation between the converged port clock and the upstream TSN network master clock after the port clock is calibrated.

[0051] It can be seen that in the process of forwarding the corrected gPTP follow-up message, the TSN data exchange unit calibrates the port clock, selects the TSN clock source port, and calibrates the system clock, thereby ensuring that the deviation between the TSN data exchange unit and the upstream TSN network master clock is within a certain range.

[0052] Each bridge service can be used to: calculate the time difference between the second timestamp and the first timestamp multiple times, and use the average value of multiple time differences calculated multiple times as the residence time. It can be seen that for the accuracy of the residence time, the average value of the time differences calculated multiple times is used as the residence time.

[0053] Wherein, before sending the modified gPTP follow-up message to the downstream TSN terminal, the TSN data exchange unit is also used to determine whether the downstream TSN terminal supports the 802.1.AS protocol. If so, the modified gPTP follow-up message is sent to the downstream TSN terminal.

[0054] Specifically, the TSN data exchange unit interacts with the downstream TSN terminal to learn whether the downstream TSN terminal has the ability to support the 802.1.AS protocol.

[0055] It can be seen that the embodiment of the present invention is aimed at the downstream TSN terminal that supports the 802.1.AS protocol. If the downstream TSN terminal does not support the 802.1.AS protocol, time synchronization cannot be performed.

[0056] Among them, if the downstream terminal does not support the 802.1.AS protocol, the TSN data exchange unit gPTP works in endpoint mode. After completing the synchronization of the TSN data exchange unit's own system time and the upstream TSN network master clock, the corrected gPTP follow-up message will not be sent to the downstream terminal, and the downstream terminal cannot perform time synchronization based on the corrected gPTP follow-up message.

[0057] The TSN data exchange unit may be specifically used to: if the port states of the two Ethernet inlets are normal, use the Ethernet inlet with a smaller fluctuation range of the calibration value as the TSN clock source port.

[0058] It can be seen that when both Ethernet entrances of the TSN data exchange unit are normal, the Ethernet entrance with a smaller fluctuation range of the calibration value is used as the TSN clock source port to improve the accuracy of the TSN clock source port.

[0059] The TSN data exchange unit is specifically used for: if one Ethernet inlet is abnormal, using another normal Ethernet inlet as a TSN clock source port.

[0060] It can be seen that if one Ethernet inlet is normal and the other Ethernet inlet is abnormal, only the normal Ethernet inlet can be selected as the TSN clock source port.

[0061] In one embodiment, the hardware method for maintaining 5G core network time synchronization between the dual-link receiving unit and the data analysis and forwarding unit and the 5G base station is as follows: the dual-link receiving unit is connected to the 5G base station, an FPGA unit and a phase-locked loop unit are arranged between the dual-link receiving unit and the data analysis and forwarding unit, the dual-link receiving unit outputs a time signal based on the B code protocol to the FPGA unit, the FPGA unit is used to convert the time signal based on the B code protocol into a time signal based on the 1PPS+TOD protocol and output it to the phase-locked loop unit, and the phase-locked loop unit performs frequency locking processing on the time signal based on the 1PPS+TOD protocol and outputs the time signal as the reference clock of the data analysis and forwarding unit. The TOD in 1PPS+TOD stands for Time of Day, which represents time; 1PPS stands for One Pulse Per Second, which represents a pulse signal per second.

[0062] See also Figure 4 In order to ensure the accuracy of the residence time calculation of the data analysis and forwarding unit in DS-TT, the dual-link receiving unit and the data analysis and forwarding unit need to maintain 5GC time synchronization with the base station through the following hardware methods: the dual-link receiving unit outputs a time signal based on the B code protocol, and the FPGA unit outputs a time signal based on the 1PPS+TOD signal protocol. The time signal based on the 1PPS+TOD signal protocol is output after passing through the phase-locked loop as the reference clock of the data analysis and forwarding unit.

[0063] It can be seen that an FPGA unit and a phase-locked loop are connected between the dual-link receiving unit and the data parsing and forwarding unit to determine the reference clock of the data parsing and forwarding unit.

[0064] In one embodiment, each 5G module can also be used to: receive business messages sent by the TSN converter on the network side, and send the business messages to the corresponding bridge service; each bridge service is also used to: send the received business messages to the TSN data exchange unit; the TSN data exchange unit is also used to: receive two business messages through two Ethernet entrances, and based on whether the two business messages belong to the same message, if so, delete one business message to eliminate duplicate data, and send the non-deleted business messages to the downstream TSN terminal.

[0065] It can be seen that after time synchronization is completed, when business processing is performed, for business messages, the dual-link receiving unit receives the business messages sent by the UPF through two 5g modules, and sends them to the two bridge services in the data parsing and forwarding unit. Then the two bridge services forward the business messages they receive to the TSN data exchange unit. The TSN data exchange unit receives two business messages and can identify whether the two business messages belong to the same business message based on the MAC code or MAC code + VLAN ID of the two business messages. If they are the same, one of them will be deleted and the business message that has not been deleted will be sent to the downstream TSN terminal.

[0066] Since 5G industrial applications require reliable data communication, the stability of the communication system must be maintained to ensure accurate reception of control instructions in order to achieve stable operation of industrial production equipment. During data communication, the 5G network should minimize problems such as data packet loss and disorder caused by system disturbances and environmental disturbances, and avoid risks such as reduced production rate or reduced production quality due to changes in the stability of data packet transmission. Therefore, the dual-path redundant transmission mechanism used in the embodiment of the present invention can prevent network service interruption and data loss caused by abnormalities such as network failures and packet loss.

[0067] It can be seen that in order to solve the problem of accurate time synchronization and reliable service transmission after the integration of 5G and TSN networks, the embodiment of the present invention provides a TSN network time synchronization device across 5G systems for the DS-TT / UE side according to the 3GPP standard, which can realize accurate time synchronization and dual-transmission and selective reception of services. The TSN network time synchronization device across 5G systems includes a dual-link receiving unit, a data parsing and forwarding unit, and a TSN data exchange unit. The dual-link receiving unit receives time synchronization messages and service messages from different physical links. For the time synchronization message, the function of the data parsing and forwarding unit is to calculate the residence time, correct the gPTP follow-up message, and then forward the corrected gPTP follow-up message to the TSN data exchange unit. For the service message, the data parsing and forwarding unit only needs to forward it according to the mapping relationship between the inlet and outlet. The TSN data exchange unit will complete the synchronization of its own system time and the upstream TSN network master clock for the time synchronization message, and will eliminate duplicate frames for the service message. It can be seen that the embodiment of the present invention can realize accurate time synchronization and service message forwarding.

[0068] In a second aspect, an embodiment of the present invention provides a TSN network time synchronization method across 5G systems, the method is implemented based on the device provided in the first aspect, see Figure 5 , the method comprises the following steps S110 to S130:

[0069] S110, receiving a gPTP synchronization message and a corresponding gPTP follow-up message from an upstream TSN network master clock through a dual-link receiving unit, and forwarding them to a data parsing and forwarding unit; wherein the gPTP follow-up message records a first timestamp of the gPTP synchronization message entering the 5G system;

[0070] S120. Receive the gPTP synchronization message and gPTP follow-up message sent by the dual-link receiving unit through the data parsing and forwarding unit; record the timestamp of the received gPTP synchronization message as the second timestamp of the gPTP synchronization message transferred out of the 5G system; determine the residence time of the gPTP synchronization message in the 5G system according to the time difference between the second timestamp and the first timestamp; add the residence time to the gPTP follow-up message, and delete the first timestamp in the gPTP follow-up message to realize the correction of the gPTP follow-up message; send the corrected gPTP follow-up message to the TSN data exchange unit;

[0071] S130. Send the corrected gPTP follow-up message to the downstream TSN terminal through the TSN data exchange unit, so that the downstream TSN terminal can achieve time synchronization with the upstream TSN network master clock.

[0072] It is understandable that the explanation, specific implementation, beneficial effects, examples, etc. of the relevant contents in the method provided in the embodiment of the present invention can be referred to the corresponding parts in the device provided in the first aspect, and will not be repeated here.

[0073] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0074] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, widgets, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.

[0075] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.

Claims

1. A TSN network time synchronization device across 5G systems, characterized in that: include: A dual-link receiving unit, used to receive a gPTP synchronization message and a corresponding gPTP follow-up message from an upstream TSN network master clock, and forward them to a data parsing and forwarding unit; wherein the gPTP follow-up message records a first timestamp of the gPTP synchronization message entering the 5G system; The data parsing and forwarding unit is used to receive the gPTP synchronization message and the gPTP follow-up message sent by the dual-link receiving unit; record the timestamp of the received gPTP synchronization message as the second timestamp of the gPTP synchronization message transferred out of the 5G system; determine the residence time of the gPTP synchronization message in the 5G system according to the time difference between the second timestamp and the first timestamp; add the residence time to the gPTP follow-up message, delete the first timestamp in the gPTP follow-up message, so as to realize the correction of the gPTP follow-up message; send the corrected gPTP follow-up message to the TSN data exchange unit; The TSN data exchange unit is used to send the modified gPTP follow-up message to the downstream TSN terminal so that the downstream TSN terminal can achieve time synchronization with the upstream TSN network master clock.

2. The device according to claim 1, characterized in that The dual-link receiving unit has a first 5G module and a second 5G module; The TSN data exchange unit has a first Ethernet inlet and a second Ethernet inlet; The data parsing and forwarding unit provides a first bridge service and a second bridge service; the first bridge service has a first 5G inlet and a first Ethernet outlet, and the second bridge service has a second 5G inlet and a second Ethernet outlet; the first 5G inlet is connected to the first 5G module, and the second 5G inlet is connected to the second 5G module; the first Ethernet outlet is connected to the first Ethernet inlet of the TSN data exchange unit, and the second Ethernet outlet is connected to the second Ethernet inlet of the TSN data exchange unit.

3. The device according to claim 2, characterized in that Each 5G module is used to: receive a gPTP synchronization message and a corresponding gPTP follow-up message, and send the received gPTP synchronization message and the gPTP follow-up message to the corresponding bridge service; Each bridge service is used to: record the timestamp of receiving the gPTP synchronization message as the second timestamp; determine the residence time of the gPTP synchronization message in the 5G system according to the time difference between the second timestamp and the first timestamp; Adding the dwell time to the gPTP follow-up message, deleting the first timestamp in the gPTP follow-up message, so as to modify the gPTP follow-up message; sending the modified gPTP follow-up message to the TSN data exchange unit; The TSN data exchange unit is used to: receive two modified gPTP follow-up messages through two Ethernet inlets; calibrate the port clock of each Ethernet inlet with the upstream TSN network master clock according to the modified gPTP follow-up message received by each Ethernet inlet; Screening out a TSN clock source port according to the port status of two Ethernet inlets and the fluctuation range of the calibration value; synchronizing the system clock of the TSN data exchange unit with the upstream TSN network master clock by using the TSN clock source port; The corrected gPTP follow-up message is sent to the downstream TSN terminal; wherein the calibration value is the deviation between the converged port clock and the upstream TSN network master clock.

4. The device according to claim 3, characterized in that Each bridge service is used to: calculate the time difference between the second timestamp and the first timestamp multiple times, and use the average value of multiple time differences corresponding to the multiple calculations as the residence time.

5. The device according to claim 3, characterized in that Before sending the modified gPTP follow-up message to the downstream TSN terminal, the TSN data exchange unit is also used to determine whether the downstream TSN terminal supports the 802.1.AS protocol. If so, the modified gPTP follow-up message is sent to the downstream TSN terminal.

6. The device according to claim 3, characterized in that The TSN data exchange unit is specifically used for: if the port states of the two Ethernet inlets are normal, using the Ethernet inlet with a smaller fluctuation range of the calibration value as the TSN clock source port.

7. The device according to claim 3, characterized in that The TSN data exchange unit is specifically used for: if one Ethernet inlet is abnormal, using another normal Ethernet inlet as a TSN clock source port.

8. The device according to claim 3, characterized in that The hardware method for maintaining 5G core network time synchronization between the dual-link receiving unit and the data analysis and forwarding unit and the 5G base station is as follows: the dual-link receiving unit is connected to the 5G base station, and an FPGA unit and a phase-locked loop unit are arranged between the dual-link receiving unit and the data analysis and forwarding unit. The dual-link receiving unit outputs a time signal based on the B code protocol to the FPGA unit, and the FPGA unit is used to convert the time signal based on the B code protocol into a time signal based on the 1PPS+TOD protocol and output it to the phase-locked loop unit. The phase-locked loop unit performs frequency locking processing on the time signal based on the 1PPS+TOD protocol, and the output time signal is the reference clock of the data analysis and forwarding unit.

9. The device according to claim 3, characterized in that Each 5G module is also used to: receive business messages sent by the TSN converter on the network side, and send the business messages to the corresponding bridge service; each bridge service is also used to: send the received business messages to the TSN data exchange unit; the TSN data exchange unit is also used to: receive two business messages through two Ethernet entrances, and delete one business message if the two business messages belong to the same message, thereby eliminating duplicate data, and sending the non-deleted business messages to the downstream TSN terminal.

10. A TSN network time synchronization method across 5G systems, characterized in that: The method is implemented based on the device according to any one of claims 1 to 9, and the method includes: The gPTP synchronization message and the corresponding gPTP follow-up message from the upstream TSN network master clock are received through the dual-link receiving unit, and forwarded to the data parsing and forwarding unit; wherein the gPTP follow-up message records the first timestamp of the gPTP synchronization message entering the 5G system; Receive the gPTP synchronization message and gPTP follow-up message sent by the dual-link receiving unit through the data parsing and forwarding unit; record the timestamp of the received gPTP synchronization message as the second timestamp of the gPTP synchronization message transferred out of the 5G system; determine the residence time of the gPTP synchronization message in the 5G system according to the time difference between the second timestamp and the first timestamp; add the residence time to the gPTP follow-up message, and delete the first timestamp in the gPTP follow-up message to realize the correction of the gPTP follow-up message; send the corrected gPTP follow-up message to the TSN data exchange unit; The modified gPTP follow-up message is sent to the downstream TSN terminal through the TSN data exchange unit, so that the downstream TSN terminal can achieve time synchronization with the upstream TSN network master clock.

Citation Information

Patent Citations

  • Synchronization method and device

    CN111211852A

  • Time sensitive network time synchronization method and device

    CN114270913A

  • Cross-network time synchronization method for fusion of 5G and TSN

    CN115567139A

  • Time synchronization method and device, computer equipment and storage medium

    CN116782365A

  • Method for indicating clock synchronization mode, and communication apparatus

    WO2022032542A1

Cited By

  • Data processing method and device based on terminal side TSN converter, equipment and medium

    CN119316371A

  • 5G and TSN fusion network time synchronization method based on timestamp compensation algorithm

    CN120018264A