1、INTERNATIONAL TELECOMMUNICATION U N ION ITU=T TELECOMMUNICATION STANDARDIZ4TION SECTOR OF ITU T.434 (04/99) SERIES T: TERMINALS FOR TELEMATIC SERVICES Binary file transfer format for the telematic services ITU-T Recommendation T.434 (Previously CCITT Recommendation) -_ - . . INTERNATIONAL TELECOMM U
2、 N CATI ON UN ION ITU-T TELECOMMUNICATION STANDARDIZATION SECTOR OF ITU SERIES T: TERMINALS FOR TELEMATIC T.434 (04/99) S E RVI CES Binary file transfer format for the telematic services ITU-T Recommend at ion T.434 (Previously CCITT Recommendation) ITU-T T-SERIES RECOMMENDATIONS TERMINALS FOR TELEM
3、ATIC SERVICES .4 _ - . I_ For further details, please refer to ITU-T List of Recommendations. .- . , . _“.,. all users of this Recommendation are therefore encouraged to investigate the possibility of applying the most recent edition of the Recommendations and other references listed below. A list o
4、f the currently valid ITU-T Recommendations is regularly published. - IS0 8601:1988, Data elements and interchange formats - Information interchange -Representation of dates and times. - IS0 8571-2:1988, Information processing systems - Open Systems Interconnection - File Transfer, Access and Manage
5、ment - Part 2: Virtual Filestore Dejnition. IS0 8571-4:1988, Information processing systems - Open Systems Interconnection - File Transfer, Access and Management - Part 4: File Protocol Specification. ITU-T Recommendation X.680 (1997) I ISO/IEC 8824-1:1998, Information technology -Abstract Stax Nota
6、tion One (ASN 1): Specijcation of basic notation. RFC 2046, Multipurpose Internet Mail Extensions (MIM?$ Part Two: Media Types - - 3 Definitions For the purposes of this Recommendation, the following definitions apply. 3.1 value having a defined meaning. attribute: A piece of information stating a p
7、roperty of something, taking one of a set of defined values, each 3.2 coding rules in Appendix I. binary file (data): A sequence of octets, representing a binary file and optional attributes, formed, using the 3.3 file attributes: The name and other identifable properties of a file. 4 General concep
8、t Binary File Transfer (BFT) describes the semi-intics and syntax necessary to represent a data file in order to transfer it through the protocols of various telematic services, such as Facsimile Group 3 and Group 4, DTAM normal mode and message handling. The following clauses describe the attribute
9、s of a data file. Recommendation T.434 (04/99) 1 ri8b2591 Obb9192 927 5 BFT file attributes For the BR, the following atibutes (see Table 1) are defined. All of the attributes are optional. They are desmied using ASN. 1. Ail attributes are optional except for protocol version, which is defaultable.
10、A BINARY DATA message consists of a sequence of these attributes which include the file data itself and is defined as follows. BINARY-DATA-Message : := APPLICATION 231 IMPLICIT SEQUENCE OF (SEQUENCE ( .list of attributes .I Table UT.434 - File attributes Attribute name protocol version Filename perm
11、itted actions contents type storage account date and time of creation date and time of last modification date and time of last read access identity of creator identity of last modifier identity of last reader Filesize future filesize access control legal qualifications private use Structure applicat
12、ion reference Machine operating system Recipient Charaderset Compression Fxlvirolment Pathname storeand-forward user visible string file retrieval MIMEmediatype data file content The following subclauses contain the syntax for each attribute. 2 Recommendation T.434 (04/99) . -. _ I-_ . 5.1 File name
13、 syntax The file name is a sequence of name components. Each component is a value of type UTF8Stnng. When more than one element is encoded, the first element shall be the file name and the remaining elements shall be concatenated to represent the file name prefix filename Filename-Attribute O IMPLIC
14、IT FilenameAttribute OPTIONAL, := SEQUENCE OF UTFString 5.2 Permitted actions syntax The permitted actions attribute indicates the set of actions that can be performed on the file. permitted-actions Permitted-Actions-Attribute := BIT STRING - Actions available : 11 IMPLICIT Permitted-Actions-Attribu
15、te OPTIONAL, read (O), insert (119 replace O), extend (3). erase (4) (size (5.4) 5.3 Contents type syntax The contents type attribute indicates the abstract data types of the contents of the Ne and the stnicturing infomation which is necessaxy if the complete file structure and semantics are to be m
16、aintained during the transfer of the file. The value is either a document name (possibly with parameters in a single value of any type) or a pair of abstract syntax name and constraint set name. Each of these names are values of the type OBJECT DENTFIER. cont ents-type Contents-Type-attribute := SEQ
17、UENCE 2 Contents Type Attribute OPTIONAL, document-type-name i OBJECT IDENTIFIER parameter O ANY OPTIONAL - The actual types to be used for values of the parameter - field are defined in the identr$ed or named document type. - Currently, only UNSTRUCTURED TEXT and OBJECT IDENTIFIER - are supported.
18、OMECT IDENTIFIER is the default value. NOTE - The document-type-name of the Contents-Type-Attribute should be specified using the default value of UNSTRUCTLJRED BINARY in cases where the application-reference is being used for further identification of file contents. The object identifier for unstru
19、ctured-binq is: is0 (O) standard (40) 8571 (8571) document-type (5) unstructured-binary (3) . 5.4 Storage account syntax The storage account attribute identifies the accountable authority responsible for accumulated file storage charges. The value of the storage account attribute is of type UTF8Stri
20、ng. storage-account 3 IMPLICIT UTF8String OPTIONAL, 5.5 Date and time syntax The date and time of creation attribute indicates when the file was created. The vaiue of the attribute is of type GeneralizedTime. I The date and time of last modification attribute indicates when the contents of the file
21、were last modified. The value of the attribute is of type GeneralizedTime. For a newly created file, the value is equal to the value of the date and time of creation attribute. Recommendation T.434 (04/99) 3 I IiBb2591 Obb9L91 7TT D The date and time of last read access attriiute indicates when the
22、contents of the file were last read. The value of the attribute is of type GeneralizedTime. For a newly created file, the value is equal to the value of the date and time of creation attnbute. date-and-time-of-creation 4 IMPLJCIT GeneralizedTime OPTIONAL dateand-time-of-last-modification 5 IMPLICIT
23、GeneralizedTime OPTIONAL date-and-time-of-last-read-access a IMPLICIT GeneralizedTime OPTIONAL Generalized Time represents a calendar date and time of day to various precisions, as provided for by IS0 8601. The time of day can be specified as local time only, TJTC time oniy, or as both local and UTC
24、 time. The Generalized Time type is fody defined as shown below. It is a string of characten, as follows: 1) Where the local time only is present, the Generalized Time is a string consisting of the date, as specified in IS0 8601, followed by the local time of day, using one of the forms specified in
25、 IS0 8601. 2) Where the UTC time only is present, the representation is as for case l), followed by the letter “Z“ to indicate that the time is based on UTC. 3) Where both local time and UTC are present,zhe representation is as for case i), followed by a TDF (Time Differential Factor), as defined in
26、 IS0 8601, which represents the difference of local time for UTC. The characters required to represent the Generalized Time (the digits “O“ to “9*, “.“, “,“, “+“, “-“ and “Z“) are taken from International Alphabet Number 5: , GeneralizedTime := mRSAL 241 IMPLICIT MString - Emnple - If of type Genera
27、lizedTime, the value “198201020700“, which represents a local time of 0700 hours on 2 Janwy 1982, canbe encoded as (using hexadecimal notation): Generalized Time Length Contents 18 oc 313938323031303230373030 5.6 Identity attribute syntax The value of the identity of creator attribute is a UTF8St1in
28、g. The identity of last modifier attriiute is altered by the receiver whenever the file has been opened for modification or extension and is closed (including closure following a connection failure). The value is of type UTFSShing. For a newly mated file, the value is equal to the value of the ident
29、ity of creator attribute. The idenity of last reader attribute is altered by the receiver whenever the file has been opened for reading and is closed (inchiding closure following a connection failure). The attribute is of type UTFSString. For a newly created me, the value is equal to the value of th
30、e identity of creator amiute. identity-of-creator 8 IMPLICIT UTFString OPTIONAL identity-of-last-modifier 9 IMPLICIT UTFString OPTIONAL identity-of-last-reader lo IMPLICIT UTFString OPTIONAL - * - - -_- - .n_ 5.7 File characteristic attributes syntax The filesize attribute is altered by the receiver
31、 whenever the file is closed after having been opened for modification and extension (including closure following a connection failure). r A.+ The ariiute is set to the nominai size in octets of the complete fiie when the file is closed. The value of the attribute is an integer. For a newly created
32、file, the value is set to zero. The future filesize attribute indicates the nominal size in octets to which the file may grow as a result of modification and extension The value of the attribute is an integer. .-“!a4- r -. . 3+ L ilesize fiture-mesize 13 IMPLICIT INTEGER OPTIONAL 14 IMPLICIT INTEGER
33、 OPTIONAL 5.8 Legal qualifications syntax The legal quaiifcations attribute conveys information about the legal status of the We and its use. The value of the attriim is of type IJTFSString. legal-qualifications 16 DIPLICIT UTFString OPTIONAL 4 Recommendation T.434 (04/99) . . . . , . . . . . . . -
34、. 5.9 Private use syntax The meaning of the private use attribute is not defined. The value of the attribute can take any form. privateuse 171 Private-UseAttribute OPTIONAL Private-Use-Attribute : = SEQUENCE manufact urer-values O ANY OPTIONAL 5.10 Environment syntax These attributes provide additio
35、nal information descniing various aspects of the environment the binaq file transfer is originating from application-reference 191 General-Identifier OPTIONAL machine operating-system environment pathname user-visible-s tring general identifier 20 IMPLICIT SEQUENCE OF UTFString OPTIONAL 21 IMPLICIT
36、OBJECT IDENTIFIER OPTIONAL 25 IMPLICIT SEQUENCE OF UTFString OPTIONAL 26 IMPLICIT SEQUENCE OF UTFString OPTIONAL 29 IMPLICIT SEQUENCE OF UTFString OPTIONAL := CHOICE OBJECT IDENTIFIER, SEQUENCE OF UTFString OPTIONAL NOTE - Application referace is intended for identifying application program and vers
37、ion numbers. 5.11 Structure syntax The structure attribute indicates the format of the data being transferred in the data-filecontent attribute. structure 18 IMPLICIT OBJECT IDENTIFIER OPTIONAL 5.12 Recipient syntax The recipient attribute is used to indicate the final user destination of the binaxy
38、 file transfer. recipient 22 IMPLICIT SEQUENCE OF UTFString OPTIONAL 5.13 Character set syntax The character set attribute indicates the international character set to be used for the rendering of the character data contained in the attribute data-filecontent character-set 23 IMPLICIT OBJECT IDENTIF
39、IER OPTIONAL 5.14 Compression syntax The compression atribute indicates an optional compression added to the contents of the data-file-content attribute. compression 24 J General-Identifier OPTIONAL NOTE - The syntax of the General-Identifier attribute is defmed in 5.10. 5.15 Data format syntax The
40、data file content attribute contains the data file contents to be transferred. data-ffle-content 30 CHOICE (EXTERNAL, ANY OPTIONAL 5.16 The access control attribute is a set attriiute. It defines conditions under which access to the file is valid. Access control syntax (for further study) Recommenda
41、tion T.434 (04/99) 5 Each element of the set gives one condition under which access to. BINARY-DATA-Message := APPLICATION 231 IMPLICIT SEQUENCE OF SEQUENCE protocol-version 28 Protocol-Version , filename O DIPLICIT FilenameAttribute OPTIONAL, permitted-actions i IMPLICIT Permitted-Actions-Attribute
42、 contents-type 2 Contents-TypeAttribute OPTIONAL, - not specifiing this attribute implies that data-$le-content - is unstructured binary storageaccount 3 IMPLICIT UTFString OPTIONAL, date-and-timeof-creation 141 IMPLICIT GeneraiizedTime - If the protocol-version is not speced, version 1 should be as
43、sumed OPTIONAL, - DEFA ULT UNSTR UCTURED BINARY 1 OPTIONAL, date-and-time-of-last-modification SI IMPLICIT GeneralizedTime date-and-timeof-last-read-access 6 IMPLICIT GeneralizedTime - 7 is reserved for date-and-time-of-last-attribute-modijcation identity-of-creator 8 IMPLICIT TJTFSString OPTIONAL,
44、identity-of-last-modifier 9 IMPLICIT UTFString OPTIONAL, identity-of-last-reader lo IMPLICIT UTFStnng OPTIONAL, - I I is reserved for identi-of-last-attribute-modifier - I2 is reserved forfle-availability filesize . 13 IMPLICIT INTEGER OPTIONAL, future-filesize 14 IMPLICIT INTEGER OPTIONAL, - access
45、-control 15/ Access-Control-Attribute OPTIONAL, - the use of this attribute is for further study OPTIONAL, OPTIONAL, Recommendation T.434 (04/99) 11 9 rib2591i Obb9202 bTb legal-qualifications 16 IMPLICIT UTFString OPTIONAL, privateuse 17 Privateuse-Attribute OPTIONAL, structure application-referenc
46、e 19 General-Identifier OPTIONAL, machine operating-system recipient character-set compression 24 General-Identifier OPTIONAL, - Indicates an optional compression applied to the content - octets of the attribute data-$le-content environment pathname user-visible-s tring data-fie-content 30 CHOICE ex
47、ternal EXTERNAL, any OCTET STRING OPTIONAL - For most cases, a type of Octetsring is a reasonable choice in place of the ANY syntax 1 Contents-Type-Attribute := - See Annex B of IS0 8571-2 for more information SEQUENCE document-type-name i OBJECT IDENTIFER, parameter O TYPE-IDENTIFIER 2) lengthoctet
48、s; 3) contents octets; 4) end-ofcontens octets. Figure I. 1 illustrates the structure of an encoding. Note that the length of the contents octets can be specified by either the length octets or an end-of-contents octets. Identifier Length Contents End-of-contents octets octets octets octets Not pres
49、ent if length given by length octets Figure I.lm.434 - The structure of a data value encoding 1.3 Identifier octet The identifier octet encodes the ASN.l tag (class and number) of the type of the data value. This tag is used to idene the data value in the contex? in which it is coded. The value of the tag can be determined explicitly or implicitly from the production rules being applied