VALIDATION OF PROCEDURES

Abstract: A method of validating a procedure allows several processes to be involved in the validation of a single event. The method involves defining relationships between FSMs which describe the entities, selecting the processes which fulfill certain criteria, and processing the event in all of the selected processes.

Description: VALIDATION OF PROCEDURES This invention relates to a method of validating a procedure in a network protocol. In particular, the invention relates to a network protocol such as the Intelligent Network Application Protocol (INAP) required for support of Capability Set 1 (CSl) defined in the European Telecommunication Standard ETS 300 374. In a protocol such as INAP CSl, there exist a number of valid procedures, or sequences of operations, which can be carried out to perform specific tasks. However, since the number of possible procedures is large, the valid procedures are not defined directly, but rather are defined by means of a set of rules. Any procedure, or sequence of operations, which does not violate these rules, is then considered a valid procedure . In the prior art, the rules can be described by defining a finite state machine (FSM) in respect of each entity, and each interface, an interface being a boundary between two entities . The FSM then acts as a model for the behaviour of a process. An FSM consists of states, which can be connected to each other. A process can only be in one state at any one time, but can move from one state to a connected state as a result of an event. On the transition from one state to another, actions can be performed. When using an FSM to validate a procedure in a network protocol, the events which control the FSM are then operations defined in the protocol, or other events coming from other processes, such as the call process. The rules, which define the valid procedures in a network protocol such as INAP CSl, are the Single Association Control Function (SACF) and Multiple Association Control Function (MACF) rules. The SACF rules apply where there is a single association, and the MACF rules apply where there are several related associations, an association being a signalling channel, using a specific interface, which allows communication between two entities. Unfortunately, describing all of the SACF rules and MACF rules formally with a single FSM requires an excessively complex FSM. The result is that many procedures, including all MACF procedures, are still defined in natural language. There are no mechanisms to validate rules for this type of procedure, namely procedures which cannot be specified in terms of a single FSM per association. The present invention is concerned with a method of validating a procedure by allowing the rules to be specified by multiple FSMs . Specifically, several processes, each running a specific FSM, are allowed to be involved in the validation of a single event. The validation of an event takes place in two phases. Firstly, the relevant processes are selected, by assessing whether they met specific criteria. In the second processing phase, all of the selected processes process the event. This has the advantage that all of the involved processes are in a stable state, before an event is processed by any of them. For a better understanding of the present invention, reference will now be made, by way of example, to the accompanying drawings. Figure 1 is a representation of two FSMs which share a container interface. Figure 2 represents a situation in which a process Ax, -running A, includes two processes Bx and By, running B . Figure 3 represents an FSM, which itself consists of a number of other FSMs. Figure 4 represents the FSM for the session-view. Figure 5 represents the FSM for the call -view. Figure 6 represents the FSM for the Cp or Ap. In accordance with the invention, the validation of a procedure may involve several processes, and the first phase of the validation includes selecting the processes which are to be involved in the validation. The selection of the processes uses criteria based on the characteristics and interrelationships of the FSMs which represent the respective entities and interfaces. Firstly, it is determined whether any of the FSMs share a "Container Interface" . Figure 1 is a representation of two FSMs A and B which share a container interface. When two FSMs share this type of interface, then one is said to be included in the other, which in its turn contains the first. In the example of Figure 1, FSM A contains FSM B, and FSM B is included in FSM A. A first FSM, included in a second FSM, is by definition also included in any third FSM that contains the second FSM. That, is if A is included in B, and B is included in C, then by definition A is also included in C. It can be said that A is indirectly included in C. Unless mentioned otherwise, the term "included", as used herein, means both directly and indirectly included, and as such could specify a relation between more then two FSMs. Interactions between processes via an association on a Container Interface are treated differently from other types of interaction. An interface can be classified as a container- interface if the following applies to both FSMs: an FSM is only directly included in one other FSM; an FSM is not included in itself; a process running an FSM does not have associations with more than one process that runs an FSM in which the first is directly included. Returning to Figure 1, therefore, a process running FSM B will only have an association with a maximum of one process running FSM A. A process running FSM A may however have associations with several processes running FSM B (these associations are thus related in the process running FSM A) . A or B may also have other (non-container) interfaces. In Figure 1, FSM B is shown as having one other interface II. Details of inclusion-relations can easily be stored in a system in the form of a tree, hereafter referred to as an FSM-tree. The root of the FSM-tree is an FSM that is not included in any other FSM. The leaves of the FSM-tree are FSMs that do not contain any other FSM. The concept of inclusion also applies to processes : one process is included in another process if the FSM, which is run by the first, is included in the FSM run by the second. Additionally the two processes must also be associated, either directly or indirectly, via a process with which they both are (directly or indirectly) associated. For example, Figure 2 represents a situation in which a process Ax, running A, includes two processes Bx and By, running B. Like FSMs, details of these inclusion-relations can easily be stored in a system in the form of a tree, hereafter referred to as a process-tree. When scanning the process-tree, either a separate data-structure can be used, or the associations between the processes can be used. The set of processes that are within one and the same process-tree form one basis for the selection-process . The second characteristic used in defining the selection criteria for the processes is the "Container Context", which is a set of pre-defined values, identifying different possible contexts of an event to be validated. Different events, using the same association, may thus have different contexts. For example, in CSl, some operations are within the context of a single party involved in the call. Processes may also be allocated a Container Context. In this case, this identifies a relationship between an event and a specific process. Thus, when an event (the "current event") is to be validated, it is possible to identify a set of processes that matches the Container Context of the current event . The allocation of Container Contexts is carried out by allocating to each FSM a set of Container Contexts: Fx = {CCl, CC2, ..., CCn} . A Container Context cannot be allocated to an FSM if it has already been allocated to an FSM which it contains, or is included in. This is to be checked by the system when Container Contexts are allocated to FSMs . An event can be allocated a single Container Context. This Container Context is then also allocated to the current event, and is referred to as the "current Container Context". Given the set of events that may arrive on a certain interface, all possible Container Contexts for the set of events must have been allocated to an FSM which is, contains, or is included in the FSM that shares the interface . Each process in a process-tree is allocated a Container Context from Fx, such that different processes running the same FSM, and part of the same process-tree, are allocated different Container Contex s. For example, in a protocol, there may be 30 possible leg-ids that each can be used as a Container Context. Some operations apply to the whole call (e.g. ReleaseCall) , and they will have the call as Container Context. An operation that can have a leg-id as parameter is seen as 30 separate events (one for each possible leg- id) . This requires an analysis of the operation in order to map it to one of the 30 possible events (i.e. the leg-id parameter, or the default leg-id value, determines the mapping from operation to event) . The third characteristic used in defining the selection criteria for the processes is the "Container Actions", which is a special set of actions that can be specified at state-transitions in an FSM. These actions may affect the processing of the current event by other processes . For example they may cause another process not to process the event, even though it was designated to do so. Each system will have a number of Container Actions defined. Since Container Actions may influence other processes, conflicts may arise when several processes execute Container Actions that affect each other. The system must have specified clear interactions between these Container Actions. For example, Container Actions with higher priority exclude all Container Actions with lower priority (for the current event) . The principles used for defining these interactions are not described further herein; it is assumed that the system, given a set of Container Actions, can identify a sub-set of Container Actions that will be allowed. This sub-set is hereafter referred to as the current "Container Actions". In order for the system to be able to co-ordinate the different Container Actions from different processes, two stages are required prior to processing an event . Firstly, given a set of processes that may process the event, the Container Actions are collected that these processes will execute once they process the event . This will require pre-processing of an event by the processes involved: the resulting state-transitions are determined (since these determine the actions that will be performed) , but are not performed. Secondly, based on the collected Container Actions, and the priority defined between them in the system, the system will create the current Container Actions. When an event is to be processed by a set of processes, their Container Actions may have to be co-ordinated, in order to avoid the same action being executed twice . As described above, the first phase of the validation includes selecting the processes which are to be involved in the validation, using criteria based on the characteristics described above. Even though there is a process that receives the event initially via an association, the event will not be processed immediately by that process. Although the receiving process always will be selected as a result of the selection-phase, it is only when it has been selected that the process may process the event. As part of the selection phase, it is determined if there is a current Container Context. If there is no current Container Context, then only the process that received the event is selected. If there is a current Container Context, then any process that fulfils the two following criteria will be selected. Firstly, the process must either hold, or contain a process that holds, or be included in a process that holds the Container Context, which in its turn is, contains, or is included in the process that received the event. Secondly, the process must not execute any Container Actions other than one of the current Container Actions. The selection-phase starts by examining the process that received the event. From there, the process-tree is scanned towards the root and towards the leaves. For every process scanned, it is checked whether it matches the Container Context. Each matching process is added to the selection. Several optimisations apply. Firstly, if a matching process contains the process that received the event, then there will not be any other matching process . This is because a Container Context cannot be allocated to an FSM, if that FSM already contains, or is included in, an FSM that has the Container Context allocated. Secondly, if a matching process has been found, then there will not be any other matching process that runs the same FSM. This will give at least one matching process, and, for every matching process found, the process-tree is again scanned towards the root and leaves . Each matching process is now added to the selection, provided it has not previously been selected. Then, as discussed previously, the event is pre-processed by all of the selected processes. This will result in the current Container Actions, which in turn determine the final set of processes in the selection. For the selection-process to work properly, it must appear as if the complete process-tree is available before the first event is validated. This means that, for every FSM, a process must exist in the process-tree for any Container Context allocated to it (even if it may be in state Idle) . The overhead this would give is unacceptable for any system. The following method can be used to create processes on demand: - If, during the selection-process, the end of the tree is reached (which process is hereafter referred to as: last process), but the FSM run by the last process (referred to hereafter as the last FSM) is not the root or leaf of the corresponding FSM-tree, then: - When scanning towards the root, one process is created for the FSM in which the last FSM is directly included, if that FSM is or is included in an FSM that has specified a state-transition from Idle for the current event, with an action other than 'no action' . - When scanning towards the leaves, one or more- process is created for each FSM directly included in the last FSM and which is or contains an FSM that has specified a state-transition from Idle for the current event, with an action other than 'no action' . One process is created for the FSM if its Fx has the current Container Context as a member, or if its Fx is empty. Otherwise, one process for each member of the FSM's Fx is created. An association is then established with each process, after which tracing continues . The system must know for each FSM for which events it will specify an action other than 'no action', if received in state Idle. Processes can be removed, and any associations on container interfaces it has can be released, when it is in state Idle, and it does not contain any other processes. A situation may arise where a process is not in state Idle, but no longer has any associations, i.e. the process hangs. The system can detect this because the process is then a root as well as the only leaf. The system generates a special event in that case, e.g. 'orphaned', on which the process should go to Idle (if not, then it is considered an error) . After the selection-phase is complete, and a group of processes has been selected, each selected process prodesses the event independently of the other selected processes. The event can then be validated. Since events may arrive on different associations, and a subsequent event cannot be processed until a previous event has been processed, queuing is required. An event is queued if there are already events queued, or if there is already a current event. Events are queued for the root-process of the process that received the event. Different queues may apply, depending on how many different priorities there are. Events received via Container Interfaces have higher priority than events received via other type of interfaces. Thus, queues for these events must be empty before an event from another queue can be taken. This gives all involved processes the chance to update each other before the next event to he validated is received. The invention will now be described in more detail with reference to its application to a specific example, taken from the Ericsson CS1+ INAP protocol for IN, which is described by a number of FSMs . One of these FSMs is the SSF-FSM, which itself consists of a number of FSMs, as shown in Figure 3. Thus, the Session-view FSM contains the Call-view FSM, which in turn contains the Cp and Ap FSMs. The Cp and Ap FSMs share an interface, but this is not a Container Interface. The Call-view FSM has external interfaces with the call and the SCF (Service Control Function) . It is on these interfaces that events may arrive which have to be verified against SACF- and MACF-rules. The following Container-Actions are identified (presented in priority order) : bufferEvent. The event is buffered (the buffering-mechanism itself is not described here) . No error-procedures are followed. rejectEvent. The event is rejected: an error-procedure is followed. Figure 4 represents the FSM for the session-view, which specifies the MACF-rules for INAP. There is one MACF-rule: several associations to several SCFs may exist simultaneously, but only one can control the call. There are no operations which have the session-view as Container Context. Since the session-view includes all other FSMs, the session-view is always involved in the validation of every event. A new association with the SCF is only allowed when the FSM for the session-view is in the state Idle, or Monitor Relations. So, when the FSM for the session-view is in the state Control Relation, the operation InitialDP (which starts a new association with the SCF) is rejected. The operation is then ignored . Figure 5 represents the FSM for the call-view process, which specifies SACF-rules for the associations with the SCF, and the call. There is one call-view process per association with the SCF. The FSM represents the configuration of a call, as seen from a single SCF-process. There are a few operations which have the call-view as Container Context, for example ReleaseCall . The states: Setup, Pending and Active correspond to states in the BCSM. While in Setup, the SCF may still collect digits from the user using normal CCF-procedures (operation Collectlnformation) . Once in Pending, this is no longer possible (Collectlnformation rejected) . While in Active, the SCF cannot route the call (Connect rejected) . The call can only return to Pending by a certain event from the call . Once in Surrogate, the party that initiated the call has left the call. It is then no longer possible for the SCF to route the call (the event from the call that caused the FSM to transit from Active to Pending, will now cause a state-transition to the same state with no action) . Once in Monitoring Relation, the SCF can no longer control the call, but may monitor events happening in the call (all controlling operations are rejected) . It should be noted that, when entering the Monitor Relation state, an event is generated by this FSM, and sent to the session-view (in order to cause a state-transition to Monitor Relations) . Figure 6 represents the FSM for the Cp or Ap . The Cp and Ap have identical states. Within a call-view there can only be one Cp-view, but there may be several Ap-views. The Cp or Ap specifies SACF-rules for the association with the SCF, and the call, for those operations in which the Cp or Ap are involved. The FSM represents the synchronisation procedures between the SSF and SCF, and the procedures to interact with a call-party (other than using the normal CCF-procedures) . There are no operations that have the Cp or Ap as Container Context. Which of the views is involved is determined by the FSM contained in the Cp and Ap, the leg. There is an interface between the Cp and Ap, as shown in Figure 3, which is used to move legs from one view to another (in effect, it means that the included process for the leg is released, and a new one is started on the other side) . In state WFI in the FSM, the Cp- or Ap-process is synchronised with the SCF, although the synchronisation may be broken if the user hangs up (event coming in from a CLSM-process) . It should be noted that different Ap-processes are consequently not synchronised together, and not with the Cp-process: the synchronisation does not apply to the complete call. While user-interaction is ongoing (the FSM is in state User Interaction WFI, or User Interaction Processing) , all operations will be buffered by the Cp, except DisconnectForwardConnection. The buffer is released when the FSM transits back to WFI or Processing. The Ap only buffers ReleaseCall, and this is only buffered locally, i.e. without affecting other FSMs. Therefore, the Ap does not use a Container Action for this. With the FSM in the state Processing, the SSF and SCF run concurrently, i.e. they are not synchronised. The FSMs for the legs in the Cp and Ap are identical, including all state-transitions, actions etc. These FSMs have only Idle and Active states. These FSMs serve as a Container Context for operations. Because the legs are identical in the Cp and Ap, and because each only has one state (beside Idle) , a leg-process can be 'moved' from Ap to Cp and vice versa by transitting the existing process from Active to Idle, and transitting a new one (in the target view) from Idle to Active. The location of the leg thus determines whether the Cp-view, or an Ap-view, is going to be involved. The concept of "legs" represent network-resources allocated to a single party in a call. There can only be one leg in an Ap, but there may be several legs in the Cp. Based on this, it is possible to determine the criteria which are to be used in selecting the processes which should process an event during the validation. It should be noted that the concept of Container Interfaces can in general be used to describe the behaviour of a system, or part of a system, to external triggers (i.e. coming from other systems or part of the same system) .

Claims: CLAIMS 1. A method of validating an event in a network comprising a plurality of processes, the method comprising: selecting from all processes those processes which meet predetermined criteria,- and processing the event in all of the selected processes independently. 2. A method as claimed in claim 1, wherein the event is received at a first process, and the method comprises delaying processing the event in the first process until the selecting step is completed. 3. A method as claimed in claim 1 or 2 , wherein the step of selecting those processes which meet predetermined criteria comprises .- selecting a first set of processes which meet a first set of criteria; pre-processing the event in the first set of processes; and selecting a second set of processes on the basis of the result of the pre-processing. 4. A method as claimed in claim 1, 2 or 3 , wherein the step of processing the event comprises queuing a received event until a previously received event has been processed. 5. A method as claimed in claim 1, wherein the selecting step comprises defining relationships between FSMs representing the processes, including defining container interfaces between the processes.

Inventors: ABEN FREEK, CROUGHAN LOUISE, JELLEMA BART, PEEREN RENE, ABEN, FREEK, CROUGHAN, LOUISE, JELLEMA, BART, PEEREN, RENE
Applicants: ABEN FREEK, CROUGHAN LOUISE, ERICSSON TELEFON AB L M, JELLEMA BART, PEEREN RENE, ABEN, FREEK, CROUGHAN, LOUISE, JELLEMA, BART, PEEREN, RENE, TELEFONAKTIEBOLAGET LM ERICSSON
Application year: 1997
Main classification: H04Q3
IPC codes: H04L29, H04M3, H04Q3