ITU-T X 208-1988 SPECIFICATION OF ABSTRACT SYNTAX NOTATION ONE (ASN 1)《抽象句法表记法(ASN 1)的规范》.pdf
《ITU-T X 208-1988 SPECIFICATION OF ABSTRACT SYNTAX NOTATION ONE (ASN 1)《抽象句法表记法(ASN 1)的规范》.pdf》由会员分享,可在线阅读,更多相关《ITU-T X 208-1988 SPECIFICATION OF ABSTRACT SYNTAX NOTATION ONE (ASN 1)《抽象句法表记法(ASN 1)的规范》.pdf(74页珍藏版)》请在麦多课文档分享上搜索。
1、)45 4 8 TELECOMMUNICATIONSTANDARDIZATION SECTOROF ITU/0%. 3934%-3 ).4%2#/%#4)/.-/$%, !.$ ./4!4)/.30%#)(b) the need for a high-level notation for specifying such information objects;(c) the value of isolating and standardizing the rules for encoding such information objects,unanimously recommends(1)
2、that the notation for defining the abstract syntax of information objects is defined in Section 1;(2) that character string types are defined in Section 2;(3) that other useful types are defined in Section 3;(4) that subtypes are defined in Section 4.CONTENTS0 Introduction1 Scope and field of applic
3、ation2 References3 Definitions4 Abbreviations5 Notation used in this Recommendation5.1 Productions5.2 The alternative collections5.3 Example of a production5.4 Layout5.5 Recursion5.6 References to a collection of sequences5.7 References to an item5.8 Tags_1Recommendation X.208 and ISO 8824 Informati
4、on processing systems - Open Systems Interconnection - Specification of AbstractSyntax Notation One (ASN.1) as extended by Addendum 1 to ISO 8824, were developed in close cooperation and are technicallyaligned.2 Fascicle VIII.4 Rec. X.2086 Use of the ASN.1 notationSECTION 1 SPECIFICATION OF ASN.1 NO
5、TATION7 The ASN.1 character set8 ASN.1 items8.1 General rules8.2 Type references8.3 Identifiers8.4 Value references8.5 Module reference8.6 Comment8.7 Empty item8.8 Number item8.9 Binary string item8.10 Hexadecimal string item8.11 Character string item8.12 Assignment item8.13 Single character items8.
6、14 Keyword items9 Module definition10 Referencing type and value definitions11 Assigning types and values12 Definition of types and values13 Notation for the Boolean type14 Notation for the integer type15 Notation for the enumerated type16 Notation for the real type17 Notation for the bitstring type
7、18 Notation for the octetstring type19 Notation for the null type20 Notation for sequence types21 Notation for sequence-of types22 Notation for set types23 Notation for set-of typesFascicle VIII.4 Rec. X.208 324 Notation for choice types25 Notation for selection types26 Notation for tagged types27 N
8、otation for the any type28 Notation for the object identifier type29 Notation for character string types30 Notation for types defined in Section 3SECTION 2 CHARACTER STRING TYPES31 Definition of character string typesSECTION 3 USEFUL DEFINITIONS32 Generalized time33 Universal time34 The external typ
9、e35 The object descriptor typeSECTION 4 SUBTYPES36 Subtype notation37 Subtype Value Sets37.1 Single Value37.2 Contained Subtype37.3 Value Range37.4 Size Constraint37.5 Permitted Alphabet37.6 Inner SubtypingAnnex A The macro notationA.1 IntroductionA.2 Extensions to the ASN.1 character set and itemsA
10、.2.1 MacroreferenceA.2.2 ProductionreferenceA.2.3 LocaltypereferenceA.2.4 LocalvaluereferenceA.2.5 Alternation itemA.2.6 Definition terminator itemA.2.7 Syntactic terminal item4 Fascicle VIII.4 Rec. X.208A.2.8 Syntactic category keyword itemsA.2.9 Additional keyword itemsA.3 Macro definition notatio
11、nA.4 Use of the new notationAnnex B ISO assignment of OBJECT IDENTIFIERAnnex C CCITT assignment of OBJECT IDENTIFIERAnnex D Joint assignment of OBJECT IDENTIFIERAppendix I Examples and hintsI.1Example of a personnel recordI.1.1 Informal Description of Personnel RecordI.1.2 ASN.1 description of the r
12、ecord structureI.1.3 ASN.1 description of a record valueI.2Guidelines for use of the notationI.2.1 BooleanI.2.2 IntegerI.2.3 EnumeratedI.2.4 RealI.2.5 Bit stringI.2.6 Octet stringI.2.7 NullI.2.8 Sequence and sequence-ofI.2.9 SetI.2.10 TaggedI.2.11 ChoiceI.2.12 Selection typeI.2.13 AnyI.2.14 External
13、I.2.15 EncryptedI.3An example of the use of the macro notationI.4Use in identifying abstract syntaxesI.5SubtypesAppendix II Summary of the ASN.1 notation0 IntroductionIn the lower layers of the Basic Reference Model (see Recommendation X.200), each user data parameter of aservice primitive is specif
14、ied as the binary value of a sequence octets.In the presentation layer, the nature of user data parameters changes. Application layer specifications requirethe presentation service user data (see Recommendation X.216) to carry the value of quite complex types, possiblyincluding strings of characters
15、 from a variety of character sets. In order to specify the value which is carried, they requireFascicle VIII.4 Rec. X.208 5a defined notation which does not determine the representation of the value. This is supplemented by the specification ofone or more algorithms called encoding rules which deter
16、mine the value of the session layer octets carrying suchapplication layer values (called the transfer syntax). The presentation layer protocol (see Recommendation X.226) cannegotiate which transfer syntaxes are to be used.The purpose of specifying a value is to distinguish it from other possible val
17、ues. The collection of the valuetogether with the values from which it is distinguished is called a type, and one specific instance is a value of that type.More generally, a value or type can often be considered as composed of several simpler values or types, together withthe relationships between t
18、hem. The term datatype is often used as a synonym for type.In order to correctly interpret the representation of a value (whether by marks on paper or bits oncommunication line), it is necessary to know (usually from the context), the type of the value being represented. Thusthe identification of a
19、type is an important part of this Recommendation.A very general technique for defining a complicated type is to define a small number of simple types bydefining all possible values of the simple types, then combining these simple types in various ways. Some of the ways ofdefining new types are as fo
20、llows:a) given an (ordered) list of existing types, a value can be formed as an (ordered) sequence of values, onefrom each of the existing types; the collection of all possible values obtained in this way is a new type; (ifthe existing types in the list are all distinct, this mechanism can be extend
21、ed to allow omission of somevalues from the list);b) given a list of (distinct) existing types, a value can be formed as an (unordered) set of values, one fromeach of the existing types; the collection of all possible values obtained in this way is a new type; (themechanism can again be extended to
22、allow omission of some values);c) given a single existing type, a value can be formed (ordered) sequence or (unordered) set of zero, one ormore values of the existing type; the (infinite) collection of all possible values obtained in this way is anew type;d) given a list of (distinct) types, a value
23、 can be chosen from any one of them; the set of all possible valuesobtained in this way is a new type;e) given a type, a new type can be formed as a subset of it by using some structure or order relationshipamong the values;Types which are defined in this way are called structured types.Every type d
24、efined using the notation specified in this Recommendation is assigned a tag. The tag is definedeither by this Recommendation or by the user of the notation.It is common for the same tag to be assigned to many different types, the particular type being identified by thecontext in which the tag is us
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ITUTX2081988SPECIFICATIONOFABSTRACTSYNTAXNOTATIONONEASN1 抽象 句法 表记 ASN1 规范 PDF

链接地址:http://www.mydoc123.com/p-804766.html