Master clock switching method, CNC, TSN converter, storage medium and program product
By periodically monitoring the master clock information of 5G and TSN networks through a centralized network configuration controller, generating handover notifications and modifying synchronization messages, the synchronization problem caused by master clock failure is solved, ensuring the reliability and deterministic transmission of clock synchronization in the 5G-TSN converged network.
Patent Information
- Application Number
- CN202511373703.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-24
- Publication Date
- 2026-01-06
AI Technical Summary
In 5G and TSN converged networks, master clock failure causes the network to lose its clock synchronization function, affecting network traffic scheduling and performance, and leading to network failure.
The centralized network configuration controller (CNC) periodically acquires the master clock information of the 5G and TSN networks, identifies abnormal situations, generates a master clock switching notification, switches to the master clock of the normal network, and uses the TSN converter to modify the clock synchronization message to ensure clock synchronization.
When the master clock malfunctions, it can accurately and efficiently switch to the normal network, maintain clock synchronization, and ensure deterministic transmission of the 5G-TSN converged network.
Smart Images

Figure CN121284697A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network communication technology, and in particular to a master clock switching method, a CNC, a TSN converter, a storage medium, and a program product. Background Technology
[0002] The Industrial Internet (IIoT) enables the interconnection of all elements—people, machines, and things—through a network. IIoT platforms can tightly connect and integrate equipment, production lines, factories, products, and customers. 5G is a key enabling technology for the IIoT, while the IIoT is one of the important application scenarios of 5G. 5G+IIoT is a crucial direction for empowering the digitalization, wirelessization, and intelligence of smart factories. Time-Sensitive Networking (TSN) is one of the key technologies for achieving low latency, high reliability, and deterministic transmission in the IIoT; while the high bandwidth, low latency, and high reliability of 5G networks can meet the flexible mobility requirements of industrial equipment, providing a stable and reliable wireless transmission technology for the IIoT. Therefore, 5G-TSN convergence is an important foundation for realizing the wirelessization and flexible manufacturing of the IIoT in the future.
[0003] In the actual operation of 5G and TSN converged networks, the master clock of either the TSN or 5G network may fail, causing either network to lose its clock synchronization function. Once the TSN or 5G network loses its clock synchronization function, network traffic scheduling, network planning, and other functions and performance will be affected, resulting in the converged network being unable to provide deterministic transmission and thus causing network failures. Therefore, a master clock switching method is urgently needed to solve the above-mentioned technical problems. Summary of the Invention
[0004] In view of this, the present invention provides a master clock switching method, CNC, TSN converter, storage medium and program product, which can accurately and efficiently switch to the master clock of other networks to maintain clock synchronization when the master clock of the 5G network or TSN network is abnormal, so as to ensure the reliability of clock synchronization between the TSN network and the 5G network in the converged network, thereby ensuring deterministic transmission of the 5G-TSN converged network.
[0005] According to one aspect of the present invention, an embodiment of the present invention provides a master clock switching method, applied to a centralized network configuration controller (CNC) in a time-sensitive network (TSN) network within a converged network; correspondingly, the master clock switching method includes:
[0006] The master clock information corresponding to the 5G network and the TSN network is obtained according to a preset period.
[0007] Based on the master clock information, determine the master clock anomaly of either the TSN network or the 5G network;
[0008] In the event of a master clock anomaly, a master clock switching notification is generated and sent to the TSN converter in the 5G network.
[0009] According to one aspect of the present invention, an embodiment of the present invention provides a master clock switching method, applied to a TSN converter in a 5G network within a converged network; correspondingly, the master clock switching method includes:
[0010] Receive master clock switching notifications from the centralized network configuration controller (CNC) in the TSN network of the converged network;
[0011] The network currently in a normal master clock state and the network currently in a master clock abnormal state are determined based on the master clock switching notification.
[0012] Upon receiving a clock synchronization message from the network whose master clock is currently functioning normally, clock synchronization is performed according to the clock synchronization method used by the network whose master clock is currently functioning normally. Simultaneously, the field content of the clock synchronization message is modified to obtain a modified target clock synchronization message. The target clock synchronization message is then forwarded to each slave clock device included in the network whose master clock is currently abnormal, so that each slave clock device can achieve clock synchronization based on the target clock synchronization message and the clock synchronization method used by the network whose master clock is currently abnormal.
[0013] According to another aspect of the present invention, embodiments of the present invention also provide a master clock switching device, applied to a centralized network configuration controller (CNC) in a time-sensitive network (TSN) network within a converged network; correspondingly, the master clock switching device includes:
[0014] The master clock information acquisition module is used to acquire the master clock information corresponding to the 5G network and the TSN network respectively according to a preset period.
[0015] The master clock anomaly determination module is used to determine, based on the master clock information, the master clock anomaly situation of one of the TSN network and the 5G network in the converged network;
[0016] The master clock switching notification sending module is used to generate a master clock switching notification when the master clock is abnormal, and send the master clock switching notification to the TSN converter in the 5G network.
[0017] According to another aspect of the present invention, embodiments of the present invention also provide a master clock switching device, applied to a TSN converter in a 5G network within a converged network; correspondingly, the master clock switching device includes:
[0018] The master clock switching notification receiving module is used to receive master clock switching notifications issued by the centralized network configuration controller (CNC) in the TSN network of the converged network.
[0019] The master clock status determination module is used to determine, based on the master clock switching notification, the network currently in a normal master clock state and the network currently in a master clock abnormal state.
[0020] The clock synchronization message modification module is used to, upon receiving a clock synchronization message sent by the network whose master clock is currently normal, complete clock synchronization according to the clock synchronization method used by the network whose master clock is currently normal, modify the field content of the clock synchronization message to obtain a modified target clock synchronization message, and forward the target clock synchronization message to each slave clock device included in the network whose master clock is currently abnormal, so that each slave clock device can achieve clock synchronization based on the target clock synchronization message and the clock synchronization method used by the network whose master clock is currently abnormal.
[0021] According to another aspect of the present invention, embodiments of the present invention also provide a centralized network configuration controller (CNC), the centralized network configuration controller (CNC) comprising:
[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 that can be executed by the at least one processor, which enables the at least one processor to perform the master clock switching method according to any embodiment of the present invention.
[0025] According to another aspect of the present invention, embodiments of the present invention also provide a TSN converter, the TSN converter comprising:
[0026] At least one processor; and
[0027] A memory communicatively connected to the at least one processor; wherein,
[0028] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the master clock switching method according to any embodiment of the present invention.
[0029] According to another aspect of the present invention, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions for causing a processor to execute and implement the master clock switching method described in any embodiment of the present invention.
[0030] According to another aspect of the present invention, an embodiment of the present invention also provides a computer program product, characterized in that the computer program product includes a computer program, which, when executed by a processor, implements the master clock switching method described in any embodiment of the present invention.
[0031] The technical advantage of this invention lies in that it acquires the master clock information corresponding to the 5G network and the TSN network respectively through a preset period, and determines the master clock anomaly of either the TSN network or the 5G network in the converged network based on the master clock information corresponding to the 5G network and the TSN network respectively. When the master clock anomaly is the case of the master clock being faulty, a master clock switching notification is generated and sent to the TSN converter in the 5G network. This enables accurate and efficient switching to the network with a normal master clock when either the TSN network or the 5G network in the converged network fails, thereby maintaining clock synchronization and ensuring the reliability of clock synchronization between the TSN network and the 5G network in the converged network, thus ensuring deterministic transmission in the 5G-TSN converged network.
[0032] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 A flowchart of a master clock switching method provided in an embodiment of the present invention;
[0035] Figure 2 A flowchart illustrating another master clock switching method provided in an embodiment of the present invention;
[0036] Figure 3 A flowchart illustrating another master clock switching method provided in an embodiment of the present invention;
[0037] Figure 4 A flowchart illustrating another master clock switching method provided in an embodiment of the present invention;
[0038] Figure 5 This is a schematic diagram comparing a clock synchronization message before modification and a target clock synchronization message after modification, provided as an embodiment of the present invention.
[0039] Figure 6 This is a schematic diagram of a master clock switching method for a converged network when the master clock of the TSN is abnormal, provided by an embodiment of the present invention.
[0040] Figure 7 A schematic diagram illustrating another method for switching the master clock when the master clock of the TSN in a converged network malfunctions, provided by an embodiment of the present invention;
[0041] Figure 8 This is a structural block diagram of a master clock switching device provided in an embodiment of the present invention;
[0042] Figure 9 This is a structural block diagram of a master clock switching device provided in an embodiment of the present invention;
[0043] Figure 10 This is a schematic diagram of a centralized network configuration controller (CNC) or TSN converter provided in an embodiment of the present invention. Detailed Implementation
[0044] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0045] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0046] In one embodiment, Figure 1 This is a flowchart of a master clock switching method provided in an embodiment of the present invention. This embodiment can be applied to the case of master clock switching when either the TSN network or the 5G network fails in the converged network. The method can be executed by a master clock switching device, which can be implemented in hardware and / or software. The master clock switching device can be configured in a centralized network configuration controller (CNC).
[0047] like Figure 1 As shown, the master clock switching method in this embodiment is applied to the centralized network configuration controller (CNC) in a Time-Sensitive Network (TSN) network within a converged network; correspondingly, the master clock switching method specifically includes the following steps:
[0048] S110: Obtain the master clock information corresponding to the 5G network and TSN network according to the preset cycle.
[0049] The preset period can be the acquisition period of master clock information set according to needs or experience, and this embodiment does not impose specific restrictions on it.
[0050] In this embodiment, the master clock information may include the first master clock information of the 5G network within the converged system, and at least one second master clock information corresponding to the Time-Sensitive Networking (TSN) system in the converged system. In this embodiment, both the first master clock information and the at least one second master clock information include a master clock ID, the network to which the master clock belongs, and master clock performance parameters. The master clock ID is a unique identifier for the system to which the master clock belongs. It should be noted that the second master clock information can be one or more master clock information; it can be understood that the master clock information corresponding to the TSN network is one or more. In this embodiment, the first master clock information may include, but is not limited to, the 5G network's master clock ID, the network to which the master clock belongs (i.e., when it is a 5G network, the network to which the master clock belongs is the 5G network), and master clock performance parameters. The master clock performance parameters may include, but are not limited to, the performance parameters specified by standards such as the master clock's clock class, clock precision, and clock priority. The second master clock information may also include, but is not limited to, the TSN network's master clock ID, the network to which the master clock belongs (i.e., when it is a TSN network, the network to which the master clock belongs is the TSN network), and master clock performance parameters. It should be noted that the master clock ID of the TSN network and the master clock ID of the 5G network are both random sequences, or IP addresses, MAC addresses, or other information that can uniquely identify the master clock of the system.
[0051] In a 5G-TSN converged system, the centralized network configuration controller (CNC) in the TSN network periodically collects the first master clock information corresponding to the 5G network and one or more second master clock information corresponding to the TSN network. The collected first or second master clock information is used to determine whether the master clock of the 5G network or the TSN network in the converged system is abnormal.
[0052] S120. Determine the abnormality of the master clock of either the TSN network or the 5G network based on the master clock information.
[0053] The master clock anomaly can be categorized into two types: normal master clock and abnormal master clock. An abnormal master clock could be caused by an issue with the master clock of the TSN network or the 5G network.
[0054] It should be noted that if the master clock of either the TSN system or the 5G system is not abnormal, the master clock information corresponding to the 5G system and the TSN system will be retrieved according to the preset period for real-time anomaly monitoring; if the master clock of either the TSN system or the 5G system is abnormal, a master clock switching notification will be generated and sent to the TSN converter in the 5G network.
[0055] In this embodiment, the methods for determining whether the master clock of either the TSN network or the 5G network in the converged network is abnormal can include various approaches. In one embodiment, the CNC can determine whether the master clock of either the TSN network or the 5G network in the converged network is abnormal by checking whether the master clock information of the first master clock information or at least one second master clock information has not changed and whether a response information can be received. Specifically, if the first master clock information or at least one second master clock information has not changed and no master clock response is received, it can be determined that the master clock device of either the TSN network or the 5G network is abnormal; if there is no response information for the acquisition of the first master clock information or at least one second master clock information, but new first clock information or at least one new second clock information is acquired, it can be determined that the master clock device of either the TSN network or the 5G network is not abnormal. In other embodiments, the frequency of each detected master clock can be acquired, and the frequency of each detected master clock can be divided to generate a sub-frequency of each detected master clock. The abnormality of each detected master clock can be determined based on the sub-frequency of each detected master clock. This embodiment does not impose specific limitations on this method.
[0056] S130. In the event of a master clock failure, generate a master clock switching notification and send the master clock switching notification to the TSN converter in the 5G network.
[0057] In this embodiment, the master clock switching notification may include: the network currently experiencing a master clock anomaly, the network currently experiencing a normal master clock, and the master clock ID corresponding to the network currently experiencing a normal master clock. For example, the master clock switching notification may specify that the network currently experiencing a master clock anomaly is a 5G network, the network currently experiencing a normal master clock is a TSN network, and the master clock ID corresponding to the current TSN network is A. In this embodiment, the TSN converter in the 5G network includes: a network-side TSN converter NW-TT and a device-side TSN converter DS-TT.
[0058] In this embodiment, the CNC determines whether the master clock of either the TSN network or the 5G network in the converged network is abnormal through the first master clock information or at least one second master clock information. When the CNC detects an abnormality in the master clock of the 5G network or the TSN network, it generates a master clock switching notification and then sends the master clock switching notification to the network-side TSN converter NW-TT and the device-side TSN converter DS-TT in the 5G network. This allows the network-side TSN converter NW-TT and the device-side TSN converter DS-TT to determine which network is currently in a normal master clock and which is currently in a abnormal master clock after receiving the master clock switching notification from the CNC, so as to perform subsequent operations.
[0059] The technical solution of this invention determines the abnormality of the master clock of either the TSN network or the 5G network in the converged network by using the first master clock information corresponding to the 5G network and at least one second master clock information corresponding to the TSN network. When the master clock is abnormal, a master clock switching notification is generated and sent to the TSN converter in the 5G network. This enables accurate and efficient switching to the network with a normal master clock when either the TSN network or the 5G network in the converged network fails, thus maintaining clock synchronization and ensuring the reliability of clock synchronization between the TSN network and the 5G network in the converged network, thereby guaranteeing deterministic transmission in the 5G-TSN converged network.
[0060] In one embodiment, the master clock synchronization method further includes:
[0061] The system monitors networks with abnormal master clocks and generates a master clock recovery notification when the master clock of the network with the abnormal master clock is restored. The master clock recovery notification is then sent to the network-side TSN converter NW-TT and the equipment-side TSN converter DS-TT in the 5G network.
[0062] The master clock recovery notification includes: the network where the master clock has been restored, the restored master clock ID, and the corresponding master clock performance parameters. These performance parameters may include, but are not limited to, clock class, clock precision, clock priority, etc.
[0063] In this embodiment, the CNC monitors networks with abnormal master clocks in real time or periodically. As the 5G-TSN converged network operates, when the CNC detects that the master clock of a network with an abnormal master clock has recovered, it generates a master clock recovery notification and sends it to the network-side TSN converter NW-TT and the device-side TSN converter DS-TT in the 5G network. This ensures that upon receiving the master clock recovery notification from the CNC, DS-TT and NW-TT stop modifying clock synchronization messages and stop forwarding modified clock synchronization messages. It should be noted that the method for determining whether the master clock of a network with an abnormal master clock, as monitored by the CNC, has recovered is also based on the master clock information collected by the CNC.
[0064] In one embodiment, Figure 2 This is a flowchart illustrating another master clock switching method provided in an embodiment of the present invention. Based on the above embodiments, this embodiment further refines the determination of a master clock anomaly in either the TSN network or the 5G network in the converged network based on the first master clock information or at least one second master clock information, and the sending to the TSN converter in the 5G network.
[0065] like Figure 2 As shown, the master clock switching method in this embodiment may specifically include the following steps:
[0066] S210: Obtain the master clock information corresponding to the 5G network and TSN network according to the preset cycle.
[0067] S220. Determine the abnormality of the master clock of either the TSN network or the 5G network based on the master clock information.
[0068] Specifically, determining an anomaly in the master clock of either the TSN network or the 5G network may include, but is not limited to: determining that the 5G network's master clock is abnormal when the first master clock information has not changed and no master clock response has been received from the 5G network; determining that the TSN network's master clock is abnormal when at least one second master clock information has not changed and no master clock response has been received from at least one TSN network; determining that the TSN network's master clock is not abnormal when at least one second master clock information has not changed and a master clock response has been received from at least one TSN network; determining that the 5G network's master clock is not abnormal when there is no response to the acquisition of the first master clock information but new first clock information has been acquired; and determining that the TSN network's master clock is not abnormal when there is no response to the acquisition of at least one second master clock information but at least one new second clock information has been acquired.
[0069] The statement that the first master clock information has not changed includes: the previously acquired first master clock information is consistent with the currently acquired first master clock information. This can be understood as the previously acquired first master clock information being consistent with the currently acquired first master clock information. For example, if the master clock information collected the first time is the same as the master clock information collected the second time, it is considered that the master clock information corresponding to the network has not changed.
[0070] Wherein, at least one second master clock information has not changed includes: the at least one second master clock information previously acquired is consistent with the at least one second master clock information currently acquired.
[0071] The new first clock information differs in content from the first master clock information. Specifically, the new first clock information can be understood as clock information with content different from the first master clock information; for example, the master clock ID has changed.
[0072] In this context, the new second clock information can be understood as clock information with content different from the second clock information. In this embodiment, the new first clock information has different content from the first master clock information; at least one second master clock information has different content from at least one new second clock information.
[0073] In this embodiment, if the previously acquired first master clock information is consistent with the currently acquired first master clock information, and no master clock response is received from the 5G network at this time, it can be determined that the 5G network's master clock device is malfunctioning. This can be understood as follows: if the previously acquired first master clock information is consistent with the currently acquired first master clock information, and no master clock response is received at this time, it can be determined that the 5G network's master clock device is malfunctioning.
[0074] In this embodiment, if at least one previously acquired second master clock information is consistent with at least one currently acquired second master clock information, and no response information from the TSN network's master clock is received at this time, it can be determined that the TSN network's master clock device is malfunctioning. This can be understood as follows: if at least one second master clock information is consistent with at least one second master clock information, and no master clock response is received at this time, it can be determined that the TSN network's master clock is malfunctioning.
[0075] In this embodiment, if at least one second master clock information remains unchanged, but one or more master clock responses are received, it is determined that the master clock device of the TSN system is not malfunctioning. It should be noted that the TSN network's master clock is determined to be malfunctioning only if at least one second master clock information remains unchanged and at least one master clock response is received. This can be understood as follows: if there are multiple second master clock information entries, as long as there is a response to the acquisition of any one of these second master clock information entries, it is determined that the TSN network's master clock device is not malfunctioning. In other words, as long as a response is received from any one of the multiple master clock devices, it can be considered that the TSN system's master clock device is not malfunctioning. For example, if there are two master clocks, and a response is received from master clock a, but no response is received from master clock b, it can be considered that the TSN system's master clock device is not malfunctioning.
[0076] In this embodiment, if there is no response to the acquisition of the first master clock information, but new first clock information is acquired, it is determined that the master clock of the 5G network is not malfunctioning. This can be understood as follows: if there is no response to the acquisition of the first master clock information, but new first clock information is acquired at this time, it is determined that the master clock device of the 5G network is not malfunctioning.
[0077] In this embodiment, if there is only one second master clock information, there is no response when the acquisition of the second master clock information is not received. However, if the corresponding new second clock information is acquired, it is determined that the master clock device of the TSN network has not malfunctioned.
[0078] S230. In the event of a master clock failure, a master clock switching notification is generated and sent to the network-side TSN converter NW-TT and the device-side TSN converter DS-TT in the 5G network.
[0079] The above-described technical solution of the present invention determines that the master clock device of either the TSN network or the 5G network is abnormal when the first master clock information or at least one second master clock information has not changed and no master clock response is received. Conversely, it determines that the master clock device of either the TSN network or the 5G network is not abnormal when there is no response to the acquisition of the first master clock information or at least one second master clock information, and new first clock information or at least one new second clock information is acquired. Therefore, in the case of a master clock abnormality, a master clock switching notification is generated and wirelessly transmitted to the network-side TSN converter NW-TT and the device-side TSN converter DS-TT in the 5G network. Furthermore, when either the TSN network or the 5G network's master clock fails in the converged network, it can accurately and efficiently switch to the network with a normal master clock to maintain clock synchronization, ensuring the reliability of clock synchronization between the TSN network and the 5G network in the converged network, thereby guaranteeing deterministic transmission in the 5G-TSN converged network.
[0080] In one embodiment, Figure 3 This is a flowchart illustrating another master clock switching method provided in an embodiment of the present invention. This embodiment can be applied to situations where a fault occurs in either the TSN network or the 5G network in a converged network, and the master clock is switched. The method can be executed by a master clock switching device, which can be implemented in hardware and / or software and can be configured in a TSN converter.
[0081] like Figure 3 As shown, the master clock switching method in this embodiment is applied to the TSN converter in the 5G network of the converged network; the TSN converter includes: a network-side TSN converter NW-TT and a device-side TSN converter DS-TT, and the master clock switching method specifically includes the following steps:
[0082] S310: Receives the master clock switching notification issued by the centralized network configuration controller (CNC) in the TSN network of the converged network.
[0083] In this embodiment, the network-side TSN converter NW-TT and the device-side TSN converter DS-TT in the 5G network receive the master clock switching notification issued by the centralized network configuration controller (CNC) in the TSN network of the converged network.
[0084] S320. Determine the network currently in a normal master clock state and the network currently in a master clock abnormal state based on the master clock switching notification.
[0085] In this embodiment, after receiving the master clock switching notification issued by the CNC, DS-TT and NW-TT parse the contents of the master clock switching notification to obtain the network currently in a normal master clock state and the network currently in a master clock abnormal state, and save the parsing results locally.
[0086] S330. After receiving the clock synchronization message sent by the network whose master clock is currently normal, perform clock synchronization according to the clock synchronization method used by the network whose master clock is currently normal, modify the field content of the clock synchronization message to obtain the modified target clock synchronization message, and forward the target clock synchronization message to each slave clock device included in the network whose master clock is abnormal, so that each slave clock device can achieve clock synchronization based on the target clock synchronization message and the clock synchronization method used by the network whose master clock is abnormal.
[0087] The clock synchronization message includes a header and a payload. The target clock synchronization message is a modified version of the original clock synchronization message. This target clock synchronization message includes a header, the network to which the master clock belongs, the master clock ID, and the payload. The network to which the master clock belongs and the master clock ID are newly added fields. It should be noted that the field corresponding to the network to which the master clock belongs is a number or a string of characters, indicating the network to which the current synchronization message belongs.
[0088] In this embodiment, after receiving a clock synchronization message sent by the network whose master clock is currently normal, clock synchronization is completed according to the clock synchronization method used by the network whose master clock is currently normal. This can be understood as follows: when DS-TT and NW-TT subsequently receive a clock synchronization message sent by the network whose master clock is normal, the clock synchronization message may include a message header and a payload, and local clock synchronization is completed according to the clock synchronization method used by the network whose master clock is normal.
[0089] In this embodiment, after clock synchronization is completed according to the clock synchronization method used by the network where the master clock is normal, DS-TT and NW-TT modify the field content of the clock synchronization message to obtain the modified target clock synchronization message. The target clock synchronization message is then forwarded to each slave clock device in the network where the master clock is abnormal, so that each slave clock device can achieve clock synchronization based on the target clock synchronization message and the clock synchronization method used in the network where the master clock is abnormal. Specifically, the modified target clock synchronization message can be made by adding the network to which the master clock belongs and the field values corresponding to the master clock ID to the clock synchronization message. The modified clock synchronization message is then forwarded to the slave clock devices in the network where the master clock is abnormal. For example, if the network where the master clock is abnormal is a TSN network, then all devices in this network other than the master clock device are slave clock devices, which may include, but are not limited to, TSN end devices and TSN switches. Subsequently, when a slave clock device in a network with an abnormal master clock receives a modified synchronization message from the master clock of another network, it parses the message content locally and synchronizes according to the clock synchronization method used by its own network based on the parsed content. It then sends the modified clock synchronization message forwarded by DS-TT and NW-TT to other slave clocks in its own network until all slave clocks in its network are covered.
[0090] The above-described technical solution of the present invention receives a master clock switching notification issued by the CNC in the TSN network of the converged network. Based on the master clock switching notification, it determines the network currently in which the master clock is normal and the network currently in which the master clock is abnormal. After receiving the clock synchronization message sent by the network currently in which the master clock is normal, it completes clock synchronization according to the clock synchronization method used by the network currently in which the master clock is normal. It modifies the field content of the clock synchronization message to obtain the modified target clock synchronization message, and forwards the target clock synchronization message to each slave clock device included in the network currently in which the master clock is abnormal. This enables each slave clock device to achieve clock synchronization based on the target clock synchronization message and the clock synchronization method used by the network currently in which the master clock is abnormal. This allows for accurate and efficient switching to the network with a normal master clock when either the TSN network or the 5G network in the converged network fails, thus maintaining clock synchronization and ensuring the reliability of clock synchronization between the TSN network and the 5G network in the converged network, thereby ensuring deterministic transmission in the 5G-TSN converged network.
[0091] In one embodiment, Figure 4This is a flowchart illustrating another master clock switching method provided in an embodiment of the present invention. Based on the above embodiments, this embodiment further refines the process of determining, according to the master clock switching notification, whether the network is currently in a normal master clock state or the network is currently in a master clock abnormal state, and then modifying the field content of the clock synchronization message to obtain the modified target clock synchronization message.
[0092] like Figure 4 As shown, the master clock switching method in this embodiment may specifically include the following steps:
[0093] S410: Receives the master clock switching notification issued by the centralized network configuration controller (CNC) in the TSN network of the converged network.
[0094] S420: Parse the master clock switching notification to obtain the parsing result.
[0095] In this embodiment, the TSN converter parses the master clock switching notification to obtain the parsing result. The parsing result may include the network currently in a master clock abnormality, the network currently in a master clock normality, and the master clock ID corresponding to the network currently in normality. For example, the network in a master clock abnormality is TSN, the network in a master clock normality is 5G, and the normal master clock ID is B.
[0096] S430. Determine the network currently in normal master clock condition, the network currently in abnormal master clock condition, and the master clock ID corresponding to the network currently in normal condition from the parsing results, and save them locally.
[0097] In this embodiment, the network currently in normal master clock condition and the network currently in abnormal master clock condition are determined from the parsing results, and the master clock IDs corresponding to the network currently in normal master clock condition, the network currently in abnormal master clock condition, and the network currently in normal master clock condition are saved locally.
[0098] S440. After receiving a clock synchronization message from a network whose master clock is currently functioning normally, perform clock synchronization according to the clock synchronization method used by the network whose master clock is currently functioning normally.
[0099] In this embodiment, after receiving a clock synchronization message from a network whose master clock is currently functioning normally, clock synchronization is completed according to the clock synchronization method used by the network whose master clock is currently functioning normally. For example, if the network whose master clock is functioning normally is a TSN network, then the switches and end devices in the TSN network synchronize with the master clock A of the TSN network in accordance with the method specified by the IEEE 802.1AS protocol; if the network whose master clock is functioning normally is a 5G network, then each network element device of the 5G network synchronizes with the master clock B of the 5G network in accordance with the IEEE 1588v2 protocol.
[0100] S450. Determine the network to which the master clock of the network currently in normal master clock operation belongs, and the master clock ID.
[0101] In this embodiment, for a network whose master clock is currently functioning normally, the network to which the master clock belongs and the master clock ID of the network whose master clock is currently functioning normally are determined. For example, the network to which the master clock belongs to the network whose master clock is currently functioning normally is a 5G network, and the master clock ID of the 5G network is e.
[0102] S460. Write the network to which the master clock belongs and the field values corresponding to the master clock ID into the clock synchronization message to obtain the target clock synchronization message.
[0103] In this embodiment, the network to which the master clock belongs and the field values corresponding to the master clock ID are written into the clock synchronization message to obtain the target clock synchronization message. The target clock synchronization message includes: a message header, the network to which the master clock belongs, the master clock ID, and a payload.
[0104] For example, to facilitate a better understanding of the modified target clock synchronization message, Figure 5 This is a schematic diagram comparing a clock synchronization message before modification and a target clock synchronization message after modification, provided as an embodiment of the present invention.
[0105] S470. Forward the target clock synchronization message to each slave clock device in the network currently experiencing a master clock failure, so that each slave clock device can achieve clock synchronization based on the target clock synchronization message and the clock synchronization method used in the network currently experiencing a master clock failure.
[0106] In one embodiment, the master clock switching method further includes:
[0107] Receive the master clock recovery notification issued by the centralized network configuration controller (CNC) in the TSN network of the converged network;
[0108] Stop modifying clock synchronization messages and stop forwarding modified target clock synchronization messages.
[0109] In this embodiment, when the CNC detects that the master clock of a network with an abnormal master clock has recovered, it generates a master clock recovery notification and sends it to DS-TT and NW-TT. The master clock recovery notification includes information such as the network whose master clock has recovered and the master clock ID after recovery. After receiving the master clock recovery notification from the CNC, DS-TT and NW-TT stop modifying clock synchronization messages and stop forwarding modified clock synchronization messages.
[0110] In one embodiment, to facilitate a better understanding of the master clock switching method for a converged network including a TSN network and a 5G network, Figure 6 This is a schematic diagram of a master clock switching method when a TSN master clock in a converged network malfunctions, provided by an embodiment of the present invention. In this embodiment, the example is that the TSN network contains a TSN master clock and the TS master clock malfunctions.
[0111] like Figure 6 As shown, initially, in the 5G and TSN converged network, the TSN network data plane is connected to the 5G network data plane via DS-TT and NW-TT. The master clock of the TSN network is configured as A, and the master clock of the 5G network is configured as B. After the converged system powers on, the switches and end devices in the TSN network synchronize with the master clock A of the TSN network according to the method specified in the IEEE 802.1AS protocol. When clock synchronization-related messages of the TSN network need to be transmitted through the 5G network, they are transmitted according to 3GPP R16 / R17 and subsequent standards. Other network elements of the 5G network only transparently transmit the clock synchronization messages of the TSN network and do not synchronize with the master clock A. After the converged system powers on, each network element of the 5G network synchronizes with the master clock B of the 5G network according to the IEEE 1588v2 protocol, and the clock synchronization messages of the 5G network are not transmitted to the TSN network.
[0112] In this embodiment, the TSN network controller (CNC) periodically collects information about master clock A and master clock B. Master clock A belongs to the TSN network, and master clock B belongs to the 5G network. The master clock information collected by the CNC is kept as master clock A and master clock B. When master clock A and master clock B are collected for the first time, the master clock information is updated. If the information received this time is the same as before, the information is not updated.
[0113] When the CNC collects master clock information, it finds that the master clock information of the TSN network has not changed and master clock A is unresponsive, determining that master clock A of the TSN network is abnormal. At this time, the CNC generates a master clock switching notification, which contains information such as the network with the abnormal master clock is the TSN network, the network with the normal master clock is the 5G network, and the normal master clock ID is B, and sends the master clock switching notification to DS-TT and NW-TT.
[0114] After receiving the master clock switching notification, the DS-TT and NW-TT (TSN converters in the 5G network of the converged network) parse information such as the network with an abnormal master clock being a TSN network, the network with a normal master clock being a 5G network, and the normal master clock ID being B, and save this information locally. When the DS-TT and NW-TT receive a clock synchronization message from the 5G network master clock (i.e., the network with a normal master clock), they perform clock synchronization locally. Simultaneously, the DS-TT and NW-TT modify the received synchronization message, adding two fields: source network and master clock ID, with values of 5G and B respectively. Then, the DS-TT and NW-TT forward the modified synchronization message to the TSN network devices connected to them.
[0115] TSN network devices connected to DS-TT and NW-TT are slave clock devices. Upon receiving a modified synchronization message, the slave clock devices in the TSN network perform clock synchronization according to the original protocol. At this time, each slave clock device in the TSN network determines, based on the contents of the source network and master clock ID fields carried in the message, that its own network's master clock is abnormal and that subsequent master clock synchronization information comes from other networks. The slave clock then updates its local current master clock information to the master clock information of the other network.
[0116] Each slave clock device in the TSN network will continue to forward the modified synchronization message to other slave clock devices connected to it until all slave clock devices in the TSN network have completed synchronization.
[0117] It should be noted that as the 5G-TSN converged network continues to operate, the master clock A of the TSN network returns to normal. At this time, the CNC receives the response from master clock A and determines that it has returned to normal. The CNC generates a master clock recovery notification, which contains information such as the network where the master clock has been restored and the master clock ID after restoration, with values of TSN and A respectively. The CNC then sends the master clock recovery notification to DS-TT and NW-TT.
[0118] After receiving the master clock recovery notification, DS-TT and NW-TT cease modifying the synchronization messages sent by the 5G network's master clock B and stop forwarding the modified synchronization messages to the TSN network. Once the TSN network's master clock A returns to normal, the TSN network's clock synchronization function also returns to normal.
[0119] In one embodiment, to better understand the master clock switching method of a converged network including a TSN network and a 5G network, this embodiment uses the example of a 5G master clock anomaly in the 5G network. The difference compared to the TSN master clock anomaly in the TSN network described above is that when the CNC collects master clock information, it finds that the 5G network master clock information has not changed and master clock B is unresponsive, thus determining that master clock B has an anomaly. At this time, the CNC generates a master clock switching notification, which includes information such as the network with the abnormal master clock being 5G, the network with the normal master clock being TSN, and the normal master clock ID being A, and sends the master clock switching notification to DS-TT and NW-TT. The difference compared to the TSN master clock anomaly in the TSN network described above is that when DS-TT and NW-TT receive the clock synchronization message sent by the TSN network master clock, they locally perform clock synchronization. Simultaneously, DS-TT and NW-TT modify the received synchronization message, adding two fields: source network and master clock ID, with values of TSN and A, respectively. Then, DS-TT and NW-TT forward the modified synchronization message to the 5G network devices connected to them. Each slave clock device in the 5G network continues to forward the modified synchronization message to other slave clock devices connected to it until all slave clock devices in the 5G network have completed synchronization. The difference between this and the TSN master clock anomaly mentioned above is that initially, the master clocks for the TSN network are configured as A and C, while the master clock for the 5G network is configured as B.
[0120] In one embodiment, to facilitate a better understanding of the master clock switching method for a converged network including a TSN network and a 5G network, Figure 7 This is a schematic diagram of another master clock switching method in a converged network when the master clock of the TSN is abnormal, provided by an embodiment of the present invention. In this embodiment, the TSN network contains two master clocks and the two master clocks are abnormal, as an example.
[0121] like Figure 7As shown, the difference between this and the TSN network experiencing a TSN master clock anomaly is that, during clock synchronization in the TSN network, since there are two master clocks, the slave clocks are synchronized according to the redundant master clock handling method specified in the IEEE 802.1AS protocol. When the CNC collects master clock information, it finds that master clock A of the TSN network is unresponsive, but master clock C is normal. At this time, the CNC does not perform any operation; that is, as long as one master clock is normal, the TSN master clock is considered normal; only when both are abnormal is the TSN master clock considered abnormal. The CNC continues to collect master clock information periodically. When the CNC finds that both master clock A and master clock C of the TSN network are unresponsive, it determines that the TSN network master clock has an anomaly. The CNC generates a master clock switching notification, which includes information such as the network with the abnormal master clock being TSN, the network with the normal master clock being 5G, and the normal master clock ID being B, and sends the master clock switching notification to DS-TT and NW-TT.
[0122] In one embodiment, Figure 8 This is a structural block diagram of a master clock switching device according to an embodiment of the present invention. This system is suitable for switching the master clock when either a TSN network or a 5G network fails in a converged network. The device can be implemented in hardware or software. It can be configured in a centralized network configuration controller (CNC) to implement a master clock switching method according to an embodiment of the present invention.
[0123] like Figure 8 As shown, the master clock switching device includes: a master clock information acquisition module 810, a master clock anomaly determination module 820, and a master clock switching notification sending module 830.
[0124] Among them, the master clock information acquisition module 810 is used to acquire the master clock information corresponding to the 5G network and the TSN network respectively according to a preset period;
[0125] The master clock anomaly determination module 820 is used to determine, based on the master clock information, the master clock anomaly situation of one of the TSN network and the 5G network;
[0126] The master clock switching notification sending module 830 is used to generate a master clock switching notification when the master clock is abnormal, and send the master clock switching notification to the TSN converter in the 5G network.
[0127] In this embodiment of the invention, the master clock anomaly determination module determines the master clock anomaly of either the TSN network or the 5G network in the converged network by using the master clock information corresponding to the 5G network and the TSN network, respectively. The master clock switching notification sending module generates a master clock switching notification when the master clock anomaly is detected and sends the notification to the TSN converter in the 5G network. This enables accurate and efficient switching to other master clocks to maintain clock synchronization when the master clock of either the TSN network or the 5G network fails, thereby ensuring the reliability of clock synchronization between the TSN network and the 5G network in the 5G-TSN converged network and thus guaranteeing deterministic transmission in the 5G-TSN converged network.
[0128] In one embodiment, the master clock information includes: first master clock information corresponding to the 5G network, and at least one second master clock information corresponding to the TSN network; both the first master clock information and the at least one second master clock information include master clock ID, the network to which the master clock belongs, and master clock performance parameter information.
[0129] In one embodiment, the master clock switching notification includes: the network currently in a master clock abnormality, the network currently in a master clock normality, and the master clock ID corresponding to the network currently in normality; the TSN converter in the 5G network includes: the network-side TSN converter NW-TT and the device-side TSN converter DS-TT;
[0130] Correspondingly, the master clock switching notification sending module 830 includes:
[0131] The switching notification sending unit is used to send the master clock switching notification to the network-side TSN converter NW-TT and the device-side TSN converter DS-TT in the 5G network, respectively.
[0132] In one embodiment, the master clock synchronization device further includes:
[0133] The master clock anomaly recovery notification module is used to monitor the network with an abnormal master clock, and when the master clock corresponding to the network with the abnormal master clock recovers, generate a master clock recovery notification and send the master clock recovery notification to the network-side TSN converter NW-TT and the device-side TSN converter DS-TT in the 5G network; wherein, the master clock recovery notification includes: the network with the master clock recovered, the master clock ID after recovery, and the corresponding master clock performance parameter information.
[0134] The master clock switching device provided in the embodiments of the present invention can execute the master clock switching method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0135] In one embodiment, Figure 9 This is a structural block diagram of a master clock switching device according to an embodiment of the present invention. This system is suitable for switching the master clock when either a TSN network or a 5G network fails in a converged network. The device can be implemented in hardware or software. It can be configured in a TSN converter to implement a master clock switching method according to an embodiment of the present invention.
[0136] like Figure 9 As shown, the master clock switching device includes: a master clock switching notification receiving module 910, a master clock status determination module 920, and a clock synchronization message modification module 930;
[0137] Among them, the master clock switching notification receiving module 910 is used to receive the master clock switching notification issued by the centralized network configuration controller (CNC) in the TSN network of the converged network.
[0138] The master clock status determination module 920 is used to determine, based on the master clock switching notification, the network currently in which the master clock is normal, and the network currently in which the master clock is abnormal.
[0139] The clock synchronization message modification module 930 is used to, upon receiving a clock synchronization message sent by the network whose master clock is currently normal, complete clock synchronization according to the clock synchronization method used by the network whose master clock is currently normal, modify the field content of the clock synchronization message to obtain a modified target clock synchronization message, and forward the target clock synchronization message to each slave clock device included in the network whose master clock is currently abnormal, so that each slave clock device can achieve clock synchronization based on the target clock synchronization message and the clock synchronization method used by the network whose master clock is currently abnormal.
[0140] In this embodiment of the invention, the master clock status determination module receives a master clock switching notification from the CNC in the TSN network of the converged network. Based on the master clock switching notification, it determines the network currently in which the master clock is normal and the network currently in which the master clock is abnormal. The clock synchronization message modification module, upon receiving a clock synchronization message sent by the network currently in which the master clock is normal, performs clock synchronization according to the clock synchronization method used by the network currently in which the master clock is normal, modifies the field content of the clock synchronization message to obtain a modified target clock synchronization message, and forwards the target clock synchronization message to each slave clock device included in the network currently in which the master clock is abnormal. This enables each slave clock device to achieve clock synchronization based on the target clock synchronization message and the clock synchronization method used by the network currently in which the master clock is abnormal. This allows for accurate and efficient switching to the network with a normal master clock when either the TSN network or the 5G network in the converged network fails, maintaining clock synchronization and ensuring the reliability of clock synchronization between the TSN network and the 5G network in the converged network, thereby ensuring deterministic transmission in the 5G-TSN converged network.
[0141] In one embodiment, the master clock status determination module 920 includes:
[0142] The parsing unit is used to parse the master clock switching notification to obtain the parsing result;
[0143] An abnormal situation determination unit is used to determine, from the parsing results, the network currently in which the master clock is normal, the network currently in which the master clock is abnormal, and the master clock ID corresponding to the network currently in which the master clock is normal, and save them locally.
[0144] In one embodiment, the clock synchronization message includes a header and a payload; the target clock synchronization message includes a header, the network to which the master clock belongs, the master clock ID, and a payload; wherein the network to which the master clock belongs and the master clock ID are newly added fields.
[0145] Correspondingly, the clock synchronization message modification module 930 includes:
[0146] The determining unit is used to determine the network to which the master clock of the network currently in normal master clock operation belongs, and the master clock ID;
[0147] The modification unit is used to write the network to which the master clock belongs and the field values corresponding to the master clock ID into the clock synchronization message to obtain the target clock synchronization message; wherein, the target clock synchronization message includes: message header, network to which the master clock belongs, master clock ID and payload.
[0148] In one embodiment, the master clock switching device further includes:
[0149] The master clock recovery notification receiving module is used to receive master clock recovery notifications issued by the centralized network configuration controller (CNC) in the TSN network of the converged network.
[0150] The modification stop module is used to stop modifying clock synchronization messages and stop forwarding modified target clock synchronization messages.
[0151] The master clock switching device provided in the embodiments of the present invention can execute the master clock switching method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0152] In one embodiment, Figure 10 This is a schematic diagram of a centralized network configuration controller (CNC) or TSN converter provided for an embodiment of the present invention. The centralized network configuration controller (CNC) or TSN converter 10 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. Electronic devices can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, 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 illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0153] like Figure 10 As shown, the centralized network configuration controller (CNC) or TSN converter 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0154] Multiple components in the centralized network configuration controller (CNC) or TSN converter 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard or mouse; an output unit 17, such as various types of displays or speakers; a storage unit 18, such as a disk or optical disk; and a communication unit 19, such as a network interface card (NIC), modem, or wireless transceiver. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0155] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the master clock switching method.
[0156] In some embodiments, the master clock switching method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the master clock switching method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the master clock switching method by any other suitable means (e.g., by means of firmware).
[0157] Various embodiments 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-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0158] Computer programs used to implement the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable master clock switching device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a standalone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0159] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0160] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0161] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0162] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0163] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0164] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A master clock switching method, characterized by, A centralized network configuration controller (CNC) applied to a time-sensitive network (TSN) in a converged network; correspondingly, the master clock switching method comprises: Obtaining master clock information corresponding to the 5G network and the TSN network respectively according to a preset period; Determining a master clock abnormality of one of the TSN network and the 5G network based on the master clock information; In the case of master clock abnormality, generating a master clock switching notification and sending the master clock switching notification to a TSN converter in the 5G network.
2. The method of claim 1, wherein, The master clock information includes at least one first master clock information corresponding to the 5G network and at least one second master clock information corresponding to the TSN network; the first master clock information and the at least one second master clock information each include a master clock ID, a network to which the master clock belongs, and master clock performance parameter information.
3. The method of claim 1, wherein, The master clock switching notification includes a network currently in master clock abnormality, a network currently in master clock normality, and a master clock ID corresponding to the normal network; the TSN converter in the 5G network includes a network-side TSN converter (NW-TT) and a device-side TSN converter (DS-TT); Correspondingly, the master clock switching notification is sent to the TSN converter in the 5G network, comprising: The master clock switching notification is sent to the network-side TSN converter (NW-TT) and the device-side TSN converter (DS-TT) in the 5G network respectively.
4. The method of claim 1, wherein, The master clock switching method further comprises: Monitoring the network in master clock abnormality, and generating a master clock recovery notification and issuing the master clock recovery notification to the network-side TSN converter (NW-TT) and the device-side TSN converter (DS-TT) in the 5G network when the master clock corresponding to the network in master clock abnormality recovers; wherein the master clock recovery notification includes a network in master clock recovery, a master clock ID after recovery, and corresponding master clock performance parameter information.
5. A master clock switching method, characterized by, A TSN converter applied to a 5G network in a converged network; correspondingly, the master clock switching method comprises: Receiving a master clock switching notification issued by a centralized network configuration controller (CNC) in a TSN network in a converged network; Determining a network currently in master clock normality and a network currently in master clock abnormality according to the master clock switching notification; After receiving a clock synchronization message sent by the network currently in master clock normality, completing clock synchronization according to a clock synchronization method used by the network currently in master clock normality, modifying field content of the clock synchronization message to obtain a modified target clock synchronization message, and forwarding the target clock synchronization message to each slave clock device included in the network currently in master clock abnormality, so that each slave clock device realizes clock synchronization based on the target clock synchronization message and a clock synchronization method used by the network currently in master clock abnormality.
6. The method of claim 5, wherein, The determination of the network currently in master clock normality and the network currently in master clock abnormality according to the master clock switching notification comprises: The master clock switching notification is parsed to obtain a parsing result; From the parsing result, a network currently in normal master clock, a network currently in abnormal master clock, and a master clock ID corresponding to the network currently in normal are determined.
7. The method of claim 5, wherein, The clock synchronization message includes a message header and a payload; the target clock synchronization message includes a message header, a network to which a master clock belongs, a master clock ID, and a payload; wherein the network to which the master clock belongs and the master clock ID are new fields; Correspondingly, the field content of the clock synchronization message is modified to obtain a modified target clock synchronization message, including: The network to which the master clock corresponding to the network currently in normal master clock belongs and the master clock ID are determined; The network to which the master clock belongs and the master clock ID are respectively written into the clock synchronization message to obtain a target clock synchronization message.
8. The method of claim 5, wherein, The master clock switching method further includes: Receiving a master clock recovery notification issued by a centralized network configuration controller CNC in a TSN network in a fusion network; Stopping modifying the clock synchronization message and stopping forwarding the modified target clock synchronization message.
9. A centralized network configuration controller, CNC, characterized by The centralized network configuration controller CNC includes: At least one processor; and The memory is in communication connection with 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 to enable the at least one processor to execute the master clock switching method in any one of claims 1-4.
10. A TSN translator, characterized by, The TSN converter includes: At least one processor; and The memory is in communication connection with 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 to enable the at least one processor to execute the master clock switching method in any one of claims 5-8.
11. A computer readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for enabling the processor to execute the master clock switching method in any one of claims 1-4 or claims 5-8 when executed.
12. A computer program product, characterised in that, The computer program product includes a computer program that, when executed by a processor, implements the master clock switching method in any one of claims 1-4 or claims 5-8.