WO2015117387A1 - 一种多链路主时钟切换方法、装置及ptn设备 - Google Patents
一种多链路主时钟切换方法、装置及ptn设备 Download PDFInfo
- Publication number
- WO2015117387A1 WO2015117387A1 PCT/CN2014/089085 CN2014089085W WO2015117387A1 WO 2015117387 A1 WO2015117387 A1 WO 2015117387A1 CN 2014089085 W CN2014089085 W CN 2014089085W WO 2015117387 A1 WO2015117387 A1 WO 2015117387A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- link
- primary clock
- current
- clock
- switching
- Prior art date
Links
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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0641—Change of the master or reference, e.g. take-over or failure of the master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
Definitions
- the present invention relates to the field of communications, and in particular, to a multi-link master clock switching method and apparatus, and a PTN device.
- IP Internet Protocol
- TDM Time Division Multiplex
- public switched telephone networks need to be uniformly accessed and transmitted.
- the TDM over IP concept has emerged.
- the TDM data encapsulated in an IP packet is transparently transmitted to the peer end through a PTN (Packet Transport Network).
- PTN Packet Transport Network
- PTN supports a variety of two-way point-to-point connection channels based on packet switching services. It has the ability to adapt to various granular services and end-to-end networking capabilities, providing a "flexible" transmission pipeline that is more suitable for IP service characteristics, and protection switching of point-to-point connection channels. It can be completed in 50 milliseconds, enabling traffic protection and recovery at the transport level.
- the traditional fixed network adopts SDH (Synchronous Digital Hierarchy) as the standard, and requires clock synchronization.
- SDH Serial Digital Hierarchy
- the clock recovery technologies commonly used in the PTN data transmission process mainly include two types: adaptive clock recovery technology and differential clock. Recovery technology.
- the adaptive clock is the mainstream clock recovery technology in the industry.
- the working principle is as follows: the service data is sent to the PTN device B through the PTN device A at the ingress a of the PTN network, and the adaptation of the PTN device B is performed.
- the clock recovery module recovers the service clock according to the arrival rate of the service data packet, and uses the clock to send the service data.
- a number of outgoing transmission links are bundled and transmitted using the same clock, that is, multiple links belong to the same clock domain.
- E1 aggregation to STM-1 (Synchronous Transfer Mode) is usually to multiplex 2Mbit/s E1 signals into high-speed 155Mbit/s STM-1 signals, and 2Mbit/s.
- the clock can be recovered by Ethernet packet collection.
- the current adaptive clock recovery method is to recover the clock of each E1 as the clock of the tributary signal in the STM-1 signal. Since the transmission link may have delay or jitter, each E1 will be recovered. The frequency is different, which causes frequent pointer adjustments on the lower-order channels of the STM-1.
- an adaptive clock recovery module an adaptive clock recovery algorithm is implemented for each link, which consumes a large amount of resources, and this overhead is particularly prominent in the case of insufficient resources.
- a multi-link clock domain recovery method in which a link is selected as a primary clock link and a clock of a primary clock link from multiple links belonging to the same clock domain. Recovery is performed as the transmit clock for all links of the clock domain.
- the recovery clock of the primary link may be problematic, and the primary clock link needs to be reselected, but if Frequent reselection of the primary clock link will degrade the quality of the service transmission. Therefore, the reselection process of the primary clock link needs to be controlled.
- the present invention provides a multi-link master clock switching method and apparatus, and a PTN device, which determines whether the current master clock link needs to be switched according to the service transmission condition in the PTN network, and reselects when the handover needs to be performed.
- the main clock link avoids the problem that the quality of the service transmission is degraded due to frequent switching of the primary clock link.
- an embodiment of the present invention provides a multi-link master clock switching method, which is used in a packet transmission network PTN device, where the multiple links belong to the same clock domain, and the handover method includes: according to the PTN device The status information of the jitter register and the current data transmission information of the primary clock link determine whether the primary clock link switching is required; when the primary clock link switching is required, the current primary clock link is removed. One of the outer multilinks is selected as the new primary clock link.
- the multi-link master clock switching method wherein the determining whether the master clock link needs to be performed is specifically: the state information of the jitter register in the PTN device acquired according to the preset time and the current master clock.
- the data transmission information of the link is used to determine whether the current primary clock link is invalid. When the number of consecutive failures of the current primary clock link reaches a preset number of times, it is determined that the primary clock link switching is required.
- the multi-link master clock switching method wherein the state information of the jitter register comprises: a jitter register overflow or a jitter register underflow, and determining the current master clock chain when any of the following conditions is met Path failure: the state information of the jitter register is a jitter register overflow, the state information of the jitter register is a jitter register underflow, or the data transmission information of the current primary clock link indicates the current primary clock link No data is currently being transferred.
- the multi-link master clock switching method wherein the selecting one link from the multiple links other than the current primary clock link as the new master clock link includes: acquiring the current master Data transmission information of each link in the multilink other than the clock link; selecting a link of the current transmission data from the multiple links other than the current main clock link as the new master clock link.
- the multi-link master clock switching method wherein the link for selecting a current transmission data from the multiple links other than the current primary clock link is used as a new master clock link.
- the next link of the current primary clock link begins to find a link of the current transmission data as the new primary clock link according to the link number.
- the embodiment of the present invention further provides a multi-link master clock switching apparatus, which is used for a packet transmission network PTN device, the multi-link belongs to the same clock domain, and the switching device includes: a first determining module, configured to be Describe the state information of the jitter register in the PTN device and the current data transmission information of the main clock link, and determine whether the main clock link needs to be switched; the selection module is set to be used when the main clock link needs to be switched. One of the multiple links other than the current primary clock link is selected as the new primary clock link.
- the multi-link master clock switching device wherein the first determining module comprises: a first determining unit, configured to set state information of the jitter register in the PTN device and the current master according to the preset time The data transmission information of the clock link is used to determine whether the current primary clock link is invalid.
- the second determining unit is configured to determine that the primary master clock link fails to reach the preset number of times. Clock link switching.
- the multi-link master clock switching device wherein the state information of the jitter register comprises: a jitter register overflow or a jitter register underflow, and determining the current master clock chain when any of the following conditions is met Path failure: the state information of the jitter register is a jitter register overflow, the state information of the jitter register is a jitter register underflow, or the data transmission information of the current primary clock link indicates the current primary clock link No data is currently being transferred.
- the multi-link master clock switching device wherein the selecting module includes: an acquiring unit, configured to acquire data transmission information of each link in the multiple links except the current master clock link; And a unit configured to select a link of the current transmission data from the multiple links other than the current primary clock link as a new primary clock link.
- the multi-link master clock switching device wherein the selecting unit is further configured to search for a link of the current transmission data according to the link number from the next link of the current primary clock link as a new master clock link.
- the embodiment of the invention further provides a PTN device, comprising the multi-link master clock switching device as described above.
- the present invention provides a multi-link master clock switching method and apparatus, and a PTN device, which determines whether the current master clock link needs to be switched according to the service transmission condition in the PTN network, and reselects the master clock link when the handover is required, thereby The problem that the quality of the service transmission is degraded due to frequent switching of the primary clock link is avoided.
- Figure 1 is a schematic diagram of a PTN network architecture.
- FIG. 2 is a schematic flowchart diagram of a multi-link master clock switching method according to Embodiment 1 of the present invention.
- FIG. 3 is a schematic flowchart of a multi-link master clock switching method according to Embodiment 2 of the present invention.
- a multi-link master clock switching method, device, and PTN device are provided. According to the service transmission condition in the PTN network, it is determined whether the current master clock link needs to be switched, and the main switch is reselected when the handover is needed. The clock link avoids the problem that the quality of the service transmission is degraded due to frequent switching of the primary clock link.
- the multi-link master clock switching method provided in Embodiment 1 of the present invention is used in a packet transmission network PTN device, and the multiple links belong to the same clock domain.
- the handover method includes:
- Step S200 Determine, according to the state information of the jitter register in the PTN device and the current data transmission information of the primary clock link, whether the primary clock link switching needs to be performed;
- Step S202 When the primary clock link switching needs to be performed, select one link from the multiple links except the current primary clock link as the new primary clock link.
- multiple links belong to the same clock domain, and one link of the multi-link functions as a master clock link, and clock recovery is performed on the master clock link, and the restored
- the clock is used as the transmission clock of all links in the clock domain, and according to the state information of the jitter register in the PTN device and the data transmission information of the current master clock link, it is determined whether the master clock link needs to be switched, and when needed, The master clock link is switched. Therefore, the control of the handover process of the primary clock link is implemented, and the problem that the service transmission quality is degraded due to frequent handover of the primary clock link is avoided.
- the multi-link master clock switching method wherein the determining whether the master clock link needs to be switched may be specifically: the state information of the jitter register in the PTN device acquired according to the preset time and the current main The data transmission information of the clock link is used to determine whether the current primary clock link is invalid. When the number of consecutive failures of the current primary clock link reaches a preset number of times, it is determined that the primary clock link switching is required.
- a statistical method is used to determine whether a primary-time link switching is required, that is, information is acquired once every certain time, and the primary clock link is determined to be invalid according to the related information.
- the primary clock link switching is required. Otherwise, it is considered that the primary clock link switching is not required.
- the related information is obtained once every 2 seconds. If the information obtained in 8 consecutive times indicates that the primary clock link is invalid, it is considered that the primary clock link needs to be switched. That is, the determination of whether the primary clock link needs to be switched is not based on the information acquisition result, but is based on multiple information acquisition results, thereby avoiding frequent switching of the primary clock link due to sporadic problems.
- the multi-link master clock switching method wherein the state information of the jitter register comprises: a jitter register overflow or a jitter register underflow, and the current master clock can be determined when any of the following conditions is met Link failure: the state information of the jitter register is a jitter register overflow, the state information of the jitter register is a jitter register underflow, or the data transmission information of the current master clock link indicates the current master clock chain The road currently does not transmit any data.
- the multi-link master clock switching method determines whether the master clock link is invalid according to the up/down state of the jitter register of the PSN side message and the recovery clock, and is used in the PTN network according to the description of IETF RFC4553.
- the jitter register jitter buffer buffers the message coming from the PSN side.
- the overflow of the buffer indicates that the recovered clock is slower than the packet data sent by the actual PSN side, it is too late to send the packet in the buffer from the line side, and the overflow occurs, that is, according to the currently selected master clock.
- the clock recovered by the link acts as the transmit clock, causing a problem in the service transmission, and the master clock link is invalid.
- the PSN has not yet had time to send a new packet after the packet in the buffer has been sent out.
- the underflow that is, the clock that is recovered according to the currently selected primary clock link is used as the transmission clock, causing a problem in the service transmission, and the primary clock link is invalid.
- one link may be selected as the new primary clock link from other links in the clock domain to which it belongs, in order to avoid the failure of the selected new primary clock link, a link master clock switching method, wherein the selecting one link from the multiple links other than the current master clock link as the new master clock link may include: acquiring the current master clock Data transmission information of each link in the multiple links outside the link; selecting a link of the current transmission data from the multiple links other than the current primary clock link as a new primary clock chain road.
- the purpose of the above operation is to avoid selecting the failed link as the new primary clock link. Before the selection is made, the data transmission information of the other links is obtained, and the link that does not currently transmit data is a failed link, and the failed link cannot be used as a new primary clock link. Therefore, the data should be transmitted from the current. Select a new primary clock link from the other links.
- whether the other link currently transmits data determines whether it is invalid.
- other links may be judged according to other criteria, and may be judged according to a statistical method.
- the link link acquires the data transmission information of the link at a certain time. When a link does not transmit data once in a predetermined period of time, it is determined that the link is invalid. For example, for all links except the primary clock link in the clock domain, scan every 2S, scan a total of 10 times, the time is 20S, if in the 10 scan results, once for a link If there is no data transmission, the link is considered invalid and the link is not selected as the new primary clock link.
- the multi-link master clock switching method wherein the link for selecting a current transmission data from the multiple links other than the current primary clock link is used as a new master clock link.
- the next link of the current primary clock link begins to find a link of the current transmission data as the new primary clock link according to the link number.
- link number When selecting a new primary clock link, you can use the link number as an index to search. Assume that there are five links in a clock domain, numbered 1, 2, 3, 4, and 5. The current primary clock link number is 2. Once link 2 fails, it searches from link 3 and finds a valid link as the new primary clock link. If link 2 is not found again, it is still not found. For a valid link, link 2 is still used as the primary clock link, that is, the primary clock link is not switched.
- the method may be selected in various manners, and is not limited to the foregoing manner.
- a failure record may be established for a link in a clock domain, and a link with the least number of failures is selected as a new master clock chain according to the failure record.
- Road of course, the user can also specify a new master clock link.
- FIG. 3 is a schematic flowchart of a multi-link master clock switching method according to Embodiment 2 of the present invention. As shown in the figure, the handover method includes:
- Step S300 scanning each link and jitter register in the clock domain 10 times, obtaining state information of the jitter register and data transmission information of each link, and scanning every 2S;
- Step S302 performing statistics on link failures in 10 scans
- Step S304 determining whether the master clock link has 8 consecutive failure records during the 10 scans, and when it occurs, proceeds to step S306, otherwise, proceeds to step S316;
- Step S306 determining that the primary clock link switching needs to be performed, and searching for the failure statistics of the next link of the current primary clock link in the scan record;
- Step S308 determining whether the link is invalid, when the link fails, proceeds to step S310, otherwise proceeds to step S314;
- Step S310 searching for the failure statistics of the next link of the link in the scan record
- Step S312 it is determined whether the link is the current master clock link, and if so, proceeds to step S316, otherwise proceeds to step S308;
- Step S314 the link is used as a new primary clock link
- step S316 the primary clock link is not used, and the primary clock link is continuously used.
- the present invention also provides a multi-link master clock switching apparatus for a packet transmission network PTN device, the multi-link belongs to the same clock domain, and the switching device includes: a first determining module, configured to be according to the PTN The status information of the jitter register in the device and the current data transmission information of the primary clock link determine whether the primary clock link needs to be switched; the selection module is set to remove the current when the primary clock link needs to be switched. One of the multiple links other than the primary clock link is selected as the new primary clock link.
- the multi-link master clock switching device wherein the first determining module comprises: a first determining unit, configured to set state information of the jitter register in the PTN device and the current master according to the preset time The data transmission information of the clock link is used to determine whether the current primary clock link is invalid.
- the second determining unit is configured to determine that the primary master clock link fails to reach the preset number of times. Clock link switching.
- the multi-link master clock switching device wherein the state information of the jitter register comprises: a jitter register overflow or a jitter register underflow, and determining the current master clock chain when any of the following conditions is met Path failure: the status information of the jitter register is a jitter register overflow, and the status register of the jitter register The jitter transfer register underflow or the data transfer information of the current primary clock link indicates that the current primary clock link is not currently transmitting any data.
- the multi-link master clock switching device wherein the selecting module includes: an acquiring unit, configured to acquire data transmission information of each link in the multiple links except the current master clock link; And a unit configured to select a link of the current transmission data from the multiple links other than the current primary clock link as a new primary clock link.
- the multi-link master clock switching device wherein the selecting unit is further configured to search for a link of the current transmission data according to the link number from the next link of the current primary clock link as a new master clock link.
- the present invention also provides a PTN device comprising the multi-link master clock switching device as described above.
- the foregoing technical solution provided by the embodiment of the present invention determines whether the current primary clock link needs to be switched according to the service transmission condition in the PTN network, and reselects the primary clock link when the handover is needed, thereby avoiding frequent switching of the primary clock link.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
本发明提供了一种多链路主时钟切换方法、装置及分组传送网络PTN设备,所述多链路主时钟切换方法,用于分组传送网络PTN设备,所述多链路属于同一时钟域,所述切换方法包括:根据所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断是否需要进行主时钟链路切换;当需要进行主时钟链路切换时,从除所述当前的主时钟链路之外的多链路中选择一条链路作为新的主时钟链路。采用本发明提供的技术方案,根据PTN网络中业务传输情况判断当前主时钟链路是否需要进行切换,并在需要切换时重新选择主时钟链路,从而避免了主时钟链路频繁切换造成业务传输质量降低的问题。
Description
本发明涉及通信领域,尤其涉及一种多链路主时钟切换方法、装置及PTN设备。
在传统网络IP(Internet Protocol,互联网协议)化的过程中,大量公用交换电话网络等TDM(Time Division Multiplex,时分复用)业务需要统一接入和传送,TDM over IP理念应运而生,将已经封装为IP包的TDM数据通过PTN(分组传送网,Packet Transport Network)透传到对端。PTN支持多种基于分组交换业务的双向点对点连接通道,具有适合各种粗细颗粒业务、端到端的组网能力,提供了更加适合于IP业务特性的“柔性”传输管道,点对点连接通道的保护切换可以在50毫秒内完成,可以实现传输级别的业务保护和恢复。
传统的固网以SDH(Synchronous Digital Hierarchy,同步数字体系)为标准,要求保持时钟同步,而网络IP化后并没有对时钟同步提出具体的要求,因此,当业务在IP网络中传送时,时钟信息会丢失,对端将包流还原成TDM业务如果使用本地时钟,和业务源时钟不同步,目前,PTN数据传输过程中常用的时钟恢复技术主要包括两种:自适应时钟恢复技术和差分时钟恢复技术。其中,自适应时钟是业界的主流时钟恢复技术,如图1所示,其工作原理为:在PTN网络的入口a处通过PTN设备A将业务数据发送至PTN设备B,PTN设备B的自适应时钟恢复模块根据业务数据包的抵达速率恢复出业务时钟,并采用该时钟发送业务数据。
在现网应用中,往往使用将若干条出传输链路进行捆绑,使用同一个时钟进行发送,也即多条链路是属于同一个时钟域的。以使用PTN承载实现E1汇聚至STM-1(Synchronous Transfer Mode,同步传输模式)为例,通常是将2Mbit/s的E1信号复用进高速的155Mbit/s的STM-1信号,而2Mbit/s的时钟可以通过以太网收包进行恢复。目前的一种自适应时钟恢复方法是将每一条E1的时钟都恢复出来,作为STM-1信号中支路信号的时钟,由于传输链路可能出现延时或者抖动,会导致恢复出来每条E1的频率都不一样,会使得在STM-1的低阶通道上出现频繁的指针调整。并且作为自适应时钟恢复模块,对每条链路都实施自适应时钟恢复算法,要消耗大量的资源,这一开销在资源不足的情况下尤为突出。
因此,针对这种现象,现有技术中提供了一种多链路时钟域恢复方法,从属于同一时钟域的多链路中选择一个链路作为主时钟链路,对主时钟链路的时钟进行恢复,作为该时钟域的所有链路的发送时钟。然而,如果该主链路的恢复时钟出现了问题时,可能会造成与该主时钟链路同属一时钟域的所有链路的恢复时钟都出现问题,需要重新选择主时钟链路,但是,如果频繁地进行主时钟链路的重选,会使得业务传输质量降低,因此,需要对主时钟链路的重选过程进行控制。
发明内容
为了解决上述技术问题,本发明提供了一种多链路主时钟切换方法、装置及PTN设备,根据PTN网络中业务传输情况判断当前主时钟链路是否需要进行切换,并在需要切换时重新选择主时钟链路,从而避免了主时钟链路频繁切换造成业务传输质量降低的问题。
为了实现上述目的,本发明实施例提供了一种多链路主时钟切换方法,用于分组传送网络PTN设备,所述多链路属于同一时钟域,所述切换方法包括:根据所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断是否需要进行主时钟链路切换;当需要进行主时钟链路切换时,从除所述当前的主时钟链路之外的多链路中选择一条链路作为新的主时钟链路。
上述多链路主时钟切换方法,其中,所述判断是否需要进行主时钟链路切换具体为:根据每隔预设时间获取到的所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断所述当前的主时钟链路是否失效;当所述当前的主时钟链路连续失效的次数达到预设次数时,判定需要进行主时钟链路切换。
上述多链路主时钟切换方法,其中,所述抖动寄存器的状态信息包括:抖动寄存器上溢或抖动寄存器下溢,当满足下述条件中的任一条件时,判定所述当前的主时钟链路失效:所述抖动寄存器的状态信息为抖动寄存器上溢、所述抖动寄存器的状态信息为抖动寄存器下溢或所述当前的主时钟链路的数据传输信息表明所述当前的主时钟链路当前没有传输任何数据。
上述多链路主时钟切换方法,其中,所述从除所述当前的主时钟链路之外的多链路中选择一条链路作为新的主时钟链路包括:获取除所述当前的主时钟链路之外的多链路中的每条链路的数据传输信息;从除所述当前的主时钟链路之外的多链路中选择一条当前传输数据的链路作为新的主时钟链路。
上述多链路主时钟切换方法,其中,所述从除所述当前的主时钟链路之外的多链路中选择一条当前传输数据的链路作为新的主时钟链路具体为:从所述当前的主时钟链路的下一条链路开始按照链路编号查找一条当前传输数据的链路作为新的主时钟链路。
本发明实施例还提供了一种多链路主时钟切换装置,用于分组传送网络PTN设备,所述多链路属于同一时钟域,所述切换装置包括:第一判断模块,设置为根据所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断是否需要进行主时钟链路切换;选择模块,设置为当需要进行主时钟链路切换时,从除所述当前的主时钟链路之外的多链路中选择一条链路作为新的主时钟链路。
上述多链路主时钟切换装置,其中,所述第一判断模块包括:第一判断单元,设置为根据每隔预设时间获取到的所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断所述当前的主时钟链路是否失效;第二判断单元,设置为当所述当前的主时钟链路连续失效的次数达到预设次数时,判定需要进行主时钟链路切换。
上述多链路主时钟切换装置,其中,所述抖动寄存器的状态信息包括:抖动寄存器上溢或抖动寄存器下溢,当满足下述条件中的任一条件时,判定所述当前的主时钟链路失效:所述抖动寄存器的状态信息为抖动寄存器上溢、所述抖动寄存器的状态信息为抖动寄存器下溢或所述当前的主时钟链路的数据传输信息表明所述当前的主时钟链路当前没有传输任何数据。
上述多链路主时钟切换装置,其中,所述选择模块包括:获取单元,设置为获取除所述当前的主时钟链路之外的多链路中的每条链路的数据传输信息;选择单元,设置为从除所述当前的主时钟链路之外的多链路中选择一条当前传输数据的链路作为新的主时钟链路。
上述多链路主时钟切换装置,其中,所述选择单元进一步设置为从所述当前的主时钟链路的下一条链路开始按照链路编号查找一条当前传输数据的链路作为新的主时钟链路。
本发明实施例还提供了一种PTN设备,包括如上所述的多链路主时钟切换装置。
本发明的上述技术方案的有益效果如下:
本发明提供了一种多链路主时钟切换方法、装置及PTN设备,根据PTN网络中业务传输情况判断当前主时钟链路是否需要进行切换,并在需要切换时重新选择主时钟链路,从而避免了主时钟链路频繁切换造成业务传输质量降低的问题。
图1为PTN网络架构示意图。
图2为本发明实施例1提供的多链路主时钟切换方法的流程示意图。
图3为本发明实施例2提供的多链路主时钟切换方法的流程示意图。
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。
本发明实施例针对现有技术中,对于属于同一时钟域的多条链路,当主时钟链路的时钟恢复出现问题时,需要重新选择主时钟链路,而频繁地重选主时钟链路会降低业务传输质量的问题,提供了一种多链路主时钟切换方法、装置及PTN设备,根据PTN网络中业务传输情况判断当前主时钟链路是否需要进行切换,并在需要切换时重新选择主时钟链路,从而避免了主时钟链路频繁切换造成业务传输质量降低的问题。
本发明实施例1提供的多链路主时钟切换方法,用于分组传送网络PTN设备,所述多链路属于同一时钟域,如图2所示,所述切换方法包括:
步骤S200,根据所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断是否需要进行主时钟链路切换;
步骤S202,当需要进行主时钟链路切换时,从除所述当前的主时钟链路之外的多链路中选择一条链路作为新的主时钟链路。
本发明提供的多链路主时钟切换方法中,多链路属于同一时钟域,该多链路中的一条链路作为主时钟链路,对该主时钟链路进行时钟恢复,并将恢复的时钟作为该时钟域的所有链路的发送时钟,根据PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断是否需要进行主时钟链路切换,并在需要时,才进行主时钟链路切换。从而实现了对主时钟链路的切换过程的控制,避免了主时钟链路频繁切换造成业务传输质量降低的问题。
上述多链路主时钟切换方法,其中,所述判断是否需要进行主时钟链路切换可以具体为:根据每隔预设时间获取到的所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断所述当前的主时钟链路是否失效;当所述当前的主时钟链路连续失效的次数达到预设次数时,判定需要进行主时钟链路切换。
本发明提供的多链路主时钟切换方法中,采用统计的方法判断是否需要进行主时链路切换,即每隔一定时间获取一次相关信息,根据该相关信息确定主时钟链路是否失效,当主时钟链路持续失效的次数达到预定次数时,判定需要进行主时钟链路切换,否则认为无需进行主时钟链路切换。例如每隔2S获取一次相关信息,如果连续8次获取到的信息均表明主时钟链路失效时,认为需要对主时钟链路进行切换。即对主时钟链路是否需要进行切换的判断并不是仅依据一次信息获取结果,而是根据多次信息获取结果,从而避免了由于偶发性的问题造成主时钟链路的频繁切换。
上述多链路主时钟切换方法,其中,所述抖动寄存器的状态信息包括:抖动寄存器上溢或抖动寄存器下溢,当满足下述条件中的任一条件时,可以判定所述当前的主时钟链路失效:所述抖动寄存器的状态信息为抖动寄存器上溢、所述抖动寄存器的状态信息为抖动寄存器下溢或所述当前的主时钟链路的数据传输信息表明所述当前的主时钟链路当前没有传输任何数据。
本发明提供的多链路主时钟切换方法中,根据PSN侧报文及恢复时钟的抖动寄存器的上/下溢状态来判断主时钟链路是否出现失效,根据IETF RFC4553所描述,PTN网络中使用抖动寄存器jitter buffer缓存从PSN侧过来的报文。在采用了自适应时钟恢复算法的应用场景中:
(1)如果buffer出现上溢说明恢复的时钟比实际PSN侧发送的报文数据更慢,导致来不及将buffer中的报文从线路侧发送出去,而出现上溢,即根据当前选用的主时钟链路恢复的时钟作为发送时钟导致业务传输出现问题,主时钟链路失效;
(2)如果buffer出现下溢说明恢复的时钟比实际PSN侧发送的报文数据更快,导致在已经将buffer中的报文都发送出去后,PSN还没来得及发送新的报文,而出现下溢出,即根据当前选用的主时钟链路恢复的时钟作为发送时钟导致业务传输出现问题,主时钟链路失效;
(3)如果PSN根本就没有报文数据到达,即当前选用的主时钟链路没有业务数据传输,因此,也无法根据该主时钟链路进行自适应时钟恢复,主时钟链路失效。
当主时钟链路需要进行切换时,可以从其所属的时钟域内的其他链路中选择一条链路作为新的主时钟链路,为了避免所选中的新的主时钟链路失效,因此,上述多链路主时钟切换方法,其中,所述从除所述当前的主时钟链路之外的多链路中选择一条链路作为新的主时钟链路可以包括:获取除所述当前的主时钟链路之外的多链路中的每条链路的数据传输信息;从除所述当前的主时钟链路之外的多链路中选择一条当前传输数据的链路作为新的主时钟链路。
上述操作的目的是,避免将失效的链路选中为新的主时钟链路。在进行选择前,获取所述其他链路的数据传输信息,当前没有传输数据的链路为失效的链路,而失效的链路不能作为新的主时钟链路,因此,应当从当前传输数据的其他链路中选取新的主时钟链路。
在上述操作过程中,根据其他链路当前是否传输数据判断其是否失效,当然,在具体的实施过程中,可以根据其他准则对其他链路是否失效进行判断,可以根据统计方法来判断,对于每条链路,每隔一定的时间获取链路的数据传输信息,当在一预设的时间段内出现一次该链路没有传输数据的情况时,判定该链路失效。例如,对于时钟域内的除主时钟链路之外的其他所有链路,每隔2S扫描一次,共扫描10次,用时为20S,如果在这10次扫描结果中,对于某条链路出现一次没有传输数据的情况,则认为该链路失效,不会选中该链路作为新的主时钟链路。
上述多链路主时钟切换方法,其中,所述从除所述当前的主时钟链路之外的多链路中选择一条当前传输数据的链路作为新的主时钟链路具体为:从所述当前的主时钟链路的下一条链路开始按照链路编号查找一条当前传输数据的链路作为新的主时钟链路。
在选择新的主时钟链路时,可以利用链路编号作为索引,进行查找,假设某时钟域内有5条链路,分别编号为1,2,3,4,5。当前的主时钟链路编号为2,一旦链路2失效后,从链路3开始查找,一直找到有效的链路作为新的主时钟链路,如果直到重新查找到链路2,仍未找到有效的链路,则仍以链路2作为主时钟链路,即不进行主时钟链路切换。
当然,在具体实施过程中,可以采用多种方式来选择,并不限于上述方式,例如可以为时钟域内的链路建立失效记录,根据失效记录选择失效次数最少的链路作为新的主时钟链路,当然也可以由用户来指定新的主时钟链路。
图3为本发明实施例2提供的多链路主时钟切换方法的流程示意图,如图所示,所述切换方法包括:
步骤S300,对时钟域内的每条链路及抖动寄存器扫描10次,获取抖动寄存器的状态信息及每条链路的数据传输信息,每隔2S扫描一次;
步骤S302,对10次扫描中的链路失效进行统计;
步骤S304,判断主时钟链路在10次扫描过程中,是否连续出现8次失效记录,当出现时,进入步骤S306,否则,进入步骤S316;
步骤S306,判定需要进行主时钟链路切换,查找当前主时钟链路的下一条链路在该扫描记录中的失效统计情况;
步骤S308,判断该链路是否失效,当该链路失效时,进入步骤S310,否则进入步骤S314;
步骤S310,查找该链路的下一条链路在该扫描记录中的失效统计情况;
步骤S312,判断该链路是否为当前的主时钟链路,如果是,进入步骤S316,否则进入步骤S308;
步骤S314,将该链路作为新的主时钟链路;
步骤S316,无需进行主时钟链路切换,继续使用该主时钟链路。
本发明还提供了一种多链路主时钟切换装置,用于分组传送网络PTN设备,所述多链路属于同一时钟域,所述切换装置包括:第一判断模块,设置为根据所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断是否需要进行主时钟链路切换;选择模块,设置为当需要进行主时钟链路切换时,从除所述当前的主时钟链路之外的多链路中选择一条链路作为新的主时钟链路。
上述多链路主时钟切换装置,其中,所述第一判断模块包括:第一判断单元,设置为根据每隔预设时间获取到的所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断所述当前的主时钟链路是否失效;第二判断单元,设置为当所述当前的主时钟链路连续失效的次数达到预设次数时,判定需要进行主时钟链路切换。
上述多链路主时钟切换装置,其中,所述抖动寄存器的状态信息包括:抖动寄存器上溢或抖动寄存器下溢,当满足下述条件中的任一条件时,判定所述当前的主时钟链路失效:所述抖动寄存器的状态信息为抖动寄存器上溢、所述抖动寄存器的状态信
息为抖动寄存器下溢或所述当前的主时钟链路的数据传输信息表明所述当前的主时钟链路当前没有传输任何数据。
上述多链路主时钟切换装置,其中,所述选择模块包括:获取单元,设置为获取除所述当前的主时钟链路之外的多链路中的每条链路的数据传输信息;选择单元,设置为从除所述当前的主时钟链路之外的多链路中选择一条当前传输数据的链路作为新的主时钟链路。
上述多链路主时钟切换装置,其中,所述选择单元进一步设置为从所述当前的主时钟链路的下一条链路开始按照链路编号查找一条当前传输数据的链路作为新的主时钟链路。
本发明还提供了一种PTN设备,包括如上所述的多链路主时钟切换装置。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。
基于本发明实施例提供的上述技术方案,根据PTN网络中业务传输情况判断当前主时钟链路是否需要进行切换,并在需要切换时重新选择主时钟链路,从而避免了主时钟链路频繁切换造成业务传输质量降低的问题。
Claims (11)
- 一种多链路主时钟切换方法,该切换方法用于分组传送网络PTN设备,所述多链路属于同一时钟域,所述切换方法包括:根据所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断是否需要进行主时钟链路切换;当需要进行主时钟链路切换时,从除所述当前的主时钟链路之外的多链路中选择一条链路作为新的主时钟链路。
- 如权利要求1所述的切换方法,其中,所述判断是否需要进行主时钟链路切换具体为:根据每隔预设时间获取到的所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断所述当前的主时钟链路是否失效;当所述当前的主时钟链路连续失效的次数达到预设次数时,判定需要进行主时钟链路切换。
- 如权利要求2所述的切换方法,其中,所述抖动寄存器的状态信息包括:抖动寄存器上溢或抖动寄存器下溢,当满足下述条件中的任一条件时,判定所述当前的主时钟链路失效:所述抖动寄存器的状态信息为抖动寄存器上溢、所述抖动寄存器的状态信息为抖动寄存器下溢或所述当前的主时钟链路的数据传输信息表明所述当前的主时钟链路当前没有传输任何数据。
- 如权利要求1所述的切换方法,其中,所述从除所述当前的主时钟链路之外的多链路中选择一条链路作为新的主时钟链路包括:获取除所述当前的主时钟链路之外的多链路中的每条链路的数据传输信息;从除所述当前的主时钟链路之外的多链路中选择一条当前传输数据的链路作为新的主时钟链路。
- 如权利要求4所述的切换方法,其中,所述从除所述当前的主时钟链路之外的多链路中选择一条当前传输数据的链路作为新的主时钟链路具体为:从所述当前的主时钟链路的下一条链路开始按照链路编号查找一条当前传输数据的链路作为新的主时钟链路。
- 一种多链路主时钟切换装置,该切换装置用于分组传送网络PTN设备,所述多链路属于同一时钟域,所述切换装置包括:第一判断模块,设置为根据所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断是否需要进行主时钟链路切换;选择模块,设置为当需要进行主时钟链路切换时,从除所述当前的主时钟链路之外的多链路中选择一条链路作为新的主时钟链路。
- 如权利要求6所述的切换装置,其中,所述第一判断模块包括:第一判断单元,设置为根据每隔预设时间获取到的所述PTN设备中的抖动寄存器的状态信息及当前的主时钟链路的数据传输信息,判断所述当前的主时钟链路是否失效;第二判断单元,设置为当所述当前的主时钟链路连续失效的次数达到预设次数时,判定需要进行主时钟链路切换。
- 如权利要求7所述的切换装置,其中,所述抖动寄存器的状态信息包括:抖动寄存器上溢或抖动寄存器下溢,当满足下述条件中的任一条件时,判定所述当前的主时钟链路失效:所述抖动寄存器的状态信息为抖动寄存器上溢、所述抖动寄存器的状态信息为抖动寄存器下溢或所述当前的主时钟链路的数据传输信息表明所述当前的主时钟链路当前没有传输任何数据。
- 如权利要求6所述的切换装置,其中,所述选择模块包括:获取单元,设置为获取除所述当前的主时钟链路之外的多链路中的每条链路的数据传输信息;选择单元,设置为从除所述当前的主时钟链路之外的多链路中选择一条当前传输数据的链路作为新的主时钟链路。
- 如权利要求9所述的切换装置,其中,所述选择单元进一步设置为从所述当前的主时钟链路的下一条链路开始按照链路编号查找一条当前传输数据的链路作为新的主时钟链路。
- 一种分组传送网络PTN设备,包括如权利要求6-10任一项所述的多链路主时钟切换装置。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410362339.6A CN105306188A (zh) | 2014-07-23 | 2014-07-23 | 一种多链路主时钟切换方法、装置及 ptn 设备 |
CN201410362339.6 | 2014-07-23 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015117387A1 true WO2015117387A1 (zh) | 2015-08-13 |
Family
ID=53777205
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/089085 WO2015117387A1 (zh) | 2014-07-23 | 2014-10-21 | 一种多链路主时钟切换方法、装置及ptn设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105306188A (zh) |
WO (1) | WO2015117387A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112422425A (zh) * | 2020-10-10 | 2021-02-26 | 锐捷网络股份有限公司 | 一种线路确定方法、装置、网关设备和存储介质 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113141672B (zh) * | 2021-04-08 | 2023-03-17 | 成都极米科技股份有限公司 | 多链路系统中链路配置方法、设备、系统及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101980463A (zh) * | 2010-10-26 | 2011-02-23 | 中兴通讯股份有限公司 | 一种分组传送网中自适应时钟处理方法及装置 |
CN102487301A (zh) * | 2010-12-01 | 2012-06-06 | 中兴通讯股份有限公司 | 多链路时钟恢复方法及装置 |
CN103051493A (zh) * | 2012-12-13 | 2013-04-17 | 中兴通讯股份有限公司 | 业务时钟确定方法、装置及分组传送网设备 |
CN103297216A (zh) * | 2012-02-27 | 2013-09-11 | 中兴通讯股份有限公司 | 一种设备实现同步的方法和装置 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101640578A (zh) * | 2009-08-25 | 2010-02-03 | 北京邮电大学 | 一种用于分组传送网络的tdm业务时钟恢复方法 |
-
2014
- 2014-07-23 CN CN201410362339.6A patent/CN105306188A/zh not_active Withdrawn
- 2014-10-21 WO PCT/CN2014/089085 patent/WO2015117387A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101980463A (zh) * | 2010-10-26 | 2011-02-23 | 中兴通讯股份有限公司 | 一种分组传送网中自适应时钟处理方法及装置 |
CN102487301A (zh) * | 2010-12-01 | 2012-06-06 | 中兴通讯股份有限公司 | 多链路时钟恢复方法及装置 |
CN103297216A (zh) * | 2012-02-27 | 2013-09-11 | 中兴通讯股份有限公司 | 一种设备实现同步的方法和装置 |
CN103051493A (zh) * | 2012-12-13 | 2013-04-17 | 中兴通讯股份有限公司 | 业务时钟确定方法、装置及分组传送网设备 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112422425A (zh) * | 2020-10-10 | 2021-02-26 | 锐捷网络股份有限公司 | 一种线路确定方法、装置、网关设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN105306188A (zh) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7079554B2 (en) | System and method for synchronizing between communication terminals of asynchronous packets networks | |
JP4835422B2 (ja) | ネットワーク装置及び通信システム | |
CN1412977A (zh) | 在rpr网中传播故障信息的方法及相应rpr数据包 | |
US9515919B2 (en) | Method and apparatus for protection switching in packet transport system | |
EP2056526A1 (en) | A method for processing the resource information of the traffic engineering link | |
JP5455138B2 (ja) | 高精度時間プロトコルメッセージを処理するための方法およびクロックデバイス | |
WO2016173270A1 (zh) | 一种通信网络延时抖动平滑方法、装置及系统 | |
EP2466785A1 (en) | Method, optical communication device and system for processing information in optical network | |
CN101453308B (zh) | Ip时钟报文处理方法、设备及系统 | |
US8837531B2 (en) | Method and apparatus for resilient clock transfer over multiple DSL lines | |
US20070053372A1 (en) | Method for Realizing Automatic Synchronization of Timing Source in Networks | |
WO2015117387A1 (zh) | 一种多链路主时钟切换方法、装置及ptn设备 | |
US20030161344A1 (en) | Method and device for transporting ethernet frames over transport SDH/SONET network | |
US7983279B2 (en) | Method for configuring IP network resource and IP network | |
CN103138957A (zh) | 一种业务路径回切的方法、设备及系统 | |
US20100284425A1 (en) | System and method of using tdm variable frame lengths in a telecommunications network | |
EP1696639B1 (en) | Failure management and propagation in a telecommunication network | |
US20090219809A1 (en) | Redundant mux cnfiguration | |
WO2012071838A1 (zh) | 多链路时钟恢复方法及装置 | |
CN113965286B (zh) | Tsn时间窗口的检测判定方法和装置 | |
CN106059880B (zh) | 一种链路故障处理方法及装置 | |
US20020114316A1 (en) | Method and system for alignment of streaming data between circuit and packet domains of a communication system | |
US20020114321A1 (en) | Method and system for translating between circuit and packet identifiers for a communication connection | |
US8503458B1 (en) | Methods and apparatus for characterizing adaptive clocking domains in multi-domain networks | |
CA2610550A1 (en) | A method and system for providing via a data network information data for recovering a clock frequency |
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: 14881613 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 14881613 Country of ref document: EP Kind code of ref document: A1 |