as can be seen in fig2 in which parts identical to those of fig1 are marked with the same reference symbols , a protocol monitor pm is connected to the communication medium m in such a manner that the former is capable of capturing the data exchanged between communication participants a and b via the communication medium cm . in this process , the protocol monitor pm simultaneously also reads all the messages exchanged without changing them and without influencing the communication between a and b in any way . the protocol monitor pm does not receive any further information ; in particular , it does not have access to the service primitives exchanged with the users of communication participants a or b , said primitives being schematically shown in fig2 indicated by arrows pf 1 and pf 2 . more information on said service primitives may likewise be gathered from the above mentioned publication . before proceeding with the description of the method according to the invention , we consider it necessary to make a few preliminary remarks : for determining both communication states and protocol violations , a description of the protocol on which the communication is based is required which is included in the protocol monitor pm . the appropriate and usual principle for defining communication protocols is the extended finite state machine ( efsm ) as described for example in the textbook by d . hogrefe entitled “ estelle , lotos and sdl : standard - spezifikationssprachen fur verteilte system ”, springer compass . springer verlag , berlin , heidelberg , new york etc ., 1989 . it is a generalization of the finite state machine ( fsm ) explained for instance in “ proceedings of the 1994 international symposium on software testing and analysis ( issta )”, acm sigsoft software engineering notes , special issue , pages 109 to 124 , august 1994 . in conventional protocol standards , a communication protocol is always described — on different formality levels — based on this state automaton principle . for this reason , the protocol definition contained in the protocol monitor pm is likewise based on an extended finite state automaton . in the following , a protocol automaton , designated m , constitutes the extended finite state automaton which predetermines the rules for the behaviour of communication participant a that can be observed on the communication medium cm . just as any common extended finite state automaton , the protocol automaton m also contains a number of states and state variables , with each variable at any time having a certain value from its range of values . the communication protocol to be monitored is defined on the basis of such a protocol automaton m . in accordance with the invention , a test automaton f is used by means of the protocol monitor pm which former contains the same states and state variables as the protocol automaton m . however , each state variable in the test automaton f may at any time be allocated a whole selection of values from the range of values of the corresponding state variable in the protocol automaton m . expressed in mathematical terms , the test automaton f constitutes an extended finite state automaton having state variables of the same name as the protocol automaton m , but whose range of values are the power sets of the corresponding value ranges from the protocol automaton m . let &# 39 ; s assume now that the protocol automaton m contains a state variable “ colour ” which can take the values “ black ” and “ white ”. the corresponding state variable “ colour ” of the test automaton f may then symbolize any subset of this 15 range of values , its four possible occupancies thus being {}, { white }, { black } and { black , white }. each occupancy of the state variables of the test automaton f represents a plurality of states for the protocol automaton m which are to be taken into account . a state of the test automaton f may thus be considered a coarse state description for the protocol automaton m . for example , the last one of the four possibilities mentioned in the example indicates that nothing is known about the occupancy of the state variable “ colour ” of the protocol automaton m . once all state variables of the test - automaton f have been assigned the entire value range of the relevant state variables of the protocol automaton m in such a manner , then this implies that the entire state of the protocol automaton m is completely unknown . this is the typical situation at the time of the communication connection test start . the state transitions of the test automaton f to be used for performing the method according to the invention , in the following referred to as transitions , are directly derived from the transitions of the protocol automaton m . since there has not been any uniform definition for extended finite state automatons in the specialist literature so far , it seems necessary , in order to facilitate an understanding of what will be set out further below , to define the kinds and components of transitions in the meaning as used hereinafter . this is a logical function which determines — as a function of the basic state and the values of the state variables of the protocol automaton m — whether the transition will be able to switch in a given state . for the special case of a — non - extended — finite state automaton , the state condition will just define the initial state of a transition . the switching of a transition may be initiated by the reception of a message from the communication participant which - is being monitored . the type of such message as well as the expected values of parameters which may have been coded into such message will determine the input behaviour of the transition . the expected message parameters may - be determined as a function of the state variables of the protocol automaton m . a transition will be able to switch from a given state if , and only if , such state fulfills the state condition and a message is received which is conformal with the specification of the input message of the transition . if the transition does not come with an input message , the second half of the condition will not apply . when a transition is switched , an output message may be generated . the type of such message as well as the admissible values of message parameters determine the output behaviour of the transition . the admissible message parameters may be determined as a function of the state variables of the protocol automaton m . if the transition does not come with an output message , then no output will be generated when the transition is being switched . this is a function which determines the sequential occupancies of - all state variables after switching - of the transition based on a state of the protocol automaton m and potential message parameters of the input and output messages . for the special case of a — non - extended — finite state automaton , the state transformation will just indicate the target state of the transition . a numerical constant which will be used for selecting the switching transition when there is a plurality of switchable transitions . if transitions t 1 and t 2 are switchable as defined in the above mentioned conditions , transition t 1 will exclude competing transition t 2 from the next state transition if , and only if , the following two conditions have been fulfilled : t 1 does not expect an input message , or t 2 expects an input message . the second condition will prevent input transitions from excluding transitions without input . this will ensure that a protocol automaton “ in operation ” can execute other actions before the subsequent input message has actually been received . if , despite this priority rule , several switchable transitions remain , a selection from amongst them will be made on a non - deterministic basis . when the method according to the invention is performed , the protocol monitor pm will monitor the internal state of the observed instance and / or for example communication participant a , namely by means of coarse state descriptions on the side of the test automaton f as set out heretofore . upon test start , test automaton f in the protocol monitor pm will present a totally unknown state of the protocol automaton m at communication participant a in the manner described above . the protocol monitor pm will then apply the transitions defined for the protocol automaton m to its test automaton f . as compared to the above defined term switchability for the transitions in the protocol automaton m , two changes will result therefrom : 1 . the outputs of the exemplarily monitored protocol automaton a are known from observation . consequently , in addition to the question of whether a transition is switchable , there will be the further aspect of switching consistency : a transition which is capable of being switched in one state of the protocol automaton m will be considered to be consistently switchable if , and only if , an output specification which may be associated therewith is compatible with the subsequent output message due to be dealt with in the observed communication . 2 . since each state of the test automaton f will in general represent a number of states of the protocol automaton m , the question of whether a transition is consistently switchable for a state of the test automaton f can no longer always clearly be answered as “ yes ” or “ no ”. if a transition t is consistently switchable for at least one of the occupancies of the state variables of the protocol automaton m represented by a state of the test automaton f , then the switching of transition t will be a potentially correct actual behaviour of communication participant a at this time . in such case , the protocol monitor pm will execute transition t speculatively . for this purpose , the state of the test automaton f will initially be restricted such that it represents the smallest possible superset of all states of the protocol automaton m for which transition t is consistently switchable . because if - transition t switches in correct compliance with the protocol , then at the most from a state of this smaller state set of the protocol automaton m . subsequently , the state transformation of transition t will be applied to the reduced state of the test automaton f . if , in doing so , constant or observed message parameters are contained in allocations to state variables , this may result in the state of the test automaton f being restricted even further with regard to the number of represented states of the protocol automaton m . that what is mentioned here is the smallest possible a superset and not the exact set of states of the protocol automaton m with switching consistency of transition t is due to the fact that the state variables in the test automaton f independently of each other indicate subsets of the value ranges of the individual state variables of the protocol automaton m . these do not allow to represent all subsets of the state space of the protocol automaton m . since a transition may only be executed speculatively , the protocol monitor pm , starting from one state of the test automaton f , must treat all transitions which are consistently switchable for at least one state of the protocol automaton m in this manner . every speculative execution of a transition will result in a new state of its own of the test automaton f which is generally more restricted though than the initial state . so as to prevent an unlimited increase of the number of states of the test automaton f which need to be taken into consideration , the following rules are to be adhered to : if a newly generated state of the test automaton f represents a ( proper or improper ) subset of the states of the protocol automaton m captured by another state of the test automaton f and has up to that time processed the same messages as the latter , the newly generated state of the test automaton f will be dismissed . if a newly generated state of the test automaton f represents a proper superset of the states of the protocol automaton m captured by another state of the test automaton f and has so far processed the same messages as the latter , then the other state of the test automaton f will be dismissed . based on the messages observed , by means of speculative transition executions and continued restriction of coarse state descriptions , the described method converges to a definite state description , namely a state of the test automaton f which only represents one single state of the protocol automaton m anymore . this essentially concludes the capturing of the communication state . in this process , the detection of errors and / or violations of the communication protocol results as a side product : as soon as no transition can switch from any state of the test automaton f in accordance with the observed flow of messages any longer , this constitutes a violation of the protocol by communication participant a . because the protocol monitor pm has considered all the kinds of behaviour of communication participant a which were in agreement with the protocol up to that time ; however , the present behaviour can no longer in any way be explained by the rules of the protocol . the reduction up to the smallest representable superset of the switchable states according to what has been set out above will guarantee that any state of the protocol automaton m which may be responsible for correct subsequent behaviour will never be left unconsidered . this will ensure — despite the incomplete representability — that all errors detected by the protocol monitor pm always correspond to actual protocol violations on the part of communication participant a . not being able to completely represent coarse state descriptions , however , will result in the possibility that individual protocol violations on the part of communication participant a may theoretically be overlooked as long as there are still states of the test automaton f which represent states of the protocol automaton m . after this synchronization phase which is very short in the method according to the invention , each violation of the protocol will safely be detected . in the following , a simple example is given as a further illustration of the method according to the invention . for this purpose , an exemplary communication protocol will first of all have to be defined and a relevant communication flow will have to be indicated . the example used here is not relevant in practice . it will be referred to as the ini protocol in the following ( ini standing for initiative ). it is a symmetrical protocol with a single message type per transmission direction ( data_in , data_out ). these messages may either be transmitted on one ∩ s own initiative or be the confirmation for a message which was previously received . in order to distinguish these meanings , each message contains a single parameter flag which may only take the values 0 and 1 . a secure , reliable and sequence - maintaining transmission link is assumed to exist . fig3 shows the state diagram of the assumed ini protocol automaton . besides the basic states represented by the nodes of the state diagram , there are also the state variables seen , sent , ini . the names as well as the priorities ( 0 , 1 ) of the transitions are indicated . state conditions which need to apply in addition to the respective basic state are marked “@”. “+” and / or “−” precede specifications of input and / or output messages with a regulation for the flag parameter . the three basic states of the ini protocol automaton have the following meanings : wait . no confirmations are still expected . each of the participants may initiate a message transmission . talk . this instance has sent a message and is waiting for a confirmation . listen . this instance has received a message sent on the partner ∩ s initiative and still needs to confirm . fig4 is an exemplary view of a correct protocol flow . the transitions communication participant a has passed through in this example are indicated in the form of abbreviations on the left edge of the diagram , the messages bear the type name and the value of the flag parameter . in a “ normal ” course , each message will be confirmed by a reply with the same flag parameter , with cycles with 0 and 1 alternating as parameters . when the sending initiative is changed , however , the new initiator and / or the other communication participant will once again use the parameter value of the last cycle so as to distinguish his message from the next confirmation which may be due . if one party and / or one communication participant tries to change the initiative and the party ∩ s message which . indicates such trial crosses with a “ regular ” message of the other party or the other communication participant , then there will be a collision . this collision is resolved in that the message with flag = 0 will be confirmed as usual and the message with flag = 1 will be dismissed as if it had not been sent at all . in order to further elucidate this exemplary method , the communication flow between communication participants a and b shown in the table below is used . the state of the test automaton f — in the following designated ( 1 )— which the protocol monitor pm will have to take initially with regard to the protocol automaton m of communication participant a indicates all basic states of this protocol automaton and the complete ranges of values for the state variables : with regard to this state , it must now be examined which transitions are to be applied speculatively to state ( 1 ) of the test automaton . the next messages due to be dealt with are messages 1 ( input ) and 2 ( output ). since transitions of higher priority take precedence over those of lower priority , the transitions having the highest priority will be dealt with first . these are collision 0 and collision 1 . if collision 0 switches correctly at communication participant a , then a must have been in state wait beforehand , and state condition sent = 0λseen = 1 must be valid ( cf . fig3 ). accordingly , state ( 1 ) of the test automaton f will first be restricted according to the prerequisites for collision 0 and subsequently , the state transformation of collision 0 with the allocation ini = t will be applied to this reduced potential initial state . two new states ( 2 ) and ( 3 ) of the test automaton will result therefrom , as may be seen from the diagrams below . since both new states ( 2 ) and ( 3 ) of the test automaton f correspond to state ( 1 ) as far as the processed messages are concerned and represent proper subsets of the states of the protocol automaton m captured by state ( 1 ), they will be dismissed . all correct kinds of sequential behaviour of communication participant a also directly start from state ( 1 ). if a transition of lower priority switches correctly as collision 0 and collision 1 from state ( 1 ), then this is only possible provided that collision 0 and collision 1 are not switchable in the actual state of the protocol automaton of communication participant a — this ensues from the priority rule . hence state ( 1 ) as the initial state may in principle be reduced by the states of the protocol automaton m with collision 0 - or collision 1 - switchability for the purposes of the following considerations . the reduction condition therefor is as follows ( with st standing for the basic state of the automaton ): in this case , state ( 1 ) cannot be reduced due to the fact that it can only be represented incompletely as no value of any state variable is completely excluded by the condition . next are the three input transitions . in consideration of message data_in ( 0 ), for receive the condition ini = fλ1 − seen = 0 results , the speculative switching operation being : since the above new states ( 4 ). and ( 5 ) of the test automaton f have processed the same messages and state ( 5 ) represents a subset of the states of the protocol automaton m of state ( 4 ), state ( 5 ) is immediately dismissed again . without special assumptions , with the exception of the basic state talk , getacknowledge can switch : now a very important particularity must be observed : although the message flow according to the above table lists an input as the immediately following message , here message 1 , it is quite possible that the next output message , here message 2 , had been generated by a switching operation before message 1 was received . this is on the one hand due to the message transit time between communication participant a and protocol monitor pm , and on the other hand due to possible delays which may be caused by message buffers and the processing of the message at deeper protocol levels on the side of the communication participant . as a consequence , the protocol monitor pm will always also have to consider the next output message if the latter appears a certain time period after a due input message in the observed communication . in the individual case , the concrete forecast time will have to be determined depending on the protocol and the architecture used . for this reason , the two output transitions will now be examined with regard to message 2 , data_out ( 0 ). for transmit , the condition ( ini = tλ1 − sent = 0 ) v ( ini = fλ1 seen = 0 ) will be obtained which , however , does not allow for a reduction due to the indeterminancy of ini in state ( 1 ): thus all possibilities for state ( 1 ) of the test automaton f have been dealt with . all transitions were switchable which is not surprising in view of the fact that no information was available on the actual initial state . the states of the test automaton f which are further to be considered are states ( 4 ), ( 6 ), ( 7 ), ( 8 ). for state ( 4 ) message 1 has been attended to , and only the output message 2 , data_out ( 0 ), is due to be processed ; since input messages recorded after it could not have reached communication participant a earlier than protocol monitor pm . from the basic state listen only the transition answer can switch , with the reduction condition seen = 0 , which is fulfilled for all states of the protocol automaton m with regard to state ( 4 ): this new state ( 9 ) of the test automaton f is the only sequential state of state ( 4 ) and will replace the latter in the state list ( 6 ), ( 7 ), ( 8 ) and ( 9 ). state ( 6 ) has likewise received the 1st message and will , as a next step , have to process output message 2 . there are five transitions from the basic state wait . what applies again here is that they must be treated according to descending priority . owing to the condition seen = l , collision 0 is completely irrelevant . collision 1 requires that sent = 1λseen = 0 , which provides for a successful reduction of state ( 6 ): the new state ( 10 ), however , represents a subset for state ( 4 ) with the - same progress of the communication , and will thus be dismissed . for the remaining transitions which are of lower priority , state ( 6 ) will be reduced to those states of the protocol automaton m in which collision 1 is not required to switch . the reduction condition is sent ≠ 1 v seen ≠ 0 , which indeed results in a restriction of state ( 6 ) due to the fact that the second term is unfulfillable : what remains as the only transition without input message is transmit . its condition 1 − sent = 0 required by data — out ( 0 ), however , is not fulfilled by this new state ( 11 ) . for state ( 7 ) only the 2nd message has been used so far , due as the next messages are thus in principle messages 1 and 3 , data — in ( 0 ) and data — out ( 0 ). it is to - be assumed here that message 3 was recorded at such a late time that it could not have been generated before message 1 was received . consequently , only message 1 needs to be taken into account . the only transition starting from talk is getacknowledge which does not include any conditions : with this new state ( 12 ), the resulting state list is ( 8 ), ( 9 ) and ( 12 ). for the first time , only definite state descriptions appear here , i . e . there is only one state of the protocol automaton m for each state of the test automaton f . as a consequence , from now on each defective behaviour of communication participant a will definitely be detected . for the same reason , there will no longer be any actual restrictions of state descriptions now , but only fulfilled or unfulfilled conditions . state ( 8 ) exhibits the same progress of the communication as state ( 7 ), consequently , only message 1 is due , a data — in ( 0 ). as seen = sent = 0 applies here , collision 0 and collision 1 are not switchable . receivelst requires that ini = t and is likewise dismissed . receive fails because of the present flag parameter which results in the condition 1 − seen = 0 . the remaining transitions generate outputs which are inconsistent with the message flow according to the prerequisite of the predictable range . for state ( 9 ) only output message 3 needs to be considered , messages 1 and 2 having already been processed . the output basic state is wait . owing to the identity of seen and sent , only the transition transmit with the — fulfilled — condition seen = 0 remains : the new state list comprises the states ( 12 ) and ( 13 ) of the test automaton f . the communication progress compared to state ( 12 ) corresponds to the one accomplished with regard to state ( 9 ); after messages 1 and 2 have been considered , only a data_out ( 0 ) is pending . the collision transitions are dismissed due to the states and the input transitions are dismissed due to the communication progress . transmit requiring that 1 − sent = 0 is unfulfilled . consequently , the definite state ( 13 ) is certain to be the only state description for the communication participant which needs to be considered . the protocol monitor pm has now been synchronized completely . in state ( 13 ) of the test automaton f the messages 1 to 3 have been processed ; messages data — in ( 0 ) ( no . 4 ) and data — out ( 1 ) ( no . 5 ) are due for processing . from talk , only getacknowledge can switch , with no further condition having to be fulfilled : now , with messages 1 to 4 having been dealt with , the next transition will only consider message 5 , data — out ( 0 ), since it is an output . hence , in the basic state wait , only transmit will remain again , and this time the condition is 1 − sent = 1 and is fulfilled : now two messages are possible again , namely data — in ( 0 ) as the 6th and data_out ( 0 ) as the 7th so as to determine a transition having talk as the starting point . as already the case with state ( 13 ), getacknowledge switches : as the next message only output 7 may be considered , it is data_out ( 0 ). for the moment , however , sent = 1λseen = 0 is fulfilled which — due to the priority rules — requires the immediate switching of collision 1 from wait : listen may only be exited via answer . thanks to data_out ( 0 ) te condition seen = 0 results therefor , which is fulfilled by state ( 17 ): the next message , i . e . the 8th , with data_out ( 1 ), also constitutes an output and therefore needs to be considered on its own . as the collision conditions are not fulfilled this time , transmit thus has to switch . owing to ini = f , however , the output rule of transmit will result in seen = 1 which is thus contradictory to the last state ( 18 ) present . the ini protocol cannot explain the observed communication at this point anymore , a protocol violation on the part of communication participant a was detected . in actual fact , a would have had to indicate a change of initiative by means of the flag value of the last cycle , i . e . 0 . resynchronization would start now since no information is available any longer as to the actual state of the protocol automaton m of communication participant a . for this purpose , the protocol monitor pm takes up the initial state ( 1 ) again , in which message 8 causing the error may already be used as the resumption point within the communication . the exemplary measuring process ends here . as a result of the measuring example , the actual flow of the communication may now be reconstructed without difficulty . owing to the summarization of two states ( 10 ) and ( 11 ) as set out - above , the result at the beginning of the communication is not unique . fig5 shows the two equally possible variants up to the time when the error occurs . the exemplary protocol us ed seeks to accomplish — in an extreme way — that the meaning of individual messages may only be deduced from the context . in this regard , it makes even higher demands on the protocol monitor pm than most real communication protocols would . nevertheless , the synchronization phase was concluded after only three messages . additionally , it should be noted that numerous protocols , in particular of the osi 3 layer , render the service of establishing a plurality of virtual connections via the same communication medium . in such cases , the protocol procedures specific for each connection are typically modelled by a separate protocol automaton per connection . in addition , there is often at least one additional automaton which takes on coordinating tasks , e . g . the releasing of all existing connections or the activating of further automatons for newly established connections . the total state of an instance is then formed by the states of all active protocol automatons . if there are n active protocol automatons per communication participant , for each of which the protocol monitor considers m individual states of its test automaton , then this is tantamount to mn variants for the total state of the instance . this exponentiation of the state variants will very fast exceed the limits of an acceptable extent of computational work if all total states are to be considered . in order to obtain acceptable solutions also in such cases , it is demanded that all combinations of the states of the test automaton which exist for all active protocol automatons are always taken as descriptions of total states of the instance which have to be considered ; with all interdependencies between different protocol automatons being disregarded . each test automaton monitors the very part of the communication which is dealt with by the respective allocated automaton of the communication protocol . in this way , every possible state of a protocol automaton , together with every possible state of a further protocol automaton , will form a state combination to be considered . then the measuring method can be independently applied to the individual automaton - specific states of the test automaton of which there are a mere m · n in the above notation . indeed such protocol automatons in real protocols operate largely independently . however , dependencies may occur in administrative tasks such as the establishment of a group of connections . because of the above requirement , the protocol monitor according to the invention has to admit too many total states in such special cases since the speculation for an actual state for a protocol automaton cannot influence the assumptions for all other automatons . that this will result in errors being overlooked , however , is improbable in practice or must be accepted since more expense would otherwise be required . it is to be noted further that in the above example no time conditions were defined for the response behaviour of communication participant a . however , such time conditions may be incorporated in the method in accordance with the procedure noted above . timers are modelled as indefinite state variables which will indicate the possible or required time range for subsequent switching operations within the state conditions . a timer is started by the allocation to the relevant timer variable within the framework of the state transformation of a transition .