Download NMS OAM System User`s Manual

Transcript
System-level clocking with clockdemo
NMS OAM System User's Manual
clockdemo program structure
clockdemo consists of the following files:
File
Contains
clockdemo.c
Main source code.
clockdemo.exe
Compiled executable.
clockresource.c
Auxiliary functions invoked by functions in clockdemo to manage timing reference
information such as, trunks.
clockresource.h
Defines for clockresource.c.
priority.txt
Sample clocking priority list file.
clockdemo performs three main tasks:
•
Monitors for clocking changes (for example, trunk signal failures).
•
Determines what to do when there is a change.
•
Reconfigures clocking on the boards.
When a change to a timing reference or board requires changes to the clocking
configuration, clockdemo determines the minimum number of steps to take to rectify
the situation, to avoid reconfiguring boards unnecessarily.
The code for each of clockdemo's tasks is encapsulated in the main section of the
program. The loop is triggered at regular intervals (regulated by the timeout set
using the -t option on the command line). It is also triggered whenever an NMS OAM
board started or board stopped event is received. The main section contains the
following functions:
Function
Description
_clock_monitor
Polls all boards and returns the board status results in an array.
_clock_control
Determines an action to take (if necessary) for each board based upon the status
results.
_clock_reconfigure
Reconfigures affected boards based upon the determined action.
104
NMS Communications