Cisco Voice Switch Service Module (VXSM) Configuration Guide, Release 5.2
Media Gateway Clocking

Table Of Contents

Media Gateway Clocking

Clocking Basics

Clock Configuration

lDisplaying Clock Configuration

Clocking Guidelines

Qualifying a Clock Source

Switching to an Alternative Clock Source


Media Gateway Clocking


Clocking Basics

Network Clocking is a means by which a clock signal is generated or derived and distributed through a node for the purpose of insuring synchronized network operation. Clocking and its configuration is at the gateway (or node) level. As such the clocking functions in an MGX 8850 Media Gateway reside in the PXM 45 card.

The MGX 8850 supports the following types of internal and external clock sources.

A BITS (Building Internal Timing Source) clock. This type is an external clock source connected to one of two RJ-48 type female connectors on the PXM-UI-S3 back card (see Figure A-1).

A SETS (Synchronous Equipment Timing Source) clock. This type is an external clock source connected to one of two RJ-48 type female connectors on the PXM-UI-S3 back card (see Figure A-1).

An external clock source derived from a service module line (for example, a VXSM line).

An internal clock source consisting of a Stratum 3 clock circuit in the internal clock oscillator on the PXM back card - PXM-UI-S3.This clock source is distributed to all cards in the gateway.

If possible, the recommended clock source for a VXSM based MGX 8850 media gateway is BITS.


Note The two RJ-48 connectors for clock input are indicated as "4" in Figure A-1. One is labeled EXT CLK 1 and the other as EXT CLK 2. Each connector has an associated LED which is lit green when the clock source is active. If the LED is not lit, the clock source is either inactive or not in use.


From the above list of possible clock source types, the gateway can accept two clock sources. One source is designated as primary and is mandatory, the second source is designated a secondary and is optional. If a primary source fails, the secondary takes over.

If neither a primary or secondary source is specified, the default primary source becomes the Stratum 3 internal clock source (Free-running). Likewise, if no secondary is specified, the default secondary becomes the Stratum 3 internal clock source.

Figure A-1 PXM 45 UI S3 Back Card Connectors

Clock Configuration

Use the following steps to configure the clocking on an MGX 8850 Media Gateway.


Step 1 Telnet onto the gateway, check that you are logged into the active PXM 45 card.

Step 2 Use the cnfclksrc command to configure the primary clock source.

The syntax of this command is:

cnfclksrc <priority> <portid>[ -bits { e1|t1 } ][ -revertive { enable|disable } ]

where:

priority This is either primary or secondary (default=primary)

portid The specification of the port ID depends upon the selected clock source.

If he BITS clock source is selected portid is specified as:

[shelf.]slot.port

shelf —always 1 and is purely optional.

·slot—the logical slot number 7 for a BITS circuit on the PXM UI S3 (regardless of where the active PXM resides).

·port—a logical number that indicates the upper or lower external clock connector on

the UI S3 back card. The logical port number for the upper connector is 35. The lower connector is 36.

If a VXSM is selected as the source, portid is specified as:

[shelf.]slot:subslot.port:subport

shelf—always 1 and is purely optional.

·slot —the slot number of the service module.

·subslot —identifies the upper or lower bay of the back card, either a 1 for the upper bay or 2 for the lower bay (default is 1).

·port— is the line number on the service module back card plus 10. The specified line must already be active (see upln).

·subport— is the logical port number plus 10. This value is the logical port (or ifNum) that you must have assigned through addport. Also, the logical port must be known to PNNI (see dsppnports).


Note When specifying a clock source on a VXSM card, the value "10" must be added to both the line and logical port numbers. For example, a primary clock source on a VXSM in slot 3, upper shelf, line 1, logical port 1 would be specified as:

cnfclksrc primary 3:1.11:11


·bits This keyword parameter is required if slot number 7 and port number of 35 or 36 are specified in portid (indicating BITS as the clock source) Type the string "-bits" followed by a space then either "e1" or "t1."

·revertive an option that applies to only the BITS clock. Type the string "-revertive" followed by the complete word "enable" or "disable." The default is disable.

Step 3 Use the cnfclksrc command again to configure the secondary clock source.

Step 4 Use the cnfclkparms command to configure the signal type and cable type for BITS sources (if applicable). The configuration applies to both (upper and lower) lines.

The syntax of this command is:

cnfclkparms <signal type> <cable type>

where:

signal type - [1-2]; 1 - data; 2 - syn (this parameter is not supported in this release)

cable type - [1-2]; 1 - twisted; 2 - coax


Note E1 lines can be either twisted pair or coaxial cable. T1 lines must always be specified as twisted pair.



Below is an example of a sequence of clock configuration commands.

8850japan.7.PXM.a > cnfclksrc primary 7.35 -bits t1 -revertive enable
8850japan.7.PXM.a > cnfclksrc secondary 7.36 -bits t1 -revertive enable
8850japan.7.PXM.a > cnfclkparms 1 1 

lDisplaying Clock Configuration

On the PXM card, use the dspclksrcs command to display the clocking configuration.

8850japan.7.PXM.a > dspclksrcs
Primary clock type:     bits t1
Primary clock source:   7.35
Primary clock status:   bad
Primary clock reason:   no clock
Secondary clock type:   bits t1
Secondary clock source: 7.36
Secondary clock status: bad
Secondary clock reason: no clock
Active clock:           internal
source switchover mode: revertive

On the VXSM card, use the dspln command to display clocking on a VXSM line. The values are loopclock (when clock is derived from a VXSM line) or local (when derived from BITS).

M8850_NY.3.VXSM.a > dspln 1.4              
======================================================
             Sonet Line Information
======================================================
Sonet Line             :                1.4
Medium Type            :                sonet
Interface Name         :                sonet.3.1.4
Admin Status           :                down
Operational Status     :                down
Time Elapsed(seconds)  :                0
Valid Intervals        :                0
Invalid Intervals      :                0
Line Type              :                sonetSts3
Loopback Config        :                lineLocal
Transmit Clock Source  :                localTiming
Frame Scramble         :                disabled
RDIV Type              :                onebit
RDIP Type              :                onebit
Section Transmit Trace :                000000000000000000000000000000000000000a
Section Expect Trace   :                000000000000000000000000000000000000000a
Section Trace Failure  :                false
Section Received Trace :                000000000000000000000000000000000000000a
archer.5.VXSM.a > dspln 1.1
======================================================
               DS1/E1 Line Information
======================================================
DS1/E1 Line            :      1.1
Interface Name         :      ds1.5.1.1
Admin Status           :      up
Operational Status     :      up
Time Elapsed(seconds)  :      256
Type                   :      dsx1ESF
Send Code              :      none
Loopback Config        :      dsx1NoLoop
Signal Mode            :      none
Transmit Clock Source  :      localTiming
Line Coding            :      dsx1B8ZS
Line length (m)        :      0
Line Mode              :      csu
Line Build Out         :      zerodB
Loopback State         :      NoLpbk
Trunk Condition Enable :      false
Loopback Code Detection:      false
Status                 :      NoAlarm 

Clocking Guidelines

The network should have the least possible number of independent clock sources. The best arrangement is to have one network clock source that is distributed to all nodes in the network.

There can only be one clock source per VXSM card.

Different VXSM cards, in the same chassis or different chassis, that are part of the same network should get their clocks from sources traceable to the same reference source.

Do not use separate clock sources unless you can confirm that they will remain closely phase locked. This prevents large changes in clock phase when a clock interface switchover occurs. It is best to take two separate feeds from the same clock source or same clock distribution system.

Preferred clock sources for a VXSM equipped media gateway are:

An external clock from the same source that the switch is connected to (BITS)

An external clock from the switch (dedicated source or T1/E1 line)

Prevent reflections that can produce noise. These are usually caused by:

Unterminated connections

Cables with long legs on the Y connections


Note MGX systems are designed to work with Y cables. The backup UI interface is always unterminated until it becomes the primary. This mode of operation insures that only one of the legs of a Y cable is terminated preventing both terminations from being on at the same time. If both terminations are on at the same time, the termination resistance (impedance) becomes half its expected value.


Too many connectors in the line path

Use good quality wiring techniques for clock source cables. Use shielded UTP if possible, UTP at a minimum, for balanced (100 or 120 ohm) cables. Make sure you have good grounds on the unbalanced coax clock cables. Keep clock cables as short as possible.

Clocking problems typically cause Packet Errors, HEC (Header Error Check) errors, PLCP (Physical Layer Convergence Protocol) errors, or frame-sync errors. The error depends upon the type of trunk interface used.

Clock slips on voice circuits can result in dropped calls, "hissing", "scratchiness", echo problems, etc.

Qualifying a Clock Source

When a primary clock source is configured it is qualified by sampling the clock for its frequency at 1 sample per second and analyzing 24 batches each consisting of 16 samples. For a clock to be qualified as a "narrow-band compliant" source, all 16 samples in a batch must have a frequency of within ±4.66 parts per million. Once a clock source is qualified, it is deemed LOCKABLE.

A primary LOCKABLE clock source is monitored at one second intervals to ensure that it continues to be qualified. A clock source configured as secondary, is also qualified as LOCKABLE but it is not monitored (unless it becomes the primary source).

A clock source is considered bad if there is a loss-of-activity/loss-of-signal or it becomes UNLOCKABLE. When the active clock source is detected bad, the active clock source is switched to an alternative good clock source.

Switching to an Alternative Clock Source

Table A-1 summarizes the choice of the alternative clock source:

Table A-1 Next Active Clock Source 

Configuration

Current Active Clock Source

Next Active Clock Source

Only Primary

Primary

Holdover if enough samples available. Otherwise, Free-running (internal local oscillator).

Primary and Secondary

Primary

Secondary.

Secondary

Holdover if enough samples available. Otherwise, Free-running.

Holdover (stored samples)

Free-running.

Free-running

None.


The decisions to switch from a bad clock source to an alternative clock source depend on the current active clock source, the nature of failure and the configuration.

Basically there are three major situations.

Only a primary clock source is configured.

A primary and secondary clock source are configured with auto-revertive mode enabled.

A primary and secondary clock source are configured with auto-revertive mode disabled.


Note Auto-revertive mode monitors the failed primary clock source and automatically reverts to that source if it recovers and becomes qualified. The auto-revertive mode is available only if the primary clock source is configured to be an external BITS clock source.


Table A-3 summarizes failure scenarios and recovery actions taken when only a primary clock source is configured:

Table A-2 Clock Failure and Recovery- Primary Source Only 

Clock Source Failure
Actions

Primary is the Active clock source and is in LOA/LOS

Raise minor alarm to indicate that primary clock source is lost.

Switch to Holdover if enough samples available.

Switch to free-running if enough samples are not available.

Raise major alarm to indicate that the node's clock is in holdover or free-running mode.

Continue to monitor primary.

Once it is out of LOA/LOS, switch to free-running, if it is in holdover mode. Then, re-qualify the primary and revert to the primary when becomes LOCKABLE and clear the alarms.

Primary clock source is the Active clock source and it becomes UNLOCKABLE

Raise minor alarm to indicate that the primary clock is lost.

Switch to free-running.

Raise major alarm to indicate that the clock is in free-running mode.

NOTE: The primary clock source will be monitored. If it becomes lockable, the primary clock source will be the active clock source This behavior is possible in Release 4.0 and above

Holdover mode time expires (beyond 24 hours)

Switch to free-running.

Continue to monitor the primary clock source. Once it goes out of LOA/LOS, re-qualify the primary clock source and switch to the primary when it becomes LOCKABLE and clear the alarms.

In Free-running mode, local oscillator fails.

TBD: Should raise a critical alarm.

NOTE: This may cause a traffic outage if this happens on the Active PXM. Manual PXM switchover is necessary to recover from the outage. If this happens on the Standby PXM, failure/manual switchover to the Standby PXM may cause an outage.


Table A-3 summarizes failure scenarios and recovery actions taken when both a primary clock sources are configured with Auto-revertive enabled

Table A-3 Clock Failure and Recovery, Primary/Secondary - Revertive enabled 

Clock Source Failure
Actions

Primary clock source is the active clock source and it goes into LOA/LOS

Raise minor alarm to indicate the primary clock source is lost.

Switch to secondary clock source if it is not in LOA/LOS and is LOCKABLE. The secondary clock source becomes the active clock source.

Switch to Holdover mode if secondary clock source is not available, and there are enough clock samples collected from the primary clock source.

Switch to Free-running mode and use the internal oscillator if neither the secondary clock source is available nor switching to Holdover mode is possible.

Raise major alarm if the clock is in holdover or free-running mode.

Once the primary goes out of LOA/LOS, switch to free-running, raise major alarm to indicate that the clock is in free-running mode and start re-qualifying the primary clock source. Switch to the primary once it becomes LOCKABLE after the re-qualification procedure and clear the alarms.

Primary clock source is the active clock source and it goes OUT-OF-LOCK, i.e., the frequency of the clock sample goes out of range of ±4.66 ppm.

Raise minor alarm to indicate that the primary clock is lost.

Continue monitor the primary clock source.

If 12 out of 16 samples have the frequency with in the range of ±4.66 ppm, declare it LOCKABLE again and clear the alarm.

Otherwise, if more than 6 samples have the frequency with in the range of ±4.66 ppm, declare it UNLOCKABLE and start the re-qualification process. During this re-qualification, switch to the secondary or the free-running, if secondary is not available. Raise major alarm if it is in free-running mode. Once the re-qualification process is complete and the primary is LOCKABLE, revert to the primary, else, declare the primary UNLOCKABLE.

Otherwise (if there only less than 6 samples having the frequency with in the ±4.66 ppm), declare the primary UNLOCKABLE.

Primary clock source is the active clock source and it becomes UNLOCKABLE after re-qualification in OUT-OF-LOCK state failed.

NOTE: The primary clock source becomes OUT-OF-LOCK before becoming UNLOCKABLE. If it became UNLOCKABLE after re-qualification, the active clock should have been already switched to the secondary or the free-running mode.

NOTE: The primary clock source will be monitored/qualified and there will be switchover to the primary clock source if the clock source is good.

Primary clock source is the active clock source and it becomes UNLOCKABLE because the number of samples with frequency with in ±4.66 ppm out of the 16 collected samples is less than 6.

NOTE: In this case, the active clock source is still the primary and is in the OUT-OF-LOCK state.

Switch to secondary clock source if it is not in LOA/LOS and is LOCKABLE. The secondary clock source becomes the active clock source.

Switch to Free-running mode and use the internal oscillator if the secondary clock source is not available.

Raise major alarm if the clock is in free-running mode.

Secondary clock source is the active clock source and it goes into LOA/LOS.

Raise minor alarm to indicate that secondary clock source is lost.

Switch to holdover mode if there are enough samples.

Switch to Free-running if there are not enough samples to switch to holdover mode.

Raise major alarm to indicate that the active clock is either holdover or free-running mode.

Switch back to the primary or the secondary once one of them becomes available.

Secondary clock source is the active clock source and it goes OUT-OF-LOCK, i.e., the frequency of the clock sample goes out of ±4.66 ppm range.

Raise minor alarm to indicate that the secondary clock is lost.

Continue monitor the secondary clock source.

If 12 out of 16 samples have the frequency with in the range of ±4.66 ppm, declare it LOCKABLE again and clear the alarm.

Otherwise, if more than 6 samples have the frequency with in the range of ±4.66 ppm, declare it UNLOCKABLE and start the re-qualification process. During this re-qualification, switch to the free-running mode. Raise major alarm to indicate that it is in free-running mode. Once the re-qualification process is complete and the secondary is LOCKABLE, revert to the secondary, else, declare the secondary UNLOCKABLE.

Otherwise (if there only less than 6 samples having the frequency with in the ±4.66 ppm), declare the secondary UNLOCKABLE.

Secondary clock source is the active clock source and it becomes UNLOCKABLE after re-qualification in OUT-OF-LOCK state failed.

NOTE: The secondary clock source becomes OUT-OF-LOCK before becoming UNLOCKABLE. If it became UNLOCKABLE after re-qualification, the active clock should have been already switched to the free-running mode.

NOTE: The primary and the secondary clock sources will no longer be monitored/qualified and there will be no switchover to the secondary or the primary clock source. The clock sources needs to be manually reconfigured to initiate the switchover to the primary or the secondary clock source.

Secondary clock source is the active clock source and it becomes UNLOCKABLE because the number of samples with frequency with in ±4.66 ppm out of the 16 collected samples is less than 6.

NOTE: In this case, the active clock source is still the secondary and is in the OUT-OF-LOCK state.

Switch to Free-running mode and use the internal oscillator.

Raise major alarm to indicate that the clock is in free-running mode.

NOTE: The primary and secondary clock sources will no longer be monitored/qualified and there will be no switchover to the primary or the secondary clock source. The clock sources needs to be manually reconfigured to initiate the switchover to the primary or the secondary clock source.

Holdover expires (more than 24 hours since clock source is switched to the holdover mode)

Raise major alarm.

Switch to free-running mode.

In Free-running mode, local oscillator fails.

TBD: Should it raise critical alarm?

NOTE: This may cause a traffic outage if this happens on the Active PXM. Switchover to Standby PXM should be initiated manually to recover from the outage. If this happens on the Standby PXM, failure/manual switchover to the Standby PXM may cause an outage.


Table A-4 summarizes failure scenarios and recovery actions taken when both a primary clock sources are configured with Auto-revertive disabled

Table A-4 Clock Failure and Recovery, Primary/Secondary - Revertive disabled  

Clock Source Failure
Actions

Primary clock source is the active clock source and it goes into LOA/LOS.

Raise minor alarm to indicate that primary clock source is lost.

Switch to secondary clock source if it is not in LOA/LOS and is LOCKABLE. The secondary clock source becomes the active clock source.

Switch to Holdover mode if secondary clock source is not available, and there were enough clock samples collected from the primary clock source.

Switch to Free-running mode and use the internal oscillator if neither the secondary clock source is available nor switching to Holdover mode is possible.

Raise major alarm if the active clock is in holdover or free-running mode.

Once the primary comes out of LOA/LOS, initiate the re-qualification of the primary. If the active clock source is in holdover or free-running mode, then, switch to the primary once the re-qualification process is complete and is LOCKABLE.

Primary clock source is the active clock source and it goes to OUT-OF-LOCK state, i.e., the frequency of the clock sample goes out of ±4.66 ppm range.

Raise minor alarm to indicate that the primary clock is lost.

Continue monitor the primary clock source.

If 12 out of 16 samples have the frequency with in the range of ±4.66 ppm, declare it LOCKABLE again and clear the alarm.

Otherwise, if more than 6 samples have the frequency with in the range of ±4.66 ppm, declare it UNLOCKABLE and start the re-qualification process. During this re-qualification, switch to the secondary or the free-running, if secondary is not available. Raise major alarm if it is in free-running mode. Once the re-qualification process is complete and the primary is LOCKABLE, revert to the primary if the active clock source is in free-running mode. If the primary is not LOCKABLE, declare the primary UNLOCKABLE.

Otherwise (if there only less than 6 samples having the frequency with in the ±4.66 ppm), declare the primary UNLOCKABLE.

Primary clock source is the active clock source and it becomes UNLOCKABLE

Raise the alarm.

Switch to secondary clock source if it is not in LOA/LOS and LOCKABLE. The secondary clock source becomes the active clock source.

Switch to Free-running mode and use the internal oscillator if the secondary clock source is not available.

Secondary clock source is the active clock source and it goes into LOA/LOS

Raise the alarm.

Switch to Free-running.

Switch back to the primary or the secondary once one of them becomes available.

Secondary clock source is the active clock source and it becomes UNLOCKABLE

Raise the alarm.

Switch to Free-running.

Switch back to the primary or the secondary once one of them becomes available.

In Free-running mode, local oscillator fails

Raise the alarm.

NOTE: This may cause a traffic outage if this happens on the Active PXM and the PXM switchover is not initiated manually. If this happens on the Standby PXM, failure/manual switchover to the Standby PXM may cause an outage.