CN108259105B - time synchronization processing method and device and synchronization network - Google Patents
time synchronization processing method and device and synchronization network Download PDFInfo
- Publication number
- CN108259105B CN108259105B CN201611234476.7A CN201611234476A CN108259105B CN 108259105 B CN108259105 B CN 108259105B CN 201611234476 A CN201611234476 A CN 201611234476A CN 108259105 B CN108259105 B CN 108259105B
- Authority
- CN
- China
- Prior art keywords
- time
- difference information
- network device
- network
- reference source
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明提供一种时间同步处理方法、装置及同步网络,该方法应用于基于第一时间进行同步的同步网络中的第一网络设备节点,包括:获取至少一个时间基准源的第二时间;计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;将所述差值信息发送至所述同步网络的其他网络设备节点。由于同步网络中的各网络设备节点可以根据第一网络设备节点传输的差值信息与同步网络使用的第一时间,计算得到时间基准源的第二时间,从而在一套时钟同步系统中,实现了不同时间传输的方案,因此解决了在一张同步网络中传递不同的时间基准的问题。
The present invention provides a time synchronization processing method, device, and synchronization network. The method is applied to a first network device node in a synchronization network that performs synchronization based on a first time, including: obtaining a second time of at least one time reference source; calculating Difference information between the second time of the at least one time reference source and the first time; sending the difference information to other network device nodes of the synchronization network. Since each network device node in the synchronization network can calculate the second time of the time reference source according to the difference information transmitted by the first network device node and the first time used by the synchronization network, in a set of clock synchronization system, realize The scheme of different time transmission is solved, so the problem of transmitting different time references in a synchronous network is solved.
Description
技术领域technical field
本发明涉及互联网技术领域,尤其涉及一种时间同步处理方法、装置及同步网络。The invention relates to the technical field of the Internet, in particular to a time synchronization processing method, device and synchronization network.
背景技术Background technique
现有技术中,不同应用可能需要不同的时间同步网络来传送不同基准的时间信号。比如移动通信系统中WAP、短信、彩信、BOSS、各类网关、智能网、网管系统、信令设备、传输设备、数据设备等的日志上报、告警时间等,使用NTP(Network Time Protocol)网络协议。此外,为了满足TD-SCDMA/TD-LTE等移动通信系统中基站的同步需求,使用PTP(PictureTransfer Protocol)协议为基站传输时间信息。In the prior art, different applications may require different time synchronization networks to transmit time signals of different references. For example, in the mobile communication system, the log reporting and alarm time of WAP, SMS, MMS, BOSS, various gateways, intelligent network, network management system, signaling equipment, transmission equipment, data equipment, etc., use the NTP (Network Time Protocol) network protocol . In addition, in order to meet the synchronization requirements of base stations in TD-SCDMA/TD-LTE and other mobile communication systems, the PTP (Picture Transfer Protocol) protocol is used to transmit time information for base stations.
另外,时间同步分为绝对时间同步和相对时间同步。绝对时间同步需要网络内每个节点的绝对时间都跟踪某一时标,比如UTC(世界协调时)。相对时间同步是指网络内节点之间保持同步,不一定与某一绝对时标同步。In addition, time synchronization is divided into absolute time synchronization and relative time synchronization. Absolute time synchronization requires that the absolute time of each node in the network track a certain time scale, such as UTC (Universal Coordinated Time). Relative time synchronization refers to the synchronization between nodes in the network, not necessarily synchronization with an absolute time scale.
在同步应用中,有些应用需要绝对时间同步,比如账单计费、金融交易等,有些应用仅需要节点之间的相对时间同步,比如基站间载波聚合(CA)业务,需要提供载波聚合的两个基站之间同步误差不超过几百纳秒。In synchronization applications, some applications require absolute time synchronization, such as billing, financial transactions, etc., and some applications only require relative time synchronization between nodes, such as carrier aggregation (CA) services between base stations, which need to provide two The synchronization error between base stations does not exceed several hundred nanoseconds.
因此,组建时间同步网络时需要考虑解决什么样的同步需求,对于不同需求,时间同步网络需要分别独立部署。由于需要进行独立部署,将会在网络中产生以下问题:Therefore, what synchronization requirements need to be considered when building a time synchronization network. For different requirements, time synchronization networks need to be deployed independently. Due to the need for independent deployment, the following problems will arise in the network:
第一,对于连接不同应用的网络设备来说,需要同时支持多种时间协议和处理。每个网络设备都必须支持独立的至少两套时间同步处理系统,包括软硬件的支持,从而使得网络设备支持成本较高。First, for network devices connecting different applications, multiple time protocols and processes need to be supported simultaneously. Each network device must support at least two independent time synchronization processing systems, including software and hardware support, which makes the support cost of the network device relatively high.
第二,如图1所示,对于共享网络而言,共建共享网络很难为不同运营商传递不同时间,如图所示,运营商A/B/C共享了中间的传输网络用于下游基站回传,对于常规的传输设备来说,只有一套系统时钟,假设中间传输网络跟踪运营商A的时间服务器,那么由于中间节点的内部系统时间均已经跟随同步于运营商A的时间,在同一张网络无法再传递运营商B和运营商C时间服务器提供的时间,使得共建共享网络无法传递不同时间。Second, as shown in Figure 1, for a shared network, it is difficult to transfer different times for different operators in a co-constructed shared network. As shown in the figure, operators A/B/C share the intermediate transmission network for downstream base stations Backhaul, for conventional transmission equipment, there is only one set of system clock, assuming that the intermediate transmission network tracks the time server of operator A, then since the internal system time of the intermediate node has been synchronized with the time of operator A, in the same The Zhang network can no longer transmit the time provided by the time servers of operator B and operator C, making it impossible to transmit different times on the co-constructed and shared network.
第三,有些应用由于仅需要节点之间的相对时间同步,那么可以在小范围网络中节点之间相互校准,达到相对时间同步。这时,这个小范围网络与外界绝对时间参考存在偏差,但是由于节点之间已经相互同步,无法同步于外界绝对时间参考,那么这个小范围网络则无法再为其他需要绝对时间参考的应用提供服务。Third, because some applications only require relative time synchronization between nodes, nodes in a small-scale network can calibrate each other to achieve relative time synchronization. At this time, there is a deviation between this small-scale network and the external absolute time reference, but because the nodes have been synchronized with each other and cannot be synchronized with the external absolute time reference, then this small-scale network can no longer serve other applications that require absolute time reference. .
综上,一张同步网络希望服务于各项不同的应用,有些应用可能需要不同的时间基准,有些应用需要相对时间,有些应用需要绝对时间,那么如何在一张同步网络中传递不同的时间基准成为了亟需解决的技术问题。To sum up, a synchronous network hopes to serve different applications. Some applications may require different time bases, some applications require relative time, and some applications require absolute time. So how to transmit different time bases in a synchronous network It has become a technical problem that needs to be solved urgently.
发明内容Contents of the invention
本发明实施例提供一种时间同步处理方法、装置及同步网络,以解决在一张同步网络中传递不同的时间基准的问题。Embodiments of the present invention provide a time synchronization processing method, device and synchronization network to solve the problem of transferring different time references in a synchronization network.
第一方面,本发明实施例提供了一种时间同步处理方法,应用于基于第一时间进行同步的同步网络中的第一网络设备节点,包括:In a first aspect, an embodiment of the present invention provides a time synchronization processing method, which is applied to a first network device node in a synchronization network that performs synchronization based on a first time, including:
获取至少一个时间基准源的第二时间;obtaining a second time of at least one time reference source;
计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;calculating difference information between a second time of the at least one time reference source and the first time;
将所述差值信息发送至所述同步网络的其他网络设备节点。Send the difference information to other network device nodes of the synchronization network.
第二方面,本发明实施例还提供了一种时间同步处理方法,,应用于基于第一时间进行同步的同步网络中的第二网络设备节点中,包括:In the second aspect, the embodiment of the present invention also provides a time synchronization processing method, which is applied to a second network device node in a synchronization network that performs synchronization based on the first time, including:
接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;receiving difference information; the difference information records the time difference between the first time and a second time of at least one time reference source;
根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间。calculating and obtaining a second time of the at least one time reference source according to the received difference information and the first time.
第三方面,本发明实施例还提供了一种时间同步处理方法,应用于基于第一时间进行同步的同步网络中的第二网络设备节点中,包括:In a third aspect, an embodiment of the present invention also provides a time synchronization processing method, which is applied to a second network device node in a synchronization network that performs synchronization based on the first time, including:
接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;receiving difference information; the difference information records the time difference between the first time and a second time of at least one time reference source;
对所述差值信息进行转发。The difference information is forwarded.
第四方面,本发明实施例还提供了一种时间同步处理方法,应用于基于第一时间进行同步的同步网络中,所述时间同步处理方法包括:In a fourth aspect, the embodiment of the present invention also provides a time synchronization processing method, which is applied to a synchronization network based on a first time synchronization, and the time synchronization processing method includes:
所述同步网络中的第一网络设备节点获取至少一个时间基准源的第二时间;obtaining a second time of at least one time reference source by a first network device node in said synchronization network;
所述第一网络设备节点计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;calculating, by the first network device node, difference information between a second time of the at least one time reference source and the first time;
所述第一网络设备节点将所述差值信息发送至所述同步网络的其他网络设备节点;The first network device node sends the difference information to other network device nodes of the synchronization network;
所述其他网络设备节点接收差值信息,转发所述差值信息,和/或根据接收到的所述差值信息和所述第一时间计算获得所述第二时间。The other network device node receives the difference information, forwards the difference information, and/or calculates and obtains the second time according to the received difference information and the first time.
第五方面,本发明实施例还提供了一种时间同步处理装置,应用于基于第一时间进行同步的同步网络中的第一网络设备节点,包括:In the fifth aspect, the embodiment of the present invention also provides a time synchronization processing apparatus, which is applied to a first network device node in a synchronization network that performs synchronization based on the first time, including:
获取模块,用于获取至少一个时间基准源的第二时间;An acquisition module, configured to acquire the second time of at least one time reference source;
第一计算模块,用于计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;A first calculation module, configured to calculate difference information between the second time of the at least one time reference source and the first time;
差值信息发送模块,用于将所述差值信息发送至所述同步网络的其他网络设备节点。A difference information sending module, configured to send the difference information to other network device nodes of the synchronization network.
第六方面,本发明实施例还提供了一种时间同步处理装置,应用于基于第一时间进行同步的同步网络中的第二网络设备节点中,包括:In a sixth aspect, the embodiment of the present invention also provides a time synchronization processing apparatus, which is applied to a second network device node in a synchronization network that performs synchronization based on the first time, including:
第一接收模块,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;The first receiving module receives difference information; the difference information records the time difference between the first time and a second time of at least one time reference source;
第二计算模块,用于根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间。The second calculation module is configured to calculate and obtain the second time of the at least one time reference source according to the received difference information and the first time.
第七方面,本发明实施例还提供了一种时间同步处理装置,应用于基于第一时间进行同步的同步网络中的第二网络设备节点中,包括:In the seventh aspect, the embodiment of the present invention also provides a time synchronization processing apparatus, which is applied to a second network device node in a synchronization network that performs synchronization based on the first time, including:
第二接收模块,用于接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;The second receiving module is configured to receive difference information; the difference information records the time difference between the first time and a second time of at least one time reference source;
第二转发模块,用于对所述差值信息进行转发。The second forwarding module is configured to forward the difference information.
第八方面,本发明实施例还提供了一种同步网络,所述同步网络基于第一时间同步,所述同步网络包括第一网络设备节点和第二网络设备节点,所述第一网络设备节点包括:In an eighth aspect, an embodiment of the present invention further provides a synchronization network, the synchronization network is based on first time synchronization, the synchronization network includes a first network device node and a second network device node, and the first network device node include:
获取模块,用于获取至少一个时间基准源的第二时间;An acquisition module, configured to acquire the second time of at least one time reference source;
第一计算模块,用于计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;A first calculation module, configured to calculate difference information between the second time of the at least one time reference source and the first time;
差值信息发送模块,用于将所述差值信息发送至所述第二网络设备节点;A difference information sending module, configured to send the difference information to the second network device node;
所述第二网络设备节点包括:The second network device node includes:
第一接收模块,接收差值信息;The first receiving module receives difference information;
差值处理模块,用于转发所述差值信息,和/或根据接收到的所述差值信息和所述第一时间计算获得所述第二时间。A difference processing module, configured to forward the difference information, and/or calculate and obtain the second time according to the received difference information and the first time.
这样,本发明实施例中,获取至少一个时间基准源的第二时间;计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;将所述差值信息发送至所述同步网络的其他网络设备节点。由于同步网络中的各网络设备节点可以根据第一网络设备节点传输的差值信息与同步网络使用的第一时间,计算得到时间基准源的第二时间,从而在一套时钟同步系统中,实现了不同时间传输的方案,因此解决了在一张同步网络中传递不同的时间基准的问题。In this way, in the embodiment of the present invention, the second time of at least one time reference source is obtained; the difference information between the second time of the at least one time reference source and the first time is calculated; and the difference information is sent to other network device nodes of the synchronization network. Since each network device node in the synchronization network can calculate the second time of the time reference source according to the difference information transmitted by the first network device node and the first time used by the synchronization network, in a set of clock synchronization system, realize The scheme of different time transmission is solved, so the problem of transmitting different time references in a synchronous network is solved.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是共享网络传输架构图;Figure 1 is a shared network transmission architecture diagram;
图2是本发明第一实施例提供的时间同步处理方法的流程图;Fig. 2 is a flow chart of the time synchronization processing method provided by the first embodiment of the present invention;
图3是本发明第二实施例提供的时间同步处理方法的流程图;FIG. 3 is a flowchart of a time synchronization processing method provided by a second embodiment of the present invention;
图4是本发明第三实施例提供的时间同步处理方法的流程图;FIG. 4 is a flowchart of a time synchronization processing method provided by a third embodiment of the present invention;
图5是本发明实施例提供的时间同步处理方法中第二网络设备节点的时钟处理流程示意图;5 is a schematic diagram of a clock processing flow of a second network device node in a time synchronization processing method provided by an embodiment of the present invention;
图6是本发明第四实施例提供的时间同步处理方法的流程图;FIG. 6 is a flowchart of a time synchronization processing method provided by a fourth embodiment of the present invention;
图7是本发明第五实施例提供的时间同步处理方法的流程图之一;7 is one of the flowcharts of the time synchronization processing method provided by the fifth embodiment of the present invention;
图8是本发明第五实施例提供的时间同步处理方法的流程图之二;FIG. 8 is the second flowchart of the time synchronization processing method provided by the fifth embodiment of the present invention;
图9是本发明第六实施例提供的时间同步处理方法的流程图;FIG. 9 is a flowchart of a time synchronization processing method provided by a sixth embodiment of the present invention;
图10是本发明第七实施例提供的时间同步处理方法的流程图;FIG. 10 is a flowchart of a time synchronization processing method provided by a seventh embodiment of the present invention;
图11是本发明第八实施例提供的时间同步处理方法的流程图;FIG. 11 is a flowchart of a time synchronization processing method provided by the eighth embodiment of the present invention;
图12是本发明第九实施例提供的时间同步处理方法的流程图;FIG. 12 is a flowchart of a time synchronization processing method provided by the ninth embodiment of the present invention;
图13是本发明第十实施例提供的时间同步处理装置的结构图;FIG. 13 is a structural diagram of a time synchronization processing device provided by a tenth embodiment of the present invention;
图14是本发明第十一实施例提供的时间同步处理装置的结构图;FIG. 14 is a structural diagram of a time synchronization processing device provided by an eleventh embodiment of the present invention;
图15是本发明第十二实施例提供的时间同步处理装置的结构图;FIG. 15 is a structural diagram of a time synchronization processing device provided by a twelfth embodiment of the present invention;
图16是本发明第十三实施例提供的同步网络的结构图。Fig. 16 is a structural diagram of a synchronization network provided by a thirteenth embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
第一实施例first embodiment
本发明第一实施例提供的时间同步处理方法应用于基于第一时间进行同步的同步网络中的第一网络设备节点时,参见图2,该时间同步处理方法包括以下步骤:When the time synchronization processing method provided by the first embodiment of the present invention is applied to a first network device node in a synchronization network that performs synchronization based on the first time, as shown in FIG. 2, the time synchronization processing method includes the following steps:
步骤201,获取至少一个时间基准源的第二时间。Step 201, acquire a second time of at least one time reference source.
本发明实施例提供的主要应用在基于第一时间进行同步的同步网络中的第一网络设备节点,该第一网络设备节点为可以获取时间基准源的网络设备节点。具体的,在同步网络中可以包含多个网络设备节点,在该同步网络中,可以获取一个时间基准源的时间作为第一时间进行时间同步,也可以根据时间基准源计算得到的第一时间进行时间同步,还可以是多个网络设备节点根据自身的时间进行时间计算得到第一时间,从而进行时间同步,在此不做进一步的限定。在该同步网络中,至少一个网络设备节点可以获取一个以上时间基准源的相应时间,从而得到上述第二时间。The embodiments of the present invention are mainly applied to a first network device node in a synchronous network that performs synchronization based on a first time, and the first network device node is a network device node that can obtain a time reference source. Specifically, multiple network device nodes may be included in the synchronization network. In the synchronization network, the time of a time reference source may be obtained as the first time for time synchronization, or the time synchronization may be performed based on the first time calculated from the time reference source. Time synchronization may also mean that multiple network device nodes perform time calculation according to their own time to obtain the first time, so as to perform time synchronization, which is not further limited here. In the synchronous network, at least one network device node can obtain the corresponding time of more than one time reference source, so as to obtain the above-mentioned second time.
可以理解的是,多个时间基准源对应的时间均不相同,在此,对时间基准源的数量和时间不做进一步的说明。本实施例中,可以获取时间基准源的第二时间的网络设备节点统称为第一网络设备节点。也就是说,在一个同步网络中可以存在一个或者多个第一网络设备节点。例如,在同一同步网络中,可以设置一个第一网络设备节点获取多个时间基准源的第二时间。It can be understood that the times corresponding to the multiple time reference sources are all different, and no further description will be given here on the number and time of the time reference sources. In this embodiment, network device nodes that can obtain the second time of the time reference source are collectively referred to as first network device nodes. That is to say, there may be one or more first network device nodes in a synchronous network. For example, in the same synchronization network, a first network device node may be set to obtain the second time of multiple time reference sources.
具体的,该第一网络设备节点可以直接与上述时间基准源连接也可以通过一个或者多个中间网络设备节点与时间基准源连接,只要能够获取时间基准源的第二时间即可。例如,在一个网络系统中包含两个同步网络,其中,第一个同步网络中的网络设备节点在获取到上述时间基准源的第二时间后,可以将该时间基准源的第二时间输出到第二同步网络的第一网络设备节点中。Specifically, the first network device node may be directly connected to the time reference source or may be connected to the time reference source through one or more intermediate network device nodes, as long as the second time of the time reference source can be obtained. For example, a network system contains two synchronous networks, wherein, after the network device node in the first synchronous network obtains the second time of the above-mentioned time reference source, it can output the second time of the time reference source to In the first network device node of the second synchronization network.
步骤202,计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息。Step 202, calculating difference information between the second time of the at least one time reference source and the first time.
该步骤中,上述时间基准源的数量可以为多个,该差值信息包含每一个时间基准源的第二时间与第一时间对应差值大小。具体的,在获取到时间基准源的第二时间时,将当前获取到的时间基准源的第二时间与第一时间进行比对计算,确定第二时间相对于第一时间的差值信息。In this step, there may be multiple time reference sources, and the difference information includes the corresponding difference between the second time and the first time of each time reference source. Specifically, when the second time of the time reference source is acquired, the currently acquired second time of the time reference source is compared with the first time for calculation, and difference information between the second time and the first time is determined.
步骤203,将所述差值信息发送至所述同步网络的其他网络设备节点。Step 203, sending the difference information to other network device nodes of the synchronization network.
该步骤中,发送上述差值信息的方式可以根据实际需要进行设置,例如,可以进行逐一发送每一时间基准源对应的差值信息,也可以将所有的差值信息打包一起发送。此外,可以设置发送路径进行发送,也可以采用扩散的方式进行发送。与此同时,可以对同一时间基准源的差值信息发送一次,也可以周期性的发送同一时间基准源的差值信息(以对差值信息进行更新),还可以按需发送(例如,当满足发送条件时进行发送,该发送条件可以包括接收到下游网络设备节点的请求消息)。In this step, the method of sending the above-mentioned difference information can be set according to actual needs, for example, the difference information corresponding to each time reference source can be sent one by one, or all the difference information can be packaged and sent together. In addition, the sending path can be set for sending, and the sending can also be sent in a diffusion manner. At the same time, the difference information of the same time reference source can be sent once, the difference information of the same time reference source can also be sent periodically (to update the difference information), and it can also be sent on demand (for example, when Sending is performed when a sending condition is met, and the sending condition may include receiving a request message from a downstream network device node).
本实施例中,上述其他网络设备节点为第一网络设备节点之外的网络设备节点。在其他网络设备节点接收到上述差值信息后,可以根据自身使用的第一时间与接收到的差值信息进行计算得到时间基准源的第二时间,然后可以对该第二时间进行输出,从而实现了第二时间的传输。In this embodiment, the foregoing other network device nodes are network device nodes other than the first network device node. After other network device nodes receive the above difference information, they can calculate the second time of the time reference source according to the first time used by themselves and the received difference information, and then output the second time, so that Realized the transmission of the second time.
这样,本发明实施例中,获取至少一个时间基准源的第二时间;计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;将所述差值信息发送至所述同步网络的其他网络设备节点。由于同步网络中的各网络设备节点可以根据第一网络设备节点传输的差值信息与同步网络使用的第一时间,计算得到时间基准源的第二时间,从而在一套时钟同步系统中,实现了不同时间传输的方案,因此解决了在一张同步网络中传递不同的时间基准的问题。In this way, in the embodiment of the present invention, the second time of at least one time reference source is obtained; the difference information between the second time of the at least one time reference source and the first time is calculated; and the difference information is sent to other network device nodes of the synchronization network. Since each network device node in the synchronization network can calculate the second time of the time reference source according to the difference information transmitted by the first network device node and the first time used by the synchronization network, in a set of clock synchronization system, realize The scheme of different time transmission is solved, so the problem of transmitting different time references in a synchronous network is solved.
如图3所示,本发明第二实施例的时间同步处理方法包括:As shown in FIG. 3, the time synchronization processing method of the second embodiment of the present invention includes:
步骤201,获取至少一个时间基准源的第二时间;Step 201, acquiring a second time of at least one time reference source;
步骤202,计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;Step 202, calculating difference information between the second time of the at least one time reference source and the first time;
步骤204,每隔预设时间周期或者在发送条件成立时,将当前获取的所述至少一个时间基准源的第二时间对应的差值信息,发送至所述同步网络的其他网络设备节点。Step 204: Send the currently obtained difference information corresponding to the second time of the at least one time reference source to other network device nodes of the synchronization network every preset time period or when the sending condition is met.
本发明第二实施例的时间同步处理方法中,发送差值信息的为周期性发送的。例如当达到预设的周期时间时,将会首先获取时间基准源的第二时间,然后根据当前获取的第二时间与当前的第一时间进行比对从而重新确定时间基准源对应的差值信息,然后将该差值信息发送到同步网络的其他网络设备节点中。由于本实施例中,对差值信息进行了更新,从而可以提高同步网络的其他网络设备节点获取的第二时间的准确性。进一步的,还可以根据获取的时间基准源的第二时间进行优化处理,例如其他网络设备节点可以将多次接收到的同一时间基准源对应的差值信息进行加权平均计算得到相应的加权平均值,然后将该加权平均值和第一时间进行计算得到时间基准源的第二时间;此外,第一网络节点可以根据多次获取的同一时间基准源的第二时间与第一时间比对得到的差值信息,进行加权平均计算得到相应的加权平均值,然后将该加权平均值作为待发送的差值信息,发送到其他网络设备节点。In the time synchronization processing method of the second embodiment of the present invention, the difference information is sent periodically. For example, when the preset cycle time is reached, the second time of the time reference source will be obtained first, and then the difference information corresponding to the time reference source will be re-determined by comparing the currently acquired second time with the current first time , and then send the difference information to other network device nodes in the synchronization network. Since the difference information is updated in this embodiment, the accuracy of the second time acquired by other network device nodes in the synchronization network can be improved. Further, optimization processing can also be performed according to the second time of the obtained time reference source, for example, other network device nodes can perform weighted average calculation on the difference information corresponding to the same time reference source received multiple times to obtain a corresponding weighted average value , and then calculate the weighted average and the first time to obtain the second time of the time reference source; in addition, the first network node can compare the second time of the same time reference source obtained multiple times with the first time For the difference information, perform weighted average calculation to obtain a corresponding weighted average, and then send the weighted average as the difference information to be sent to other network device nodes.
可以理解的是,上述差值信息输出的方式可以根据实际需要进行设置,例如可以由第一网络设备节点周期性的主动输出,也可以是在接收到下游设备的请求时,进行差值信息的输出。It can be understood that the above-mentioned way of outputting the difference information can be set according to actual needs, for example, the first network device node can actively output periodically, or the difference information can be output when receiving a request from a downstream device. output.
应当说明的是,在其他实施例中,为了保证各网络设备节点均能接收到时间基准源对应的差值信息,还可以控制周期发送同一差值信息,以避免在首次发送差值信息之后上线的网络设备节点无法获取该差值信息。此外,在首次发送差值信息之后上线的网络设备节点,也可以在上线后发送请求主动获取该差值信息。It should be noted that, in other embodiments, in order to ensure that each network device node can receive the difference information corresponding to the time reference source, it can also be controlled to periodically send the same difference information, so as to avoid going online after sending the difference information for the first time The network device node of the network cannot obtain the difference information. In addition, a network device node that goes online after sending the difference information for the first time may also send a request to actively obtain the difference information after going online.
进一步的,发送差值信息的方式可以根据需要进行设置,在本实施例的第一方案中,上述步骤204包括:Further, the way of sending the difference information can be set as required. In the first solution of this embodiment, the above step 204 includes:
根据当前获取的所述至少一个时间基准源的第二时间对应的差值信息和所述时间基准源的身份信息生成时间差值信息报文;generating a time difference information message according to the currently obtained difference information corresponding to the second time of the at least one time reference source and the identity information of the time reference source;
将所述时间差值信息报文发送至所述同步网络的其他网络设备节点。Send the time difference information message to other network device nodes of the synchronization network.
在在本实施例的第二方案中,上述步骤204包括:In the second solution of this embodiment, the above step 204 includes:
根据当前获取的所述至少一个时间基准源的第二时间对应的差值信息和用于标识报文发送次数的序列号;According to the currently obtained difference information corresponding to the second time of the at least one time reference source and the sequence number used to identify the number of times the message is sent;
将所述时间差值信息报文发送至所述同步网络的其他网络设备节点;使得所述其他网络设备节点根据所述序列号确定所述时间差值信息报文的顺序。Sending the time difference information message to other network equipment nodes of the synchronization network; making the other network equipment nodes determine the sequence of the time difference information message according to the sequence number.
具体的,每一时间差值信息报文可以包含一个时间基准源对应的差值信息,也可以包含所有的时间基准源对应的差值信息。由于在本实施例中,通过报文的方式发送差值信息,并且在时间差值信息报文中设置序列号,从而可以根据序列号确定接收到的每一差值信息的顺序。根据该顺序可以确定是否漏掉差值信息,从而实现对差值信息的丢失检测。具体的,可以对同一次发送的多个时间基准源的差值信息是否丢失进行检测,还可以对多次发送的同一时间基准源的差值信息是否丢失进行检测。Specifically, each time difference information message may include difference information corresponding to one time reference source, or may include difference information corresponding to all time reference sources. Since in this embodiment, the difference information is sent in the form of a message, and the sequence number is set in the time difference information message, the sequence of each received difference information can be determined according to the sequence number. According to the sequence, it can be determined whether the difference information is missed, so as to realize the loss detection of the difference information. Specifically, it is possible to detect whether the difference information of multiple time reference sources sent at the same time is lost, and it is also possible to detect whether the difference information of the same time reference source sent multiple times is lost.
应理解,为了标识发送上述时间差值信息报文的设备信息,在上述时间差值信息报文中还可以包括第一网络设备节点的标识信息,例如设备ID。It should be understood that, in order to identify the device information that sends the time difference information message, the time difference information message may further include identification information of the first network device node, such as a device ID.
本发明第三实施例提供的时间同步处理方法应用于基于第一时间进行同步的同步网络中的第二网络设备节点,参见图4,该时间同步处理方法包括以下步骤:The time synchronization processing method provided by the third embodiment of the present invention is applied to the second network device node in the synchronization network that performs synchronization based on the first time. Referring to FIG. 4, the time synchronization processing method includes the following steps:
步骤401,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;Step 401, receiving difference information; the difference information records the time difference between the first time and a second time of at least one time reference source;
步骤402,根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间。Step 402: Calculate and obtain a second time of the at least one time reference source according to the received difference information and the first time.
本发明实施例中,上述差值信息可以由上述第一网络设备节点发送的差值信息,也可以为上述第一网络设备节点与第二网络设备节点中间的中间网络设备节点发送的时间信息,该中间网络设备节点可以为第二网络设备节点,也可以为仅用于转发上述差值信息的网络设备节点。其中,第一网络设备节点可以获取时间基准源的第二时间和第一时间,并进行比对计算获得该时间基准源对应的差值信息。然后直接或者间接发送到第二网络设备节点中,该第二网络设备节点接收到上述差值信息后,可以根据自身处于的第一时间与接收到的差值信息进行计算得到时间基准源的第二时间,然后可以对该第二时间进行输出,从而实现了同一同步网络中对时间基准源的第二时间的传输。In the embodiment of the present invention, the above-mentioned difference information may be the difference information sent by the above-mentioned first network device node, or may be the time information sent by the intermediate network device node between the above-mentioned first network device node and the second network device node, The intermediate network device node may be a second network device node, or a network device node that is only used to forward the difference information. Wherein, the first network device node may obtain the second time and the first time of the time reference source, and perform comparison calculation to obtain difference information corresponding to the time reference source. Then it is directly or indirectly sent to the second network device node. After the second network device node receives the above difference information, it can calculate the first time of the time reference source according to the first time it is in and the received difference information. second time, and then output the second time, thereby realizing the transmission of the second time of the time reference source in the same synchronization network.
本实施例中,如图5所示,第二网络设备节点的时钟处理流程包括现有方案对第一时间同步处理的第一流程和本方案对时间基准源处理的第二流程,其中第一处理流程包括:主时间源处理和系统时钟,第二处理流程包括:接收差值信息、差值信息转发或者计算得到时间基准源的第二时间提供给下游设备。In this embodiment, as shown in Figure 5, the clock processing flow of the second network device node includes the first flow of the existing solution for the first time synchronization processing and the second flow of this solution for the time reference source processing, wherein the first The processing flow includes: processing the main time source and the system clock, and the second processing flow includes: receiving difference information, forwarding the difference information, or providing the second time obtained from the time reference source to the downstream device through calculation.
本发明实施例中,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间。由于在不能直接获取时间基准源的第二时间的第二网络设备节点中,通过获取时间基准源的第二时间与第一时间的差值信息后,根据该差值信息计算得到时间基准源的第二时间,从而可以使得同一张同步网络中的所有第二网络设备节点均可以获得时间基准源的第二时间,因此解决了在一张同步网络中传递不同的时间基准的问题。In the embodiment of the present invention, the difference information is received; the difference information records the time difference between the first time and the second time of at least one time reference source; according to the received difference information and the The first time calculation obtains the second time of the at least one time reference source. Because in the second network device node that cannot directly obtain the second time of the time reference source, after obtaining the difference information between the second time of the time reference source and the first time, the time of the time reference source is calculated according to the difference information The second time enables all second network device nodes in the same synchronization network to obtain the second time of the time reference source, thus solving the problem of transferring different time references in a synchronization network.
如图6所示,本发明第四实施例的时间同步处理方法包括:As shown in FIG. 6, the time synchronization processing method of the fourth embodiment of the present invention includes:
步骤401,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;Step 401, receiving difference information; the difference information records the time difference between the first time and a second time of at least one time reference source;
步骤402,根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间;Step 402, calculating and obtaining a second time of the at least one time reference source according to the received difference information and the first time;
步骤403,将所述至少一个时间基准源的第二时间输出至接入所述第二网络设备节点的下游设备。Step 403, outputting the second time of the at least one time reference source to a downstream device connected to the second network device node.
本实施例中,在计算获得时间基准源的第二时间后,可以将该时间基准源的第二时间输出到第二网络设备节点的下游设备中。具体的,该下游网络设备可以是另一同步网络中的第一网络设备节点(即用于传输时间基准源的第二时间的下游传送设备),也可以是应用端设备(例如计费设备、用户设备等)。In this embodiment, after the second time of the time reference source is obtained through calculation, the second time of the time reference source may be output to a downstream device of the second network device node. Specifically, the downstream network device may be a first network device node in another synchronous network (that is, a downstream transmission device for transmitting the second time of the time reference source), or an application end device (such as a billing device, user equipment, etc.).
可以理解的是,该第二时间输出的方式可以根据实际需要进行设置,例如可以由第二网络设备节点主动输出,也可以是在接收到下游设备的请求时,然后进行计算获得时间基准源的第二时间,最后进行第二时间的输出。It can be understood that the second time output method can be set according to actual needs, for example, it can be actively output by the second network device node, or it can be calculated to obtain the time reference source when receiving a request from a downstream device At the second time, output at the second time is finally performed.
应当说明的是,在同一张同步网络中,可以存在一个或者多个第二网络设备节点,对于各第二网络设备节点进行时间基准源的第二时间的计算和输出可以同步进行也可以不同步进行,具体的,以下对此进行详细说明:It should be noted that in the same synchronous network, there may be one or more second network device nodes, and the calculation and output of the second time of the time reference source for each second network device node may be performed synchronously or asynchronously To carry out, specifically, the following will describe this in detail:
如图7所示,本发明第五实施例的时间同步处理方法的第一种方案中,包括:As shown in FIG. 7, the first solution of the time synchronization processing method of the fifth embodiment of the present invention includes:
步骤401,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;Step 401, receiving difference information; the difference information records the time difference between the first time and a second time of at least one time reference source;
步骤4021,在接收到所述差值信息时,根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间。Step 4021: When the difference information is received, calculate and obtain the second time of the at least one time reference source according to the received difference information and the first time.
如图8所示,本发明第五实施例的时间同步处理方法的第二种方案中,包括:As shown in FIG. 8, the second solution of the time synchronization processing method of the fifth embodiment of the present invention includes:
步骤401,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;Step 401, receiving difference information; the difference information records the time difference between the first time and a second time of at least one time reference source;
步骤4022,当所述第一时间达到预设时间点时,根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间。Step 4022: When the first time reaches a preset time point, calculate and obtain a second time of the at least one time reference source according to the received difference information and the first time.
本实施例中,对于各第二网络设备节点中的第二时间的输出调整方式可以采用第一种方案,也可以采用第二种方案,具体可以根据实际需要进行设置。其中,在第一种方案中,各第二网络设备节点在接收到差值信息后,可以进行计算和输出;在第二种方案中,各第二网络设备节点在接收到差值信息后,可以按照约定的时刻,同时可以进行计算和输出。在本实施例中所说的可以进行计算和输出是指,可以将当前接收到的差值信息作为计算时间基准源的第二时间的标准。以下将以周期性接收同一时间基准源对应的差值信息为例进行详细说明:In this embodiment, the first scheme or the second scheme may be adopted for the output adjustment manner of the second time in each second network device node, which may be specifically set according to actual needs. Wherein, in the first scheme, each second network equipment node can perform calculation and output after receiving the difference information; in the second scheme, after receiving the difference information, each second network equipment node, Calculation and output can be performed at the same time according to the agreed time. In this embodiment, being able to perform calculation and output means that the currently received difference information can be used as a standard for calculating the second time of the time reference source. The following will take the periodic reception of the difference information corresponding to the same time reference source as an example to describe in detail:
例如,第二网络设备节点第一次接收到第一差值信息后,若接收到下游设备的对时间基准源的第二时间请求时,该第二网络设备节点将会以第一差值信息和第一时间,进行计算得到时间基准源的第二时间作为该第二时间请求消息的输出。当第二网络设备节点第二次接收到第二差值信息后:For example, after the second network device node receives the first difference information for the first time, if it receives a second time request from the downstream device for the time reference source, the second network device node will use the first difference information and the first time are calculated to obtain the second time of the time reference source as the output of the second time request message. After the second network device node receives the second difference information for the second time:
若采用第一种方案,则在接收到下游设备的对第二时间请求时,该第二网络设备节点将会以第二差值信息和第一时间,进行计算得到时间基准源的第二时间作为该第二时间请求消息的输出;If the first solution is adopted, when receiving the second time request from the downstream device, the second network device node will use the second difference information and the first time to calculate the second time of the time reference source as an output of the second time request message;
若采用第二种方案,则在上述预设时间点到达前,接收到下游设备的对时间基准源的第二时间请求时,该第二网络设备节点将会以第一差值信息和第一时间,进行计算得到时间基准源的第二时间作为该第二时间请求消息的输出。在上述预设时间点到达后,该第二网络设备节点将会以第二差值信息和第一时间,进行计算得到时间基准源的第二时间作为该第二时间请求消息的输出。If the second solution is adopted, before the preset time point arrives, when receiving the second time request from the downstream device for the time reference source, the second network device node will use the first difference information and the first The time is calculated to obtain the second time of the time reference source as an output of the second time request message. After the preset time point arrives, the second network device node will use the second difference information and the first time to calculate the second time of the time reference source as the output of the second time request message.
由于在本发明实施例中,可以对各第二网络设备节点的时间基准源的第二时间进行同步计算和输出,或者不同步计算和输出,因此提高了对第二时间控制的灵活性。In the embodiment of the present invention, the second time of the time reference source of each second network device node can be synchronously calculated and output, or asynchronously calculated and output, thus improving the flexibility of the second time control.
如图9所示,本发明第六实施例的时间同步处理方法包括:As shown in FIG. 9, the time synchronization processing method of the sixth embodiment of the present invention includes:
步骤401,接收时间差值信息报文,所述时间差值信息报文包括差值信息和用于标识报文发送次数的序列号;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;Step 401, receiving a time difference information message, the time difference information message includes difference information and a sequence number used to identify the number of times the message is sent; the difference information records the first time and at least one the time difference between the second times of the time reference sources;
步骤404,根据所述序列号判断是否接收到差值信息;若是,在执行步骤402,若否,则执行步骤405;Step 404, judge whether difference information is received according to the serial number; if yes, execute step 402, if not, execute step 405;
步骤402,根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间;Step 402, calculating and obtaining a second time of the at least one time reference source according to the received difference information and the first time;
步骤405,向上游网络设备节点发送用于重新发送差值信息的请求消息;Step 405, sending a request message for resending difference information to an upstream network device node;
其中,所述上游网络设备节点为获取所述至少一个时间基准源的第二时间的第一网络设备节点,或者所述上游网络设备节点为所述差值信息从所述第一网络设备节点传输至所述第二网络设备节点的中间网络设备节点。Wherein, the upstream network device node is the first network device node that acquires the second time of the at least one time reference source, or the upstream network device node transmits the difference information from the first network device node an intermediate network device node to said second network device node.
本实施例中,在接收差值信息时,将会判断在预设的时间段内是否能够接收到该差值信息,如果接收不到该差值信息,将会向上游网络设备节点发送请求消息,以请求上游网络设备节点重新发送该差值信息。In this embodiment, when receiving difference information, it will be judged whether the difference information can be received within a preset time period, and if the difference information cannot be received, a request message will be sent to the upstream network device node , to request the upstream network device node to resend the difference information.
具体的,当上述差值信息为一次信息发送,则根据预先设定的时间点检测是否接收到该差值信息即可。当上述差值信息为周期信息发送时,则根据预先设定的周期时间检测是否接收到上述差值信息。进一步的,上述差值信息可以采用时间差值信息报文进行发送,该时间差值信息报文中包含有序列号,可以根据该序列号确定是否接收到更新的时间差值信息报文。其中,当第二网络设备节点未获取到上述差值信息时,可以向第一网络设备节点发送请求消息,也可以向第一网络设备节点到第二网络设备节点的网络传输路径中任一中间网络节点发送请求消息。Specifically, when the above-mentioned difference information is sent once, it only needs to detect whether the difference information is received according to a preset time point. When the above-mentioned difference information is sent as periodic information, it is detected whether the above-mentioned difference information is received according to a preset cycle time. Further, the above-mentioned difference information may be sent by using a time difference information message, and the time difference information message includes a sequence number, and it may be determined according to the sequence number whether to receive an updated time difference information message. Wherein, when the second network device node does not obtain the above-mentioned difference information, it may send a request message to the first network device node, or send a request message to any intermediate network transmission path from the first network device node to the second network device node. A network node sends a request message.
如图10所示,本发明第七实施例的时间同步处理方法包括:As shown in FIG. 10, the time synchronization processing method of the seventh embodiment of the present invention includes:
步骤401,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;Step 401, receiving difference information; the difference information records the time difference between the first time and a second time of at least one time reference source;
步骤402,根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间;Step 402, calculating and obtaining a second time of the at least one time reference source according to the received difference information and the first time;
步骤406,对所述差值信息进行转发。Step 406, forwarding the difference information.
本实施例中,上述对所述差值信息进行转发包括:在所述第二网络设备的一端口接收到所述差值信息时,根据预先配置的传送路径确定所述第二网络设备的转发端口;将所述差值信息转发到所述转发端口,通过所述转发端口向所述同步网络的其他网络设备节点转发。In this embodiment, the foregoing forwarding of the difference information includes: when a port of the second network device receives the difference information, determining the forwarding of the second network device according to a pre-configured transmission path A port; forwarding the difference information to the forwarding port, and forwarding to other network device nodes of the synchronization network through the forwarding port.
上述对所述差值信息进行转发包括:在所述第二网络设备的一端口接收到所述差值信息时,将所述差值信息转发到未接收到相同差值信息的其他端口,向邻居网络设备节点转发。具体的,该第二网络设备节点包括多个端口,当其中一个网络端口(以下称之为接收端口)接收到差值信息时,则在准备转发的过程中,若除了该接收端口以外的其他端口曾收到过同样的差值信息,则不对接收到同样的差值信息的端口进行转发。如果,没有其他端口可以发送,或者其他端口均曾经收到过同样的差值信息,则该第二网络设备节点不再转发该报文。The foregoing forwarding of the difference information includes: when a port of the second network device receives the difference information, forwarding the difference information to other ports that have not received the same difference information, and sending Neighbor network device nodes forward. Specifically, the second network device node includes a plurality of ports, and when one of the network ports (hereinafter referred to as the receiving port) receives the difference information, in the process of preparing to forward, if other than the receiving port If the port has received the same difference information, it will not forward the port that has received the same difference information. If there is no other port to send, or other ports have received the same difference information, the second network device node will not forward the message.
即在本实施例中,上述第二网络设备可以用于差值信息的转发,也可以用于第二时间的计算,还可以用于第二时间的转发。在转发时,可以转发多个时间基准源对应的差值信息或第二时间,也可以转发一个时间基准源的差值信息或第二时间。在计算第二时间时,可以进行多个时间基准源的第二时间的计算,也可以进行一个时间基准源的计算。应理解,当上述第二网络设备为传输路径中最后一个的网络设备节点时,则可以不对接收到的差值信息进行转发。That is, in this embodiment, the above-mentioned second network device may be used for forwarding difference information, and may also be used for calculation of the second time, and may also be used for forwarding of the second time. When forwarding, the difference information or the second time corresponding to multiple time reference sources may be forwarded, or the difference information or the second time of one time reference source may be forwarded. When calculating the second time, the calculation of the second time of multiple time reference sources may be performed, or the calculation of one time reference source may be performed. It should be understood that when the second network device is the last network device node in the transmission path, the received difference information may not be forwarded.
本发明第八实施例提供的时间同步处理方法应用于基于第一时间进行同步的同步网络中的第二网络设备节点,参见图11,该时间同步处理方法包括以下步骤:The time synchronization processing method provided by the eighth embodiment of the present invention is applied to a second network device node in a synchronization network that performs synchronization based on the first time. Referring to FIG. 11 , the time synchronization processing method includes the following steps:
步骤1101,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;Step 1101, receiving difference information; the difference information records the time difference between the first time and a second time of at least one time reference source;
步骤1102,对所述差值信息进行转发。Step 1102, forward the difference information.
本发明实施例中,上述差值信息可以由上述第一网络设备节点发送的差值信息,也可以为上述第一网络设备节点与第二网络设备节点中间的中间网络设备节点发送的时间信息,该中间网络设备节点可以为第二网络设备节点,也可以为仅用于转发上述差值信息的网络设备节点。其中,第一网络设备节点可以获取时间基准源的第二时间和第一时间,并进行比对计算获得该时间基准源对应的差值信息。然后直接或者间接发送到第二网络设备节点中,该第二网络设备节点接收到上述差值信息后,可以直接转发到下游网络设备中。即在本实施例中,上述第二网络设备可以仅用于差值信息转发。在转发时,可以转发多个时间基准源对应的差值信息,也可以仅仅转发一个时间基准源的差值信息。In the embodiment of the present invention, the above-mentioned difference information may be the difference information sent by the above-mentioned first network device node, or may be the time information sent by the intermediate network device node between the above-mentioned first network device node and the second network device node, The intermediate network device node may be a second network device node, or a network device node that is only used to forward the difference information. Wherein, the first network device node may obtain the second time and the first time of the time reference source, and perform comparison calculation to obtain difference information corresponding to the time reference source. Then it is directly or indirectly sent to the second network device node, and the second network device node can directly forward the difference information to the downstream network device after receiving the above difference information. That is, in this embodiment, the foregoing second network device may only be used for forwarding difference information. When forwarding, the difference information corresponding to multiple time reference sources may be forwarded, or only the difference information of one time reference source may be forwarded.
具体的,本实施例中,上述对所述差值信息进行转发包括:在所述第二网络设备的一端口接收到所述差值信息时,根据预先配置的传送路径确定所述第二网络设备的转发端口;将所述差值信息转发到所述转发端口,通过所述转发端口向所述同步网络的其他网络设备节点转发。Specifically, in this embodiment, the foregoing forwarding of the difference information includes: when a port of the second network device receives the difference information, determine the second network information according to a pre-configured transmission path. A forwarding port of the device; forwarding the difference information to the forwarding port, and forwarding to other network device nodes of the synchronization network through the forwarding port.
上述对所述差值信息进行转发包括:在所述第二网络设备的一端口接收到所述差值信息时,将所述差值信息转发到未接收到相同差值信息的其他端口,通过所述转发端口向邻居网络设备节点转发。具体的,该第二网络设备节点包括多个端口,当其中一个网络端口(以下称之为接收端口)接收到差值信息时,则在准备转发的过程中,若除了该接收端口以外的其他端口曾收到过同样的差值信息,则不对接收到同样的差值信息的端口进行转发。The foregoing forwarding of the difference information includes: when a port of the second network device receives the difference information, forwarding the difference information to other ports that have not received the same difference information, through The forwarding port is forwarded to a neighbor network device node. Specifically, the second network device node includes a plurality of ports, and when one of the network ports (hereinafter referred to as the receiving port) receives the difference information, in the process of preparing to forward, if other than the receiving port If the port has received the same difference information, it will not forward the port that has received the same difference information.
本发明实施例中,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;根据预先配置的传送路径,对所述差值信息进行转发;或者,将所述差值信息转发至与第二网络设备节点相邻的网络设备节点中。由于在不能直接获取时间基准源的第二时间的第二网络设备节点中,通过获取时间基准源的第二时间与第一时间的差值信息后,根据该差值信息转发到各网络设备节点中,从而可以由各网络设备节点计算得到时间基准源的第二时间,从而可以使得同一张同步网络中的所有第二网络设备节点均可以获得时间基准源的第二时间,因此解决了在一张同步网络中传递不同的时间基准的问题。In the embodiment of the present invention, the difference information is received; the difference information records the time difference between the first time and the second time of at least one time reference source; according to the pre-configured transmission path, the difference The information is forwarded; or, the difference information is forwarded to a network device node adjacent to the second network device node. Because in the second network device node that cannot directly obtain the second time of the time reference source, after obtaining the difference information between the second time of the time reference source and the first time, it is forwarded to each network device node according to the difference information In this way, the second time of the time reference source can be calculated by each network device node, so that all the second network device nodes in the same synchronization network can obtain the second time of the time reference source, thus solving the problem in a The problem of passing different time bases in a synchronous network.
本发明第九实施例提供的时间同步处理方法应用于基于第一时间进行同步的同步网络中,参见图12,该时间同步处理方法包括以下步骤:The time synchronization processing method provided by the ninth embodiment of the present invention is applied to a synchronization network that performs synchronization based on the first time. Referring to FIG. 12, the time synchronization processing method includes the following steps:
步骤1201,所述同步网络中的第一网络设备节点获取至少一个时间基准源的第二时间;Step 1201, the first network device node in the synchronization network acquires the second time of at least one time reference source;
步骤1202,所述第一网络设备节点计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;Step 1202, the first network device node calculates difference information between the second time of the at least one time reference source and the first time;
步骤1203,所述第一网络设备节点将所述差值信息发送至所述同步网络的其他网络设备节点;Step 1203, the first network device node sends the difference information to other network device nodes of the synchronization network;
步骤1204,所述其他网络设备节点接收差值信息,转发所述差值信息,和/或根据接收到的所述差值信息和所述第一时间计算获得所述第二时间。Step 1204, the other network device nodes receive the difference information, forward the difference information, and/or calculate and obtain the second time according to the received difference information and the first time.
本实施例中,上述第一网络设备节点为可以获取时间基准源的网络设备节点,该第一网络设备节点可以获取一个或者多个时间基准源的第二时间,并可以分别计算一个或多个时间基准源的第二时间与第一时间的差值信息,然后将一个或多个时间基准源的第二时间对应的差值信息发送到第二网络设备节点。In this embodiment, the above-mentioned first network device node is a network device node that can obtain a time reference source, and the first network device node can obtain the second time of one or more time reference sources, and can respectively calculate one or more The difference information between the second time of the time reference source and the first time, and then send the difference information corresponding to the second time of one or more time reference sources to the second network device node.
上述第二网络设备节点在接收到多个时间基准源的第二时间对应的差值信息时,可以只进行转发,也可以只进行第二时间的计算,也可以同时进行第二时间的计算和差值信息的输出。具体的,在进行差值信息转发时,可以转发一个或者多个时间基准源的第二时间对应的差值信息;在进行第二时间的计算时,也可以计算一个或者多个时间基准源的第二时间。When the above-mentioned second network device node receives the difference information corresponding to the second time from multiple time reference sources, it may only forward it, or only perform the calculation of the second time, or may simultaneously perform the calculation of the second time and Output of difference information. Specifically, when forwarding the difference information, the difference information corresponding to the second time of one or more time reference sources can be forwarded; when calculating the second time, the time difference information of one or more time reference sources can also be calculated Second time.
本实施例中,由于在不能直接获取时间基准源的第二时间的第二网络设备节点和同步网络的其他网络设备节点中,通过获取时间基准源的第二时间与第一时间的差值信息后,根据该差值信息计算得到时间基准源的第二时间,从而可以使得同一张同步网络中的所有网络设备节点均可以获得时间基准源的第二时间,因此解决了在一张同步网络中传递不同的时间基准的问题。In this embodiment, because in the second network device node that cannot directly obtain the second time of the time reference source and other network device nodes in the synchronization network, by obtaining the difference information between the second time of the time reference source and the first time Finally, the second time of the time reference source is calculated according to the difference information, so that all network device nodes in the same synchronization network can obtain the second time of the time reference source, thus solving the problem in a synchronization network Problems passing different time bases.
参见图13,图13是本发明第十实施提供的时间同步处理装置的结构图,能够实现第一至第二实施例中时间同步处理方法的细节,并达到相同的效果。如图13所示,时间同步处理装置1300应用于基于第一时间进行同步的同步网络中的第一网络设备节点中,包括获取模块1301、第一计算模块1302和差值信息发送模块1303,其中:Referring to FIG. 13 , FIG. 13 is a structural diagram of a time synchronization processing device provided by the tenth embodiment of the present invention, which can realize the details of the time synchronization processing methods in the first to second embodiments, and achieve the same effect. As shown in FIG. 13 , the time synchronization processing apparatus 1300 is applied to the first network device node in the synchronization network based on the first time synchronization, and includes an acquisition module 1301, a first calculation module 1302 and a difference information sending module 1303, wherein :
获取模块1301,用于获取至少一个时间基准源的第二时间;An acquisition module 1301, configured to acquire a second time of at least one time reference source;
第一计算模块1302,用于计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;A first calculation module 1302, configured to calculate difference information between the second time of the at least one time reference source and the first time;
差值信息发送模块1303,用于将所述差值信息发送至所述同步网络的其他网络设备节点。A difference information sending module 1303, configured to send the difference information to other network device nodes of the synchronization network.
可选的,所述差值信息发送模块1303具体用于:每隔预设时间周期或者在发送条件成立时,将当前获取的所述至少一个时间基准源的第二时间对应的差值信息,发送至所述同步网络的其他网络设备节点。Optionally, the difference information sending module 1303 is specifically configured to: send the currently acquired difference information corresponding to the second time of the at least one time reference source every preset time period or when a sending condition is met, sent to other network device nodes of the synchronization network.
可选的,所述差值信息发送模块1303包括:Optionally, the difference information sending module 1303 includes:
第一报文生成单元,用于根据当前获取的所述至少一个时间基准源的第二时间对应的差值信息和所述时间基准源的身份信息;A first message generating unit, configured to obtain the currently obtained difference information corresponding to the second time of the at least one time reference source and the identity information of the time reference source;
第一发送单元,用于将所述时间差值信息报文发送至所述同步网络的其他网络设备节点。The first sending unit is configured to send the time difference information message to other network device nodes of the synchronization network.
可选的,所述差值信息发送模块1303包括:Optionally, the difference information sending module 1303 includes:
第二报文生成单元,用于根据当前获取的所述至少一个时间基准源的第二时间对应的差值信息和用于标识报文发送次数的序列号;A second message generating unit, configured to use the currently obtained difference information corresponding to the second time of the at least one time reference source and a sequence number used to identify the number of times the message is sent;
第二发送单元,用于将所述时间差值信息报文发送至所述同步网络的其他网络设备节点;使得所述其他网络设备节点根据所述序列号确定所述时间差值信息报文的顺序。The second sending unit is configured to send the time difference information message to other network equipment nodes of the synchronization network; so that the other network equipment nodes determine the time difference information message according to the sequence number order.
这样,本发明实施例中,获取至少一个时间基准源的第二时间;计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;将所述差值信息发送至所述同步网络的其他网络设备节点。由于同步网络中的各网络设备节点可以根据第一网络设备节点传输的差值信息与同步网络使用的第一时间,计算得到时间基准源的第二时间,从而在一套时钟同步系统中,实现了不同时间传输的方案,因此解决了在一张同步网络中传递不同的时间基准的问题。In this way, in the embodiment of the present invention, the second time of at least one time reference source is obtained; the difference information between the second time of the at least one time reference source and the first time is calculated; and the difference information is sent to other network device nodes of the synchronization network. Since each network device node in the synchronization network can calculate the second time of the time reference source according to the difference information transmitted by the first network device node and the first time used by the synchronization network, in a set of clock synchronization system, realize The scheme of different time transmission is solved, so the problem of transmitting different time references in a synchronous network is solved.
参见图14,图14是本发明第十一实施提供的时间同步处理装置的结构图,能够实现第三至第七实施例中时间同步处理方法的细节,并达到相同的效果。如图14所示,时间同步处理装置1400应用于基于第一时间进行同步的同步网络中的第二网络设备节点中,包括第一接收模块1401和第二计算模块1402,其中:Referring to FIG. 14 , FIG. 14 is a structural diagram of a time synchronization processing device provided by the eleventh embodiment of the present invention, which can realize the details of the time synchronization processing methods in the third to seventh embodiments and achieve the same effect. As shown in FIG. 14, the time synchronization processing apparatus 1400 is applied to a second network device node in a synchronization network based on the first time synchronization, including a first receiving module 1401 and a second computing module 1402, wherein:
第一接收模块1401,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;The first receiving module 1401 receives difference information; the difference information records a time difference between the first time and a second time of at least one time reference source;
第二计算模块1402,用于根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间。The second calculation module 1402 is configured to calculate and obtain a second time of the at least one time reference source according to the received difference information and the first time.
可选的,所述装置还包括:Optionally, the device also includes:
输出模块,用于将所述至少一个时间基准源的第二时间输出至接入所述第二网络设备节点的下游设备。An output module, configured to output the second time of the at least one time reference source to a downstream device connected to the second network device node.
可选的,所述第二计算模块具体用于:在接收到所述差值信息时,根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间;或者,当所述第一时间达到预设时间点时,根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间。Optionally, the second calculating module is specifically configured to: when receiving the difference information, calculate and obtain the first time of the at least one time reference source according to the received difference information and the first time. Two times; or, when the first time reaches a preset time point, calculate and obtain the second time of the at least one time reference source according to the received difference information and the first time.
可选的,所述第一接收模块具体用于:接收时间差值信息报文,所述时间差值信息报文包括差值信息和用于标识报文发送次数的序列号;Optionally, the first receiving module is specifically configured to: receive a time difference information message, where the time difference information message includes difference information and a sequence number used to identify the number of times the message is sent;
所述装置还包括:The device also includes:
判断模块,用于判断是否接收到差值信息。A judging module, configured to judge whether difference information is received.
可选的,所述装置还包括:Optionally, the device also includes:
请求发送模块,用于当未接收到所述差值信息时,向上游网络设备节点发送用于重新发送差值信息的请求消息;A request sending module, configured to send a request message for resending difference information to an upstream network device node when the difference information is not received;
其中,所述上游网络设备节点为获取所述至少一个时间基准源的第二时间的第一网络设备节点,或者所述上游网络设备节点为所述差值信息从所述第一网络设备节点传输至所述第二网络设备节点的中间网络设备节点。Wherein, the upstream network device node is the first network device node that acquires the second time of the at least one time reference source, or the upstream network device node transmits the difference information from the first network device node an intermediate network device node to said second network device node.
可选的,所述装置还包括:第一转发模块,用于对所述差值信息进行转发。Optionally, the device further includes: a first forwarding module, configured to forward the difference information.
可选的,所述第一转发模块包括:Optionally, the first forwarding module includes:
第一确定单元,用于在所述第二网络设备的一端口接收到所述差值信息时,根据预先配置的传送路径确定所述第二网络设备的转发端口;A first determining unit, configured to determine a forwarding port of the second network device according to a pre-configured transmission path when a port of the second network device receives the difference information;
第一转发单元,将所述差值信息转发到所述转发端口,通过所述转发端口向所述同步网络的其他网络设备节点转发。The first forwarding unit forwards the difference information to the forwarding port, and forwards the difference information to other network device nodes of the synchronization network through the forwarding port.
可选的,所述第一转发模块具体用于:在所述第二网络设备的一端口接收到所述差值信息时,将所述差值信息转发到未接收到相同差值信息的其他端口,通过所述转发端口向邻居网络设备节点转发。Optionally, the first forwarding module is specifically configured to: when a port of the second network device receives the difference information, forward the difference information to other ports that have not received the same difference information The port is forwarded to the neighbor network device node through the forwarding port.
本发明实施例中,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;根据接收到的所述差值信息和所述第一时间计算获得所述至少一个时间基准源的第二时间。由于在不能直接获取时间基准源的第二时间的第二网络设备节点中,通过获取时间基准源的第二时间与第一时间的差值信息后,根据该差值信息计算得到时间基准源的第二时间,从而可以使得同一张同步网络中的所有第二网络设备节点均可以获得时间基准源的第二时间,因此解决了在一张同步网络中传递不同的时间基准的问题。In the embodiment of the present invention, the difference information is received; the difference information records the time difference between the first time and the second time of at least one time reference source; according to the received difference information and the The first time calculation obtains the second time of the at least one time reference source. Because in the second network device node that cannot directly obtain the second time of the time reference source, after obtaining the difference information between the second time of the time reference source and the first time, the time of the time reference source is calculated according to the difference information The second time enables all second network device nodes in the same synchronization network to obtain the second time of the time reference source, thus solving the problem of transferring different time references in a synchronization network.
参见图15,图15是本发明第十二实施提供的时间同步处理装置的结构图,能够实现第八实施例中时间同步处理方法的细节,并达到相同的效果。如图15所示,时间同步处理装置1500应用于基于第一时间进行同步的同步网络中的第二网络设备节点中,包括第二接收模块1501和第二转发模块1502,其中:Referring to FIG. 15 , FIG. 15 is a structural diagram of a time synchronization processing device provided in the twelfth embodiment of the present invention, which can realize the details of the time synchronization processing method in the eighth embodiment and achieve the same effect. As shown in FIG. 15, the time synchronization processing apparatus 1500 is applied to a second network device node in a synchronization network based on the first time synchronization, including a second receiving module 1501 and a second forwarding module 1502, wherein:
第二接收模块1501,用于接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;The second receiving module 1501 is configured to receive difference information; the difference information records the time difference between the first time and a second time of at least one time reference source;
第二转发模块1502,用于对所述差值信息进行转发。The second forwarding module 1502 is configured to forward the difference information.
可选的,所述第二转发模块包括:Optionally, the second forwarding module includes:
第二确定单元,用于在所述第二网络设备的一端口接收到所述差值信息时,根据预先配置的传送路径确定所述第二网络设备的转发端口;A second determining unit, configured to determine a forwarding port of the second network device according to a pre-configured transmission path when a port of the second network device receives the difference information;
第二转发单元,将所述差值信息转发到所述转发端口,通过所述转发端口向所述同步网络的其他网络设备节点转发。The second forwarding unit forwards the difference information to the forwarding port, and forwards to other network device nodes of the synchronization network through the forwarding port.
可选的,所述第二转发模块具体用于:在所述第二网络设备的一端口接收到所述差值信息时,将所述差值信息转发到未接收到相同差值信息的其他端口,通过所述转发端口向邻居网络设备节点转发。Optionally, the second forwarding module is specifically configured to: when a port of the second network device receives the difference information, forward the difference information to other ports that have not received the same difference information The port is forwarded to the neighbor network device node through the forwarding port.
本发明实施例中,接收差值信息;所述差值信息记录有所述第一时间与至少一个时间基准源的第二时间之间的时间差;根据预先配置的传送路径,对所述差值信息进行转发;或者,将所述差值信息转发至与第二网络设备节点相邻的网络设备节点中。由于在不能直接获取时间基准源的第二时间的第二网络设备节点中,通过获取时间基准源的第二时间与第一时间的差值信息后,根据该差值信息转发到各网络设备节点中,从而可以由各网络设备节点计算得到时间基准源的第二时间,从而可以使得同一张同步网络中的所有第二网络设备节点均可以获得时间基准源的第二时间,因此解决了在一张同步网络中传递不同的时间基准的问题。In the embodiment of the present invention, the difference information is received; the difference information records the time difference between the first time and the second time of at least one time reference source; according to the pre-configured transmission path, the difference The information is forwarded; or, the difference information is forwarded to a network device node adjacent to the second network device node. Because in the second network device node that cannot directly obtain the second time of the time reference source, after obtaining the difference information between the second time of the time reference source and the first time, it is forwarded to each network device node according to the difference information In this way, the second time of the time reference source can be calculated by each network device node, so that all the second network device nodes in the same synchronization network can obtain the second time of the time reference source, thus solving the problem in a The problem of passing different time bases in a synchronous network.
参见图16,图16是本发明第十三实施提供的同步网络的结构图,能够实现第九实施例中时间同步处理方法的细节,并达到相同的效果。如图16所示,同步网络1600基于第一时间同步,所述同步网络1600包括第一网络设备节点1601和第二网络设备节点1602,所述第一网络设备节点1601包括:Referring to FIG. 16, FIG. 16 is a structural diagram of a synchronization network provided by the thirteenth embodiment of the present invention, which can realize the details of the time synchronization processing method in the ninth embodiment and achieve the same effect. As shown in FIG. 16, a synchronization network 1600 is based on first time synchronization, and the synchronization network 1600 includes a first network device node 1601 and a second network device node 1602, and the first network device node 1601 includes:
获取模块16011,用于获取至少一个时间基准源的第二时间;An acquisition module 16011, configured to acquire a second time of at least one time reference source;
第一计算模块16012,用于计算所述至少一个时间基准源的第二时间与所述第一时间的差值信息;A first calculation module 16012, configured to calculate difference information between the second time of the at least one time reference source and the first time;
差值信息发送模块16013,用于将所述差值信息发送至所述第二网络设备节点;A difference information sending module 16013, configured to send the difference information to the second network device node;
所述第二网络设备节点1602包括:The second network device node 1602 includes:
第一接收模块16021,接收差值信息;The first receiving module 16021 receives difference information;
差值处理模块16022,用于转发所述差值信息,和/或根据接收到的所述差值信息和所述第一时间计算获得所述第二时间。The difference processing module 16022 is configured to forward the difference information, and/or calculate and obtain the second time according to the received difference information and the first time.
本实施例中,由于在不能直接获取时间基准源的第二时间的第二网络设备节点和同步网络的其他网络设备节点中,通过获取时间基准源的第二时间与第一时间的差值信息后,根据该差值信息计算得到时间基准源的第二时间,从而可以使得同一张同步网络中的所有网络设备节点均可以获得时间基准源的第二时间,因此解决了在一张同步网络中传递不同的时间基准的问题。In this embodiment, because in the second network device node that cannot directly obtain the second time of the time reference source and other network device nodes in the synchronization network, by obtaining the difference information between the second time of the time reference source and the first time Finally, the second time of the time reference source is calculated according to the difference information, so that all network device nodes in the same synchronization network can obtain the second time of the time reference source, thus solving the problem in a synchronization network Problems passing different time bases.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, 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.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they 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 the embodiment of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the 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 are used 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 described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (28)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611234476.7A CN108259105B (en) | 2016-12-28 | 2016-12-28 | time synchronization processing method and device and synchronization network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611234476.7A CN108259105B (en) | 2016-12-28 | 2016-12-28 | time synchronization processing method and device and synchronization network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108259105A CN108259105A (en) | 2018-07-06 |
CN108259105B true CN108259105B (en) | 2019-12-13 |
Family
ID=62719353
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611234476.7A Active CN108259105B (en) | 2016-12-28 | 2016-12-28 | time synchronization processing method and device and synchronization network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108259105B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113259037B (en) * | 2021-03-30 | 2022-12-23 | 杭州涂鸦信息技术有限公司 | Time synchronization method, medium, and apparatus based on sensor time synchronization system |
CN115767607A (en) * | 2021-09-02 | 2023-03-07 | 华为技术有限公司 | Time synchronization monitoring method |
CN114095166B (en) * | 2021-11-23 | 2024-08-13 | 北京京东方技术开发有限公司 | Method, node and system for generating temporary identity of node |
CN117834383A (en) * | 2022-09-28 | 2024-04-05 | 中兴通讯股份有限公司 | Time reference position transmission method, message position determination method and communication equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905135A (en) * | 2012-12-24 | 2014-07-02 | 中国移动通信集团公司 | Method, device and system for realizing time synchronization |
CN105553590A (en) * | 2015-12-09 | 2016-05-04 | 瑞斯康达科技发展股份有限公司 | Clock synchronization method and device for grouping switching network |
WO2016095099A1 (en) * | 2014-12-16 | 2016-06-23 | 华为技术有限公司 | Time synchronization method and apparatus |
WO2016112664A1 (en) * | 2015-01-12 | 2016-07-21 | 中兴通讯股份有限公司 | Time processing method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080175275A1 (en) * | 2007-01-22 | 2008-07-24 | Samsung Electronics Co., Ltd. | Time synchronization method between nodes in network and apparatus for implementing the same |
-
2016
- 2016-12-28 CN CN201611234476.7A patent/CN108259105B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905135A (en) * | 2012-12-24 | 2014-07-02 | 中国移动通信集团公司 | Method, device and system for realizing time synchronization |
WO2016095099A1 (en) * | 2014-12-16 | 2016-06-23 | 华为技术有限公司 | Time synchronization method and apparatus |
WO2016112664A1 (en) * | 2015-01-12 | 2016-07-21 | 中兴通讯股份有限公司 | Time processing method and device |
CN105553590A (en) * | 2015-12-09 | 2016-05-04 | 瑞斯康达科技发展股份有限公司 | Clock synchronization method and device for grouping switching network |
Also Published As
Publication number | Publication date |
---|---|
CN108259105A (en) | 2018-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107508719B (en) | Method and device for measuring network time delay and network node | |
US8953645B2 (en) | Communication system, communication apparatus and time synchronization method | |
JP6214008B2 (en) | Method and apparatus for communicating time information between time recognition devices | |
TWI532352B (en) | Evolved packet core less direct mode communication system and communication attaching method thereof | |
CN108259105B (en) | time synchronization processing method and device and synchronization network | |
US9876596B2 (en) | Method and device for detecting fault in synchronization link | |
JP6527289B2 (en) | Time synchronization method, sensor accommodating terminal, and sensor network system | |
CN105262555B (en) | Time synchronization method, programmable logic device, single board and network element | |
CN109996325B (en) | Clock synchronization system and method of wireless sensor network | |
CN108599888A (en) | A kind of distributed network clock synchronizing system | |
JP5811895B2 (en) | Communication apparatus and communication method | |
JP2014096853A (en) | Time synchronization device | |
US9912693B1 (en) | Identification of malicious precise time protocol (PTP) nodes | |
WO2015125439A1 (en) | Communication system, wireless communication apparatus, and wireless communication method | |
JP2013168811A (en) | Network system and time synchronization method | |
US11223965B2 (en) | Method and apparatus for controlling network sensors | |
JP2016119616A (en) | Ring type network system, and master node thereof | |
EP3113415A1 (en) | Network management commands | |
CN114765586A (en) | Method, device and system for detecting time synchronization performance | |
JP2018088644A (en) | Time synchronization method and time synchronization system between wirelessly-connected terminals | |
US20220329336A1 (en) | Full-duplex communication link using TDM | |
CN108123773B (en) | A time synchronization method and device | |
CN105278325A (en) | Time synchronizing method, time connecting system, time master instrument, and time slave instrument | |
JP2016036060A (en) | Time synchronization method and time synchronization system | |
CN114451027B (en) | Method and device for simple time synchronization of communications in industrial environments |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |