WO2011157031A1 - Clock adjustment method and line card for synchronous digital hierarchy (sdh) system - Google Patents

Clock adjustment method and line card for synchronous digital hierarchy (sdh) system Download PDF

Info

Publication number
WO2011157031A1
WO2011157031A1 PCT/CN2010/079363 CN2010079363W WO2011157031A1 WO 2011157031 A1 WO2011157031 A1 WO 2011157031A1 CN 2010079363 W CN2010079363 W CN 2010079363W WO 2011157031 A1 WO2011157031 A1 WO 2011157031A1
Authority
WO
WIPO (PCT)
Prior art keywords
clock
line card
frame header
card
sdh
Prior art date
Application number
PCT/CN2010/079363
Other languages
French (fr)
Chinese (zh)
Inventor
彭成
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011157031A1 publication Critical patent/WO2011157031A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
    • H04J3/1605Fixed allocated frame structures
    • H04J3/1611Synchronous digital hierarchy [SDH] or SONET

Definitions

  • the present invention relates to an optical synchronous digital transmission technology, and in particular to a clock adjustment method and a line card for a Synchronous Digital Hierarchy (SDH) system.
  • SDH Synchronous Digital Hierarchy
  • clock switching and phase adjustment are important because the instability of the clock source affects the service.
  • the current clock chip generally integrates clock selection, clock adjustment, and clock output functions. It can complete the clock adjustment after clock switching, and then output the adjusted clock for use by other modules in the system.
  • FIG. 1 shows a schematic diagram of clock adjustment for an SDH system according to the related art.
  • the left side is the clock card (Clock Card), including the clock card 1 and the clock card 2, respectively providing two system clocks to the right line card (Linecard-N, there are 4 multi-line cards in the system need to use the clock,
  • the clock module 3 of one of the line cards performs clock selection and frequency multiplication and then outputs.
  • the two system clocks generated by the clock card 1 and the clock card 2 are respectively divided by the frequency dividing modules 1 and 2.
  • the system frame header 1 and the system frame header 2 are generated, and are also sent to the system frame header selection module 4 of the line card for selection.
  • the clock output from the clock module 3 passes through the system frame header regeneration module 5 to generate a regenerated frame header for use by the service processing on the line card.
  • the regenerative frame header exceeds a certain threshold of the selected system frame header, it will be adjusted by adjusting the system frame header after the regenerated frame header exceeds a certain threshold of the system frame header, and performing in the software background.
  • the phase of the clock is adjusted so that the regenerated frame header is realigned with the system frame header.
  • the clock card 1 and the clock card 2 respectively provide two system clocks to the clock module 3 of the Linecard-N line card for clock selection and multiplication, and the two system clocks are respectively divided by the frequency generation system.
  • Frame header 1 and system frame header 2 are also sent to the line card for selection.
  • the output clock will generate a regenerated frame header for use by the line processing on the line card.
  • the present invention proposes a clock adjustment method for an SDH system and a line card.
  • a clock adjustment method for a synchronous digital series SDH system comprising: a line card detecting a change in clock selection from a clock card; and a line card processing a clock using a low priority task Switch to switch the SDH system to the changed clock.
  • a line card for synchronizing a digital series SDH system comprising: a detecting module for detecting a change in clock selection from a clock card; and a switching module for using low The priority task handles the clock switch to switch the SDH system to the changed clock.
  • FIG. 1 is a schematic diagram showing clock adjustment for an SDH system according to the related art
  • FIG. 2 is a flow chart showing a clock adjustment method according to an embodiment of the present invention
  • the SDH system uses multiple clock cards to provide clocks to all line cards that carry services. Both clock cards and line cards can use embedded systems (ie, boards).
  • 2 is a flowchart of a clock adjustment method according to an embodiment of the present invention, including: Step S10, the line card detects that a clock selection from a clock card changes; and in step S20, the line card uses a low priority task. Handle clock switching to switch the SDH system to the changed clock.
  • the clock adjustment method sets the clock switching to the priority of the clock, so that the other tasks of the system can be preferentially executed, so that the clock switching does not preempt the CPU resources, and the problem that the clock switching will bring instability to the entire SDH system is achieved.
  • the SDH system smoothly switches the clock effect.
  • step S10 comprises: the line card detecting the clock selection from the clock card using a high priority task.
  • the preferred method sets the detection task to a high priority, so that the clock selection can be obtained as quickly as possible, so that the clock switching is ready as soon as possible.
  • the detection itself does not consume too much resources, so the preferred method does not affect the stability of the system.
  • the method before step S10, the method further includes: the line card creates a high priority task for detecting the clock selection at the time of power-on initialization, and sets a task of performing high priority periodically.
  • This setting method is simple and easy to perform, and the execution efficiency is high.
  • the method before step S10, before step S10, the method further comprises: creating, by the line card, a low priority task for processing clock switching during power-on initialization.
  • the line card creates a priority clock adjustment task and receives a clock switch command through a high-priority task for clock selection.
  • the high priority receive task timing detects the clock selection command from the clock module. If the clock selection has not changed, go directly to the next cycle detection cycle. If the clock selection has changed, set the system frame header, and select the clock after the current switch, and then hand it to the clock adjustment task of the processing priority to process and process The process requires a delay to ensure that the low-priority clock adjustment task does not take up CPU time for a long time during the clock adjustment process.
  • the method further includes: the line card generating a reproduction frame header from the switched clock, and selecting the line card from the plurality of system frame headers from the plurality of clock cards.
  • System frame header monitors the offset between the resulting regenerated frame header and the system frame header.
  • the method further includes: monitoring the offset exceeding the threshold; adjusting the phase of the clock of the SDH system, Reduce the offset.
  • This preferred method can implement clock synchronization of the SDH system.
  • the line card can monitor the offset between the current playback frame header and the system frame header after the clock is switched.
  • the phase of the output clock will be adjusted to reduce the offset between the two headers, otherwise no adjustment is required and exit.
  • the priority of the task for processing the priority of the clock switching is the lowest priority.
  • setting the clock switch to the lowest priority has the least impact on the SDH system, making the system more stable.
  • the following preferred embodiment combines the technical solutions of the foregoing embodiments, and corresponds to the Linecard-N, which may be a service processing module.
  • a cross-board is taken as an example, and a system frame header selection module and a clock adjustment module are provided on the cross-board.
  • Step 1 During the power-on process, create the clock adjustment process with the highest priority and 20MS timing. The initialization report is sent to the clock board to request the current clock selection signal, and the clock selection of the configuration cross board is initialized by the received clock board command.
  • Step 2 Receive the clock switch command sent by the clock board in real time. If the current clock selection of the cross board does not change, it will not be processed. If the clock selection changes, first set the clock system frame header selection, then set the clock selection, and then notify The lowest priority clock adjustment task is clocked.
  • the clock adjustment method can use the threshold control method: After the test finds that the offset is less than 60ns (nanoseconds) or more than 80ns, the error will occur, then you can set a high threshold of 75ns and a threshold of 65ns. If more than 75 ns or less than 65 ns is detected, the phase of the clock needs to be adjusted. Each adjustment is positive or negative, and the method of continuous loop adjustment is used until the offset of the frame header is found to be 65 ns. Between the 75ns threshold, the loop is exited, indicating that the entire clock adjustment is complete.
  • FIG. 3 is a block diagram showing a line card according to an embodiment of the present invention, including: a detecting module 10 for detecting a change in clock selection from a clock card; and a switching module 20 for processing with a low priority task Clock switching to switch the SDH system to the changed clock.
  • the line card sets the clock switch to a low priority, which ensures that the other tasks of the system are executed preferentially, so that the clock switching does not preempt the CPU resources, and the problem that the clock switching will bring instability to the entire SDH system is achieved.
  • the SDH system smoothly switches the clock effect.
  • the detection module detects the clock selection from the clock card using a high priority task. In this way, the clock selection can be obtained as quickly as possible, so that the clock switching is ready as soon as possible.
  • the method further includes: a system frame header regeneration module, configured to generate a reproduction frame header from the switched clock; and a system frame header selection module, configured to use multiple systems from the plurality of clock cards
  • the system header of the line card is selected in the frame header; the detecting module is configured to monitor the offset between the obtained regenerated frame header and the system frame header; and the adjustment module is configured to detect that the offset exceeds the threshold, Adjust the phase of the SDH system's clock to reduce the offset.
  • the preferred line card can implement clock synchronization of the SDH system.
  • the foregoing embodiments of the present invention can ensure that clock switching does not affect services, and that clock adjustment can be performed in the background after clock switching, thereby improving system operation efficiency, which can be said to ensure service transmission.
  • the reliability of the system increases the efficiency of the system.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.

Abstract

A clock adjustment method for a Synchronous Digital Hierarchy (SDH) system is disclosed in the present invention. The method includes that: a line card detects that a clock selection from clock cards changes; then the line card switches the clock by using a task with a low priority, in order to switch to the changed clock for the SDH system. A line card for an SDH system is also disclosed in the present invention. The present invention achieves the effect of smoothly switching the clock in the SDH system.

Description

用于同步数字系列系统的时钟调整方法和线卡 技术领域 本发明涉及光同步数字传输技术, 具体涉及用于同步数字系列 ( Synchronous Digital Hierarchy, 简称为 SDH )系统的时钟调整方法和线卡。 背景技术 在 SDH 通信系统中, 因为时钟源的不稳定会对业务造成影响, 所以时 钟切换和相位调整相当重要。 目前的时钟芯片, 一般都集成了时钟选择、 时 钟调整和时钟输出的功能, 能够完成由于时钟切换后的时钟调整, 然后输出 调整后的时钟, 提供给系统内的其他模块使用。 图 1示出了才艮据相关技术的用于 SDH系统的时钟调整示意图。 左侧为时钟卡 (Clock Card ), 包括时钟卡 1和时钟卡 2, 分别提供两路 系统时钟送给右侧的线卡(Linecard-N, 系统中有 4艮多线卡需要使用到时钟, 附图表示其中的一块线卡) 的时钟模块 3进行时钟选择和倍频然后输出, 另 夕卜, 时钟卡 1和时钟卡 2产生的两路系统时钟各自经过分频模块 1和 2的分 频, 产生系统帧头 1和系统帧头 2, 也送给线卡的系统帧头选择模块 4进行 选择。 时钟模块 3 输出的时钟经过系统帧头再生模块 5 会产生一个再生的帧 头, 供线卡上的业务处理使用。 如果该再生帧头超过选择后的系统帧头一定 的门限, 那么将对其进行调整, 调整方法为在再生帧头超过系统帧头一定门 限后, 使用系统帧头进行校正, 并在软件后台进行时钟的相位调整, 使得再 生帧头重新和系统帧头对齐。 上述过程中, 时钟卡 1 和时钟卡 2 分别提供两路系统时钟送给 ( Linecard-N ) 线卡的时钟模块 3 进行时钟选择和倍频后输出, 同时两路系 统时钟各自经过分频产生系统帧头 1和系统帧头 2, 也送给线卡进行选择。 输出的时钟会产生一个再生的帧头, 供线卡上业务处理使用。 如果该再生帧 头超过选择后的系统帧头的门限,那么将调整再生帧头重新和系统帧头对齐。 但是发明人发现, 对于一个大的 SDH 系统, 如果釆用这种方法, 一旦 发生时钟切换, 那么所有使用时钟的模块都会同时完成时钟切换, 这样会对 整个系统的业务造成冲击, 影响整个系统业务的稳定性。 发明内容 为了解决由于时钟切换对整个 SDH 系统带来的不稳定问题, 本发明提 出了一种用于 SDH系统的时钟调整方法和一种线卡。 才艮据本发明的一个方面, 提供了一种用于同步数字系列 SDH 系统的时 钟调整方法, 包括: 线卡检测到来自时钟卡的时钟选择发生变化; 线卡使用 低优先级的任务处理时钟切换, 以将 SDH系统切换到变化后的时钟。 才艮据本发明的另一方面, 提供了一种用于同步数字系列 SDH 系统的线 卡, 包括: 检测模块, 用于检测到来自时钟卡的时钟选择发生变化; 切换模 块, 用于使用低优先级的任务处理时钟切换, 以将 SDH 系统切换到变化后 的时钟。 上述时钟调整方法和线卡, 将时钟切换设置为氏优先级, 从而可以保证 系统其他任务的优先执行,使得时钟切换不会抢占 CPU资源, 解决了时钟切 换会对整个 SDH系统带来不稳定的问题, 进而达到了 SDH系统平稳切换时 钟的效果。 附图说明 图 1示出了根据相关技术的用于 SDH系统的时钟调整示意图; 图 2示出了才艮据本发明实施例的时钟调整方法的流程图; 图 3示出了才艮据本发明实施例的线卡的方框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an optical synchronous digital transmission technology, and in particular to a clock adjustment method and a line card for a Synchronous Digital Hierarchy (SDH) system. BACKGROUND OF THE INVENTION In an SDH communication system, clock switching and phase adjustment are important because the instability of the clock source affects the service. The current clock chip generally integrates clock selection, clock adjustment, and clock output functions. It can complete the clock adjustment after clock switching, and then output the adjusted clock for use by other modules in the system. FIG. 1 shows a schematic diagram of clock adjustment for an SDH system according to the related art. The left side is the clock card (Clock Card), including the clock card 1 and the clock card 2, respectively providing two system clocks to the right line card (Linecard-N, there are 4 multi-line cards in the system need to use the clock, The figure shows that the clock module 3 of one of the line cards performs clock selection and frequency multiplication and then outputs. In addition, the two system clocks generated by the clock card 1 and the clock card 2 are respectively divided by the frequency dividing modules 1 and 2. The system frame header 1 and the system frame header 2 are generated, and are also sent to the system frame header selection module 4 of the line card for selection. The clock output from the clock module 3 passes through the system frame header regeneration module 5 to generate a regenerated frame header for use by the service processing on the line card. If the regenerative frame header exceeds a certain threshold of the selected system frame header, it will be adjusted by adjusting the system frame header after the regenerated frame header exceeds a certain threshold of the system frame header, and performing in the software background. The phase of the clock is adjusted so that the regenerated frame header is realigned with the system frame header. In the above process, the clock card 1 and the clock card 2 respectively provide two system clocks to the clock module 3 of the Linecard-N line card for clock selection and multiplication, and the two system clocks are respectively divided by the frequency generation system. Frame header 1 and system frame header 2 are also sent to the line card for selection. The output clock will generate a regenerated frame header for use by the line processing on the line card. If the regenerated frame header exceeds the threshold of the selected system frame header, then the adjusted replay frame header is realigned with the system frame header. But the inventor found that for a large SDH system, if this method is used, once When a clock switch occurs, all modules that use the clock will complete the clock switch at the same time, which will impact the service of the entire system and affect the stability of the entire system. SUMMARY OF THE INVENTION In order to solve the problem of instability caused by clock switching to the entire SDH system, the present invention proposes a clock adjustment method for an SDH system and a line card. According to an aspect of the present invention, a clock adjustment method for a synchronous digital series SDH system is provided, comprising: a line card detecting a change in clock selection from a clock card; and a line card processing a clock using a low priority task Switch to switch the SDH system to the changed clock. According to another aspect of the present invention, a line card for synchronizing a digital series SDH system is provided, comprising: a detecting module for detecting a change in clock selection from a clock card; and a switching module for using low The priority task handles the clock switch to switch the SDH system to the changed clock. The clock adjustment method and the line card set the clock switching to the priority of the clock, so that the other tasks of the system can be preferentially executed, so that the clock switching does not preempt the CPU resources, and the clock switching is unstable to the entire SDH system. The problem, in turn, achieves the effect of the SDH system smoothly switching the clock. BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a schematic diagram showing clock adjustment for an SDH system according to the related art; FIG. 2 is a flow chart showing a clock adjustment method according to an embodiment of the present invention; FIG. A block diagram of a line card of an embodiment of the invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
SDH系统釆用多块时钟卡向承载业务的所有线卡提供时钟, 时钟卡和线 卡都可以釆用嵌入式系统 (即单板)。 图 2示出了才艮据本发明实施例的时钟调整方法的流程图, 包括: 步骤 S 10, 线卡检测到来自时钟卡的时钟选择发生变化; 步骤 S20, 线卡使用低优先级的任务处理时钟切换, 以将 SDH系统切换 到变化后的时钟。 该时钟调整方法将时钟切换设置为氏优先级, 从而可以保证系统其他任 务的优先执行, 使得时钟切换不会抢占 CPU资源, 解决了时钟切换会对整个 SDH系统带来不稳定的问题, 进而达到了 SDH系统平稳切换时钟的效果。 例如, 两路时钟卡的系统时钟经过分频产生系统帧头, 并实时给所有线 卡提供系统帧头选择, 并给线卡的时钟模块提供时钟选择。 时钟卡实时检测 时钟切换, 如果有时钟切换发生或者收到时钟选择请求命令, 则向线卡发送 时钟切换命令; 否则不发送。 SDH系统的所有线卡检测到时钟切换命令后, 均使用低优先级的任务处理时钟切换。 这样, 对于各个线卡来说, 执行时间 切换分别有不同的延时, 而不是同时执行, 从而避免了对大规模的 SDH 系 统的冲击。 优选地, 步骤 S 10包括: 线卡使用高优先级的任务检测来自时钟卡的时 钟选择。 该优选方法将检测任务设置为高优先级, 这样就可以最快地获取到 时钟选择,从而尽快地做好时钟切换的准备。 而检测本身并不消耗太多资源, 所以该优选方法对系统的稳定性不会构成影响。 优选地, 在上述的方法中, 步骤 S 10之前, 还包括: 线卡在上电初始化 时创建用于检测时钟选择的高优先级的任务, 并设置周期性地执行高优先级 的任务。 该设置方法简单易行, 而且执行效率高。 优选地, 在上述的方法中, 步骤 S 10之前, 还包括: 线卡在上电初始化 时创建用于处理时钟切换的低优先级的任务。 该设置方法简单易行, 而且执 行效率高。 例如, 上电初始化时, 线卡创建氏优先级的时钟调整任务, 并通过高优 先级的任务来接收时钟切换命令, 进行时钟选择。 高优先级的接收任务定时 检测来自时钟模块的时钟选择命令。 如果时钟选择没有发生变化, 则直接进 入下一个循环检测周期。 如果时钟选择发生了变化, 则设置系统帧头, 并选 择当前切换后的时钟, 再交给处理氏优先级的时钟调整任务来处理, 处理过 程需要延时, 可保证低优先级的时钟调整任务在时钟调整过程中不会长期占 用 CPU时间。 优选地, 在上述的方法中, 步 4聚 S20之后, 还包括: 线卡对来自切换后 的时钟产生再生帧头, 并从来自多个时钟卡的多个系统帧头中选择得到线卡 的系统帧头; 对得到的再生帧头和系统帧头之间的偏移量进行监测。优选地 , 在上述的方法中, 在对得到的再生帧头和系统帧头之间的偏移量进行监测之 后, 还包括: 监测到偏移量超出门限; 调整 SDH 系统的时钟的相位, 以减 小偏移量。 该优选方法可以实现 SDH系统的时钟同步。 例如, 线卡可以在时钟切换之后, 再对当前的再生帧头和系统帧头之间 的偏移量进行监测。 如果超出门限后, 将会调整输出时钟的相位, 从而减小 两个帧头间的偏移量, 否则不需要调整, 退出。 优选地, 在上述任一项的方法中, 用于处理时钟切换的氏优先级的任务 的优先级为最低优先级。 显然, 时钟切换设置为最低优先级对 SDH 系统的 影响会最小, 从而使得系统更加稳定。 下面的优选实施例综合了上述实施例的技术方案, 对应 Linecard-N, 可 以为业务处理模块, 这里以交叉板为例, 在交叉板上有系统帧头选择模块和 时钟调整模块。 对于交叉板, 具体实现步 4聚如下: 第一步: 上电过程中, 创建最氏优先级、 20MS 定时的时钟调整进程。 初始化上报给时钟板请求当前的时钟选择信号, 通过接收到的时钟板命令来 初始化配置交叉板的时钟选择。 第二步: 实时接收时钟板下发的时钟切换命令, 如果交叉板当前时钟选 择没有变化, 则不处理; 如果时钟选择发生变化, 那么首先设置时钟系统帧 头选择, 再设置时钟选择, 然后通知最低优先级的时钟调整任务进行时钟调 整。 时钟调整的方法可釆用门限控制的方法: 支设经过测试发现偏移量在小 于 60ns (纳秒) 或者大于 80ns会出现误码, 那么可以设置一个为 75ns的高 门限和一个 65ns的氐门限, 如果检测到大于 75ns或者小于 65ns时, 就需要 对时钟的相位进行调整, 每次调整幅度为正 1或者负 1 , 釆用不断循环调整 的方法, 直到发现帧头的偏移量在 65ns和 75ns门限之间, 才退出循环, 表 明整个时钟调整结束。 图 3示出了才艮据本发明实施例的线卡的方框图, 包括: 检测模块 10, 用于检测到来自时钟卡的时钟选择发生变化; 切换模块 20, 用于使用低优先级的任务处理时钟切换, 以将 SDH系统 切换到变化后的时钟。 该线卡将时钟切换设置为低优先级, 从而可以保证系统其他任务的优先 执行, 使得时钟切换不会抢占 CPU资源, 解决了时钟切换会对整个 SDH系 统带来不稳定的问题, 进而达到了 SDH系统平稳切换时钟的效果。 优选地, 检测模块使用高优先级的任务检测来自时钟卡的时钟选择。 这 样就可以最快地获取到时钟选择, 从而尽快地做好时钟切换的准备。 优选地, 在上述的线卡中, 还包括: 系统帧头再生模块, 用于对来自切换后的时钟产生再生帧头; 系统帧头选择模块, 用于从来自多个时钟卡的多个系统帧头中选择得到 线卡的系统帧头; 检测模块, 用于对得到的再生帧头和系统帧头之间的偏移量进行监测; 调整模块, 用于监测到偏移量超出门限时, 调整 SDH 系统的时钟的相 位, 以减小偏移量。 该优选线卡可以实现 SDH系统的时钟同步。 从以上的描述可以看出, 本发明上述实施例, 可以保证时钟切换不影响 业务, 并且让时钟调整可以在时钟切换之后在后台运行, 从而提高了系统运 行效率, 可以说是既保证了业务传输的可靠性, 又提高了系统运行效率。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 The SDH system uses multiple clock cards to provide clocks to all line cards that carry services. Both clock cards and line cards can use embedded systems (ie, boards). 2 is a flowchart of a clock adjustment method according to an embodiment of the present invention, including: Step S10, the line card detects that a clock selection from a clock card changes; and in step S20, the line card uses a low priority task. Handle clock switching to switch the SDH system to the changed clock. The clock adjustment method sets the clock switching to the priority of the clock, so that the other tasks of the system can be preferentially executed, so that the clock switching does not preempt the CPU resources, and the problem that the clock switching will bring instability to the entire SDH system is achieved. The SDH system smoothly switches the clock effect. For example, the system clock of the two clock cards is divided to generate the system frame header, and the system frame header selection is provided to all the line cards in real time, and the clock module of the line card is provided with a clock selection. The clock card detects the clock switching in real time. If a clock switch occurs or a clock selection request command is received, a clock switch command is sent to the line card; otherwise, it is not sent. After all the line cards of the SDH system detect the clock switching command, they use low priority tasks to handle clock switching. In this way, for each line card, the execution time switching has different delays instead of simultaneous execution, thereby avoiding the impact on the large-scale SDH system. Preferably, step S10 comprises: the line card detecting the clock selection from the clock card using a high priority task. The preferred method sets the detection task to a high priority, so that the clock selection can be obtained as quickly as possible, so that the clock switching is ready as soon as possible. The detection itself does not consume too much resources, so the preferred method does not affect the stability of the system. Preferably, in the above method, before step S10, the method further includes: the line card creates a high priority task for detecting the clock selection at the time of power-on initialization, and sets a task of performing high priority periodically. This setting method is simple and easy to perform, and the execution efficiency is high. Preferably, in the foregoing method, before step S10, the method further comprises: creating, by the line card, a low priority task for processing clock switching during power-on initialization. This setting method is simple and easy to perform, and the execution efficiency is high. For example, during power-on initialization, the line card creates a priority clock adjustment task and receives a clock switch command through a high-priority task for clock selection. The high priority receive task timing detects the clock selection command from the clock module. If the clock selection has not changed, go directly to the next cycle detection cycle. If the clock selection has changed, set the system frame header, and select the clock after the current switch, and then hand it to the clock adjustment task of the processing priority to process and process The process requires a delay to ensure that the low-priority clock adjustment task does not take up CPU time for a long time during the clock adjustment process. Preferably, in the foregoing method, after the step S20 is gathered, the method further includes: the line card generating a reproduction frame header from the switched clock, and selecting the line card from the plurality of system frame headers from the plurality of clock cards. System frame header; monitors the offset between the resulting regenerated frame header and the system frame header. Preferably, in the foregoing method, after monitoring the offset between the obtained regenerated frame header and the system frame header, the method further includes: monitoring the offset exceeding the threshold; adjusting the phase of the clock of the SDH system, Reduce the offset. This preferred method can implement clock synchronization of the SDH system. For example, the line card can monitor the offset between the current playback frame header and the system frame header after the clock is switched. If the threshold is exceeded, the phase of the output clock will be adjusted to reduce the offset between the two headers, otherwise no adjustment is required and exit. Preferably, in the method of any of the above, the priority of the task for processing the priority of the clock switching is the lowest priority. Obviously, setting the clock switch to the lowest priority has the least impact on the SDH system, making the system more stable. The following preferred embodiment combines the technical solutions of the foregoing embodiments, and corresponds to the Linecard-N, which may be a service processing module. Here, a cross-board is taken as an example, and a system frame header selection module and a clock adjustment module are provided on the cross-board. For the cross-connect board, the specific implementation steps are as follows: Step 1: During the power-on process, create the clock adjustment process with the highest priority and 20MS timing. The initialization report is sent to the clock board to request the current clock selection signal, and the clock selection of the configuration cross board is initialized by the received clock board command. Step 2: Receive the clock switch command sent by the clock board in real time. If the current clock selection of the cross board does not change, it will not be processed. If the clock selection changes, first set the clock system frame header selection, then set the clock selection, and then notify The lowest priority clock adjustment task is clocked. The clock adjustment method can use the threshold control method: After the test finds that the offset is less than 60ns (nanoseconds) or more than 80ns, the error will occur, then you can set a high threshold of 75ns and a threshold of 65ns. If more than 75 ns or less than 65 ns is detected, the phase of the clock needs to be adjusted. Each adjustment is positive or negative, and the method of continuous loop adjustment is used until the offset of the frame header is found to be 65 ns. Between the 75ns threshold, the loop is exited, indicating that the entire clock adjustment is complete. 3 is a block diagram showing a line card according to an embodiment of the present invention, including: a detecting module 10 for detecting a change in clock selection from a clock card; and a switching module 20 for processing with a low priority task Clock switching to switch the SDH system to the changed clock. The line card sets the clock switch to a low priority, which ensures that the other tasks of the system are executed preferentially, so that the clock switching does not preempt the CPU resources, and the problem that the clock switching will bring instability to the entire SDH system is achieved. The SDH system smoothly switches the clock effect. Preferably, the detection module detects the clock selection from the clock card using a high priority task. In this way, the clock selection can be obtained as quickly as possible, so that the clock switching is ready as soon as possible. Preferably, in the above line card, the method further includes: a system frame header regeneration module, configured to generate a reproduction frame header from the switched clock; and a system frame header selection module, configured to use multiple systems from the plurality of clock cards The system header of the line card is selected in the frame header; the detecting module is configured to monitor the offset between the obtained regenerated frame header and the system frame header; and the adjustment module is configured to detect that the offset exceeds the threshold, Adjust the phase of the SDH system's clock to reduce the offset. The preferred line card can implement clock synchronization of the SDH system. As can be seen from the above description, the foregoing embodiments of the present invention can ensure that clock switching does not affect services, and that clock adjustment can be performed in the background after clock switching, thereby improving system operation efficiency, which can be said to ensure service transmission. The reliability of the system increases the efficiency of the system. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any particular hardware and software. Combine. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种用于同步数字系列 SDH系统的时钟调整方法, 其特征在于, 包括: 线卡检测到来自时钟卡的时钟选择发生变化; A clock adjustment method for a synchronous digital series SDH system, comprising: the line card detecting that a clock selection from a clock card changes;
所述线卡使用 氏优先级的任务处理时钟切换,以将所述 SDH系统切 换到所述变化后的时钟。  The line card processes clock switching using a prioritized task to switch the SDH system to the changed clock.
2. 根据权利要求 1所述的方法, 其特征在于, 线卡检测到来自时钟卡的时 钟选择发生变化包括: 2. The method according to claim 1, wherein the line card detects that a change in clock selection from the clock card comprises:
所述线卡使用高优先级的任务检测来自所述时钟卡的时钟选择。  The line card uses a high priority task to detect clock selections from the clock card.
3. 根据权利要求 2所述的方法, 其特征在于, 在所述线卡检测到来自时钟 卡的时钟选择发生变化之前, 还包括: The method according to claim 2, wherein before the line card detects that the clock selection from the clock card changes, the method further includes:
所述线卡在上电初始化时创建用于检测时钟选择的所述高优先级的 任务, 并设置周期性地执行所述高优先级的任务。  The line card creates the high priority task for detecting clock selection at power up initialization and sets the high priority task to be performed periodically.
4. 根据权利要求 1所述的方法, 其特征在于, 在所述线卡检测到来自时钟 卡的时钟选择发生变化之前, 还包括: The method according to claim 1, wherein before the line card detects that the clock selection from the clock card changes, the method further includes:
所述线卡在上电初始化时创建所述用于处理时钟切换的氏优先级的 任务。  The line card creates the task for handling the priority of clock switching at power-on initialization.
5. 根据权利要求 1所述的方法, 其特征在于, 所述线卡使用低优先级的任 务处理时钟切换, 以将所述 SDH系统切换到所述变化后的时钟之后, 还 包括: The method according to claim 1, wherein the line card uses a low priority task to process a clock switch to switch the SDH system to the changed clock, and further includes:
所述线卡对来自切换后的时钟产生再生帧头, 并从来自多个所述时 钟卡的多个系统帧头中选择得到所述线卡的系统帧头;  The line card generates a reproduction frame header from the switched clock, and selects a system frame header of the line card from a plurality of system frame headers from the plurality of the clock cards;
对得到的所述再生帧头和所述系统帧头之间的偏移量进行监测。  An offset between the resulting regenerated frame header and the system frame header is monitored.
6. 根据权利要求 5所述的方法, 其特征在于, 所述对得到的所述再生帧头 和所述系统帧头之间的偏移量进行监测之后, 还包括: The method according to claim 5, wherein, after monitoring the obtained offset between the regenerated frame header and the system frame header, the method further includes:
监测到所述偏移量超出门限;  Monitoring that the offset exceeds a threshold;
调整所述 SDH系统的时钟的相位, 以减小所述偏移量。 The phase of the clock of the SDH system is adjusted to reduce the offset.
7. 根据权利要求 1-6任一项所述的方法, 其特征在于, 所述用于处理时钟 切换的低优先级的任务的优先级为最低优先级。 The method according to any one of claims 1-6, wherein the priority of the low priority task for processing clock switching is the lowest priority.
8. —种用于同步数字系列 SDH系统的线卡, 其特征在于, 包括: 8. A line card for synchronizing a digital series SDH system, comprising:
检测模块, 用于检测来自时钟卡的时钟选择变化;  a detecting module, configured to detect a clock selection change from the clock card;
切换模块, 用于使用低优先级的任务处理时钟切换, 以将所述 SDH 系统切换到所述变化后的时钟。  And a switching module, configured to process a clock switch using a low priority task to switch the SDH system to the changed clock.
9. 根据权利要求 8所述的线卡, 其特征在于, 所述检测模块, 用于使用高 优先级的任务检测来自所述时钟卡的时钟选择。 9. The line card of claim 8, wherein the detection module is configured to detect a clock selection from the clock card using a high priority task.
10. 居权利要求 8所述的线卡, 其特征在于, 还包括: 10. The line card of claim 8, further comprising:
系统帧头再生模块, 用于对来自切换后的时钟产生再生帧头; 系统帧头选择模块, 用于从来自多个所述时钟卡的多个系统帧头中 选择得到所述线卡的系统帧头;  a system frame header regeneration module, configured to generate a reproduction frame header from the switched clock; a system frame header selection module, configured to select a system for obtaining the line card from a plurality of system frame headers from the plurality of clock cards Frame header
检测模块, 用于对得到的所述再生帧头和所述系统帧头之间的偏移 量进行监测;  a detecting module, configured to monitor an offset between the obtained regenerated frame header and the system frame header;
调整模块, 用于监测到所述偏移量超出门限时, 调整所述 SDH系统 的时钟的相位, 以减小所述偏移量。  And an adjustment module, configured to adjust a phase of a clock of the SDH system to reduce the offset when the offset exceeds a threshold.
PCT/CN2010/079363 2010-06-13 2010-12-01 Clock adjustment method and line card for synchronous digital hierarchy (sdh) system WO2011157031A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010205309.6 2010-06-13
CN201010205309.6A CN101882967B (en) 2010-06-13 2010-06-13 Clock adjustment method and line card for synchronous digital hierarchy (SDH) system

Publications (1)

Publication Number Publication Date
WO2011157031A1 true WO2011157031A1 (en) 2011-12-22

Family

ID=43054875

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079363 WO2011157031A1 (en) 2010-06-13 2010-12-01 Clock adjustment method and line card for synchronous digital hierarchy (sdh) system

Country Status (2)

Country Link
CN (1) CN101882967B (en)
WO (1) WO2011157031A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882967B (en) * 2010-06-13 2015-06-10 中兴通讯股份有限公司 Clock adjustment method and line card for synchronous digital hierarchy (SDH) system
CN113285779B (en) * 2020-02-20 2022-09-16 华为技术有限公司 Communication equipment and clock synchronization method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1064956A (en) * 1991-02-25 1992-09-30 国际商业机器公司 The method of processor controls clock signal and information handling system
CN1248841A (en) * 1998-08-26 2000-03-29 富士通株式会社 Clock management method and transmission equipment for synchronous network system
JP2003051831A (en) * 2001-05-30 2003-02-21 Mitsubishi Electric Corp Clock synchronism control system
CN101615965A (en) * 2009-07-13 2009-12-30 中兴通讯股份有限公司 The reverse method of active/standby clock and device
CN101882967A (en) * 2010-06-13 2010-11-10 中兴通讯股份有限公司 Clock adjustment method and line card for synchronous digital hierarchy (SDH) system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4030880B2 (en) * 2003-01-07 2008-01-09 Necインフロンティア株式会社 Synchronization clock supply system and synchronization clock supply method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1064956A (en) * 1991-02-25 1992-09-30 国际商业机器公司 The method of processor controls clock signal and information handling system
CN1248841A (en) * 1998-08-26 2000-03-29 富士通株式会社 Clock management method and transmission equipment for synchronous network system
JP2003051831A (en) * 2001-05-30 2003-02-21 Mitsubishi Electric Corp Clock synchronism control system
CN101615965A (en) * 2009-07-13 2009-12-30 中兴通讯股份有限公司 The reverse method of active/standby clock and device
CN101882967A (en) * 2010-06-13 2010-11-10 中兴通讯股份有限公司 Clock adjustment method and line card for synchronous digital hierarchy (SDH) system

Also Published As

Publication number Publication date
CN101882967B (en) 2015-06-10
CN101882967A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
RU2583847C2 (en) Method and apparatus for clock synchronisation
US10149025B2 (en) Optical packet sending method and device, optical packet processing method, and optical switching device
JP2012118635A5 (en)
US20110305165A1 (en) Method and system for physical-layer handshaking for timing role transition
EP3160094B1 (en) Routing node, optical switching network and optical signal transmission method
US20220224653A1 (en) Packet Forwarding Method, Device, and System
WO2011137797A1 (en) Method and system for data transmission in ethernet
EP2993914A1 (en) Data transmission method, device and system
JP2008167054A (en) Optical transmission system
WO2011157031A1 (en) Clock adjustment method and line card for synchronous digital hierarchy (sdh) system
WO2015007140A1 (en) Control method, device and optical transceiver
JP5241483B2 (en) Termination communication device and power saving mode switching method
US9792193B2 (en) Method and system for processing data conflict
JP5356963B2 (en) Serial parallel conversion circuit
JP2007189326A (en) Optical transmission system
WO2017215373A1 (en) Output clock generating method and apparatus
JP2011128989A (en) Data processing apparatus, data processing method, and program
US20160020913A1 (en) Method for power saving in optical access network by using synchronized sleep cycle
CN114039909B (en) Method for realizing rapid real-time spanning tree protocol
JP5089780B2 (en) Communication device, communication system, and slave station device
WO2013044643A1 (en) Packet service bus switching method, system and data exchange communication device
JP2023554065A (en) Method and apparatus for selecting a clock source
JP5725446B2 (en) Distributed parallel program execution system and method
WO2012159409A1 (en) Frame delimiting method and device for dynamic rate data service
WO2011026374A1 (en) Route determination method and device

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: 10853139

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: 10853139

Country of ref document: EP

Kind code of ref document: A1