ISO IEC 04396-3-2023.docx
INTERNATIONA1.STANDARDISO/IEC4396-3editionFirSt202312Te1.ecommunicationsandinformationexchangebetweensystemsRecursiveinter-networkarchitecture一。断阴Ondistributedapp1.icationprotoco1.Te1.ecommunicationsetGchanged,inbrmationentresystemesArchitecturerecursiveinterrdseauxPartie3:Protoco1.epour1.esapp1.icationsdistributesCDAPReferencenumberISO/IEC4396-3:2023(E)COPYRIGHTPROTECTEDDOCUMENT©ISO/1EC2023IUirhM*hedbdi1.iUedotherwiseupdhi.or啪UIBndttaeDmk<nroni(ncm11ni10tf1.*Mqn1.C6pW11opypMRHt1.onmaytheinternetoranintranet,withoutpriorwrittenpermission.PermissioncanberequestedfromeitherISOattheaddressbe1.oworISO'smemberbodyinthecountryoftherequester.f),WV>fifiU81.andonnet8CH-1214Vernier,GenevaPhone:M1.22749O1.11觥ftte:丽丽BQrgPub1.ishedinSwitzer1.and©ISO/IEC2023-A1.1.tightsreservedISO(theInternationa1.OrganizationforStandardization)andIEC(theInternationa1.E1.ectrotechnica1.membersofISOtheparticipateintheforwor1.dwideInternationa1.Nationa1.bodiesarecommitteesestab1.ishedbytherespectiveorganizationtodea1.withparticu1.arHo1.dsoftechnica1.activity.ISOandIECmitteesco1.1.aborateinfie1.dsofmutua1.interest.Otherinternationa1.work.Theproceduresusedtodeve1.opthisdocumentandthoseintendedforitsfurthermaintenanceareforthetypesofdocument1.Inbenoted,thedifferentwascriteriaaccordancewiththeeditoria1.ru1.esoftheISO/IECDirectives,Part2(seewww.iso.org/directivesorwww.iec.ch/members-experts/refdocs).theuseof(八)drawISOtothetakenothatconcerningtheofthisva1.idityormayinvo1.veofanyc1.aimedpatentrightsinrespectthereof.Asofthedateofpub1.icationofthisdocument.ISOandIEChadreceivednoticeof(八)patent(三)whichmayberequiredtoimp1.ementthisdocument.However,fromthepatentdatabasethatatmaytheandinformation,whichISObeIECsha1.1.notbehe1.dresponsib1.eforidentifyinganyora1.1.suchpatentrights.AnytradeusedinthisForanexp1.anationofthevo1.untarynatureofstandards,themeaningofISOspecifictermsandtheWor1.dTradeconformityprincip1.esintheTechnica1.aboutISO's(TBT)towww.iso.org/iso/foreword.htm1.IntheIECrseeww¼r.iec.chunderstanding-standards.Thisdocument6preparedbyJointnrfechnica1.exchange1.SOIECJTC1,.A1.istofa1.1.partsintheISO/IEC4396seriescanbefoundontheISOandIECwebsites.AnyAorIistingofthisbodiescanbefoundatuser'snationa1.www.iec.ch/nationa1.-committees.IntroductionThecommondistributedapp1.icationprotoco1.(CDAP)isusedbycommunicatingrecursiveinternetworkRnimareIhe伸加用CoIaPP1.mRgtoesdnngmpjHm丽OmsMEicthedotOandRrffif1.intWSmotttaacamgDARionf1.owtoexchangeread/write,Start/stop,andcrcate/de1.ctemethodinvocationsonremote"objects".ThesemanticsofthoseobjectsandoperationsareopaquetotheCDPprotoco1.itse1.f.BecauseCDP洛艇te金盹四眼SWithCa帽监胰忸弹katio糊奸翻榴料麻岛丫阊ne四柚娜?rm科睨曲U1.rebyapp1.ications,anspecifica1.1.ybyinter-processcommunication(IPC)Processes,whicharespecia1.izedapp1.icationsthatcooperatetocreateaDistributedIPCFaci1.ity(DIF)thatprovidesnetworktransporttoOtherapp1.ications.Te1.ecommunicationsandinformationexchangebetweensystemsRecursiveinter-networkarchitecture一Commondistributedapp1.icationprotoco1.1 Scopeapp1.icationsdistributedapp1.icationswithseria1.izationcommunicationsinput/outputobjectoperations.ratherCDAPthanprovidesspecia1.izedprotoco1.s.anoverviewofCDAP;adescriptionofpo1.icies,inthespecificsenseintroducedinthetext;2 Normativereferencesconstitutesrequirements1.atesteditiondocument.referencedreferencesinc1.udingamendrnents)app1.ies.app1.ies.NetworkArchitecturePart1:RINAReferenceMode1.3 Termsanddefinitions叩p1.y.ISOOn1.inebrowsingp1.atform:avai1.ab1.eat4Up½w½eFg0bp3.1app1.icationobjectmode1.5.10CDAPmessage/methodTtpes5.10.1 Objectcreation:CREATE(.R),DE1.ETEQR)CREATEandde1.etemessagesareusedtocreatenewobjectsandtode1.eteexistingobjectsfromthe叩PHeaHon.ObieCtreferencedcrkatemessagemessageisOthenviseattemptcreatefoiU/orObf1.D,1.11parftfPOtrWjf1.iQBOBJCREATEJobjectcreationpo1.icy.OthenvisertheoperationWii1.Theobjectc1.assofthecreatedobjectisdeterminedbythecontentsofthemessage,and/ortheobject's崎谶edpaWt,vaR电qeined(0asstS5fhWE3P%q由ftHWb1QftP1.yf*Pade(FKFAffiationinherentinitsencodingintheconcretesyntaxofthemessage)areacceptab1.etotherecipientCREATEobjectmethodand/oritsparent,thenewobjectwi1.1.beassignedaninitia1.va1.uebasedonitJfnoB¾uecrationBWit%口,thVb坦两棉舒限W依故砧忸朋麻腌initia1.va1.ueifso-specifiedintheIfacreateaddressesanexistingobject,theobjectcreationpo1.icydetermineswhethertheoperationisMra醯钳鹿1.娜A1.三湎Pe梆erationOn网icy践istin撕加幅躺旋(angtw的郦帆邮twriteinthe1.attercasechangeitsva1.ue.瞅隘歌曲H妪棚曲ectmode1.ssha1.r三2嵌魄的酰夕而蹈偏犯蹄蜚斓destfi出ns诲ft玳即thecreatemessagebutcannotbeusedforthenewobjectforanyreason,theoperationwi1.1.rai1.IfnoObjIDwasprovided,onemaybeassignedinaccordancewiththeIPo1.CDAP-OBJ-OBJCREATEpo1.icyandmaybereturnedintheCREBTjRrep1.ya1.ongwithasuccessresu1.t.ObjeetSmaybecreatedanddestroyedbyanapp1.icationatwi1.1.intheapp1.ication'sownRIB,butifanobjectwhoseObjIDhasbeensharedduringanACwiththeappositeapp1.icationisdestroyed,otherthantat施1.ETEoperationbytheapposite,thatObjIDva1.uesha1.1.notbereusedforadifferentobjectduringCDAPdoesnotspecifyhowanewobjectistobefittedintoanyhierarchythatmightbepresentin物限改°nde期廉蠹电也中胡蛊耳fa曲快幅掰%耶艘而胭肺褪d,p81.时脾姗ObjNametoidentifyacontainingnode/Parent,or6yusingtheObjNameParentand/orObj1.DParentfie1.ds.加阳*bebede1.etedfoHH碘佻储mI三御禺Rrefe商hg¼郦碱醴Wfiesu1.Y琳"1储>3ned(ifrequested).Iftheobjecthasbeende1.eted,aDE1.ETE.Rrep1.ywithasuccessretmva1.uewi1.1.bereturned(ifarep1.yisrequested).5.10.2 ObjectRead:READQR),CANCE1.READJR)5.10.2.1 Genera1.Anapp1.icationcanfetchthecurrentva1.ueofanobjectusingareadoperation.Ifthcspecifiedobjectefdmsjedd1.titih4ce1.Da1.ueiBtbcuhrnessagncaR<tdo,andtheti1.uobjcthBMOiittcdbtahttVb1.udcKatedorreadbutarep1.yisrequested,thenaread?,messagecontainingafai1.ureresu1.tisreturned.IfJfnotgc1.ft霏玲揖秒Itj姗岐*啷&p鞘孤席礼魏野8斡联却根留府而散觊照后岳Invoke1.Dwi1.1.CDAPdoesnotdefinethesemanticsOfinc1.udinganObjVa1.ueinareadoperation,butitisa1.1.owed.Thedefau1.tistoignoreit(butanobjectcantreatitasanerrororimp1.ementanoperationusingit.e.g.20©ISO/IEC2023-A1.1.rightsreserveddeneddesiredobjectunder1.yingtree-structurednamenotspacetreestructured,pathObjNamethestring7b,Uefau1.U8iMt<1.ua1.art>ftithetie明WV阚4加山监SW处UrCUi1.嗅淤Ihirt)P僦熊仲他蒯依Urservebe1.owand"major'"minor",and',fix"residinginthenext-higherto1.ow-orderbytes,respective1.y.25Iftheextensionbyteva1.ueisuponathetheAEs.Theinitia1.va1.ueforthe,'major,*minor"rand',fix"fie1.dsiszero.Themostsignicantfie1.dinwhichchangeofobjectmode1.A1.1.hasbeenfie1.dsisreturnedtozerowhenanyachangeofthatisincremented.AEssha1.1.ACwithawithany,major,'thannotownbyifanmaychoosetowith1.ower'minor“va1.uethanitsownmaximumva1.ueitsha1.1.acceptbehaviorsconsistentwiththatear1.ierversion.Thispo1.icydescribeshowthesetofOb)NamesObj1.Dswithintheovera1.1.ObjectMode1.tobemadeAE)rortothisACisoverRIB.A1.1.objectsintheRIBarepotentia1.1.yvisib1.e,butattemptstoaccessaspecificobjectwi1.1.generatean*objectnotsomeifthesti1.1.bedoesnothavethemethodinvokeanye.g.ifofthedoesnotimp1.ementaspecificrequestedmethodoriftherequestordoesnothavesufficientprivi1.egefortherequestedoperation.Thenamingpo1.icyhassevera1.parts:theused;b)thesyntaxofthenamesofobjects,ifdifferent;A1.1.ofthesesha1.1.bespecified.A1.1.objectshaveanon-nu1.1.name,asdescribedinthesyntaxbe1.ow.ObjNamefie1.dsinmessagesaretotheinawaythatThepresentsaR1.Bmayormaybethatdefinesthebutthethroughtreepresentsthatappearancebyitssyntax.The",*(hex2F)characterisusedtoseparateparentnodenamesfromchi1.drennodenames.ItisastonamingObjeCtUSedcreateparentnodesobjectsofparentnodes1.eadingtothena1.(rightmost)chi1.dnameintheObjName1.inadditiontothatrightmostchi1.dname,unique1.yidentity©ISOIEC2023-A1.1.rightsreserved6.5.6.2Defau1.tauthenticationandspecificpropertiestoofbethecreated.describedbyotherpo1.icies,andrestrictionsimposedbyObjectC1.assmayconcreteprovide<1.exp!icit1.ydocumentedObjectC1.assfie1.dthatimp1.icit1.y1.nbythetheC1.efini1.ionsprovidedva1.ueCREATEprovidedinthecreatemessage.VaIidateObjVaIueeitherCREATEmessageanerrordescription.restricdonsprocessedObjVa1.uecREATEmethodbasedtheObjectcurrentthesemanticsbehaviour(e.g,di11erentmayfromCreatedmessagesha1.1.havetwonon-emptyObjNamewhichsha1.1.Specifiedabso1.utepathname.fie1.dwhichObjIDParent.butusingCithersha1.1.beObjNameParentcasc.ObjIDParcntfie1.d;GXPMCiuyObjNanicParentabso1.utethatgenera1.manage1.Ditsva1.uesnumerica1.objeettheownerTherefore,thatCREAmessagebeingCreatedspedfyObj)D.Ifandocumentedpresenttheobjectnotassignedpo1.icyCDAP-PO1.-OB-C1.ASSESandCDAP-PO1.-OBJ-TheIocationsemanticimp1.ications.Therefore,whenabso1.utepathnameorimmediateparentage,orboth,presentcreationOfparentownidentifiedbyobjectsimp1.ementbe:RF:ATE_CHi1.oCDAPmethod.potentia1.1.ycreatedoesChooseandperformCheperfonnCreation,operationsrequiredcomp1.eteCDAPinitia1.ization1.Whichobjectc1.assthatprovidessuchamethod.6.5.7PO1.-CDAP-OBJ-TypesSca1.artypes6.5.7.1 Genera1.C1.assnamesarea1.waysstring-va1.ued,theirnamesareassignedint1.eobjectmode1.Bui1.t-insca1.arcypsngmMrffen(ibiijrthabdctod)fd)ndife1.nuiHtringsthaHwr11y<wiumethbsfi)Uj41.Qafi11t¼*enObjVaIuefie1.dofamessageasdescribedbe1.ow,inwhichcaseanotherwisemissingObjC1.assva1.uemaybeconsideredtobesupp1.ied.f陷俄If超饰三那Mreq由阳IthoUghSU陋临fiQ神de电研黑咿出帆联明RM部曲黄沿gersH出用edbedefined,theymayneveroccurinmessagesifa1.1.theimp1.ementedobjectshavenova1.uefie1.dsthatusethem.W谢邓侬)rsy限axes做P1.eme解MaR<在§阴龄冰肺虫母J脚f1.晒ectd丽I钿糊解刎reedintoamessagesyntaxunambiguous1.yandparsedfromamessageunambiguous1.ysothattheva1.ueiscommunicatedaccurate1.ybetweenthesenderandrecipient.6.5.7.2 Defau1.tThefundamenta1.sca1.artypenamesshowninTab1.e6arereservedforusebyobjectsandobjectc1.assesSK1.imiOt8fayVMiB0rcat11>searandpbj&ts,udnandhedfthiyPGagHnjte(aorayusedastheObjC1.ass.orinsomecasesasnotede1.sewhere,theObjC1.assmaybeimp1.icitintheencoding.Whencreatinganobject,ifava1.ueencodedinthecreatemessageusingtherrentsyntaxdoesnothavea制摊裾用给OnSP1.SR''Viqfftdne解晞rangedpo1.icyforse1.ectingsuchproperties,Tab1.e6Pre-defineddefau1.tsca1.arObjCIassnamesNameDescriptionU1.Unsigned8bit(1byte)integerva1.ueSVariab1.e-1.engthstring,UTF-8encodedDVariab1.e-1.engtharbitrarybinarydataTab1.e8CDPerrortypesCommunicationErrorsuponattemptingtosendorF1.owtimeout,erroronsend,erroronreceiveoperation,butusefu1.forfindinginformationsoftwarerevisionandstatusapp1.ication1.mp1.ementationsoccursimp1.ementation-definedre-estab1.ishCommunicationimp1.cmentation-Iheerrors1.oca1.1.y,causeitmessagegeneratedi1.1.-fo11nedmessageuninterpretab1.eapp1.icationshou1.dcausemeansto1.ogsetnumberofsucherrorsoccurintheAC.error1.oggingmessage4-6themessagesthattherenotrequesttorep1.ypossib1.yfo1.1.owedbyterminatingCDPA1.1.spontaneous1.ygeneratedgeneratedCDPmessageinc1.udingInfonnationa1.thereTab1.e9CDAPspecificresu1.tva1.uesResu1.tNameVa1.ueDescription<0A1.1.va1.ues1.essthanzeroindicatefai1.ure.SideeffectsmayhaveoccurredNooperationwasperformed,andnova1.ueisreturned,fortheObjeCt(三)torRobjbadid-4Thesupp1.iedObjNamedoesnotcorrespondtothesupp1.iedObjIDva1.ueR,C1.ASSNOTFOUND-5Thesupp1.iedObjC1.assdoesnotcorrespondtoaknownc1.ass.6.7PO1.-CDAP-InvokeIDConventionforassigningInvokeIDva1.ues6.7.1 Genera1.Thispo1.icyguidestheassignmentofva1.uestoInvokeiDsrandanysemanticsassociatedwiththeva1.ueQnOWabIeMVOkgin)fKhdidahd11rCke1.thInvoko1.ftrestrictinwthbditifotaBievebekisbttifcnke1.F)va1.ue;theirassignment,oranyrestrictionsonthenumberthatmaybeactiveatonce,sha1.1.bespecified.ReceiversofanInvokeIDva1.ueotherthanzerosha1.1.notrecognizethatva1.ueashavingaspecificmeaning.Iftherea¾三/08EPs皆½RMb相孤WCifiedSi曲括项M梯蚓eas。A)CI1.$吼带阳r僦帼蝌布Mtsha1.1.nottakeadvantageofthatknow1.edge.6.7.2 Defau1.tInvokeIDva1.uesareassignedava1.ueotherthanzerothatcanbeencodedina32-bitunsignedinteger.IIPPtetn0mhRtiyanIitihba1.benQifiiiiberMrepHedInvoke啊,macHinwnuffib11p1.em(fbrovMncomingoperation.Thismaybeava1.ueassma1.1.asOrimp1.yingthatarep1.yisimmediate1.yreturnedfora1.1.©ISO/IEC2023-A1.1.rightsreservedTab1.e.1.(continued)Scopeenum(int32)scopeACACEHwKI-0;-1;回他a-cace-k1.a5e-"2;h,Jf3!F三AC三Fa%5ER-3:ES三W帝®meBYCDAP1SBYCDAPWBYCDAF三3BYCDAP:的如劝"McssagcTbcIowfic1.ddcscibcdstructuredva1.ue,definedbyaseparateGPBdefinition.ThestructuretypesA.3Messageencodingprovidesminima1.programming1.anguagesstructure.performingencodingOn1.ydecodingofmessages.messagesbjectva1.uesinCDAPmessagesbetweencomp1.exitywaysencodingCfTiciencyva1.ucsindistinguishingspcd11crncthodunsigncdcompromiseComprisinganddecodingtype.Objectincumhentuponc1.assesinimp1.ementationsdefinitionappropriate1.yperformfai1.ureJSONfie1.dab1.etodocoercedtotreatedConespondingHeIdRangeRIBobjectwithoutva1.uechange.A.5CDP.protofi1.erepresentsthethemappingCDAPconcreteencodingversionareprovidedabstractsyntax.Thecontentsofthe-37ackagecdap_msg;/Itessagetypes.enumopcode/(A-CREATE-4;A_CREATE_R-5;A二DE1.ETE-=6;A-DE1.ETER-1;AREAD-8;A二READ_R=9;A二GN血READ三10;A二SNCE1.READ_R-11;A二WRtTE三12;A二WRITE_R=13;A二START14;A-START_R-15;A二SToP三16;/Va1.uestorthef1.agsfie1.d.enumfIagVa1.uea_t(JSKNC=e1;FRDI附CttP1.-2:messageobjVa1.-tIoptiona1.int32optiona1.三int32optiona1.int64optiona1.sint64optiona1.stringoptiona1.bytesoptiona1.fixed32optiona1.t1.xed64A_STOP_R-17;/setonREDNRITEtorequestsynchronousr/w/setona1.1.butfina1.rep1.ytoanA_READ/va1.ueofanobjectIntva1.-1;sintva1.D2;int64va1.=3;s1.nt64va1.-4;Strva1.-5;byteva1.-6;/arbitraryStruecuceornessa9ef1.oatva1.=7;doUb1.eva1.-8;/CDAPmessagefie1.ddefinition,canbeusedformessages./Inthissing1.e-mesaage-bufter-typeform,itafie1.disoptiona1.inanyHneaae,itsha1.1.becptio11a1.,here.Ifrequiredina1.1.,itiswndatoryhere./Seetbdccur>enttinfortheuCaP1.etefie1.dspecificationofeachnrsaoetype.messageCDAPMessage(三ptio111.int32心ERVED_CACEP-1;"RESERVEDFCftCMEP,XOTUSEDBYCMPrequiredQPCode_topcode=2:/opCode.optiona1.int32InvokeID-3defau1.t-O);HInvokeIDrOifnorep1.ycfesir÷d.optiona1.f1.agVa1.ues-tf1.ags-4;m1.sc-f1.agsoptiona1.stringobjC1.a三三-5;/Xaneoftheobjectc1ssofobjN11eoptiona1.stringQbjNge=6;HObjectnarr«runiqueinitsc1.assoptiona1.int64ObjInst-7;/Uniqueobjectinstanceoptiona1.Objja1.tOtojVa1.ue«8;/va1.ueofObjRUtinread/writc/etc.optiona1.int32resu1.t=9defau1.t=0;Uresu1.tofoperation/O=successoptiona1.int32scope-10;/scopeofREAD/WRITEoperationoptiona1.bytesfi1.ter-11;/fi1.terscriptoptiona1.DbjNaDeParent-28;/na11cofparentnodeforCREATEoptiona1.ObJIDParent-29;UobjectIDofparentn<×1.eforC