1、INTERNATIONAL STANDARD lSO/IEC 10026-2 Third edition 1998-10-15 Information technology - Open Systems Interconnection - Distributed Transaction Processing - Part 2: OS TP Service Technologies de /information - lnterconnexion de systbmes ouverts (OH) - Traitement transactionnel rbparti - Patiie 2: Se
2、rvice OSI TP Reference number ISOA EC 10026-2: 1998(E) Adopted by INCITS (InterNational Committee for Information Technology Standards) as an American National Standard.Date of ANSI Approval: 11/25/2002Published by American National Standards Institute,25 West 43rd Street, New York, New York 10036Co
3、pyright 2002 by Information Technology Industry Council (ITI).All rights reserved.These materials are subject to copyright claims of International Standardization Organization (ISO), InternationalElectrotechnical Commission (IEC), American National Standards Institute (ANSI), and Information Technol
4、ogy Industry Council(ITI). Not for resale. No part of this publication may be reproduced in any form, including an electronic retrieval system, withoutthe prior written permission of ITI. All requests pertaining to this standard should be submitted to ITI, 1250 Eye Street NW,Washington, DC 20005.Pri
5、nted in the United States of AmericalSO/lEC 10026-2:1998(E) Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6、 . . . . . Page Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v Introduction . . . . . . . . .
7、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi 1 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 Normative references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10、. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11、. . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5 Conventions 4 5.1 Service conventions .4 5.2 Usage of the term transaction . .5 5.3 Usage of italics for notations . .5 6 Overview of the OSI TP Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12、 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . :.6 7 Service facilities 6 7.1 Functional unit descriptions .6 7.2 Services contained in functional units . .9 7.3 Service for modelling data transfer . .10
13、7.4 Structure of service descriptions . .lO 7.5 Effects of dialogue termination 11 8 Service primitives and their parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14、 . . . . . . . . . . . . . . . 12 9 Data transfer . 14 9.1 Overview of data transfer .14 9.2 Data transfer service, TP-DATA . .14 10 The Dialogue functional unit .16 10.1 Overview of the Dialogue functional unit . .16 10.2 Dialogue Establishment service, TP-BEGIN-DIALOGUE 16 10.3 Dialogue Terminatio
15、n service, TP-END-DIALOGUE .21 10.4 User Error Reporting service, TP-U-ERROR . .23 10.5 User Abort service, TP-U-ABORT .25 10.6 Provider Abort service, TP-P-ABORT 28 1 1 The Shared Control functional unit .30 11 .l Overview of the Shared Control functional unit . .30 12 The Polarized Control functio
16、nal unit . .30 12.1 Overview of the Polarized Control functional unit . .30 12.2 Grant Control service, TP-GRANT-CONTROL .30 12.3 Request Control service, TP-REQUEST-CONTROL . .31 0 ISO/IEC 1998 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilize
17、d in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from the publisher. ISO/IEC Copyright Office l Case postale 56 l CH-1211 Geneve 20 l Switzerland Printed in Switzerland o ISO/IEC lSO/lEC 10026-2:1998(E) 13 The Handshake func
18、tional unit .33 13.1 Overview of the Handshake functional unit . 33 13.2 Handshake service, TP-HANDSHAKE 33 13.3 Handshake and Grant Control service, TP-HANDSHAKE-AND-GRANT-CONTROL.3 5 14 The commitment-related functional units . 36 14.1 Introduction 36 14.2 Summary . 37 14.3 Overview of the Chained
19、 Transactions functional unit .43 14.4 Overview of the Unchained Transactions functional unit . 43 14.5 Begin Transaction service, TP-BEGIN-TRANSACTION ,43 14.6 Deferred End Dialogue service, TP-DEFERRED-END-DIALOGUE .45 14.7 Deferred Grant Control service, TP-DEFERRED-GRANT-CONTROL .47 14.8 TP-PREP
20、ARE request . 48 14.9 TP-PREPARE indication 49 14.10 TP-READY indication .50 14.11 TP-COMMIT request .51 14.12 TP-COMMIT indication . .53 14.13 TP-DONE request . .54 14.14 TP-COMMIT-COMPLETE indication .56 14.15 TP-ROLLBACK request .56 14.16 TP-ROLLBACK indication . .57 14.17 TP-ROLLBACK-COMPLETE in
21、dication .58 14.18 Heuristic Reporting service, TP-HEURISTIC-REPORT indication . .59 14.19 TP-READ-ONLY request .60 14.20 TP-READ-ONLY indication 62 14.21 TP-EARLY-EXIT request .63 14.22 TP-EARLY-EXIT indication . .64 14.23 TP-ONE-PHASE request .65 14.24 TP-ONE-PHASE indication . . 67 14.25 TP-UNKNO
22、WN indication . .68 14.26 TP-UNKNOWN-COMPLETE indication .68 14.27 TP-COMPLETION-REPORT indication .69 Annexes A Service state table . . 71 A.1 Overview . 71 A.2 Dialogue States 71 A.3 Variables . 73 A.4 Actions 78 A.5 Node Crash . . 85 A.6 Keys 85 A.7 Blank Intersections .86 A.8 Node Contingency Ta
23、ble . .86 A.9 Service State Table . .87 6 Summary of changes to the third edition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 Tables Table 1 - Functiona
24、l units and their services .9 Table 2 - Service for modelling data transfer .lO Table 3 - OSI TP service primitives . 13 Table 4 - TP-DATA primitives and parameters . .14 Table 5 - TP-BEGIN-DIALOGUE primitives and their parameters . .16 Table 6 - TP-END-DIALOGUE primitives and their parameter . .21
25、Table 7 - TP-U-ERROR primitives . 23 Table 8 - TP-U-ABORT primitives and their parameters .25 Table 9 - TP-P-ABORT indication and its parameters .28 Table 10 - TP-GRANT-CONTROL primitives . .30 Table 11 - TP-REQUEST-CONTROL primitives .31 . . . III lSO/lEC 10026-2:1998(E) 0 ISO/IEC Table 12 - TP-HAN
26、DSHAKE primitives and their parameter .33 Table 13 - TP-HANDSHAKE-AND-GRANT-CONTROL primitives and their parameter .35 Table 14 - TP-BEGIN-TRANSACTION primitives and their parameter . 43 Table 15 - TP-DEFERRED-END-DIALOGUE primitives .45 Table 16 - TP-DEFERRED-GRANT-CONTROL primitives . 47 Table 17
27、- TP-PREPARE request and its parameter .48 Table 18 - TP-PREPARE indication and its parameter . 50 Table 19 - TP-READY indication .51 Table 20 - TP-COMMIT request 51 Table 21 - TP-COMMIT indication . 53 Table 22 - TP-DONE request and its parameters 54 Table 23 - TP-COMMIT-COMPLETE indication . .56 T
28、able 24 - TP-ROLLBACK request . .57 Table 25 - TP-ROLLBACK indication and its parameters . .57 Table 26 - TP-ROLLBACK-COMPLETE indication .59 Table 27 - TP-HEURISTIC-REPORT indication and parameter 59 Table 28 - TP-READ-ONLY request and its parameter . 60 Table 29 - TP-READ-ONLY indication .62 Table
29、 30 - TP-EARLY-EXIT request and its parameters .63 Table 31 - TP-EARLY-EXIT indication and its parameters . .64 Table 32 - TP-ONE-PHASE request . .65 Table 33 - TP-ONE-PHASE indication . ,67 Table 34 - TP-UNKNOWN indication .68 Table 35 - TP-UNKNOWN-COMPLETE indication . .68 Table 36 - TP-COMPLETION
30、-REPORT indication and its parameters .69 Figures Figure 1 - Combination of functional units and resulting dialogue types .8 Figure 2 - Unconfirmed TP-BEGIN-DIALOGUE sequence of primitives . 19 Figure 3 - Confirmed TP-BEGIN-DIALOGUE sequence of primitives .19 Figure 4 - Unconfirmed TP-END-DIALOGUE s
31、equence of primitives .21 Figure 5 - Confirmed END-DIALOGUE sequence of primitives .22 Figure 6 - TP-U-ERROR sequence of primitives .23 Figure 7 - TP-U-ERROR as the negative confirmation to a handshake service . .24 Figure 8 - TP-U-ABORT sequence of primitives . .26 Figure 9 - TP-P-ABORT sequence of
32、 primitives . .29 Figure 10 - TP-GRANT-CONTROL sequence of primitives . .30 Figure 11 - TP-REQUEST-CONTROL sequence of primitives .32 Figure 12 - TP-HANDSHAKE sequence of primitives .33 Figure 13 - TP-HANDSHAKE-AND-GRANT-CONTROL sequence of primitives . .35 Figure 14 - TP-BEGIN-TRANSACTION sequence
33、of primitives .44 Figure 15 - TP-DEFERRED-END-DIALOGUE sequence of primitives .45 Figure 16 - TP-DEFERRED-GRANT-CONTROL sequence of primitives .47 0 ISO/IEC lSO/lEC 10026-2:1998(E) Foreword IS0 (the International Organization for Standardization) and IEC (the International Electrotechnical Commissio
34、n) form the specialized system for worldwide standardization. National bodies that are members of IS0 or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. IS0 and
35、 IEC technical committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with IS0 and IEC, also take part in the work. In the field of information technology, IS0 and IEC have established a joint technical committee, ISO/IEC
36、 JTC 1. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard requires approval by at least 75 % of the national bodies casting a vote. International Standard ISO/IEC 10026-2 was prepared by Joint
37、 Technical Committee ISO/IEC JTC 1, lnformation fechnology, Subcommittee SC 21, Open systems interconnection, data management and open distributed processing. This third edition cancels and replaces the second edition (ISO/IEC 10026-2:1996), which has been technically revised. This part of ISO/IEC 1
38、0026 is technically aligned with ITU-T Recommendation X.861, but is not published as identical text. ISO/IEC 10026 consists of the following parts, under the general title Information technology - Open Systems Interconnection - Distributed Transaction Processing. - Part 1: OSI TP Model - Part 2: OSI
39、 TP Service - Part 3: Protocol specification - Part 4: Protocol Implementation Conformance Statement (PICS) proforma - Part 5: Application context proforma and guidelines when using 0.9 TP - Part 6: Unstructured Data Transfer Annex A forms an integral part of this part of ISO/IEC 10026. Annex B is f
40、or information only. lSO/lEC 10026-2:1998(E) 0 ISO/IEC Introduction ISO/IEC 10026 is one of a set of standards produced to facilitate the interconnection of computer systems. It is related to other International Standards in the set as defined by the Reference Model for Open Systems Interconnection
41、(lSO/lEC 7498-l). The Reference Model subdivides the area of standardization for interconnection into a series of layers of specification, each of manageable size. The aim of Open Systems Interconnection is to allow, with a minimum of technical agreement outside the interconnection standards, the in
42、terconnection of computer systems 4 b) c) 4 from different manufacturers; under different management; of different levels of complexity; and of different technologies. ISO/IEC 10026 defines an OSI TP Model, an OSI TP Service and specifies an OSI TP Protocol available within the Application Layer of
43、the OSI Reference Model. The OSI TP Service is an Application Layer service. It is concerned with information which can be related as distributed transactions, which involve two or more open systems. This part of ISO/IEC 10026 defines a basic OSI TP Service. It provides sufficient facilities to supp
44、ort transaction processing, and establishes a framework for coordination across multiple TP resources in separate open systems. ISO/IEC 10026 does not specify the interface to local resources or access facilities that are provided within the local system. However, future enhancement of the standard
45、may deal with these issues. vi INTERNATIONAL STANDARD 0 ISO/IEC lSO/lEC 10026-2:1998(E) Information technology - Open Systems Interconnection - Distributed Transaction Processing - Part 2: OSI TP Service 1 Scope This part of ISO/IEC 10026 defines in an abstract way the Distributed Transaction Proces
46、sing Service within the Application Layer in terms of: a) the actions and events of the service primitives; b) the parameter data associated with each service primitives action and event; and c) the relationship between, and the valid sequences of these actions and events. It does not specify indivi
47、dual implementations or products, nor does it constrain the implementation of entities or interfaces within a computer system. 2 Normative references The following standards contain provisions which, through reference in this text, constitute provisions of this part of ISO/IEC 10026. At the time of
48、publication, the editions indicated were valid. All standards are subject to revision, and parties to agreements based on this part of ISO/IEC 10026 are encouraged to investigate the possibility of applying the most recent editions of the standards indicated below. Members of IS0 and IEC maintain re
49、gisters of currently valid International Standards. ISO/IEC 7498-l :1994, information technology - Open Systems interconnection - Basic Reference Mode/: The Basic Model. ISO/IEC 7498-3:1997, information technology - Open Systems Interconnection - Basic Reference Model: Naming and addressing. ISO/IEC 8649:1996, Information technology - Open Systems Interconnection - Service definition for the Association Control Service Element. ISO/IEC 10026-l :1998, information technology - Open Systems interconnection - Distributed Transaction Processing - Part 1: OS/ TP Model. ISO/IEC 10026-3:1998, inform