WO2023029669A1 - 一种时间同步的监控方法 - Google Patents
一种时间同步的监控方法 Download PDFInfo
- Publication number
- WO2023029669A1 WO2023029669A1 PCT/CN2022/099427 CN2022099427W WO2023029669A1 WO 2023029669 A1 WO2023029669 A1 WO 2023029669A1 CN 2022099427 W CN2022099427 W CN 2022099427W WO 2023029669 A1 WO2023029669 A1 WO 2023029669A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- time
- synchronization
- information
- network device
- time synchronization
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 229
- 238000012544 monitoring process Methods 0.000 title claims abstract description 40
- 238000011144 upstream manufacturing Methods 0.000 claims abstract description 60
- 230000015654 memory Effects 0.000 claims description 32
- 238000012545 processing Methods 0.000 claims description 30
- 238000004891 communication Methods 0.000 claims description 26
- 238000003860 storage Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 6
- 230000002159 abnormal effect Effects 0.000 claims description 5
- 238000012806 monitoring device Methods 0.000 description 68
- 239000010410 layer Substances 0.000 description 32
- 239000012792 core layer Substances 0.000 description 20
- 230000008569 process Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 12
- 230000002776 aggregation Effects 0.000 description 10
- 238000004220 aggregation Methods 0.000 description 10
- 230000001360 synchronised effect Effects 0.000 description 7
- 108700009949 PTP protocol Proteins 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012546 transfer Methods 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
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/14—Monitoring arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
Definitions
- the invention relates to the communication field, in particular to a time synchronization monitoring method.
- the time division multiplexing mode is used to send data between base stations.
- This transmission mode requires high accuracy of time synchronization between base stations.
- the time synchronization between base stations is required to be within 3 within microseconds.
- the mainstream method of time synchronization of bearer network devices is to use the Precision Time Protocol (Precision Time Protocol, PTP), and the time server BITS as the bearer network device.
- PTP Precision Time Protocol
- the time source from the time source to the base station, transmits information related to time synchronization hop by hop, and each hop device performs time synchronization with the upstream device, and finally realizes timing to the base station.
- the device performing time synchronization may have an abnormal time synchronization with the upstream device due to device abnormality or discarded time synchronization information, which will lead to inaccurate time synchronization between the final base station and the time source, affecting the transmission of base station data.
- a time synchronization monitoring method is needed in the network to monitor the accuracy of time synchronization in the network.
- the embodiments of the present application provide a time-synchronized monitoring method, device, and system.
- the first network device obtains synchronization path information, where the synchronization path information is information about a synchronization path between the first time synchronization device and a time source; the first network device obtains time offset information of multiple time synchronization devices, wherein the The time deviation information of each time synchronization device in the plurality of time synchronization devices is time deviation information between the time synchronization device and an upstream time device, and the plurality of time synchronization devices are time synchronization devices on the synchronization path ;
- the first network device calculates the time deviation between the time of the first time synchronization device and the time source according to the synchronization path information and the time deviation information of the multiple time synchronization devices. Therefore, the first network device can monitor the time of each time synchronization device and the time deviation of the time source, which improves the accuracy of time synchronization monitoring, and does not need to deploy additional time sources in the network, reducing deployment difficulty.
- the present application provides a method for monitoring time synchronization, the method comprising: the first network device obtains synchronization path information, and the synchronization path information is information of a synchronization path between the first time synchronization device and a time source The first network device obtains time offset information of a plurality of time synchronization devices, wherein the time offset information of each time synchronization device in the plurality of time synchronization devices is between the time synchronization device and an upstream time device Time offset information, the multiple time synchronization devices are time synchronization devices on the synchronization path; the first network device calculates the A time offset between the time of the first time synchronization device and the time source.
- the first network device can monitor the time deviation of each time synchronization device and the time source, which improves the accuracy of time synchronization monitoring, and does not need to deploy additional time sources in the network, reducing Difficulty in deployment.
- the time deviation information of each time synchronization device includes a time deviation, where the time deviation is a deviation between a time of the time synchronization device and a time of an upstream time device.
- the first network device calculates the difference between the time of the first time synchronization device and the time source of the time source according to the synchronization path information and the time deviation information of the multiple time synchronization devices.
- the time deviation includes: the first network device calculates the time difference between the time of the first time synchronization device and the time source according to the time deviation in the synchronization path information and the time deviation information of the multiple time synchronization devices. time skew.
- the first network device calculates the time of the first time synchronization device according to the time deviation in the synchronization path information and the time deviation information of the multiple time synchronization devices.
- the time deviation of the time source includes: the first network device adds the time deviations in the time deviation information of the multiple time synchronization devices to obtain the time of the first time synchronization device and the time of the time source time skew.
- the time offset information of each time synchronization device further includes a time stamp, and the time stamp is used by the first network device to calculate the difference between the time of the first time synchronization device and the The time offset of the time source.
- the range of the time stamps in the time offset information of the multiple time synchronization devices is within a time period.
- the first network device calculates the first time according to the synchronization path information and the time deviation information of the multiple time synchronization devices. A time offset between the time of the synchronization device and the time source.
- the first condition is that a performance of a device on the synchronization path is abnormal.
- the method of the first aspect further includes: the first network device sends a request to the multiple time synchronization devices on the synchronization path according to the synchronization path information, and the The above request is used to request time offset information of the time synchronization device.
- the synchronization path does not include the first network device.
- the synchronization path includes the first network device.
- the present application provides a time synchronization monitoring method, the method comprising: the time synchronization device on the synchronization path sends the time deviation information of the time synchronization device to the first network device, and the time deviation information is Time offset information between the time synchronization device and an upstream time device, where the time offset information is used by the first network device to calculate the time offset of the synchronization path.
- the time offset information of the time synchronization device includes a time offset, where the time offset is a deviation between the time of the time synchronization device and the time of an upstream time device, and the time offset is used for the first
- a network device calculates a time offset of the synchronization path.
- the time offset information of the time synchronization device further includes a time stamp, where the time stamp is used by the first network device to calculate the time offset of the synchronization path.
- the time synchronization device receives a request sent by the first network device, where the request is used to request time offset information of the time synchronization device.
- the present application provides a time synchronization monitoring method, the method is executed by a communication system, the communication system includes a first network device and multiple time synchronization devices, and the method includes: the first network device obtains Synchronization path information, the synchronization path information is the synchronization path information between the first time synchronization device and the time source; the first time synchronization device sends the synchronization path information to the first network device, the synchronization path information is the Information about a synchronization path between a first time synchronization device and a time source, where the multiple time synchronization devices include the first time synchronization device; the multiple time synchronization devices send the time synchronization to the first network device Time deviation information of devices, wherein the time deviation information of each time synchronization device is time deviation information between the time synchronization device and an upstream time device, and the multiple time synchronization devices are time synchronization devices on the synchronization path ; The first network device calculates the time deviation between the time of the first time synchronization
- the time offset information of each time synchronization device includes a time offset
- the first network device adds the time offsets in the time offset information of the multiple time synchronization devices to obtain The time of the first time synchronization device is deviated from the time of the time source.
- the time offset information of each time synchronization device further includes a timestamp, and when the time stamps in the time offset information of multiple time synchronization devices range within a time period, the The first network device adds the time offsets in the time offset information of the multiple time synchronization devices to obtain the time offset between the time of the first time synchronization device and the time source.
- the first network device sends a request to the multiple time synchronization devices on the synchronization path according to the synchronization path information, and the request is used to request The time offset information of the time synchronization device.
- the present application provides a network device, the network device includes a memory and a processor; the memory is used to store program code; the processor is used to run instructions in the program code, so that The network device executes the method described in any aspect above and any possible implementation manner of any aspect.
- the processor executes the instruction, so that the network device is used to obtain synchronization path information, and the synchronization path
- the information is the information of the synchronization path between the first time synchronization device and the time source; it is also used to obtain the time deviation information of multiple time synchronization devices, wherein the time deviation of each time synchronization device in the multiple time synchronization devices
- the information is time offset information between the time synchronization device and the upstream time device, and the multiple time synchronization devices are time synchronization devices on the synchronization path; it is also used to The time deviation information of the synchronization device is used to calculate the time deviation between the time of the first time synchronization device and the time source.
- the present application provides a network device, including: a transceiver unit and a processing unit.
- the transceiving unit is configured to execute the method described in any of the preceding aspects and the transceiving operation involved in any possible implementation of any aspect
- the processing unit is configured to execute the method described in any of the above aspects And other operations involved in any possible implementation of any aspect except the transceiving operation.
- the transceiver unit is configured to receive synchronization path information of a synchronization path other than the first network device, and the synchronization path
- the information is the information of the synchronization path between the first time synchronization device and the time source; it is also used to receive time deviation information of multiple time synchronization devices, wherein the time deviation of each time synchronization device in the multiple time synchronization devices
- the information is time offset information between the time synchronization device and an upstream time device, and the multiple time synchronization devices are time synchronization devices on the synchronization path;
- the processing unit is used for when the first network device is on the synchronization path , to obtain the synchronization path information and time offset information of the first network device; and to calculate the time of the first time synchronization device and the time deviation information of the plurality of time synchronization devices according to the synchronization path information and the time deviation information The time offset of the time source.
- the present application provides a network device, the network device includes a communication interface and a processor, and the communication interface is used to execute the method described in any of the preceding aspects and any possible implementation of any aspect
- the sending and receiving operation involved in the above, the processor is configured to execute other operations involved in the method described in any aspect above and any possible implementation of any aspect except the sending and receiving operation.
- the communication interface is used to receive synchronization path information of a synchronization path other than the first network device, where the synchronization path information is information on a synchronization path between the first time synchronization device and a time source; it is also used to receive multiple Time deviation information of a time synchronization device, wherein the time deviation information of each time synchronization device in the multiple time synchronization devices is time deviation information between the time synchronization device and an upstream time device, and the multiple time synchronization devices
- the device is a time synchronization device on the synchronization path; the processor is used to obtain synchronization path information and time offset information of the first network device when the first network device is on the synchronization path; calculating the time offset between the time of the first time synchronization device and the time source based on the time deviation information of the multiple time synchronization devices.
- the present application provides a communication system, which includes: a first network device and a time synchronization device, where the first network device may be the network device described in any one of the fourth to sixth aspects, It is used to perform some or all of the operations performed by the first network device in any one of the foregoing aspects and any possible implementation manner; the time synchronization device may be the network described in any one of the fourth aspect to the sixth aspect A device configured to perform part or all of the operations performed by the time synchronization device in any one of the foregoing aspects and any possible implementation manner.
- the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a processor, the processor executes the method described in any one of the preceding aspects and Part or all of the operations included in any possible implementation of any of the foregoing aspects.
- the present application provides a computer program product, the computer program product includes instructions, and when it is run on a processor, it causes the processor to perform the method described in any of the preceding aspects and any of the preceding aspects. Some or all of the operations included in a possible implementation.
- the first network device can monitor the time of each time synchronization device and the time deviation of the time source, which improves the accuracy of time synchronization monitoring, and does not need to deploy additional time sources in the network, reducing Difficulty in deployment.
- FIG. 1 is a schematic diagram of a scene in an embodiment of the present application
- FIG. 2 is a schematic diagram of a time synchronization method according to an embodiment of the present application.
- FIG. 3 is a schematic diagram of a time synchronization monitoring method according to an embodiment of the present application.
- FIG. 4 is a schematic diagram of another time synchronization monitoring method according to an embodiment of the present application.
- FIG. 5 is a flowchart of a method for monitoring time synchronization of a first network device according to an embodiment of the present application
- FIG. 6 is a flowchart of a method for monitoring time synchronization of a time synchronization device according to an embodiment of the present application
- FIG. 7 is a schematic structural diagram of a network device according to an embodiment of the present application.
- FIG. 8 is a schematic structural diagram of a network device according to an embodiment of the present application.
- FIG. 9 is a schematic structural diagram of a network device according to an embodiment of the present application.
- Time offset The difference between the time of the two devices.
- the time offset can indicate the accuracy of the time synchronization of the two devices. If the time offset remains within a limited range, it means that the time of the two devices is synchronized.
- Boundary Clock (Boundary Clock, BC): BC means a device that participates in the time synchronization process. During the time synchronization process, a device that supports BC mode receives, sends, and analyzes time synchronization-related messages according to the PTP protocol, and calculates the device Deviation from the time of its upstream device.
- Transparent Clock means a device that does not participate in the time synchronization process, and a device that supports TC mode directly forwards time synchronization-related messages during the time synchronization process.
- Time synchronization device is a device that supports BC mode.
- Synchronization path a path between the time synchronization device and the time source (including the time synchronization device, excluding the time source).
- Upstream time device when the time synchronization device on the synchronization path is a BC device connected to a time source, the upstream time device of the time synchronization device is the time source, and when the time synchronization device on the synchronization path is connected to the time source When there is at least one BC device, the upstream time device of the time synchronization device is its upstream BC device.
- Synchronization path information including the information of each node on the synchronization path, where the information of each node is the information that uniquely identifies the node, such as the node number.
- Main time source (Grand Master, GM): The main time source is the time reference of network devices. Two time sources are deployed in the network to work in active and standby mode, namely GM and backup time source (Backup Master, BM).
- Time synchronization information is the information that the time synchronization device needs to synchronize with the upstream device during the time synchronization process of the time synchronization device according to the PTP protocol, including PTP protocol packets.
- FIG. 1 is a schematic diagram of a scenario of an embodiment of the present application.
- the scenario shown in FIG. 1 is described below.
- the time source device is the reference of the whole network time, which can be a BITS time source host or other network devices.
- devices 101-102 are time source devices, and device 101 is the main time source , device 102 is the backup time source; the core layer forwarding device, aggregation layer device, access layer device, and base station are responsible for forwarding time synchronization information and synchronizing time with upstream devices.
- the core layer device, aggregation layer device, and access layer device may include, but is not limited to: devices with forwarding functions such as switches or access routers.
- devices 111-112 are core layer devices
- devices 121-126 are Access layer equipment
- base stations can include, but are not limited to: 4G base stations or 5G base stations, etc.
- equipment 141-equipment 148 are base stations; control and management equipment is responsible for monitoring the accuracy of time synchronization of network equipment and controlling management functions It can be implemented by means of hardware, software, or a combination of software and hardware.
- device 110 is a control and management device. Exemplarily, FIG.
- FIG. 1 shows a connection mode, wherein the time source device 101 is connected to the core layer device 111, the time source device 102 is connected to the core layer device 112, the core layer device 111 is connected to the aggregation layer device 125, and the device 112 is connected to -device 124, the convergence layer device 121-device 126 are connected in turn, two access layer devices are connected to one convergence layer device, for example: access layer device 131, device 132 are connected to convergence layer device 121, two base stations Access to the network through an access layer device, for example: base station 141-base station 142 is connected to the access layer device 131, base station 143-base station 144 is connected to the access layer device 132, and there is a control management device 110 connected to the core layer Device 111 is connected.
- the communication links in this application include not only wired links, but also wireless links.
- FIG 1 only 2 core layer forwarding devices, 1 core layer control and management device, 6 aggregation layer devices, 4 access layer devices, and 8 base stations are shown exemplarily.
- the network can include any other The number of core layer forwarding devices, core layer control and management devices, aggregation layer devices, access layer devices, and base stations.
- the method 100 for time synchronization according to the PTP protocol is described.
- the time synchronization process between device 111 and device 101 is described below as an example.
- the Master node shown in FIG. 2 corresponds to device 101 shown in FIG. 1
- the Slave node shown in FIG. 2 corresponds to device 111 shown in FIG. 1 .
- the method includes S101-S106.
- the Master node sends a synchronization Sync message at time t1, and carries the time stamp t1 in the Sync message;
- the Slave node receives the Sync message at time t2, saves the timestamp t2, and saves the timestamp t1 extracted from the message;
- S103 Slave node sends delay request (Delay Request, Delay_Req) message at t3 moment, saves timestamp t3;
- Master node receives Delay_Req message at t4 moment, produces time delay response (Delay Response, Delay_Resp) message, carries timestamp t4 in Delay_Resp message, sends to Slave node;
- Delay Response Delay Response
- the Slave node receives the Delay_Resp message, and saves the time stamp t4 extracted from the message;
- the Slave node calculates the time deviation from the time of the Master node according to the time stamps t1, t2, t3, and t4, and adjusts its own time to achieve time synchronization with the Master node.
- time synchronization information is transmitted hop by hop from the master time source device 101 to the base station with the time of the master time source device 101 as the reference, and each hop time synchronization device performs time synchronization with the upstream device, and the specific implementation of time synchronization
- the time synchronization device may have an abnormal time synchronization with the upstream device due to equipment abnormality or time synchronization information discarding, which will lead to inaccurate time synchronization between the final base station and the time source, affecting base station data Therefore, a time synchronization monitoring method is needed in the network to monitor the accuracy of time synchronization in the network.
- a monitoring method for out-of-band time synchronization is introduced below.
- the method also needs to deploy an additional time source device in the network, such as device 150, and the additional time source device 150 can be connected to any network device, such as with the core layer, aggregation
- the time source device 150 is the same as the time source 101 in FIG. 1 and serves as a reference time source for time synchronization monitoring.
- the device 150 is connected to the forwarding device 112 of the core layer to monitor the accuracy of time synchronization of the network device 111 as an example.
- the additional time source device 150 is used as a monitoring device, which is equivalent to the Slave node in the method 100, and the time synchronization device 111 is equivalent to the Master node in the method 100, and the device 150 and the device 111 execute the method 100
- the process of S101-S106 so that the device 150 obtains four time stamps, and then calculates the time offset between the time of the device 150 and the time of the device 111 according to the formula.
- the time deviation of the device 111's time relative to the device 101's time is kept within a limited range, and the time of the monitoring device 150 is the same as the time of the time source 101, then the monitoring The time deviation of the time of device 150 relative to the time of device 111 should also be kept within the same limited range. If the time deviation of monitoring device 150 relative to device 111 is not within a limited range, it means that the time of device 111 and its upstream device 101 time is out of sync.
- the device 150 can judge the accuracy of the time synchronization between the device 111 and the time source 101 by judging whether the calculated time deviation is within a limited range.
- an additional time source needs to be deployed in the network as a time reference for monitoring, which increases the deployment cost, and for the devices in the network, it is necessary to support both BC mode and TC mode, which increases the complexity of the device.
- the time synchronization device and the time source 101 synchronize time
- the time synchronization device supports the BC mode
- the network device between the monitoring device and the monitored time synchronization device needs to support
- the TC mode transparently transmits time synchronization information.
- the device 150 monitors the device 123
- the device 124 and the device 112 need to support the TC mode.
- an in-band time synchronization monitoring method is introduced below.
- the method can be applied to any network device in FIG. 1 , including: a time source, a control management device, a core layer device, a convergence layer device, an access layer device or a base station.
- the following uses the control and management device 110 as a monitoring device to monitor the time synchronization accuracy of the network device 125 as an example for introduction.
- the device 125 and the upstream device 111 perform time synchronization with reference to the method described in method 100, and the device 125 calculates the time offset from the time of the device 111, and saves the time offset.
- the device 125 sends the saved time offset to the device 110, and the device 110 obtains the time offset between the time of the device 125 and the time of its upstream device.
- the device 110 can also obtain the time offset between the time of other time synchronization devices and the time of its upstream device.
- the monitoring device 110 can only obtain the time deviation between each time synchronization device and its upstream device, and cannot obtain the time deviation between each time synchronization device and the time source. If the time of the upstream device Synchronization error, then even if the time synchronization between the time synchronization device and the upstream device is accurate, the time between the time synchronization device and the time source is not synchronized.
- the monitoring device cannot judge whether the synchronization of its upstream device is accurate according to the time deviation sent by the time synchronization device, so it cannot infer the accuracy of the time synchronization between the time synchronization device and the time source.
- this application provides a time-synchronized monitoring method, which can be applied in the scenario of FIG. 1.
- there are multiple synchronization paths such as device 111-device 125 -Device 126-Device 121-Device 131-Device 141 is a synchronization path, and Device 111-Device 125-Device 126-Device 121 is also a synchronization path, which will not be listed here.
- the synchronization path is device 111-device 125-device 126-device 121-device 131-device 141
- the monitoring device is control management device 110 as an example for introduction.
- the device 110 receives the synchronization path information, which is the path information of the device 111-device 125-device 126-device 121-device 131-device 141, and the device 110 receives the time of the time synchronization device on the synchronization path and its upstream time device
- the first network device may calculate the time deviation between the time of the device 141 and the time source according to the synchronization path information and the time deviation information of the multiple time synchronization devices.
- device 110 can obtain that device 111-device 125-device 126-device 121-device 131-device 141 is a synchronization path through the received synchronization path information, and then device 110 adds the time offsets of the devices corresponding to the synchronization path, that is offset111+offset125+offset126+offset121+offset131+offset141 can obtain the time of the device 141 and the time offset of the time source. It can be seen that the method provided by this application does not need to deploy an additional time source, which reduces the difficulty of deployment, and can monitor the time of each time synchronization device and the time deviation of the time source, improving the accuracy of time synchronization monitoring.
- a time synchronization monitoring method 200 provided by the present application will be described below with reference to FIG. 3 .
- the method 200 shown in FIG. 3 can be applied to the scenario shown in FIG. 1 .
- the monitoring device in Figure 3 is not a device on the synchronization path.
- the monitoring device in Figure 3 corresponds to the control management device 110 in Figure 1, the time source 101 or 102, and the network forwarding device, including the core layer, aggregation layer, and access layer. Device or base station.
- the BC device in FIG. 3 corresponds to the network forwarding device or base station in FIG. 1.
- the GM device in FIG. 3 may correspond to the time source device 101 or 102 in FIG.
- the method 200 includes S201-S205:
- the BC device calculates and saves time deviation information.
- the time offset information includes a time offset
- the BC device obtains four timestamps t1, t2, t3, t4 and calculates the time offset from the upstream device based on the four timestamps. For reference, method 100 The related descriptions will not be repeated here.
- the BC device and the upstream device may be directly connected, or may be connected through one or more devices supporting the TC mode.
- the time offset information includes a time offset and a time stamp, and when the BC device saves the time offset, it saves the time stamp that generates the time offset.
- the BC device receives the synchronization path message sent by the upstream time device, and sends the synchronization path message added with the node information to the downstream device.
- each time synchronization device has a unique clock number Clock ID in the entire network, and the synchronization path message is an Announce message in the PTP protocol, which carries the Clock ID.
- each BC device after each BC device receives the Announce message, it can obtain the time source and the Clock ID of all upstream time synchronization devices by parsing the Announce message, and send the clock ID containing the time to the next-hop device of the synchronization path.
- the BC device sends time deviation information to the monitoring device.
- the BC device periodically sends time deviation information to the monitoring device, and the time deviation information includes the time deviation between the time of the BC device and the time of the upstream BC device.
- the BC device periodically sends time deviation information to the monitoring device, where the time deviation information includes a time deviation and a time stamp, where the time stamp is the time when the BC device generates the time deviation, The time stamp is used to monitor the time stamp of the time deviation received by the monitoring device.
- the BC device may also reply time deviation information according to the indication of the request message sent by the monitoring device, and the time deviation information includes the time deviation between the time of the BC device and the time of the upstream BC device.
- the BC device can also respond to the time offset information according to the indication of the request message sent by the monitoring device, the time offset information includes a time offset and a time stamp, and the time stamp is generated by the BC device The time of the time offset, the time stamp is used to monitor the device to align with the time of the received time offset.
- the BC device sends the synchronization path information to the monitoring device.
- the BC device sends an Announce message including the time source, all upstream time synchronization devices and the Clock ID of the device to the monitoring device.
- the BC device may also send an Announce message including the time source, all upstream time synchronization devices, and the Clock ID of the device to the monitoring device according to the indication of the request sent by the monitoring device.
- the monitoring device receives the synchronization path information and the time deviation information of the multiple BC devices, and calculates the time deviation between the BC device and the time source according to the synchronization path information and the time deviation information of the multiple BC devices.
- the monitoring device receives synchronization path information from BC equipment, such as BCN, and the synchronization path information includes information of all nodes of the time source device-BCN equipment, that is, BC 1, BC 2, BC 3.
- the Clock ID of BC 4 the monitoring device can obtain the synchronization path between the time source and the last hop of the BC device in the synchronization path according to the synchronization path information, that is, BC 1-BC 2-BC 3-BC 4, or according to the synchronization path information Obtain the synchronization path of any hop BC device in the middle of the time source and the synchronization path through the above synchronization path information, for example: BC 1-BC 2. It can be understood that the above-mentioned reception of synchronous path information from the BCN is just an example, and the monitoring device can receive synchronous path information from any BC device.
- the monitoring device adds the time offsets of the BC devices on the synchronization path included in the synchronization path information to obtain the time offset of the synchronization path. For example, when the synchronization path information is the time source and the information of the synchronization path of the last hop BC device of the synchronization path, the monitoring device adds the time deviation in the time deviation information of the received BC1 equipment-BCN equipment, The time deviation between the BCN device and the time source can be obtained. The monitoring device adds the time deviation in the time deviation information sent by the BC1 device to the BC 2 device to obtain the time deviation between the BC 2 device and the time source.
- the time offset information includes a timestamp
- the monitoring device aligns the received time offset information of multiple BC devices according to the timestamp, and then uses the time offset in the aligned time offset information Calculation.
- the monitoring device sends a request to the BC device for time offset information of the BC device.
- the monitoring device sends a request to the BC device for synchronization path information of the BC device.
- the monitoring device periodically receives synchronization path information and time deviation information, and the monitoring device periodically calculates the time deviation of the synchronization path according to the synchronization path information and time deviation information.
- the monitoring device periodically receives synchronization path information and time deviation information, and when the monitoring device detects that the performance of the device on the synchronization path is abnormal, the monitoring device and time offset information, and calculate the time offset of the synchronization path.
- a time synchronization monitoring method 300 provided by the present application will be described below with reference to FIG. 4 .
- the method 300 shown in FIG. 4 can be applied to the scenario shown in FIG. 1 .
- the monitoring device in Figure 4 is not a device on the synchronization path.
- the monitoring device in Figure 4 corresponds to the network forwarding device in Figure 1, including core layer, convergence layer, access layer equipment or base stations, and the corresponding diagram of BC equipment in Figure 4
- the network forwarding device or base station in 1 and the GM device in FIG. 4 may correspond to the time source device 101 or 102 in FIG. 1 , or may correspond to any device, such as device 111 .
- the method 300 includes S301-S305:
- the BC device calculates and saves time deviation information.
- the monitoring device is also a BC device, and the process of calculating and saving the time deviation information by the monitoring device and other BC devices can refer to the relevant implementation of S201 , which will not be repeated here.
- the BC device receives the synchronization path message sent by the upstream time device, and sends the synchronization path message added with the node information to the downstream device.
- the monitoring device is also a BC device.
- the monitoring device and other BC devices receive the synchronization path message sent by the upstream device, add the path information of the node in the message, and send it to the downstream device. Refer to S202 Relevant implementations will not be repeated here.
- the BC device sends time deviation information to the monitoring device.
- the method for other BC devices to send time offset information to the monitoring device can refer to the relevant implementation of S203, which will not be repeated here.
- the BC device sends the synchronization path information to the monitoring device.
- the method for other BC devices to send synchronization path information to the monitoring device can refer to the relevant implementation of S204, which will not be repeated here.
- the monitoring device obtains the synchronization path information and the time deviation information of the multiple BC devices, and calculates the time deviation between the BC device and the time source according to the synchronization path information and the time deviation information of the multiple BC devices.
- the method for the monitoring device to receive the synchronization path information and the time offset information of the other multiple BC devices from other BC devices can refer to the relevant implementation of S205, which will not be described in detail here.
- the monitoring device also It is necessary to obtain the node information and time deviation information of this device.
- a time synchronization monitoring method 400 provided by the present application will be described below with reference to FIG. 5 .
- the method 400 can be applied to the scenario shown in FIG. 1.
- the first network device corresponds to the control management device 110 in FIG. 1, the time source 101 or 102, and the network forwarding device, including device or base station, the first time synchronization device corresponds to the network forwarding device in Figure 1, including devices or base stations at the core layer, aggregation layer, and access layer;
- method 400 can be specifically used to implement method 200 or method 300 described above , when method 400 implements method 200 or method 300, the first network device in method 400 is equivalent to the monitoring device in method 200 or method 300, and the first time synchronization device is equivalent to the BC device in method 200 or method 300.
- the method 400 includes S401-S403.
- the first network device obtains synchronization path information, where the synchronization path information is information about a synchronization path between the first time synchronization device and a time source.
- the first network device may obtain synchronization path information in the following two ways.
- the first network device is not a device on the synchronization path, and the first network device receives the synchronization path information sent by the time synchronization device.
- the time synchronization device is a first time synchronization device
- the synchronization path information is information of a synchronization path between the first time synchronization device and a time source.
- the monitoring device receives synchronization path information sent by a device downstream of the first time synchronization device, where the synchronization path information includes information about a synchronization path between the first time synchronization device and a time source.
- mode 1 For the specific implementation of mode 1, reference may be made to the relevant description of the monitoring device receiving the synchronization path information in S205, which will not be repeated here.
- the first network device is a device on the synchronization path. After receiving the synchronization path information sent by the upstream device, the first network device adds the node information of the own device to the synchronization path.
- the method for adding the node information of its own device to the synchronization path can refer to the relevant description of S305, and details will not be repeated here.
- the first network device obtains time offset information of multiple time synchronization devices, where the time offset information of each time synchronization device among the multiple time synchronization devices is the difference between the time synchronization device and an upstream time device time deviation information, the multiple time synchronization devices are time synchronization devices on the synchronization path.
- the first network device may obtain synchronization path information in the following two ways.
- the first network device is not a device on the synchronization path, and the first network device receives time offset information of multiple time synchronization devices.
- the first network device is a device on the synchronization path.
- the first network device needs to obtain the time deviation information of its own device and its upstream device after receiving time deviation information of other time synchronization devices.
- the first network device calculates a time offset between the time of the first time synchronization device and the time source according to the synchronization path information and the time offset information of the multiple time synchronization devices.
- the first network device calculates the time offset from the time source according to the synchronization path information and the time offset information of the multiple time synchronization devices, refer to the relevant description of the monitoring device calculating the time offset in S205 , which will not be repeated here.
- a time synchronization monitoring method 500 provided by the present application will be described below with reference to FIG. 6 .
- the method 500 can be applied to the scenario shown in FIG. 1.
- the first network device corresponds to the control management device 110 in FIG. 1, the time source 101 or 102, and the network forwarding device, including equipment or base station; time synchronization equipment
- For the network forwarding equipment in Figure 1, including equipment or base stations at the core layer, convergence layer, and access layer, method 500 can be specifically used to implement method 200 or method 300 described above, when When method 400 implements method 200 or method 300, the first network device in method 400 is equivalent to the monitoring device in method 200 or method 300, and the time synchronization device is equivalent to the BC device in method 200 or method 300, and the method 500 includes S501-S503.
- the time synchronization device on the synchronization path sends time deviation information of the time synchronization device to the first network device, where the time deviation information is time deviation information between the time synchronization device and an upstream time device, and the time deviation The information is used by the first network device to calculate the time offset of the synchronization path.
- the method includes S502-S503.
- the time synchronization device receives the synchronization path information sent by the upstream time device, adds the node information of its own device into the synchronization path information, and sends it to the downstream time synchronization device.
- the time synchronization device sends synchronization path information to the first network device.
- FIG. 7 is a schematic structural diagram of a network device 1000 according to an embodiment of the present application.
- the network device 1000 shown in FIG. 7 includes a transceiver unit 1001 and a processing unit 1002 .
- the network device 1000 may be used to execute the method 200, the method 300, the method 400 or the method 500 in the above embodiments.
- the network device 1000 may execute the method 200 in the above embodiment.
- the network device 1000 is equivalent to the BC device in the method 200 .
- the network device 1000 may be applied in the application scenario shown in FIG. 1 , and may be, for example, a network forwarding device or a base station in the scenario shown in FIG. 1 .
- the transceiving unit 1001 is configured to perform the transceiving operation performed by the BC device in the method 200 .
- the processing unit 1002 is configured to perform operations performed by the BC device in the method 200 except the transceiving operation.
- the transceiver unit 1001 is used to receive the synchronization path message sent by the upstream device, and is also used to send it to the downstream device; the processing unit 1002 is used to calculate and save the time offset information.
- the network device 1000 may execute the method 200 in the above embodiment.
- the network device 1000 is equivalent to the monitoring device in the method 200 .
- the network device 1000 may be applied in the application scenario shown in FIG. 1 , for example, may be the control management device 110 in the scenario shown in FIG. 1 .
- the transceiving unit 1001 is configured to perform the transceiving operation performed by the monitoring device in the method 200 .
- the processing unit 1002 is configured to perform operations performed by the monitoring device in the method 200 other than the transceiving operation.
- the transceiver unit 1001 is configured to receive synchronization path information and time offset information of multiple BC devices.
- the processing unit 1002 is configured to calculate the time offset between the BC device and the time source according to the synchronization path information and the time offset information of multiple BC devices.
- the network device 1000 may execute the method 300 in the above embodiment.
- the network device 1000 is equivalent to the BC device in the method 300 .
- the network device 1000 can be applied in the application scenario shown in FIG. 1 , for example, it can be a network forwarding device or a base station in the scenario shown in FIG. 1 .
- the transceiving unit 1001 is configured to perform the transceiving operation performed by the BC device in the method 300 .
- the processing unit 1002 is configured to perform operations performed by the BC device in the method 300 other than the transceiving operation.
- the transceiver unit 1001 is used to receive the synchronization path message sent by the upstream device, and is also used to send it to the downstream device; the processing unit 1002 is used to calculate and save the time offset information.
- the network device 1000 may execute the method 300 in the above embodiment.
- the network device 1000 is equivalent to the monitoring device in the method 300 .
- the network device 1000 may be applied in the application scenario shown in FIG. 1 , for example, may be the control management device 110 in the scenario shown in FIG. 1 .
- the transceiving unit 1001 is configured to perform the transceiving operation performed by the monitoring device in the method 300 .
- the processing unit 1002 is configured to perform operations performed by the monitoring device in method 300 other than the transceiving operation.
- the transceiver unit 1001 is configured to receive synchronization path information and time offset information of multiple BC devices.
- the processing unit 1002 is configured to calculate the time offset between the BC device and the time source according to the synchronization path information and the time offset information of multiple BC devices.
- the network device 1000 may execute the method 400 in the above embodiment.
- the network device 1000 is equivalent to the first network device in the method 400 .
- the network device 1000 may be applied in the application scenario shown in FIG. 1 , for example, may be the control management device 110 in the scenario shown in FIG. 1 .
- the transceiving unit 1001 is configured to perform the transceiving operation performed by the first network device in the method 400 .
- the processing unit 1002 is configured to perform operations performed by the first network device in the method 400 other than the transceiving operation.
- the transceiver unit 1001 is configured to receive synchronization path information, where the synchronization path information is information on a synchronization path between a first time synchronization device and a time source; it is also used to receive time offset information of multiple time synchronization devices;
- the processing unit 1002 is configured to calculate a time offset between the time of the first time synchronization device and the time source according to the synchronization path information and the time offset information of the multiple time synchronization devices.
- the network device 1000 may execute the method 500 in the above embodiment.
- the network device 1000 is equivalent to a time synchronization device in the method 500 .
- the network device 1000 may be applied in the application scenario shown in FIG. 1 , and may be, for example, a network forwarding device or a base station in the scenario shown in FIG. 1 .
- the transceiving unit 1001 is configured to perform the transceiving operation performed by the time synchronization device in the method 500 .
- the processing unit 1002 is configured to perform operations performed by the time synchronization device in the method 500 except the transceiving operation.
- the transceiving unit 1001 is configured to send the time offset information of the time synchronization device to the first network device; the processing unit 1002 is configured to calculate and save the time offset information.
- each functional unit in the embodiment of the present application may be integrated into one processing unit, or each unit may physically exist separately, or two or more units may be integrated into one unit.
- the transceiver unit 1001 and the processing unit 1002 may be the same unit, or may be different units.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
- the embodiment of the present application also provides a network device 1100 , as shown in FIG. 8 , which is a schematic structural diagram of the network device 1100 in the embodiment of the present application.
- the network device 1100 includes a communication interface 1101 and a processor 1102 connected to the communication interface 1101 .
- the communication interface is, for example, a device such as a transceiver.
- the network device 1100 may be used to execute the method 200, the method 300, the method 400 or the method 500 in the above embodiments.
- the network device 1100 may serve as a monitoring device to perform the operations performed by the monitoring device in method 200 or method 300
- the network device 1100 may serve as a BC device to perform the operations performed by the BC device in method 200 or method 300 .
- the communication interface 1101 is used for performing the transceiving operation performed by the monitoring device or the BC device in the method 200 or the method 300 .
- the processor 1102 is configured to perform operations other than the transceiving operations performed by the monitoring device or the BC device in the method 200 or the method 300 .
- the network device 1100 may, as the first network device, perform the operations performed by the first network device in the method 400, and the network device 1100 may perform the operations performed by the time synchronization device in the method 500 as the time synchronization device.
- the communication interface 1101 is used for performing the transceiving operation performed by the first network device or the time synchronization device in the method 400 or the method 500 .
- the processor 1102 is configured to perform operations other than the transceiving operations performed by the first network device or the time synchronization device in the method 400 or the method 500 .
- the communication interface 1101 is used to receive the synchronization path information and the time deviation information of multiple BC devices; Time offset information, which calculates the time offset between the BC device and the time source.
- a network device 1200 may include a processor 1210 , a memory 1220 coupled to the processor 1210 , and a transceiver 1230 .
- the transceiver 1230 may be, for example, a communication interface, an optical module, and the like.
- the processor 1210 may be a central processing unit (English: central processing unit, abbreviated: CPU), a network processor (English: network processor, abbreviated: NP) or a combination of CPU and NP.
- the processor can also be an application-specific integrated circuit (English: application-specific integrated circuit, abbreviation: ASIC), a programmable logic device (English: programmable logic device, abbreviation: PLD) or a combination thereof.
- ASIC application-specific integrated circuit
- PLD programmable logic device
- the above PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviated: CPLD), field programmable logic gate array (English: field-programmable gate array, abbreviated: FPGA), general array logic (English: generic array logic, abbreviation: GAL) or any combination thereof.
- Processor 1210 may refer to one processor, or may include multiple processors.
- the memory 1220 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated as RAM); the memory may also include a non-volatile memory (English: non-volatile memory) , such as read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid-state drive (English: solid-state drive , abbreviation: SSD); the storage 1220 may also include a combination of the above-mentioned types of storage.
- the storage 1220 may refer to one storage, or may include multiple storages.
- computer-readable instructions are stored in the memory 1220 , and the computer-readable instructions include a plurality of software modules, such as a sending module 1221 , a processing module 1222 and a receiving module 1223 .
- the processor 1210 may perform corresponding operations according to the instructions of each software module.
- an operation performed by a software module actually refers to an operation performed by the processor 1210 according to an instruction of the software module.
- the processor 1210 may also store program codes or instructions for executing the solutions of the present application. In this case, the processor 1201 does not need to read the program codes or instructions from the memory 1220 .
- the network device 1200 may be used to execute the method 200, the method 300, the method 400 or the method 500 in the above embodiments.
- the network device 1200 may serve as a monitoring device to perform the operations performed by the monitoring device in method 200 or method 300
- the network device 1200 may serve as a BC device to perform the operations performed by the BC device in method 200 or method 300 .
- the network device 1200 may, as the first network device, perform the operations performed by the first network device in method 400
- the network device 1200 may, as a time synchronization device, perform the operations performed by the time synchronization device in method 500.
- the processor 1210 is configured to execute related instructions in the memory 1220, so that the communication device 1200 is configured to: receive synchronization path information and time offset information of multiple BC devices ; Calculate the time deviation between the BC device and the time source according to the synchronization path information and the time deviation information of multiple BC devices.
- the embodiment of the present application also provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a processor, the processor is made to execute the instructions described in any one of the preceding embodiments. Any one or more operations in the method (eg, method 200, method 300, method 400, or method 500).
- the embodiment of the present application also provides a computer program product, including a computer program, which, when running on a processor, causes the processor to execute the method (for example, method 200, method 300) described in any of the foregoing embodiments. , method 400, or method 500) any one or more operations.
- a computer program product including a computer program, which, when running on a processor, causes the processor to execute the method (for example, method 200, method 300) described in any of the foregoing embodiments. , method 400, or method 500) any one or more operations.
- the embodiment of the present application also provides a communication system, including a first network device and a plurality of time synchronization devices, and the structure of each time synchronization device in the first network device and the plurality of time synchronization devices is as shown in Fig. 7-Fig. 9 any network device.
- the communication system above is used to implement part or all of the operations in any one of the method 200, the method 300, the method 400, and the method 500 described in the embodiments corresponding to FIG. 3-FIG. 6 .
- the embodiment of the present application also provides another communication system, including at least one memory and at least one processor, the at least one memory stores instructions, and the at least one processor executes the instructions, so that the communication system implements the aforementioned Part or all of any one of method 200, method 300, method 400, and method 500 described in any one of the embodiments operates.
- the embodiment of the present application also provides a chip system, including: a processor, the processor is coupled with a memory, and the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the The system-on-a-chip implements part or all of the operations in any one of the method 200, the method 300, the method 400, and the method 500 described in any one of the foregoing embodiments of the present application.
- processors in the chip system there may be one or more processors in the chip system.
- the processor can be realized by hardware or by software.
- the processor may be a logic circuit, an integrated circuit, or the like.
- the processor may be a general-purpose processor implemented by reading software codes stored in a memory.
- the memory can be integrated with the processor, or can be set separately from the processor, which is not limited in this application.
- the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be respectively arranged on different chips.
- the setting method of the processor is not specifically limited.
- the system-on-a-chip can be an FPGA, an ASIC, a system on chip (SoC), a CPU, an NP, or a digital signal processing circuit (digital signal processor, DSP), can also be a microcontroller (micro controller unit, MCU), can also be a programmable controller (programmable logic device, PLD) or other integrated chips.
- SoC system on chip
- DSP digital signal processing circuit
- MCU microcontroller
- PLD programmable controller
- the disclosed system, device and method can be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of units is only a logical business division. In actual implementation, there may be other division methods.
- multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
- a unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each business unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software business units.
- the integrated unit is realized in the form of a software business unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
- the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
- the services described in the present invention may be implemented by hardware, software, firmware or any combination thereof.
- the services may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
- Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
- a storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
一种时间同步的监控方法、装置和系统,包括:第一网络设备获得同步路径信息(S401),同步路径信息是第一时间同步设备与时间源间的同步路径的信息;第一网络设备获得多个时间同步设备的时间偏差信息(S402),其中,多个时间同步设备中的每个时间同步设备的时间偏差信息是时间同步设备与上游时间设备间的时间偏差信息,多个时间同步设备是同步路径上的时间同步设备;第一网络设备根据同步路径信息和多个时间同步设备的时间偏差信息,计算同步路径的时间偏差(S403),第一网络设备可以监控每个时间同步设备的时间和时间源的时间偏差,提升了时间同步监控的准确性,并且不需要部署额外的时间源,降低了部署难度。
Description
本申请要求于2021年09月02日提交的申请号为202111041048.3、发明名称为“一种PTP同步性监控方法”的中国专利申请,以及于2021年11月26日提交的申请号为202111422661.X、发明名称为“一种时间同步的监控方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及通信领域,尤其涉及一种时间同步的监控方法。
在5G承载网中,基站间采用时分复用的模式发送数据,这种发送模式对基站间的时间同步的准确性要求很高,例如在5G承载网中,基站之间的时间同步要求在3微秒内。
目前,在5G承载网中,承载网设备(包括核心层,汇聚层,接入层)的时间同步的主流方式是采用精密时间协议(Precision Time Protocol,PTP),时间服务器BITS作为承载网设备的时间源,从时间源到基站逐跳传输时间同步相关的信息,每一跳设备都与上游设备进行时间同步,最终实现对基站的授时。
承载网中,进行时间同步的设备可能由于设备异常或时间同步信息丢弃等原因造成与上游设备时间同步的异常,将导致最终基站与时间源的时间同步不准确,影响基站数据的发送,所以在网络中需要一种时间同步的监控方法,监控网络中时间同步的准确性。
发明内容
有鉴于此,本申请实施例提供了一种时间同步的监控方法、装置和系统。第一网络设备获得同步路径信息,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息;所述第一网络设备获得多个时间同步设备的时间偏差信息,其中,所述多个时间同步设备中的每个时间同步设备的时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述多个时间同步设备是所述同步路径上的时间同步设备;所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差。从而,第一网络设备可以监控每个时间同步设备的时间和时间源的时间偏差,提升了时间同步的监控的准确性,并且在网络中不需要部署额外的时间源,降低了部署难度。
本申请实施例提供的技术方案如下。
第一方面,本申请提供了一种时间同步的监控方法,所述方法包括,第一网络设备获得同步路径信息,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息;所述第一网络设备获得多个时间同步设备的时间偏差信息,其中,所述多个时间同步设备中的每个时间同步设备的时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述多个时间同步设备是所述同步路径上的时间同步设备;所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间 同步设备的时间与所述时间源的时间偏差。
基于实施例提供的方案,第一网络设备可以监控每个时间同步设备的时间和时间源的时间偏差,提升了时间同步的监控的准确性,并且在网络中不需要部署额外的时间源,降低了部署难度。
在一种可能的实现方式中,所述每个时间同步设备的时间偏差信息包括时间偏差,所述时间偏差是所述时间同步设备的时间与上游时间设备的时间的偏差。
在一种可能的实现方式中,所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差,包括:所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息中的时间偏差,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
在一种可能的实现方式中,所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息中的时间偏差,计算所述第一时间同步设备的时间与所述时间源的时间偏差,包括:所述第一网络设备将所述多个时间同步设备的时间偏差信息中的时间偏差相加,得到所述第一时间同步设备的时间与所述时间源的时间偏差。
在一种可能的实现方式中,所述每个时间同步设备的时间偏差信息还包括时间戳,所述时间戳用于所述第一网络设备计算所述第一时间同步设备的时间与所述时间源的时间偏差。
在一种可能的实现方式中,所述多个时间同步设备的时间偏差信息中的时间戳的范围在一个时间段内。
在一种可能的实现方式中,所述同步路径满足第一条件时,所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
在一种可能的实现方式中,所述第一条件是所述同步路径上的设备的性能出现异常。
在一种可能的实现方式中,所述第一方面的方法还包括:所述第一网络设备根据所述同步路径信息,向所述同步路径上的所述多个时间同步设备发送请求,所述请求用于请求所述时间同步设备的时间偏差信息。
在一种可能的实现方式中,所述同步路径不包括所述第一网络设备。
在一种可能的实现方式中,所述同步路径包括所述第一网络设备。
第二方面,本申请提供了一种时间同步的监控方法,所述方法包括,同步路径上的时间同步设备向第一网络设备发送所述时间同步设备的时间偏差信息,所述时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述时间偏差信息用于第一网络设备计算所述同步路径的时间偏差。
在一种可能的实现方式中,所述时间同步设备的时间偏差信息包括时间偏差,所述时间偏差是所述时间同步设备的时间与上游时间设备的时间的偏差,所述时间偏差用于第一网络设备计算所述同步路径的时间偏差。
在一种可能的实现方式中,所述时间同步设备的时间偏差信息还包括时间戳,所述时间戳用于所述第一网络设备计算所述同步路径的时间偏差。
在一种可能的实现方式中,所述时间同步设备接收所述第一网络设备发送的请求,所述请求用于请求所述时间同步设备的时间偏差信息。
第三方面,本申请提供了一种时间同步的监控方法,所述方法由通信系统执行,所述 通信系统包括第一网络设备和多个时间同步设备,所述方法包括:第一网络设备获得同步路径信息,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息;第一时间同步设备向所述第一网络设备发送同步路径信息,所述同步路径信息是所述第一时间同步设备与时间源间的同步路径的信息,所述多个时间同步设备包括所述第一时间同步设备;所述多个时间同步设备向所述第一网络设备发送所述时间同步设备的时间偏差信息,其中,每个时间同步设备的时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述多个时间同步设备是所述同步路径上的时间同步设备;所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
在一种可能的实现方式中,所述每个时间同步设备的时间偏差信息包括时间偏差,所述第一网络设备将所述多个时间同步设备的时间偏差信息中的时间偏差相加,得到所述第一时间同步设备的时间与所述时间源的时间偏差。
在一种可能的实现方式中,所述每个时间同步设备的时间偏差信息还包括时间戳,当多个时间同步设备的时间偏差信息中的时间戳的范围在一个时间段内时,所述第一网络设备将所述多个时间同步设备的时间偏差信息中的时间偏差相加,得到所述第一时间同步设备的时间与所述时间源的时间偏差。
在一种可能的实现方式中,其特征在于,所述第一网络设备根据所述同步路径信息,向所述同步路径上的所述多个时间同步设备发送请求,所述请求用于请求所述时间同步设备的时间偏差信息。
第四方面,本申请提供了一种网络设备,所述网络设备包括存储器和处理器;所述存储器,用于存储程序代码;所述处理器,用于运行所述程序代码中的指令,使得所述网络设备执行以上任一方面以及任一方面任一可能的实现方式中所述的方法。例如:第四方面所述的网络设备作为第一网络设备执行第一方面所述的方法时,所述处理器执行所述指令,使得所述网络设备用于获得同步路径信息,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息;还用于获得多个时间同步设备的时间偏差信息,其中,所述多个时间同步设备中的每个时间同步设备的时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述多个时间同步设备是所述同步路径上的时间同步设备;还用于根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
第五方面,本申请提供了一种网路设备,包括:收发单元和处理单元。其中:所述收发单元用于执行前述任一方面所述的方法以及任一方面的任一可能的实现方式中所涉及的收发操作,所述处理单元用于执行以上任一方面所述的方法以及任一方面的任一可能的实现方式中所涉及的除收发操作之外的其它操作。例如:第五方面所述的网络设备作为第一网络设备执行第一方面所述的方法时,所述收发单元用于接收除第一网络设备以外的同步路径的同步路径信息,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息;还用于接收多个时间同步设备的时间偏差信息,其中,所述多个时间同步设备中的每个时间同步设备的时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述多个时间同步设备是所述同步路径上的时间同步设备;所述处理单元用于第一网络设备在同步路径上时,获得第一网络设备的同步路径信息以及时间偏差信息;还用于根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时 间与所述时间源的时间偏差。
第六方面,本申请提供了一种网络设备,所述网络设备包括通信接口和处理器,所述通信接口用于执行前述任一方面所述的方法以及任一方面的任一可能的实现方式中所涉及的收发操作,所述处理器用于执行以上任一方面所述的方法以及任一方面的任一可能的实现方式中所涉及的除收发操作之外的其它操作。例如,所述通信接口用于接收除第一网络设备以外的同步路径的同步路径信息,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息;还用于接收多个时间同步设备的时间偏差信息,其中,所述多个时间同步设备中的每个时间同步设备的时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述多个时间同步设备是所述同步路径上的时间同步设备;所述处理器用于第一网络设备在同步路径上时,获得第一网络设备的同步路径信息以及时间偏差信息;还用于根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
第六方面,本申请提供了一种通信系统,该通信系统包括:第一网络设备和时间同步设备,该第一网络设备可以是第四方面至第六方面任一项所述的网络设备,用于执行前述任一方面以及任一可能的实现方式中由所述第一网络设备所执行的部分或全部操作;所述时间同步设备可以第四方面至第六方面任一项所述的网络设备,用于执行前述任一方面以及任一可能的实现方式中由所述时间同步设备所执行的部分或全部操作。
第七方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在处理器上运行时,使得处理器执行前述任一方面所述的方法以及前述任一方面的任一可能的实现方式中所包括的部分或全部操作。
第八方面,本申请提供了一种计算机程序产品,所述计算机程序产品包含指令,当其在处理器上运行时,使得处理器执行前述任一方面所述的方法以及前述任一方面的任一可能的实现方式中所包括的部分或全部操作。
通过本申请的技术方案,第一网络设备可以监控每个时间同步设备的时间和时间源的时间偏差,提升了时间同步的监控的准确性,并且在网络中不需要部署额外的时间源,降低了部署难度。
图1为本申请实施例的一种场景示意图;
图2为本申请实施例的一种时间同步的方法示意图;
图3为本申请实施例的一种时间同步的监控方法示意图;
图4为本申请实施例的另一种时间同步的监控方法示意图;
图5为本申请实施例的一种第一网络设备的时间同步的监控方法流程图;
图6为本申请实施例的一种时间同步设备的时间同步的监控方法流程图;
图7为本申请实施例的一种网络设备的结构示意图;
图8为本申请实施例的一种网络设备的结构示意图;
图9为本申请实施例的一种网络设备的结构示意图。
下面通过具体实施例,分别进行详细的说明。
在描述本申请实施例之前,对本申请所涉及的一些技术术语进行简单说明。
时间偏差(offset):两个设备的时间的差值,时间偏差可以表示两个设备时间同步的准确性,如果时间偏差保持在一个限定的范围内,说明两个设备的时间是同步的。
边界时钟(Boundary Clock,BC):BC表示参与时间同步过程的设备,支持BC模式的设备在时间同步的过程中,根据PTP协议接收、发送以及分析时间同步相关的报文,并计算得到该设备与其上游设备的时间的偏差。
透传时钟(Transparent Clock,TC):TC表示不参与时间同步过程的设备,支持TC模式的设备在时间同步的过程中,直接转发时间同步相关的报文。
时间同步设备:时间同步设备是支持BC模式的设备。
同步路径:时间同步设备与时间源间(包括时间同步设备,不包括时间源)的一条路径。
上游时间设备:当同步路径上的时间同步设备是与时间源连接的BC设备时,所述时间同步设备的上游时间设备是时间源,当所述同步路径上的时间同步设备与时间源之间至少有一个BC设备时,所述时间同步设备的上游时间设备是其上游的BC设备。
同步路径信息:包括同步路径上每个节点的信息,其中每个节点的信息是唯一标识该节点的信息,例如节点编号。
主时间源(Grand Master,GM):主时间源是网络设备的时间参考,在网络中部署2个时间源,以主备模式工作,分别是GM和备时间源(Backup Master,BM)。
时间同步信息:时间同步信息是时间同步设备根据PTP协议进行时间同步的过程中,需要与上游设备同步的信息,包括PTP协议报文等。
图1是本申请实施例的场景示意图,下面介绍图1示出的场景,在图1中,包括:时间源、核心层设备、汇聚层设备、接入层设备、基站。其中,时间源设备,是全网时间的参考,可以是比特BITS时间源主机,也可以是其他的网络设备,在图1中,设备101-设备102是时间源设备,设备101是主时间源,设备102是备时间源;核心层转发设备、汇聚层设备、接入层设备以及基站负责转发时间同步信息,以及与上游设备同步时间,其中,核心层设备、汇聚层设备、接入层设备例如可以但不限于包括:交换机或接入路由器等具有转发功能的设备,在图1中,设备111-设备112是核心层设备,设备121-设备126是汇聚层设备,设备131-设备134是接入层设备;基站例如可以但不限于包括:4G基站或5G基站等,在图1中,设备141-设备148是基站;控制管理设备,负责监控网络设备时间同步的准确性,控制管理功能可以通过硬件、软件或者软硬件结合的方式来实现,在图1中,设备110是控制管理设备。示例性的,图1示出了一种连接方式,其中,时间源设备101连接到核心层设备111,时间源设备102连接到核心层设备112,核心层设备111与汇聚层设备125连接,设备112与-设备124连接,汇聚层设备121-设备126依次连接,2个接入层设备与一个汇聚层设备连接,例如:接入层设备131、设备132与汇聚层设备121连接,2个基站通过一个接入层设备接入网络,例如:基站141-基站142与接入层设备131连接,基站143-基站144与接入层设备132连接,在核心层还有1台控制管理设备110与设备111连接。应当理解,在本申请中的通信链路不仅包括有线链路,还包括无线链路。在图1中,仅示例性的示出了2个核心层转发设备,1个核心层控制管理设备,6个汇聚层设备,4个接入层设备,8个基站,该网络可以包括任意其它数量的核心层转发设备,核心层控制管理设备,汇聚层设备,接入层设备,基站。
接下来结合图2,以图1的场景为例,说明根据PTP协议进行时间同步的方法100。下 面以设备111与设备101的时间同步过程为例进行说明,此时图2所示的Master节点对应图1所示的设备101,图2所示的Slave节点对应图1所示的设备111。所述方法包括S101-S106。
S101、Master节点在t1时刻发送同步Sync报文,并将时间戳t1携带在Sync报文中;
S102、Slave节点在t2时刻接收到Sync报文,保存时间戳t2,并保存从报文中提取的时间戳t1;
S103、Slave节点在t3时刻发送时延请求(Delay Request,Delay_Req)报文,保存时间戳t3;
S104、Master节点在t4时刻接收到Delay_Req报文,产生时延响应(Delay Response,Delay_Resp)报文,将时间戳t4携带在Delay_Resp报文中,向Slave节点发送;
S105、Slave节点接收到Delay_Resp报文,保存从报文中提取的时间戳t4;
S106、Slave节点根据时间戳t1、t2、t3、t4,计算与Master节点的时间的时间偏差,调整自身的时间以达到和Master节点的时间同步。
在S106中,Slave节点根据公式offset=[(t2-t1)-(t4-t3)]/2计算Slave节点与Master节点的时间的偏差,其中offset表示Slave节点与Master节点间的时间的偏差,然后Slave节点根据时间偏差调整自身的时间,以达到和Master节点的时间同步。
在图1中,以主时间源设备101的时间为基准,从主时间源设备101到基站逐跳传输时间同步信息,每一跳时间同步设备都与上游设备进行时间同步,时间同步的具体实现过程可以参考方法100的描述,最终实现对基站的授时。然而,在图1示出的网络中,时间同步设备可能由于设备异常或时间同步信息丢弃等原因造成与上游设备时间同步的异常,将导致最终基站与时间源的时间同步不准确,影响基站数据的发送,所以在网络中需要一种时间同步的监控方法,监控网络中时间同步的准确性。
下面仍然以图1的场景为例,介绍一种带外时间同步的监控方法。所述方法在时间同步的监控过程中,还需要在网络中部署一个额外的时间源设备,例如为设备150,额外的时间源设备150可以连接在任何一个网络设备上,例如与核心层、汇聚层、接入层的设备连接或者与基站连接,所述时间源设备150与图1中的时间源101的时间相同,作为时间同步监控的参考时间源。下面以设备150与核心层的转发设备112连接,监控网络设备111的时间同步的准确性为例进行介绍。在带外时间同步的监控方法中,额外的时间源设备150作为监控设备,相当于方法100中的Slave节点,时间同步设备111相当于方法100中的Master节点,设备150和设备111执行方法100的S101-S106过程,从而使得设备150获得4个时间戳,然后根据公式计算设备150的时间与设备111的时间的时间偏差。由于设备111与上游设备101的时间是同步的,所以设备111的时间相对于设备101的时间的时间偏差保持在一个限定的范围内,监控设备150的时间与时间源101的时间相同,那么监控设备150的时间相对于设备111的时间的时间偏差也应该保持在同一限定的范围内,如果监控设备150相对于设备111的时间偏差不在一个限定的范围内,说明设备111的时间与其上游设备101的时间不同步。设备150通过判断计算得到的时间偏差是否一个限定的范围内,可以判断设备111与时间源101的时间同步的准确性。
上文所描述的基于带外时间同步的监控方法中,需要在网络中部署额外的时间源作为监控的时间参考,增加了部署成本,并且对于网络中的设备来说需要同时支持BC模式和TC模式,增加了设备的复杂性。例如,当时间同步设备和时间源101同步时间时,所述时间同步设备支持BC模式,当设备需要支持带外时间同步时,在监控设备和被监控的时间同步设备 之间的网络设备需要支持TC模式,透传时间同步信息,比如设备150监控设备123设备时,设备124和设备112需要支持TC模式。使用带内的时间同步监控方法,可以有效解决上述问题。
下面仍然以图1所示的场景为例,介绍一种带内时间同步的监控方法。所述方法可以应用在图1的任何一个网络设备上,包括:时间源、控制管理设备、核心层设备、汇聚层设备、接入层设备或者基站。下面以控制管理设备110作为监控设备,监控网络设备125的时间同步准确性为例进行介绍。首先,设备125与上游设备111参照方法100所述的方法进行时间同步,设备125上计算得到与设备111的时间的时间偏差,并保存该时间偏差。然后,设备125向设备110发送保存的时间偏差,设备110得到了设备125的时间与其上游设备的时间的时间偏差。按照同样的方法,设备110也可以获得其他时间同步设备的时间与其上游设备的时间的时间偏差。在带内时间同步的监控方法中,监控设备110只能获得每个时间同步设备与其上游设备的时间的时间偏差,无法获得每个时间同步设备与时间源的时间的偏差,如果上游设备的时间同步错误,那么即使该时间同步设备与上游设备的时间同步准确,那么该时间同步设备与时间源的时间也是不同步的。例如:假设设备111与设备101同步误差很大,设备125与设备111时间同步,那么设备125与时间源的时间也是不同步的。所述带内时间同步的监控方法中监控设备根据时间同步设备发送的时间偏差无法判断其上游设备同步是否准确,从而无法推断该时间同步设备与时间源的时间同步的准确性。
有鉴于此,为了解决上述技术问题,本申请提供了一种时间同步的监控方法,可以应用在图1的场景中,在图1的场景中,存在多条同步路径,例如设备111-设备125-设备126-设备121-设备131-设备141是一条同步路径,设备111-设备125-设备126-设备121也是一条同步路径,在此不再一一列出。下面以同步路径是设备111-设备125-设备126-设备121-设备131-设备141,监控设备是控制管理设备110为例进行介绍。设备110接收同步路径信息,所述同步路径信息是设备111-设备125-设备126-设备121-设备131-设备141的路径信息,设备110接收同步路径上的时间同步设备的时间与其上游时间设备的时间的时间偏差信息,所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,可以计算所述设备141的时间与所述时间源的时间偏差。例如,设备110通过接收的同步路径信息可以得到设备111-设备125-设备126-设备121-设备131-设备141是一条同步路径,然后设备110将同步路径对应的设备的时间偏差相加,即offset111+offset125+offset126+offset121+offset131+offset141可以得到设备141的时间和时间源的时间偏差。可以看出,本申请提供的方法不需要部署额外的时间源,降低了部署难度,并且可以监控每个时间同步设备的时间和时间源的时间偏差,提升了时间同步的监控的准确性。
下面结合图3,对本申请提供的一种时间同步的监控方法200进行描述。图3所示的方法200可以应用到图1所示的场景中。其中,图3的监控设备不是同步路径上的设备,图3的监控设备对应图1中的控制管理设备110,时间源101或102,网络转发设备,包括核心层、汇聚层、接入层的设备或者基站,图3的BC设备对应图1中的网络转发设备或者基站,图3中的GM设备可以对应图1中的时间源设备101或102,也可以对应任何设备,例如设备111。所述方法200包括S201-S205:
S201、BC设备计算并保存时间偏差信息。
在一个具体的实施方式中,所述时间偏差信息包括时间偏差,BC设备获得4个时间戳t1,t2,t3,t4以及根据4个时间戳计算和上游设备的时间偏差的方法可以参考方法100的相关描 述,此处不再赘述。
在一个具体的实施方式中,BC设备与上游设备可以直接连接,也可以通过一个或多个支持TC模式的设备连接。
在一个具体的实施方式中,所述时间偏差信息包括时间偏差和时间戳,BC设备保存所述时间偏差时,保存生成所述时间偏差的时间戳。
S202、BC设备接收上游时间设备发送的同步路径报文,向下游设备发送添加了本节点信息的同步路径报文。
在一个具体的实施方式中,每个时间同步设备具有全网唯一的时钟编号Clock ID,同步路径报文是PTP协议中的Announce报文,携带Clock ID。
在一个具体的实施方式中,每个BC设备接收到Announce报文后,解析Announce报文即可获得时间源以及上游所有时间同步设备的Clock ID,,向同步路径的下一跳设备发送包含时间源、上游所有时间同步设备和本设备的Clock ID的Announce报文。S203、BC设备向监控设备发送时间偏差信息。
在一个具体的实施方式中,BC设备周期性的向监控设备发送时间偏差信息,所述时间偏差信息包括所述BC设备的时间与上游BC设备的时间的时间偏差。
在一个具体的实施方式中,BC设备周期性的向监控设备发送时间偏差信息,所述时间偏差信息包括时间偏差和时间戳,所述时间戳是所述BC设备生成所述时间偏差的时间,所述时间戳用于监控设备对齐接收的时间偏差的时间戳。
在一个具体的实施方式中,BC设备还可以根据监控设备发送的请求报文的指示,回复时间偏差信息,所述时间偏差信息包括所述BC设备的时间与上游BC设备的时间的时间偏差。
在一个具体的实施方式中,BC设备还可以根据监控设备发送的请求报文的指示,回复时间偏差信息,所述时间偏差信息包括时间偏差和时间戳,所述时间戳是所述BC设备生成所述时间偏差的时间,所述时间戳用于监控设备对齐接收的时间偏差的时间。
S204、BC设备向监控设备发送同步路径信息。
在一个具体的实施方式中,BC设备向监控设备发送包含时间源、上游所有时间同步设备和本设备的Clock ID的Announce报文。
在一个具体的实施方式中,BC设备还可以根据监控设备发送的请求的指示,向监控设备发送包含时间源、上游所有时间同步设备和本设备的Clock ID的Announce报文。
S205、监控设备接收同步路径信息与多个BC设备的时间偏差信息,根据同步路径信息与多个BC设备的时间偏差信息,计算BC设备与时间源的时间偏差。
在一个具体的实施方式中,监控设备从BC设备,例如BC N接收同步路径信息,所述同步路径信息包括时间源设备-BC N设备的所有节点的信息,即包括BC 1,BC 2,BC 3,BC 4的Clock ID,监控设备可以根据所述同步路径信息获得时间源与同步路径的最后一跳BC设备的同步路径,即BC 1-BC 2-BC 3-BC 4,也可以根据所述同步路径信息获得时间源与同步路径的中间任意一跳BC设备的同步路径,例如:BC 1-BC 2。可以理解,上述从BC N接收同步路径信息只是一种实例,监控设备可以从任一BC设备接收同步路径信息。
在一个具体的实施方式中,监控设备将同步路径信息包括的同步路径上的BC设备的时间偏差相加,得到同步路径的时间偏差。例如,当所述同步路径信息是时间源与同步路径的最后一跳BC设备的同步路径的信息时,监控设备将接收到的BC1设备-BC N设备的时间偏差信息中的时间偏差相加,可以得到BC N设备与时间源的时间偏差,监控设备将BC1设备 -BC 2设备发送的时间偏差信息中的时间偏差相加,可以得到BC 2设备与时间源的时间偏差。
在一个具体的实施方式中,所述时间偏差信息包括时间戳,所述监控设备将接收到的多个BC设备的时间偏差信息根据时间戳对齐,然后使用对齐后的时间偏差信息中的时间偏差进行计算。
在一个具体的实施方式中,所述监控设备向BC设备发送请求,请求所述BC设备的时间偏差信息。
在一个具体的实施方式中,所述监控设备向BC设备发送请求,请求所述BC设备的同步路径信息。
在一个具体的实施方式中,所述监控设备周期性的接收同步路径信息和时间偏差信息,所述监控设备周期性的根据同步路径信息和时间偏差信息,计算所述同步路径的时间偏差。
在一个具体的实施方式中,所述监控设备周期性的接收同步路径信息和时间偏差信息,所述监控设备在检测到所述同步路径上的设备性能异常时,所述监控设备根据同步路径信息和时间偏差信息,计算所述同步路径的时间偏差。
下面结合图4,对本申请提供的一种时间同步的监控方法300进行描述。图4所示的方法300可以应用到图1所示的场景中。其中,图4的监控设备不是同步路径上的设备,图4的监控设备对应图1中的网络转发设备,包括核心层、汇聚层、接入层的设备或者基站,图4的BC设备对应图1中的网络转发设备或者基站,图4中的GM设备可以对应图1中的时间源设备101或102,也可以对应任何设备,例如设备111。所述方法300包括S301-S305:
S301、BC设备计算并保存时间偏差信息。
在一个具体的实现方式中,监控设备也是BC设备,监控设备以及其他BC设备计算并保存时间偏差信息的过程可以参考S201的相关实现,此处不再赘述。
S302、BC设备接收上游时间设备发送的同步路径报文,向下游设备发送添加了本节点信息的同步路径报文。
在一个具体的实现方式中,监控设备也是BC设备,监控设备以及其他BC设备接收上游设备发送的同步路径报文,在报文中添加本节点的路径信息,发送到下游设备的方法可以参考S202的相关实现,此处不再赘述。
S303、BC设备向监控设备发送时间偏差信息。
在一个具体的实施方式中,其他BC设备向监控设备发送时间偏差信息的方法可以参考S203的相关实现,此处不再赘述。
S304、BC设备向监控设备发送同步路径信息。
在一个具体的实施方式中,其他BC设备向监控设备发送同步路径信息的方法可以参考S204的相关实现,此处不再赘述。
S305、监控设备获得同步路径信息与多个BC设备的时间偏差信息,根据同步路径信息与多个BC设备的时间偏差信息,计算BC设备与时间源的时间偏差。
在一个具体的实施方式中,监控设备从其他BC设备接收同步路径信息与所述其他多个BC设备的时间偏差信息的方法可以参考S205的相关实现,此处不再赘述,此外,监控设备还需要获取本设备的节点信息与时间偏差信息。
下面结合图5,对本申请提供的一种时间同步的监控方法400进行描述。所述方法400可以应用于图1所示的场景中,第一网络设备对应图1中的控制管理设备110,时间源101或102,网络转发设备,包括核心层、汇聚层、接入层的设备或基站,第一时间同步设备对 应图1中的网络转发设备,包括核心层、汇聚层、接入层的设备或基站;方法400可以具体用于实现上文所述的方法200或方法300,当方法400实现方法200或方法300时,方法400中的第一网络设备相当于方法200或方法300中的监控设备,第一时间同步设备相当于方法200或方法300中的BC设备。所述方法400包括S401-S403。
S401、第一网络设备获得同步路径信息,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息。
在一个具体的实施方式中,第一网络设备可以通过以下2种方式获得同步路径信息。
方式1、第一网络设备不是同步路径上的设备,第一网络设备接收时间同步设备发送的同步路径信息。
在一种实现中,所述时间同步设备时第一时间同步设备,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息。
在另一种实现中,监控设备接收第一时间同步设备的下游设备发送的同步路径信息,所述同步路径信息包括第一时间同步设备与时间源间的同步路径的信息。
方式1的具体实现方式可以参见S205中监控设备接收同步路径信息的相关描述,此处不再赘述。
方式2、第一网络设备是同步路径上的设备,第一网络设备接收上游设备发送的同步路径信息后,在同步路径中加入本设备的节点信息。
第一网络设备接收上游设备发送的同步路径信息的相关描述可以参见S305中监控设备接收同步路径信息的相关描述,此处不再赘述。
第一网络设备接收上游设备发送的同步路径信息后,在同步路径中加入本设备的节点信息的方法可以参考S305的相关描述,此处不再赘述。
S402、所述第一网络设备获得多个时间同步设备的时间偏差信息,其中,所述多个时间同步设备中的每个时间同步设备的时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述多个时间同步设备是所述同步路径上的时间同步设备。
在一个具体的实施方式中,第一网络设备可以通过以下2种方式获得同步路径信息。
方式1、第一网络设备不是同步路径上的设备,第一网络设备接收多个时间同步设备的时间偏差信息。
第一网络设备接收多个时间同步设备的时间偏差信息的方法可以参考S205的相关描述,此处不再赘述。
方式2、第一网络设备是同步路径上的设备,第一网络设备接收其他时间同步设备的时间偏差信息,还需要获取本设备与其上游设备的时间偏差信息。
第一网络设备接收其他多个时间同步设备的时间偏差信息的方法可以参考S305的相关描述,此处不再赘述。
第一网络设备获取本设备时间偏差信息的方法可以参考S305的相关描述,此处不再赘述。
S403、所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
在一个具体的实施方式中,第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息计算与时间源的时间偏差的过程参见S205中监控设备计算时间偏差的相关描述,此处不再赘述。
下面结合图6,对本申请提供的一种时间同步的监控方法500进行描述。所述方法500 可以应用于图1所示的场景中,第一网络设备对应图1中的控制管理设备110,时间源101或102,网络转发设备,包括核心层、汇聚层、接入层的设备或基站;时间同步设备对于图1中的网络转发设备,包括核心层、汇聚层、接入层的设备或基站,方法500可以具体用于实现上文所述的方法200或者方法300,当方法400实现方法200或方法300时,方法400中的第一网络设备相当于方法200或方法300中的监控设备,时间同步设备相当于方法200或方法300中的BC设备,所述方法500包括S501-S503。
S501、同步路径上的时间同步设备向第一网络设备发送所述时间同步设备的时间偏差信息,所述时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述时间偏差信息用于第一网络设备计算所述同步路径的时间偏差。
所述时间同步设备计算并保存时间偏差信息的方式参见S201的相关描述,此处不再赘述。
所述时间同步设备向第一网络设备发送时间偏差信息的方式参见S203的相关描述,此处不再赘述。
可选的、所述方法包括S502-S503。
S502、时间同步设备接收上游时间设备发送的同步路径信息,将本设备的节点信息加入到同步路径信息中,发送给下游时间同步设备。
所述时间同步设备向下游时间同步设备发送同步路径信息的方法参见S202的相关描述,此处不再赘述。
S503、时间同步设备向第一网络设备发送同步路径信息。
所述时间同步设备向第一网络设备发送同步路径信息的方法参见S204的相关描述,此处不再赘述。
此外,本申请实施例还提供了一种网络设备1000,参见图7所示。图7是本申请实施例的网络设备1000的结构示意图。图7所示的网络设备1000包括收发单元1001、处理单元1002。该网络设备1000可以用于执行以上实施例中的方法200、方法300、方法400或方法500。
在一个示例中,所述网络设备1000可以执行以上实施例中的方法200,当网络设备1000用于执行以上实施例中的方法200时,网络设备1000相当于方法200中的BC设备。网络设备1000可以应用于图1所示的应用场景中,例如可以是图1所示场景中的网络转发设备或者基站。所述收发单元1001用于执行方法200中由BC设备执行的收发操作。所述处理单元1002,用于执行方法200中由BC设备执行的除收发操作之外的操作。例如,所述收发单元1001用于接收上游设备发送的同步路径报文,还用于发送到下游设备;所述处理单元1002用于计算并保存时间偏差信息。
在一个示例中,所述网络设备1000可以执行以上实施例中的方法200,当网络设备1000用于执行以上实施例中的方法200时,网络设备1000相当于方法200中的监控设备。网络设备1000可以应用于图1所示的应用场景中,例如可以是图1所示场景中的控制管理设备110。所述收发单元1001用于执行方法200中由监控设备执行的收发操作。所述处理单元1002,用于执行方法200中由监控设备执行的除收发操作之外的操作。例如,所述收发单元1001用于接收同步路径信息与多个BC设备的时间偏差信息。所述处理单元1002用于根据同步路径信息与多个BC设备的时间偏差信息,计算BC设备与时间源的时间偏差。
在一个示例中,所述网络设备1000可以执行以上实施例中的方法300,当网络设备1000用于执行以上实施例中的方法300时,网络设备1000相当于方法300中的BC设备。网络设备1000可以应用于图1所示的应用场景中,例如可以是图1所示场景中的网络转发设备或者 基站。所述收发单元1001用于执行方法300中由BC设备执行的收发操作。所述处理单元1002,用于执行方法300中由BC设备执行的除收发操作之外的操作。例如,所述收发单元1001用于接收上游设备发送的同步路径报文,还用于发送到下游设备;所述处理单元1002用于计算并保存时间偏差信息。
在一个示例中,所述网络设备1000可以执行以上实施例中的方法300,当网络设备1000用于执行以上实施例中的方法300时,网络设备1000相当于方法300中的监控设备。网络设备1000可以应用于图1所示的应用场景中,例如可以是图1所示场景中的控制管理设备110。所述收发单元1001用于执行方法300中由监控设备执行的收发操作。所述处理单元1002,用于执行方法300中由监控设备执行的除收发操作之外的操作。例如,所述收发单元1001用于接收同步路径信息与多个BC设备的时间偏差信息。所述处理单元1002用于根据同步路径信息与多个BC设备的时间偏差信息,计算BC设备与时间源的时间偏差。
在一个示例中,所述网络设备1000可以执行以上实施例中的方法400,当网络设备1000用于执行以上实施例中的方法400时,网络设备1000相当于方法400中的第一网络设备。网络设备1000可以应用于图1所示的应用场景中,例如可以是图1所示场景中的控制管理设备110。所述收发单元1001用于执行方法400中由第一网络设备执行的收发操作。所述处理单元1002,用于执行方法400中由第一网络设备执行的除收发操作之外的操作。例如,所述收发单元1001用于接收同步路径信息,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息;还用于接收多个时间同步设备的时间偏差信息;所述处理单元1002用于根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
在一个示例中,所述网络设备1000可以执行以上实施例中的方法500,当网络设备1000用于执行以上实施例中的方法500时,网络设备1000相当于方法500中的时间同步设备。网络设备1000可以应用于图1所示的应用场景中,例如可以是图1所示场景中的网络转发设备或者基站。所述收发单元1001用于执行方法500中由时间同步设备执行的收发操作。所述处理单元1002,用于执行方法500中由时间同步设备执行的除收发操作之外的操作。例如,所述收发单元1001用于向第一网络设备发送所述时间同步设备的时间偏差信息;所述处理单元1002用于计算并保存所述时间偏差信息。
需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。本申请实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。例如,上述实施例中,收发单元1001和处理单元1002可以是同一个单元,也可以是不同的单元。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
此外,本申请实施例还提供了一种网络设备1100,参见图8所示,图8是本申请实施例的网络设备1100的结构示意图。该网络设备1100包括通信接口1101和与通信接口1101连接的处理器1102。通信接口例如为收发器一类的装置。该网络设备1100可以用于执行以上实施例中的方法200、方法300、方法400或方法500。具体来说,该网络设备1100可以作为监控设备执行方法200或方法300中由监控设备执行的操作,网络设备1100可以作为BC设备执行方法200或方法300中由BC设备执行的操作。其中,通信接口1101用于执行方法200或方法300中由所述监控设备或BC设备所执行的收发操作。处理器1102用于执行方法200或方法300中由所述监控设备或BC设备所执行的收发操作以外的操作。网络设备1100 可以作为第一网络设备执行方法400中由第一网络设备执行的操作,网络设备1100可以作为时间同步设备执行方法500中由时间同步设备执行的操作。其中,通信接口1101用于执行方法400或方法500中由所述第一网络设备或时间同步设备所执行的收发操作。处理器1102用于执行方法400或方法500中由所述第一网络设备或时间同步设备所执行的收发操作以外的操作。例如,当网络设备1100作为监控设备执行方法200时,通信接口1101用于接收同步路径信息与多个BC设备的时间偏差信息;所述处理器1102用于根据同步路径信息与多个BC设备的时间偏差信息,计算BC设备与时间源的时间偏差。
此外,本申请实施例还提供了一种网络设备1200,参见图9所示,图9为本申请实施例提供的一种网络设备的结构示意图。如图9所示,网络设备1200可以包括处理器1210,与所述处理器1210耦合连接的存储器1220,收发器1230。收发器1230例如可以是通信接口,光模块等。处理器1210可以是中央处理器(英文:central processing unit,缩写:CPU),网络处理器(英文:network processor,缩写:NP)或者CPU和NP的组合。处理器还可以是专用集成电路(英文:application-specific integrated circuit,缩写:ASIC),可编程逻辑器件(英文:programmable logic device,缩写:PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(英文:complex programmable logic device,缩写:CPLD),现场可编程逻辑门阵列(英文:field-programmable gate array,缩写:FPGA),通用阵列逻辑(英文:generic array logic,缩写:GAL)或其任意组合。处理器1210可以是指一个处理器,也可以包括多个处理器。存储器1220可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM);存储器也可以包括非易失性存储器(英文:non-volatile memory),例如只读存储器(英文:read-only memory,缩写:ROM),快闪存储器(英文:flash memory),硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD);存储器1220还可以包括上述种类的存储器的组合。存储器1220可以是指一个存储器,也可以包括多个存储器。在一个实施方式中,存储器1220中存储有计算机可读指令,所述计算机可读指令包括多个软件模块,例如发送模块1221,处理模块1222和接收模块1223。处理器1210执行各个软件模块后可以按照各个软件模块的指示进行相应的操作。在本实施例中,一个软件模块所执行的操作实际上是指处理器1210根据所述软件模块的指示而执行的操作。可选地,处理器1210也可以存储执行本申请方案的程序代码或指令,在这种情况下处理器1201不需要到存储器1220中读取程序代码或指令。
该网络设备1200可以用于执行以上实施例中的方法200、方法300、方法400或方法500。具体来说,该网络设备1200可以作为监控设备执行方法200或方法300中由监控设备执行的操作,网络设备1200可以作为BC设备执行方法200或方法300中由BC设备执行的操作。网络设备1200可以作为第一网络设备执行方法400中由第一网络设备执行的操作,网络设备1200可以作为时间同步设备执行方法500中由时间同步设备执行的操作。例如,当网络设备1200作为监控设备执行方法200时,述处理器1210用于执行所述存储器1220中的相关指令,使得通信装置1200用于:接收同步路径信息与多个BC设备的时间偏差信息;根据同步路径信息与多个BC设备的时间偏差信息,计算BC设备与时间源的时间偏差。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在处理器上运行时,使得处理器执行前述实施例中任一实施例所述的方法(例如,方法200、方法300、方法400、或方法500)中任意一个或多个操作。
本申请实施例还提供了一种计算机程序产品,包括计算机程序,当其在处理器上运行时, 使得处理器执行前述实施例中任一实施例所述的方法(例如,方法200、方法300、方法400、或方法500)中任意一个或多个操作。
本申请实施例还提供一种通信系统,包括第一网络设备和多个时间同步设备,第一网络设备和多个时间同步设备中的每个时间同步设备的结构如图7-图9对应的任一网络设备。上述通信系统用于实现图3-图6对应的实施例中所述的方法200,方法300,方法400,方法500中任意一方法中的部分或全部操作。
本申请实施例还提供了另一种通信系统,包括至少一个存储器和至少一个处理器,该至少一个存储器存储有指令,该至少一个处理器执行所述指令,使得所述通信系统实现本申请前述实施例中任一实施例所述的方法200,方法300、方法400和方法500中任意一方法中的部分或全部操作。
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现本申请前述实施例中任一实施例所述的方法200,方法300、方法400和方法500中任意一个方法中的部分或全部操作。
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请并不限定。示例性的,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请对存储器的类型,以及存储器与处理器的设置方式不作具体限定。
示例性的,该芯片系统可以是FPGA,可以是ASIC,还可以是系统芯片(system on chip,SoC),还可以是CPU,还可以是NP,还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑业务划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各业务单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件业务单元的形式实现。
集成的单元如果以软件业务单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的业务可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些业务存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本发明的具体实施方式而已。
以上,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。
Claims (35)
- 一种时间同步的监控方法,其特征在于,包括:第一网络设备获得同步路径信息,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息;所述第一网络设备获得多个时间同步设备的时间偏差信息,其中,所述多个时间同步设备中的每个时间同步设备的时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述多个时间同步设备是所述同步路径上的时间同步设备,所述多个时间同步设备是所述同步路径上的所有时间同步设备;所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求1所述的方法,其特征在于,所述每个时间同步设备的时间偏差信息包括时间偏差,所述时间偏差是所述时间同步设备的时间与上游时间设备的时间的偏差。
- 如权利要求2所述的方法,其特征在于,所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差,包括:所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息中的时间偏差,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求3所述的方法,其特征在于,所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息中的时间偏差,计算所述第一时间同步设备的时间与所述时间源的时间偏差,包括:所述第一网络设备将所述多个时间同步设备的时间偏差信息中的时间偏差相加,得到所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求2-4任一项所述的方法,其特征在于,所述每个时间同步设备的时间偏差信息还包括时间戳,所述时间戳用于所述第一网络设备计算所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求5所述的方法,其特征在于,所述多个时间同步设备的时间偏差信息中的时间戳的范围在一个时间段内。
- 如权利要求1-6任一项所述的方法,其特征在于,所述同步路径满足第一条件时,所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求7所述的方法,其特征在于,所述第一条件是所述同步路径上的设备的性能出现异常。
- 如权利要求1-8任一项所述的方法,其特征在于,还包括:所述第一网络设备根据所述同步路径信息,向所述同步路径上的所述多个时间同步设备发送请求,所述请求用于请求所述时间同步设备的时间偏差信息。
- 如权利要求1-9任一项所述的方法,其特征在于,所述同步路径不包括所述第一网络设备。
- 如权利要求1-9任一项所述的方法,其特征在于,所述同步路径包括所述第一网络设备。
- 一种时间同步的监控方法,其特征在于,包括:同步路径上的时间同步设备向第一网络设备发送所述时间同步设备的时间偏差信息,所述时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述时间偏差信息用于第一网络设备计算所述同步路径的时间偏差。
- 如权利要求12所述的方法,其特征在于,所述时间同步设备的时间偏差信息包括时间偏差,所述时间偏差是所述时间同步设备的时间与上游时间设备的时间的偏差,所述时间偏差用于第一网络设备计算所述同步路径的时间偏差。
- 如权利要求13所述的方法,其特征在于,所述时间同步设备的时间偏差信息还包括时间戳,所述时间戳用于所述第一网络设备计算所述同步路径的时间偏差。
- 如权利要求12-14任一项所述的方法,其特征在于,所述时间同步设备接收所述第一网络设备发送的请求,所述请求用于请求所述时间同步设备的时间偏差信息。
- 一种时间同步的监控方法,其特征在于,所述方法由通信系统执行,所述通信系统包括第一网络设备和多个时间同步设备,所述方法包括:第一网络设备获得同步路径信息,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息;所述多个时间同步设备向所述第一网络设备发送所述时间同步设备的时间偏差信息,其中,每个时间同步设备的时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述多个时间同步设备是所述同步路径上的时间同步设备;所述第一网络设备根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求16所述的方法,其特征在于,所述每个时间同步设备的时间偏差信息包括时间偏差,所述第一网络设备将所述多个时间同步设备的时间偏差信息中的时间偏差相加,得到所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求17所述的方法,其特征在于,所述每个时间同步设备的时间偏差信息还包括时间戳,当所述多个时间同步设备的时间偏差信息中的时间戳的范围在一个时间段内时,所述第一网络设备将所述多个时间同步设备的时间偏差信息中的时间偏差相加,得到所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求16-18任一项所述的方法,其特征在于,所述第一网络设备根据所述同步路径信息,向所述同步路径上的所述多个时间同步设备发送请求,所述请求用于请求所述时间同步设备的时间偏差信息。
- 一种第一网络设备,其特征在于,包括:存储器,该存储器包括计算机可读指令;与该存储器相连的处理器,所述计算机可读指令被所述处理器执行时,使得所述第一网络设备执行权利要求1-11任一项所述的方法。
- 一种第一网络设备,其特征在于,包括处理模块和发送模块,其中,所述处理模块用于:获得同步路径信息,所述同步路径信息是第一时间同步设备与时间源间的同步路径的信息;获得多个时间同步设备的时间偏差信息,其中,所述多个时间同步设备中的每个时间同 步设备的时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述多个时间同步设备是所述同步路径上的时间同步设备;根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求21所述的第一网络设备,其特征在于,所述每个时间同步设备的时间偏差信息包括时间偏差,所述时间偏差是所述时间同步设备的时间与上游时间设备的时间的偏差。
- 如权利要求22所述的第一网络设备,其特征在于,所述处理模块用于根据所述同步路径信息和所述多个时间同步设备的时间偏差信息,计算所述第一时间同步设备的时间与所述时间源的时间偏差,包括:所述处理模块,用于根据所述同步路径信息和所述多个时间同步设备的时间偏差信息中的时间偏差,计算所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求23所述的第一网络设备,其特征在于,所述处理模块,用于根据所述同步路径信息和所述多个时间同步设备的时间偏差信息中的时间偏差,计算所述第一时间同步设备的时间与所述时间源的时间偏差,包括:所述处理模块,用于将所述多个时间同步设备的时间偏差信息中的时间偏差相加,得到所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求22-24任一项所述的第一网络设备,其特征在于,所述每个时间同步设备的时间偏差信息还包括时间戳,所述时间戳用于所述处理模块计算所述第一时间同步设备的时间与所述时间源的时间偏差。
- 如权利要求25所述的第一网络设备,其特征在于,所述多个时间同步设备的时间偏差信息中的时间戳的范围在一个时间段内。
- 如权利要求21-26任一项所述的第一网络设备,其特征在于,所述发送模块,用于根据所述同步路径信息,向所述同步路径上的所述多个时间同步设备发送请求,所述请求用于请求所述时间同步设备的时间偏差信息。
- 一种时间同步设备,其特征在于,包括:存储器,该存储器包括计算机可读指令;与该存储器相连的处理器,所述计算机可读指令被所述处理器执行时,使得所述时间同步设备执行权利要求12-19任一项所述的方法。
- 一种时间同步设备,其特征在于,包括发送模块和接收模块,其中,所述发送模块用于:向第一网络设备发送所述时间同步设备的时间偏差信息,所述时间同步设备是同步路径上的设备,所述时间偏差信息是所述时间同步设备与上游时间设备间的时间偏差信息,所述时间偏差信息用于第一网络设备计算所述同步路径的时间偏差。
- 如权利要求29所述的时间同步设备,其特征在于,所述时间同步设备的时间偏差信息包括时间偏差,所述时间偏差是所述时间同步设备的时间与上游时间设备的时间的偏差,所述时间偏差用于第一网络设备计算所述同步路径的时间偏差。
- 如权利要求30所述的时间同步设备,其特征在于,所述时间同步设备的时间偏差信息还包括时间戳,所述时间戳用于所述第一网络设备计算所述同步路径的时间偏差。
- 如权利要求29-31任一项所述的时间同步设备,其特征在于,所述接收模块用于:接收所述第一网络设备发送的请求,所述请求用于请求所述时间同步设备的时间偏差信息。
- 一种通信系统,包括第一网络设备和多个时间同步设备,所述第一网络设备为权利要求20-27任一项所述的第一网络设备,所述多个时间同步设备中的每个时间同步设备为权利要求28-32任一项所述的时间同步设备。
- 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当该指令在处理器上运行时,使得所述处理器执行权利要求1-19中任一项所述的方法。
- 一种包含指令的计算机程序产品,当其在处理器上运行时,使得处理器执行权利要求1-19中任一项所述的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP22862810.3A EP4387130A1 (en) | 2021-09-02 | 2022-06-17 | Time synchronization monitoring method |
US18/592,602 US20240204896A1 (en) | 2021-09-02 | 2024-03-01 | Method for monitoring time synchronization |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111041048 | 2021-09-02 | ||
CN202111041048.3 | 2021-09-02 | ||
CN202111422661.XA CN115767607A (zh) | 2021-09-02 | 2021-11-26 | 一种时间同步的监控方法 |
CN202111422661.X | 2021-11-26 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/592,602 Continuation US20240204896A1 (en) | 2021-09-02 | 2024-03-01 | Method for monitoring time synchronization |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023029669A1 true WO2023029669A1 (zh) | 2023-03-09 |
Family
ID=85332821
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/099427 WO2023029669A1 (zh) | 2021-09-02 | 2022-06-17 | 一种时间同步的监控方法 |
Country Status (4)
Country | Link |
---|---|
US (1) | US20240204896A1 (zh) |
EP (1) | EP4387130A1 (zh) |
CN (1) | CN115767607A (zh) |
WO (1) | WO2023029669A1 (zh) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102332973A (zh) * | 2011-09-07 | 2012-01-25 | 上海交通大学 | 一种链状网络的实时通信与时钟同步方法 |
CN103259640A (zh) * | 2013-05-28 | 2013-08-21 | 杭州华三通信技术有限公司 | 一种同步时间的方法和设备 |
CN107204928A (zh) * | 2016-03-18 | 2017-09-26 | 华为技术有限公司 | 更新时钟同步拓扑的方法、确定时钟同步路径的方法及设备 |
CN108259105A (zh) * | 2016-12-28 | 2018-07-06 | 中国移动通信有限公司研究院 | 一种时间同步处理方法、装置及同步网络 |
CN108599888A (zh) * | 2018-05-09 | 2018-09-28 | 西安电子科技大学 | 一种分布式网络时钟同步系统 |
CN110649984A (zh) * | 2019-09-26 | 2020-01-03 | 北京和利时系统工程有限公司 | 一种时钟同步的方法、装置、计算机存储介质及电子设备 |
JP2020098974A (ja) * | 2018-12-17 | 2020-06-25 | 日本電信電話株式会社 | 時刻同期経路選択装置、および、時刻同期経路選択方法 |
CN111385050A (zh) * | 2018-12-29 | 2020-07-07 | 华为技术有限公司 | 时钟同步方法、装置和存储介质 |
-
2021
- 2021-11-26 CN CN202111422661.XA patent/CN115767607A/zh active Pending
-
2022
- 2022-06-17 WO PCT/CN2022/099427 patent/WO2023029669A1/zh unknown
- 2022-06-17 EP EP22862810.3A patent/EP4387130A1/en active Pending
-
2024
- 2024-03-01 US US18/592,602 patent/US20240204896A1/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102332973A (zh) * | 2011-09-07 | 2012-01-25 | 上海交通大学 | 一种链状网络的实时通信与时钟同步方法 |
CN103259640A (zh) * | 2013-05-28 | 2013-08-21 | 杭州华三通信技术有限公司 | 一种同步时间的方法和设备 |
CN107204928A (zh) * | 2016-03-18 | 2017-09-26 | 华为技术有限公司 | 更新时钟同步拓扑的方法、确定时钟同步路径的方法及设备 |
CN108259105A (zh) * | 2016-12-28 | 2018-07-06 | 中国移动通信有限公司研究院 | 一种时间同步处理方法、装置及同步网络 |
CN108599888A (zh) * | 2018-05-09 | 2018-09-28 | 西安电子科技大学 | 一种分布式网络时钟同步系统 |
JP2020098974A (ja) * | 2018-12-17 | 2020-06-25 | 日本電信電話株式会社 | 時刻同期経路選択装置、および、時刻同期経路選択方法 |
CN111385050A (zh) * | 2018-12-29 | 2020-07-07 | 华为技术有限公司 | 时钟同步方法、装置和存储介质 |
CN110649984A (zh) * | 2019-09-26 | 2020-01-03 | 北京和利时系统工程有限公司 | 一种时钟同步的方法、装置、计算机存储介质及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
US20240204896A1 (en) | 2024-06-20 |
EP4387130A1 (en) | 2024-06-19 |
CN115767607A (zh) | 2023-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11503560B2 (en) | Time synchronization offset adjustment method and apparatus, terminal, and access layer device | |
US10903929B2 (en) | Flexible ethernet group establishment method and device | |
US9749073B2 (en) | Clock recovery in a packet based network | |
WO2017101528A1 (zh) | 一种时钟链路切换方法、装置及基站 | |
US11444747B2 (en) | Measure and improve clock synchronization using combination of transparent and boundary clocks | |
CN102013931B (zh) | 时间同步方法及系统、从属定时设备及主定时设备 | |
CN102833061B (zh) | 基于无缝冗余环网的提高时钟精度的方法及节点 | |
WO2019174554A1 (zh) | 一种补偿时延的方法和设备 | |
CN104378193A (zh) | 时间同步系统及方法、交换机、嵌入式接口板 | |
WO2012163172A1 (zh) | 一种时钟同步方法及设备 | |
CN111147176A (zh) | 一种基于ieee1588协议的高精度时间同步系统 | |
CN107959537B (zh) | 一种状态同步方法及装置 | |
WO2022151993A1 (zh) | 检测时间同步性能的方法、装置及系统 | |
WO2023029669A1 (zh) | 一种时间同步的监控方法 | |
JP7451721B2 (ja) | クロックポート属性回復方法、デバイス、およびシステム | |
WO2022063207A1 (zh) | 处理时间同步故障的方法、装置及系统 | |
WO2022037654A1 (zh) | 处理时间同步故障的方法、装置、系统及存储介质 | |
WO2023115403A1 (en) | Methods and network devices for ptp clock synchronization | |
WO2023236048A1 (en) | Method and network device for ptp clock synchronization | |
US20240172153A1 (en) | Network device and method of preventing timing loop | |
CN112865899B (zh) | 一种调整物理层phy主从模式的方法及装置 | |
US20160309435A1 (en) | Segment synchronization method for network based display | |
CN117241365A (zh) | 时间偏差的监控方法、装置及系统 | |
EP4454167A1 (en) | Methods and network devices for ptp clock synchronization |
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: 22862810 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2022862810 Country of ref document: EP Effective date: 20240314 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |