1、BRITISH STANDARD BSISO/IEC 9804:1998 Information technology Open Systems Interconnection Service definition for the Commitment, Concurrency and Recovery service element ICS 35.100.70BSISO/IEC9804:1998 This British Standard, having been prepared under the directionof the DISC Board, waspublished unde
2、r the authorityofthe Standards Committee and comes intoeffecton 15 March1999 BSI 05-1999 ISBN 0 580 32144 4 National foreword This British Standard reproduces verbatim ISO/IEC9804:1998 and implements it as the UK national standard. It supersedes BS ISO/IEC9804:1994 which is withdrawn. The UK partici
3、pation in its preparation was entrusted to Technical Committee IST/6, Data communications, which has the responsibility to: aid enquirers to understand the text; present to the responsible international/European committee any enquiries on the interpretation, or proposals for change, and keep the UK
4、interests informed; monitor related international and European developments and promulgate them in the UK. A list of organizations represented on this committee can be obtained on request to its secretary. Cross-references The British Standards which implement international or European publications
5、referred to in this document may be found in the BSI Standards Catalogue under the section entitled “International Standards Correspondence Index”, or by using the “Find” facility of the BSI Standards Electronic Catalogue. A British Standard does not purport to include all the necessary provisions o
6、f a contract. Users of British Standards are responsible for their correct application. Compliance with a British Standard does not of itself confer immunity from legal obligations. Summary of pages This document comprises a front cover, an inside front cover, pages i and ii, theISO/IECtitlepage, pa
7、gesii tovi, pages1 to54 and a back cover. This standard has been updated (see copyright date) and may have had amendments incorporated. This will be indicated in the amendment table on the inside front cover. Amendments issued since publication Amd. No. Date CommentsBSISO/IEC9804:1998 BSI 05-1999 i
8、Contents Page National foreword Inside front cover Foreword v Text of ISO/IEC 9804 1ii blankBSISO/IEC9804:1998 ii BSI 05-1999 Contents Page Foreword v Introduction 1 1 Scope 1 2 Normative references 2 2.1 Identical Recommendations|International Standards 2 2.2 Paired Recommendations|International St
9、andards equivalent in technical content 2 3 Definitions 2 3.1 Reference Model definitions 2 3.2 Service conventions definitions 3 3.3 Presentation service definitions 3 3.4 ACSE service definitions 3 3.5 Application Layer Structure definitions 3 3.6 CCR service definitions 3 4 Abbreviations 7 5 Conv
10、entions 8 6 Concepts 8 6.1 Use of CCR in a distributed application environment 8 6.2 CCR facilities 14 6.3 Heuristic decisions 15 7 Service definition 16 7.1 C-INITIALIZE service 16 7.2 C-BEGIN service 17 7.3 C-PREPARE service 18 7.4 C-READY service 19 7.5 C-COMMIT service 19 7.6 C-ROLLBACK service
11、19 7.7 C-NOCHANGE service 20 7.8 C-CANCEL service 21 7.9 C-RECOVER service 21 7.10 C-P-ERROR service 22 8 Sequencing information 23 8.1 General 23 8.2 Events 29 8.3 States 29 8.4 Predicates 29 8.5 Interpretation of the state table 29 8.6 Completing the branch 29 8.7 Collisions and disruptive service
12、s 29 9 Using CCR 30 9.1 General 30 9.2 Use of CCR with non-reference mapping 30 9.3 Use of session synchronization and resynchronization services 30 9.4 Use of CCR with session activities 30 9.5 Use of presentation services 30 Annex A CCR service-user rules 31 A.1 Introduction 31 A.2 Compliance 31 A
13、.3 CCR service primitive usage rules 31 A.4 Atomic action data manipulation rules 34BSISO/IEC9804:1998 BSI 05-1999 iii Page A.5 Bound data manipulation rules 35 A.6 CCR service-user data transfer rules 35 Annex B Relationship of CCR to the Application Layer Structure 35 B.1 CCR service-provider 35 B
14、.2 CCR service-user 35 B.3 Atomic action graph 37 Annex C CCR tutorial 37 C.1 Introduction 37 C.2 Structure of an atomic action tree 38 C.3 CCR service-user information resources 41 C.4 Concurrency 42 C.5 Recovery 43 C.6 Time relations and sequence of service primitives 46 C.7 Comments on implementa
15、tion complexity 47 C.8 Using the User Data parameter on CCR services 47 C.9 Optional use of C-PREPARE 53 Figure 1 Atomic action graph 8 Figure 2 Atomic action graph ordered according sequence of joining 9 Figure 3 Commit-tree the same as the begin-tree 11 Figure 4 Single commit coordinator different
16、 from the atomic action initiator 11 Figure 5 Two commit coordinators following collision of ready signals 12 Figure B.1 Atomic action tree architecture 36 Figure C.1 Atomic action tree 39 Figure C.2 40 Figure C.3 Time relations for two-branch atomic action tree 49 Figure C.4 Sequence of primitives
17、Atomic action is committed Explicit C-PREPARE 50 Figure C.5 Sequence of primitives Atomic action is rolled back 51 Figure C.6 Sequence of primitives Atomic action is committed Implicit prepare C-BEGIN is not confirmed 52 Figure C.7 Collision between application data and C-READY 54 Table 1 CCR servic
18、es 16 Table 2 C-INITIALIZE parameters 17 Table 3 C-BEGIN parameters 18 Table 4 C-PREPARE parameter 18 Table 5 C-READY parameter 19 Table 6 C-COMMIT parameter 19 Table 7 C-ROLLBACK parameter 20 Table 8 C-NOCHANGE parameters 20 Table 9 C-CANCEL parameter 21 Table 10 C-RECOVER parameter 21 Table 11 Rec
19、over State parameter values 22 Table 12 C-P-ERROR parameter 22 Table 13 States of CCR ASE 24 Table 14 Events 25 Table 15 Predicates 25 Table 16 State table Initialization, idle and error 26BSISO/IEC9804:1998 iv BSI 05-1999 Page Table 17 State table Phase I 26 Table 18 State table After sending a rea
20、dy signal 27 Table 19 State table After receiving a ready signal 27 Table 20 State table After cancel or rollback 27 Table 21 State table After commit order 28 Table 22 State table No-change completion 28 Table 23 State table recovery 28 Table C.1 Example of atomic action data 43BSISO/IEC9804:1998 B
21、SI 05-1999 v Foreword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are members of ISO or IEC participate in the development of International Standards t
22、hrough technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, a
23、lso take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC1. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard req
24、uires approval by at least75%of the national bodies casting a vote. International Standard ISO/IEC 9804 was prepared by Joint Technical Committee ISO/IEC JTC1, Information technology, Subcommittee SC33, Distributed application services, in collaboration with ITU-T. The identical text is published as
25、 ITU-T Recommendation X.851. This third edition cancels and replaces the second edition (ISO/IEC9804:1994), which has been technically revised. Annex A andAnnex B form an integral part of this International Standard. Annex C is for information only.vi blankBSISO/IEC9804:1998 BSI 05-1999 1 Introducti
26、on This Recommendation|International Standard is one of a set of Recommendations|International Standards produced to facilitate the interconnection of information processing systems. It relates to other ITU-T Recommendations|International Standards in the set defined by the Reference Model for Open
27、Systems Interconnection (seeITU-T Rec. X.200|ISO/IEC7498). The reference model subdivides the area of standardization for interconnection into a series of layers of specification, each of manageable size. The goal of Open Systems Interconnection is to allow, with a minimum of technical agreement out
28、side the interconnection Recommendations and International Standards, the interconnection of information processing systems: from different manufacturers; under different managements; of different levels of complexity; and of different technologies. This Recommendation|International Standard recogni
29、zes that application-processes may wish to communicate with each other for a wide variety of reasons. However, any communication requires certain services independent of the reasons for communication. The application-service-element defined in this Recommendation|International Standard provides such
30、 services. This Recommendation|International Standard defines the facilities of the application-service-element for Commitment, Concurrency and Recovery (CCR). CCR provides services for a single association. A referencing specification uses these services for starting and ending a specific sequence
31、of distributed application operations despite application or communication failure. This Recommendation|International Standard is referenced by a specification to apply CCR to its operation. CCR services may be used with presentation services (seeITU-T Rec. X.216|ISO/IEC8822), or with other Applicat
32、ion Layer services. However, the use of CCR services is subject to the restrictions specified in clause9. The use of CCR services allows a referencing specification to define its activity as an atomic action. An atomic action may use many associations, possibly with different protocols on each assoc
33、iation. Annex A describes the rules that shall be followed by a specification that references this Recommendation|International Standard. Annex B presents the relationship of the CCR model and concepts to the Application Layer Structure (seeITU-T Rec. X.207|ISO/IEC9545). Annex C is a tutorial to aid
34、 the understanding of the concepts and facilities of CCR. 1 Scope This Recommendation|International Standard is intended for reference by other specifications when the functionality of commitment, concurrency and recovery is required. It can be referenced whenever the processing of two or more appli
35、cation-entity invocations in a distributed application needs to be organized into an atomic action. This Recommendation|International Standard defines services that are used on a single association to coordinate two application-entity invocations involved in an atomic action. The determination of wh
36、ich application-entity invocations are involved in an atomic action is not within the scope of this Recommendation|International Standard. This Recommendation|International Standard establishes the general principles for the coordinated use of the CCR services when more than two application-entity i
37、nvocations are involved in a single atomic action, or when recovery is required after failure. The coordination of multiple associations and the related application-entity invocations that constitute an atomic action is achieved by a referencing specification in conjunction with this Recommendation|
38、International Standard. This Recommendation|International Standard is only applicable to a distributed application whose specification references this Recommendation|International Standard. This Recommendation|International Standard does not specify individual implementations or products. It does no
39、t constrain the implementation of entities and interfaces within a computer system. No requirement is made for conformance to this Recommendation|International Standard. This Recommendation|International Standard includes requirements for compliance that apply to a referencing specification. The CCR
40、 service defined in this Recommendation|International Standard requires that CCR Protocol Version2 (or a later version) is being used.BSISO/IEC9804:1998 2 BSI 05-1999 2 Normative references The following Recommendations and International Standards contain provisions which, through reference in this
41、text, constitute provisions of this Recommendation|International Standard. At the time of publication, the editions indicated were valid. All Recommendation and Standards are subject to revision, and parties to agreements based on this Recommendation|International Standard are encouraged to investig
42、ate the possibility of applying the most recent edition of the Recommendations and Standards indicated below. Members of IEC and ISO maintain registers of currently valid International Standards. The Telecommunication Standardization Bureau of the ITU maintains a list of the currently valid ITU-T Re
43、commendations. 2.1 Identical Recommendations|International Standards ITU-T Recommendation X.200 (1994)| ISO/IEC7498-1:1994, Information technology Open Systems Interconnection Basic Reference Model: The Basic Model. ITU-T Recommendation X.207 (1993)| ISO/IEC9545:1994, Information technology Open Sys
44、tems Interconnection Application layer structure. ITU-T Recommendation X.210 (1993)| ISO/IEC 10731:1994, Information technology Open Systems Interconnection Basic Reference Model: Conventions for the definition of OSI services. ITU-T Recommendation X.215 (1995)| ISO/IEC8326:1996, Information technol
45、ogy Open Systems Interconnection Session service definition. ITU-T Recommendation X.216 (1994)| ISO/IEC8822:1994, Information technology Open Systems Interconnection Presentation service definition. ITU-T Recommendation X.217 (1995)| ISO/IEC8649:1996, Information technology Open Systems Interconnect
46、ion Service definition for the association control service element. ITU-T Recommendation X.227 (1995)| ISO/IEC 8650-1:1996, Information technology Open Systems Interconnection Connection-oriented protocol for the association control service element: Protocol specification. ITU-T Recommendation X.650
47、 (1996)| ISO/IEC7498-3:1997, Information technology Open Systems Interconnection Basic Reference Model: Naming and addressing. ITU-T Recommendation X.852 (1997)| ISO/IEC9805-1:1998, Information technology Open Systems Interconnection Protocol for the commitment, concurrency and recovery service elem
48、ent: Protocol specification. 2.2 Paired Recommendations|International Standards equivalent in technical content ITU-T Recommendation X.860 (1997), Open Systems Interconnection Distributed transaction processing: Model. ISO/IEC 10026-1, Information technology Open Systems Interconnection Distributed
49、Transaction ProcessingPart1: OSI TP Model 1) . ITU-T Recommendation X.862 (1997), Open Systems Interconnection Distributed transaction processing: Protocol Specification. ISO/IEC 10026-3, Information technology Open Systems Interconnection Distributed Transaction Processing Part3: Protocol specification 1) . 3 Definitions 3.1 Reference model definitions 3.1.1 basic reference model definitions this Recommendation|Intern