WO2023273627A1 - 选源方法、装置、***及存储介质 - Google Patents
选源方法、装置、***及存储介质 Download PDFInfo
- Publication number
- WO2023273627A1 WO2023273627A1 PCT/CN2022/092359 CN2022092359W WO2023273627A1 WO 2023273627 A1 WO2023273627 A1 WO 2023273627A1 CN 2022092359 W CN2022092359 W CN 2022092359W WO 2023273627 A1 WO2023273627 A1 WO 2023273627A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network device
- clock
- parameter value
- parameter
- port
- Prior art date
Links
- 238000010187 selection method Methods 0.000 title claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 94
- 238000004891 communication Methods 0.000 claims abstract description 7
- 238000012545 processing Methods 0.000 claims description 54
- 238000012544 monitoring process Methods 0.000 claims description 49
- 238000004590 computer program Methods 0.000 claims description 15
- 230000009191 jumping Effects 0.000 abstract description 4
- 230000001360 synchronised effect Effects 0.000 description 33
- 238000010586 diagram Methods 0.000 description 12
- 230000003287 optical effect Effects 0.000 description 10
- 230000006870 function Effects 0.000 description 6
- 230000003068 static effect Effects 0.000 description 6
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
- H04J3/0667—Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0641—Change of the master or reference, e.g. take-over or failure of the master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0685—Clock or time synchronisation in a node; Intranode synchronisation
Definitions
- the present application relates to the communication field, in particular to a source selection method, device, system and storage medium.
- two network devices are currently selected as synchronization tracking sources in the network.
- the two synchronous tracking sources one of them is the active synchronous tracking source, and the other is the standby synchronous tracking source.
- the active synchronous tracking source is normal, the backup synchronous tracking source and all other network devices in the network except the two network devices track the active synchronous tracking source, so as to synchronize the clocks of each network device in the network.
- the active synchronization tracking source fails, the other network devices track the standby synchronization tracking source, so that the clocks of the network devices in the network continue to be synchronized.
- the standby synchronous tracking source and the other network devices re-track the active synchronous tracking source.
- the clock of the primary synchronization tracking source is reset, and each network device in the network tracks the primary synchronization tracking source, so that the clock of each network device jumps.
- the present application provides a source selection method, device, system and storage medium, so as to avoid clock jumps of network equipment. Described technical scheme is as follows:
- the present application provides a source selection method.
- the second network device modifies the parameter value corresponding to the synchronization source selection parameter of the first network device to a first parameter value, and the first parameter value is better than the parameter value corresponding to the synchronization source selection parameter of the second network device.
- the clock of the second network device may be reset, and the network devices in the network will perform a source selection operation.
- the first network device since the first parameter value is better than the parameter value corresponding to the synchronization source selection parameter of the second network device, the first network device based on the first parameter value and the parameter value corresponding to the synchronization source selection parameter of the second network device When selecting the source, the first network device will continue to be selected as the synchronization tracking source, thereby preventing the first network device from tracking the second network device, so as to avoid clock jumps of the first network device.
- the second network device since the first parameter value is better than the parameter value corresponding to the synchronization source selection parameter of the second network device, the second network device will also choose to track the first network device when performing source selection, so that the second network device's The clock is synchronized with the clock of the first network device. as well as,
- the third network device when the first network device cannot track the clock of the second network device, the third network device will choose to track the clock of the first network device.
- the third network device selects the source, and may continue to select the first network device as the synchronization tracking source, thereby preventing the clock of the third network device from jumping, or may select the first network device
- the second network is used as a synchronization tracking source, but because the clock of the second network device is synchronized with the clock of the first network device, the clock jump of the third network device is also avoided.
- the synchronization source selection parameter of the first network device includes a local priority localPriority parameter of the first network device, and the first parameter value includes a first priority parameter value.
- the first network device modifies the second priority parameter value corresponding to the localPriority parameter of the first network device to the first priority parameter value. In this way, by modifying the parameter value corresponding to the localPriority parameter of the first network device, when the first network device can track the second network device, the first network device can continue to be a synchronization tracking source, thereby avoiding the clock of the network device in the network jump occurs.
- the second priority parameter value is inferior to the priority parameter value corresponding to the localPriority parameter of the first port
- the first port is a port on the first network device that communicates with the second network device.
- the first priority parameter value is better than the priority parameter value corresponding to the localPriority parameter of the first port, where the first port is a port on the first network device that communicates with the second network device. In this way, since the first priority parameter value is better than the priority parameter value corresponding to the localPriority parameter of the first port, it is ensured that the first network device is selected as the synchronization tracking source when the first network device selects a source.
- the second priority parameter value is equal to the priority parameter value corresponding to the localPriority parameter of the second network device.
- the first network device selects the synchronization tracking source based on the first priority parameter value, so that the first network device can select the first network device as the synchronization tracking source based on the first priority parameter value .
- the first network device when it receives the message from the second network device through the first port, it compares the value of the first priority parameter with the priority parameter corresponding to the localPriority parameter of the first port value, the first port is the port on the first network device that communicates with the second network device.
- the first network device selects the first network device as a synchronization tracking source. Therefore, the first network device is prevented from tracking the clock of the second network device, and the clock jump of the first network device is avoided.
- the synchronization source selection parameter of the first network device includes a clock quality parameter of the first network device, and the first parameter value includes a first clock quality parameter value.
- the first network device modifies the clock quality parameter value corresponding to the clock quality parameter of the first network device to the first clock quality parameter value. In this way, by modifying the clock quality parameter value corresponding to the clock quality parameter of the first network device, so that when the first network device can track the second network device, the network devices in the network can select the first network device to continue as a synchronization tracking source, Thus, clock jumps of network devices in the network are avoided.
- the clock quality parameter of the first network device includes one or more of a clock level, a clock precision, and a logarithm value of a clock deviation of the first network device.
- the first network device selects the synchronization tracking source based on the first clock quality parameter value, so that the first network device can select the first network device as the synchronization tracking source based on the first clock quality parameter value .
- the first network device receives a notification message sent by the second network device, where the notification message includes a second clock quality parameter value, and the second clock quality parameter value is the clock of the second network device The clock quality parameter value corresponding to the quality parameter.
- the first network device selects the first network device as a synchronization tracking source. Therefore, the first network device is prevented from tracking the clock of the second network device, and the clock jump of the first network device is avoided.
- the number of synchronization source selection parameters of the first network device is one or more.
- the present application provides a source selection method, in which the network device adjusts the default value of the local priority localPriority parameter of the network device itself to be inferior to the default value of the localPriority parameter value of the port of the network device .
- the network device selects the source based on the adjusted default value of the localPriority parameter of the network device itself and the default value of the localPriority parameter value of the port of the network device.
- the default value of the localPriority parameter of the network device itself is adjusted to be inferior to the default value of the localPriority parameter value of the port of the network device, when selecting a source, it will choose to track the existing active synchronous tracking source in the network, and track the main The clock of the source is tracked with synchronization, thereby avoiding clock jumps of network devices in the network.
- the network device includes multiple ports, and the localPriority parameter values of the multiple ports have the same default value.
- the network device sends a notification message after performing source selection, and the notification message includes a parameter value of a synchronization source selection parameter of the network device.
- the clock of the network device After the network device selects the source, the clock of the network device has been synchronized with the clock of the active synchronization tracking source, so the network device sends a notification message after the source selection.
- the clocks of other network devices will not jump.
- the present application provides a source selection method.
- the first network device tracks the first clock source
- the first network device sets The state of the first port is a monitoring state
- the first port is a port on the first network device that communicates with the first clock source, and the first port in the monitoring state does not participate in source selection.
- the first network device can track the first clock source, keep the state of the first port as the monitoring state.
- the state of the first port is kept as the monitoring state, because the first port in the monitoring state does not participate in the selection In this way, the first network device will not switch the tracked clock source back to the first clock source, which reduces the frequency of clock source switching and increases network stability.
- the first network device tracks the second clock source.
- the first network device after the first network device tracks the second clock source, when the first network device cannot track the second clock source, the first network device sets the state of the first port back to the non-monitoring state , the first port in the non-monitoring state participates in source selection. In this way, the first network device switches the tracked clock source back to the first clock source only when the first network device cannot track the second clock source, which reduces the frequency of clock source switching and increases network stability.
- the present application provides a device for selecting a source, configured to execute the method in the first aspect or any possible implementation manner of the first aspect.
- the apparatus includes a unit for executing the method in the first aspect or any possible implementation manner of the first aspect.
- the present application provides a device for selecting a source, configured to execute the method in the second aspect or any possible implementation manner of the second aspect.
- the apparatus includes a unit for executing the second aspect or the method in any possible implementation manner of the second aspect.
- the present application provides a device for selecting a source, configured to execute the method in the third aspect or any possible implementation manner of the third aspect.
- the apparatus includes a unit for executing the third aspect or the method in any possible implementation manner of the third aspect.
- the present application provides a device for selecting a source, and the device includes a processor and a memory.
- the processor and the memory may be connected through an internal connection.
- the memory is used to store a program, and the processor is used to execute the program in the memory, so that the device completes the method in the first aspect or any possible implementation manner of the first aspect.
- the present application provides a device for selecting a source, and the device includes a processor and a memory.
- the processor and the memory may be connected through an internal connection.
- the memory is used to store programs, and the processor is used to execute the programs in the memory, so that the device completes the second aspect or the method in any possible implementation manner of the second aspect.
- the present application provides a device for selecting a source, and the device includes a processor and a memory.
- the processor and the memory may be connected through an internal connection.
- the memory is used to store a program, and the processor is used to execute the program in the memory, so that the device completes the third aspect or the method in any possible implementation manner of the third aspect.
- the present application provides a computer program product, the computer program product includes a computer program stored in a computer-readable storage medium, and the calculation program is loaded by a processor to implement the above-mentioned first aspect and the first aspect.
- the present application provides a computer-readable storage medium for storing a computer program, and the computer program is loaded by a processor to execute the first aspect, the second aspect, the third aspect, and the first aspect Any possible implementation manner, any possible implementation manner of the second aspect, or any possible implementation manner of the third aspect.
- the present application provides a chip, including a memory and a processor, the memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to implement the first aspect, the second aspect, and the second aspect.
- the third aspect any possible implementation of the first aspect, any possible implementation of the second aspect, or any possible implementation of the third aspect.
- the present application provides a source selection system, the system includes the device described in the fourth aspect and the device described in the fifth aspect; or, the system includes the device described in the seventh aspect and the device described in the first aspect The device of eight aspects.
- FIG. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application.
- FIG. 2 is a schematic diagram of another network architecture provided by an embodiment of the present application.
- Fig. 3 is a flow chart of a source selection method provided by the embodiment of the present application.
- Fig. 4 is a flow chart of comparing data sets provided by the embodiment of the present application.
- Fig. 5 is a flowchart of another comparison data set provided by the embodiment of the present application.
- Fig. 6 is a flow chart of another source selection method provided by the embodiment of the present application.
- Fig. 7 is a flow chart of another source selection method provided by the embodiment of the present application.
- Fig. 8 is a schematic structural diagram of a source selection device provided by an embodiment of the present application.
- Fig. 9 is a schematic structural diagram of another source selection device provided by the embodiment of the present application.
- Fig. 10 is a schematic structural diagram of another source selection device provided by the embodiment of the present application.
- Fig. 11 is a schematic structural diagram of another source selection device provided by the embodiment of the present application.
- Fig. 12 is a schematic structural diagram of another source selection device provided by the embodiment of the present application.
- Fig. 13 is a schematic structural diagram of another source selection device provided by the embodiment of the present application.
- Fig. 14 is a schematic structural diagram of a source selection system provided by an embodiment of the present application.
- the embodiment of the present application provides a network architecture 100, including:
- the first network device 101 and the second network device 102 the first network device 101 communicates with the second network device 102 .
- the first network device 101 keeps track of the clock of the second network device 102 .
- the first network device 101 tracking the clock of the second network device 102 refers to: the first network device 101 synchronizes its own time with the time of the second network device 102, and/or, the first network device 101 synchronizes its own frequency with the time of the second network device 102 The frequency of the second network device 102 is synchronized.
- the second network device 102 is the active synchronization tracking source
- the first network device 101 is the standby synchronization tracking source. Therefore, when selecting the synchronization tracking source, the first network device 101 selects the second network device 102 as the synchronization tracking source, and tracks the clock of the second network device 102 .
- the network architecture 100 further includes at least one third network device 103, and for any third network device in the at least one third network device 103, the third network device communicates with the first network device 101, and , the third network device communicates with the second network device 102 .
- the third network device selects the second network device 102 as the synchronization tracking source and tracks the clock of the second network device 102 .
- the first network device 101 includes at least one synchronization source selection parameter.
- the at least one synchronization source selection parameter in the first network device 101 includes a local priority (localPriority) parameter and/or at least one first clock parameter and the like.
- the at least one synchronization source parameter is a parameter of the clock of the first network device 101 .
- the larger the priority parameter value corresponding to the localPriority parameter the better the priority parameter value corresponding to the localPriority parameter, or the smaller the priority parameter value corresponding to the localPriority parameter, indicating the priority parameter corresponding to the localPriority parameter.
- the first network device 101 includes at least one port, and each port also includes a localPriority parameter.
- the default value corresponding to the localPriority parameter of the first network device 101 is inferior to the default value corresponding to the localPriority parameter of each port.
- the default value corresponding to the localPriority parameter of the first network device 101 is called the second priority parameter value, that is, the second priority parameter value is inferior to the default value corresponding to the localPriority parameter of each port.
- the priority parameter value corresponding to the localPriority parameter is smaller, it means that the priority parameter value corresponding to the localPriority parameter is better, and the second priority parameter value corresponding to the localPriority parameter of the first network device 101 is "255", and the The default value corresponding to the localPriority parameter of each port is "128", so that the second priority parameter value corresponding to the localPriority parameter of the first network device 101 is inferior to the default value corresponding to the localPriority parameter of each port.
- the at least one first clock parameter includes one or more of the following clock parameters: at least one first clock quality parameter, a first clock identifier, a first clock priority parameter, and the like.
- the first clock identifier is a clock identifier of the first network device 101
- the first clock priority parameter is a clock priority parameter of the first network device 101, and the like.
- the clock priority parameter of the first network device 101 may also be referred to as a priority parameter 2 (Priority2) of the first network device 101 .
- the at least one first clock quality parameter includes one or more of the following clock quality parameters: a first clock level, a first clock precision, a first clock skew logarithmic value, and the like.
- the first network device 101 includes a first local data set, and the first local data set includes one or more of the following parameter values: the second priority parameter value corresponding to the localPriority parameter of the first network device 101 and the at least one first clock parameter The parameter value corresponding to each first clock parameter in . That is to say: the first local data set includes one or more of the following parameter values: the second priority parameter value corresponding to the localPriority parameter of the first network device 101, the parameter value corresponding to the first clock level, and the parameter value corresponding to the first clock accuracy The parameter value, the parameter value corresponding to the first clock deviation log value, the parameter value corresponding to the first clock priority parameter, the first clock identifier, and the like.
- the first local data set includes the second priority parameter value "255", the parameter value A1 corresponding to the first clock level, the parameter value A2 corresponding to the first clock accuracy, and the parameter value A3 corresponding to the logarithmic value of the first clock bias , the parameter value A4 corresponding to the first clock priority parameter and the first clock identifier ID1.
- the second network device 102 also includes at least one synchronization source selection parameter.
- the at least one synchronization source selection parameter in the second network device 102 includes a localPriority parameter and/or at least one second clock parameter and the like.
- the at least one synchronization source parameter is a parameter of the clock of the second network device 102 .
- the second network device 102 includes at least one port, and each port also includes a localPriority parameter.
- the priority parameter value corresponding to the localPriority parameter of the second network device 102 is equal to the default value corresponding to the localPriority parameter of each port.
- the priority parameter value corresponding to the localPriority parameter of the second network device 102 is "128”
- the default value corresponding to the localPriority parameter of each port is "128” so that the priority parameter corresponding to the localPriority parameter of the second network device 102
- the level parameter value is equal to the default value corresponding to the localPriority parameter of each port.
- the at least one second clock parameter includes one or more of the following clock parameters: at least one second clock quality parameter, a second clock identifier and/or a second clock priority parameter, and the like.
- the second clock identifier is a clock identifier of the second network device 102
- the second clock priority parameter is a clock priority parameter of the second network device 102, and the like.
- the clock priority parameter of the second network device 102 may also be referred to as the priority parameter 2 of the second network device 102 .
- the at least one second clock quality parameter includes one or more of the following clock quality parameters: a second clock level, a second clock precision, and/or a second clock skew logarithmic value, and the like.
- the second network device 102 includes a second local data set, and the second local data set includes one or more parameter values as follows: the priority parameter value corresponding to the localPriority parameter of the second network device 102 and the at least one second clock parameter The parameter value corresponding to each second clock parameter. That is to say: the second local data set includes one or more of the following parameter values: the priority parameter value corresponding to the localPriority parameter of the second network device 102, the parameter value corresponding to the second clock level, and the parameter value corresponding to the second clock accuracy , the parameter value corresponding to the second clock deviation log value, the parameter value corresponding to the second clock priority parameter, the second clock identifier, and the like.
- the second local data set includes the priority parameter value "128" corresponding to the localPriority parameter of the second network device 102, the parameter value B1 corresponding to the second clock level, the parameter value B2 corresponding to the second clock precision, the second clock The parameter value B3 corresponding to the deviation log value, the parameter value B4 corresponding to the second clock priority parameter, and the second clock identifier ID2.
- the third network device For each third network device in the at least one third network device 103, the third network device also includes at least one synchronization source selection parameter.
- the at least one synchronization source selection parameter in the third network device includes a localPriority parameter and/or at least one third clock parameter and the like.
- the at least one synchronization source parameter is a parameter of the clock of the third network device.
- the third network device includes at least one port, and each port also includes a localPriority parameter.
- the default value corresponding to the localPriority parameter of the third network device is inferior to the default value corresponding to the localPriority parameter of each port. For example, suppose that the priority parameter value corresponding to the localPriority parameter of the third network device is "255", and the default value corresponding to the localPriority parameter of each port is "128", so that the localPriority parameter of the third network device corresponds to The value of the priority parameter is inferior to the corresponding default value of the per-port localPriority parameter.
- the at least one third clock parameter includes one or more of the following clock parameters: at least one third clock quality parameter, a third clock identifier and/or a third clock priority parameter, and the like.
- the third clock identifier is a clock identifier of the third network device
- the third clock priority parameter is a clock priority parameter of the third network device.
- the clock priority parameter of the third network device may also be referred to as the priority parameter 2 of the third network device.
- the at least one third clock quality parameter includes one or more of the following clock quality parameters: a third clock level, a third clock precision, and/or a third clock skew logarithm, and the like.
- the third network device includes a third local data set, and the third local data set includes one or more of the following parameter values: the priority parameter value corresponding to the localPriority parameter of the third network device and the at least one third clock parameter The parameter value corresponding to each third clock parameter. That is to say: the third local data set includes one or more of the following parameter values: the priority parameter value corresponding to the localPriority parameter of the third network device, the parameter value corresponding to the third clock level, and the parameter value corresponding to the third clock precision , the parameter value corresponding to the third clock deviation log value, the parameter value corresponding to the third clock priority parameter, the third clock identifier, and the like.
- the third local data set includes the priority parameter value "255" corresponding to the localPriority parameter of the third network device, the parameter value C1 corresponding to the third clock level, the parameter value C2 corresponding to the third clock precision, the third clock The parameter value C3 corresponding to the deviation log value, the parameter value C4 corresponding to the third clock priority parameter, and the third clock identifier ID3.
- the parameter value corresponding to the first clock parameter, the parameter value corresponding to the second clock parameter and the parameter value corresponding to the third clock parameter The parameter values are equal. That is to say: the parameter value A1 corresponding to the first clock level, the parameter value B1 corresponding to the second clock level, and the parameter value C1 corresponding to the third clock level are equal; the parameter value A2 corresponding to the first clock precision and the parameter value A2 corresponding to the second clock precision.
- the parameter value B2 corresponding to the third clock precision is equal to the parameter value C2 corresponding to the third clock precision; the parameter value A3 corresponding to the first clock deviation log value, the parameter value B3 corresponding to the second clock deviation log value, and the parameter value corresponding to the third clock deviation log value C3 is equal.
- the priority parameter value corresponding to the first clock priority parameter is equal to the priority parameter value corresponding to the second clock priority parameter. But both are better than the priority parameter value corresponding to the third clock priority parameter. That is to say, the parameter value A4 corresponding to the first clock priority parameter is equal to the parameter value B4 corresponding to the second clock priority parameter, but both A4 and B4 are better than the parameter value C4 corresponding to the third clock priority parameter.
- the sequence between the first clock identifier of the first network device 101 and the second clock identifier of the second network device 102 is that the second clock identifier of the second network device 102 is ranked before the first clock identifier of the first network device 101 .
- the embodiment of the present application provides a network architecture 200, including:
- the first clock source 201 is the main clock source
- the second clock source 202 is the backup clock source.
- the first network device 201 tracks the first clock source 201, and tracks the second clock source 202 when the first clock source 201 cannot be tracked.
- the so-called tracking of the first clock source 201 by the first network device 203 means that the first network device 203 synchronizes its own time with the time of the first clock source 201 .
- the first network device 203 receives the first synchronization message sent by the first clock source 201, the first synchronization message includes the time of the first clock source 201, and the time of the first network device 203 is compared to the time of the first network device 203 based on the time included in the first synchronization message to sync.
- the network architecture 200 also includes a second network device 204 and at least one third network device 205, the second network device 204 communicates with the second clock source 202, the first network device 203 communicates with the second clock source 203 through the second port The network device 204 communicates. For each third network device of the at least one third network device 205 , the third network device communicates with the first network device 203 , and the third network device 205 communicates with the second network device 204 .
- the first network device 203 tracks the first clock source 201
- the second network device 204 and each third network device also tracks the first clock source.
- the first network device 203 sends a second synchronization packet, where the second synchronization packet includes the time of the first network device 203 performing time synchronization.
- the second network device 204 receives the second synchronization packet, and synchronizes the time of the second network device 204 based on the time included in the second synchronization packet.
- the third network device receives the second synchronization packet, and synchronizes the time of the third network device based on the time included in the second synchronization packet.
- the second network device 204 tracks the second clock source 202, and the first network device 101 and each third network device also track the second clock source 202.
- the so-called tracking of the second clock source 202 by the second network device 204 means that the second network device 204 synchronizes its own time with the time of the second clock source 202 .
- the second network device 204 receives the third synchronization message sent by the second clock source 202, the third synchronization message includes the time of the second clock source 202, and the time of the second network device 204 is compared based on the time included in the third synchronization message to sync.
- the so-called tracking of the second clock source 202 by the first network device 203 and each third network device refers to: the second network device 204 sends the fourth synchronization message, and the fourth synchronization message includes the clock source of the second network device 204 for time synchronization. time.
- the first network device 203 receives the fourth synchronization packet sent by the second network device 204, and synchronizes the time of the first network device 203 based on the time included in the fourth synchronization packet.
- the third network device receives the fourth synchronization packet sent by the second network device 204, and synchronizes the time of the third network device based on the time included in the fourth synchronization packet.
- the second network device 204 tracks the second clock source 203 .
- the first network device 203 and each third network device also track the second clock source 202, that is, the first network device 203 and each third network device receive the fourth synchronization message sent by the second network device 204, based on The time in the fourth synchronization packet is time synchronized.
- the first network device 201 can track the first clock source 201, if the first network device 203 stops tracking the second clock source 202 and starts to track the first clock source 201, the second network device 204 and each third network The device also tracks the first clock source 201, so that the network device switches the tracked clock source, which increases the frequency of switching the tracked clock source and affects the stability of the network.
- an embodiment of the present application provides a method 300 for source selection, which is applied to the network architecture 100 shown in FIG. 1 .
- the first network device cannot track the second network device
- the first network device is selected as the synchronization tracking source by modifying the value of the localPriority parameter of the first network device.
- the method 300 includes:
- Step 301 the first network device tracks the clock of the second network device.
- the second network device is the main synchronization tracking source
- the first network device is the standby synchronization tracking source, so each network device in the network architecture selects the second network device as the synchronization tracking source, and tracks the first Two network device clocks.
- the time of the first network device is synchronized with the time of the second network device, and/or, the frequency of the first network device is synchronized with the frequency of the second network device.
- the operation for the first network device to select the second network device as the synchronization tracking source is:
- the first network device receives the first notification message sent by the second network device through the first port, and the first notification message includes a parameter value corresponding to each second clock parameter in at least one second clock parameter of the second network device , the first port is a port on the first network device that communicates with the second network device.
- Acquire a first data set where the first data set includes a priority parameter value corresponding to the localPriority parameter of the first port and a parameter value corresponding to each second clock parameter in the first notification message.
- the first network device receives through the second port a second notification message sent by a third network device communicating with the first network device, and the second notification message includes each of at least one third clock parameter of the third network device
- the parameter value corresponding to the third clock parameter, and the second port is a port on the first network device that communicates with the third network device.
- the first network device selects a source through a specified source selection algorithm based on the first local data set, the first data set and the second data set, and selects the second network device as a synchronization tracking source.
- the first data set includes one or more of the following parameter values: a priority parameter value corresponding to the localPriority parameter of the first port, a parameter value corresponding to the second clock level, a parameter value corresponding to the second clock precision, The parameter value corresponding to the second clock deviation log value, the parameter value corresponding to the second clock priority parameter, the second clock identifier, and the like.
- the first data set includes the priority parameter value "128" corresponding to the localPriority parameter of the first port, the parameter value B1 corresponding to the second clock level, the parameter value B2 corresponding to the second clock precision, and the logarithmic value of the second clock skew
- the second data set includes one or more of the following parameter values: a priority parameter value corresponding to the localPriority parameter of the second port, a parameter value corresponding to the third clock level, a parameter value corresponding to the third clock precision, The parameter value corresponding to the third clock deviation log value, the parameter value corresponding to the third clock priority parameter, the third clock identifier, and the like.
- the second data set includes the priority parameter value "128" corresponding to the localPriority parameter of the second port, the parameter value C1 corresponding to the third clock level, the parameter value C2 corresponding to the third clock accuracy, and the third logarithmic value of the clock skew
- the above source selection operation is as follows: for any two data sets in the first local data set, the first data set and the second data set, assuming that the first local data set and the first data set are taken as an example, compare The first local data set and the first data set to select an optimal data set from the two data sets. Then compare the selected data set with the second data set to select an optimal data set from the two data sets, and use the network device corresponding to the optimal data set as a synchronization tracking source.
- the first local data set includes one or more of the following parameter values: the second priority parameter value corresponding to the localPriority parameter of the first network device, the parameter value corresponding to the first clock level, the parameter value corresponding to the first clock accuracy, the first The parameter value corresponding to the logarithmic value of the clock deviation, the parameter value corresponding to the first clock priority parameter, the first clock identifier, and the like.
- the first local data set includes the second priority parameter value "255", the parameter value A1 corresponding to the first clock level, the parameter value A2 corresponding to the first clock accuracy, and the parameter value A3 corresponding to the logarithmic value of the first clock bias , the parameter value A4 corresponding to the first clock priority parameter and the first clock identifier ID1.
- the first network device compares the selected first data set and the second data set according to the above-mentioned 11-15 process, so as to select an optimal data set from the two data sets, and the selected optimal data set
- the data set is a first data set.
- the first network device Since the optimal data set finally selected by the first network device from the first local data set, the first data set and the second data set is the first data set, the first network device transfers the second network device corresponding to the first data set to As a synchronization tracking source, and track the clock of the second network device.
- the first network device will also send a third notification packet to the second network device and the third network device, where the third notification packet includes a parameter value corresponding to each first clock parameter in the at least one first clock parameter. Therefore, the second network device and the third network device also perform source selection in the same way as the first network device, and both select the second network device as a synchronization tracking source.
- the second network device receives the third notification message sent by the first network device through a third port
- the third port is a port on the second network device that communicates with the first network device.
- the third data set includes the priority parameter value corresponding to the localPriority parameter of the third port and the parameter value corresponding to each first clock parameter in the third notification message.
- the second network device receives the second notification message sent by the third network device communicating with the second network device through the fourth port, and the fourth port is a port on the first network device communicating with the third network device.
- the third data set includes one or more of the following parameter values: a priority parameter value corresponding to the localPriority parameter of the third port, a parameter value corresponding to the first clock level, a parameter value corresponding to the first clock precision, The parameter value corresponding to the first clock deviation log value, the parameter value corresponding to the first clock priority parameter, the first clock identifier, and the like.
- the third data set includes the priority parameter value "128" corresponding to the localPriority parameter of the third port, the parameter value A1 corresponding to the first clock level, the parameter value A2 corresponding to the first clock precision, and the logarithmic value of the first clock deviation
- the fourth data set includes one or more of the following parameter values: a priority parameter value corresponding to the localPriority parameter of the fourth port, a parameter value corresponding to the third clock level, a parameter value corresponding to the third clock precision, The parameter value corresponding to the third clock deviation log value, the parameter value corresponding to the third clock priority parameter, the third clock identifier, and the like.
- the fourth data set includes the priority parameter value "128" corresponding to the localPriority parameter of the fourth port, the parameter value C1 corresponding to the third clock level, the parameter value C2 corresponding to the third clock accuracy, and the third logarithmic value of the clock skew
- the second local data set of the second network device includes one or more of the following parameter values: the priority parameter value corresponding to the localPriority parameter of the second network device, the parameter value corresponding to the second clock level, and the parameter value corresponding to the second clock accuracy , the parameter value corresponding to the second clock deviation log value, the parameter value corresponding to the second clock priority parameter, the second clock identifier, and the like.
- the second local data set includes the priority parameter value "128" corresponding to the localPriority parameter of the second network device, the parameter value B1 corresponding to the second clock level, the parameter value B2 corresponding to the second clock precision, and the second clock offset
- the second local data set and the third data set are compared, and An optimal data set is selected from the two data sets. Then compare the selected data set with the fourth data set to select an optimal data set from the two data sets, and use the network device corresponding to the finally selected optimal data set as a synchronization tracking source.
- the second network device compares the selected second local data set with the fourth data set according to the above-mentioned process of 21-26, so as to select an optimal data set from the two data sets, and the finally selected The optimal data set is the second local data set.
- the second network device uses the second network device corresponding to the second local data set as a synchronization tracking source.
- the third network device selects the second network device as the synchronization tracking source in the same way as the above-mentioned first network device or the second network device.
- the network device periodically sends the notification message. That is to say: the first network device periodically sends a third notification message, and the third notification message includes the current corresponding parameter value of each third clock parameter in at least one third clock parameter, and the second network device and The third network device also periodically sends the notification message like the first network device.
- Step 302 When the first network device cannot track the clock of the second network device, the first network device becomes the active clock tracking source, and the value of the second priority parameter corresponding to the localPriority parameter of the first network device is changed to the first Priority parameter value.
- the first priority parameter value takes precedence over the second priority parameter value.
- the first priority parameter value is also better than the priority parameter value corresponding to the localPriority parameter of the second network device.
- the second priority parameter value is inferior to the priority parameter value corresponding to the localPriority parameter of the first port
- the first port is a port on the first network device that communicates with the second network device.
- the first priority parameter value is superior to the priority parameter value corresponding to the localPriority parameter of the first port.
- the default value corresponding to the localPriority parameter of the first port is "128”
- the priority parameter value corresponding to the localPriority parameter of the first port is "128”
- the second priority parameter value is "255”
- the first priority The level parameter value is "100”.
- the first network device When the first network device cannot track the clock of the second network device, it modifies the second priority parameter value "255" corresponding to the localPriority parameter of the first network device to the first priority parameter value "100", so the first The first priority parameter value corresponding to the localPriority parameter in the network device is better than the priority parameter value corresponding to the localPriority parameter of the first port.
- the priority parameter value corresponding to the localPriority parameter of the first network device included in the first local data set After modifying the second priority parameter value corresponding to the localPriority parameter of the first network device to the first priority parameter value, the priority parameter value corresponding to the localPriority parameter of the first network device included in the first local data set also follows becomes the first priority parameter value.
- the failure of the first network device to track the clock of the second network device means that the first network device cannot receive the message (notification message and/or synchronization message, etc.) sent by the second network device.
- the reason may be failure of the first port, failure of the link between the first network device and the second network device and/or failure of the second network device, etc.
- the third network device may also be unable to track the clock of the second network device.
- the first network device and the third network device reselect the synchronization tracking source, and both select The first network device acts as a synchronization tracking source, so that the first network device becomes an active synchronization tracking source.
- the time of the first network device is synchronized with the time of the second network device, and/or, the frequency of the first network device is synchronized with the frequency of the second network device. Therefore, when the first network device becomes the active synchronization tracking source and other network devices track the first network device, the time and/or frequency of other network devices will not jump.
- the first network device When the first port returns to normal, the link between the first network device and the second network device returns to normal and/or the second network device returns to normal, the first network device receives a report from the second network device through the first port The text indicates that the first network device can track the clock of the second network device.
- Step 303 When the first network device can track the clock of the second network device, the first network device selects a synchronization tracking source based on the first priority parameter value, and the selected synchronization tracking source is the first network device.
- the first network device When the first network device can track the clock of the second network device, the first network device compares the first priority parameter value with the localPriority of the first port when receiving a message from the second network device through the first port The priority parameter value corresponding to the parameter, when the first priority parameter value is better than the priority parameter value corresponding to the localPriority parameter of the first port, the first network device selects the first network device as a synchronization tracking source.
- the first network device receives the first notification message from the second network device through the first port, and acquires the first data set. And, receiving the second notification message from the third network device through the second port, and acquiring the second data set.
- the first data set and the second data set obtained here are respectively the same as the first data set and the second data set obtained in step 301 .
- the first network device Since the priority parameter value corresponding to the localPriority parameter of the first network device in the first local data set is modified to the first priority parameter value, in the process of selecting a synchronization tracking source, the first network device follows the above-mentioned figure 4 The comparison process compares the first local data set with the first data set, and when comparing the first priority parameter value with the priority parameter value corresponding to the localPriority parameter of the first port, the comparison result obtained is the first priority parameter The value is better than the priority parameter value corresponding to the localPriority parameter of the first port, and the first network device selects the first local data set as the optimal data set. Then, the first network device compares the first local data set and the second data set according to the comparison process shown in FIG. A network device is the synchronization tracking source.
- the clock of the second network device is reset.
- the second network device resets its own clock to the factory-time state, that is, the second network device resets its own time to the factory-time time, and/or resets its own frequency to the factory-time frequency.
- the second network device When the second network device returns to normal after failure, the second network device will adjust the default value of the local priority parameter localPriority of the second network device itself to be inferior to the default value of the localPriority parameter value of the port of the second network device. Then the second network device selects a source based on the adjusted default value of the localPriority parameter and the default value of the localPriority parameter value of the port of the second network device, and the selected synchronization tracking source is the first network device. Therefore, the second network device tracks the clock of the first network device, so that the time of the second network device is synchronized with the time of the first network device, and/or the frequency of the second network device is synchronized with the frequency of the first network device.
- the adjusted priority parameter value corresponding to the local priority localPriority parameter of the second network device itself is equal to the second priority parameter value.
- the second priority parameter value is "255”
- the adjusted priority parameter value corresponding to the local priority localPriority parameter of the second network device itself is also "255”.
- the second network device After the second network device adjusts the default value of the localPriority parameter of the second network device itself to be inferior to the default value of the localPriority parameter value of the port of the second network device, the second in the second local data set in the second network device The priority parameter value corresponding to the localPriority parameter value of the network device also becomes inferior to the default value of the localPriority parameter value of the port of the second network device.
- the second network device adjusts the default value of the localPriority parameter of the second network device itself to "255".
- the default value of the localPriority parameter value of the port of the second network device is "128", so that the default value of the localPriority parameter value of the second network device itself is inferior to the default value of the localPriority parameter value of the port of the second network device.
- the port of the second network device includes a third port communicating with the first network device, so the priority parameter value corresponding to the localPriority parameter value of the second network device in the second local data set is worse than the default value of the localPriority parameter value of the third port value.
- the third data is selected through the comparison process shown in FIG. 5 above. set as the optimal data set, and the first network device corresponding to the third data set is used as a synchronization tracking source.
- the second network device sends a first notification message after performing source selection, and the first notification message includes a parameter value of a synchronization source selection parameter of the second network device.
- the parameter value corresponding to the synchronization source selection parameter of the second network device included in the first notification message is: a parameter value corresponding to each second clock parameter in the at least one second clock parameter.
- the network device periodically sends a notification message, and when the second network device returns to normal, the second network device waits for one or more periods before sending the first notification message to the third network device.
- the second network device After the second network device selects the source, it tracks the clock of the first network device, that is, the time of the second network device is synchronized with the time of the first network device, and/or, the frequency of the second network device is synchronized with that of the first network device frequency synchronization. In this way, the second network device sends the first notification message after selecting the source, and the third network device receives the first notification message and performs a source selection operation.
- the priority parameter value corresponding to the first clock priority parameter is equal to the priority parameter value corresponding to the second clock priority parameter
- the second clock ID of the second network device is sorted before the first clock ID of the first network device, so the third network device will select the second network device as the synchronization tracking source when selecting the source, and track the second network device The device's clock.
- the clock of the third network device will not jump occurs. That is, the time of the third network device does not hop, and/or, the frequency of the third network device does not hop.
- the first network device tracks the clock of the second network device.
- the first network device automatically becomes the active clock tracking source, and the value of the second priority parameter corresponding to the localPriority parameter of the first network device is changed to the first priority level parameter value.
- the first port is the port on the first network device that communicates with the second network device, so although the first network device can track the first
- the clock of the second network device is clocked, but the first network device continues to select the first network device as a synchronization tracking source based on the first priority parameter value, that is, the first network device will not track the second network device. That is to say, even if the clock of the second network device is reset when the second network device returns to normal, since the first network device will not track the clock of the second network device, clock jumping will not occur.
- the second network device selects the first network device as a synchronization tracking source, and the second network device tracks the clock of the first network device. In this way, when the third network device chooses to track the clock of the first network device, the clock of the third network device is avoided. jump phenomenon occurs.
- an embodiment of the present application provides a source selection method 600, which is applied to the network architecture 100 shown in FIG. 1.
- the first network device cannot track the second network device
- the first network device is selected as the synchronization tracking source by modifying the value of the clock quality parameter of the first network device.
- the method 600 includes:
- Step 601 It is the same as step 301 of the method 300 shown in FIG. 3 above, and will not be described in detail here.
- Step 602 When the first network device cannot track the clock of the second network device, the first network device becomes the active clock tracking source, and the clock quality parameter value corresponding to the clock quality parameter of the first network device is changed to the first clock Quality parameter value.
- the first clock quality parameter value is better than the second clock quality parameter value
- the second clock quality parameter value is a clock quality parameter value corresponding to the clock quality parameter of the second network device.
- the first network device may modify a clock quality parameter value corresponding to one clock quality parameter, or may modify clock quality parameter values corresponding to multiple clock quality parameters.
- the modified clock quality parameters include one or more of the following parameters: a first clock class, a first clock precision, and a first clock skew logarithm.
- the first network device when the first network device cannot track the clock of the second network device, it modifies the parameter value A1 corresponding to the first clock level of the first network device to A11, and A11 takes precedence over A1, and A1 is equal to the second The parameter value B1 corresponding to the clock level, that is, A11 is better than B1. And/or, modify the parameter value A2 corresponding to the first clock precision of the first network device to A21, A21 has priority over A2, and A2 is equal to the parameter value B2 corresponding to the second clock precision of the second network device, that is, A21 is better than B2 .
- the clock quality corresponding to the clock quality parameter of the first network device After modifying the clock quality parameter value corresponding to the clock quality parameter of the first network device to the first clock quality parameter value, in the first local data set of the first network device, the clock quality corresponding to the clock quality parameter of the first network device The parameter value also becomes the first clock quality parameter value accordingly.
- the third network device may also be unable to track the clock of the second network device.
- the first network device and the third network device reselect the synchronization tracking source, and both select The first network device acts as a synchronization tracking source, so that the first network device becomes an active synchronization tracking source.
- the detailed implementation process of selecting the synchronization tracking source by the first network device and the third network device refer to the detailed implementation process of selecting the synchronization tracking source in FIG. 4 or FIG. 5 above, and will not be described in detail here.
- Step 603 When the first network device can track the clock of the second network device, the first network device selects a synchronization tracking source based on the first clock quality parameter value, and the selected synchronization tracking source is the first network device.
- the first network device In the case where the first network device can track the clock of the second network device, the first network device receives a first notification message from the second network device through the first port, and the first notification message includes a second clock quality parameter; Comparing the first clock quality parameter value and the second clock quality parameter value, when comparing the first clock quality parameter value is better than the second clock quality parameter value, the first network device selects the first network device as a synchronization tracking source.
- the first network device receives the first notification message from the second network device through the first port, and obtains the first data set, the first data set includes at least one second clock parameter of the second network device The parameter value corresponding to each second clock parameter and the priority parameter value corresponding to the localPriority parameter of the first port, where the parameter value corresponding to each second clock parameter includes a second clock quality parameter value. And, receiving a second notification message from the third network device through the second port, and acquiring a second data set, the second data set includes each third clock in at least one third clock quality parameter of the third network device The parameter value corresponding to the parameter and the priority parameter value corresponding to the localPriority parameter of the second port.
- the first network device Since the first clock quality parameter value in the first local data set is better than the second clock quality parameter value in the first data set, in the process of selecting a synchronization tracking source, the first network device follows the comparison process shown in Figure 4 above Comparing the first local data set with the first data set, and when comparing the first clock quality parameter value with the second clock quality parameter value, the result of the comparison is that the first clock quality parameter value is better than the second clock quality parameter value , the first network device selects the first local data set as the optimal data set. Then, the first network device compares the first local data set and the second data set according to the comparison process shown in FIG. A network device is the synchronization tracking source.
- the first network device modifies the parameter value A1 corresponding to the first clock level to A11, that is to say, the parameter value corresponding to the first clock level in the first local data set is A11
- the first data obtained by the first network device The parameter value corresponding to the centralized second clock level is B1. Since A11 is better than B1, when the first network device compares the first local data set with the first data set, it compares that the first local data set is the optimal data set.
- the first network device compares the first local data set and the second data set, and compares the first local data set as the optimal data set, and uses the first network device corresponding to the first local data set as a synchronization tracking source.
- the second network device When the second network device returns to normal after failure, the second network device receives the third notification message sent by the first network device through the third port, and the third notification message includes at least one first clock parameter of the first network device
- the parameter value corresponding to each first clock parameter, the parameter value corresponding to each first clock parameter includes the first clock quality parameter value; obtain the third data set, the third data set includes the localPriority parameter corresponding to the third port The priority parameter value and the parameter value corresponding to each first clock parameter.
- the second local data set of the second network device includes the second clock quality parameter value. Since the first clock quality parameter value is better than the second clock quality parameter value, the second network device compares the second local data set with the third clock quality parameter value. Data sets, the third data set is compared to the optimal data set, so the first network device corresponding to the third data set is selected as a synchronization tracking source, and the clock of the first network device is tracked.
- the third network device will also receive the first notification message and the third notification message, and perform a source selection operation. Since the second clock quality parameter value included in the first notification message is worse than the first clock quality parameter value included in the third notification message, the third network device also selects the first network device as a synchronization tracking source and tracks the first clock quality parameter value. Clocks for network devices.
- the first network device can track the second network device
- the first network device, the second network device and the third network device still select the first network device as a synchronization tracking source to track the clock of the first network device, so that The clock of the first network device, the clock of the second network device and the clock of the third network do not jump.
- the first network device tracks the clock of the second network device.
- the first network device automatically becomes the active clock tracking source, and the clock quality parameter value corresponding to the clock quality parameter of the first network device is modified to the first clock quality parameter value. Since the first clock quality parameter value is better than the second clock quality parameter value corresponding to the clock quality parameter of the second network device, although the first network device can track the clock of the second network device, the first network device Continue to select the first network device as the synchronization tracking source based on the first clock quality parameter value, that is, the first network device will not track the second network device.
- the second network device and the third network device also select the first network device as a synchronization tracking source, so as to avoid clock jumps of the second network device and the third network device.
- the embodiment of the present application provides a source selection method 700, which is applied to the network architecture 200 shown in FIG. 2.
- the first network device sets the state of the first port
- the first port is a port on the first network device that communicates with the first clock source.
- the method 700 includes:
- Step 701 The first network device tracks the first clock source.
- the first network device communicates with the first clock source through the first port, and communicates with the second clock source through the second port.
- the second network device communicates with the second network device through the second port, and the second network device communicates with the second clock source.
- the first clock source is an active clock source
- the second clock source is a backup clock source
- the clock level of the first clock source is superior to the clock level of the second clock source.
- the tracking of the first clock source by the first network device means that the time of the first network device is synchronized with the time of the first clock source.
- the first network device when the first network device tracks the first clock source, the first network device sends a first notification message and a second synchronization message to the second network device and the third network device, and the first notification message
- the message includes the first clock level
- the first clock level is the clock level of the first clock source
- the second synchronization message includes the time of the first network device.
- the second network device receives the first notification message and the second synchronization message, selects and tracks the first network device based on the first clock level, and performs time synchronization based on the time included in the second synchronization message.
- the third network device receives the first notification message and the second synchronization message, selects and tracks the first network device based on the first clock level, and performs time synchronization based on the time included in the second synchronization message.
- the second network device and/or the third network device may also receive the clock level of the second clock source, and since the first clock level is better than the clock level of the second clock source, it is selected to track the first network device .
- Step 702 When the first network device cannot track the first clock source, the first network device sets the state of the first port to the monitoring state, and the first port in the monitoring state does not participate in source selection.
- the first network device can monitor the state of the first clock source through the first port in the monitoring state.
- the monitoring status includes a passive only status and the like.
- the failure of the first network device to track the first clock source may be: failure of the first port, failure of the link between the first network device and the first clock source, and/or failure of the first clock source.
- the first network device may not receive the packet sent by the first clock source, or the first network device receives the second notification packet sent by the first clock source, the second notification packet carries the second clock level, and the second clock
- the level is the clock level of the first clock source, the second clock level exceeds the range of the first level, and the failure of the first clock source is determined based on the second clock level, and the first level range includes at least one clock level corresponding to the clock source.
- the second network device and the third network device track the second clock source.
- the first network device sends a first notification message to the second network device, the first notification message includes a third clock level, the third clock level is the clock level of the first network device, and the third clock level is located at the second Within the second level range, the second level range includes the clock level corresponding to the network device.
- the second network device receives the first notification message, determines that the first network device cannot track the first clock source based on the third clock level in the first notification message, and selects to track the second clock source. Similarly, the third network device also tracks the second network device.
- Step 703 The first network device tracks the second clock source.
- the second network device Since the second network device tracks the second clock source, the time of the second network device is synchronized with the second clock source.
- the second network device sends a third notification message and a fourth synchronization message to the first network device, the third notification message includes a fourth clock level, the fourth clock level is the clock level of the second clock source, and the fourth clock The level is within the range of the first level, and the fourth synchronization message includes the time of the second network device.
- the first network device receives the third notification message and the fourth synchronization message, selects to track the second network device based on the fourth clock level, and performs time synchronization based on the time included in the fourth synchronization message, so as to track the second clock source .
- the first network device when the first network device cannot track the first clock source, the first network device tracks the second clock source, and in the process of tracking the second clock source, detects whether the first clock can be tracked through the first port in the monitoring state source.
- Step 704 When the first network device detects that the first clock source can be tracked, the first network device keeps the state of the first port as a monitoring state.
- the first network device tracking the second clock source
- the state of the first port remains in the monitoring state. Since the first port in the monitoring state does not participate in source selection, the first network device continues to choose to track the second clock source, and will not switch the tracked clock source from the first clock source to the second clock source, so that the entire network architecture
- the network equipment avoids switching the tracking clock source, increasing the stability of the network.
- Step 705 After the first network device tracks the second clock source, when the first network device cannot track the second clock source, the first network device changes the state of the first port to the non-monitoring state, and the first port in the non-monitoring state Ports participate in source selection.
- the second network device sends a fourth notification message to the first network device, the fourth notification message includes a fifth clock level, and the fifth clock level is within the range of the second level Inside.
- the first network device receives the fourth notification message, and determines that the second network device cannot track the second clock source because the fifth clock level is within the range of the second level. Since the first network device can track the first clock source, the first network device restores the state of the first port to the non-monitoring state.
- the first network device sets the state of the first port back to the non-monitoring state
- the first network device selects to track the first clock source.
- the second network device and the third network device choose to track the first network device.
- the non-monitoring state includes a master (Master) state or a slave (Slave) state or the like.
- the first network device tracks the first clock source.
- the first network device sets the state of the first port to the monitoring state, and the first port is the first clock source.
- the port on the network device that communicates with the first clock source the first port in the monitoring state does not participate in source selection, and the first network device tracks the second clock source.
- the first network device can track the first clock source, the state of the first port remains in the monitoring state. Since the first port in the monitoring state does not participate in source selection, the first network device still tracks the first clock source.
- the first network device restores the state of the first port to the non-monitoring state, and the first port in the non-monitoring state can participate in source selection, so that the first network device Can choose to track the first clock source. In this way, the frequency of switching the tracking clock source can be reduced, and the stability of the network can be improved.
- the present application provides a source selection device 800, which can be deployed on the first network device 101 in the network architecture 100 shown in FIG. 6.
- a source selection device 800 which can be deployed on the first network device 101 in the network architecture 100 shown in FIG. 6.
- the processing unit 801 is configured to modify the parameter value corresponding to the synchronization source selection parameter of the device 800 when the device 800 cannot track the clock of the second network device after the device 800 tracks the clock of the second network device is the first parameter value, and the first parameter value is better than the parameter value corresponding to the synchronization source selection parameter of the second network device.
- the processing unit 801 modifies the parameter value corresponding to the synchronization source selection parameter of the device 800 to the first parameter value for a detailed implementation process, refer to step 302 of the method 300 shown in FIG. 3 and the step 302 of the method 600 shown in FIG. 6 Relevant content in step 602 will not be described in detail here.
- the synchronization source selection parameter of the device 800 includes a local priority localPriority parameter of the device 800, and the first parameter value includes a first priority parameter value;
- the processing unit 801 is configured to modify the second priority parameter value corresponding to the localPriority parameter of the apparatus 800 to the first priority parameter value.
- the processing unit 801 modifies the second priority parameter value corresponding to the localPriority parameter of the device 800 to the first priority parameter value for a detailed implementation process, refer to the relevant content in step 302 of the method 300 shown in FIG. 3 , which will not be described in detail here.
- the second priority parameter value is inferior to the priority parameter value corresponding to the localPriority parameter of the first port
- the first port is a port on the apparatus 800 that communicates with the second network device.
- the first priority parameter value is better than the priority parameter value corresponding to the localPriority parameter of the first port, and the first port is a port on the apparatus 800 that communicates with the second network device.
- the second priority parameter value is equal to the priority parameter value corresponding to the localPriority parameter of the second network device.
- the processing unit 801 is further configured to select a synchronization tracking source based on the first priority parameter value.
- the processing unit 801 selects a detailed implementation process of the synchronization tracking source based on the first priority parameter value, refer to the relevant content in step 303 of the method 300 shown in FIG. 3 , and will not be described in detail here.
- processing unit 801 is also used for:
- the first port When receiving a message from the second network device through the first port, compare the first priority parameter value with the priority parameter value corresponding to the localPriority parameter of the first port, the first port is the device 800 and the first port 2. Ports for network device communication;
- the device 800 When it is compared that the first priority parameter value is better than the priority parameter value corresponding to the localPriority parameter of the first port, the device 800 is selected as a synchronization tracking source.
- the synchronization source selection parameter of the apparatus 800 includes a clock quality parameter of the apparatus 800, and the first parameter value includes a first clock quality parameter value;
- the processing unit 801 is configured to modify the clock quality parameter value corresponding to the clock quality parameter of the apparatus 800 to a first clock quality parameter value.
- the clock quality parameter of the apparatus 800 includes one or more of a clock level, a clock precision, and a logarithm value of a clock deviation of the apparatus 800 .
- the processing unit 801 is further configured to select a synchronization tracking source based on the first clock quality parameter value.
- the processing unit 801 selects a detailed implementation process of synchronous tracking based on the first clock quality parameter value, refer to the related content in step 603 of the method 600 shown in FIG. 6 , and no more details are given here.
- the apparatus 800 further includes: a receiving unit 802,
- the receiving unit 802 is configured to receive a notification message sent by the second network device, where the notification message includes a second clock quality parameter value, and the second clock quality parameter value is a clock quality parameter value corresponding to the clock quality parameter of the second network device ;
- the processing unit 801 is further configured to select the apparatus 800 as a synchronization tracking source when the first clock quality parameter value is better than the second clock quality parameter value.
- the processing unit 801 selects a detailed implementation process of synchronous tracking, refer to the relevant content in step 603 of the method 600 shown in FIG. 6 , and no more details are given here.
- the number of synchronization source selection parameters of the apparatus 800 is one or more.
- the clock of the second network device may be reset, and the network devices in the network will perform a source selection operation. Since the first parameter value is better than the parameter value corresponding to the synchronization source selection parameter of the second network device, when the processing unit performs source selection based on the first parameter value and the parameter value corresponding to the synchronization source selection parameter of the second network device, it will continue to select The device acts as a synchronization tracking source, thereby preventing the device from tracking the second network device, so as to avoid clock jumps of the device.
- the second network device will also choose to track the device when performing source selection, so that the clock of the second network device Synchronized with the clock of the device. And, for a third network device in the network other than the device and the second network device, when the device cannot track the clock of the second network device, the third network device will choose to track the clock of the device.
- the third network device selects the source, and may continue to select the device as a synchronization tracking source, thereby avoiding the clock jump of the third network device, or may select the second network device As a synchronization tracking source, since the clock of the second network device is synchronized with the clock of the apparatus, the clock jump of the third network device is also avoided.
- the present application provides a source selection device 900, the device 900 can be deployed in the second network device 102 in the network architecture 100 shown in FIG. 6.
- the second network device in method 600 including:
- the processing unit 901 is configured to adjust the default value of the local priority localPriority parameter of the device 900 itself to be inferior to the default value of the localPriority parameter value of the port of the device 900;
- the processing unit 901 is further configured to select a source based on the adjusted default value of the localPriority parameter of the device 900 itself and the default value of the localPriority parameter value of the port of the device 900 .
- the processing unit 901 adjusts the default value of the local priority parameter localPriority of the device 900 itself to be inferior to the default value of the localPriority parameter value of the port of the device 900, see the method shown in FIG. 3 Relevant content in step 303 of step 300 and step 603 of method 600 shown in FIG. 6 will not be described in detail here.
- the processing unit 901 performs a detailed implementation process of source selection based on the adjusted default value of the localPriority parameter of the device 900 itself and the default value of the localPriority parameter value of the port of the device 900, see the method shown in FIG. 3 Relevant content in step 303 of step 300 and step 603 of method 600 shown in FIG. 6 will not be described in detail here.
- the apparatus 900 includes multiple ports, and the localPriority parameter values of the multiple ports have the same default value.
- the device 900 also includes:
- the sending unit 902 is configured to send a notification message after source selection, where the notification message includes the parameter value of the synchronization source selection parameter of the device 900 .
- the processing unit adjusts the default value of the local priority parameter localPriority of the device itself to be inferior to the default value of the localPriority parameter value of the port of the device.
- the source is selected based on the adjusted default value of the localPriority parameter of the device itself and the default value of the localPriority parameter value of the port of the device. Since the default value of the localPriority parameter of the device itself is adjusted to be inferior to the default value of the localPriority parameter value of the port of the device, when the processing unit selects the source, it will select the existing primary synchronous tracking source in the tracking network, And track the clock of the active synchronous tracking source, so as to avoid clock jumps of network devices in the network.
- the present application provides a source selection device 1000, which can be deployed on the first network device 201 in the network architecture 200 shown in FIG. 2 , or the first network device in the method 700 shown in FIG. 7 on, including:
- the processing unit 1001 is configured to set the state of the first port to the monitoring state when the device 1000 cannot track the first clock source after the device 1000 tracks the first clock source, and the first port is the first port on the device 1000 For ports communicating with the first clock source, the first port in the monitoring state does not participate in source selection; when the device 1000 can track the first clock source, the state of the first port remains in the monitoring state.
- processing unit 1001 is further configured to track the second clock source.
- the processing unit 1001 tracks the detailed implementation process of the second clock source, refer to the related content in step 703 of the method 700 shown in FIG. 7 , and no more details are given here.
- the processing unit 1001 is further configured to, after the device 1000 tracks the second clock source, when the device 1000 cannot track the second clock source, set the state of the first port back to the non-monitoring state, in the non-monitoring state.
- the first port of monitoring status participates in source selection.
- step 704 of the method 700 shown in FIG. 7 for the detailed implementation process of the processing unit 1001 setting the state of the first port back to the non-monitoring state, refer to the related content in step 704 of the method 700 shown in FIG. 7 , and will not be described in detail here.
- the processing unit 1001 sets the state of the first port to the monitoring state when the device cannot track the first clock source after the device tracks the first clock source, and sets the state of the first port to the monitoring state when the device can track the first clock source.
- the state of the first port remains in the monitoring state.
- the processing unit will not switch the tracked clock source back to the first clock source, which reduces the frequency of switching the clock source and increases the stability of the network.
- an embodiment of the present application provides a schematic diagram of a source selection device 1100 .
- the apparatus 1100 may be the first network device 101 in the network architecture 100 shown in FIG. 1 , the first network device in the method 300 shown in FIG. 3 , or the first network device in the method 600 shown in FIG. 6 .
- the apparatus 1100 includes at least one processor 1101 , internal connections 1102 , memory 1103 and at least one transceiver 1104 .
- the device 1100 is a device with a hardware structure, and may be used to implement the functional modules in the device 800 described in FIG. 8 .
- the processing unit 801 in the device 800 shown in FIG. This is achieved by the transceiver 1104 .
- the apparatus 1100 may also be used to realize the function of the first network device in the above embodiment shown in FIG. 1 , FIG. 3 or FIG. 6 .
- the processor 1101 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the programs of this application.
- CPU central processing unit
- NP network processor
- ASIC application-specific integrated circuit
- the internal connection 1102 may include a path for transferring information between the above components.
- the internal connection 1102 is a single board or a bus.
- the above-mentioned transceiver 1104 is used for communicating with other devices or a communication network.
- the above-mentioned memory 1103 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions.
- ROM read-only memory
- RAM random access memory
- Type of dynamic storage device also can be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), read-only disc (compact disc read-only memory, CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by Any other medium accessed by a computer, but not limited to.
- the memory can exist independently and be connected to the processor through the bus. Memory can also be integrated with the processor.
- the memory 1103 is used to store the application program code for executing the solution of the present application, and the execution is controlled by the processor 1101 .
- the processor 1101 is used to execute the application program code stored in the memory 1103, and cooperate with at least one transceiver 1104, so that the device 1100 realizes the functions in the patented method.
- the processor 1101 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 11 .
- the apparatus 1100 may include multiple processors, for example, the processor 1101 and the processor 1107 in FIG. 11 .
- Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
- a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
- an embodiment of the present application provides a schematic diagram of a source selection device 1200 .
- the apparatus 1200 may be the second network device 102 in the network architecture 100 shown in FIG. 1 , the second network device in the method 300 shown in FIG. 3 , or the second network device in the method 600 shown in FIG. 6 .
- the device 1200 includes at least one processor 1201 , internal connections 1202 , memory 1203 and at least one transceiver 1204 .
- the device 1200 is a device with a hardware structure, and may be used to implement the functional modules in the device 900 described in FIG. 9 .
- the processing unit 901 in the device 900 shown in FIG. 9 can be realized by calling the code in the memory 1203 by the at least one processor 1201, and the sending unit 902 in the device 900 shown in FIG. 9 can be This is achieved by the transceiver 1204 .
- the apparatus 1200 may also be used to realize the function of the second network device in the embodiment shown in FIG. 1 , FIG. 3 or FIG. 6 above.
- the processor 1201 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the programs of this application.
- CPU central processing unit
- NP network processor
- ASIC application-specific integrated circuit
- the internal connection 1202 may include a path for transferring information between the components.
- the internal connection 1202 is a single board or a bus.
- the above-mentioned transceiver 1204 is used for communicating with other devices or a communication network.
- the above-mentioned memory 1203 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions.
- ROM read-only memory
- RAM random access memory
- Type of dynamic storage device also can be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), read-only disc (compact disc read-only memory, CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by Any other medium accessed by a computer, but not limited to.
- the memory can exist independently and be connected to the processor through the bus. Memory can also be integrated with the processor.
- the memory 1203 is used to store the application program code for executing the solution of the present application, and the execution is controlled by the processor 1201 .
- the processor 1201 is used to execute the application program code stored in the memory 1203, and cooperate with at least one transceiver 1204, so that the device 1200 realizes the functions in the patented method.
- the processor 1201 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 12 .
- the apparatus 1200 may include multiple processors, for example, the processor 1201 and the processor 1207 in FIG. 12 .
- Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
- a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
- the apparatus 1300 may be the first network device 201 in the network architecture 200 shown in FIG. 2 , or the first network device in the method 700 shown in FIG. 7 .
- the device 1300 includes at least one processor 1301 , internal connections 1302 , memory 1303 and at least one transceiver 1304 .
- the device 1300 is a device with a hardware structure, and can be used to implement the functional modules in the device 1000 described in FIG. 10 .
- the processing unit 1001 in the apparatus 1000 shown in FIG. 10 can be realized by calling codes in the memory 1303 by the at least one processor 1301 .
- the apparatus 1300 may also be used to realize the function of the first network device in the above embodiment shown in FIG. 2 or FIG. 7 .
- the processor 1301 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the programs of this application.
- CPU central processing unit
- NP network processor
- ASIC application-specific integrated circuit
- the internal connection 1302 may include a path for transferring information between the components.
- the internal connection 1302 is a single board or a bus.
- the above-mentioned transceiver 1304 is used for communicating with other devices or a communication network.
- the above-mentioned memory 1303 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions.
- ROM read-only memory
- RAM random access memory
- Type of dynamic storage device also can be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), read-only disc (compact disc read-only memory, CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by Any other medium accessed by a computer, but not limited to.
- the memory can exist independently and be connected to the processor through the bus. Memory can also be integrated with the processor.
- the memory 1303 is used to store the application program code for executing the solution of the present application, and the execution is controlled by the processor 1301 .
- the processor 1301 is used to execute the application program code stored in the memory 1303, and cooperate with at least one transceiver 1304, so that the device 1300 realizes the functions in the patented method.
- the processor 1301 may include one or more CPUs, for example, CPU0 and CPU1 in FIG. 13 .
- the apparatus 1300 may include multiple processors, for example, the processor 1301 and the processor 1307 in FIG. 13 .
- Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
- a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
- the embodiment of the present application provides a source selection system 1400, including the device 800 shown in FIG. 8 and the device 900 shown in FIG. 9, or, including the device 1100 shown in FIG. 12 shows the device 1200.
- the device 800 shown in FIG. 8 or the device 1100 shown in FIG. 11 may be the first network device 1401, and the device 900 shown in FIG. Network device 1402.
- the program can be stored in a computer-readable storage medium.
- the above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
Claims (39)
- 一种选源方法,其特征在于,所述方法包括:在第一网络设备跟踪第二网络设备的时钟后,当所述第一网络设备无法跟踪所述第二网络设备的时钟时,所述第一网络设备将所述第一网络设备的同步选源参数对应的参数值修改为第一参数值,所述第一参数值优于所述第二网络设备的所述同步选源参数对应的参数值。
- 如权利要求1所述的方法,其特征在于,所述第一网络设备的同步选源参数包括所述第一网络设备的本地优先级localPriority参数,所述第一参数值包括第一优先级参数值;所述第一网络设备将所述第一网络设备的同步选源参数对应的参数值修改为第一参数值,包括:所述第一网络设备将所述第一网络设备的localPriority参数对应的第二优先级参数值修改为所述第一优先级参数值。
- 如权利要求2所述的方法,其特征在于,所述第二优先级参数值劣于第一端口的localPriority参数对应的优先级参数值,所述第一端口是所述第一网络设备上的与所述第二网络设备通信的端口。
- 如权利要求2或3所述的方法,其特征在于,所述第一优先级参数值优于第一端口的localPriority参数对应的优先级参数值,所述第一端口是所述第一网络设备上的与所述第二网络设备通信的端口。
- 如权利要求2-4任一项所述的方法,其特征在于,所述第二优先级参数值等于所述第二网络设备的localPriority参数对应的优先级参数值。
- 如权利要求2-5任一项所述的方法,其特征在于,所述方法还包括:所述第一网络设备基于所述第一优先级参数值,选择同步跟踪源。
- 如权利要求6所述的方法,其特征在于,所述第一网络设备基于所述第一优先级参数值,选择同步跟踪源,包括:所述第一网络设备在通过第一端口接收到来自所述第二网络设备的报文时,比较所述第一优先级参数值和所述第一端口的localPriority参数对应的优先级参数值,所述第一端口是所述第一网络设备上的与所述第二网络设备通信的端口;在比较出所述第一优先级参数值优于所述第一端口的localPriority参数对应的优先级参数值时,所述第一网络设备选择所述第一网络设备作为同步跟踪源。
- 如权利要求1所述的方法,其特征在于,所述第一网络设备的同步选源参数包括所述第一网络设备的时钟质量参数,所述第一参数值包括第一时钟质量参数值;所述第一网络设备将所述第一网络设备的同步选源参数对应的参数值修改为第一参数 值,包括:所述第一网络设备将所述第一网络设备的时钟质量参数对应的时钟质量参数值修改为所述第一时钟质量参数值。
- 如权利要求8所述的方法,其特征在于,所述第一网络设备的时钟质量参数包括所述第一网络设备的时钟等级、时钟精度和时钟偏差对数值中的一个或多个。
- 如权利要求8或9所述的方法,其特征在于,所述方法还包括:所述第一网络设备基于所述第一时钟质量参数值,选择同步跟踪源。
- 如权利要求10所述的方法,其特征在于,所述第一网络设备基于所述第一时钟质量参数值,选择同步跟踪源,包括:所述第一网络设备接收所述第二网络设备发送的通知报文,所述通知报文包括第二时钟质量参数值,所述第二时钟质量参数值是所述第二网络设备的时钟质量参数对应的时钟质量参数值;在所述第一时钟质量参数值优于所述第二时钟质量参数值时,所述第一网络设备选择所述第一网络设备作为同步跟踪源。
- 如权利要求1-11任一项所述的方法,其特征在于,所述第一网络设备的同步选源参数的个数为一个或多个。
- 一种选源方法,其特征在于,所述方法包括:网络设备将所述网络设备自身的本地优先级localPriority参数的默认值调整为劣于所述网络设备的端口的localPriority参数值的默认值;所述网络设备基于调整后的所述网络设备自身的localPriority参数的默认值和所述网络设备的端口的localPriority参数值的默认值进行选源。
- 如权利要求13所述的方法,其特征在于,所述网络设备包括多个端口,所述多个端口的所述localPriority参数值的默认值相同。
- 如权利要求13或14所述的方法,其特征在于,所述方法还包括:所述网络设备在进行选源后发送通知报文,所述通知报文包括所述网络设备的同步选源参数的参数值。
- 一种选源方法,其特征在于,所述方法包括:在第一网络设备跟踪第一时钟源后,当所述第一网络设备无法跟踪所述第一时钟源时,所述第一网络设备设置第一端口的状态为监控状态,所述第一端口是所述第一网络设备上与所述第一时钟源通信的端口,处于所述监控状态的第一端口不参与选源;当所述第一网络设备可以跟踪所述第一时钟源时,所述第一端口的状态保持为所述监控 状态。
- 如权利要求16所述的方法,其特征在于,所述方法还包括:所述第一网络设备跟踪第二时钟源。
- 如权利要求17所述的方法,其特征在于,所述方法还包括:在所述第一网络设备跟踪第二时钟源后,当所述第一网络设备无法跟踪所述第二时钟源时,所述第一网络设备设置第一端口的状态为非监控状态,处于所述非监控状态的所述第一端口参与选源。
- 一种选源装置,其特征在于,所述装置包括:处理单元,用于在所述装置跟踪第二网络设备的时钟后,当所述装置无法跟踪所述第二网络设备的时钟时,将所述装置的同步选源参数对应的参数值修改为第一参数值,所述第一参数值优于所述第二网络设备的所述同步选源参数对应的参数值。
- 如权利要求19所述的装置,其特征在于,所述装置的同步选源参数包括所述装置的本地优先级localPriority参数,所述第一参数值包括第一优先级参数值;所述处理单元,用于将所述装置的localPriority参数对应的第二优先级参数值修改为所述第一优先级参数值。
- 如权利要求20所述的装置,其特征在于,所述第二优先级参数值劣于第一端口的localPriority参数对应的优先级参数值,所述第一端口是所述装置上的与所述第二网络设备通信的端口。
- 如权利要求20或21所述的装置,其特征在于,所述第一优先级参数值优于第一端口的localPriority参数对应的优先级参数值,所述第一端口是所述装置上的与所述第二网络设备通信的端口。
- 如权利要求20-22任一项所述的装置,其特征在于,所述第二优先级参数值等于所述第二网络设备的localPriority参数对应的优先级参数值。
- 如权利要求20-23任一项所述的装置,其特征在于,所述处理单元,还用于基于所述第一优先级参数值,选择同步跟踪源。
- 如权利要求24所述的装置,其特征在于,所述处理单元,还用于:在通过第一端口接收到来自所述第二网络设备的报文时,比较所述第一优先级参数值和所述第一端口的localPriority参数对应的优先级参数值,所述第一端口是所述装置上的与所述第二网络设备通信的端口;在比较出所述第一优先级参数值优于所述第一端口的localPriority参数对应的优先级参 数值时,选择所述装置作为同步跟踪源。
- 如权利要求19所述的装置,其特征在于,所述装置的同步选源参数包括所述装置的时钟质量参数,所述第一参数值包括第一时钟质量参数值;所述处理单元,用于将所述装置的时钟质量参数对应的时钟质量参数值修改为所述第一时钟质量参数值。
- 如权利要求26所述的装置,其特征在于,所述装置的时钟质量参数包括所述装置的时钟等级、时钟精度和时钟偏差对数值中的一个或多个。
- 如权利要求26或27所述的装置,其特征在于,所述处理单元,还用于基于所述第一时钟质量参数值,选择同步跟踪源。
- 如权利要求28所述的装置,其特征在于,所述装置还包括:接收单元,所述接收单元,用于接收所述第二网络设备发送的通知报文,所述通知报文包括第二时钟质量参数值,所述第二时钟质量参数值是所述第二网络设备的时钟质量参数对应的时钟质量参数值;所述处理单元,还用于在所述第一时钟质量参数值优于所述第二时钟质量参数值时,选择所述装置作为同步跟踪源。
- 如权利要求19-29任一项所述的装置,其特征在于,所述装置的同步选源参数的个数为一个或多个。
- 一种选源装置,其特征在于,所述装置包括:处理单元,用于将所述装置自身的本地优先级localPriority参数的默认值调整为劣于所述装置的端口的localPriority参数值的默认值;所述处理单元,还用于基于调整后的所述装置自身的localPriority参数的默认值和所述装置的端口的localPriority参数值的默认值进行选源。
- 如权利要求31所述的装置,其特征在于,所述装置包括多个端口,所述多个端口的所述localPriority参数值的默认值相同。
- 如权利要求31或32所述的装置,其特征在于,所述装置还包括:发送单元,用于在进行选源后发送通知报文,所述通知报文包括所述装置的同步选源参数的参数值。
- 一种选源装置,其特征在于,所述装置包括:处理单元,用于在所述装置跟踪第一时钟源后,当所述装置无法跟踪所述第一时钟源时,设置第一端口的状态为监控状态,所述第一端口是所述装置上与所述第一时钟源通信的端口, 处于所述监控状态的第一端口不参与选源;当所述装置可以跟踪所述第一时钟源时,所述第一端口的状态保持为所述监控状态。
- 如权利要求34所述的装置,其特征在于,所述处理单元,还用于跟踪第二时钟源。
- 如权利要求35所述的装置,其特征在于,所述处理单元,还用于在所述装置跟踪第二时钟源后,当所述装置无法跟踪所述第二时钟源时,设置第一端口的状态恢复为非监控状态,处于所述非监控状态的所述第一端口参与选源。
- 一种选源***,其特征在于,所述选源***包括如权利要求19-30任一项所述的装置和如权利要求31-33任一项所述的装置。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被计算机执行时,实现如权利要求1-18任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括在计算机可读存储介质中存储的计算机程序,并且所述计算程序通过处理器进行加载来实现如权利要求1-18任一项所述的方法。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2023572182A JP2024521137A (ja) | 2021-06-28 | 2022-05-12 | クロックソース選択方法、装置、及びシステム、並びに記憶媒体 |
EP22831454.8A EP4311155A1 (en) | 2021-06-28 | 2022-05-12 | Source selection method, apparatus, and system, and storage medium |
US18/521,826 US20240097812A1 (en) | 2021-06-28 | 2023-11-28 | Clock source selection method, apparatus, and system, and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110718819.1A CN115603886A (zh) | 2021-06-28 | 2021-06-28 | 选源方法、装置、***及存储介质 |
CN202110718819.1 | 2021-06-28 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/521,826 Continuation US20240097812A1 (en) | 2021-06-28 | 2023-11-28 | Clock source selection method, apparatus, and system, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023273627A1 true WO2023273627A1 (zh) | 2023-01-05 |
Family
ID=84692472
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/092359 WO2023273627A1 (zh) | 2021-06-28 | 2022-05-12 | 选源方法、装置、***及存储介质 |
Country Status (5)
Country | Link |
---|---|
US (1) | US20240097812A1 (zh) |
EP (1) | EP4311155A1 (zh) |
JP (1) | JP2024521137A (zh) |
CN (1) | CN115603886A (zh) |
WO (1) | WO2023273627A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101399655A (zh) * | 2007-09-27 | 2009-04-01 | 华为技术有限公司 | 穿通时钟设备同步端口的确定方法及装置 |
CN103490840A (zh) * | 2012-06-12 | 2014-01-01 | 中兴通讯股份有限公司 | 一种进行精确时间协议报文处理的装置和方法 |
US20150222413A1 (en) * | 2012-06-20 | 2015-08-06 | Antti Olavi Pietilainen | Synchronization in Computer Network |
CN107046449A (zh) * | 2016-02-06 | 2017-08-15 | 华为技术有限公司 | 用于时间同步的方法和时钟 |
-
2021
- 2021-06-28 CN CN202110718819.1A patent/CN115603886A/zh active Pending
-
2022
- 2022-05-12 WO PCT/CN2022/092359 patent/WO2023273627A1/zh active Application Filing
- 2022-05-12 JP JP2023572182A patent/JP2024521137A/ja active Pending
- 2022-05-12 EP EP22831454.8A patent/EP4311155A1/en active Pending
-
2023
- 2023-11-28 US US18/521,826 patent/US20240097812A1/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101399655A (zh) * | 2007-09-27 | 2009-04-01 | 华为技术有限公司 | 穿通时钟设备同步端口的确定方法及装置 |
CN103490840A (zh) * | 2012-06-12 | 2014-01-01 | 中兴通讯股份有限公司 | 一种进行精确时间协议报文处理的装置和方法 |
US20150222413A1 (en) * | 2012-06-20 | 2015-08-06 | Antti Olavi Pietilainen | Synchronization in Computer Network |
CN107046449A (zh) * | 2016-02-06 | 2017-08-15 | 华为技术有限公司 | 用于时间同步的方法和时钟 |
Also Published As
Publication number | Publication date |
---|---|
JP2024521137A (ja) | 2024-05-28 |
US20240097812A1 (en) | 2024-03-21 |
EP4311155A1 (en) | 2024-01-24 |
CN115603886A (zh) | 2023-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2182670B1 (en) | A method and apparatus for tracking clock source | |
US10771067B2 (en) | System and method for hitless clock switching | |
US10924435B2 (en) | System and method for port reduction using multiple chassis link aggregation group for stacked devices | |
WO2023273627A1 (zh) | 选源方法、装置、***及存储介质 | |
US9641268B2 (en) | Method, system and device for synchronizing clocks | |
US20240022504A1 (en) | Traffic forwarding method and apparatus | |
US20230362854A1 (en) | Method and Apparatus for Selecting Clock Source | |
WO2023125255A1 (zh) | 通信方法、装置、***及存储介质 | |
US7243253B1 (en) | Repeating switching of a cross-connect and a timing source in a network element through the use of a phase adjuster | |
US20210014118A1 (en) | Stacked computer network devices having multiple master nodes | |
US20230208544A1 (en) | Method, apparatus, and system for processing time synchronization fault and storage medium | |
US20230262625A1 (en) | Time Synchronization Fault Processing Method, Apparatus, And System | |
WO2024114048A1 (zh) | 一种时钟质量等级设置方法、设备及*** | |
CN100454803C (zh) | 一种快速无毛刺的时钟倒换方法和装置 | |
US11212217B2 (en) | Spanning tree enabled link aggregation system | |
CN112865899B (zh) | 一种调整物理层phy主从模式的方法及装置 | |
US20120320960A1 (en) | Method, Device and System for Clock Dejitter | |
WO2021179915A1 (zh) | 一种时钟端口状态处理方法、装置及*** | |
KR102684118B1 (ko) | 클록 포트 속성 복원 방법, 디바이스, 및 시스템 | |
JPH0432330A (ja) | システムクロツク保護方式 | |
CN117527120A (zh) | 一种ptp交换机及其实现方法 | |
JP2001345789A (ja) | 網同期装置用周波数監視回路 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22831454 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2022831454 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2022831454 Country of ref document: EP Effective date: 20231019 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2023572182 Country of ref document: JP |
|
NENP | Non-entry into the national phase |
Ref country code: DE |