Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/3232676

Design Principles for Communication Gateways

Article in IEEE Journal on Selected Areas in Communications · February 1990


DOI: 10.1109/49.46842 · Source: IEEE Xplore

CITATIONS READS

46 84

2 authors, including:

Gregor V. Bochmann
University of Ottawa
487 PUBLICATIONS 8,575 CITATIONS

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Testing Concurrent Systems Through Event Structures View project

Methods for Designing SIP Services in SDL with Fewer Feature Interactions View project

All content following this page was uploaded by Gregor V. Bochmann on 25 April 2016.

The user has requested enhancement of the downloaded file.


12 IEEE J O U R N A L ON S E L E C l E D A R E A S IN COMMUNICATIONS. V O L U. NO I . J A N U A R Y 1990

Design Principles for Communication Gateways


GREGOR V. BOCHMANN, SENIOR M E M B E R , IEEE, A N D PIERRE MONDAIN-MONVAL

Abstracr-The purpose of this paper is to define principles that apply automatically if a mapping between the respective ser-
to the design of communication gateways between heterogeneous com-
puter systems, and to identify strategies to solve incompatibilities in a
vices is defined.
systematic manner. The importance of communication service com- In order to clarify the issues, much of the discussion of
mon properties is explored in detail. The modification of the service this paper is based on simple examples showing the prin-
available for interworking due to subset selection and service concat- ciples involved. In some cases, examples from existing
enation is discussed. Various methods of adaptation are described. Two computer communication protocols are also discussed.
architectural options for the design of communication gateways are
Section 11 presents some basic interconnection scena-
explored, namely conversion at the service level or at the PDU level.
While the former is conceptually simpler, various optimizations are rios. The importance of a common (often subset) com-
possible through the latter approach. A method for deriving the spec- munication service is explored. Concatenation of services
ification of a protocol adapter from the two protocol specifications is is defined in Section 111. Different concatenation ap-
also given. All these issues are explained with a number of simple ex- proaches depending on the types of interfaces and ser-
amples.
vices are discussed. Concatenation properties are inves-
tigated. The concept of concatenation invariance is
I. INTRODUCTION discussed with some examples.

T HE concept of gateways was first introduced for the


interconnection of different communication networks.
Gateways, sometimes also called relays are now used for
While the discussion up to that point is mainly con-
cerned with the service characteristics, Section IV deals
with an alternative approach already widely used, proto-
the interconnection of public packet-switching data net- col conversion, where the gateway needs to know in detail
works and private data processing networks, often includ- the different protocols to explicitly establish a correspon-
ing local area networks. These gateways belong to the dence between them. Advantages and drawbacks of this
Network layer of the OS1 reference model (OS1 RM). In protocol level adaptation approach are discussed. A
this context, any difference between the communication method for deriving the specification of an adaptation
services provided by the different networks has a strong module from the interworking protocol specifications is
impact on the gateway design and functions. Interworking also given.
at other layers of the reference model has been consid- Finally, Section V contains a list of general conclu-
ered, for instance, at the transport or application layers. sions.
An OSI-gateway for a non-OS1 system is a typical ex-
ample. 11. INTERCONNECTION OF COMMUNICATION SERVICES
An overview of the issues involved in the interworking A . A Basic Example
between heterogeneous networks is given in [6]. Much This basic example is the interconnection of modules.
literature exists about solving interconnection problems in called Basic Medium, providing a simple message trans-
particular cases, and about incompatibilities between dif- fer service (Fig. 1 ) . Such a module has two ports through
ferent systems and approaches to their resolution (see for which it interacts with its users. The port on the left-hand
instance [7]). The purpose of this paper is to explain prin- side of the picture (sending port S ) allows for a user tc
ciples that apply to the design of gateways, to identifj send a block of data through a Data-request event, while
strategies for solving incompatibilities in a systematic the port on the right-hand side (receiving port R ) allow:
manner, and to provide clear definitions of the relevant for a user to receive a data block through a Data-indica-
concepts. tion event. For a given module, blocks are delivered ir
Already Gien and Zimmerman [ 5 ] pointed out that in- FIFO order, i.e., blocks sent through successive Data-
terconnection of networks must be based on a common request events are delivered in the same order as Data-
communication service provided in both networks. This indication events at the other end of the medium. The
principle is further investigated in this paper. Some pre- communication service provided by the Basic Medium is
vious work does not explicitly take into account the com- used by two types of processes, sender and receiver pro-
munication service [9], [ l 11. We indicate in Section V cesses, which execute an unspecified application proto-
that a specification of a protocol converter can be obtained col.

Manuscript received October 15, 1988: revised August 20. 1989. B. Service Concatenation
The authors are with the Departement d'lnformatique et de Recherche
Operationelle, Universite de Montreal. Montreal. P.Q.. Canada.
The first interconnection scenario is trivial. Two Basic
IEEE Log Number 8932038. Media are interconnected as shown in Fig. 2. D a t a - i d - -

0733-8716/90/0100-0012$01 .OO 0 1990 IEEE


, .

BOCHMANN AND MONDAIN-MONVAL DESIGN PRINCIPLES FOR COMMUNICATION G A T E W A k S

mP+T Service Y

Fig. 3. Regional complementation protocol.

Fig. 1. Basic Medium.


does not represent a real connection. All protocol data
units (PDU’s) are exchanged through the underlying ser-
vice Y.
3 ) The last approach is quite similar to the second one.

-
Fig. 2 . Basic Media direct concatenation
A complementation protocol is introduced throughout the
entire system, on top of the minimum service subset (Fig.
4), and may also provide additional services not provided
by any of the interconnected components. Additional ent-
ities in Fig. 4 realize a global complementation protocol
cation events at the receiving port of the left medium are providing a common service to all users.
identified with Data-request events at the sending port of Although quite simple, this example shows different
the right medium. This kind of interconnection is called problems related to transparent interconnection of com-
direct concatenation and is represented in Fig. 2 by the munication services.
horizontal line between the two ports at the gateway site. It is necessary to cope with applications using exist-
Thus, a Data-request event at the sending port of the left ing services when interconnecting these services. In order
medium leads to a Data-indication and a Data-request to avoid a great deal of burden for interconnected appli-
event at the interconnection point, and eventually to a cations, solution of the first type is to be avoided.
Data-indication event at the receiving port of the right me- The second solution is better suited, but the follow-
dium. Service concatenation and various related problems ing question arises:
are investigated in Sections I11 and IV. -What is the needed enhancement function to bridge
the gap between the two services, i.e., to upgrade
C . Service Enhancements the lower level service up to the level of the other
The following example introduces interconnection one?
problems related to discrepancies in the communication The third solution requires in addition the consider-
services. The previous example is used with the following ation of a common service subset:
constraint. The left medium handles data blocks of size -What is the common service subset?
up to Large, while the right-hand side medium handles -What are the desired services to provide?
data blocks of size up to Small (with Small significantly -What is the necessary function to offer on top of the
smaller than Large). Therefore, data blocks of a size be- common service subset?
tween Small and Large are handled by the left medium As previously shown, service enhancement approaches
without any trouble, but cannot go further through the are based on concatenation. The second approach relies
right medium. Three approaches can be used to solve this on concatenation of one “original” service with an up-
problem. graded service. The third approach relies on services con-
1) The simplest approach is to use the minimum ser- catenation with restriction to a common service subset;
vice subset, i.e., to forbid users at the sending port of the then additional facilities are built up on top. Therefore,
left medium to request transmission for data blocks of a concatenation is a central issue when interworking with
size greater than Small. However, this solution is not very different communication services.
powerful in the sense that the full capabilities of the com- The discussion in this paper mainly focuses on the ser-
munication services provided by the left-hand side me- vices concatenation principles. It will be shown that care-
dium are not used any more. Interconnection realized in ful analysis of concatenation properties is necessary be-
such a way would force applications using these services fore defining any complementation protocol.
to be modified, going against the transparency require-
ments.
2) A regional complementation protocol can be built D. Realistic Examples
on top of the less powerful medium, namely the right one, The classical examples of gateways are used for com-
to segment blocks received from the left medium into puter network interconnection.
blocks of a size no longer than Small (Fig. 3 ) . This ap- I ) Network Layer: Within the OS1 reference model,
proach thus upgrades the lower level service to the level Network interconnection is foreseen through so-called
of the other one. An entity must reside on all systems Network relays. The general protocol hierarchy (Fig. 5 )
within the less powerful network to realize this protocol. within the Network layer (OS1 NL) foresees a combina-
The dashed line in Fig. 3 between the two entities indi- tion of the approaches of Figs. 3 and 4.
cates that a protocol exists between these two entities, but The SNAP (Sub-Network Access Protocol) sublayer
14 I E E E J O U R N A L ON S E L E C T E D A R E A S I N C O M M U N I C A T I O N S . VOL X. N O I . JANUARY IOYII

the MHS-Teletex conversion facility, which plays the role


of a gateway between the MHS systems and the Teletex
network.

111. SERVICE CONCATENATION


L

Fig. 4. Global complementation protocol.


Service concatenation allows us to build up a global
communication service from two or more basic commu-
nication services. The interfaces of the global service of-
fered to users are the same as those offered by the basic
services. Concatenation is thus mainly concerned with
“connecting” interfaces at gateway site(s).
To define services concatenation, we must first inves-
tigate how a service is defined, i.e., what its interface?
are, which events can occur at these interfaces, and which
properties about occurrences of these events can be stated.
Fig. 5 . OS1 Network sublayers
We then define three concatenation methods coping witt-
connecting: 1) services with identical interfaces; 2‘1
provides the interface to access a particular network (e.g., equivalent services with different interfaces; 3) service:,
X.25). of different types.
The SNDCP (Sub-Network Dependent Convergence The concept of concatenation invariance is then intro-
Protocol) sublayer, corresponding to the complementa- duced and discussed with several examples.
tion protocol of Fig. 3, is used to provide a uniform ser-
vice over all networks participating in the interconnec- A . Service De$nition
tion, which individually may provide different types and Service definition includes two parts. The first is the
grades of communication services. abstract definition of the interfaces of the Communication
Sublayer SNICP (Sub-Network Independent Conver- service. The second consists of the description of global
gence Protocol) provides addressing (OS1 NA) and other properties relating events at the different interfaces.
global functions for internetworking. I ) User-Provider Interface: An interface does not al.-
2) Transport Layer: Another example is interconnec- ways explicitly exist but defines the logical exchanges of
tion at the Transport level. The OS1 Transport service information occurring between the user and the provide-
(OS1 TS), similar in nature to the Network service, is a of the service. User and provider might be two logical
common service provided by the different classes of OS1 parts of the same process, or two different processes com -
Transport protocols (OS1 TP) over different network con- municating through an implementation of a real interface.
figurations, and is used by all higher level protocols within 2) User-Provider Interactions: An interaction through
the OS1 reference model. For the interconnection of OS1 an interface consists of an exchange of information. Onr:
systems using different classes of Transport protocols, side of the interface is responsible for initiating the ex-
e.g., class 4 within a local area network and class 0 or 2 change and selecting the appropriate values for the param-
over long distance networks, concatenation of transport eters to be exchanged. Therefore, an interaction-some -
services can be envisaged [3]. times called service primitive-is described by its name.
Interconnection at the Transport level can also be con- its parameters, and its initiator. Interactions are supposed
sidered between the OS1 and DARPA TCP/IP protocol to be executed in rendez-vous. Conceptually, only one
hierarchies. TCP is a protocol similar to the OS1 class 4 interaction may occur at one time.
protocol, and its service is similar to the OS1 Transport 3) Temporal Ordering: The service specification also
service. The selection of a suitable service subset includ- defines which sequences of interactions are legal. We can
ing normal data transfer is, however, not straightforward consider two types of ordering. Local ordering describe.;
[SI, [2]. Some difficulties are related to the identification the possible sequences at one interface of a communica-
of message boundaries and addressing. The graceful close tion service. Global ordering describes the possible se-
facility, in addition to the abort included in the subset, quences of interactions at both interfaces of the commu-
can be provided by use of the OS1 Session Release func- nication service. Such orderings can be described by
tion, according to Fig. 3. means of a finite state machine or any other suitable no-
3) Messaging Services: Another example correspond- tation.
ing to the protocol architecture of Fig. 3 is the Teletex 4 ) Other Service Properties: Usually, more specific
access procedure to the message handling systems (MHS) properties must be defined for each interaction, in addi-
as defined by CCITT in [18]. The messaging service to tion to the temporal ordering. Very often, service prop-
be accessed by that procedure includes functions not pro- erties will correlate parameters of interactions at one in-
vided by Teletex, such as delivery confirmation, message terface of the service with parameters of other interactions
store and retrieve, probes, . . . . Therefore, the approach at the same interface or at the remote one. As in the cas:
of Fig. 3 was chosen where the defined complementation of temporal ordering, the properties can be classified into
procedure is executed between the Teletex terminal and local constraints pertaining to a single interface and globa I
,, .

ROCHMANN A N D M O N D A I N - M O N V A L : DESIGN PRINCIPLM FOR COMMUNICATION GATEWAYS

i a
constraints. In the following, we use the term global prop-
erties to denote the combination of the global ordering
rules and the other global constraints. For instance, the -a ing
Basic Medium satisfies the following two global proper-
ties.
Every Data-request interaction initiated at the send-
I
I
I OS I-T-service
I

Fig. 6. OS1 Transport service.


ing port eventually generates a Data-indication interaction
at the receiving port (error-free medium). n
Two successive Data-request interactions initiated at
TDISCreq/ i n d
the sending port eventually generate two successive Data- iCONreq*/ind’
indication interactions (FIFO order).
TDAiAreqIind
5) Example: OSI Transport Service: As a realistic ex-
ample, we consider the OS1 Transport service as shown
in Fig. 6 . This service distinguishes two kinds of ports,
so-called calling and called ports.
TEXDTreqIlnd
Interactions: A definition of this service for the calling
user describes the possible interactions at the calling ser- Fig. 7. Local ordering of Transport primitives.
vice interface and their parameters.
Interactions initiated by the calling user sented as a finite state machine in Fig. 7. The ordering
-TCONreq (calling, called: transport-address; rules for both kinds of interface are represented by the
QoS: quality-of-service; same diagram. Interactions that may occur at the calling
options: user-options; port only are identified by a star symbol. Those occurring
data: data-type) at the called port only are identified by an apostrophy
-TDATAreq (user-data: data-type) symbol. It is to be noted that sequences of interactions
-TEXDTreq (user-data: data-type) occurring at both interfaces are not described.
-TDISCreq (reason: data-type) Local Constraints: Additional constraints on interac-
Interactions initiated by the provider at the c d i n g tions parameters are stated as follows.
port The QoS and options parameters of a TCONconf in-
-TCONconf (calling, called: transport-address; teraction must be “smaller than or equal to” the corre-
QoS: quality-of-service; sponding parameters of the TCONreq interaction.
options: user-options; The QoS and options parameters of a TCONresp in-
data: data-type) teraction must be “smaller than or equal to” the corre-
-TDATAind (user-data: data-type) sponding parameters of the TCONind interaction.
-TEXDTind (user-data: data-type) Global Properties: Global properties of the Transporl
-TDISCind (origin: (user, provider); services are informally stated.
reason: data-type) I) Connection Establishment:
Interface for the called user is quite similar although the A TCONreq interaction at the calling port implies a
connection establishment phase involves different inter- subsequent TCONind at the called port, unless a TDISC-
actions. req or TDISCind interaction occurs at the calling port.
Interactions initiated by the called user A TCONresp interaction implies a TCONconf inter-
-TCONresp (calling, called: transport-address; action at the calling port unless a TDISCreq or TDISCinc
QoS: quality-of-service; interaction previously occurred at that port.
options: user-options; 2) Data Transfer:
data: data-type) A TDATAreq (respectively, TEXDTreq) interactiori
-TDATAreq (data: data-type) generates a remote TDATAind (respectively, TEXDT
-TEXDTreq (user-data: data-type) ind) interaction with the same data parameter value (re
-TDISCreq (reason: data-type) liable transfer).
Interactions initiated by the provider at the called Two successive TDATAreq interactions from the
port same user will generate two successive TDATAind inter
-TCONind (calling, called: transport-address; actions, in the same order (FIFO property-normal data)
QoS: quality-of-service; Two successive TEXDTreq interactions from the.
options: user-options; same user will generate two successive TEXDTind inter
data: data-type) actions, in the same order (FIFO property-expedited
-TDATAind (data: data-type) data).
-TEXDTind (user-data: data-type) A TEXDTreq following a TDATAreq may generate
-TDISCind (orgin: (user, provider); a TEXDTind before the TDATAind is generated (expe-
reason: data-type) dited data transfer may bypass normal data transfer).
Local Ordering: This “service definition” is com- 3) Disconnection:
pleted with the ‘‘legal’’ sequences of interactions repre- A provider-initiated disconnection leads to the O C -
16 IEEE JOURNAL. O N SELECTED A R E A S IN COMMUNICATIONS. VOL. X. NO I . JANUARY 19’40

currence of a TDISCind interaction at the ports where no service provider as having a user origin. If a TDISCind
TDISCreq interaction already occurred. indicates a provider-initiated disconnection, the informa-
A TDISCreq interaction will generate a remote tion cannot be transmitted in the parameter of the corre-
TDISCind interaction if no provider-initiated disconnec- sponding TDISCreq.
tion occurs at the same time and no TDISCreq interaction 2) Interface Aduptation: As an example of different in-
occurred at the remote port. terfaces providing the same abstract service, we consider
A provider or user initiated disconnection may imply an alternative description of the Transport service inter-
some loss of in-transit data. face. The TCONreq and TCONconf interactions are re-
The TDISCind interaction indicates with the origin placed by the following- .procedure.
parameter whether the disconnection was initiated by the
remote user or by the service provider. In the first case, TCALL (calling, called : transport-address ;
the reason parameter is the reason parameter of the cor- proposed-QoS: quality-of-service;
selected-QoS: quality-of-service;
responding TDISCreq interaction. In the latter case, the
reason parameter is selected by the service provider. proposed-options: user-options;
When two TDISCind interactions are initiated at both selected-options: user-options;
status: boolean)
ends, the origin parameter value must be “provider. ”

The status parameter is returned as true (respectively,


B. Concatenation Methods false) after successful (respectively, failed) establishment
Three different methods of concatenation are discussed, of the Transport connection. The proposed-QoS and pro-
depending on the services to be concatenated (type of pro- posed-options parameters are set to appropriate values bq
vided services, interfaces). the calling user. The selected-QoS and selected-option.$
1 ) Direct Concatenation: The example of the inter- parameters indicate which values have been selected for
connection of two Basic Media is very simple since inter- the established connection. We note that calling this pro-
actions at both interfaces can be directly identified. We cedure is equivalent to initiating the TCONreq interac-
call direct concatenation an interconnection of two com- tion, and that returning from it is equivalent to the occur-
munication services where each interaction of one inter- rence of the TCONconf (respectively, TDISCind‘l
face is identified with (mapped onto) a corresponding in- interaction.
teraction of the other connected interface. Another This alternative Transport interface cannot be directlj
example is the Transport service previously described. concatenated with the interface described in Section 111
The mapping to be performed by the gateway between the A-5). However, service concatenation may be realized b j
two interfaces (one calling, the other called) is simply the an interface adapter, as shown in Fig. 8 , which calls the
following. TCALL procedure after the occurrence of a TCONind at
TCONind interactions are mapped onto TCONreq the called interface, and initiates a TCONresp or TDISC
interactions. req at this interface when the procedure returns control.
TCONconf interactions are mapped onto TCONresp This interface adaptation provides a local mapping:
interactions. within the gateway between the concatenated service in -
TDATAind interactions are mapped onto TDA- terfaces. It differs from the function of an enhancement
TAreq interactions. entity which executes a protocol in relation to other re-
TEXDTind interactions are mapped onto TEXDTreq mote system components, as shown in Fig. 3 .
interactions. In general, identical services can be concatenated
TDISCind interactions are mapped onto TDISCreq through an interface adapter module if:
interactions. 1) abstract interactions can be “extracted” from the
In general, two interfaces A and B can be directly con- two interface specifications; and
catenated if the following conditions hold. 2) the conditions defined for direct concatenation in
1) Interactions initiated by the provider at interface A Section 111-B-1) hold for this set of interactions.
(respectively, B ) can be mapped onto interactions initi- 3) Service Adaptation: In the above example the two
ated by the user at interface B (respectively, A ) ; this concatenated services are not identical, but abstractly
should include a mapping of corresponding parameters of equivalent since some equivalence relation between the
the mapped interactions. interactions at the different interfaces could be defined.
2) Legal sequences of interactions initiated by the The same approach can also be used for the minimum
provider at interface A (respectively, B ) are “consistent” subset service if the services to be concatenated are not
with the legal sequences of interactions that could be ini- equivalent. As an example, we consider the concatenation
tiated by a user at interface B (respectively, A ) . between the Basic Medium and the OS1 Transport ser-
It is interesting to note that direct concatenation is not vice, as shown in Figs. 9 and 10. Without using a service
completely possible for the OS1 Transport service. In fact, enhancement, as discussed in Section 11-C, we are re-
the parameters of a TDISCind cannot be directly mapped stricted to using the minimum service subset, which is i n
onto a parameter of the TDlSCreq. According to the OS1 this case equal to the service provided by the Basic Me-
specification, a TDISCreq is always interpreted by the dium. We therefore consider the TDATAreq (respec-
BOCHMANN A N D M O N D A I N - M O N V A L DESIGN PRINCIPLES F O R COMMUNICATION CA I‘kWAYS 17

Interface Adapter The connection is kept, based on a time limit or an


expected number of data transfer requests.
The connection is released immediately after the
transfer of one block of data.

C. Concatenation Invariance
Fig. 8 . Concatenation with interlace adapter. We say that a global property of a communication ser-
vice is concatenation invariant if it remains satisfied on
an end-to-end basis over several concatenated communi-
cation services and it is satisfied by each service individ-
ually. In the following we consider different examples of
L a l l i n g Lalled 5 H concatenation to question whether invariance can be guar-
3SI-T-service Basic Medium anteed. As will be shown, the answer turns out to be
‘‘sometimes. ”

1 ) An Example: Delivery Conjirmation: The first ex-


ample is derived from the Basic Medium described in Sec-
tion 11-A. A new interaction called Data-confirmation is

5
C J
H
C > IE ser
alling Lalled
added which provides the sending user with a kind of de-
livery confirmation. The following three different types of
I Basic Medium I PSI-T-service I confirmation can be considered.
Type A : This first type of confirmation informs the
Fig. IO. Basic Medium and OS1 Transport user that a data block has been received by the network
and will be forwarded to the destination user (Fig. 1 1 ) .
Type B: It informs the sending user that a data block
tively, TDATAind) interaction equivalent to the Data-re- has been received by the receiving user (Fig. 12).
quest (respectively, Data-indication) interaction. If these Type C: This third type of confirmation is only is-
were the only interactions to be considered, the direct sued after the receiving user has explicitly acknowledged
concatenation approach could be used for the gateways in the receipt of the data by initiating a Data-response inter-
Figs. 9 and 10 for providing the basic subset service. action (Fig. 13).
However, the OS1 Transport service requires a connec- Clearly, these different confirmations have different se-
tion to be established before the TDATAreq and TDA- mantics. The first type of confirmation has a local confir-
TAind interactions can occur. Therefore, the gateway ar- mation meaning, the second one has a remote confirma-
chitecture with an adapter module (see Fig. 8) may be tion meaning, and the third one has a user-to-user
used where these additional interactions of the Transport confirmation meaning. In Figs. 11-17, solid (respec-
service are handled by the adapter module. If the left user tively, dashed) arrows denote Data-request and Data-in-
in Fig. 9, for example, wants to send data to the right dication (respectively, Data-response and Data-confir-
user, he/she will first establish a connection to the gate- mation) interactions. Numbers associated with arrows
way through the Transport service. The adapter module represent a relative temporal ordering. An arrow without
will accept the incoming TCONind interaction by issuing any associated number denotes an interaction for which
a TCONresp if the parameters are acceptable, e.g., the no relative temporal ordering is defined.
called address is recognized as reachable through the Basic We consider in the following four interconnection sce-
Medium service; otherwise a TDISCreq will be issued. narios. The three first scenarios consider concatenation of
Incoming TDATAind and TEXDTind interactions will be identical services. The mapping occurring at the gateway
forwarded by the adapter as Data-requests over the Basic site is explained case by case. The last scenario considers
Medium, while an incoming TDISCind interaction can be interconnection of two different services.
ignored. Type A ConJirmation: The gateway maps Data-in-
In the case of data transfer in the opposite direction (see dication interactions from the left service to Data-request
Fig. lo), the adaptation is less straightforward. The interactions to the right service. The Data-confirmation
adapter module in the gateway has to decide when and for interaction is not mapped onto any other interaction (see
how long to establish Transport connections to the receiv- Fig. 14). Here the Data-confirmation has no global sig-
ing user. When it receives a Data-indication and no nificance, only a local one. Therefore, concatenation in-
Transport connection is established, a new connection variance holds vacuously.
must be set up before the data can be forwarded. Possible Type B Conjirmation: The same mapping as in the
strategies for terminating the connection are the follow- previous case is considered. Here, a Data-confirmation
ing, all transparent to the users. delivered to a sending user does not imply that the sent
The Transport connection is maintained forever, or data were delivered to the receiving user (Fig. 15); it only
at least until the Transport service user explicitly requests implies that the data were received by the gateway. Glob-
a disconnection. ally, therefore, the meaning of the confirmation loses its
18 IEEE JOURNAL ON SELECTED AREAS I N COMMUNICATIONS. VOL. X. NO. I . JANUAKY I Y W

L I
U
Fig. I I . Local delivery Confirmation
Fig. 15. Type B service concatenation.

Fig. 12. Remote delivery confirmation. -


Fig. 16. Type C service concatenation.

Fig. 13. User-to-user delivery confirmation.

Fig. 17. Type A and C service concatenation.

a straightforward implementation of flow control. without


buffering in the gateway, a gateway will invoke flow con-
trol at the interface where it receives data when flow con-
Fig. 14. Type A service concatenation. trol is invoked at the interface where it sends. This means
that flow control invoked by a receiving user over a con-
“remote” character; however,’ it implies a Type A con- catenated communication service usually will give rise to
firmation. We conclude that the global property of the flow control invoked at the interface of the sending user.
Type B Data-confirmation is not concatenation invariant. This means that back-pressure flow control is concatena-
Type C Conjirmation: A direct mapping between a tion invariant.
Data-confirmation interaction from the right service onto In the case of the OS1 Transport protocol discussed i n
a Data-response interaction to the left service ensures that Section III-A-5), all global properties are concatenation
the Data-confirmation delivered to the sending user has a invariant, except the significance of the origin parameter
user-to-user meaning (Fig. 16). Here the sending user re- of the TDISCind interaction. As already mentioned i n
ceives the confirmation only after the receipt of the data Section 111-B- I), this parameter does not allow for direct
by the receiver. The global confirmation property is there- concatenation. Here, problems arise when one of the tw3
fore concatenation invariant. Transport services initiates a disconnection due to some
Type A and C Conjirmafion: In this case (Fig. 17), internal error. A TDISCind interaction occurs at both ends
it is obvious that the user-to-user confirmation meaning of the service, and the gateway thus has to trigger a
cannot be provided whatever the mapping at the gateway TDISCreq interaction at the interface of the other service.
site is. This was expected since one of the concatenated The origin parameter of the TDISCind interaction indi-
services alone does not provide such a confirmation. cates a provider-initiated disconnection, with the reasov
2) Orher Examples: It seems that most global proper- parameter detailing the cause of the disconnection. The
ties of communication services are concatenation invari- TDISC-req interaction eventually generates a TDISCind
ant. Simple data transfer, as represented by the Basic Me- interaction to the remote user with the origin parameter
dium clearly is. The previous discussion shows that indicating a user-initiated disconnection (Fig. 18). T h w ,
delivery confirmation of Type C is a “good” service since the two users have a different view of the disconnection.
it is concatenation invariant, which simplifies interwork- Properties stated for the disconnection service are not
ing. maintained when Transport services are concatenated.
Another important example is flow control. The OS1 The easiest solution to this problem seems to be the
Network and Transport services have back-pressure flow addition of an origin parameter to the TDISCreq interac-
control at the interfaces. The local constraint requires that tion such that direct concatenation becomes possible at
no data can be sent over an interface when the receiving the gateway. The gateway may then use “provider” as a
side invokes flow control. The global property of the value of the origin parameter of the TDISCreq generated
communication service postulates that the service provi- in the case described above.
der may-and eventually will-invoke flow control at its 3) Handling Noninvariant Properties: As shown by the
interface with a sending user in response to flow control example of interworking between two networks providing
invoked by the receiving user at the remote interface. In Type B confirmation, not all global properties of corn-
,, .

B O C H M A N N A N D M O N D A I N - M O N V A I . : DESIGN P R I N C I P L E S FOR C O M M U N I C A T I O K G A T E W A Y S 19

bility issues for interworking and gateways can be dis-


cussed in terms of compatibility of services.

A . Service Adaptation
The easiest way to convert between different protocols
is through a common service boundary, as previously dis-
cussed. The example of the OS1 Transport service and
protocols showed this clearly. Fig. 19 shows a possible
architecture for interworking between different protocol
hierarchies used in different networks. The conversion is
munication services remain invariant under concatena-
done at a level yt assuming that the protocols in the two
tion. If such noninvariant properties are nevertheless re-
networks above that level are compatible. The gateway
quired for the resulting end-to-end communication
includes implementations of both protocol hierarchies, up
service, it is necessary to use a complementation proto-
to layer n , and provides for concatenation at the ( N )-ser-
col, as discussed in Section 11-C. In the case of Type B
vice level. We call this approach a gateway based on ser-
confirmation, there are two possible architectures.
vice adaptation (called service interface conversion in
A new Data-confirmation primitive with end-to-end
significance may be provided by a global complementa- 1101).
tion protocol on top of the common subset service as B. Protocol Conversion
shown in Fig. 4. In this case the confirmation services of
It is possible to discuss the interworking of networks
the concatenated services are not used at all.
with different protocols directly at the level of the in-
A complementation protocol that operates only over
volved protocols. We call protocol conversion or conver-
the left network shown in Fig. 15 (similar to Fig. 3) pro-
sion at the PDU level a situation where the gateway func-
vides a Type C confirmation. This enhanced service is
tion is defined explicitly in terms of the PDU's which are
used by the gateway to forward the Type B confirmation
exchanged within the two interconnected networks ac-
received from the right network of Fig. 15 to the sending
cording to their respective protocols. This approach is as-
user on the left network.
sumed in [8], 191, and [ 111. Various alternatives for
It is to be noted that both of these complementation pro-
Transport gateways, for instance, are discussed in [3].
tocols require a data transmission service from right to left
It is important to note that conversion at the PDU level
from the underlying network, while the Basic Medium as-
is generally more complex to specify and more difficult to
sumed in our example only provides this service from left
implement. The advantage of service adaptation is that
to right. However, any realistic network will provide data
existing protocol implementations can be used within the
transfer in both directions; our example is over-simpli-
gateway; only an adaptation between the two service in-
fied.
terfaces is to be provided. The latter can be quite simple
4) Quantitative Properties: Noninvariant: The global
if the service interfaces of the respective protocol imple-
properties discussed above are of qualitative nature.
mentations are similar.
Quantitative properties are also important, in particular
An architecture for PDU-level conversion is shown in
for performance considerations. It is important to note that
Fig. 20. The gateway includes separate implementations
the latter properties are not concatenation invariant; in-
of the lower layers protocols, up to and including layer
stead they behave in an additive manner, or some other
( N = 1 ), and the protocol adapter module which does the
numerical fashion.
PDU conversion for the respective level N protocols.
The most important quantitative properties of a com-
Adapters providing PDU conversion for several layers of
munication link are its delay and maximum throughput.
protocols together can also be considered [ 101. The com-
If we concatenate two such links with delays D1 and 0 2 ,
parison of Figs. 19 and 20 yields the following important
and maximum throughputs T1 and T 2 , respectively, and
fact about the protocol converter. The behavior of this
if we can ignore the degrading influence of the gateway,
converter module should satisfy all the properties defined
we obtain an end-to-end communication service with a
by the behavior of the two respective protocol entities in-
delay equal to D1 + 0 2 and a maximum throughput equal
terconnected at their respective service interfaces through
to the minimum of T1 and T 2 . This shows that the delay
the service interface adapter as shown by the dotted box
is additive under concatenation, while the throughput fol-
in Fig. 19.
lows the minimum limit-similar to the maximum data
The above fact can be used to derive a specification of
block length discussed in Section 11-C.
the protocol adapter from the two protocol specifications
for which interworking is desired [4]. Such a specification
IV. SERVICE ADAPTATION VERSUSPROTOCOL is simply given by the composition, as shown by the dot-
CONVERSION ted part of Fig. 19, of the protocol specifications-defin-
The adaptation issues so far discussed rarely required ing the behavior of the protocol entities at layer N-with
the consideration of protocols but only of services. One the specification of the service interface adapter.
objective of this DaDer is to Doint out that most comDati- In addition to the properties that follow from the spec-
20 IEEE JOURNAL ON SELECTED AREAS I N COMMUNICATIONS. VOL 8. NO I. JANUARY 1490

5 ) Gateway construction is the simplest if a service


concatenation approach is used (service adaptation). In
this case, it is assumed that access to the communicatiori
services of both systems is available within the gatewa)'
through existing protocol implementations. The gatewa)
design is particularly simple in the case of direct concat--

-
enation which requires certain matching conditions for the
service interfaces.
"-2 "-3 ...
6) If the gateway considers in detail the PDU's ex--
changed below the service level at which interworking is
Fig. 19. Service adaptation architecture. sought (conversion at the PDU level), it may provide :I
more efficient and powerful adaptation function; but it is
in most cases more difficult to design and build.
---------- 7) In general, the specification of the protocol con--
verter for PDU-level conversion can be obtained auto-
matically from the two protocol specifications and the in--
terface adapter.
It is interesting to note that only in points 2), 6), and 7 )
the detailed consideration of the respective protocols is
important; all other points are related to the definition O F
the communication services used in the interconnected
systems. This emphasizes the importance of service spec -
Fig. 20. Protocol conversion architecture ifications for the design of distributed systems. While
meaningful communication in a distributed system de -
pends on compatible implementations of an agreed-upon
ifications of the interconnected protocols, a protocol con- protocol, the possibility of building gateways that extend
verter may satisfy certain other properties which are re- a communication service into adjacent distributed systems
lated to interworking strategies and optimizations. depends essentially on the compatibility of the commu-
Different optimizations concerning acknowledgments are nication services used in the different systems.
discussed in [ 3 ] . Different ways to optimize the imple- If we consider, on the other hand, the direct interwork-
mentation structure of the protocol adapters are discussed ing (without gateways) between different computer sys-
in [lo]. tems, the conditions for compatibility are related mainly
to the communication protocols. For example, the con-
V. CONCLUSION
dition that a system can exchange and access files with
The main conclusions from the discussion in this paper another OS1 FTAM system includes the following:
are the following. 1) the OS1 protocols for all layers must be implemented
1) Interworking is relatively straightforward for the correctly, including all options required by FTAM; and
subset of communication services which are available in 2) the operation of the system as seen through these
all interworking systems protocols must conform to the FTAM virtual file system.
2) Interworking may be realized at different levels While point 1) includes seven layers of protocols, point
within the protocols hierarchy. Above the chosen level, 2) corresponds to the conformance with a (local) service
the protocols of the interworking systems must be com- specification, namely, the service provided by the file sys-
patible. tem.
3 ) Certain differences in the communication services It is important to note that service specifications are not
for which interworking is desired can be accommodated only essential for interworking considerations, but also
through additional complementing protocol sublayers for the design and validation of a hierarchy of protocoli
which are especially introduced in one of the networks to [l]. In fact, the service specification is not only the ref-
obtain a communication service equivalent to the one erence for interworking considerations but also for vali-
available in the other one. This requires additional sub- dating the protocol which is intended to provide the ser-
layer entities in the gateway and the host computers par- vice and for checking that it is sufficient for the operation
ticipating in interworking activities. of the user processes. The service specifications for the
4) Those properties of the interconnected communica- different layers also provide the framework in which new
tion services that do not have the so-called concatenation protocols may be introduced in a specific layer without
invariance will not be preserved in the case of interwork- affecting other layers.
ing. If all properties are concatenation invariant the user
processes using the service do not see any qualitative dif- REFERENCES
ference between ''local'' communication and "far dis- \ I ] G,. v . Bochmann and C . A . Sunshine, "Formal methods in comlnL-
tance" interworking. nication protocol dehign," l E E E Trtrfis. C o m m m . , vol. COM-28. pp.
BOCHMANN A N D MONDAIN-MONVAL. DESIGN PRINCIPLES FOR COMMUNICATION G A T E W A Y S 71

624-63 I . Apr. 1980: reprinted in Coi,i,,iioiic.trtic,rl Prorocol M o d e l - 1191 S . Zatti and P. Janson. “Interconnecting OS1 and non-OS1 networks
ling.” C. Sunshine. Ed. New York: Artech, 1981. using an Integrated Directory Service.” Coruput. N t , / i w ~ r L(117d
~ ISDN
121 G. v . Bochmann. A. Jacques. and C . Kawa. ”Transport relays.“ S y s t . . vol. 15. pp. 269-283. 1988.
Univ. Montreal, Tech. Rep.. 1986.
131 G . v. Bochmann and A. Jacques, “Gateways for the OS1 Transport
Service.” in Pro<.. lEEE l N F O C O M ’ 8 7 Conf. . San Francisco. CA,
1987.
141 G . v. Bochmann, “Deriving protocols converters for communication Gregor v. Bochmann (M’82-SM’85) received the
gateways.” IEEE Trans. Commun.. to be published. Diploma degree in physics from the University o f
[5] M. Gien and H. Zimmerman, “Design principles for network intcr- Munich, Munich, West Germany, in 1968 and the
connection,” in Proc. VI Data Commun. Symp. (lEEE/ACM). Nov. Ph.D. degree from McGill University, Montreal.
1979, pp. 109-119. P.Q., Canada, in 1971.
161 P. E. Green. “Protocol conversion.” IEEE Truns. Commun.. vol. He has worked in the areas of programming
COM-34. pp. 257-268. Mar. 1986. languages. compiler design, communication pro-
171 -, Network Interconnection and Protocol C o n i ~ r s i o n . New York: tocols. and software engineering and has pub-
IEEE Press, Apr. 1987. lished many papers in these areas. He is currently
181 1. Groenback, “Conversion between TCP and I S 0 transport proto- a Professor in the Departement d’lnformatique et
cols,” IEEE Trans. Select. Areas Commun., vol. SAC-4. pp. 288- de Recherche Operationelle, Universite de Mon-
297, Mar. 1984. treal. Montreal, P.Q., Canada. His present work is aimed at design models
[9] S . Lam, “Protocol conversion,” IEEE Trans. Software E n g . , vol. for communication protocols and distributed systems. He has been actively
13, pp. 353-362, Mar. 1988. involved in the standardization of formal description techniques for OSI.
[IO] Y. Ohara. S . Yoshitake. and T . Kawaoka, “Protocol conversion From 1977 to 1978 he was a Visiting Professor at the Ecole Polytechnique
method for heterogeneous systems interconnection in multi-profile Federale. Lausanne, Switzerland. From 1979 to 1980 he was a Visiting
environment, in Proc. IFIP Symp. Protocol Specification, Testing
” Professor in the Computer Systems Laboratory, Stanford University. Stan-
and Ver$cation: V I / , Zurich, May 1987. Amsterdam, The Neth- ford, CA. From 1986 to 1987 he was a Visiting Researcher at Siemens.
erlands: North-Holland, pp. 405-418. Munich
K. Okumara, “A formal protocol conversion method.” in Proc. ACM
Conf Commun. Protocols and Architectures. 1986.
ISO, “Addendum to the Network Service Specification covering Net-
work Layer Addressing,” ISODP 8348. Apr. 1984.
ISO, “Internal Organization of the Network Layer.’’ ISOTC97ISC6 Pierre Mondain-Monval received the Mditri\e
N3141, Apr. 1984. degree i n computer science from the Univer\ity ot
ISO, “Basic Reference Model for OSI,” IS 7498. 1982. Bordeaux. Bordeaux, France, in 1983 and the
ISO, “Connection Oriented Transport Protocol Specification,” IS Doctor degree from the University of Toulou\e.
8073. Toulouse. France. i n 1987
ISO, “Connection Oriented Transport Service Specification.” IS From 1984 to 1987, he was at the Ldboratoire
8072. d’Automatique et d‘Analy\e des Syjtemes. Tou-
C. Vissers and L. Logrippo, “The importance of the concept of ser- louse, France In 1988 he was a Visiting Protessor
vice in the design of data communication protocols.” presented at the at the University of DeldWdre. Newark, and I \
IFIP Workshop on Protocol Specification, Verification and Testing. currently a Professor i n the Departement d’lnfor-
Toulouse, France. Amsterdam, The Netherlands: North-Holland, matique et de Recherche Operationelle. Univer
1985. site de Montreal, Montreal. P Q , Canada Hi\ re\edrch topic\ include
CCITT Recommendations, “Message handling systems: Access pro- standardized OS1 protocols design and specihcation, distributed \y\tem\
tocol for Teletex terminals.” and \oftware engineering

View publication stats

You might also like