Time synchronization network and method, storage medium, and computer program product
By dividing the time synchronization network into multiple time domains and assigning them their respective domain numbers, and utilizing time servers and synchronization nodes to automatically process messages, the problems of low efficiency and misconfiguration/missed configuration by manual configuration are solved, achieving efficient and stable time synchronization management.
Patent Information
- Application Number
- PCT/CN2025/098905
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-03
- Filing Date
- 2025-06-03
- Publication Date
- 2025-12-11
AI Technical Summary
As existing time synchronization networks expand, manual configuration and management become inefficient, prone to misconfiguration or omissions, leading to network chaos and making it difficult to guarantee stability and accuracy.
By dividing the time synchronization network into multiple time domains, each corresponding to a different domain number, and using time servers and synchronization nodes to automatically process time synchronization messages, automated segmentation management of the network is achieved, reducing reliance on manual configuration.
It improves network management efficiency, reduces the risk of mismatch or omission, and ensures the normal and orderly operation of the time synchronization network.
Smart Images

Figure CN2025098905_11122025_PF_FP_ABST
Abstract
Description
Time synchronization network and method, storage medium, computer program product
[0001] Cross-reference of related disclosures
[0002] The present disclosure is based on and claims priority to Chinese Patent Publication No. 202410711445.4, published on June 3, 2024, the entire contents of which are hereby incorporated by reference into the present disclosure. TECHNICAL FIELD
[0003] Embodiments of the present disclosure relate to the technical field of time synchronization, and in particular to a time synchronization network and method, a storage medium, and a computer program product. BACKGROUND
[0004] With the continuous development of technology, there is an increasing demand for high-precision services such as computing power network latency measurement and ground-based standard time service, which puts higher requirements on the time synchronization performance of backbone transmission networks. As the core infrastructure supporting various services, the accuracy and stability of time synchronization of backbone transmission networks are crucial. However, as the scale of the synchronization network continues to expand, the network structure becomes more complex, which poses a great challenge to network operation and maintenance.
[0005] To address these challenges, it is necessary to scientifically manage the time synchronization network. By dividing the time synchronization network, the time synchronization performance of each part can be more effectively managed and optimized.
[0006] Currently, time synchronization network division mainly uses the method of configuring the port attributes of synchronization nodes. First, the synchronization network is manually divided into different parts, and then the synchronization node ports at the device domain boundary do not accept time synchronization messages from the opposite end, or output or accept time synchronization messages in a single direction, to achieve the purpose of hierarchical and domain division. However, when the scale of the time synchronization network is large, the efficiency of network segmentation management achieved by manual configuration is low, and there is a risk of mismatch or omission. After network splicing and modification, if no configuration changes are made, it will also cause the leakage of synchronization messages, making the entire time synchronization network chaotic. SUMMARY
[0007] Embodiments of the present disclosure provide a time synchronization network and method, a storage medium, and a computer program product, which achieve automated network segmentation management through the domain numbers corresponding to each time domain in the time synchronization network, reducing the dependence on manual configuration, improving network management efficiency, and reducing the risk of mismatch or omission, thereby ensuring the normal and orderly operation of the time synchronization network.
[0008] The technical solutions of embodiments of the present disclosure are implemented as follows:
[0009] The time synchronization network is divided into multiple time domains, and different time domains correspond to different domain numbers.
[0010] Each time domain includes one or more time servers and one or more synchronization nodes.
[0011] Each time server is configured to generate a time synchronization message containing a domain number corresponding to a time domain to which the time server belongs.
[0012] Each synchronization node is configured to receive a time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs.
[0013] In the time synchronization network, each synchronization node is configured to determine, as an invalid message, a time synchronization message containing a domain number different from a domain number corresponding to a time domain to which the synchronization node belongs.
[0014] In the time synchronization network, each synchronization node is configured to, after performing time synchronization by using a received time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs, generate a new time synchronization message containing the domain number corresponding to the time domain to which the synchronization node belongs and send the new time synchronization message.
[0015] In the time synchronization network, each time server is configured to allow a time synchronization message containing a domain number different from a domain number corresponding to a time domain to which the time server belongs, generate a time synchronization message containing the domain number corresponding to the time domain to which the time server belongs, and send the time synchronization message.
[0016] In the time synchronization network, the multiple time domains are divided into multiple layer domains, and each layer domain contains one or more time domains.
[0017] A domain number corresponding to a time domain in a next layer domain meets a predetermined rule with a domain number corresponding to a time domain in a previous layer domain.
[0018] A time server in the time domain in the next layer domain is configured to determine, as a time synchronization message from the previous layer domain, a received time synchronization message containing a domain number meeting the predetermined rule between the domain number and a domain number corresponding to a time domain to which the time server belongs.
[0019] In the time synchronization network, a domain number corresponding to a time domain in a previous layer domain is greater than a domain number corresponding to a time domain in a next layer domain.
[0020] Alternatively, a domain number corresponding to a time domain in a next layer domain is greater than a domain number corresponding to a time domain in a previous layer domain.
[0021] In the time synchronization network, a time server in the time domain in the next layer domain is configured to, in a case of using a precision time protocol (PTP) time synchronization, perform time synchronization by using a time synchronization message from the previous layer domain.
[0022] In the time synchronization network, a time server in a time domain in a next layer domain is configured to determine a time synchronization message received as invalid if the time synchronization message contains a domain number that does not conform to the predetermined rule with a domain number corresponding to the time domain.
[0023] In the time synchronization network, each time synchronization message is a second layer message based on Ethernet or a third layer message based on Internet Protocol (IP).
[0024] In the time synchronization network, each time server is configured to send the generated time synchronization message in a multicast mode or a unicast mode.
[0025] Embodiments of the present disclosure provide a time synchronization method applied to a time synchronization network, the time synchronization network is divided into a plurality of time domains, different time domains correspond to different domain numbers, each time domain includes one or more time servers and one or more synchronization nodes; the method comprises:
[0026] Each time server is configured to generate a time synchronization message containing a domain number corresponding to a time domain to which the time server belongs.
[0027] Each synchronization node is configured to receive a time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs.
[0028] In the time synchronization method, the method further comprises:
[0029] Each synchronization node is configured to determine a time synchronization message containing a domain number different from a domain number corresponding to a time domain to which the synchronization node belongs as invalid.
[0030] In the time synchronization method, the method further comprises:
[0031] Each synchronization node is configured to generate a new time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs and send the new time synchronization message after performing time synchronization by using a received time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs.
[0032] In the time synchronization method, the method further comprises:
[0033] Each time server is configured to receive a time synchronization message containing a domain number different from a domain number corresponding to a time domain to which the time server belongs, generate a time synchronization message containing a domain number corresponding to a time domain to which the time server belongs, and send the time synchronization message.
[0034] In the time synchronization method, the plurality of time domains are divided into a plurality of layer domains, each layer domain contains one or more of the plurality of time domains, a domain number corresponding to a time domain in a next layer domain conforms to a predetermined rule with a domain number corresponding to a time domain in a previous layer domain, and the method further comprises:
[0035] The time synchronization message received and containing the domain number and the domain number corresponding to the time domain of the time domain is determined as the time synchronization message from the upper layer domain, which conforms to the predetermined rule.
[0036] In the time synchronization method, the domain number corresponding to the time domain in the upper layer domain is greater than the domain number corresponding to the time domain in the lower layer domain.
[0037] Alternatively, the domain number corresponding to the time domain in the lower layer domain is greater than the domain number corresponding to the time domain in the upper layer domain.
[0038] In the time synchronization method, the time synchronization message from the upper layer domain is used for time synchronization in the case of using the Precision Time Protocol (PTP) time synchronization.
[0039] In the time synchronization method, the time synchronization message from the upper layer domain is used for time synchronization in the case of using the Precision Time Protocol (PTP) time synchronization.
[0040] In the time synchronization method, the time synchronization message from the upper layer domain is used for time synchronization in the case of using the Precision Time Protocol (PTP) time synchronization.
[0041] In the time synchronization method, the time synchronization message received and containing the domain number and the domain number corresponding to the time domain of the time domain is determined as the time synchronization message from the upper layer domain, which does not conform to the predetermined rule.
[0042] In the time synchronization method, each time synchronization message is an Ethernet-based Layer 2 message or an Internet Protocol (IP)-based Layer 3 message.
[0043] In the time synchronization method, the time synchronization message from the upper layer domain is used for time synchronization in the case of using the Precision Time Protocol (PTP) time synchronization.
[0044] In the time synchronization method, each time server sends the generated time synchronization message in a multicast mode or a unicast mode.
[0045] The embodiment of the disclosure provides a computer readable storage medium, which stores a computer program, wherein the computer program is executed to implement the time synchronization method.
[0046] The embodiment of the disclosure provides a computer program product, which comprises a computer program, and the computer program is executed to implement the time synchronization method.
[0047] The embodiment of the present disclosure provides a time synchronization network and method, a storage medium and a computer program product. The time synchronization network is divided into multiple time domains, and different time domains correspond to different domain numbers. Each time domain includes one or more time servers and one or more synchronization nodes. Each time server is configured to generate a time synchronization message containing a domain number corresponding to a time domain. Each synchronization node is configured to receive a time synchronization message containing a domain number corresponding to a time domain. The technical solution provided by the embodiment of the present disclosure realizes automatic network segmentation management through the domain numbers corresponding to the time domains in the time synchronization network, reduces the dependence on manual configuration, improves the network management efficiency, reduces the risk of mismatch or missing configuration, and ensures the normal and orderly work of the time synchronization network. BRIEF DESCRIPTION OF DRAWINGS
[0048] FIG. 1 is a structural schematic diagram of a time synchronization network according to an embodiment of the present disclosure;
[0049] FIG. 2 is a schematic diagram of the relationship between multiple layer domains according to an embodiment of the present disclosure;
[0050] FIG. 3 is a flowchart of a time synchronization method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and do not limit the present disclosure.
[0052] The technical solution of the present disclosure and how the technical solution of the present disclosure solves the above technical problems will be described in detail below through embodiments and in combination with the drawings. The following embodiments can be combined with each other, and the same or similar concepts or processes can not be described again in some embodiments.
[0053] In addition, the technical solutions described in the embodiments of the present disclosure can be combined arbitrarily without conflict.
[0054] The embodiment of the present disclosure provides a time synchronization network. FIG. 1 is a structural schematic diagram of a time synchronization network according to an embodiment of the present disclosure. As shown in FIG. 1, in the embodiment of the present disclosure, the time synchronization network is divided into multiple time domains (such as time domain 1, time domain 2, time domain 3 and time domain 4 in FIG. 1), and different time domains correspond to different domain numbers, wherein:
[0055] Each time domain includes one or more time servers 10 and one or more synchronization nodes 11;
[0056] Each time server 10 is configured to generate a time synchronization message containing a domain number corresponding to a time domain to which the time server 10 belongs.
[0057] Each synchronization node 11 is configured to receive a time synchronization message containing a domain number corresponding to a time domain to which the synchronization node 11 belongs.
[0058] It can be understood that in the embodiments of the present disclosure, the time synchronization network can be divided into multiple time domains, and each time domain is assigned a respective domain number, and each synchronization node 11 in a time domain receives only a time synchronization message containing a domain number corresponding to the time domain to which the synchronization node 11 belongs, so as to achieve the purpose of domain division.
[0059] It should be noted that in the embodiments of the present disclosure, each time domain is composed of one or more time servers 10 and one or more synchronization nodes 11, wherein the time server 10 refers to a time synchronization device or a primary reference time clock (PRTC) device or an enhanced PRTC (ePRTC), and the synchronization node 11 is a time synchronization device, a router, a base station, or the like. The specific time server 10, the synchronization node 11, and the respective number can be set according to actual needs and application scenarios, and the embodiments of the present disclosure are not limited.
[0060] It should be noted that in the embodiments of the present disclosure, in each time domain, the time synchronization message is generated by the time server 10 and sent to the synchronization node 11. The time synchronization message contains a domain number, which is used to distinguish the time domain. Accordingly, in a possible implementation, the time synchronization message received by each synchronization node 11 in each time domain can include a time synchronization message generated by one or more time servers 10 in the time domain and sent to the synchronization node, and the time synchronization message contains a domain number corresponding to the time domain.
[0061] In the embodiments of the present disclosure, each time synchronization message is a layer 2 message based on Ethernet or a layer 3 message based on Internet Protocol (IP). The specific time synchronization message can be set according to actual needs and application scenarios, and the embodiments of the present disclosure are not limited.
[0062] In the embodiments of the present disclosure, each time server 10 is configured to send the generated time synchronization message in a multicast manner or a unicast manner, that is, the time synchronization message can be multicast to all connected ports based on the multicast manner, or transmitted by a determined unicast path based on the unicast manner, and the embodiments of the present disclosure are not limited.
[0063] In the embodiments of the present disclosure, each synchronization node 11 is configured to determine the time synchronization message containing the domain number different from the corresponding domain number of the time domain to which the synchronization node 11 belongs as an invalid message, receive only the time synchronization message containing the corresponding domain number of the time domain to which the synchronization node 11 belongs, and perform time synchronization according to the time synchronization message.
[0064] For example, in the embodiments of the present disclosure, referring to FIG. 1, when the synchronization node 11 in the time domain 4 receives the time synchronization message sent by the synchronization node 11 in the time domain 1 and the synchronization nodes 11 in the time domains 2 and 3, the synchronization node 11 in the time domain 4 regards the time synchronization message as an invalid message and does not process the time synchronization message.
[0065] In the embodiments of the present disclosure, each synchronization node 11 is configured to generate a new time synchronization message containing the corresponding domain number of the time domain to which the synchronization node 11 belongs after performing time synchronization by using the received time synchronization message containing the corresponding domain number of the time domain to which the synchronization node 11 belongs, and send the new time synchronization message.
[0066] It can be understood that, in the embodiments of the present disclosure, the valid time synchronization message received by each synchronization node 11, that is, the time synchronization message containing the corresponding domain number of the time domain to which the synchronization node 11 belongs, in this case, a new time synchronization message can be generated and sent to other synchronization nodes 11, and the new time synchronization message still contains the corresponding domain number of the time domain to which the synchronization node 11 belongs.
[0067] In the embodiments of the present disclosure, each time server 10 is configured to allow receiving the time synchronization message containing the domain number different from the corresponding domain number of the time domain to which the time server 10 belongs, generate the time synchronization message containing the corresponding domain number of the time domain to which the time server 10 belongs, and send the time synchronization message.
[0068] It should be noted that, in the embodiments of the present disclosure, the time server 10 undertakes more complex boundary processing between domains. Each time server 10 is configured to allow receiving the time synchronization message containing the domain number different from the corresponding domain number of the time domain to which the time server 10 belongs, that is, the time synchronization message of the other time domain different from the time domain to which the time server 10 belongs, generate the time synchronization message containing the corresponding domain number of the time domain to which the time server 10 belongs after using and tracking the time synchronization message.
[0069] In the embodiments of the present disclosure, the plurality of time domains are divided into a plurality of layer domains, and each layer domain contains one or more of the plurality of time domains.
[0070] The domain number corresponding to the time domain in the next layer domain meets a predetermined rule with the domain number corresponding to the time domain in the previous layer domain.
[0071] The time server in the time domain in the next layer domain is configured to determine the received time synchronization message containing the domain number meeting the predetermined rule with the corresponding domain number of the time domain to which the time server belongs as the time synchronization message from the previous layer domain.
[0072] Exemplarily, in the embodiment of the present disclosure, the backbone synchronization network can be divided into multiple time domains to form a first layer domain, and each metropolitan area network is a respective time domain to form a second layer domain. The second layer domain is a next layer domain of the first layer domain, and the first layer domain is a previous layer domain of the second layer domain. In a specific implementation, the division of each domain can be consistent with the division of the transmission network management domain, for example, the division is performed according to the division of the backbone network and the local network, or the division is performed according to the boundary of each local network. The specific layer domain division manner and the number of layer domains are not limited in the embodiment of the present disclosure.
[0073] It should be noted that, in the embodiment of the present disclosure, as described above, for the division of the time domain and the division of the layer domain of the time synchronization network, specifically, the layer domain can be divided first, and then the time domain can be divided from the layer domain, or the time domain can be divided first, and then the layer domain can be divided based on the divided time domain, and the embodiment of the present disclosure is not limited.
[0074] It can be understood that, in the embodiment of the present disclosure, the domain number corresponding to the time domain in the next layer domain meets a predetermined rule with the domain number corresponding to the time domain in the previous layer domain. Based on this, the time server 10 in the time domain in the next layer domain can determine whether the received time synchronization message is from the previous layer domain based on the domain number corresponding to the time domain to which the time server 10 belongs and the domain number contained in the received time synchronization message.
[0075] In the embodiment of the present disclosure, the time server 10 in the time domain in the next layer domain is configured to perform time synchronization by using the time synchronization message from the previous layer domain in the case of using the Precision Time Protocol (PTP) time synchronization.
[0076] It should be noted that, in the embodiment of the present disclosure, the time server 10 undertakes more complex boundary processing between domains. Exemplarily, referring to FIG. 1, two layer domains are divided based on the time domains, wherein the time domain 1 is a layer domain alone, the time domain 2, the time domain 3, and the time domain 4 are another layer domain, the layer domain composed of the time domain 2, the time domain 3, and the time domain 4 is a next layer domain of the layer domain of the time domain 1, the domain number corresponding to the time domain 1 is M, the domain number corresponding to the time domain 4 is N, and in the case of using the PTP time synchronization of the time server 10 in the time domain 4, the time server 10 receives the time synchronization message from the previous layer domain and containing the domain number M corresponding to the time domain 1, and uses the time synchronization message for time synchronization. After time synchronization is locked, the time server 10 sends the time synchronization message containing the domain number N corresponding to the time domain to which the time server 10 belongs to the synchronization node 11 in the time domain 4.
[0077] It can be understood that in the embodiments of the present disclosure, the time server 10 in the time domain in the next layer domain tracks the time synchronization message originating from the upper layer domain, converts the time synchronization message corresponding to the domain number of the time domain to which the time server 10 belongs, realizes the conversion of the domain number, and achieves the purpose of layering.
[0078] It should be noted that in the embodiments of the present disclosure, in the case of directly using satellite time synchronization in the server in the time domain in a certain layer domain, the time synchronization message originating from the satellite is received for time synchronization.
[0079] In the embodiments of the present disclosure, the domain number corresponding to the time domain in the upper layer domain is greater than the domain number corresponding to the time domain in the next layer domain; or the domain number corresponding to the time domain in the next layer domain is greater than the domain number corresponding to the time domain in the upper layer domain.
[0080] It can be understood that in the embodiments of the present disclosure, for multiple layer domains, the domain number corresponding to the time domain in the upper layer domain and the domain number corresponding to the time domain in the next layer domain are required to meet a predetermined rule and have a certain size relationship, for example, the domain number corresponding to the time domain in the upper layer domain is less than the domain number corresponding to the time domain in the next layer domain, based on which, in the case that the time server 10 judges that the domain number contained in the received time synchronization message is less than the domain number corresponding to the time domain to which the time server 10 belongs, the time server 10 judges that the time synchronization message originates from the upper layer domain, and then the time server 10 can use and track the time synchronization message. In the case that the time server 10 judges that the domain number contained in the received time synchronization message is greater than the domain number corresponding to the time domain to which the time server 10 belongs, the time server 10 judges that the time synchronization message originates from the next layer domain, and then the time server 10 does not track and use this message, so that network inversion tracking can be effectively avoided.
[0081] In the case of containing multiple layer domains, for example, there are three layer domains, the domain numbers corresponding to the time domains in the respective layer domains are required to meet a predetermined rule and have a certain size relationship, for example, the domain number corresponding to the time domain in the uppermost layer domain is the smallest, which is a value of 10, the domain number corresponding to the time domain in the middle layer domain is a value of 20, and the domain number corresponding to the time domain in the lowermost layer domain is the largest, which is a value of 30. Then, whether the time synchronization message of the uppermost layer domain or the time synchronization message of the middle layer domain is received by the lowermost layer domain, it is judged that the size rule is met, and then the time synchronization message can be used and tracked.
[0082] It should be noted that in the embodiments of the present disclosure, the above-mentioned size relationship of the domain number is only an exemplary optional predetermined rule, and of course, other predetermined rules can be set according to actual needs and application scenarios as the basis for distinguishing the time synchronization messages of the upper and lower layer domains, and the embodiments of the present disclosure are not limited.
[0083] It should be noted that in the embodiments of the present disclosure, the time domain 1 in FIG. 1 is taken as a layer domain alone, and the time domain 2, the time domain 3 and the time domain 4 are taken as another layer domain, that is, only two layer domains are divided, and of course more layer domains can be divided. As shown in FIG. 2, N layer domains can be divided, N is an integer greater than or equal to 2, and the time server 10 in each layer domain can follow the above communication mechanism, allow to receive the time synchronization message from the upper layer domain, and continue to send to the lower layer domain after domain number conversion.
[0084] It should be noted that in the embodiments of the present disclosure, the time domain 1 in FIG. 1 is taken as a layer domain alone, and the time domain 2, the time domain 3 and the time domain 4 are taken as another layer domain, that is, only two layer domains are divided, and of course more layer domains can be divided. As shown in FIG. 2, N layer domains can be divided, N is an integer greater than or equal to 2, and the time server 10 in each layer domain can follow the above communication mechanism, allow to receive the time synchronization message from the upper layer domain, and continue to send to the lower layer domain after domain number conversion.
[0085] The embodiments of the present disclosure further provide a time synchronization method applied to the above-mentioned time synchronization network. The time synchronization network is divided into a plurality of time domains, different time domains correspond to different domain numbers, each time domain includes one or more time servers and one or more synchronization nodes. FIG. 3 is a flowchart of a time synchronization method provided by the embodiments of the present disclosure. As shown in FIG. 3, the time synchronization method mainly includes the following steps:
[0086] S101, generating, by each time server, a time synchronization message containing a domain number corresponding to a time domain to which the time server belongs;
[0087] S102, receiving, by each synchronization node, a time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs.
[0088] In the embodiments of the present disclosure, the time synchronization network can further perform the following step: determining, by each synchronization node, a time synchronization message containing a domain number different from a domain number corresponding to a time domain to which the synchronization node belongs, as an invalid message.
[0089] In embodiments of the present disclosure, the time synchronization network can further perform the following steps: utilizing each synchronization node, after time synchronization is performed by utilizing the received time synchronization message containing the domain number corresponding to the time domain to which the time synchronization message belongs, generating and sending a new time synchronization message containing the domain number corresponding to the time domain to which the time synchronization message belongs.
[0090] In embodiments of the present disclosure, the time synchronization network can further perform the following steps: utilizing each time server, receiving a time synchronization message containing a domain number different from the domain number corresponding to the time domain to which the time synchronization message belongs, generating and sending a time synchronization message containing the domain number corresponding to the time domain to which the time synchronization message belongs.
[0091] In embodiments of the present disclosure, in combination with the above-mentioned time synchronization network, the time domain in the time synchronization network can be further divided into multiple layer domains, each layer domain containing one or more time domains, and the domain number corresponding to the time domain in the next layer domain and the domain number corresponding to the time domain in the previous layer domain conform to a predetermined rule; based on this, the time synchronization network can further perform the following steps: utilizing the time server in the time domain in the next layer domain, determining the received time synchronization message containing a domain number different from the domain number corresponding to the time domain to which the time synchronization message belongs as a time synchronization message originating from the previous layer domain, if the domain number conforms to the predetermined rule.
[0092] In embodiments of the present disclosure, the domain number corresponding to the time domain in the previous layer domain is greater than the domain number corresponding to the time domain in the next layer domain; or, the domain number corresponding to the time domain in the next layer domain is greater than the domain number corresponding to the time domain in the previous layer domain.
[0093] In embodiments of the present disclosure, the time synchronization network can further perform the following steps: utilizing the time server in the time domain in the next layer domain, in the case of PTP time synchronization, performing time synchronization by utilizing the time synchronization message originating from the previous layer domain.
[0094] In embodiments of the present disclosure, the time synchronization network can further perform the following steps: utilizing the time server in the time domain in the next layer domain, determining the received time synchronization message containing a domain number different from the domain number corresponding to the time domain to which the time synchronization message belongs as an invalid message, if the domain number does not conform to the predetermined rule.
[0095] In embodiments of the present disclosure, each time synchronization message is a layer 2 message based on Ethernet or a layer 3 message based on IP.
[0096] In embodiments of the present disclosure, the time synchronization network can further perform the following steps: utilizing each time server, sending the generated time synchronization message in a multicast manner or a unicast manner.
[0097] It should be noted that the communication mechanism of each time server and each synchronization node, and the layer domain divided by the time domain, and the communication mechanism between the upper and lower layer domains are consistent with the above-mentioned content in the time synchronization network, and will not be repeated here.
[0098] The embodiment of the disclosure provides a computer program product, comprising a computer program, which is executed to realize the time synchronization method.
[0099] The embodiment of the disclosure provides a computer readable storage medium, which stores a computer program, and the computer program is executed to realize the time synchronization method. The computer readable storage medium can be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), a flash memory, a hard disk (Hard Disk Drive, HDD) or a solid state disk (Solid-State Drive, SSD); or a device including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.
[0100] Those skilled in the art should understand that the embodiments of the disclosure can be provided as a method, a system, or a computer program product. Therefore, the disclosure can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, the disclosure can take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to magnetic disk storage and optical storage, etc.) containing computer usable program code.
[0101] The disclosure is described with reference to the implementation flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the disclosure. It should be understood that each flow and / or block in the flowchart and / or block diagram can be realized by computer program instructions, and the combination of the flows and / or blocks in the flowchart and / or block diagram. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices produce a device for realizing the functions specified in one or more flows in the flowchart or one or more blocks in the block diagram.
[0102] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart or flow diagram block or blocks or in the block or blocks of the block diagrams.
[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart or flow diagram block or blocks or in the block or blocks of the block diagrams.
[0104] The above description is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present disclosure, which should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A time synchronization network, wherein, The time synchronization network is divided into multiple time domains, and different time domains correspond to different domain numbers; Each time domain includes one or more time servers and one or more synchronization nodes; Each time server is configured to generate a time synchronization message containing a domain number corresponding to a time domain to which the time server belongs; Each synchronization node is configured to receive a time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs.
2. The time synchronization network of claim 1, wherein Each synchronization node is configured to determine a time synchronization message containing a domain number different from a domain number corresponding to a time domain to which the synchronization node belongs as an invalid message.
3. The time synchronization network of claim 1 or 2, wherein Each synchronization node is configured to generate and send a new time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs after performing time synchronization using a received time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs.
4. The time synchronization network of any one of claims 1-3, wherein Each time server is configured to allow a time synchronization message containing a domain number different from a domain number corresponding to a time domain to which the time server belongs, generate a time synchronization message containing a domain number corresponding to a time domain to which the time server belongs, and send the time synchronization message.
5. The time synchronization network of any of claims 1-4, wherein, The multiple time domains are divided into multiple layer domains, and each layer domain contains one or more of the multiple time domains; A domain number corresponding to a time domain in a next layer domain meets a predetermined rule with a domain number corresponding to a time domain in a previous layer domain; A time server in a time domain in the next layer domain is configured to determine a time synchronization message containing a domain number different from a domain number corresponding to a time domain to which the time server belongs as a time synchronization message originating from the previous layer domain, if the time synchronization message meets the predetermined rule.
6. The time synchronization network of claim 5, wherein A domain number corresponding to a time domain in the previous layer domain is greater than a domain number corresponding to a time domain in the next layer domain; or a domain number corresponding to a time domain in the next layer domain is greater than a domain number corresponding to a time domain in the previous layer domain.
7. The time synchronization network of claim 5 or 6, wherein A time server in a time domain in the next layer domain is configured to perform time synchronization using a time synchronization message originating from the previous layer domain in a case of using a Precision Time Protocol (PTP) for time synchronization.
8. The time synchronization network of any one of claims 5-7, wherein A time server in a time domain in the next layer domain is configured to determine a time synchronization message containing a domain number different from a domain number corresponding to a time domain to which the time server belongs as an invalid message, if the time synchronization message does not meet the predetermined rule.
9. The time synchronization network of any one of claims 1-8, wherein Each time synchronization message is a second layer message based on Ethernet or a third layer message based on an Internet Protocol (IP).
10. The time synchronization network of any one of claims 1-9, wherein Each time server is configured to send a generated time synchronization message in a multicast manner or a unicast manner.
11. A time synchronization method applied to a time synchronization network, the time synchronization network being divided into multiple time domains, and different time domains corresponding to different domain numbers, each time domain including one or more time servers and one or more synchronization nodes; the method comprising: Each time server generates a time synchronization message containing a domain number corresponding to a time domain to which the time server belongs. Each synchronization node receives a time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs.
12. The method of claim 11, wherein, The method further comprises: Each synchronization node determines as invalid a time synchronization message containing a domain number different from a domain number corresponding to a time domain to which the synchronization node belongs.
13. The method of claim 11 or 12, wherein, The method further comprises: Each synchronization node, after performing time synchronization using a received time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs, generates and sends a new time synchronization message containing a domain number corresponding to a time domain to which the synchronization node belongs.
14. The method of any one of claims 11-13, wherein, The method further comprises: Each time server receives a time synchronization message containing a domain number different from a domain number corresponding to a time domain to which the time server belongs, and generates and sends a time synchronization message containing a domain number corresponding to a time domain to which the time server belongs.
15. The method of any one of claims 11-14, wherein, The multiple time domains are divided into multiple layer domains, each layer domain containing one or more of the multiple time domains; a domain number corresponding to a time domain in a next layer domain complies with a predetermined rule with a domain number corresponding to a time domain in a previous layer domain; the method further comprises: Each time server in a time domain in a next layer domain determines as a time synchronization message originating from a previous layer domain a received time synchronization message containing a domain number complying with the predetermined rule with a domain number corresponding to a time domain to which the time server belongs.
16. The method of claim 15, wherein A domain number corresponding to a time domain in a previous layer domain is greater than a domain number corresponding to a time domain in a next layer domain. Alternatively, a domain number corresponding to a time domain in a next layer domain is greater than a domain number corresponding to a time domain in a previous layer domain.
17. The method of claim 15 or 16, wherein, The method further comprises: Each time server in a time domain in a next layer domain performs time synchronization using a time synchronization message originating from a previous layer domain in a case of using a Precision Time Protocol (PTP) for time synchronization.
18. The method of any one of claims 15-17, wherein, The method further comprises: Each time server in a time domain in a next layer domain determines as invalid a received time synchronization message containing a domain number not complying with the predetermined rule with a domain number corresponding to a time domain to which the time server belongs.
19. The method of any one of claims 11-18, wherein Each time synchronization message is an Ethernet-based Layer 2 message or an Internet Protocol (IP)-based Layer 3 message.
20. The method of any one of claims 11-19, wherein, The method further comprises: Each time server sends the generated time synchronization message in a multicast manner or a unicast manner.
21. A computer readable storage medium having stored thereon a computer program, wherein, The computer program, when executed, implements the time synchronization method of any one of claims 11-20.
22. A computer program product comprising a computer program, wherein, The computer program, when executed, implements the time synchronization method of any one of claims 11-20.
Citation Information
Patent Citations
Time synchronization method and device and computer readable storage medium
CN114039690A
Time synchronization network and method, storage medium and computer program product
CN118826936A
Time sync device, time sync method, and program
US20220263593A1
System and method for providing quality inter-domain network time transport
US8416763B1
Packet processing method, electronic device, and storage medium
WO2024041360A1