CN114039691B - Time synchronization method, device, equipment and storage medium - Google Patents

Time synchronization method, device, equipment and storage medium Download PDF

Info

Publication number
CN114039691B
CN114039691B CN202111235721.7A CN202111235721A CN114039691B CN 114039691 B CN114039691 B CN 114039691B CN 202111235721 A CN202111235721 A CN 202111235721A CN 114039691 B CN114039691 B CN 114039691B
Authority
CN
China
Prior art keywords
port
priority
network
analog
initial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111235721.7A
Other languages
Chinese (zh)
Other versions
CN114039691A (en
Inventor
赵良
王光全
张贺
刘雅承
姚佳宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111235721.7A priority Critical patent/CN114039691B/en
Publication of CN114039691A publication Critical patent/CN114039691A/en
Application granted granted Critical
Publication of CN114039691B publication Critical patent/CN114039691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a time synchronization method, a device, equipment and a storage medium, relates to the technical field of communication, and solves the technical problem that the time source signal can not be normally transmitted and the effectiveness of time synchronization is affected when the time source signal is transmitted on the basis of a path with the minimum hop count in the prior art. The method comprises the following steps: receiving a priority replacement indication message sent by network management equipment, wherein the priority replacement indication message is used for indicating the BC network element to replace the default priority of the initial port with a first priority and/or replace the default priority of the analog port with a second priority; determining to replace the default priority of the initial port with the first priority and/or replace the default priority of the analog port with the second priority; the time source signal is determined to be preferentially received from the analog port.

Description

Time synchronization method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a time synchronization method, apparatus, device, and storage medium.
Background
Currently, in order to ensure time synchronization between a Boundary Clock (BC) network element and a Grandmaster (GM) server in a network, the GM server may send a time source signal to the BC network element based on different paths (or from different directions), but the BC network element may only select one path to receive the time source signal. Specifically, the BC network element selects a path with the smallest hop count (which may be understood as the number of BC network elements existing between the BC network element and the GM server) with the GM server, and determines the path as a path for receiving the time source signal, and further receives the time source signal from the path.
However, the path with the least number of hops may not be the path with the optimal transmission time source signal in the network, for example, the path with the least number of hops (or a certain link in the path) may have insufficient residual bandwidth, which results in that the time source signal cannot be normally transmitted, and the effectiveness of time synchronization is affected.
Disclosure of Invention
The invention provides a time synchronization method, a device, equipment and a storage medium, which solve the technical problem that the time source signal can not be normally transmitted and the effectiveness of time synchronization is affected when the time source signal is transmitted based on a path with the minimum hop count in the prior art.
In a first aspect, the present invention provides a time synchronization method, including: receiving a priority replacement indication message sent by network management equipment, wherein the priority replacement indication message comprises initial port information and/or analog port information, the initial port information comprises an identifier of an initial port and a first priority, the analog port information comprises an identifier of an analog port and a second priority, the first priority is lower than the second priority, the priority replacement indication message is used for indicating the BC network element to replace a default priority of the initial port with the first priority and/or replace a default priority of the analog port with the second priority, the initial port is a port of the BC network element in an initial time tracking path for receiving a time source signal, and the analog port is a port of the BC network element in an analog time tracking path for receiving the time source signal; determining to replace the default priority of the initial port with the first priority and/or replace the default priority of the analog port with the second priority; the time source signal is determined to be preferentially received from the analog port.
In a second aspect, the present invention provides a time synchronization method, including: acquiring network topology of a target network, precision time protocol (precision time protocol, PTP) port operation data of the target network, PTP configuration data of each of a plurality of ports included in the target network, and performance data of each of the plurality of ports, wherein the network topology is used for representing a connection relationship between a plurality of BC network elements included in the target network, the PTP port operation data is used for representing a sequence of transmission time source signals of the plurality of ports, PTP configuration data of one port is used for representing whether the port has a PTP function, and the performance data of one port includes at least one of the following: traffic, packet loss rate or light decay; determining an initial time tracking path based on the network topology, the PTP port operation data and the PTP configuration data of each of the plurality of ports, and determining a target port based on the performance data of each of the plurality of ports, wherein the target port is a port with performance data greater than a performance threshold value in the plurality of ports, and the duration of the performance data of the target port greater than the performance threshold value is greater than or equal to a duration threshold value, and the target port has a PTP function; the PTP function of the target port is disabled by simulation, and a simulated time tracking path is simulated based on the network topology, current PTP configuration data of each of the plurality of ports and PTP port operation data of the target network; determining to modify the priority of an initial port included in each BC network element of at least one BC network element and/or the priority of an analog port included in each BC network element so that the priority of the initial port is lower than the priority of the analog port, where the initial port is a port of the initial time tracking path where each BC network element receives the time source signal, where the analog port is a port of the analog time tracking path where each BC network element receives the time source signal, and where the at least one BC network element is a BC network element where a port of the plurality of BC network elements where the time source signal is received changes, where the analog time tracking path is different from the initial time tracking path, where the time source signal is not present in the analog time tracking path; and sending a priority replacement indication message to the at least one BC network element, wherein the priority replacement indication message includes initial port information and/or analog port information, the initial port information includes an identifier of the initial port and a first priority, the analog port information includes an identifier of the analog port and a second priority, the first priority is lower than the second priority, and the priority replacement indication message is used for instructing each BC network element to replace the default priority of the initial port with the first priority and/or replace the default priority of the analog port with the second priority.
In a third aspect, the present invention provides a time synchronizing device, comprising: a receiving module and a determining module; the receiving module is configured to receive a priority replacement indication message sent by a network management device, where the priority replacement indication message includes initial port information and/or analog port information, the initial port information includes an identifier of an initial port and a first priority, the analog port information includes an identifier of an analog port and a second priority, the first priority is lower than the second priority, and the priority replacement indication message is configured to instruct a boundary clock BC network element to replace a default priority of the initial port with the first priority and/or replace a default priority of the analog port with the second priority, where the initial port is a port in an initial time tracking path where the BC network element receives a time source signal, and the analog port is a port in an analog time tracking path where the BC network element receives the time source signal; the determining module is used for determining that the default priority of the initial port is replaced by the first priority and/or the default priority of the analog port is replaced by the second priority; the determining module is further configured to determine to receive the time source signal preferentially from the analog port.
In a fourth aspect, the present invention provides a time synchronization apparatus, comprising: the device comprises an acquisition module, a determination module, a processing module and a sending module; the acquisition module is configured to acquire network topology of a target network, accurate time protocol PTP port operation data of the target network, PTP configuration data of each of a plurality of ports included in the target network, and performance data of each of the plurality of ports, where the network topology is used to characterize a connection relationship between a plurality of boundary clock BC network elements included in the target network, the PTP port operation data is used to characterize a sequence of transmission time source signals of the plurality of ports, the PTP configuration data of one port is used to characterize whether the port has a PTP function, and the performance data of one port includes at least one of: traffic, packet loss rate or light decay; the determining module is configured to determine an initial time tracking path based on the network topology, the PTP port operation data, and PTP configuration data of each of the plurality of ports, and determine a target port based on performance data of each of the plurality of ports, where the target port is a port in which performance data of the plurality of ports is greater than a performance threshold, and a duration of the performance data of the target port greater than the performance threshold is greater than or equal to a duration threshold, and the target port has a PTP function; the processing module is used for simulating the PTP function of the target port to be disabled, and simulating a simulated time tracking path based on the network topology, the current PTP configuration data of each of the ports and the PTP port operation data of the target network; the determining module is further configured to determine, when the analog time tracking path is different from the initial time tracking path and the time source signal interruption does not exist in the analog time tracking path, to modify a priority of an initial port included in each BC network element and/or a priority of an analog port included in each BC network element so that the priority of the initial port is lower than the priority of the analog port, where the initial port is a port of the initial time tracking path, where each BC network element receives the time source signal, and where the analog port is a port of the analog time tracking path, where each BC network element receives the time source signal, and where the at least one BC network element is a BC network element, where a port of the plurality of BC network elements, where the time source signal is received, changes; the sending module is configured to send a priority replacement indication message to the at least one BC network element, where the priority replacement indication message includes initial port information and/or analog port information, the initial port information includes an identifier of the initial port and a first priority, the analog port information includes an identifier of the analog port and a second priority, and the first priority is lower than the second priority, and the priority replacement indication message is configured to instruct each BC network element to replace a default priority of the initial port with the first priority and/or replace a default priority of the analog port with the second priority.
In a fifth aspect, the present invention provides a server comprising: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the above-described optional time synchronization methods of the first aspect.
In a sixth aspect, the present invention provides an electronic device, comprising: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the above-described optional time synchronization methods of the second aspect.
In a seventh aspect, the invention provides a computer readable storage medium having instructions stored thereon which, when executed by an apparatus, cause the apparatus to perform any of the above-described first aspect, or to perform any of the above-described second aspect.
According to the time synchronization method, the time synchronization device, the time synchronization equipment and the storage medium, the BC network element can receive the priority replacement indication message sent by the network management equipment, namely, the BC network element is instructed to replace the default priority of the initial port with the first priority and/or replace the default priority of the analog port with the second priority. Because the initial port is an input port on the initial time tracking path determined by the network management equipment, the analog port is an input port of the same BC network element corresponding to the initial port on the better analog time tracking path simulated by the network management equipment, and the first priority is lower than the second priority. In this way, the network management device can instruct the BC network element to make the priority of the analog port higher than the priority of the initial port; and the BC network element may preferentially select the port with the higher priority (i.e., the analog port) to receive the time source signal. In the embodiment of the invention, the BC network element can receive the time source signal based on the analog port with higher priority, namely, the time source signal is transmitted based on the analog time synchronization path with better network quality, so that the normal transmission of the time source signal can be ensured, and the effectiveness of time synchronization is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic diagram of a network architecture of a time synchronization system according to an embodiment of the present invention;
fig. 2 is a schematic hardware diagram of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a time synchronization method according to an embodiment of the present invention;
FIG. 4 is a flowchart of another time synchronization method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an initial time tracking path and a simulated time tracking path according to an embodiment of the present invention;
FIG. 6 is a flowchart of another time synchronization method according to an embodiment of the present invention;
FIG. 7 is a flowchart of another time synchronization method according to an embodiment of the present invention;
FIG. 8 is a flowchart of another time synchronization method according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a time synchronization device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another time synchronization device according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of another time synchronization apparatus according to an embodiment of the present invention;
Fig. 12 is a schematic structural diagram of another time synchronization device according to an embodiment of the present invention.
Detailed Description
The time synchronization method, apparatus, device and storage medium provided by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The terms "first" and "second" and the like in the description and in the drawings are used for distinguishing between different objects and not for describing a particular sequential order of objects, e.g., a first priority and a second priority, etc. are used for distinguishing between different priorities and not for describing a particular sequential order of priorities.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment of the present invention is not to be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The term "and/or" as used herein includes the use of either or both of these methods.
In the description of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more.
Based on the description in the background art, when the time source signal is transmitted based on the path with the minimum hop count in the prior art, the time source signal may not be normally transmitted, and the effectiveness of time synchronization is affected. Based on the above, the embodiment of the invention provides a time synchronization method, a device, equipment and a storage medium, and a BC network element can receive a time source signal based on an analog port with higher priority, namely, transmit the time source signal based on an analog time synchronization path with better network quality, so that normal transmission of the time source signal can be ensured, and the effectiveness of time synchronization is improved.
The time synchronization method, device, equipment and storage medium provided by the embodiment of the invention can be applied to a time synchronization system, as shown in fig. 1, where the time synchronization system includes a network management device 101, a GM server 102, a BC network element 103, a BC network element 104, a BC network element 105, a BC network element 106 and a BC network element 107. In general, in practical applications, the connection between the above-mentioned devices or service functions may be a wireless connection, and for convenience and intuitiveness, the connection relationship between the devices is schematically shown by a solid line in fig. 1.
The network management device 101 is configured to obtain a network topology of a target network, for example, a connection relationship between 5 BC network elements shown in fig. 1. In the embodiment of the present invention, the network management device 101 is further configured to simulate and disable the PTP function of a certain port.
The GM server 102 is configured to provide time source signals to the 5 BC network elements shown in fig. 1, e.g., the GM server 102 may send the time source signals to the BC network element 103, so that the BC network element 103 may send the time source signals to the BC network element 104 and the BC network element 107.
The BC network element (including BC network element 103, BC network element 104, BC network element 105, BC network element 106, and BC network element 107) may receive the time source signal sent by other BC network elements (e.g., BC network element 104 receives BC network element 103) or GM server 102 (e.g., BC network element 103 receives GM server 102) so that the BC network element may synchronize time in GM server 102. In the embodiment of the present invention, the BC network element may further receive a priority replacement instruction message sent by the network management device 101, that is, instruct to replace the default priority of a certain port in the BC network element with the first priority or the second priority.
It should be noted that 1 network management device, 1 GM server, and 5 BC network elements shown in fig. 1 are only one example of the embodiments of the present invention. The embodiment of the invention does not specifically limit the number of network management equipment, GM servers and BC network elements.
It may be understood that the network management device for executing the time synchronization method provided by the embodiment of the present invention may be an electronic device, where the electronic device may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, and the like, and the electronic device may also be a server. The system can perform man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment and the like.
Fig. 2 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 2, the electronic device 20 includes a processor 201, a memory 202, a network interface 203, and the like.
The processor 201 is a core component of the electronic device 20, and the processor 201 is configured to run an operating system of the electronic device 20 and applications (including a system application and a third party application) on the electronic device 20, so as to implement a time synchronization method of the electronic device 20.
In an embodiment of the present invention, the processor 201 may be a central processing unit (central processing unit, CPU), microprocessor, digital signal processor (digital signal processor, DSP), application-specific integrated circuit (application-specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic device, transistor logic device, hardware components, or any combination thereof, capable of implementing or executing the various exemplary logic blocks, modules and circuits described in connection with the disclosure of embodiments of the present invention; a processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
Optionally, the processor 201 of the electronic device 20 includes one or more CPUs, either single-core or multi-core.
Memory 202 includes, but is not limited to, random access memory (random access memory, RAM), read Only Memory (ROM), erasable programmable read only memory (erasable programmable read-only memory, EPROM), flash memory, optical memory, or the like. The memory 202 stores the code of the operating system.
Optionally, the processor 201 implements the time synchronization method in the embodiment of the present invention by reading the instruction stored in the memory 202, or the processor 201 implements the time synchronization method provided in the embodiment of the present invention by an instruction stored internally. In the case where the processor 201 implements the time synchronization method provided by the embodiment of the present invention by reading the execution stored in the memory, the instruction for implementing the time synchronization method provided by the embodiment of the present invention is stored in the memory.
The network interface 203 is a wired interface such as a fiber optic distributed data interface (fiber distributed data interface, FDDI), gigabit Ethernet (GE) interface. Alternatively, the network interface 203 is a wireless interface. The network interface 203 is used for the electronic device 20 to communicate with other devices.
The memory 202 is configured to store a network topology of a target network, PTP port operation data of the target network, PTP configuration data of each of a plurality of ports included in the target network, and performance data of each of the plurality of ports. The at least one processor 201 further performs the method described in the embodiment of the present invention according to the network topology of the target network, PTP port operation data of the target network, PTP configuration data of each of a plurality of ports included in the target network, and performance data of each of the plurality of ports stored in the memory 202. For more details on the implementation of the above-described functions by the processor 201, reference is made to the description of the various method embodiments described below.
Optionally, the electronic device 20 further comprises a bus, and the processor 201 and the memory 202 are connected to each other via a bus 204 or connected to each other in other manners.
Optionally, the electronic device 20 further comprises an input-output interface 205, the input-output interface 205 being configured to connect with an input device, and receive a path optimization request (i.e. request to determine an analog time tracking path) input by a user through the input device. Input devices include, but are not limited to, a keyboard, touch screen, microphone, and the like. The input-output interface 205 is also used to connect with an output device to output the path optimization result of the processor 201 (i.e., the simulation simulates the simulated time tracking path). Output devices include, but are not limited to, displays, printers, and the like.
It should be understood that, in the embodiment of the present invention, the hardware structure of the BC network element is similar to the hardware structure of the electronic device 20 shown in fig. 2, and the description of the hardware structure of the BC network element may refer to the description of the hardware structure of the electronic device 20, which is not described in detail herein.
The time synchronization method, the device, the equipment and the storage medium provided by the embodiment of the invention are applied to an application scene that a certain BC network element needs to synchronize time in a GM server. Specifically, when the BC network element needs to acquire (or receive) the time source signal sent by the GM server, the transmission path for receiving the time source signal may be modified based on the time synchronization method provided by the embodiment of the present invention, specifically, the default priority of the initial port is replaced with the first priority, and/or the default priority of the analog port is replaced with the second priority, so that the BC network element may preferentially receive the time source signal from the analog port, so that normal transmission of the time source signal can be ensured, and the effectiveness of time synchronization is improved.
As shown in fig. 3, when the time synchronization method is applied to the above-described network management apparatus 101, the time synchronization method may include S101-S105.
S101, network management equipment acquires network topology of a target network, PTP port operation data of the target network, PTP data of each of a plurality of ports included in the target network and performance data of each of the plurality of ports.
The network topology is used for representing connection relations among a plurality of BC network elements included in the target network, the PTP port operation data is used for representing the sequence of the transmission time source signals of the ports, the PTP configuration data of one port is used for representing whether the port has a PTP function, and the performance data of one port comprises at least one of the following: traffic, packet loss rate, or light decay.
It should be understood that the target network may include the plurality of BC network elements and the plurality of ports, where the plurality of ports includes ports corresponding to each of the plurality of BC network elements, and specifically, one BC network element may correspond to at least one port.
For the network topology, the network management device may obtain, from the BC network elements, network element resource data, link resource data, port resource data, and the like of each BC network element, thereby obtaining the network topology. Specifically, the network element resource of a BC network element may include an identifier, a name, a model, etc. of the BC network element; the link resource data of one BC network element envelops the identification of the corresponding link of the BC network element, the corresponding link is used for connecting the BC network element and other BC network elements, and the specific link resource data also comprises which port in the BC network element is connected with the other BC network element; the port resource data of a BC network element includes the identification of the port corresponding to the BC network element, the name of the corresponding port, and so on. It should be understood that the connection relationship between the BC network elements may specifically include the connection relationship between the ports.
For the PTP port operation data, the network management device may obtain the operation states of the ports from the BC network elements, thereby obtaining the PTP port operation data. Specifically, for a BC network element, the network management device may obtain the running state of the port corresponding to the BC network element from the BC network element.
In the embodiment of the present invention, the running state of a port may include a master state (master), a slave state (slave), a standby state (passive), and the like. It should be appreciated that the active state is used to characterize that a port is the port that sent the time source signal; the slave state is used for representing that the port is a port for receiving a time source signal; the standby state is used to characterize that a port is standby, i.e. the port is temporarily not receiving a time source signal, but may be used next (or later) as a port receiving a time source signal.
It can be understood that whether a port has PTP function or not is that the port is capable of transmitting a time source signal or not. When one port has a PTP function, the port can transmit a time source signal, and the time source signal can reach a BC network element or a downstream BC network element corresponding to the port through the port; when a port does not have PTP function (i.e. the port is disabled), it indicates that the port cannot transmit a time source signal, and the time source signal cannot reach the BC network element or the downstream BC network element corresponding to the port through the port.
In one implementation of the embodiment of the present invention, the performance data of one port may further include a traffic rate, a bandwidth occupancy rate, and the like.
S102, the network management equipment determines an initial time tracking path based on network topology, PTP port operation data and PTP configuration data of each of the ports, and determines a target port based on performance data of each of the ports.
The target port is a port with performance data greater than a performance threshold among the plurality of ports, and the duration of the performance data of the target port greater than the performance threshold is greater than or equal to a duration threshold, and has a PTP function.
It can be understood that the network topology is the network topology of the target network, and the PTP port operation data is the operation data of the target network.
In connection with the above description of the embodiments, it should be understood that the destination port has PTP functionality, which illustrates that the destination port may transmit a time source signal. Performance data for a port is greater than a performance threshold, indicating that the port is transmitting poor quality signals (or data), and a duration of greater than or equal to the performance threshold indicates that the port is often transmitting poor quality signals, or that the poor quality condition has persisted for a long period of time. In the embodiment of the present invention, when the performance data of one of the ports is greater than the performance threshold and the duration of the performance data greater than the performance threshold is greater than or equal to the duration threshold, the network management device may determine the port as the target port.
Optionally, the network management device may further determine a port with a larger fiber asymmetry among the ports as a target port, or when there are multiple wavelength division multiplexing (wavelength division multiplexing, WDM) devices or optical transport network (optical transport network, OTN) devices that do not support 1588v2 functions between a certain port and the GM server, the network management device determines the port as the target port.
Referring to fig. 3, as shown in fig. 4, in an implementation manner of the embodiment of the present invention, the determining an initial time tracking path based on the network topology, PTP port operation data, and PTP configuration data of each of the plurality of ports may specifically include S1021-S1023.
S1021, the network management equipment determines that a connection relationship exists between the first BC network element and the second BC network element based on the network topology.
It should be appreciated that the first BC network element is one of the plurality of BC network elements described above, and the second BC network element is a BC network element of the plurality of BC network elements other than the first BC network element.
Specifically, the network management device may determine, based on the network topology, that the first port and the second port are connected by a first link, where the first port is a port included in the first BC network element, and the second port is a port included in the second BC network element, and the first link is used to characterize a connection relationship between the first BC network element and the second BC network element.
S1022, under the condition that the first port and the second port both have PTP functions, the network management equipment determines the running state of the first port and the running state of the second port.
In connection with the above description of the embodiments, it should be understood that the first port and the second port are provided with PTP functions, which means that the first port and the second port can both transmit time source signals.
S1023, in the case that the operation state of the first port is the active state and the operation state of the second port is the driven state, the network management device determines that the first link is a link included in the initial time tracking path.
It can be appreciated that the operating state of the first port being an active state indicates that the first port is an output port in the first BC network element, and the operating state of the second port being a passive state indicates that the second port is an input port in the second BC network element. In combination with the connection relationship between the first BC network element (specifically, the first port) and the second BC network element, it may be determined that the first BC network element, after receiving the time source signal, sends the time source signal to the second BC network element through the first port, and the second BC network element receives the time source signal through the second port.
Optionally, in the case that the operation state of the first port is the slave state and the operation state of the second port is the master state, the network management device may also determine that the first link is a link included in the initial time tracking path. I.e. the second port, after receiving the time source signal, transmits over the first link to the first port, which may receive the time source signal.
S103, the network management equipment simulates and simulates the PTP function of the target port to be enabled, and simulates a time tracking path based on network topology, current PTP configuration data of each of a plurality of ports and PTP port operation data of the target network.
In connection with the description of the above embodiments, it should be understood that the target port is a port of poor quality of the transmission signal, and that the poor quality condition may have persisted for a long period of time. In the embodiment of the invention, the network management equipment simulates and simulates to disable the PTP function of the target port, namely determining the time source signal for suspending the transmission of the target port.
It can be understood that the network management device simulates disabling the PTP function of the target port (i.e., if the PTP function of the target port is suspended, the PTP function of the target port may be subsequently restored) in the network management device, instead of actually disabling the PTP function of the target port (i.e., not stopping the PTP function of the target port). If the PTP function of the destination port is disabled, none of the destination port is thereafter available for transmitting the time source signal. In the embodiment of the invention, the network management equipment simulates and simulates the PTP function of the target port to enable, so that the target port can still transmit the time source signal in the subsequent actual operation process.
In combination with the description of the foregoing embodiment, the PTP configuration data of each of the plurality of ports is used to characterize whether the plurality of ports have PTP functions, and since the network management device simulates and enables the PTP functions of the target port at this time, the PTP configuration data of the target port changes, that is, the current PTP port configuration data of the target port characterizes that the target port does not have PTP functions. At this time, the PTP configuration data of each of the other ports (i.e., the ports other than the target port among the plurality of ports) is unchanged, and the current PTP configuration data of each of the other ports is the PTP configuration data of each of the other ports.
It should be noted that, the method for simulating the simulated time tracking path by the network management device based on the network topology, the current PTP configuration data of each of the plurality of ports and the PTP port operation data of the target network is the same or similar to the method for determining the initial time tracking path by the network management device based on the network topology, the PTP port operation data and the PTP configuration data of each of the plurality of ports, and is not described herein.
Exemplary, as shown in fig. 5, an example of an initial time tracking path and an analog time tracking path is provided in an embodiment of the present invention. Specifically, the fig. 5 includes 5 BC network elements, namely BC network element 301, BC network element 302, BC network element 303, BC network element 304, and BC network element 305. The solid line with an arrow in fig. 5 represents the initial time trace path, i.e., the initial time trace path includes link (1), link (2), link (3), and link (4); the dashed lines with arrows in fig. 5 represent the analog time tracking paths including link (3), link (4), link (5) and link (2).
And S104, under the condition that the simulated time tracking path is different from the initial time tracking path and no time source signal interruption exists in the simulated time tracking path, the network management equipment determines to modify the priority of the initial port included in each BC network element in at least one BC network element and/or the priority of the simulated port included in each BC network element so that the priority of the initial port is lower than the priority of the simulated port.
The initial port is a port of each BC network element in the initial time tracking path that receives the time source signal, the analog port is a port of each BC network element in the analog time tracking path that receives the time source signal, and the at least one BC network element is a BC network element in the plurality of BC network elements that changes in the port that receives the time source signal.
It should be appreciated that the simulated time tracking path is not the same as the initial time tracking path, indicating that the simulated time tracking path is not the same time tracking path as the initial time tracking path. The absence of a time source signal interruption in the analog time tracking path indicates that the analog time tracking path, and in particular, each BC network element and even each port included in the analog time tracking path, may transmit the time source signal. In the embodiment of the invention, when the analog time tracking path is different from the initial time tracking path and no time source signal interruption exists in the analog time tracking path, the analog time tracking path can replace the initial time tracking path, namely, a new path for transmitting the time source signal sent by the GM server is formed.
In one implementation manner of the embodiment of the present invention, the network management device may complete the modification process of the priority of a certain port (for example, the initial port) by modifying the value (local priority) of the priority of the initial port. In the embodiment of the present invention, a higher priority value may be defined to indicate a lower priority, for example, if the priority value is 126, 127, 128, 129, 130, the priority is sequentially decreased. I.e., the network management device may assign a higher priority value (e.g., 130) to the initial port and/or a lower priority value (e.g., 126) to the analog port, such that the initial port may have a lower priority than the analog port.
In an alternative implementation, each of the plurality of ports may correspond to a default priority, or a value of the default priority. The default priorities corresponding to each of the plurality of ports may be the same, i.e., the values of the default priorities may be the same (e.g., 128). In this way, the network management device may determine to modify only the priority of the initial port, for example, modify the value of the priority of the initial port to 129 or 130; or the network management device may determine to modify only the priority of the analog port, for example, modify the value of the priority of the analog port to 126 or 127; and the network management equipment can modify the priority of the initial port and the priority of the analog port at the same time so as to obtain that the priority of the initial port is lower than the priority of the analog port.
Alternatively, embodiments of the present invention may also define that a lower value of the priority indicates a lower priority, e.g., if the priority values are 126, 127, 128, 129, 130, then the priority is sequentially higher.
Illustratively, in connection with the example of fig. 5 above, since in the initial time tracking path, the port of the BC network element 305 that receives the time source signal is the first port, and the port of the BC network element 304 that receives the time source signal is the third port; and in the analog time tracking path, the port of the BC network element 305 that receives the time source signal is the second port, and the port of the BC network element 304 that receives the time source signal is the fourth port. In this way, the network management device determines the BC network element 304 and the BC network element 305 to be the at least one BC network element. And the network management device may further determine that the first port is an initial port in the BC network element 305, and the second port is an analog port in the BC network element 305; the third port is an initial port in the BC network element 304, and the fourth port is an analog port in the BC network element 304.
In connection with fig. 3, as shown in fig. 6, in an implementation manner of the embodiment of the present invention, in the case that the analog time tracking path is different from the initial time tracking path and there is no interruption of the time source signal in the analog time tracking path, the network management device determines to modify the priority of the initial port included in each BC network element in the at least one BC network element and/or the priority of the analog port included in each BC network element, including S1041-S1042.
S1041, the network management equipment adds a first identifier for an initial port included in each BC network element, and adds a second identifier for an analog port included in each BC network element.
It should be appreciated that the first identifier is used to indicate that the port is an initial port included in the BC network element and the second identifier is used to indicate that the port is an analog port included in the BC network element.
S1042, the network management device determines to modify the priority of each port to which the first identifier is added and/or the priority of each port to which the second identifier is added, so that the priority of each port to which the first identifier is added is lower than the priority of each port to which the second identifier is added.
It can be understood that the network management device determines to modify the priority of each port added with the first identifier, that is, determines to modify the priority of each initial port; the network management equipment determines to modify the priority of each port added with the second identifier, namely, determines to modify the priority of each analog port. And each initial port may have a lower priority than each analog port.
In an implementation manner of the embodiment of the present invention, after the network management device determines the target port, the network management device may also add the target identifier for the target port, so that the network management device may simulate and disable the PTP function of the port (e.g., the target port) to which the target identifier is added.
In another implementation manner of the embodiment of the present invention, the network management device may further delete the target identifier of the target port, so that the network management device may simulate and restore the PTP function of the target port.
Optionally, the network management device may further delete the first identifier of the initial port and delete the second identifier of the analog port.
S105, the network management equipment sends a priority replacement indication message to at least one BC network element.
The priority replacement indication message comprises initial port information and/or analog port information, the initial port information comprises an identifier of the initial port and a first priority, the analog port information comprises an identifier of the analog port and a second priority, the first priority is lower than the second priority, and the priority replacement indication message is used for indicating each BC network element in the at least one BC network element to replace the default priority of the initial port with the first priority and/or replace the default priority of the analog port with the second priority.
It should be appreciated that the each BC network element may determine a default priority for the initial port and a default priority for the analog port included in the each BC network element. Specifically, the BC network element may store the default priority value of the initial port and the default priority value of the analog port. The network management device sends the priority replacement indication message to the at least one BC network element to indicate that each BC network element respectively replaces the default priority of the initial port with the first priority and replaces the default priority of the analog port with the second priority, so that the priority of the initial port is lower than that of the analog port. Further, when the transmission of the time source signal is performed next or later, each BC network element may preferentially select the analog port, and receive the time source signal sent by the GM server based on the analog port.
The technical scheme provided by the embodiment at least has the following beneficial effects: as known from S101-S105, the network management device may acquire network topology of the target network, PTP port operation data of the target network, PTP configuration data of each of a plurality of ports included in the target network, and performance data of each of the plurality of ports, and determine an initial time tracking path and the target port. Then the network management equipment simulates the PTP function of the target port to disable, i.e. pause the transmission of the time source signal of the target port, i.e. the time source signal needs to be transmitted from other ports in the BC network element corresponding to the target port, and the network management equipment can simulate a new simulated time tracking path. And then, under the condition that the analog time tracking path is different from the initial time tracking path and the analog time tracking path has no time source signal interruption, the analog time tracking path and the initial time tracking path are not the same path, and any BC network element and any port included in the analog transmission path can transmit the time source signal, so that the network management equipment can determine that the analog time tracking path is an optimized time tracking path. The network management device determines to modify the priority of an initial port included in each BC network element and/or the priority of an analog port included in each BC network element in at least one BC network element (i.e., BC network elements in which ports receiving time source signals in the BC network elements are changed), so that the priority of the initial port is lower than the priority of the analog port. And then the network management device sends a priority replacement indication message to the at least one BC network element, that is, instructs each BC network element to replace the default priority of the initial port with the first priority and/or replace the default priority of the analog port with the second priority, and since the first priority is lower than the second priority, the priority of the initial port can be lower than the second priority, and further each BC network element can receive the time source signal based on the port with the higher priority, that is, the analog port. In the embodiment of the invention, the network management equipment compares the initial time tracking path with the simulated time tracking path, configures different priorities for the ports for receiving the time source signals, so that the BC network element can receive the time source signals based on the ports with higher priorities, the normal transmission of the time source signals can be ensured, and the time synchronization efficiency is improved.
In one implementation manner, the time synchronization method provided by the embodiment of the invention further comprises step A.
And step A, under the condition that the simulated time tracking path is the same as the initial time tracking path and/or the time source signal is interrupted in the simulated tracking path, the network management equipment determines to send out alarm information.
It should be understood that the alarm information may characterize the path optimization failure, i.e. the time source signal sent by the GM server still needs to be delivered to the BC network elements based on the initial time tracking path.
It will be appreciated that the simulated time tracking path is identical to the initial time tracking path, indicating that the simulated time tracking path and the initial time tracking path are identical, i.e. the simulated time tracking path has not changed. The presence of a time source signal disruption in the analog trace path may include the following two cases: one situation is that the analog time tracking path is not the same as the initial time tracking path, and a BC network element on the analog time tracking path is disconnected (and/or a port is disabled), so that the analog time tracking path cannot effectively transmit a time source signal, i.e., the time source signal is interrupted; in another case, the analog time tracking path and the initial time tracking path are the same time tracking path, and the target port is disabled from transmitting the time source signal temporarily because the target port is simulated to be enabled.
In an implementation manner of the embodiment of the present invention, the above-mentioned time synchronization method may further include step B-step C.
And B, when the performance data of the target port is smaller than or equal to the performance threshold value, the network management equipment determines whether a time source signal exists in the target port.
It should be appreciated that the performance data of the destination port is less than or equal to the performance data, indicating that the quality of the signal transmitted by the destination port is restored to normal. At this time, if the target port has a time source signal, which indicates that the target port has a PTP function, the BC network element corresponding to the target port may transmit the time source signal based on the target port; otherwise, that is, when the target port does not have the time source signal, it indicates that the target port may not have the PTP function, and the target port cannot transmit the time source signal.
And step C, under the condition that the time source signal exists at the target port, the network management equipment sends a priority recovery indication message to at least one BC network element.
The priority restoration instruction message is used for indicating that each BC network element in the at least one BC network element will restore the default priority of the initial port and/or restore the default priority of the analog port.
In connection with the description of the above embodiments, it should be understood that the destination port presence time source signal indicates that the destination port is PTP capable. At this time, the network management device may send the priority restoration instruction message to the at least one BC network element, that is, instruct the each BC network element to restore the default priority of each initial port and/or restore the default priority of each analog port.
It can be understood that the default priority of the initial port is recovered by replacing the priority of the initial port from the first priority to the default priority of the initial port; similarly, the default priority of the analog port is recovered by replacing the priority of the analog port from the second priority to the default priority of the analog port. Specifically, the process of recovering the default priority may also be implemented by modifying the value of the priority, which is not described herein.
As shown in connection with fig. 7, when the time synchronization method is applied to a BC network element (e.g., BC network element 107) described above, the time synchronization method may include S201-S203.
S201, the BC network element receives a priority replacement indication message sent by the network management equipment.
The priority replacement indication message includes initial port information and/or analog port information, the initial port information includes an identifier of an initial port and a first priority, the analog port information includes an identifier of an analog port and a second priority, the first priority is lower than the second priority, the priority replacement indication message is used for indicating the BC network element to replace a default priority of the initial port with the first priority and/or replace a default priority of the analog port with the second priority, the initial port is a port of the BC network element in an initial time tracking path for receiving a time source signal, and the analog port is a port of the BC network element in an analog time tracking path for receiving a time source signal.
In combination with the above description of the embodiment, the initial time tracking path is determined by the network management device based on the network topology of the target network, PTP port operation data of the target network, and PTP configuration data of each of a plurality of ports included in the target network, where the simulated time tracking path is simulated by the network management device based on the network topology, current PTP configuration data of each of the plurality of ports, and PTP port operation data when the PTP function of the target port is simulated to be disabled, and where the performance data of the target port is greater than a performance threshold, and a duration of the performance data of the target port is greater than or equal to a duration threshold.
It will be appreciated that the destination port in the initial time tracking path may be of poor quality for the signal to be transmitted and the poor quality condition has persisted for a long period of time, such that the initial time tracking path may not be able to effectively transmit the time source signal sent by the GM server, and in particular may not be able to be sent fully and effectively to each BC network element included in the network, such that the each BC network element may not be able to effectively synchronize the time in the GM server. Therefore, the network management equipment can simulate an optimal time tracking path (namely, the simulated time tracking path), and send a priority replacement indication message to the network management equipment, namely, the priority of the initial port in each BC network element is lower than that of the simulated port, and then each BC network element can select the simulated port with higher priority to transmit the time source signal.
S202, the BC network element determines to replace the default priority of the initial port with the first priority, and/or replace the default priority of the analog port with the second priority.
In connection with the description of the above embodiments, it should be appreciated that since the first priority is lower than the second priority, the priority of the initial port is lower than the priority of the analog port after the replacement of the priority.
In one implementation of the embodiment of the present invention, the BC network element determines to replace the default priority of the initial port with the first priority, and may specifically replace the value (e.g. 128) of the default priority with the value (e.g. 130) of the first priority; similarly, the BC network element may replace the default priority of the analog port with the second priority, or may specifically replace the default priority (i.e. 128) of the analog port with the value (e.g. 126) of the second priority.
And S203, the BC network element determines to receive the time source signal from the analog port preferentially.
It should be appreciated that since the priority of the analog port is higher than the priority of the initial port, the BC network element may determine to prioritize reception of the time source signal from the analog port.
It will be appreciated that the BC network element determines to receive time source signals preferentially from the analog port, i.e. indicating that the BC network element may also receive time source signals from the initial port after that (e.g. when the analog port is PTP capable).
Optionally, the BC network element updates the operational status of the analog port from a standby status to a slave status, and updates the operational status of the initial port from a slave status to a standby status.
The technical scheme provided by the embodiment at least has the following beneficial effects: as known from S201-203, the BC network element may receive a priority replacement instruction message sent by the network management device, that is, instruct the BC network element to replace the default priority of the initial port with the first priority and/or replace the default priority of the analog port with the second priority. Because the initial port is an input port on the initial time tracking path determined by the network management equipment, the analog port is an input port of the same BC network element corresponding to the initial port on the better analog time tracking path simulated by the network management equipment, and the first priority is lower than the second priority. In this way, the network management device can instruct the BC network element to make the priority of the analog port higher than the priority of the initial port; and the BC network element may preferentially select the port with the higher priority (i.e., the analog port) to receive the time source signal. In the embodiment of the invention, the BC network element can receive the time source signal based on the analog port with higher priority, namely, the time source signal is transmitted based on the analog time synchronization path with better network quality, so that the normal transmission of the time source signal can be ensured, and the effectiveness of time synchronization is improved.
Referring to fig. 7, as shown in fig. 8, the time synchronization method provided in the embodiment of the present invention further includes S204 to S205.
S204, the BC network element receives the priority restoration instruction message sent by the network management equipment.
The priority restoration instruction message is used for instructing the BC network element to restore the default priority of the initial port and/or restore the default priority of the analog port.
It should be understood that the BC network element restores the default priority of the initial port, that is, replaces the priority of the initial port with the default priority of the initial port from the first priority; similarly, restoring the default priority of the analog port is to replace the priority of the analog port with the default priority of the analog port from the second priority.
S205, the BC network element determines to receive the time source signal preferentially from the initial port.
The embodiment of the invention can divide the functional modules of the BC network element, the network management equipment and the like according to the method example, for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present invention, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
In the case of dividing the respective functional modules by the respective functions, fig. 9 shows a schematic diagram of one possible structure of the time synchronization device (specifically, BC network element) involved in the above embodiment, and as shown in fig. 9, the time synchronization device 40 may include: a receiving module 401 and a determining module 402.
A receiving module 401, configured to receive a priority replacement indication message sent by a network management device, where the priority replacement indication message includes initial port information and/or analog port information, the initial port information includes an identifier of an initial port and a first priority, the analog port information includes an identifier of an analog port and a second priority, the first priority is lower than the second priority, and the priority replacement indication message is configured to instruct a boundary clock BC network element to replace a default priority of the initial port with the first priority and/or replace a default priority of the analog port with the second priority, where the initial port is a port in an initial time tracking path where the BC network element receives a time source signal, and the analog port is a port in an analog time tracking path where the BC network element receives the time source signal.
A determining module 402, configured to determine to replace the default priority of the initial port with the first priority and/or replace the default priority of the analog port with the second priority.
The determining module 402 is further configured to determine to receive the time source signal preferentially from the analog port.
Optionally, the receiving module 401 is further configured to receive a priority restoration instruction message sent by the network management device, where the priority restoration instruction message is used to instruct the BC network element to restore the default priority of the initial port and/or restore the default priority of the analog port.
The determining module 402 is further configured to determine to receive the time source signal from the initial port preferentially.
In case of an integrated unit, fig. 10 shows a schematic diagram of one possible structure of the time synchronization device (in particular BC network element) involved in the above embodiment. As shown in fig. 10, the time synchronization device 50 may include: a processing module 501 and a communication module 502. The processing module 501 may be configured to control and manage the operation of the time synchronization device 50. The communication module 502 may be used to support communication of the time synchronization device 50 with other entities. Optionally, as shown in fig. 10, the time synchronization device 50 may further include a storage module 503 for storing program codes and data of the time synchronization device 50.
The processing module 501 may be a processor or controller (e.g., may be the processor 201 described above and shown in fig. 2). The communication module 502 may be a transceiver, a transceiver circuit, a communication interface, or the like (e.g., may be the network interface 203 described above and shown in fig. 2). The storage module 503 may be a memory (e.g., may be the memory 202 described above and shown in fig. 2).
Where the processing module 501 is a processor, the communication module 502 is a transceiver, and the storage module 503 is a memory, the processor, the transceiver, and the memory may be connected by a bus. The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, or the like. The buses may be divided into address buses, data buses, control buses, etc.
In the case of dividing the respective functional modules by the respective functions, fig. 11 shows a schematic diagram of a possible configuration of the time synchronization apparatus (specifically, the network management device) involved in the above embodiment, and as shown in fig. 11, the time synchronization apparatus 60 may include: an acquisition module 601, a determination module 602, a processing module 603, and a transmission module 604.
An obtaining module 601, configured to obtain a network topology of a target network, PTP port operation data of the target network, PTP configuration data of each of a plurality of ports included in the target network, and performance data of each of the plurality of ports, where the network topology is used to represent a connection relationship between a plurality of BC network elements of a boundary clock included in the target network, the PTP port operation data is used to represent a sequence of transmission time source signals of the plurality of ports, the PTP configuration data of one port is used to represent whether the port has a PTP function, and the performance data of one port includes at least one of the following: traffic, packet loss rate, or light decay.
A determining module 602, configured to determine an initial time tracking path based on the network topology, the PTP port operation data, and PTP configuration data of each of the plurality of ports, and determine a target port based on performance data of each of the plurality of ports, where the target port is a port in the plurality of ports whose performance data is greater than a performance threshold, and a duration of the performance data of the target port greater than the performance threshold is greater than or equal to a duration threshold, and the target port has a PTP function.
The processing module 603 is configured to simulate and disable the PTP function of the target port, and simulate a simulated time tracking path based on the network topology, current PTP configuration data of each of the plurality of ports, and PTP port operation data of the target network.
The determining module 602 is further configured to determine, when the analog time tracking path is different from the initial time tracking path and the time source signal interruption does not exist in the analog time tracking path, to modify a priority of an initial port included in each BC network element of at least one BC network element and/or a priority of an analog port included in each BC network element so that the priority of the initial port is lower than the priority of the analog port, where the initial port is a port of the initial time tracking path that receives the time source signal by each BC network element, where the analog port is a port of the analog time tracking path that receives the time source signal by each BC network element, and where the at least one BC network element is a BC network element that changes a port of the BC network elements that receives the time source signal.
A sending module 604, configured to send a priority replacement indication message to the at least one BC network element, where the priority replacement indication message includes initial port information and/or analog port information, the initial port information includes an identifier of the initial port and a first priority, the analog port information includes an identifier of the analog port and a second priority, and the first priority is lower than the second priority, and the priority replacement indication message is configured to instruct each BC network element to replace a default priority of the initial port with the first priority and/or replace a default priority of the analog port with the second priority.
Optionally, the processing module 603 is further configured to add a first identifier to the initial port included in each BC network element, and add a second identifier to the analog port included in each BC network element.
The determining module 602 is specifically configured to determine to modify the priority of each port adding the first identifier and/or the priority of each port adding the second identifier, so that the priority of each port adding the first identifier is lower than the priority of each port adding the second identifier.
Optionally, the determining module 602 is further configured to determine to issue an alarm information if the analog time tracking path is identical to the initial time tracking path and/or if the time source signal is interrupted in the analog time tracking path.
Optionally, the determining module 602 is further configured to determine whether the time source signal exists on the target port when the performance data of the target port is less than or equal to the performance threshold.
The sending module 604 is further configured to send a priority restoration instruction message to the at least one BC network element in the presence of the time source signal on the target port, where the priority restoration instruction message is used to instruct each BC network element in the at least one BC network element to restore the default priority of the initial port and/or restore the default priority of the analog port.
In the case of an integrated unit, fig. 12 shows a schematic diagram of a possible configuration of the time synchronization device (in particular, the network management device) according to the above-described embodiment. As shown in fig. 12, the time synchronization device 70 may include: a processing module 701 and a communication module 702. The processing module 701 may be configured to control and manage the actions of the time synchronization device 70. The communication module 702 may be used to support communication of the time synchronization device 70 with other entities. Optionally, as shown in fig. 12, the time synchronization device 70 may further include a storage module 703 for storing program codes and data of the time synchronization device 70.
The processing module 701 may be a processor or a controller (e.g., may be the processor 201 described above and shown in fig. 2). The communication module 702 may be a transceiver, a transceiver circuit, a communication interface, or the like (e.g., may be the network interface 203 described above and shown in fig. 2). The memory module 703 may be a memory (e.g., may be the memory 202 described above and shown in fig. 2).
When the processing module 701 is a processor, the communication module 702 is a transceiver, and the storage module 703 is a memory, the processor, the transceiver and the memory may be connected through a bus. The bus may be a PCI bus or an EISA bus, etc. The buses may be divided into address buses, data buses, control buses, etc.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber terminal line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (15)

1. A time synchronization method applied to a BC network element having a port for receiving a time source signal in an analog time tracking path and an initial time tracking path in a plurality of boundary clock BC network elements, comprising:
receiving a priority replacement indication message sent by network management equipment under the condition that an analog time tracking path is different from an initial time tracking path and no time source signal is interrupted in the analog time tracking path, wherein the priority replacement indication message comprises initial port information and/or analog port information, the initial port information comprises an identifier of an initial port and a first priority, the analog port information comprises an identifier of an analog port and a second priority, the first priority is lower than the second priority, the priority replacement indication message is used for indicating the BC network element to replace the default priority of the initial port with the first priority, and/or replace the default priority of the analog port with the second priority, the initial port is a port of the BC network element in the initial time tracking path, which is a port of the analog time source signal, in the analog time tracking path, the initial time tracking path is a network topology based on a target network, the BC PTP network, the target time tracking path and a plurality of ports running on the target network, the BC PTP network element is a performance-based on the multiple-port configuration PTP network, the performance of the PTP network is greater than the performance-based on the multiple-port-simulated PTP network, the performance of the PTP network is greater than the performance threshold, the PTP network is determined by the performance of the PTP network is greater than the performance-based on the respective PTP network is configured by the performance of the PTP network, the performance data for a port includes at least one of: traffic, packet loss rate or light decay;
Determining to replace a default priority of the initial port with the first priority and/or replace a default priority of the analog port with the second priority;
determining to prioritize reception of the time source signal from the analog port.
2. The time synchronization method according to claim 1, characterized in that the method further comprises:
receiving a priority restoration instruction message sent by the network management equipment, wherein the priority restoration instruction message is used for instructing the BC network element to restore the default priority of the initial port and/or restore the default priority of the analog port;
determining to receive the time source signal preferentially from the initial port.
3. A time synchronization method applied to network management equipment, comprising:
acquiring network topology of a target network, accurate time protocol (PTP) port operation data of the target network, PTP configuration data of each of a plurality of ports included in the target network and performance data of each of the plurality of ports, wherein the network topology is used for representing connection relations among a plurality of Boundary Clock (BC) network elements included in the target network, the PTP port operation data is used for representing sequence of transmission time source signals of the plurality of ports, the PTP configuration data of one port is used for representing whether the port has a PTP function or not, and the performance data of one port comprises at least one of the following: traffic, packet loss rate or light decay;
Determining an initial time tracking path based on the network topology, the PTP port operation data and the PTP configuration data of each of the plurality of ports, and determining a target port based on the performance data of each of the plurality of ports, wherein the target port is a port with performance data greater than a performance threshold value in the plurality of ports, and the duration of the performance data of the target port greater than the performance threshold value is greater than or equal to a duration threshold value, and the target port has a PTP function;
simulation simulates a PTP function of the target port to be enabled, and simulates a simulated time tracking path based on the network topology, current PTP configuration data of each of the plurality of ports and PTP port operation data of the target network;
determining to modify the priority of an initial port included in each BC network element of at least one BC network element and/or the priority of an analog port included in each BC network element so that the priority of the initial port is lower than the priority of the analog port, where the initial port is a port of the initial time tracking path where each BC network element receives the time source signal, and the analog port is a port of the analog time tracking path where each BC network element receives the time source signal, where the at least one BC network element is a BC network element where the ports of the plurality of BC network elements that receive the time source signal change, when the analog time tracking path is different from the initial time tracking path and the time source signal is not present in the analog time tracking path;
And sending a priority replacement indication message to the at least one BC network element, where the priority replacement indication message includes initial port information and/or analog port information, the initial port information includes an identifier of the initial port and a first priority, the analog port information includes an identifier of the analog port and a second priority, and the first priority is lower than the second priority, and the priority replacement indication message is configured to instruct each BC network element to replace a default priority of the initial port with the first priority and/or replace a default priority of the analog port with the second priority.
4. A time synchronization method according to claim 3, wherein said determining to modify the priority of an initial port included in each BC network element and/or the priority of an analog port included in each BC network element in the at least one BC network element in the case where the analog time tracking path is different from the initial time tracking path and the time source signal interruption is not present in the analog time tracking path comprises:
adding a first identifier for an initial port included in each BC network element, and adding a second identifier for an analog port included in each BC network element;
Determining to modify the priority of each port adding the first identity and/or the priority of each port adding the second identity such that the priority of each port adding the first identity is lower than the priority of each port adding the second identity.
5. A time synchronization method according to claim 3, characterized in that the method further comprises:
and determining to send out alarm information under the condition that the simulated time tracking path is identical to the initial time tracking path and/or the time source signal is interrupted in the simulated time tracking path.
6. The time synchronization method according to any one of claims 3-5, characterized in that the method further comprises:
determining whether the time source signal exists on the target port when the performance data of the target port is less than or equal to the performance threshold;
and under the condition that the time source signal exists in the target port, sending a priority restoration instruction message to the at least one BC network element, wherein the priority restoration instruction message is used for instructing each BC network element in the at least one BC network element to restore the default priority of the initial port and/or restore the default priority of the analog port.
7. A time synchronization device applied to a BC network element having a port for receiving a time source signal in an analog time tracking path and an initial time tracking path in a plurality of boundary clock BC network elements, comprising: a receiving module and a determining module;
the receiving module is configured to receive a priority replacement indication message sent by a network management device when an analog time tracking path is different from an initial time tracking path and there is no interruption of a time source signal in the analog time tracking path, where the priority replacement indication message includes initial port information and/or analog port information, the initial port information includes an identifier of an initial port and a first priority, the analog port information includes an identifier of an analog port and a second priority, the first priority is lower than the second priority, the priority replacement indication message is configured to instruct a boundary clock BC network element to replace a default priority of the initial port with the first priority, and/or replace a default priority of the analog port with the second priority, the initial port is a port in the initial time tracking path where the BC network element receives a time source signal, the analog port is a port in the analog time tracking path where the BC network element receives a time source signal, the initial time tracking path is a network BC network based on a target network, the target network port is configured by the network management device, the target network access point is configured to operate with a plurality of PTP network access points, and the PTP network access point is configured to enable the respective network access point to be configured to be a plurality of target network access point data access point, and the PTP network access point is configured to be capable of operating with a plurality of the target access point based on the respective network access point and the multiple virtual access point data network access point, and the duration that the performance data of the target port is greater than the performance threshold is greater than or equal to a duration threshold, the performance data of one port comprising at least one of: traffic, packet loss rate or light decay;
The determining module is configured to determine to replace a default priority of the initial port with the first priority and/or replace a default priority of the analog port with the second priority;
the determining module is further configured to determine to receive the time source signal preferentially from the analog port.
8. The time synchronization device of claim 7, wherein,
the receiving module is further configured to receive a priority restoration instruction message sent by the network management device, where the priority restoration instruction message is used to instruct the BC network element to restore the default priority of the initial port and/or restore the default priority of the analog port;
the determining module is further configured to determine to receive the time source signal preferentially from the initial port.
9. A time synchronization device, comprising: the device comprises an acquisition module, a determination module, a processing module and a sending module;
the acquiring module is configured to acquire network topology of a target network, PTP port operation data of an accurate time protocol of the target network, PTP configuration data of each of a plurality of ports included in the target network, and performance data of each of the plurality of ports, where the network topology is used to represent a connection relationship between a plurality of boundary clock BC network elements included in the target network, the PTP port operation data is used to represent a sequence of transmission time source signals of the plurality of ports, PTP configuration data of one port is used to represent whether the port has a PTP function, and performance data of one port includes at least one of the following: traffic, packet loss rate or light decay;
The determining module is configured to determine an initial time tracking path based on the network topology, the PTP port operation data, and PTP configuration data of each of the plurality of ports, and determine a target port based on performance data of each of the plurality of ports, where the target port is a port where performance data of the plurality of ports is greater than a performance threshold, and a duration where performance data of the target port is greater than the performance threshold is greater than or equal to a duration threshold, and the target port has a PTP function;
the processing module is used for simulating and disabling the PTP function of the target port, and simulating a time tracking path based on the network topology, the current PTP configuration data of each of the plurality of ports and the PTP port operation data of the target network;
the determining module is further configured to determine, when the analog time tracking path is different from the initial time tracking path and the time source signal interruption does not exist in the analog time tracking path, to modify a priority of an initial port included in each BC network element and/or a priority of an analog port included in each BC network element so that the priority of the initial port is lower than that of the analog port, where the initial port is a port of the initial time tracking path, where each BC network element receives the time source signal, and the analog port is a port of the analog time tracking path, where each BC network element receives the time source signal, and where the at least one BC network element is a BC network element, where ports of the plurality of BC network elements, where the time source signal is received, are changed;
The sending module is configured to send a priority replacement indication message to the at least one BC network element, where the priority replacement indication message includes initial port information and/or analog port information, the initial port information includes an identifier of the initial port and a first priority, the analog port information includes an identifier of the analog port and a second priority, the first priority is lower than the second priority, and the priority replacement indication message is configured to instruct each BC network element to replace a default priority of the initial port with the first priority and/or replace a default priority of the analog port with the second priority.
10. The time synchronization device of claim 9, wherein the time synchronization device comprises a clock,
the processing module is further configured to add a first identifier to an initial port included in each BC network element, and add a second identifier to an analog port included in each BC network element;
the determining module is specifically configured to determine to modify the priority of each port to which the first identifier is added and/or the priority of each port to which the second identifier is added, so that the priority of each port to which the first identifier is added is lower than the priority of each port to which the second identifier is added.
11. The time synchronization device of claim 9, wherein the time synchronization device comprises a clock,
the determining module is further configured to determine to issue an alarm message when the analog time tracking path is the same as the initial time tracking path and/or when the time source signal is interrupted in the analog time tracking path.
12. The time synchronization device according to any one of the claims 9-11, wherein,
the determining module is further configured to determine whether the time source signal exists in the target port when the performance data of the target port is less than or equal to the performance threshold;
the sending module is further configured to send a priority restoration instruction message to the at least one BC network element when the time source signal exists on the destination port, where the priority restoration instruction message is used to instruct each BC network element in the at least one BC network element to restore the default priority of the initial port and/or restore the default priority of the analog port.
13. A server, the server comprising:
a processor;
a memory configured to store the processor-executable instructions;
Wherein the processor is configured to execute the instructions to implement the time synchronization method of claim 1 or 2.
14. An electronic device, the electronic device comprising:
a processor;
a memory configured to store the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the time synchronization method of any one of claims 3-6.
15. A computer readable storage medium having instructions stored thereon, which, when executed by a device, cause the device to perform the time synchronization method of claim 1 or 2, or to perform the time synchronization method of any of claims 3-6.
CN202111235721.7A 2021-10-22 2021-10-22 Time synchronization method, device, equipment and storage medium Active CN114039691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111235721.7A CN114039691B (en) 2021-10-22 2021-10-22 Time synchronization method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111235721.7A CN114039691B (en) 2021-10-22 2021-10-22 Time synchronization method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114039691A CN114039691A (en) 2022-02-11
CN114039691B true CN114039691B (en) 2023-05-16

Family

ID=80141775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111235721.7A Active CN114039691B (en) 2021-10-22 2021-10-22 Time synchronization method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114039691B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192913A (en) * 2007-08-08 2008-06-04 中兴通讯股份有限公司 A system and method for clock synchronization and clock switch over optical transmission network
CN113259038A (en) * 2021-04-29 2021-08-13 北京邮电大学 Time synchronization method, node, device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856360B (en) * 2012-11-28 2019-01-25 中兴通讯股份有限公司 A kind of synchronization link fault detection method and device
CN104410170A (en) * 2014-12-19 2015-03-11 重庆大学 SDN (software definition network) technology applicable to power communication
CN106899370A (en) * 2015-12-18 2017-06-27 中兴通讯股份有限公司 A kind of clock chain circuit changing method, device and base station
CN106358260B (en) * 2016-11-08 2019-04-16 山东大学 A kind of massive wireless sensor method for synchronizing time
CN109218007B (en) * 2017-07-03 2022-11-01 中兴通讯股份有限公司 Path selection method, device and storage medium
US11543852B2 (en) * 2019-11-07 2023-01-03 Mellanox Technologies, Ltd. Multihost clock synchronization

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192913A (en) * 2007-08-08 2008-06-04 中兴通讯股份有限公司 A system and method for clock synchronization and clock switch over optical transmission network
CN113259038A (en) * 2021-04-29 2021-08-13 北京邮电大学 Time synchronization method, node, device and storage medium

Also Published As

Publication number Publication date
CN114039691A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
CN114040467B (en) Transmission path determining method, device, server and storage medium
US10031880B2 (en) Network device and information transmission method
WO2015170201A1 (en) A method for robust ptp synchronization with default 1588v2 profile
CN104301142A (en) Backup method and device for configuration files
CN105407117A (en) Distributed data backup method, device and system
US20200177454A1 (en) Method and apparatus for communication system upgrade via phased adoption
CN113364638A (en) Method, electronic device and storage medium for EPA networking
CN110891006B (en) HINOC communication method, HINOC communication device, HINOC communication equipment and computer readable storage medium
CN114024876A (en) Network dial testing method, device, equipment and storage medium
CN102946305A (en) Method and equipment for synchronizing link state protocol data unit (LSP)
CN113572561B (en) Method, apparatus, communication system and medium for clock synchronization
CN114039691B (en) Time synchronization method, device, equipment and storage medium
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN108667640B (en) Communication method and device, and network access system
CN102916885A (en) MSTP-based (Multiple Spanning Tree Protocol) network topology convergence method, equipment and system
US10187365B2 (en) Method for exchanging numerical data frames and associated communication system
CN113346974B (en) Method, apparatus, communication system and storage medium for clock synchronization
CN116418791A (en) Firmware upgrading method, firmware upgrading system, server and storage medium
CN113315594A (en) Time synchronization method, device and storage medium
CN114143330A (en) Configuration method, device and system of time server
CN111416695A (en) Data transmission method, terminal and network side equipment
CN103051568A (en) Message transmission method, device and switch
US11936490B2 (en) L2 switch, communication method, and communication program
WO2023050936A1 (en) Communication method, apparatus and system
CN114301865B (en) Table entry management method, apparatus, network device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant