1、B CReference numberISO/IEC 9804:1998(E)INTERNATIONALSTANDARDISO/IEC9804Third edition1998-12-01Information technology Open SystemsInterconnection Service definition for theCommitment, Concurrency and Recoveryservice elementTechnologies de linformation Interconnexion de systmes ouverts(OSI) Dfinition
2、du service pour llment dengagement, deconcomitance et de rtablissementAdopted by INCITS (InterNational Committee for Information Technology Standards) as an American National Standard.Date of ANSI Approval: 12/3/2002Published by American National Standards Institute,25 West 43rd Street, New York, Ne
3、w York 10036Copyright 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 Infor
4、mation Technology 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
5、, DC 20005.Printed in the United States of AmericaCopyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-ISO/IEC 9804:1998(E) ISO/IEC 1998All rights reserved. Unless otherwise specified
6、, no part of this publication may be reproduced or utilized in any form or by any means, electronic ormechanical, including photocopying and microfilm, without permission in writing from the publisher.ISO/IEC Copyright Office Case postale 56 CH-1211 Genve 20 SwitzerlandPrinted in SwitzerlandiiConten
7、ts Page1 Scope 12 Normative references . 12.1 Identical Recommendations | International Standards 12.2 Paired Recommendations | International Standards equivalent in technical content 23 Definitions 23.1 Reference Model definitions. 23.2 Service conventions definitions 33.3 Presentation service defi
8、nitions 33.4 ACSE service definitions 33.5 Application Layer Structure definitions . 33.6 CCR service definitions 44 Abbreviations. 75 Conventions . 86 Concepts. 86.1 Use of CCR in a distributed application environment 86.2 CCR facilities 146.3 Heuristic decisions 167 Service definition. 167.1 C-INI
9、TIALIZE service . 177.2 C-BEGIN service 187.3 C-PREPARE service. 197.4 C-READY service 207.5 C-COMMIT service 207.6 C-ROLLBACK service. 217.7 C-NOCHANGE service 227.8 C-CANCEL service 237.9 C-RECOVER service . 237.10 C-P-ERROR service . 258 Sequencing information. 258.1 General 258.2 Events . 328.3
10、States. 328.4 Predicates 328.5 Interpretation of the state table . 32Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,- ISO/IEC ISO/IEC 9804:1998(E)iii8.6 Completing the branch 328
11、.7 Collisions and disruptive services . 339 Using CCR 339.1 General 339.2 Use of CCR with non-reference mapping . 339.3 Use of session synchronization and resynchronization services . 339.4 Use of CCR with session activities 339.5 Use of presentation services 33Annex A CCR service-user rules 34A.1 I
12、ntroduction . 34A.2 Compliance 34A.3 CCR service primitive usage rules 34A.4 Atomic action data manipulation rules 37A.5 Bound data manipulation rules 38A.6 CCR service-user data transfer rules . 39Annex B Relationship of CCR to the Application Layer Structure 40B.1 CCR service-provider 40B.2 CCR se
13、rvice-user. 40B.3 Atomic action graph 40Annex C CCR tutorial. 42C.1 Introduction . 42C.2 Strucutre of an atomic action tree 43C.3 CCR service-user information resources. 45C.4 Concurrency 47C.5 Recovery 48C.6 Time relations and sequence of service primitives 52C.7 Comments on implementation complexi
14、ty 53C.8 Using the User Data parameter on CCR services53C.9 Optional use of C-PREPARE 59Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-ISO/IEC 9804:1998(E) ISO/IECivForewordISO
15、(the International Organization for Standardization) and IEC (the International Electrotechnical Commission) formthe specialized system for worldwide standardization. National bodies that are members of ISO or IEC participate in thedevelopment of International Standards through technical committees
16、established by the respective organization to dealwith 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, also take part in thework.In th
17、e field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. DraftInternational Standards adopted by the joint technical committee are circulated to national bodies for voting. Publicationas an International Standard requires approval by at least 75 % o
18、f the national bodies casting a vote.International Standard ISO/IEC 9804 was prepared by Joint Technical Committee ISO/IEC JTC 1, Informationtechnology, Subcommittee SC 33, Distributed application services, in collaboration with ITU-T. The identical text ispublished as ITU-T Recommendation X.851.Thi
19、s third edition cancels and replaces the second edition (ISO/IEC 9804:1994), which has been technically revised.Annexes A and B form an integral part of this International Standard. Annex C is for information only.Copyright American National Standards Institute Provided by IHS under license with ANS
20、INot for ResaleNo reproduction or networking permitted without license from IHS-,-,-v)NTRODUCTIONThis Recommendation | International Standard is one of a set of Recommendations | International Standards produced tofacilitate the interconnection of information processing systems. It relates to other
21、ITU-T Recommendations |International Standards in the set defined by the Reference Model for Open Systems Interconnection (see ITU-TRec. X.200 | ISO/IEC 7498). The reference model subdivides the area of standardization for interconnection into a seriesof layers of specification, each of manageable s
22、ize.The goal of Open Systems Interconnection is to allow, with a minimum of technical agreement outside theinterconnection Recommendations and International Standards, the interconnection of information processing systems: from different manufacturers; under different managements; of different level
23、s of complexity; and of different technologies.This Recommendation | International Standard recognizes that application-processes may wish to communicate witheach other for a wide variety of reasons. However, any communication requires certain services independent of thereasons for communication. Th
24、e application-service-element defined in this Recommendation | International Standardprovides such 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 associa
25、tion. A referencing specification usesthese services for starting and ending a specific sequence of distributed application operations despite application orcommunication failure.This Recommendation | International Standard is referenced by a specification to apply CCR to its operation. CCRservices
26、may be used with presentation services (see ITU-T Rec. X.216 | ISO/IEC 8822), or with other ApplicationLayer services. However, the use of CCR services is subject to the restrictions specified in clause 9. The use of CCRservices allows a referencing specification to define its activity as an atomic
27、action. An atomic action may use manyassociations, possibly with different protocols on each association.Annex A describes the rules that shall be followed by a specification that references this Recommendation | InternationalStandard.Annex B presents the relationship of the CCR model and concepts t
28、o the Application Layer Structure (see ITU-TRec. X.207 | ISO/IEC 9545).Annex C is a tutorial to aid the understanding of the concepts and facilities of CCR. ISO/IEC ISO/IEC 9804:1998(E)Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproductio
29、n or networking permitted without license from IHS-,-,-Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-)3/ )%#G0 G0 G0 G0 %G9)45G134G02EC G08 G0 G0%G9 1).4%2.!4)/.!,G0G034!.$!2$I
30、SO/IEC 9804 : 1998 (E)ITU-T Rec. X.851 (1997 E)45G134G0G02%#/-%.$!4)/.). association;b) application-entity;c) Application Layer;d) application-process;e) application-service-element;f) presentation-connection;g) presentation-service;h) session-connection;i) session-service.AMINGG0ANDG0ADDRESSINGG0DE
31、FINITIONSThis Recommendation | International Standard makes use of the following terms defined in ITU-T Rec. X.650 |ISO/IEC 7498-3: application-entity title2)._1)To be published.2)As defined in ITU-T Rec. X.650 | ISO 7498-3, an application-entity title is composed of an application-process title and
32、 anapplication-entity qualifier.Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-)3/ )%#G0 G0 G0 G0 %G9)45G134G02EC G08 G0 G0%G9 33ERVICEG0CONVENTIONSG0DEFINITIONSThis Recommendat
33、ion | International Standard makes use of the following terms defined in ITU-T Rec. X.210 |ISO/IEC 10731:a) service-provider;b) service-user;c) confirmed service;d) non-confirmed service;e) provider-initiated service;f) primitive;g) request (primitive);h) indication (primitive);i) response (primitiv
34、e); andj) confirm (primitive).0RESENTATIONG0SERVICEG0DEFINITIONSThis Recommendation | International Standard makes use of the following terms defined in ITU-T Rec. X.216 |ISO/IEC 8822:a) abstract syntax;b) abstract syntax name;c) defined context set;d) functional unit presentation;e) presentation co
35、ntext; andf) presentation data value.!#3%G0SERVICEG0DEFINITIONSThis Recommendation | International Standard makes use of the following terms defined in ITU-T Rec. X.217 |ISO/IEC 8649:a) association-initiator;b) association-responder; andc) disrupt.!PPLICATIONG0,AYERG03TRUCTUREG0DEFINITIONSThis Recom
36、mendation | International Standard makes use of the following terms defined in ITU-T Rec. X.207 |ISO/IEC 9545:a) application-context;b) application-entity invocation;c) application-service-object;d) control function;e) multiple association control function;f) single association control function;g) s
37、ingle association object.Copyright American National Standards Institute Provided by IHS under license with ANSINot for ResaleNo reproduction or networking permitted without license from IHS-,-,-)3/ )%#G0 G0 G0 G0 %G94 )45G134G02EC G08 G0 G0%G9#2G0SERVICEG0DEFINITIONSACCEPTOR: The CCR service-user t
38、hat receives the indication primitive for a particular CCR service. For aconfirmed service, it also issues the response primitive.APPLICATIONG0FAILURE: The failure of an application-entity invocation to meet its normal specification.ATOMICG0ACTION: A specific set of operations of a distributed appli
39、cation that may be characterized by theproperties of atomicity, consistency, isolation, and durability.ATOMICG0ACTIONG0BRANCH G0BRANCH: A relationship between two CCR service-users representing an integral partof an atomic action. The relationship may survive both communication or application failur
40、e. It is begun by the use ofCCR services and later completed by either the use of CCR services or by an application or communication failure.ATOMICG0ACTIONG0BRANCHG0IDENTIFIER G0BRANCHG0IDENTIFIER: A value assigned by the atomic action branch-initiatorthat uniquely identifies a branch within the sco
41、pe of the atomic action.ATOMICG0ACTIONG0DATA: State and control information about an atomic action and its branches. Atomic action datarequired for recovery persists if an application or communication failure occurs.ATOMICG0 ACTIONG0 GRAPH: A connected graph consisting of CCR service-users as nodes
42、and atomic actionbranches as arcs that represents the structure of an atomic action.ATOMICG0ACTIONG0IDENTIFIER: A value assigned by the atomic action owner that uniquely identifies an atomicaction within the OSI environment. (The value is first used in a CCR service by the atomic action initiator. H
43、owever, theinitiator may have received the value from another source via a mechanism that is not visible in CCR services).ATOMICG0ACTIONG0INITIATOR: The begin-tree root.ATOMICG0ACTIONG0OWNER: The CCR service-user that established the atomic action identifier.ATOMICITY: A property of a set of related
44、 operations such that the operations are either all performed, or noneof them are performed.BEGING13TREE G0ATOMICG0ACTIONG0BEGING13TREE: An atomic action graph that has been formed into a rooted tree wherethe direction of an arc is from the CCR service-user that initiates the atomic action branch.BO
45、UNDG0DATA: Data that are accessed and manipulated by a CCR service-user as part of an atomic action. Theirstate is bound by the rules of CCR. Bound data survive application and communication failures and exist beyond theatomic action branch.BRANCHG13INITIATOR G0ATOMICG0ACTIONG0BRANCHG13INITIATOR: Th
46、e CCR service-user that begins a specific branch.BRANCHG13RESPONDER G0ATOMICG0ACTIONG0BRANCHG13RESPONDER: On a specific branch, the CCR service-user that didnot initiate the branch.COMMITG13TREE G0ATOMICG0ACTIONG0COMMITG13TREE: An atomic action graph that has been formed into a rooted tree inwhich t
47、he direction of an arc is from the CCR service-user (the commit-superior) that may order commitment to the peer(the commit-subordinate).#2G0SERVICEG13PROVIDER: Two peer CCR application-service-elements involved in the same atomic actionbranch.#2G0SERVICEG13USER: That part of an application-entity in
48、vocation that makes use of CCR services to coordinateone or more branches of an atomic action graph.COMMITG0COORDINATOR: A CCR service-user that receives ready signals from all of its neighbours.COMMITG13DECIDER: A CCR service-user that orders commitment to (usually, all of) its neighbours, withouth
49、aving received an order of commitment. It is the root of the commit-tree (In certain cases, one of two roots).COMMITMENTG0OFG0ANG0ATOMICG0ACTIONG0BRANCH G0COMMITMENT: Completion of an atomic action branch with therelease of bound data in the final state.COMMITG13SUBORDINATE: (With reference to a branch.) The CCR service-user that sends a ready signal to