DataMuseum.dk

Presents historical artifacts from the history of:

CR80 Wang WCS documentation floppies

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about CR80 Wang WCS documentation floppies

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦4741d41b5⟧ Wang Wps File

    Length: 77644 (0x12f4c)
    Types: Wang Wps File
    Notes: CPS/SDS/033               
    Names: »1961A «

Derivation

└─⟦71c0ba358⟧ Bits:30006098 8" Wang WCS floppy, CR 0151A
    └─ ⟦this⟧ »1961A « 

WangText

…09……00……00……00……00…<…02……00……00…<
;…0d…;…07…:…01…:…06…9…0b…9…00…9…01…9…05…8…0a…8…0f…8…05…7…0b…6…08…6…0a…6…0b…6…0e…6…02…6…06…5…0c…5…01…5…05…5…06…4…09…4…0d…4…02…4…05…4…06…3…08…3…0c…3…02…3 2…09…2…0e…2…0f…2 2…06……86…1                                          
                                       …02…           …02…   …02…        

…02…CPS/SDS/033

…02…831101…02……02…
TRAFFIC HANDLING
DETAILED DESIGN SPECIFICATION…02…ISSUE 1…02…CAMPS









       4.2.4.3 Data Flow and Control Logic ........  
                 
           4.2.4.3.1 Commands from Channel Command
                     Queue ..........................
                         
           4.2.4.3.2 Transport Control Masks ........
                         
           4.2.4.3.3 Start Up Procedure .............
                         
           4.2.4.3.4 Stop Procedure .................
                         

         4.2.4.4 Module Specification ...............
                     
           4.2.4.4.1 TP Traffic Status Control ......
                         
             4.2.4.4.1.1 Functional Specification ...
                 
             4.2.4.4.1.2 Module Interface ...........
                 
             4.2.4.4.1.3 Module Components ..........
                 
             4.2.4.4.1.4 Data Description ...........
                 
             4.2.4.4.1.5 Module Design ..............
                 

           4.2.4.4.2 NT Traffic Status Control ......
                         
             4.2.4.4.2.1 Functional Specification ...
                 
             4.2.4.4.2.2 Module Interface ...........
                 
             4.2.4.4.2.3 Module Components ..........
                 
             4.2.4.4.2.4 Data Description ...........
                 
             4.2.4.4.2.5 Module Design ..............
                 

           4.2.4.4.3 SC Traffic Status Control ......
                         
             4.2.4.4.3.1 Functional Specification ...
                 
             4.2.4.4.3.2 Module Interface ...........
                 
             4.2.4.4.3.3 Module Components ..........
                 
             4.2.4.4.3.4 Data Description ...........
                 
             4.2.4.4.3.5 Module Design ..............
                 

           4.2.4.4.4 PTP Traffic Status Control .....
                         
             4.2.4.4.4.1 Functional Specification ...
                 

           4.2.4.4.4 PTP Traffic Status Control .....
                         
             4.2.4.4.4.1 Functional Specification ...
                 
             4.2.4.4.4.2 Module Interface ...........
                 
             4.2.4.4.4.3 Module Components ..........
                 
             4.2.4.4.4.4 Data Descriptions ..........
                 
             4.2.4.4.4.5 Module Design ..............
                 

           4.2.4.4.5 PTR Traffic Status Control .....
                         
             4.2.4.4.5.1 Functional Specification ...
                 
             4.2.4.4.5.2 Module Interface ...........
                 
             4.2.4.4.5.3 Module Components ..........
                 
             4.2.4.4.5.4 Data Description ...........
                 
             4.2.4.4.5.5 Module Design ..............
                 



           4.2.4.4.6 TP Internal Command Module .....
                         
             4.2.4.4.6.1 Functional Specification ...
                 
             4.2.4.4.6.2 Module Interface ...........
                 
             4.2.4.4.6.3 Module Components ..........
                 
             4.2.4.4.6.4 Data Description ...........
                 
             4.2.4.4.6.5 Module Design ..............
                 

           4.2.4.4.7 NT Internal Command Module .....
                         
             4.2.4.4.7.1 Functional Specification ...
                 
             4.2.4.4.7.2 Module Interface ...........
                 
             4.2.4.4.7.3 Module Components ..........
                 
             4.2.4.4.7.4 Data Description ...........
                 
             4.2.4.4.7.5 Module Design ..............
                 

           4.2.4.4.8 SC Internal Command Module .....
                         
             4.2.4.4.8.1 Functional Specification ...
                 
             4.2.4.4.8.2 Module Interface ...........
                 
             4.2.4.4.8.3 Module Components ..........
                 
             4.2.4.4.8.4 Data Description ...........
                 
             4.2.4.4.8.5 Module Design ..............
                 

           4.2.4.4.9 PTP Internal Command Module ....
                         
             4.2.4.4.9.1 Functional Specification ...
                 
             4.2.4.4.9.2 Module Interface ...........
                 
             4.2.4.4.9.3 Module Components ..........
                 
             4.2.4.4.9.4 Data Description ...........
                 
             4.2.4.4.9.5 Module Design ..............
                 

           4.2.4.4.10  TP EXTERNAL COMMAND MODULE ...
                           
             4.2.4.4.10.1 Functional Specification ..
                 
             4.2.4.4.10.2 Module Interface ..........
                 
             4.2.4.4.10.3 Module Components .........
                 
             4.2.4.4.10.4 Data Description ..........
                 
             4.2.4.4.10.5 Module Design .............
                 

           4.2.4.4.11  NT External Command Module ...
                           
             4.2.4.4.11.1 Functional Specification ..
                 
             4.2.4.4.11.2 Module Interface ..........
                 
             4.2.4.4.11.3 Module Components .........
                 
             4.2.4.4.11.4 Data Description ..........
                 
             4.2.4.4.11.5 Module Design .............
                 

           4.2.4.4.12  SC External Command Module ...
                           
             4.2.4.4.12.1 Functional Specification ..
                 
             4.2.4.4.12.2 Module Interface ..........
                 
             4.2.4.4.12.3 Module Components .........
                 
             4.2.4.4.12.4 Data Description ..........
                 
             4.2.4.4.12.5 Module Design .............
                 



           4.2.4.4.13  PTP External Command Module ..
                           
             4.2.4.4.13.1 Functional Specification ..
                 
             4.2.4.4.13.2 Module Interface ..........
                 
             4.2.4.4.13.3 Module Components .........
                 
             4.2.4.4.13.4 Data Description ..........
                 
             4.2.4.4.13.5 Module Design .............
                 

           4.2.4.4.14  PTR External Command Module ..
                           
             4.2.4.4.14.1 Functional Specification ..
                 
             4.2.4.4.14.2 Module Interface ..........
                 
             4.2.4.4.14.3 Module Components .........
                 
             4.2.4.4.14.4 Data Description ..........
                 
             4.2.4.4.14.5 Module Design .............
                 

           4.2.4.4.15  TP Timer Control Module ......
                           
             4.2.4.4.15.1 Functional Specification ..
                 
             4.2.4.4.15.2 Module Interface ..........
                 
             4.2.4.4.15.3 Module Components .........
                 
             4.2.4.4.15.4 Data Description ..........
                 
             4.2.4.4.15.5 Module Design .............
                 

           4.2.4.4.16  NT Timer Control Module ......
                           
             4.2.4.4.16.1 Functional Specification ..
                 
             4.2.4.4.16.2 Module Interface ..........
                 
             4.2.4.4.16.3 Module Components .........
                 
             4.2.4.4.16.4 Data Description ..........
                 
             4.2.4.4.16.5 Module Design .............
                 

           4.2.4.4.17  SC Timer Control Module ......
                           
             4.2.4.4.17.1 Functional Specification ..
                 
             4.2.4.4.17.2 Module Interface ..........
                 
             4.2.4.4.17.3 Module Components .........
                 
             4.2.4.4.17.4 Data Description ..........
                 
             4.2.4.4.17.5 Module Design .............
                 

           4.2.4.4.18  PTP Timer Control Module .....
                           
             4.2.4.4.18.1 Functional Specification ..
                 
             4.2.4.4.18.2 Module Interface ..........
                 
             4.2.4.4.18.3 Module Components .........
                 
             4.2.4.4.18.4 Data Description ..........
                 
             4.2.4.4.18.5 Module Design .............
                 

         4.2.4.5 Common Subpackage Data ............ 
                     
         4.2.4.6 Common Subpackage Procedures ...... 
             
         4.2.4.7 Subpackage Interface .............. 
             
           4.2.4.7.1 THP Internal .................. 
               
           4.2.4.7.2 THP External .................. 
               


4.2.4.4.5    P̲T̲R̲ ̲T̲r̲a̲f̲f̲i̲c̲ ̲S̲t̲a̲t̲u̲s̲ ̲C̲o̲n̲t̲r̲o̲l̲



4.2.4.4.5.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         The PTR Traffic Status Control Module supplies the
         PTR ̲TC ̲COROUTINE for the PTR Transport.

         The following main tasks are performed:

         -   Transfer of a command from the Channel Command
             Queue (CCQ) is initiated.

         -   Reception of operation from the main waiting point,
             TC ̲OPSEM.

         -   Decoding of received operation and activation of
             action related to operation.

         Procedures for the following actions are included:

         -   140 Identical Characters detected by ITS.

         -   Close Down Acknowledge from ITS.

         -   Input of command from Channel Command Queue (CCQ).
             On the basis of this command the PTR External Command
             Module is activated.

         Note:   This module is also used by the OCR Process
                 (refer section 4.2.4.4.19.



4.2.4.4.5.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a)  PTR ̲TC ̲COROUTINE

         b)  PTR ̲TC ̲COROUTINE (R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R6      LINK



         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None        The PTR ̲TC ̲COROUTINE is implemented with
                     an endless loop.



4.2.4.4.5.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of the PTR Traffic Status Control Module
         are depicted on figure 4.2.4.4.5.3-1.



4.2.4.4.5.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         All data structures used by this module are define
         in section 4.2.3.5.



4.2.4.4.5.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         Procedures included in PTR ̲Traffic ̲Status ̲Control are
         reentrant.

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲P̲T̲R̲ ̲T̲C̲ ̲C̲O̲R̲O̲U̲T̲I̲N̲E̲

         (R6) C  D   LINK

         This procedure is coroutine running under control of
         the CSF COROUTINE MONITOR. The procedure is supplied
         with an endless loop.

         The procedure supplies the upper most control logic
         of the transport control within a transport subprocess
         for PTR.

         The following tasks are performed:

         -    Init of command transfere from the channel command
              queue (CCQ). Dependent on the state of the COMMAND
              ̲CTR ̲MASK.

         -    Call of decode procedure each time an operation
              has been received from TC ̲OPSEM (main waiting
              point for TRANSPORT CONTROL).



         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲D̲E̲C̲O̲D̲E̲ ̲P̲T̲R̲ ̲T̲C̲ ̲O̲P̲E̲R̲A̲T̲I̲O̲N̲

         (R4  C  D   POINTER TO SAVE AREA
          R7  C  D   POINTER TO TRANSPORT PARAMS
          R6  C  D   LINK

         This procedure decodes the OP ̲TYPE of the operation
         which has been stored into the save area (TRS ̲SAVE
         ̲OP ̲TYPE).

         A call is made to a procedure taking care of the actions
         related to the OP ̲TYPE.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲P̲U̲T̲ ̲P̲T̲R̲ ̲C̲O̲M̲M̲A̲N̲D̲

         (R4  C  D   POINTER TO OPERATION SAVE AREA
          R6  C  D   LINK

         This procedure inputs a command from the channel command
         queue (CCQ). The command is received through the operation
         referred to in the specified save area.

         On the base of the command maintype the procedure will
         activate one of the following external procedures:

         -    DECODE ̲PTR ̲EXTERNAL ̲COMMAND

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲L̲O̲S̲E̲ ̲A̲C̲K̲N̲O̲W̲L̲E̲D̲G̲E̲

         (R4  C  D   POINTER TO OPERATION SAVE AREA
          R6) C  D

         This procedure takes care of the actions related to
         close acknowledges operations received from OTS and
         its during a FINAL ̲CLOSE ̲DOWN or STOP procedure.

         When the acknowledges have been received the following
         actions take place:

         -    The I/O connection is dismantled

         -    Achknowledge are returned to SSC







                   Figure 4.2.4.4.5.3-1



PROCEDURE PTR ̲TC ̲COROUTINE

EQUIVALENCE(PARAM ̲BASE,TRP: TRANSPORT ̲PARAMETERS)

START

LOOP     "Forever"

      READ ̲PARAM ̲BASE

      CHECK ̲INDICATOR(TRP.CONTROL ̲STATE,

                   PRIMARY ̲COMMAND)(CC): BOOLEAN

      CC EQ TRUE?

      RECEIVE ̲TRS ̲OPERATION(POOL     : TRP.TRS ̲OP ̲POOL,
                                     OP ̲TYPE                     :
                                                                 PRIM
                                                                 ̲COM,
                                     INFO                        :
                                                                 TRP.CCQ1
                                                                 ̲QEL
                                                                 ̲ATTRIBUTES,
                                     PRIORITY                    :
                                                                 2)
                            (OPERATION)                          :
                                                                 OK

      INIT ̲COMMAND ̲TRANSFER
                                     (QUEUE                      :
                                                                 PTR
                                                                 ̲COMMAND
                                                                 ̲QUEUE.1,
                                      ATTRIBUTES                 :
                                                                 TRP.CCQ1
                                                                 ̲QEL
                                                                 ̲ATTRIBUTES,
                                      OPERATION)

      RESET ̲INDICATOR(TRP.CONTROL ̲STATE, PRIMARY ̲COMMAND)

      WAIT ̲TRS ̲OPSEM (TRP.TC ̲OPSEM)  "Main Waiting
                                     Point"

                      (TRP.TC ̲OPERATION)

      DECODE ̲PTR ̲TC ̲OPERATION

END LOOP

RETURN

             Flowgram 4.2.4.4.5.5-1



4.2.4.4.6    T̲P̲ ̲I̲n̲t̲e̲r̲n̲a̲l̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.6.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         The PT ̲INTERNAL ̲COMMAND module contains procedures
         for decoding of the THP ̲INTERNAL commands received
         from the Channel Command Queue (CCQ) within the TRC/POINT
         TO POINT transport.

         The THP ̲INTERNAL commands are generated by the AAS
         or the ACS and includes the following subjects:

         a)  Test Reply
         b)  Send Test Reply
         c)  Self Check Received
         d)  Check TSN
         e)  Open Outging Traffic
         f)  Close Outgoing Traffic
         g)  Flash Acknowledge
         h)  Send Flash Acknowledge
         i)  Flash Message



4.2.4.4.6.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a)  DECODE ̲TP ̲INTERNAL ̲COMMAND (MAINTYPE, Qel, Flags,
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   INF,
                                                                   SUBTYPE):
                                                                   OK

             DECODE ̲TP ̲INTERNAL ̲COMMAND (R0,R1,R2,R3,R4,R5,R7,R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R0  Maintype                        (destr.)
         R1  Subtype                         (destr.)
         R2  Qel                             (destr.)
         R3  Flags                           (destr.)
         R4  INF Pointer                     (destr.)
         R6  LINK                            (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None





4.2.4.4.6.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of TP ̲Internal Command Module are depicted
         on figure 4.2.4.4.6.3-1.



4.2.4.4.6.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         Data structures are defined in section 4.2.3.5.



4.2.4.4.6.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         DECODE ̲TP ̲INTERNAL ̲COMMAND    : Flowgram 4.2.4.4.6.5-1

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲P̲ ̲D̲E̲C̲O̲D̲E̲ ̲I̲N̲T̲E̲R̲N̲A̲L̲ ̲C̲O̲M̲M̲A̲N̲D̲

         (R0  C  D   MAINTYPE
          R1  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   QEL FLAGS
          R4  C  D   POINTER TO QEL INF
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure decodes the internal commands received
         from the channel command queue.

         For each command a call is made to specific procedure
         taking care of the command.

         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲H̲E̲C̲K̲ ̲T̲S̲N̲

         (R2  C  D   QEL REFERENCE
          R4  C  D   POINTER TO TSN
          R6) C  D   LINK

         The procedure is related to the TSN ̲CHECK ̲RECEIVED
         command.

         The TSN supplied by the command is compared with the
         TSN of the message transmitted before the last outgoing
         TSN reset.



         If no match a report is transmitted to the supervisors
         printer.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲E̲L̲F̲ ̲C̲H̲E̲C̲K̲ ̲R̲E̲C̲

         (R2  C  D   QEL REFERENCE
          R3  C  D   FLAGS
          R6) C  D   LINK

         This procedure takes care of the actions related to
         the SELF ̲CHECK ̲RECEIVED command.

         The procedures checks if a SELF ADDRESSED CHANNEL CHECK
         has been transmitted, i.e. if a timer has been assigned
         to the answer.

         If not the ASM referenced by the command is considered
         as not recognized and will be sent to the supervisor
         printer.

         The QEL is dismantled from the channel command queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲I̲T̲ ̲P̲R̲E̲E̲M̲P̲T̲I̲O̲N̲

         (R2  C  D   QEL REFERENCE
          R6) C  D   LINK

         This procedure is related to the FLASH NOTIF command.

         A timeout equal to the preemption delay (defined within
         the TRC ̲PTOP ̲PARAMETER) is requested from the CSF timer
         monitor.

         If a timeout already has been requested no new one
         is requested.

         If the preemption delay is equal to 0 and operation
         is sent to the OTS to make it initiate preemption if
         necessary.

         The QEL is dismantled from the channel command queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲E̲S̲T̲ ̲R̲E̲P̲L̲Y̲ ̲R̲E̲C̲

         (R2  C  D   QEL REF
          R4  C  D   POINTER TO REPLY (N)
          R6) C  D   LINK

         This procedure takes care ot the TEST ̲REPLY ̲RECEIVED
         command.



         If the test reply info (N) is less than 4 the following
         actions take place:

         -    A report is sent to the supervisor printer

         -    If the outgoing channel is open, it will be closed
              by updating the ACP ̲127 ̲CHANNEL status and the
              CIRCUIT ̲CONNECTIVITY ̲TABLE. This case also includes
              report and statistics generation.

         The QEL containing the command is dismantled from the
         channel command queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲E̲N̲D̲ ̲T̲E̲S̲T̲ ̲R̲E̲P̲L̲Y̲ ̲A̲S̲M̲

         (R2  C  D   QEL REFERENCE
          R4  C  D   POINTER TO ANALYSIS RESULT (N)
          R6) C  D   LINK

         This procedure takes care of the actions related to
         the SEND ̲TEST ̲REPLY command.

         An operation is sent to the OTS to make it transmit
         an ASM with the result (N) of the quality test performed
         by AAS.

         If N   4 the following actions take place:

         -    A report is transmitted to the supervisor printer

         -    If the incoming channel is open it is closed by
              updating the ACP ̲127 ̲CHANNEL ̲STATUS. In this case
              also reports and statistics are generated.

         The QEL containing the command is dismantled from the
         channel command queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲F̲L̲A̲S̲H̲ ̲A̲C̲K̲ ̲R̲E̲C̲

         (R2  C  D   QEL REFERENCE
          R3  C  D   FLAGS
          R4  C  D   POINTER TO TSN
          R6) C  D   LINK

         This procedure takes care of the SEND ̲FLASH ̲ACK command.

         An operation is sent to the OTS to make it transmit
         an ASM with the flash acknowledge.

         The QEL containing the command is dismantled from the
         channel command queue.



         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲E̲N̲D̲ ̲F̲L̲A̲S̲H̲ ̲A̲C̲K̲ ̲A̲S̲M̲

         (R2  C  D   QUEL REFERENCE
          R4  C  D   POINTER TO TSN
          R6) C  D   LINK

         This procedure takes care of the SEND FLASH ACK command.

         An operation is sent to the ots to make it transmit
         an ASM with flash acknowledge.

         The QEL containing the command is dismantled from the
         channel command queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲O̲P̲E̲N̲ ̲O̲U̲T̲G̲ ̲T̲R̲A̲F̲F̲I̲C̲

         (R2  C  D   QEL REFERENCE
          R6) C  D   LINK

         This procedure takes care of the OPEN ̲OUTG ̲TRAFFIC
         command.

         If the outgoing channel is closed the following actions
         take place:

         -    The channel is opened by updating the ACP ̲127
              ̲
              CHANNEL ̲STATUS and the CIRCUIT ̲CONNECTIVITY ̲TABLE

         -    A report is send to the supervisor printer

         -    Statistics are generated (OUTG ̲CHN ̲AVAIL).

         Each time this command is received an operation is
         sent to OTS to make it transmit a CHANNEL ̲TEST ̲MESSAGE
         (INT ̲ZBZ).

         The QEL containing the command is dismantled from the
         channel command queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲L̲O̲S̲E̲ ̲O̲U̲T̲G̲ ̲T̲R̲A̲F̲F̲I̲C̲

         (R2  C  D   QEL REFERENCE
          R6) C  D   LINK

         This procedure takes care of the CLOSE ̲OUTG ̲TRAFFIC
         command.



         If the outgoing channel is open the following actions
         place:

         -    The channel is closed by updating the ACP ̲127
              ̲
              CHANNEL ̲STATUS and the CIRCUIT ̲CONNECTIVITY ̲TABLE

         -    A report is send to the supervisor printer

         -    Statistics are generated (OUTG ̲CHN ̲AVAIL).

         The QEL containing the command is dismantled from the
         channel command queue.









                   Figure 4.2.4.4.6.3-1




PROCEDURE    DECODE ̲TP ̲INTERNAL ̲COMMAND (MAINTYPE,
             SUBTYPE)

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE SUBTYPE

      CHANNEL ̲OPEN ̲RECEIVED   ?      OPEN ̲OUTG ̲TRAFFIC

      CHANNEL ̲CLOSE ̲RECEIVED  ?      CLOSE ̲OUTG ̲TRAFFIC

      TEST ̲REPLY ̲RECEIVED ?   TEST ̲REPLY

      SEND ̲TEST ̲REPLY         ?      SEND ̲TEST ̲REPLY
                                     ̲ASM

      SEND ̲FLASH ̲ACK      ?   SEND ̲FLASH ̲ACK ̲ASM

      FLASH ̲ACK ̲RECEIVED  ?   FLASH ̲ACK

      FLASH ̲NOTIF         ?   INIT ̲PREEMPTION

      TSN ̲CHECK ̲RECEIVED  ?   CHECK ̲TSN

      SELF ̲CHECK ̲RECEIVED ?   SELF ̲CHECK

      OTHERWISE               ?      TRS ̲COMMAND ̲ERROR

END CASE

RESTORE ̲LINK

RETURN




\…01…Flowgram 4.2.4.4.6.5-1



4.2.4.4.7    N̲T̲ ̲I̲n̲t̲e̲r̲n̲a̲l̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.7.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         This module supplies procedures for handling of THP
         ̲INTERNAL commands received from the Channel Command
         Queue (CCQ) for NICS TARE Transport.

         The following commands are included:

         a)  Channel Open Received
         b)  Channel Close Received
         c)  Test Reply Received
         d)  Send Test Reply
         e)  Send Flash Ack.
         f)  Flash Ack. Received
         g)  TSN Check Received



4.2.4.4.7.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a)  DECODE ̲NT ̲INTERNAL ̲COMMAND (MAINTYPE, Qel, Flage,
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   INF,
                                                                   SUBTYPE):
                                                                   OK

         b)  DECODE ̲NT ̲INTERNAL ̲COMMAND (R0,R1,R2,R3,R4,R5,R7,R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R0      Maintype                        (destr.)
         R1      Subtype                         (destr.)
         R2      QEL                             (destr.)
         R3      Flags                           (destr.)
         R4      INF Pointer                     (destr.)
         R6      Link                            (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None 





4.2.4.4.7.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of NT ̲Internal Command Module are depicted
         on figure 4.2.4.4.7.3-1.



4.2.4.4.7.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         Data structures are defined in section 4.2.3.5.



4.2.4.4.7.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲N̲T̲ ̲D̲E̲C̲O̲D̲E̲ ̲I̲N̲T̲E̲R̲N̲A̲L̲ ̲C̲O̲M̲M̲A̲N̲D̲

         (R0  C  D   MAINTYPE
          R1  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   QEL FLAGS
          R4  C  D   POINTER TO QEL INF
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
         (R6) C  D   LINK

         This procedure decodes the internal commands received
         from the channel command queue in a NICS TARE transport
         subprocess.

         For each command a call is made to specific procedure
         taking care of the command.

         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲H̲E̲C̲K̲ ̲T̲S̲N̲

         (R2  C  D   QEL REFERENCE
          R4  C  D   POINTER TO TSN
          R6) C  D   LINK

         The procedure is related to the TSN ̲CHECK ̲RECEIVED
         command.



         The TSN supplied by the command is compared with the
         TSN of the message transmitted before the last outgoing
         TSN reset.

         If no match a report is transmitted to the supervisors
         printer.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲O̲P̲E̲N̲ ̲O̲U̲T̲G̲ ̲T̲R̲A̲F̲F̲I̲C̲

         (R2  C  D   QEL REFERENCE
          R6) C  D   LINK

         This procedure takes care of the OPEN ̲OUTG ̲TRAFFIC
         command.

         If the outgoing channel is closed the following actions
         take place:

         -    The channel is opened by updating the ACP ̲127
              ̲
              CHANNEL ̲STATUS and the CIRCUIT ̲CONNECTIVITY ̲TABLE

         -    A report is send to the supervisor printer

         -    Statistics are generated (OUTG ̲CHN ̲AVAIL).

         Each time this command is received an operation is
         sent to OTS to make it transmit a CHANNEL ̲TEST ̲MESSAGE
         (INT ̲ZBZ).

         The QEL containing the command is dismantled from the
         channel command queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲L̲O̲S̲E̲ ̲O̲U̲T̲G̲ ̲T̲R̲A̲F̲F̲I̲C̲

         (R2  C  D   QEL REFERENCE
          R6) C  D   LINK

         This procedure takes care of the CLOSE ̲OUTG ̲TRAFFIC
         command.

         If the outgoing channel is open the following actions
         place:

         -    The channel is closed by updating the ACP ̲127
              ̲
              CHANNEL ̲STATUS and the CIRCUIT ̲CONNECTIVITY ̲TABLE

         -    A report is send to the supervisor printer

         -    Statistics are generated (OUTG ̲CHN ̲AVAIL).

         The QEL containing the command is dismantled from the
         channel command queue.



         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲E̲N̲D̲ ̲T̲E̲S̲T̲ ̲R̲E̲P̲L̲Y̲ ̲A̲S̲M̲

         (R2  C  D   QEL REFERENCE
          R4  C  D   POINTER TO ANALYSIS RESULT (N)
          R6) C  D   LINK

         This procedure takes care of the SEND ̲TEST ̲REPLY command.

         An operation is sent to the OTS to make it transmit
         an ASM with the result (N) of the quality test performed
         by AAS.

         If N   4 the following actions take place:

         -    A report is transmitted to the supervisor printer

         -    If the incoming channel is open it is closed by
              updating the ACP ̲127 ̲CHANNEL ̲STATUS. In this case
              also reports and statistics are generated.

         The QEL containing the command is dismantled from the
         channel command queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲E̲S̲T̲ ̲R̲E̲P̲L̲Y̲ ̲R̲E̲C̲

         (R2  C  D   QEL REF
          R4  C  D   POINTER TO REPLY (N)
          R6) C  D   LINK

         This procedure takes care ot the TEST ̲REPLY ̲RECEIVED
         command.

         If the test reply info (N) is less than 4 the following
         actions take place:

         -    A report is sent to the supervisor printer

         -    If the outgoing channel is open, it will be closed
              by updating the ACP ̲127 ̲CHANNEL status and the
              CIRCUIT ̲CONNECTIVITY ̲TABLE. This case also includes
              report and statistics generation.

         The QEL containing the command is dismantled from the
         channel command queue.



         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲F̲L̲A̲S̲H̲ ̲A̲C̲K̲ ̲R̲E̲C̲

         (R2  C  D   QEL REFERENCE
          R3  C  D   FLAGS
          R4  C  D   POINTER TO TSN
          R6) C  D   LINK

         This procedure is related to the SEND ̲FLASH ̲RECEIVED
         command.

         If the TSN from the command has been assigned a timer
         in the FLASH TABLE, the timer is set idle and the QEL
         related to the message is dismantled from the circuit
         queue.

         If the TSN is not represented in the FLASH TABLE the
         ASM following the command is considered as not recognized
         and will be send to the supervisor printer.

         The QEL is dismantled from the channel command queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲F̲L̲A̲S̲H̲ ̲A̲C̲K̲ ̲A̲S̲M̲

         (R2  C  D   QEL REFERENCE
          R4  C  D   POINTER TO TSN
          R6) C  D   LINK

         This procedure takes care of the SEND ̲FLASH ̲ACK command.

         An operation is sent to the OTS to make it transmit
         an ASM with the flash acknowledge.

         The QEL containing the command is dismantled from the
         channel command queue.







                   Figure 4.2.4.4.7.3-1




PROCEDURE    DECODE ̲TP ̲INTERNAL ̲COMMAND (MAINTYPE,
             SUBTYPE): OK

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE SUBTYPE

      CHANNEL ̲OPEN ̲RECEIVED   ?      OPEN ̲OUTG ̲TRAFFIC

      CHANNEL ̲CLOSE ̲RECEIVED  ?      CLOSE ̲OUTG ̲TRAFFIC

      TEST ̲REPLY ̲RECEIVED ?   TEST ̲REPLY

      SEND ̲TEST ̲REPLY         ?      SEND ̲TEST ̲REPLY
                                     ̲ASM

      SEND ̲FLASH ̲ACK      ?   SEND ̲FLASH ̲ACK ̲ASM

      FLASH ̲ACK ̲RECEIVED  ?   FLASH ̲ACK

      TSN ̲CHECK ̲RECEIVED  ?   CHECK ̲TSN

      OTHERWISE               ?      TRS ̲COMMAND ̲ERROR
                                     

END CASE

RESTORE ̲LINK

RETURN




\…01…Figure 4.2.4.4.7.5-1



4.2.4.4.8    S̲C̲ ̲I̲n̲t̲e̲r̲n̲a̲l̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.8.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         This module contains procedures for handling of THP
         ̲INTERNAL commands received from the Channel Command
         Queue (CCQ) for SCARS/CCIS.

         The following commands are included:

         a)  Flash Notification

         b)  TSN check received



4.2.4.4.8.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a)  DECODE ̲SC ̲INTERNAL ̲COMMAND (MAINTYPE, Qel, Flage,
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   
                                                                   INF,
                                                                   SUBTYPE):
                                                                   OK

         b)  DECODE ̲SC ̲INTERNAL ̲COMMAND (R0,R1,R2,R3,R4,R5,R7,R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R0      Maintype                        (destr.)
         R1      Subtype                         (destr.)
         R2      QEL                             (destr.)
         R3      Flags                           (destr.)
         R4      INF Pointer                     (destr.)
         R6      Link                            (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None



4.2.4.4.8.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of the SC ̲Internal ̲Command Module are
         depicted on figure 4.2.4.4.8.3-1.





4.2.4.4.8.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         Data structures are defined in section 4.2.3.5.



4.2.4.4.8.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         (Flowgram 4.2.4.4.8.5-1)

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲C̲ ̲D̲E̲C̲O̲D̲E̲ ̲I̲N̲T̲E̲R̲N̲A̲L̲ ̲C̲O̲M̲M̲A̲N̲D̲

         (R0  C  D   MAINTYPE
          R1  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   QEL FLAGS
          R4  C  D   POINTER TO QEL INF
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
         (R6) C  D   LINK

         This procedure decodes the internal commands received
         from the channel command queue in a SCARS/CCIS subprocess.

         For each command a call is made to specific procedure
         taking care of the command.

         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲H̲E̲C̲K̲ ̲T̲S̲N̲

         (R2  C  D   QEL REFERENCE
          R4  C  D   POINTER TO TSN
          R6) C  D   LINK

         The procedure is related to the TSN ̲CHECK ̲RECEIVED
         command.

         The TSN supplied by the command is compared with the
         TSN of the message received before the last incoming
         TSN reset.

         If no match a report is transmitted to the supervisors
         printer.



         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲I̲T̲ ̲P̲R̲E̲E̲M̲P̲T̲I̲O̲N̲

         (R2  C  D   QEL REFERENCE
          R6) C  D   LINK

         This procedure related to the FLASH ̲NOTIF command.

         A timeout equal to the preemption delay (defined within
         the SCARS CCIS PARAMETER) is requested from the CSF
         timer monitor.

         If a timeout already has been requested no new one
         is requested.

         If the preemption delay is equal to 0 an operation
         is sent to the OTS make it initiate preemption if necessary.

         The QEL is dismantled from the channel command queue.





                   Figure 4.2.4.4.8.3-1





PROCEDURE            DECODE ̲SC ̲INTERNAL ̲COMMAND (MAINTYPE,
                                                                 
                                                                 SUBTYPE):
                                                                 OK

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE SUBTYPE

      FLASH ̲NOTIF         ?   INIT ̲PREEMPTION

      TSN ̲CHECK ̲RECEIVED  ?   CHECK ̲TSN

      OTHERWISE               ?      TRS ̲COMMAND ̲ERROR

END CASE

RESTORE ̲LINK

RETURN



             Flowgram 4.2.4.4.8.5-1




4.2.4.4.9    P̲T̲P̲ ̲I̲n̲t̲e̲r̲n̲a̲l̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.9.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         This module contains procedures for handling of THP
         Internal commands received from the Channel Command
         Queue for PTR.

         The following commands are included:

         Flash Notification.



4.2.4.4.9.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a)  DECODE ̲PTP ̲INTERNAL ̲COMMAND (MAINTYPE, Qel, Flage,
             
                                         INF, SUBTYPE): OK

         b)  DECODE ̲PTP ̲INTERNAL ̲COMMAND(R0,R1,R2,R3,R4,R5,R7,R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R0      Maintype                        (destr.)
         R1      Subtype                         (destr.)
         R2      QEL                             (destr.)
         R3      Flags                           (destr.)
         R4      INF Pointer                     (destr.)
         R6      Link                            (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None



4.2.4.4.9.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of the PTP ̲INTERNAL ̲COMMAND Module are:
         

         DECODE ̲PTP ̲INTERNAL ̲COMMAND
         INIT ̲PREEMPTION
         TRS ̲COMMAND ̲ERROR  (External)





4.2.4.4.9.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         Data structures are defined in section 4.2.3.5.



4.2.4.4.9.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲


         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲P̲T̲P̲ ̲D̲E̲C̲O̲D̲E̲ ̲I̲N̲T̲E̲R̲N̲A̲L̲ ̲C̲O̲M̲M̲A̲N̲D̲
         (Flowgram 4.2.4.4.9.5-1)

         (R0  C  D   MAINTYPE
          R1  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   QEL FLAGS
          R4  C  D   POINTER TO QEL INF
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
         (R6) C  D   LINK

         This procedure decodes the internal commands received
         from the channel command queue.

         For each command a call is made to specific procedure
         taking care of the command.

         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲I̲T̲ ̲P̲R̲E̲E̲M̲P̲T̲I̲O̲N̲

         (R2  C  D   QEL REFERENCE
          R6) C  D   LINK

         This procedure is related to the FLASH ̲NOTIF command.

         A timeout equal to the preemption delay (defined within
         the DEDICATED ̲PUNCH ̲PARAMETER) is requested from the
         CSF timer monitor.

         If a timeout already has been requested no new one
         is requested.

         If the preemption delay is equal to 0 an operation
         is sent to the OTS make it initiate preemption if necessary.

         The QEL is dismantled from the channel command queue.




PROCEDURE            DECODE ̲PTP ̲INTERNAL ̲COMMAND (COMMAND
                     ̲ID)

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE COMMAND ̲ID

      FLASH ̲NOTIF         ?   INIT ̲PREEMPTION

      OTHERWISE               ?      TRS ̲COMMAND ̲ERROR

END CASE

RESTORE ̲LINK

RETURN



             Flowgram 4.2.4.4.9.5-1




4.2.4.4.10   T̲P̲ ̲E̲X̲T̲E̲R̲N̲A̲L̲ ̲C̲O̲M̲M̲A̲N̲D̲ ̲M̲O̲D̲U̲L̲E̲



4.2.4.4.10.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         The TP ̲EXTERNAL ̲COMMAND module supplies the procedures
         which executes the actions related to the THP ̲EXTERNAL
         commands rceived from the Channel Command Queue (CCQ)
         within the TRC/POINT TO POINT transport.

         The THP ̲EXTERNAL commands are divided into groups according
         to the origin:

         a)  SSC COMMAND            : Start External Channel
                                      Close Down
                                      Stop Traffic

         b)  SUPERVISOR COMMAND     : Open Incoming Traffic
                                      Close Incoming Traffic

         c)  LOG ACK                : Acknowledge for outg.
                                    msg.
                                      Log and Discontinuity
                                    Log.



4.2.4.4.10.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a) TP DECODE ̲EXTERNAL ̲COMMAND (MAINTYPE, Qel, Flags,
         
                                        INF, SUBTYPE): OK

         b) TP DECODE ̲EXTERNAL ̲COMMAND (R0,R1,R2,R3,R4,R5,R7,R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R0      Maintype                        (destr.)
         R1      Subtype                         (destr.)
         R2      QEL                             (destr.)
         R3      Flags                           (destr.)
         R4      INF Pointer                     (destr.)
         R6      Link                            (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None





4.2.4.4.10.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of the TP ̲EXTERNAL ̲COMMAND Module are
         depicted on figure 4.2.4.4.10.3-1.


4.2.4.4.10.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         The data structures are defined in section 4.2.3.5.


4.2.4.4.10.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         All procedures within this module are reentrant.

         TP ̲DECODE ̲EXTERNAL ̲COMMAND design on flowgram 4.2.4.4.10.5-1.

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲P̲ ̲D̲E̲C̲O̲D̲E̲ ̲E̲X̲T̲E̲R̲N̲A̲L̲ ̲C̲O̲M̲M̲A̲N̲D̲

         (R0  C  D   MAINTYPE
          R1  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   QEL FLAGS
          R4  C  D   POINTER TO QEL INF
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
         (R6) C  D   LINK

         This procedure decodes the external commands received
         through the channel command queue.

         For each command a specific procedure is called taking
         care of the actions related to the command.

         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲A̲C̲K̲N̲O̲W̲L̲E̲D̲G̲E̲

         (R2  C  D   QEL REFERENCE
          R3  C  D   FLAGS (NOT ̲OK,OK)
          R4  C  D   POINTER TO INF WORD
          R6) C  D   LINK

         The procedure supplies the actions related to log acknowledge.

         The QEL related to the command is dismantled from the
         channel command queue.








                  Figure 4.2.4.4.10.3-1



         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲T̲A̲R̲T̲ ̲C̲H̲A̲N̲N̲E̲L̲

         (R4  C  D   POINTER TO START ̲EXC ̲RECORD
          R6  C  D   LINK

         This procedure supplies the functions related to the
         START ̲EXC command received from SSC.

         The functions are divided into the following maintasks:

         -    ESTABLISH I/O CONNECTION
         -    READ CHANNEL PROFILE, CIRCUIT ̲PROFILE AND CHANNEL
              ̲
              STATUS
         -    UPDATE CHANNEL ̲STATUS
         -    READ CHANNELS PER CIRCUIT
         -    READ CHANNEL SPEED
         -    REQUEST PERIODIC TIMEOUTS FROM CSF ̲TIMER ̲MONITOR
         -    SEND START OPERATIONS TO OTS AND ITS
         -    INIT OF TRANSPORT PARAMS RELATED TO TCS.

         The outgoing channel status is closed. The incoming
         channel status is set to the state indicated by the
         value received from the ACP ̲127 ̲CHANNEL ̲STATUS table.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲T̲O̲P̲ ̲C̲H̲A̲N̲N̲E̲L̲

         (R2  C  D   QEL REFERENCE
          R6) C  D   LINK

         This procedure supplies the functions related to a
         stop command received from SSC through the channel
         command queue.

         Operations are sent to OTS and ITS to make them stop
         processing immediately.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲L̲O̲S̲E̲ ̲C̲H̲A̲N̲N̲E̲L̲

         (R3  C  D   FLAG (CLOSE ̲DOWN ̲TYPE)
          R6) C  D   LINK

         This procedure supplies the functions which take place
         when a close down command is received from SSC.


         Two types of close down commands are received:

         -    INIT ̲CLOSE ̲DOWN:  An operation is sent to OTS
                                and ITS to make them stop processing
                                as soon as the running transmission/reception
                                is compleeted.

         -    FINAL ̲CLOSE ̲DOWN: The functions are the same as
                                for stop channel command.




PROCEDURE   TP ̲DECODE ̲EXTERNAL ̲COMMAND

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE MAINTYPE

    SUPERVISOR ̲THP ̲CMD?

      CASE SUBTYPE

        OPEN ̲FOR ̲INCOMING ̲TRAFFIC    ?   OPEN ̲INCOM
                                     ̲TRAFFIC

        CLOSE ̲FOR ̲INCOMING ̲TRAFFIC   ?   CLOSE ̲INCOM
                                     ̲TRAFFIC

        OTHERWISE       ?   TRS ̲COMMAND ̲ERROR

      END CASE

    SSC ̲COMMAND?

      CASE SUBTYPE

        START ̲EXC ? START ̲EXTERNAL ̲CHANNEL

        STOP ̲EXC  ? STOP ̲EXTERNAL ̲CHANNEL

        CLOSE ̲DOWN  ? CHANNEL ̲CLOSE ̲DOWN

        OTHERWISE ? TRS ̲COMMAND ̲ERROR

      END CASE

  ACK     ? LOG ̲COLLECT ̲ACK

  OTHERWISE ? TRS ̲COMMAND ̲ERROR 

END CASE

RESTORE ̲LINK

RETURN


             Flowgram 4.2.4.4.10.5-1


4.2.4.4.11   N̲T̲ ̲E̲x̲t̲e̲r̲n̲a̲l̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.11.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         This module supplies procedures for handling of External
         Commands received from the Channel Command Queue for
         NICS TARE Transport.

         The following commands are included:

         a)  SSC COMMAND           : Start External Channel
                                     Stop External Channel
                                     Channel Close Down

         b)  SUPERVISOR COMMAND    : Open Incoming Traffic
                                     Close Incoming Traffic

         c)  LOG ̲COLLECT ̲ACK       : Acknowledge for Outg. Msg.
                                     Log and Discontinuity Log.



4.2.4.4.11.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a) NT DECODE ̲EXTERNAL ̲COMMAND (MAINTYPE, Qel, Flags,
         
                                         INF, SUBTYPE): OK

         b) NT DECODE ̲EXTERNAL ̲COMMAND (R0,R1,R2,R3,R4,R5,R7,R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R0      Maintype                        (destr.)
         R1      Subtype                         (destr.)
         R2      QEL                             (destr.)
         R3      Flags                           (destr.)
         R4      INF Pointer                     (destr.)
         R6      Link                            (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None





4.2.4.4.11.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of this module are depicted on figure
         4.2.4.4.11.3-1.



4.2.4.4.11.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         The data structures are defined in section 4.2.3.5.



4.2.4.4.11.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         The procedures included in the NT ̲External Command
         Module are all reentrant.

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲N̲T̲ ̲D̲E̲C̲O̲D̲E̲ ̲E̲X̲T̲E̲R̲N̲A̲L̲ ̲C̲O̲M̲M̲A̲N̲D̲

         (R0  C  D   MAINTYPE
          R1  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   QEL FLAGS
          R4  C  D   POINTER TO QEL INF
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
         (R6) C  D   LINK

         (Flowgram 4.2.4.4.11.5-1)

         This procedure decodes the external commands received
         through the channel command queue in NICS TARE transport
         subprocess.

         For each command a specific procedure is called taking
         care of the actions related to the command.



         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲L̲O̲G̲ ̲A̲C̲K̲N̲O̲W̲L̲E̲D̲G̲E̲

         (R2  C  D   QEL REFERENCE
          R3  C  D   FLAGS (NOT ̲OK,OK)
          R4  C  D   POINTER TO INF WORD
          R6) C  D   LINK

         This procedure supplies the actions related to log
         acknowledge.

         The QEL related to the command is dismantled from the
         channel command queue.










                  Figure 4.2.4.4.11.3-1




         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲T̲A̲R̲T̲ ̲C̲H̲A̲N̲N̲E̲L̲

         (R4  C  D   POINTER TO START ̲EXC ̲RECORD
          R6  C  D   LINK

         This procedure supplies the functions related to the
         START ̲EXC command received from SSC.

         The functions are divided into the following maintasks:

         -    ESTABLISH I/O CONNECTION
         -    READ CHANNEL PROFILE, CIRCUIT ̲PROFILE AND CHANNEL
              ̲
              STATUS
         -    UPDATE CHANNEL ̲STATUS
         -    READ CHANNELS PER CIRCUIT
         -    READ CHANNEL SPEED
         -    REQUEST PERIODIC TIMEOUTS FROM CSF ̲TIMER ̲MONITOR
         -    SEND START OPERATIONS TO OTS AND ITS
         -    INIT OF TRANSPORT PARAMS RELATED TO TCS.

         The outgoing channel status is closed. The incoming
         channel status is set to the state indicated by the
         value received from the ACP ̲127 ̲CHANNEL ̲STATUS table.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲T̲O̲P̲ ̲C̲H̲A̲N̲N̲E̲L̲

         (R2  C  D   QEL REFERENCE
          R6) C  D   LINK

         This procedure supplies the functions related to a
         stop command received from SSC through the channel
         command queue.

         Operations are sent to OTS and ITS to make them stop
         processing immediately.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲L̲O̲S̲E̲ ̲C̲H̲A̲N̲N̲E̲L̲

         (R3  C  D   FLAG (CLOSE ̲DOWN ̲TYPE)
          R6) C  D   LINK

         This procedure supplies the functions which take place
         when a close down command is received from SSC.

         Two types of close down commands are received:

         -    INIT ̲CLOSE ̲DOWN:  An operation is sent to OTS
                                and ITS to make them stop processing
                                as soon as the running transmission/reception
                                is compleeted.

         -    FINAL ̲CLOSE ̲DOWN: The functions are the same as
                                for stop channel command.




PROCEDURE            NT ̲DECODE ̲EXTERNAL ̲COMMAND

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE MAINTYPE

      SUPERVISOR ̲THP ̲CMD?

         CASE SUBTYPE

             OPEN ̲FOR ̲INCOMING ̲TRAFFIC                           ?
                                                                 
                                                                 
                                                                 OPEN
                                                                 ̲INCOM
                                                                 ̲TRAFFIC

             CLOSE ̲FOR ̲INCOMING ̲TRAFFIC                          ?
                                                                 
                                                                 
                                                                 CLOSE
                                                                 ̲INCOM
                                                                 ̲TRAFFIC

             OTHERWISE                                           ?
                                                                 
                                                                 
                                                                 TRS
                                                                 ̲COMMAND
                                                                 ̲ERROR

         END CASE

      SSC ̲COMMAND?

         CASE SUBTYPE

             START ̲EXC    ?   START ̲EXTERNAL ̲CHANNEL

             STOP ̲EXC     ?   STOP ̲EXTERNAL ̲CHANNEL

             CLOSE ̲DOWN   ?   CHANNEL ̲CLOSE ̲DOWN

             OTHERWISE    ?   TRS ̲COMMAND ̲ERROR

         END CASE

      ACK            ?    LOG ̲COLLECT ̲ACK

      OTHERWISE      ?    TRS ̲COMMAND ̲ERROR 

END CASE

RESTORE ̲LINK

RETURN


             Flowgram 4.2.4.4.11.5-1


4.2.4.4.12   S̲C̲ ̲E̲x̲t̲e̲r̲n̲a̲l̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.12.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         This module contains procedures for handling of External
         Commands received through the Channel Command Queue
         for SCARS/CCIS Transport.

         The following commands are included:

         a)  SSC COMMAND           : Start External Channel
                                     Stop External Channel
                                     Channel Close Down

         b)  LOG ̲COLLECT ̲ACK       : Acknowledge for Outg. Msg.
                                     Log and Discontinuity Log.



4.2.4.4.12.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a) SC DECODE ̲EXTERNAL ̲COMMAND (MAINTYPE, Qel, Flags,
         
                                         INF, SUBTYPE): OK

         b) SC DECODE ̲EXTERNAL ̲COMMAND (R0,R1,R2,R3,R4,R5,R7,R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R0      Maintype                        (destr.)
         R1      Subtype                         (destr.)
         R2      QEL                             (destr.)
         R3      Flags                           (destr.)
         R4      INF Pointer                     (destr.)
         R6      Link                            (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None





4.2.4.4.12.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of this module are depicted on figure
         4.2.4.4.12.3-1.



4.2.4.4.12.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         The data structures are defined in section 4.2.3.5.



4.2.4.4.12.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         The procedures included in the SC ̲External Command
         Module are all reentrant.

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲: (Flowgram 4.2.4.4.12.5-1)

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲C̲ ̲D̲E̲C̲O̲D̲E̲ ̲E̲X̲T̲E̲R̲N̲A̲L̲ ̲C̲O̲M̲M̲A̲N̲D̲

         (R0  C  D   MAINTYPE
          R1  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   QEL FLAGS
          R4  C  D   POINTER TO QUEUE INF
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
         (R6) C  D   LINK

         This procedure decodes the external commands received
         through the channel command queue for SCAR/CCIS subprocess.

         For each command a specific procedure is called taking
         care of the actions related to the command.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲T̲O̲P̲ ̲C̲H̲A̲N̲N̲E̲L̲

         (R2  C  D   QEL REFERENCE
          R6) C  D   LINK

         This procedure supplies the functions related to a
         stop command received from SSC through the channel
         command queue.

         Operations are sent to OTS and ITS to make them stop
         processing immediately.









                  Figure 4.2.4.4.12.3-1




         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲T̲A̲R̲T̲ ̲C̲H̲A̲N̲N̲E̲L̲

         (R4  C  D   POINTER TO START ̲EXC ̲RECORD
          R6  C  D   LINK

         This procedure supplies the functions related to the
         START ̲EXC command received from SSC.

         The functions are divided into the following maintasks:

         -    ESTABLISH I/O CONNECTION
         -    READ CHANNEL PROFILE, CIRCUIT ̲PROFILE AND CHANNEL
              ̲
              STATUS
         -    UPDATE CHANNEL ̲STATUS
         -    READ CHANNELS PER CIRCUIT
         -    READ CHANNEL SPEED
         -    REQUEST PERIODIC TIMEOUTS FROM CSF ̲TIMER ̲MONITOR
         -    SEND START OPERATIONS TO OTS AND ITS
         -    INIT OF TRANSPORT PARAMS RELATED TO TCS.

         The outgoing channel status is closed. The incoming
         channel status is set to the state indicated by the
         value received from the ACP ̲127 ̲CHANNEL ̲STATUS table.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲L̲O̲S̲E̲ ̲C̲H̲A̲N̲N̲E̲L̲

         (R3  C  D   FLAG (CLOSE ̲DOWN ̲TYPE)
          R6) C  D   LINK

         This procedure supplies the functions which take place
         when a close down command is received from SSC.

         Two types of close down commands are received:

         -    INIT ̲CLOSE ̲DOWN:  An operation is sent to OTS
                                and ITS to make them stop processing
                                as soon as the running transmission/reception
                                is compleeted.

         -    FINAL ̲CLOSE ̲DOWN: The functions are the same as
                                for stop channel command.




         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲L̲O̲G̲ ̲A̲C̲K̲N̲O̲W̲L̲E̲D̲G̲E̲

         (R2  C  D   QEL REFERENCE
          R3  C  D   FLAGS (NOT ̲OK,OK)
          R4  C  D   POINTER TO INF WORD
          R6) C  D   LINK

         The procedure supplies the actions related to log acknowledge.

         Validation of log acknowledge.
         If LOG ̲ACK = OUT ̲VALID ̲LOG the OTS is notified.
         If LOG ̲ACK = IN ̲DISC ̲LOG the ITS is notified.

         The QEL related to the command is dismantled from the
         channel command queue.




PROCEDURE            SC ̲DECODE ̲EXTERNAL ̲COMMAND

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE MAINTYPE

      SSC ̲COMMAND?

         CASE SUBTYPE

             START ̲EXC    ?   START ̲EXTERNAL ̲CHANNEL

             STOP ̲EXC     ?   STOP ̲EXTERNAL ̲CHANNEL

             CLOSE ̲DOWN   ?   CHANNEL ̲CLOSE ̲DOWN

             OTHERWISE    ?   TRS ̲COMMAND ̲ERROR

         END CASE

      ACK            ?    LOG ̲COLLECT ̲ACK

      OTHERWISE      ?    TRS ̲COMMAND ̲ERROR 

END CASE

RESTORE ̲LINK

RETURN


             Flowgram 4.2.4.4.12.5-1


4.2.4.4.13   P̲T̲P̲ ̲E̲x̲t̲e̲r̲n̲a̲l̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.13.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         This module contains procedures for handling of External
         Commands from the Channel Command Queue for PTP Transport.

         The following commands are included:

         a)  SSC COMMAND           : Start Device
                                     Stop Device
                                     Device Close Down

         b)  LOG ̲COLLECT ̲ACK       : Acknowledge for Outg. Msg.
                                     Log.



4.2.4.4.13.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a) PTP DECODE ̲EXTERNAL ̲COMMAND (MAINTYPE, Qel, Flags,
         
                                         INF, SUBTYPE): OK

         b) PTP DECODE ̲EXTERNAL ̲COMMAND (R0,R1,R2,R3,R4,R5,R7,R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R0      Maintype                        (destr.)
         R1      Subtype                         (destr.)
         R2      QEL                             (destr.)
         R3      Flags                           (destr.)
         R4      INF Pointer                     (destr.)
         R6      Link                            (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None





4.2.4.4.13.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of this module are depicted on figure
         4.2.4.4.13.3-1.



4.2.4.4.13.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         The data structures are defined in section 4.2.3.5.



4.2.4.4.13.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         The procedures included in the PTP ̲External Command
         Module are all reentrant.

         Design of PTP ̲DECODE ̲EXTERNAL ̲COMMAND on flowgram 4.2.4.4.13.5-1.

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲ ̲P̲o̲i̲n̲t̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲P̲I̲P̲ ̲D̲E̲C̲O̲D̲E̲ ̲E̲X̲T̲E̲R̲N̲A̲L̲ ̲C̲O̲M̲M̲A̲N̲D̲

         (R0  C  D   MAINTYPE
          R1  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   QEL FLAGS
          R4  C  D   POINTER TO QUEUE INF
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
         (R6) C  D   LINK

         This procedure decodes the external commands received
         through the channel command queue.

         For each command a specific procedure is called taking
         care of the actions related to the command.



         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲L̲O̲G̲ ̲A̲C̲K̲N̲O̲W̲L̲E̲D̲G̲E̲

         (R2  C  D   QEL REFERENCE
          R3  C  D   FLAGS (NOT ̲OK,OK)
          R4  C  D   POINTER TO INF WORD
          R6) C  D   LINK

         The procedure supplies the actions related to log acknowledge.

         The QEL related to the command is dismantled from the
         channel command queue.









                  Figure 4.2.4.4.13.3-1



PROCEDURE            PTP ̲DECODE ̲EXTERNAL ̲COMMAND

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE MAINTYPE

      SSC ̲COMMAND?

         CASE SUBTYPE

             START ̲SAD    ?   START ̲DEVICE

             STOP ̲SAD     ?   STOP ̲DEVICE

             CLOSE ̲DOWN   ?   DEVICE ̲CLOSE ̲DOWN

             OTHERWISE    ?   TRS ̲COMMAND ̲ERROR

         END CASE

      ACK            ?    LOG ̲COLLECT ̲ACK

      OTHERWISE      ?    TRS ̲COMMAND ̲ERROR 

END CASE

RESTORE ̲LINK

RETURN


             Flowgram 4.2.4.4.13.5-1


4.2.4.4.14   P̲T̲R̲ ̲E̲x̲t̲e̲r̲n̲a̲l̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.14.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         This module supplies procedures for handling of external
         commands received from the Channel Command Queue for
         PTR Transport.

         The following commands are included:

         a)  SSC COMMAND           : Start Device
                                     Stop Device
                                     Device Close Down

         Note: This module is also used by the OCR process.



4.2.4.4.14.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a) PTR DECODE ̲EXTERNAL ̲COMMAND (MAINTYPE, Qel, Flags,
         
                                         INF, SUBTYPE): OK

         b) PTR DECODE ̲EXTERNAL ̲COMMAND (R0,R1,R2,R3,R4,R5,R7,R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R0      Maintype                        (destr.)
         R1      Subtype                         (destr.)
         R2      QEL                             (destr.)
         R3      Flags                           (destr.)
         R4      INF Pointer                     (destr.)
         R6      Link                            (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None





4.2.4.4.14.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of this module are:

         PTR ̲DECODE ̲EXTERNAL ̲COMMAND
         START ̲DEVICE
         STOP ̲DEVICE
         DEVICE ̲CLOSE ̲DOWN
         TRS ̲COMMAND ̲ERROR (External)



4.2.4.4.14.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         The data structures are defined in section 4.2.3.5.



4.2.4.4.14.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         The procedures included in the PTR ̲External Command
         Module are all reentrant.

         Design of PTR ̲DECODE ̲EXTERNAL ̲COMMAND on flowgram 4.2.4.4.14.5-1.

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲ ̲P̲o̲i̲n̲t̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲P̲T̲R̲ ̲D̲E̲C̲O̲D̲E̲ ̲E̲X̲T̲E̲R̲N̲A̲L̲ ̲C̲O̲M̲M̲A̲N̲D̲

         (R0  C  D   MAINTYPE
          R1  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   QEL FLAGS
          R4  C  D   POINTER TO QUEUE INF
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
         (R6) C  D   LINK

         This procedure decodes the external commands received
         through the channel command queue.

         For each command a specific procedure is called taking
         care of the actions related to the command.






PROCEDURE            PTR ̲DECODE ̲EXTERNAL ̲COMMAND (MAINTYPE,
                     SUBTYPE)

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE MAINTYPE

      SSC ̲COMMAND?

         CASE SUBTYPE

             START ̲SAD    ?   START ̲DEVICE

             STOP ̲SAD     ?   STOP ̲DEVICE

             CLOSE ̲DOWN   ?   DEVICE ̲CLOSE ̲DOWN

             OTHERWISE    ?   TRS ̲COMMAND ̲ERROR

         END CASE

      OTHERWISE      ?    TRS ̲COMMAND ̲ERROR 

END CASE

RESTORE ̲LINK

RETURN
















             Flowgram 4.2.4.4.14.5-1


         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲T̲A̲R̲T̲ ̲D̲E̲V̲I̲C̲E̲

         (R4  C  D   POINTER TO START ̲SAD ̲RECORD
          R6  C  D   LINK

         This procedure supplies the functions related to the
         START ̲SAD command received from SSC.

         The functions are divided into the following maintasks:

         -    ESTABLISH I/O CONNECTION
         -    READ DEVICE PROFILE
         -    SEND START OPERATIONS TO THE ITS

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲L̲O̲S̲E̲ ̲D̲E̲V̲I̲C̲E̲

         (R3  C  D   FLAG (CLOSE ̲DOWN ̲TYPE)
          R6) C  D   LINK

         This procedure supplies the functions which take place
         when a close down command is received from SSC.

         Two types of close down commands are received:

         -    INIT ̲CLOSE ̲DOWN:  An operation is sent to ITS
                                to make it stop processing as
                                soon as the running reception
                                is compleeted.

         -    FINAL ̲CLOSE ̲DOWN: The functions are the same as
                                for stop channel command.


         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲T̲O̲P̲ ̲D̲E̲V̲I̲C̲E̲

         (R2  C  D   QEL REFERENCE
          R6) C  D   LINK

         This procedure supplies the functions related to a
         stop command received from SSC through the channel
         command queue.

         Operations are sent to ITS to make it stop processing
         immediately.



4.2.4.4.15   T̲P̲ ̲T̲i̲m̲e̲r̲ ̲C̲o̲n̲t̲r̲o̲l̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.15.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲s̲

         The TP ̲TIMER ̲CONTROL module contains all the procedures
         for handling the timer functions within the TRC/POINT
         TO POINT transport.

         The module is called each time a Timer Event is received
         from the CSF Timer Monitor (through the Channel Command
         Queue, CCQ).

         The following functions are supplied:

         a)  Preemption Delay Elapsed.
         b)  Reset Outgoing TSN.
         c)  Update TP ̲TIMER ̲TABLE.
         d)  Timeout for incoming traffic.
         e)  Timeout for Self check ASM.
         f)  Timeout for TSN check ASM (ZID).
         g)  Timeout or Flash acknowledge.

         The timer functions mentioned above are described in
         section 4.2.4.1.4.



4.2.4.4.15.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a)  TP ̲TIMER ̲CONTROL (SUBTYPE, QEL, Flags)

         b)  TP ̲TIMER ̲CONTROL (R1, R2, R3, R7, R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R1      Subtype                       (destr.)
         R2      Qel                           (destr.)
         R3      Flags                         (destr.)
         R6      Link                          (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None





4.2.4.4.15.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of TP ̲TIMER ̲CONTROL are depicted on
         figure  4.2.4.4.15.3-1.



4.2.4.4.15.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         All data structures used by this module are defined
         in section 4.2.3.5.



4.2.4.4.15.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         All procedures within TP ̲TIMER ̲CONTROL are reentrant
         procedures.

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲ ̲P̲o̲i̲n̲t̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲P̲ ̲T̲I̲M̲E̲R̲ ̲C̲O̲N̲T̲R̲O̲L̲

         (R0  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   FLAGS
          R7     R   POINTER TO TRANSPORT PARAMETERS
         (R6) C  D   LINK

         Register R0, R4, R5 are destroyed.

         This procedure decodes the timeout events requested
         from the CSF TIMER MONITOR.

         The queue element containing the timer events is dismantled
         from the channel command queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲P̲R̲E̲E̲M̲P̲T̲I̲O̲N̲ ̲D̲E̲L̲A̲Y̲

         (R6) C  D   LINK

         This procedure supplies the actions related to the
         situation that a requested preemption delay has elapsed.

         An operation is sent to OTS to make it activate ITS
         preemption procedure if necessary.



         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲P̲ ̲P̲E̲R̲I̲O̲D̲I̲C̲ ̲E̲V̲E̲N̲T̲

         (R6) C  D   LINK

         This procedure take care of the actions related to
         a periodic timer event requested from the CSF TIMER
         MONITOR.

         The following maintasks are included:

         -    Daily reset of TSN
         -    UPDATING OF TIMERS IN TRS ̲TIME ̲TABLE and
              FLASH ̲TABLE.
         -    If timeout occurs then a call is made to TP ̲TIMEOUT
              ̲CHECK procedure.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲P̲ ̲T̲I̲M̲E̲O̲U̲T̲ ̲C̲H̲E̲C̲K̲

         (R6) C  D   LINK

         This procedure search the TRS ̲TIMER ̲TABLE and the FLASH
         ̲TABLE for timeouts.

         In case of timeout a branch is made to one of the following
         procedures

         -    INCOMING ̲TIMEOUT
         -    SELFCHECK ̲TIMEOUT
         -    ZID ̲ASM ̲TIMEOUT
         -    TRS ̲FLASH ̲TIMEOUT

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲C̲O̲M̲I̲N̲G̲ ̲T̲I̲M̲E̲O̲U̲T̲

         (R6) C  D   LINK

         This procedure supplies the actions related to the
         timeout for incoming traffic.

         An operation is sent to the OTS to make it transmit
         a SELFADDRESSED CHANNEL CHECK ASM.

         The action above is only executed if:

         -    The transport control is not waiting for a previously
              transmitted selfaddressed channel check.

         -    Both channels shall be opened for traffic (The
              OTS takes care of this test).


         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲E̲L̲F̲C̲H̲E̲C̲K̲ ̲T̲I̲M̲E̲O̲U̲T̲

         (R6) C  D   LINK

         The procedure supplies the actions related to the timeout
         for the return of a SELF CHECK ASM.

         A report is transmitted to the supervisor printer.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲R̲S̲ ̲F̲L̲A̲S̲H̲ ̲T̲I̲M̲E̲O̲U̲T̲

         (R2  C  D   TSN OF FLASH MESSAGE
          R3  C  D   QEL REFERRING TO FLASH MESSAGE
          R6) C  D   LINK

         The procedure takes care of the actions related to
         timeout for flash acknowledge.

         The flash msg for which the acknowledge is missing
         are referred by the TSN and the QEL.

         A report is transmitted to the supervisor printer and
         the flash message is dismantled from the circuit queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲Z̲I̲D̲A̲S̲M̲ ̲T̲I̲M̲E̲O̲U̲T̲

         (R6) C  D   LINK

         This procedure suplies the actions for the timeout
         for a ZID ASM.

         A report is transmitted to the supervisor printer.





                  Figure 4.2.4.4.15.3-1




PROCEDURE            TP ̲TIMER ̲CONTROL (MONITOR ̲REPLY,
                     TIMEOUT ̲ID)

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE MONITOR ̲REPLY

      TIMEOUT        ?

         CASE TIMEOUT ̲ID

             TRS ̲PERIODIC ?   TP ̲PERIODIC ̲EVENT

             TRS ̲PREEMPTION   ?      PREEMPTION ̲DELAY

             OTHERWISE        ?      TRS ̲INTERNAL ̲ERROR
                                     (TP ̲TIMER ̲CONTROL,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TRS
                                                                     ̲TIMEOUT
                                                                     ̲ERROR,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     MONITOR
                                                                     ̲REPLY,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TIMEOUT
                                                                     ̲ID)

         END CASE

      TIMEOUT ̲CANCELLED   ?

      OTHERWISE      ?    TRS ̲INTERNAL ̲ERROR (TP ̲TIMER
                          ̲CONTROL,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TRS
                                                                     ̲TIMEOUT
                                                                     ̲ERROR,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     MONITOR
                                                                     ̲REPLY,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TIMEOUT
                                                                     ̲ID)

END CASE

RESTORE ̲LINK

RETURN



             Flowgram 4.2.4.4.15.5-1



4.2.4.4.16   N̲T̲ ̲T̲i̲m̲e̲r̲ ̲C̲o̲n̲t̲r̲o̲l̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.16.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲s̲

         The NT ̲Timer ̲Control Module contains all the procedures
         for handling the timer functions within a NICS TARE
         Transport Control.

         The following functions are supplied:

         a)  Reset Outgoing TSN.
         b)  Update NT ̲TIMER ̲TABLE.
         c)  Timeout for incoming traffic.
         d)  Timeout for outgoing traffic.
         e)  Timeout for TSN check ASM (ZID).
         f)  Timeout or Flash acknowledge.

         The timer functions mentioned above are described in
         section 4.2.4.1.4.



4.2.4.4.16.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a)  NT ̲TIMER ̲CONTROL (SUBTYPE, QEL, Flags)

         b)  NT ̲TIMER ̲CONTROL (R1, R2, R3, R7, R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R1      Subtype                       (destr.)
         R2      Qel                           (destr.)
         R3      Flags                         )destr.)
         R6      Link                          (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None



4.2.4.4.16.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of NT ̲TIMER ̲CONTROL are depicted on
         figure  4.2.4.4.16.3-1.





4.2.4.4.16.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         All data structures used by this module are defined
         in section 4.2.3.5.



4.2.4.4.16.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         All procedures supplied by NT ̲TIMER ̲CONTROL are reentrant
         procedures.

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲ ̲P̲o̲i̲n̲t̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲N̲T̲ ̲T̲I̲M̲E̲R̲ ̲C̲O̲N̲T̲R̲O̲L̲
         (Flowgram 4.2.4.4.16.5-1)

         (R1  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   FLAGS
          R7     R   POINTER TO TRANSPORT PARAMETERS
         (R6) C  D   LINK

         Register R0, R4, R5 are destroyed.

         This procedure decodes the timeout events requested
         from the CSF TIMER MONITOR in a NICS TARE transport
         subprocess.

         The queue element containing the timer events is dismantled
         from the channel command queue.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲N̲T̲ ̲P̲E̲R̲I̲O̲D̲I̲C̲ ̲E̲V̲E̲N̲T̲

         (R6) C  D   LINK

         This procedure take care of the actions related to
         a periodic timer event requested from the CSF TIMER
         MONITOR in a NICS TARE transport subprocess.

         The following maintasks are included:

         -    Daily reset of TSN
         -    Updating of timers in TRS ̲TIMER ̲TABLE and
              FLASH ̲TABLE.
              If timeout occurs then a call is made to 
              NT ̲TIMEOUT ̲CHECK procedure.


         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲N̲T̲ ̲T̲I̲M̲E̲O̲U̲T̲ ̲C̲H̲E̲C̲K̲

         (R6) C  D   LINK

         This procedure search the TRS ̲TIMER ̲TABLE and the FLASH
         ̲TABLE for timeouts in a NICS TARE transport subprocess.

         In case of timeout a branch is made to one of the following
         procedures

         -    INCOMING ̲TIMEOUT
         -    SELFCHECK ̲TIMEOUT
         -    ZID ̲ASM ̲TIMEOUT
         -    TRS ̲FLASH ̲TIMEOUT

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲C̲O̲M̲I̲N̲G̲ ̲T̲I̲M̲E̲O̲U̲T̲

         (R6) C  D   LINK

         This procedure supplies the actions related to the
         timeout for incoming traffic from NICS TARE.

         A report is sent to the supervisor's printer.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲O̲U̲T̲G̲O̲I̲N̲G̲ ̲T̲I̲M̲E̲O̲U̲T̲

         (R6) C  D   LINK

         The procedure supplies the actions related to the timeout
         for outgoing traffic.

         An operation is sent to the OTS to make it transmit
         a continuity message.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲Z̲I̲D̲A̲S̲M̲ ̲T̲I̲M̲E̲O̲U̲T̲

         (R6) C  D   LINK

         This procedure suplies the actions for the timeout
         for a ZID ASM.

         A report is transmitted to the supervisor printer.



         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲R̲S̲ ̲F̲L̲A̲S̲H̲ ̲T̲I̲M̲E̲O̲U̲T̲

         (R2  C  D   TSN OF FLASH MESSAGE
          R3  C  D   QEL REFERRING TO FLASH MESSAGE
          R6) C  D   LINK

         The procedure takes care of the actions related to
         timeout for flash acknowledge.

         The flash msg for which the acknowledge is missing
         are referred by the TSN and the QEL.

         A report is transmitted to the supervisor printer and
         the flash message is dismantled from the circuit queue.







                  Figure 4.2.4.4.16.3-1





PROCEDURE            NT ̲TIMER ̲CONTROL (MONITOR ̲REPLY,
                     TIMEOUT ̲ID

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE MONITOR ̲REPLY

      TIMEOUT        ?

         CASE TIMEOUT ̲ID

             TRS ̲PERIODIC ?   NT ̲PERIODIC ̲EVENT

             OTHERWISE        ?      TRS ̲INTERNAL ̲ERROR
                                     (NT ̲TIMER ̲CONTROL,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TRS
                                                                     ̲TIMEOUT
                                                                     ̲ERROR,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     MONITOR
                                                                     ̲REPLY,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TIMEOUT
                                                                     ̲ID)

         END CASE

      TIMEOUT ̲CANCELLED   ?

      OTHERWISE      ?    TRS ̲INTERNAL ̲ERROR (NT ̲TIMER
                          ̲CONTROL,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TRS
                                                                     ̲TIMEOUT
                                                                     ̲ERROR,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     MONITOR
                                                                     ̲REPLY,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TIMEOUT
                                                                     ̲ID)

END CASE

RESTORE ̲LINK

RETURN




             Flowgram 4.2.4.4.16.5-1



4.2.4.4.17    S̲C̲ ̲T̲i̲m̲e̲r̲ ̲C̲o̲n̲t̲r̲o̲l̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.17.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         The SC ̲Timer ̲Control Module supplies all the procedures
         for handling the timer functions within the SCARS/CCIS
         Transport Control.

         The following functions are supplied:

         a)   Preemption delay elapsed
         b)   Reset Outgoing TSN.
         c)   Update SC ̲TIMER ̲TABLE.
         d)   Timeout for incoming traffic.
         e)   Timeout for Transaction Acknowledge.
         f)   Timeout for TSN check ASM (ZID).
         g)   Set timer for ZID ASM.

         The timer functions mentioned above are described in
         section 4.2.4.1.4.



4.2.4.4.17.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a)   SC ̲TIMER ̲CONTROL (SUBTYPE, QEL, Flags)

         b)   SC ̲TIMER ̲CONTROL (R1, R2, R3, R7, R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R1      Subtype                       (destr.)
         R2      Qel                           (destr.)
         R3      Flags                         )destr.)
         R6      Link                          (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None





4.2.4.4.17.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         The components of SC ̲TIMER ̲CONTROL are depicted on
         figure  4.2.4.4.17.3-1.



4.2.4.4.17.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         All data structures used by this module are defined
         in section 4.2.3.5.



4.2.4.4.17.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         All procedures within SC ̲TIMER ̲CONTROL are reentrant
         procedures.

         M̲o̲d̲u̲l̲e̲ ̲E̲n̲t̲r̲y̲ ̲P̲o̲i̲n̲t̲:

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲C̲ ̲T̲I̲M̲E̲R̲ ̲C̲O̲N̲T̲R̲O̲L̲
         (Flowgram 4.2.4.4.17.5-1)

         (R1  C  D   SUBTYPE
          R2  C  D   QEL REFERENCE
          R3  C  D   FLAGS
          R7     R   POINTER TO TRANSPORT PARAMETERS
         (R6) C  D   LINK

         Register R0, R4, R5 are destroyed.

         This procedure decodes the timeout events requested
         from the CSF TIMER MONITOR.

         The queue element containing the timer events is dismantled
         from the channel command queue.

         M̲o̲d̲u̲l̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲:

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲P̲R̲E̲E̲M̲P̲T̲I̲O̲N̲ ̲D̲E̲L̲A̲Y̲

         (R6) C  D   LINK

         This procedure suplies the actions related to the situation
         that a requested preemption delay has elapsed.

         An operation is sent to OTS to make it activate ITS
         preemption procedure if necessary.



         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲C̲ ̲P̲E̲R̲I̲O̲D̲I̲C̲ ̲E̲V̲E̲N̲T̲

         (R6) C  D   LINK

         This procedure take care of the actions related to
         a periodic timer event reqested from the CSF TIMER
         MONITOR.

         The following maintasks are included:

         -    Updating of timers in TRS ̲TIMER ̲TABLE and
              FLASH ̲TABLE.
              If timeout occurs then a call is made to 
              SC ̲TIMEOUT ̲CHECK procedure.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲C̲ ̲T̲I̲M̲E̲O̲U̲T̲ ̲C̲H̲E̲C̲K̲

         (R6) C  D   LINK

         This procedure search the TRS ̲TIMER ̲TABLE and the FLASH
         ̲TABLE for timeouts.

         In case of timeout a branch is made to one of the following
         procedures

         -    INCOMING ̲TIMEOUT
         -    TRANS ̲ACK ̲TIMEOUT
         -    ZID ̲ASM ̲TIMEOUT

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲C̲O̲M̲I̲N̲G̲ ̲T̲I̲M̲E̲O̲U̲T̲

         (R6) C  D   LINK

         This procedure supplies the actions related to the
         timeout for incoming traffic.

         An operation is sent to the OTS to make it transmit
         a CHANNEL CHECK MESSAGE

         The action above is only executed if:

         -    The transport control is not waiting for transaction
              acknowledge.



         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲T̲R̲A̲N̲S̲ ̲A̲C̲K̲ ̲T̲I̲M̲E̲O̲U̲T̲

         (R6) C  D   LINK

         The procedure supplies the actions related to the timeout
         for the return of a TRANSACTION ACKNOWLEDGE.

         A report is transmitted to the supervisor printer and
         the OTS is requested to retransmit the message.

         P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲Z̲I̲D̲A̲S̲M̲ ̲T̲I̲M̲E̲O̲U̲T̲

         (R6) C  D   LINK

         This procedure suplies the actions for the timeout
         for a ZID ASM (received at midnight).

         A report is transmitted to the supervisor printer and
         the next expected TSN is set to 001.









                  Figure 4.2.4.4.17.3-1





PROCEDURE            SC ̲TIMER ̲CONTROL (MONITOR ̲REPLY,
                     TIMEOUT ̲ID)

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE MONITOR ̲REPLY

      TIMEOUT        ?

         CASE TIMEOUT ̲ID

             TRS ̲PERIODIC ?   SC ̲PERIODIC ̲EVENT

             TRS ̲PREEMPTION   ?      PREEMPTION ̲DELAY

             OTHERWISE        ?      TRS ̲INTERNAL ̲ERROR
                                     (SC ̲TIMER ̲CONTROL,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TRS
                                                                     ̲TIMEOUT
                                                                     ̲ERROR,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     MONITOR
                                                                     ̲REPLY,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TIMEOUT
                                                                     ̲ID)

         END CASE

      TIMEOUT ̲CANCELLED   ?

      OTHERWISE      ?    TRS ̲INTERNAL ̲ERROR (SC ̲TIMER
                          ̲CONTROL,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TRS
                                                                     ̲TIMEOUT
                                                                     ̲ERROR,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     MONITOR
                                                                     ̲REPLY,
                                                                     
                                                                     
                                                                     
                                                                     TIMEOUT
                                                                     ̲ID)

END CASE

RESTORE ̲LINK

RETURN




             Flowgram 4.2.4.4.17.5-1



4.2.4.4.18    P̲T̲P̲ ̲T̲i̲m̲e̲r̲ ̲C̲o̲n̲t̲r̲o̲l̲ ̲M̲o̲d̲u̲l̲e̲



4.2.4.4.18.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         The PTP Timer ̲Control Module supplies all the procedures
         for handling the timer functions within the PTP Transport
         Control.

         The following functions are included:

          -Preemption delay elapsed



4.2.4.4.18.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a)   PTP ̲TIMER ̲CONTROL (SUBTYPE, QEL, Flags)

         b)   PTP ̲TIMER ̲CONTROL (R1, R2, R3, R7, R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         C̲a̲l̲l̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         R1      Subtype                       (destr.)
         R2      Qel                           (destr.)
         R3      Flags                         )destr.)
         R6      Link                          (kept)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None



4.2.4.4.18.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         PTP ̲TIMER ̲CONTROL

         PREEMPTION ̲DELAY



4.2.4.4.18.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         All data structures used by PTP ̲TIMER ̲CONTROL module
         are depicted in section 4.2.3.5.



4.2.4.4.18.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         All procedures supplied by PTP ̲TIMER ̲CONTROL are reentrant
         procedures.

         PTP ̲TIMER ̲CONTROL          : Flowgram 4.2.4.4.18.5-1



PROCEDURE            PTP ̲TIMER ̲CONTROL (MONITOR ̲REPLY,
                     TIMEOUT ̲ID)

START

SAVE ̲LINK (LINK)(PARAM ̲BASE)

CASE MONITOR ̲REPLY

      TIMEOUT        ?

         CASE TIMEOUT ̲ID

             TRS ̲PREEMPTION   ?      PREEMPTION ̲DELAY

             OTHERWISE        ?      TRS ̲INTERNAL ̲ERROR
                                     (PTP ̲TIMER ̲CONTROL,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TRS
                                                                     ̲TIMEOUT
                                                                     ̲ERROR,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     MONITOR
                                                                     ̲REPLY,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TIMEOUT
                                                                     ̲ID)

         END CASE

      TIMEOUT ̲CANCELLED   ?

      OTHERWISE      ?    TRS ̲INTERNAL ̲ERROR (PTP ̲TIMER
                          ̲CONTROL,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TRS
                                                                     ̲TIMEOUT
                                                                     ̲ERROR,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     MONITOR
                                                                     ̲REPLY,
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     TIMEOUT
                                                                     ̲ID)

END CASE

RESTORE ̲LINK

RETURN




             Flowgram 4.2.4.4.18.5-1



4.2.4.4.19   O̲C̲R̲ ̲T̲r̲a̲f̲f̲i̲c̲ ̲S̲t̲a̲t̲u̲s̲ ̲C̲o̲n̲t̲r̲o̲l̲



4.2.4.4.19.1 F̲u̲n̲c̲t̲i̲o̲n̲a̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         The OCR ̲TFC ̲CTL module supplies the OCR ̲TC ̲COROUTINE
         which contains the basic logic related to transport
         control for OCR.

         The following main tasks are performed:

         -   Transfere of command from channel command queue
             (CCQ) is initiated.
         -   Reception of operations from the MAIN ̲WAITING point,
             TC ̲OPSEM.

         -   Decoding of received operation and activation of
             action related to the operation.

         The following procedures are included:

         -   CLOSE ̲ACKNOWLEDGE
         -   INPUT ̲OCR ̲COMMAND
         -   DECODE ̲OCR ̲TC ̲OPERATION
         -   OCR ̲TC ̲COROUTINE (module entry point)



4.2.4.4.19.2 M̲o̲d̲u̲l̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲

         C̲a̲l̲l̲ ̲S̲p̲e̲c̲i̲f̲i̲c̲a̲t̲i̲o̲n̲

         a)  OCR ̲TC ̲COROUTINE

         b)  OCR ̲TC ̲COROUTINE (R6)

         R̲e̲g̲i̲s̲t̲e̲r̲ ̲C̲o̲n̲v̲e̲n̲t̲i̲o̲n̲s̲

         R6          LINK                  (destr.)

         R̲e̲t̲u̲r̲n̲ ̲R̲e̲g̲i̲s̲t̲e̲r̲s̲

         None

         The module is implemented with an endless loop.


4.2.4.4.19.3 M̲o̲d̲u̲l̲e̲ ̲C̲o̲m̲p̲o̲n̲e̲n̲t̲s̲

         Equal to PTR Traffic Status Control, see 4.2.4.4.5



4.2.4.4.19.4 D̲a̲t̲a̲ ̲D̲e̲s̲c̲r̲i̲p̲t̲i̲o̲n̲

         All data structure used by OCR Traffic Status Control
         are defined in section 4.2.3.5.



4.2.4.4.19.5 M̲o̲d̲u̲l̲e̲ ̲D̲e̲s̲i̲g̲n̲

         The module containing only one procedure which calls
         the PTR ̲TC ̲COROUTINE defined in section 4.2.4.4.5.

         Before the PTR ̲TC ̲COROUTINE is called the Queue References
         for PTR (defined in the TRS ̲DATA module) are updated
         with MAIN QUEUE values related to the OCR.



4.2.4.5  C̲o̲m̲m̲o̲n̲ ̲S̲u̲b̲p̲a̲c̲k̲a̲g̲e̲ ̲D̲a̲t̲a̲

         Ref. Transport Subpackage Data section 4.2.3.5.



4.2.4.6  C̲o̲m̲m̲o̲n̲ ̲S̲u̲b̲p̲a̲c̲k̲a̲g̲e̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲s̲

         This module contains a number of auxillary procedures
         common for TRANSFER CONTROL modules. The following
         functions have been implemented.

         -    Save ASM ̲REQUEST in fending ASM table
         -    Restore ASM ̲REQUEST from pending ASM table
         -    Send ASM request to CTS
         -    Init pending ASM control

         -    Update TRS table through TMP
         -    Read TRS table through TMP

         -    Init transfere of command from channel command
              queue
         -    Input command from channel command queue

         -    Return acknowledge to supervisor
         -    Return acknowledge to SSC

         -    Generate statistics for CHANNEL AVAILABILITY

         -    Update channel status

         -    Read stop time

         -    Remove commands from CCQ





4.2.4.6.1     A̲S̲M̲ ̲R̲e̲q̲u̲e̲s̲t̲ ̲H̲a̲n̲d̲l̲i̲n̲g̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲E̲N̲D̲ ̲A̲S̲M̲

         (R0  C  D   TRS ̲ASM ̲TYPE
          R1  C  K   ASM ̲INFO
          R5     D
          R7     R   PRINTER TO TRANSPORT PARAMETERS
          R6)        LINK

         This procedure sends a specific ASM ̲TRANSMISSION ̲REQUEST
         to the OTS.

         If a previous ASM ̲TRANSMISSION ̲REQUEST has not yet
         been acknowledged the new one is inserted into the
         pending ASM table.

         E̲x̲p̲o̲r̲t̲ ̲p̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲S̲A̲V̲E̲ ̲A̲S̲M̲

         (R0  C  K   TRS ̲ASM ̲TYPE
          R1  C  K   ASM INFO
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure inserts an ASM ̲TRANSMISSION ̲REQUEST
         into the PENDING ASM TABLE:

         Fatal error: No more room for pending ASM

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲S̲T̲O̲R̲E̲ ̲A̲S̲M̲

         (R0  C  D   TRS ̲ASM ̲TYPE
          R1  C  K   ASM ̲INFO
          R5     D
          R7     R   PRINTER TO TRANSPORT PARAMETERS
          R6)        LINK
              ERROR ̲OK

         The procedure restores an ASM ̲TRANSMISSION ̲REQUEST
         from the pending ASM table.

         EXITS: ERROR - NO ASM PENDING
                OK    - PENDING ASM AVAILABLE





         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲I̲T̲ ̲P̲E̲N̲D̲I̲N̲G̲ ̲A̲S̲M̲

         (R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6  C  D   LINK

         This procedure will initialize the pending ASM control
         within running subprocess.



4.2.4.6.2     T̲a̲b̲l̲e̲ ̲A̲c̲c̲e̲s̲s̲ ̲T̲h̲r̲o̲u̲g̲h̲ ̲T̲M̲P̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲U̲P̲D̲A̲T̲E̲ ̲T̲R̲S̲ ̲T̲A̲B̲L̲E̲

         (R0  C  D   TABLE ID
          R1  C  D   POINTER TO FIELDS
          R2  C  D   WRITE MASK
          R3  C  D   PRIMARY KEY
          R4  C  D   POINTER TO UPDATE PARAMS (SEE TCS BELOW)
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6  C  D   LINK

         This procedure contains a WAITING ̲POINT.

         The procedure updates a specified no. of fields within
         a record of a specified TMP TABLE.

         The fields are indicated by a mask.

         The record is indicated by a PRIMARY KEY.

         The procedure is intended for updating the following
         tables:

         T̲A̲B̲L̲E̲ ̲I̲D̲                        P̲R̲I̲M̲A̲R̲Y̲ ̲K̲E̲Y̲

         ACP ̲127 ̲CHANNEL ̲TABLE           LOGICAL ̲CHANNEL ̲NO
         CIRCUIT ̲CONNECTIVITY ̲TABLE      LOGICAL ̲CIRCUIT ̲NO

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲A̲D̲ ̲T̲R̲S̲ ̲T̲A̲B̲L̲E̲

         (R0  C  D   TABLE ID
          R1  C  D   POINTER TO AREA TO HOLD RECORD
          R2  C  D   SIZE OF RECORD
          R3  C  D   PRIMARY KEY
          R4  C  D   POINTER TO SEARCH ̲PARAMS (SEE TCS BELOW)
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6  C  D   LINK



         This procedure contains a WAITING ̲POINT.

         The procedure reads a record from a table through TMP.

         The procedure only reads the record specified by a
         primary key of type: INTEGER.

         The procedure is intended for reading from the following
         tables:

         T̲A̲B̲L̲E̲ ̲I̲D̲                        P̲R̲I̲M̲A̲R̲Y̲ ̲K̲E̲Y̲

         DEVICE ̲TABLE                    LOGICAL ̲DEVICE ̲NO
         CHANNEL ̲PROFILE ̲TABLE           LOGICAL ̲CHANNEL ̲NO
         ACP ̲127 ̲CHANNEL ̲TABLE           LOGICAL ̲CHANNEL ̲NO
         CIRCUIT ̲TABLE                   LOGICAL ̲CIRCUIT ̲NO
         CIRCUIT ̲CONNECTIVITY ̲TABLE      LOGICAL ̲CIRCUIT ̲NO
         LTUX ̲LINE ̲TABLE                 LTUX ̲LINE ̲NO(FROM PORT
                                         ̲ID)
         LTU ̲LINE ̲TABLE                  LTU ̲LINE ̲NO(FROM PORT
                                         ̲ID)

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲A̲D̲ ̲C̲H̲A̲N̲N̲E̲L̲ ̲T̲A̲B̲L̲E̲

         (R6) C  D   LINK

         All registers are destroyed.

         This procedure is intended to be called after a start
         up command from SSC.

         This procedure will read the followin tables through
         TMP:

         -    CHANNEL PROFILE
         -    ACP ̲127 ̲CHANNEL ̲STATUS
         -    CIRCUIT ̲PROFILE
         -    CHANNEL ̲PR ̲CIRCUIT FROM CIRCUIT ̲CONNECTIVITY ̲TABLE
         -    CHANNEL SPEED FROM LTUX ̲LINE ̲TABLE/LTU ̲LINE ̲TABLE

         To read the CHANNELS ̲PR ̲CIRCUIT and speed the procedure
         makes use of the data structure OUT ̲EMF ̲BUFFER within
         the running subprocess.





4.2.4.6.3     C̲h̲a̲n̲n̲e̲l̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲A̲c̲c̲e̲s̲s̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲I̲T̲ ̲C̲O̲M̲M̲A̲N̲D̲ ̲T̲R̲A̲N̲S̲F̲E̲R̲E̲

         (R0  C  D   POINTER TO QEL ATTRIBUTES
          R1  C  D   POINTER TO QUEUE REFERENCE
          R2  C  D   OPERATION TYPE
          R3  C  D   PRIORITY FOR OPERATION
          R4     D   
          R5     D   
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure contains a WAITING ̲POINT.

         The procedure initiates the transfere of a command
         from specified channel command queue.

         The answer is associated to TC ̲OPSEM of the running
         subprocess (MAIN ̲WAITING point for transport control).

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲I̲N̲P̲U̲T̲ ̲T̲R̲S̲ ̲C̲O̲M̲M̲A̲N̲D̲

         (R0     R   MAINTYPE
          R1     R   SUBTYPE
          R2     R   QEL REFERENCE
          R3     R   FLAGS
          R4     R   POINTER TO INF
          R5  C  K   POINTER TO OPERATON RELATED TO COMMAND(QEL)
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  C   LINK

         This procedure contains a WAITING ̲POINT

         The procedure inputs a command from channel command
         queue indicated by an operation.

         Maintype, Subtype, Flags and INF ̲POINTER are extracted
         from QEL attributes and returned in registers together
         with the QEL ̲REFERENCE related to command.

         The operation is returned to TRS ̲OP ̲POOL of the running
         subprocess.

         QEL ref is saved into transport parameters.



         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲M̲O̲V̲E̲ ̲T̲R̲S̲ ̲C̲O̲M̲M̲A̲N̲D̲S̲

         (SUBQUEUE : TRS ̲SUBQUEUE
          R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This pocedure will remove all commands from the channel
         commmand queue.



4.2.4.6.4     C̲h̲a̲n̲n̲e̲l̲ ̲C̲o̲m̲m̲a̲n̲d̲ ̲A̲c̲k̲n̲o̲w̲l̲e̲d̲g̲e̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲T̲U̲R̲N̲ ̲S̲S̲C̲ ̲A̲C̲K̲

         (R0  C  D   QEL ̲REFERENCE
          R1  C  D   SSC ̲RESPONSE TYPE
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure returns an acknowledge to SSC as a reply
         for the commands:

         -    START ̲EXC
         -    STOP ̲EXC
         -    START ̲SAD
         -    STOP ̲SAD
         -    CLOSE ̲DOWN

         The QEL related to the command is dismantled from CCQ.

         Interface: CPS/ICD/009  4.2.1.4.9

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲T̲U̲R̲N̲ ̲S̲S̲C̲ ̲A̲C̲K̲

         (R0  C  D   QEL ̲REFERENCE
          R1  C  D   SUBTYPE OF COMMAND
          R2  C  D   REPLY RESULT (ERROR ̲OK)
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK



         This procedure returns an acknowledge to the supervisor
         as a reply for the commands:

         -    OPEN FOR INCOMING TRAFFIC
         -    CLOSE FOR INCOMING TRAFFIC

         The QEL related to the command is dismantled from CCQ.

         Intercace: CPS/ICD/009  5.2.2.17



4.2.4.6.5     C̲h̲a̲n̲n̲e̲l̲ ̲S̲t̲a̲t̲u̲s̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲U̲P̲D̲A̲T̲E̲ ̲C̲H̲A̲N̲N̲E̲L̲ ̲S̲T̲A̲T̲U̲S̲

         (R1  C  D   TRS ̲INPUT ̲OUTPUT
          R2  C  D   CLOSED OPEN
          R7     R   POINTER TO TRANSPORT PARAMS
          R6) C  D   LINK

         Reg. R0, R3, R4, R5 are destroyed.

         This procedure will update the channel status for input
         and output.

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲C̲H̲N̲ ̲A̲V̲A̲I̲L̲ ̲S̲T̲A̲T̲

         (R0     D
          R1  C  D   INPUT ̲OUTPUT
          R2  C  D   CLOSED ̲OPEN
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure generates statistics related to CHANNEL
         AVAILABILITY.

         Interface: CPS/ICD/009  3.3





4.2.4.6.6     C̲h̲a̲n̲n̲e̲l̲ ̲S̲t̲o̲p̲ ̲T̲i̲m̲e̲

         E̲x̲p̲o̲r̲t̲ ̲P̲r̲o̲c̲e̲d̲u̲r̲e̲ ̲R̲E̲A̲D̲ ̲S̲T̲O̲P̲ ̲T̲I̲M̲E̲

         (R0     D
          R1     D
          R2     D
          R3     D
          R4     D
          R5     D
          R7     R   POINTER TO TRANSPORT PARAMETERS
          R6) C  D   LINK

         This procedure reads the STOP ̲TIME to be used in transport
         subprocess during a START ̲UP:

         If the TRS ̲INIT ̲INDICATOR is true the stop time is
         taken from the system parameter OLD ̲CLOCK ̲PARAMETER.

         If the TRS ̲INIT ̲INDICATOR is false the stop time is
         taken from the DATE ̲TIME within the transport parameters.

         The TRS ̲INIT ̲INDICATOR is set to false at return.



4.2.4.7  S̲u̲b̲p̲a̲c̲k̲a̲g̲e̲ ̲I̲n̲t̲e̲r̲f̲a̲c̲e̲



4.2.4.7.1     T̲H̲P̲ ̲I̲n̲t̲e̲r̲n̲a̲l̲

         a)   A̲A̲S̲ ̲t̲o̲ ̲T̲C̲S̲

              Flash Notif to PTP.
              (ref. CPS/ICD/009, section 5.6.2.2)

              Commands to SCARS/CCIS
              (ref. CPS/ICD/009, section 5.6.2.3 and 5.6.2.4)

              Commands to TRC/P TO P
              (ref. CPS/ICD/009, section 5.6.2.5 and 5.6.2.6)

              Commands to NICS TARE
              (ref. CPS/ICD/009, section 5.6.2.7 and 5.6.2.8)

         b)   A̲C̲S̲ ̲t̲o̲ ̲T̲C̲S̲

              Flash Notif

              (ref. CPS/ICD/009, section 5.6.4.3)





4.2.4.7.2     T̲H̲P̲ ̲E̲x̲t̲e̲r̲n̲a̲l̲

         a)   S̲S̲C̲ ̲t̲o̲ ̲T̲C̲S̲

              Start, Close Down and stop commands.
              (ref. CPS/ICD/009, section 4.2.1.4.1 and 4.2.1.4.2)

         b)   T̲C̲S̲ ̲t̲o̲ ̲S̲S̲C̲

              Command Acknowledge
              (ref. CPS/ICD/009, section 4.2.1.4.2 and 4.2.1.4.4)

         c)   T̲E̲P̲ ̲t̲o̲ ̲T̲C̲S̲

              Supervisor Commands
              (ref. CPS/ICD/009, section 5.2.1.6 and 5.2.1.7)

         d)   T̲C̲S̲ ̲t̲o̲ ̲T̲E̲P̲

              Supervisor Command Acknowledge
              (ref. CPS/ICD/009, section 5.2.2.17)

              Unknown ASM to Supervisor Printer
              (ref. CPS/ICD/009, section 5.2.2.11)

              Reports to Supervisor Printer
              (ref. CPS/ICD/009, section 5.2.2.12)

         e)   T̲C̲S̲ ̲t̲o̲/̲f̲r̲o̲m̲ ̲L̲O̲G̲

              Discontinuity Log.
              (ref. CPS/ICD/009, section 5.4.2.3)

              Note that the discontinuity log information is
              collected and stored into a record by the ITS.

              Outgoing Log.
              (ref. CPS/ICD/009, section 5.4.2.4 and 5.4.2.5)

              Note that the outgoing log information is collected
              and stored into a record by the OTS.

              Log Acknowledge
              (ref. CPS/ICD/009, section 5.4.1.2, 5.4.1.3, 5.4.1.4.