cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6067
Views
13
Helpful
42
Replies

configure GPS sync on ASR9006

Thijs Van Severen
Cisco Employee
Cisco Employee

Hi All,

 

i'm trying to set up timesync on my ASR9006 using GPS signals

i have connected the 1MHz + 1pps signals to the ASR, and i have followed these instructions (found here) to select these signals as clock source

RP/0/RSP0/CPU0:router# configure
RP/0/RSP0/CPU0:router(config)# clock-interface sync 2 location 0/rsp0/cpu0
RP/0/RSP0/CPU0:router(config-clock-if)# port-parameters
RP/0/RSP0/CPU0:router(config-clk-parms)# gps-input tod-format cisco pps-input rs422

i dont get any error message, but other than that i'm pretty much lost ...

there seems to be very little info available on the www about NTP sync using GPS signals

all tips are welcome !

 

grtz

Thijs

42 Replies 42

ha no kidding, yeah the radioshacks are falling over one after the other, I miss them too!!! :)

today, you need 1pps, 10mhz and tod together for the gps interface to be perceived as a valid input.

it is a mini-din bnc type connector, there had been a discussion on the forums on that here also whereby someone identified the precise conversion connector to use.

Maybe you find it before me :)

xander

So I see this in my logging.  Do I really need another license in order to do this?

RP/0/RSP0/CPU0:May 26 06:37:29.198 : license_agt[361]: %LICENSE-ASR9K_LICENSE-2-MOBILE_NEEDED : Timing feature is configured without a valid license / license configuration for A9K-9001-MOB-LIC in violation of the Software Right To Use Agreement. This feature may be disabled by the system without the appropriate license. Contact Cisco to purchase the license immediately to avoid potential service interruption.

you'd need the mob-lic only if you enable PTP or IEEE 1588 time and freq distribution.

if you are only using GPS for time of day/sync then the lic shouldnt be necessary. what config did you use to set this up?

xander

Here is the pertinent configuration:

!
frequency synchronization
!

!
clock-interface sync 2 location 0/RSP0/CPU0
port-parameters
gps-input tod-format cisco pps-input rs422
!
frequency synchronization
selection input
priority 1
wait-to-restore 0
ssm disable
time-of-day-priority 1
quality receive exact itu-t option 2 generation 2 PRS
!
!

yeah it is the frequency synchronisation that triggers the license request. this because syncE was added to it if I recall correctly.

the license trigger should be made more granular to not just check for the freq sync part, but also for the application to the interface, which would be more accurate.

ignore the lic request for now, for instance with the logging correlator.

regards

xander

Thanks for you help thus far,

I can't seem to make this work.  I am on 5.3.3 code on a 9001.  gps-port-dump shows nothing and show freq sync clock-interfaces never shows 

RTR#show freq sync clock-interfaces
Fri May 27 13:11:24.699 EST
Node 0/RSP0/CPU0:
==============
Clock interface Sync0 (Down: ALARM)
Wait-to-restore time 5 minutes
SSM supported and enabled
Input is disabled
Output is disabled
Next selection points: None

Clock interface Sync1 (Down: ALARM)
Wait-to-restore time 5 minutes
SSM supported and enabled
Input is disabled
Output is disabled
Next selection points: None

Clock interface Sync2 (Down: ALARM)
Assigned as input for selection
Wait-to-restore time 0 minutes
SSM supported
Input:
Down
Effective QL: Failed, Priority: 1, Time-of-day Priority 1
Supports frequency and time-of-day
Output is disabled
Next selection points: T0-SEL-B

Clock interface Sync3 (Down: ALARM)
Wait-to-restore time 5 minutes
SSM not supported
Input:
Down - not assigned for selection
Supports frequency and time-of-day
Output:
Selected source: None
Output is squelched
Next selection points: None

Clock interface Internal0 (Up)
Assigned as input for selection
Input:
Default QL: Opt-I/SEC
Effective QL: Opt-I/SEC, Priority: 255, Time-of-day Priority 255
Supports frequency
Next selection points: T0-SEL-B

sync2 is the gps port, it needs all 3 signals tod, 1pps and 10mhz in order to declare itself up.

it could be that one of the signals is missing or not set up correctly.

eg the rs422, is the cabling correct, right format and speed. the rs422 signal is not configurable in the a9k, and requires 9600,8,n,1 (non configurable).

regards

xander

 

 - Check if this thread can help you :

            https://community.cisco.com/t5/xr-os-and-platforms/ntp-via-bits-on-asr9010/td-p/2077814

 M.



-- ' 'Good body every evening' ' this sentence was once spotted on a logo at the entrance of a Weight Watchers Club !

xthuijs
Cisco Employee
Cisco Employee

Hi Thijs,

(continuing on the comment I posted on the PTP doc as a response)

 

all 3, 1pps, 10Mhz and rj45 need to be connected to the GPS receiver. Technically you can use the frequency only (from 10Mhz) but this is not a supported configuration and the DTI logic will wine about a missing TOD and raise an alarm for it.

I have an open request for this to allow frequency only from GPS: CSCun86423

Note that for the RJ45, only the RS422 is wired to the fpga (not the rs232) and you'll need to use pins 7/8 for that.

the 1pps/10Mhz are used for frequency only (clocking). If the clock is selected you can sync the DTI to that source and distribute it to all linecards and use it for synchronous ether clocking, stm-x clocking on the sip700 etc.

You can use 1588 to distribute the clock, or do it the old fashioned way to use the clock derived as TX and have the remote side take that is input, but that obviously that will degrade the stratum on every node.

The RJ45 is for the time of day. This is to set the system date/time clock, not freq. The interface is RS422. The time/day can be distributed via NTP or PTP/1588. NTPv4 is generally accurate enough. This is then via the regular NTP distribution by making this GPS synced device ntp master.

 

regards

xander

Thanks again Xander for your help !

I'll start with connecting the ToD and then try to configure the NTP server

(i'll report back on my progress)

 

Grtz

Thijs

Ok, this is the current status and issues :

- my GPS receiver has a ToD output, but it's on a mini DIN connector (the PS2 connector type) , ASR uses RJ45 > some soldering can fix this

- GPS receiver and ASR are in different locations > i have a CAT6 patch connection that i can use, i think ?

- my GPS receiver has RS232 out, ASR only accepts RS422 > so i'll need a converter 

- apparently the the ToD format is not fixed, it can be many formats (eg MM/DD/YYY or DD/MM/YYY or ...) > what format does the ASR expect ?

- this format can be changed on the GPS receiver, but i need to get some sort of proprietary RS232 remote control 

 

so still many many hurdles to overcome :-(

in the mean time i have NTP synced the ASR to the cisco NTP servers (ntp.esl.cisco.com), so people can already start using the ASR as 'local' NTP server.

Once i get the GPS setup done i will have a true stratum1 server and the lab users wont have to worry about changing their NTP config

 

fyi : the manual of my GPS receiver can be found here : http://www.spectracomcorp.com/Desktopmodules/Bring2Mind/DMX/Download.aspx?EntryId=158&PortalId=0

 

hi thijs!

I dont think that minidin is a standardized interface, that manual you have seems to suggest pins 4 and 5 for ground and signal.

in this case you'll need an rs232 to 422 converter also. 232 can only carry for several meters, whereas rs422 can go 100's of meters. You can patch that over a cat6 cabling no problem. The brown pair is used for the a9k (pins 7/8).

The format for time it can carry is configurable:

NTP Type 4, Cisco and GPRMC

I would try first with the M/D/Y format on the spectracom side and cisco on the a9k side.

you're getting close though!

cheers

xander

Hello again Xander, i'm back with an update :-)

i managed to find my way in the pinning of the GPS receiver, hooked that up to an rs232 > rs422 converter and connected the output of that to the ToD input of the ASR

some questions:

- the pinning on the ASR : what pin should be connected to the '+' output of the converter, and what pin to the '-' output ?  i'm assuming that this doesnt matter, but just wanted to check.

- what are the steps to set up and debug the GPS config ?

 

this is my current config :

clock-interface sync 2 location 0/RSP0/CPU0
 port-parameters
  gps-input tod-format ntp4 pps-input ttl
 !
 frequency synchronization
  selection input
  priority 10
  wait-to-restore 0
  ssm disable

 

this is what show freq sync shows me :

RP/0/RSP0/CPU0:KOR_LAB_SVT_VID_ASR#show freq synchronization selection location 0/rSP0/CPU0 
Tue Feb 10 09:50:53.228 CET
Node 0/RSP0/CPU0:
==============
Selection point: T0-SEL-B (1 inputs, 1 selected)
  Last programmed 2w0d ago, and selection made 2w0d ago
  Next selection points
    SPA scoped    : None
    Node scoped   : T4-SEL-C CHASSIS-TOD-SEL
    Chassis scoped: LC_TX_SELECT
    Router scoped : None
  Uses frequency selection
  Used for local line interface output
  S  Input                     Last Selection Point         QL  Pri  Status
  == ========================  ========================  =====  ===  ===========
  1  Internal0 [0/RSP0/CPU0]   n/a                         SEC  255  Freerun    

Selection point: T4-SEL-A (0 inputs, 0 selected)
  Last programmed 13w1d ago, and selection made 1w6d ago
  Next selection points
    SPA scoped    : None
    Node scoped   : T4-SEL-C
    Chassis scoped: None
    Router scoped : None
  Uses frequency selection

Selection point: T4-SEL-C (1 inputs, 0 selected)
  Last programmed 2w0d ago, and selection made 2w0d ago
  Next selection points
    SPA scoped    : None
    Node scoped   : None
    Chassis scoped: None
    Router scoped : None
  Uses frequency selection
  Used for local clock interface output
  S  Input                     Last Selection Point         QL  Pri  Status
  == ========================  ========================  =====  ===  ===========
     Internal0 [0/RSP0/CPU0]   0/RSP0/CPU0 T0-SEL-B 1      SEC  255  Available  

Selection point: CHASSIS-TOD-SEL (1 inputs, 1 selected)
  Last programmed 2w0d ago, and selection made 2w0d ago
  Next selection points
    SPA scoped    : None
    Node scoped   : None
    Chassis scoped: None
    Router scoped : None
  Uses time-of-day selection
  S  Input                     Last Selection Point      Pri  Time  Status
  == ========================  ========================  ===  ====  ===========
  1  Internal0 [0/RSP0/CPU0]   0/RSP0/CPU0 T0-SEL-B 1    255  No    Available  


 

thanks for the help !

grtz

Thijs

 

 

 

I believe I'm in a similar boat to you.

I've cabled the 1PPS and 10MHz connectors on the RSP to a GPS clock. (The connectors on the RSP-440 are DIN 1.0/2.3, not SMB). I've constructed two DB9-to-RJ45 connectors for the TOD, one for each possible polarity of the RS422 signal.

Our Tekron GPS clock is set to NMEA GPRMC mode, 9600, 8N1, and outputs a string in the form of: $GPRMC,114143.00,A,3506.7870,N,08513.9180,W,0.0,0.0,100915,0.0,E*43

However, it does not appear that the router sees or interprets the serial string. When I unplug either the 10MHz or 1PPS cables I get logs, but I never see any change when I unplug the TOD input.

Furthermore, the TOD input is marked as Do Not Use (DNU) and it never shows up in the freq sync selection:

RP/0/RSP0/CPU0:ROC#show frequency synchronization clock-interfaces location 0/RSP0/CPU0
...
  Clock interface Sync2 (Up - GPS)
    Assigned as input for selection
    Wait-to-restore time 0 minutes
    SSM supported
    Input:
      Up
      Effective QL: DNU, Priority: 1, Time-of-day Priority 1
      Supports frequency and time-of-day
    Output is disabled
  Next selection points: T0-SEL-B

RP/0/RSP0/CPU0:ROC#show freq synchronization selection location 0/RSP0/CPU0
...
Selection point: T0-SEL-B (1 inputs, 1 selected)
  Last programmed 19:18:50 ago, and selection made 18:09:56 ago
  Next selection points
    SPA scoped    : None
    Node scoped   : T4-SEL-C CHASSIS-TOD-SEL
    Chassis scoped: LC_TX_SELECT
    Router scoped : None
  Uses frequency selection
  Used for local line interface output
  S  Input                     Last Selection Point         QL  Pri  Status
  == ========================  ========================  =====  ===  ===========
  1  Internal0 [0/RSP0/CPU0]   n/a                         SEC  255  Freerun

Selection point: CHASSIS-TOD-SEL (1 inputs, 1 selected)
  Last programmed 19:18:50 ago, and selection made 19:18:50 ago
  Next selection points
    SPA scoped    : None
    Node scoped   : None
    Chassis scoped: None
    Router scoped : None
  Uses time-of-day selection
  S  Input                     Last Selection Point      Pri  Time  Status
  == ========================  ========================  ===  ====  ===========
  1  Internal0 [0/RSP0/CPU0]   0/RSP0/CPU0 T0-SEL-B 1    255  No    Available

Am I correct that the serial TOD string is not being received?

Are there any verification or debug commands are available to troubleshoot the issue?

Where can I find a complete description of the Cisco TOD format to see if my clock can produce it?

Many thanks!

Stephen

Hi Stephan,

The way to do this is to override the input QL on the clock-interface so that the QL is high enough that the clock-interface gets selected. You should also disable SSM on the interface. For example:
 
clock-interface sync 2 location 0/RSP0/CPU0
  frequency synchronization
    ssm-disable
    ql-receive exact option 2 gen 2 PRS

as for the gps tod, you will need pins 7 and 8 for the rs422 input on the rsp440.

the format is configured like this:

clock-interface sync 2 location 0/RSP0/CPU0
 port-parameters
  gps-input tod-format <xxx> pps-input <xxx>
 !
 frequency synchronization
  selection input
 !
!

xander