Skip to main content

The Primitives

The interaction mechanism assumes the existence of a channel [Reference 3] between two servers. Two new semantic data types are defined to implement the interaction. These are, unsurprisingly, called CONTROL REQUESTs and CONTROL REPLYs. Each of these data items contains at least two elements.

1/ The TYPE element identifies a particular type of request or reply.

2/ The SEQUENCE element is used to match replies to their corresponding request.

Other elements may appear. Their interpretation depends on the particular type of request or reply in which they appear.

The interaction protocol itself is defined in terms of control requests and control replies. A very small number of request and reply types is defined as the minimal implementation level. Additional request and reply types are also defined, for use by more advanced servers, to Provide additional capabilities to the service, or simply to increase efficiency of operation.

Two additional data items are defined, called USER REQUESTs and USER REPLYs. These are structured like requests and replies, but the various types are defined by the service itself, to implement the primitives needed in its operation.

Control and user requests and replies are generically referenced as simply REQUESTs and REPLYs.

The protocol of the interaction has several characteristics which form the basis of the request-reply model, and attempt to meet the goals mentioned previously.

1/ Every request elicits a reply.

2/ Every reply is associated unambiguously with a previous request.

3/ Each server always knows the state of the interaction, such as whether or not more data is expected from its partner.

4/ The protocol definition includes enumeration of the possible responses for each request. Service protocols are encouraged to do likewise for user requests and user replies.

5/ Servers who receive requests of unknown type issue a response which effectively refuses the request. Servers attempting to use advanced features of a protocol 'rephrase' their requests in simpler terms where possible to maintain the previous level of service.

The minimal implementation will support interaction almost exactly along the lines of the request-reply discipline.

Extensions to the minimal configuration are defined for two reasons. First, the strict request-reply discipline model is inefficient for use in high-volume situations because of the delays involved. Several extensions are defined to cope with this problem. Thus, although the interaction is based on such a discipline, it does not necessarily implement the interaction in that fashion. Second, additional primitives are defined which provide some standard process synchronization operations, for use by the services.

The protocol architecture presented here is defined in detail in an associated document. [Reference 4]