Professional Documents
Culture Documents
Design Principles For Communication Gateways
Design Principles For Communication Gateways
net/publication/3232676
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:
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.
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.
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 - -
mP+T Service Y
-
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
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
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. ”
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. ”
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.
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
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
-
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