利用Maxim時(shí)鐘IC實(shí)現(xiàn)主備時(shí)鐘卡冗余,Implement Master-Slave Timing-Card Redundancy Using Maxim Timing ICs
Abstract: Telecom equipment with SONET/SDH or Synchronous Ethernet ports must have very high reliability and fault tolerance. One requirement for these systems is dual, redundant timing cards in a master-slave arrangement. Timing ICs from Maxim Integrated Products not only handle important clock synchronization responsibilities, they also enable the timing card redundancy required for compliance with Stratum 3, G.813 and other telecom standards. This application note explains how to use Maxim timing ICs to implement dual, redundant timing functions in telecom equipment.
Introduction
This application note describes how to use Maxim timing ICs to implement dual, redundant timing functions in telecom equipment. Designing a system with redundant timing functions for fault tolerance is not merely a good design practice. For systems with clock quality of Stratum 4E or better it is a definite requirement. See Telcordia document GR-1244-CORE for details.In this document, the term "timing card" refers to a printed circuit board (PCB) that contains one complete, independent, system timing function such as a Maxim DS3100, DS3101, or DS3102 timing IC and its local TCXO or OCXO. Most timing cards are designed so that two identical units can operate in a master-slave arrangement in a multicard, backplane-connected system. At the levels of integration common today, these cards typically do much more than just system timing. Many cards have on board several other functions that also must be implemented with 1:1 equipment protection, such as system management processors, packet switches and TDM switches. Despite the multifunction nature of these cards, the traditional term "timing card" is used in this document.
Hardware Configuration
Connections Between Redundant Timing Cards
The wiring of the timing cards and the system backplane includes a dedicated clock signal from timing card A to timing card B, and a similar clock signal from timing card B to timing card A. See Figure 1.The frequency of the clock signals cross-wired between the timing cards depends on system requirements. In some systems, all line cards are required to have a common 8kHz frame alignment and/or 2kHz multiframe alignment. In these systems, the frequency of the cross-wired clock signals should be the lowest frequency at which phase alignment is required: 2kHz if multiframe alignment is necessary, 8kHz otherwise. In SDH/SONET systems that do not require frame and multiframe alignment, the frequency of the cross-wired clock signals is typically 6.48MHz or 19.44MHz. In systems with only Synchronous Ethernet ports and no SDH/SONET, a 25MHz frequency is often used.
Connections from Timing Cards to Line Cards
In addition to the cross-wired clock signals between redundant timing cards, one or more system clock signals from each of the timing cards are routed across the backplane to all line cards. Each line card has a line-card timing IC (such as the DS3104, DS3105, or DS3106) that can monitor both system clock signals and automatically switch from the master clock signal to the slave clock signal, if the master clock signal fails. See Figure 1.Two methods are in widespread use for routing clock signals from timing cards to line cards. The first method uses point-to-point wiring from each timing card to each line-card slot. This method requires more traces on the system backplane, but is the most fault tolerant. The second method is point-to-multipoint wiring from each timing card to the line-card slots. A multipoint version of low-voltage differential signaling called M-LVDS is often used for this. Systems built to comply with the ATCA or micro-TCA standards use M-LVDS to implement this second method, which requires fewer traces on the backplane.
Figure 1. Timing flow before master-slave switching
Initial Device Configuration
At system power-up one of the timing cards is arbitrarily chosen to be the master while the other is designated the slave.The master timing card IC is configured to be the system timing function. It is configured to have a specific priority list of input clocks to select from, an appropriate bandwidth for the application, phase-build-out-on-change-of-reference enabled (PBOEN=1) to provide hitless reference switching, and any other settings required to comply with the relevant telecom synchronization requirements.
The slave timing card IC is configured only to track the master. The only input clock pin enabled on the slave is the input connected to the master. The bandwidth of the slave is set at least 10x greater than the master's bandwidth so that the slave can quickly follow any phase movement in the master's clock signal. In addition, phase-build-out-on-change-of-reference is disabled (PBOEN=0) in the slave to ensure that the slave tracks the master with zero phase difference. These settings ensure that the clock signals from the master and slave timing cards are frequency locked and in phase at the line cards. This allows the line-card timing ICs to switch from the master clock signal to the slave clock signal quickly without causing phase changes on the line-card ports.
Master-Slave Switching Procedure
There are two causes of master-slave switching. The first cause is a failure of the master timing card that causes its output clock(s) to be off frequency by an unacceptable amount or to not toggle at all. The second cause is a management-initiated command to switch the roles of the master and slave timing cards.When a master timing card fails, the slave timing card IC detects the failure and automatically changes state from locked to holdover. This change instantly isolates its output clocks from the master clock signal that it had been tracking. If the master failure causes its output clock to stop toggling, all the line-card timing ICs detect the failure and automatically switch to the system clock signal from the slave timing card. If, instead, the master failure causes its clock to be off frequency, the slave timing IC can detect this. The line-card timing ICs, however, may not have frequency measurement capability. In this situation, system software can react to an interrupt from the slave timing IC and manually force all line-card timing ICs to switch to the system clock signal from the slave timing card.
If there is a management-initiated command to switch the roles of the master and slave timing cards, the master's clock is still valid and the slave timing card has no reason to automatically go to holdover. Therefore, system software must put the slave timing card IC into holdover manually by setting MCR1.T0STATE=2.
In all of the above cases, the end result is that the entire system is timed from the slave timing card IC in its holdover state. Because of the stability of the slave's local oscillator, the system can easily operate in this state for the short period of time required to reconfigure the timing ICs as follows:
- If not already done, force the slave timing IC into holdover (MCR1.T0STATE=2).
- If not already done, force all line-card timing ICs to lock to the slave clock instead of the master (use field MCR4.T0FORCE or the SRCSW pin).
- Disable all clock outputs on the master timing IC and force it into holdover (OCR1=0, OCR2=0, OCR3=0, OCR4=0, MCR1.T0STATE=2).
- Configure the slave timing IC with exactly the same configuration that the master had before, including input clock priorities, bandwidth, and PBOEN=1 for hitless switching.
- Configure the slave timing IC for automatic state transitions (MCR1.T0STATE=0) rather than forced holdover. The slave is now officially the new master. See Figure 2.
- If the line-card timing ICs normally do automatic switching between master and slave system clocks, enable automatic switching by setting T0FORCE=0 in each device.
Figure 2. Timing flow after master-slave switching.
With Maxim timing ICs on the timing cards and line cards, the entire process described in this section can be completed in milliseconds. The worst-case phase change on the system's output ports is typically less than 1ns.
評論
查看更多