Anda di halaman 1dari 10

AS/NZS 8824.

1:1998
ISO/IEC 8824-1:1995 ISO/IEC 8824-1:1995/Amd.1:1996 ISO/IEC 8824-1:1995/Cor.1:1996

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

Australian/New Zealand Standard


Information technology Abstract syntax notation one Part 1: Specification of basic notation
[ ISO/IEC title: Information technology Abstract Syntax Notation One (ASN.1): Specification of basic notation]

AS/NZS 8824.1:1998 This Joint Australian/New Zealand Standard was prepared by Joint Technical Committee IT/1, Information Systems Interconnection. It was approved on behalf of the Council of Standards Australia on 29 October 1997 and on behalf of the Council of Standards New Zealand on 16 December 1997. It was published on 5 February 1998.

The following interests are represented on Committee IT/1:


This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

Australian Bankers Association Australian Bureau of Statistics Australian Computer Society Australian Computer Users Association Australian Information Industry Association Australian Vice Chancellors Committee Department of Defence, Australia Department of Industry, Science and Tourism, Australia Government Computing Service, New Zealand Information Exchange Steering Committee, Australia Institute of Information and Communication Technologies, CSIRO, Australia Telstra Corporation, Australia Telecom New Zealand

Review of Standards. To keep abreast of progress in industry, Joint Australian/ New Zealand Standards are subject to periodic review and are kept up to date by the issue of amendments or new editions as necessary. It is important therefore that Standards users ensure that they are in possession of the latest edition, and any amendments thereto. Full details of all Joint Standards and related publications will be found in the Standards Australia and Standards New Zealand Catalogue of Publications; this information is supplemented each month by the magazines The Australian Standard and Standards New Zealand, which subscribing members receive, and which give details of new publications, new editions and amendments, and of withdrawn Standards. Suggestions for improvements to Joint Standards, addressed to the head office of either Standards Australia or Standards New Zealand, are welcomed. Notification of any inaccuracy or ambiguity found in a Joint Australian/New Zealand Standard should be made without delay in order that the matter may be investigated and appropriate action taken.

This Standard was issued in draft form for comment as DR 97228.

AS/NZS 8824.1:1998

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

Australian/New Zealand Standard


Information technology Abstract syntax notation one Part 1: Specification of basic notation

Originated in Australia as AS 3625 1991. Jointly revised and redesignated AS/NZS 8824.1:1998.

PUBLISHED JOINTLY BY: STANDARDS AUSTRALIA 1 The Crescent, Homebush NSW 2140 Australia STANDARDS NEW ZEALAND Level 10, Radio New Zealand House, 155 The Terrace, Wellington 6001 New Zealand
ISBN 0 7337 1681 4

ii

PREFACE
This Standard was prepared by the Joint Standards Australia/Standards New Zealand Committee IT/1, Information Systems Interconnection, to supersede AS 3625 1991, Information technology Open Systems Interconnection Specification of Abstract Syntax Notation One (ASN.1). It is identical with and has been reproduced from ISO/IEC 8824-1:1995, Information technology Abstract Syntax Notation One (ASN.1): Specification of basic notation , including Amendment 1:1996 and Technical Corrigendum 1:1996. These additions have been bound at the rear of this Standard and text affected is marked by a marginal bar. The objective of this Standard is to provide designers of communications and messaging systems with a standard notation for the definition of data types and values. Amendment 1:1996 describes a method allowing a phased migration to a new specification.
This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

This Standard is Part 1 of AS/NZS 8824, Information technology Abstract syntax notation one, which is published in Parts as follows: Part Part Part Part 1: 2: 3: 4: Specification of basic notation Information object specification Constraint specification Parameterization of ASN.1 specifications

Users of this Standard are advised by Standards Australia and Standards New Zealand, under arrangements made with ISO and IEC, as well as certain other Standards organizations, that the number of this Standard is not reproduced on each page; its identity is shown only on the cover and title pages. As this Standard is reproduced from an international Standard, the following applies: (a) (b) (c) (i) (ii) (iii) Its number does not appear on each page of text and its identity is shown only on the cover and title page. In the source text this International Standard should read this Australian/New Zealand Standard. A full point substitutes for a comma when referring to a decimal marker. Terminology The words this Australian/New Zealand Standard should replace the words this International Standard wherever they appear. Decimal marker Substitute a full point for a comma where it appears as a decimal marker. References The references to international Standards should be replaced by references, where appropriate, to the following Australian or Joint Australian/New Zealand Standards: Australian or Joint Australian/New Zealand Standard AS 2632 AS/NZS 3802 Data elements and interchange formats Information interchange Representation of dates and times Codes for the representation of names of countries

For the purpose of this Standard, the source text should be modified as follows:

Reference to International Standard or other publication ISO 3166 6523 Codes for the representation of names of countries Data interchange Structures for the identification of organizations Data elements and interchange formats Information Interchange Representation of dates and times

8601

iii
ISO/IEC 646 Information technology ISO 7-bit coded character set for information interchange 2022 Information technology Character code structure and extension techniques AS 1776 Information processing 7-bit coded character set for information interchange Information processing ISO 7-bit and 8-bit coded character sets Code extension techniques

1953

7498

7498-1 8822
This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

Information technology Open System Interconnection Basic Reference Model Part 1: The basic model Information technology Open System Interconnection Presentation service definition Information technology Open System Interconnection Connection-oriented presentation protocol Part 1: Protocol specification Information technology Abstract Syntax Notation One (ASN.1) Part 2: Information Object Specification Part 3: Constraint specification Part 4: Parameterization of ASN.1 specifications Information technology ASN.1 encoding Rules Part 1: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER), and Distinguished Encoding Rules (DER) Part 2: Specification of Packed Encoding Rules (PER)

AS/NZS 2777 Information processing systems Open Systems Interconnection Basic reference model 2777.1 Part 1: The basic model

8823

8823-1 8824 8824-2 8824-3 8824-4 8825 8825-1

8824 8824.2 8824.3 8824.4 8825 8825.1 Information technology Abstract syntax notation one Part 2: Information object specification Part 3: Constraint specification Part 4: Parameterization of ASN.1 specifications Information technology ASN.1 encoding rules Part 1: Specification of basic encoding rules, canonical encoding rules, and distinguished encoding rules Part 2: Specification of packed encoding rules Information technology Universal multiple-octet coded character set Part 1: Architecture and basic multilingual plane

8825-2 10646

8825.2 4189

Information technology Universal Multiple-Octet Coded Character Set (UCS) 10646-1 Part 1: Architecture and Basic Multilingual Plane

4189.1

iv

CONTENTS
Page
1 2 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Normative references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 Identical Recommendations International Standards . . . . . . . . . . . . . . . . . . . 2.2 Additional references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 Information object specification . . . . . . . . . . . . . . . . . 3.2 Constraint specification . . . . . . . . . . . . . . . . . . . . . . 3.3 Parameterization of ASN.1 specification . . . . . . . . . . . 3.4 Presentation service definition . . . . . . . . . . . . . . . . . . 3.5 Presentation protocol specification . . . . . . . . . . . . . . . 3.6 Structure for identification of organizations . . . . . . . . 3.7 Universal Multiple-Octet Coded Character Set (UCS) . 3.8 Additional definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. . . .. .. .. . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . ... .. . ... ... ... ... ... . .. . .. 1 1 1 2 2 2 2 2 3 3 3 3 3 7 7 7 8 8 8 8 8 9 9 9 10 11 11 11 12 12 12 12 12 12 13 13 13 13 14 14 14 14 15 15 19

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

4 5

Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 Productions . . . . . . . . . . . . . . . . . . . . 5.2 The alternative collections . . . . . . . . . 5.3 Example of a production . . . . . . . . . . . 5.4 Layout . . . . . . . . . . . . . . . . . . . . . . . 5.5 Recursion . . . . . . . . . . . . . . . . . . . . . 5.6 References to a collection of sequences 5.7 References to an item . . . . . . . . . . . . . 5.8 Short-hand notations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... ... ... ... ... ... .. . . .. . .. . . . . . . . . . . . . . . . . . . ... ... ... ... ... ... .. . . .. ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... . .. ... ... .. . ... ... ... ... . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..

6 7 8 9

Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Use of the ASN.1 notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The ASN.1 character set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ASN.1 9.1 9.2 9.3 9.4 9.5 9.6 9.7 9.8 9.9 9.10 9.11 9.12 9.13 9.14 9.15 9.16 items . . . . . . . . . . . . . General rules . . . . . . . . Type references . . . . . . Identifiers . . . . . . . . . . Value references . . . . . Module reference . . . . . Comment . . . . . . . . . . Empty item . . . . . . . . . Number item . . . . . . . . Binary string item . . . . Hexadecimal string item Character string item . . Assignment item . . . . . Range separator . . . . . . Ellipsis . . . . . . . . . . . . Single character items . . Reserved words . . . . . . . . . . . . . . . . . . . . . . . .. ... .. ... .. .. . ..... ... .. ... .. ..... . .... .. ... . ... . ... .. . .. .. ... .. .. .. . ... .. . .... .. .. . .. ... .. ... .... . ..... ..... ..... ..... . .... .. ... . .... ... .. . .. .. ..... .... . ... .. ... .. .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... ... .. . ... ... ... ... ... ... ... ... . .. ... .. . ... . .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. . ... .. ..... . .... ..... ..... . .... .. ... ... .. ..... ..... ..... ..... ..... ... .. ..... ..... . . . . . . . . . . . . . . . . . .. .. . .. . ... . . ... .... .... . ... .. .. . .. . . ... .... ... . .... ... . ... . ... . ... .

10 11

Module definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Referencing type and value definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

v
Page
12 13 14 15 16 17 18 19 20 21
This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

Notation to support references to ASN.1 components . . . . . . . . . . . . . . . . . . . . . . . Assigning types and values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Definition of types and values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for the boolean type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for the integer type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for the enumerated type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for the real type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for the bitstring type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for the octetstring type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for the null type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for sequence types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for sequence-of types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for set types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for act-of types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for choice types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for selection types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for tagged types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for the object identifier type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for the embedded-pdv type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for the external type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The Character String types .... .. ... .. ..... ..... .................. ..

19 20 21 23 23 24 25 25 27 27 27 29 29 30 30 31 32 33 34 36 38 38 38 42 45 46 47 47 48 49 49 50 51 52 52 53 53 53 53 54

22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

Notation for character string types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Definition of restricted character string types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Naming characters and collections defined in ISO/IEC 10646 . . . . . . . . . . . . . . . . . Canonical order of characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Definition of unrestricted character string types . . . . . . . . . . . . . . . . . . . . . . . . . . . Notation for types defined in clauses 39-41 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Generalized time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Universal time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The object descriptor type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Constrained Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The exception identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Element set specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Subtype elements . . . . . . 45.1 General . . . . . . . . 45.2 Single Value . . . . 45.3 Contained Subtype 45.4 Value Range . . . . 45.5 Size Constraint . . 45.6 Type Constraint . . .. . . .. .. .. .. .. . . . . .. .. .. .. .. . . . . . . . .... ... . .. .. . ... .. .. .. .. .. .. . . . . . . . . . . . . . . ... .. . . .. ... . .. ... ... . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . .. .. .. .. .. .. .. . . . . . . .

vi
Page
45.7 45.8 Permitted Alphabet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Inner Subtyping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. ... .. ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 54 56 56 56 56 58 59 60 61 62 62 63 71 72 75 75 75 76 76 77 77 79 79 79 79 80 81 81 82 82 82 84 87 88

Annex A Use of ASN.1-88/90 notation . . . . . . . . . . . . . . . A.1 Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . A.2 Mixing ASN.1-88/90 and current ASN.1 notation A.3 Migration to the current ASN.1 notation . . . . . .

Annex B ISO assignment of OBJECT IDENTIFIER component values . . . . . . . . . . . . . . Annex C ITU-T assignment of OBJECT IDENTIFIER component values . . . . . . . . . . . . Annex D Joint assignment of OBJECT IDENTIFIER component values . . . . . . . . . . . . . Annex E Assignment of object identifier values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

Annex F Examples and hints . . . . . . . . . . . . F.1 Example of a personnel record . . . F.2 Guidelines for use of the notation F.3 Identifying abstract syntaxes . . . . F.4 Subtypes . . . . . . . . . . . . . . . . . .

. . . . .

... ... ... . .. .. .

. . . . .

. . . . .

. . . . .

.. . . .. .. . ... ...

. . . . .

. . . . .

. . . . .

. . . . .

.. .. .. .. ..

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

.. .. .. .. ..

. . . . .

. . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . .

.. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . .

Annex G Tutorial Annex on ASN.1 Character Strings . . . . . . . . . . G.1 Character string support in ASN.1 . . . . . . . . . . . . . . . G.2 The UniversalString and BMPString types . . . . . . . . . G.3 On ISO/IEC 10646-1 conformance requirements . . . . . G.4 Recommendations for ASN.1 users on ISO/IEC 10646-1 G.5 Adopted subsets as parameters of the abstract syntax . . G.6 The CHARACTER STRING type . . . . . . . . . . . . . . . Annex H Superseded features . . . . . . . . . . . H.1 Use of identifiers now mandatory H.2 The choice value . . . . . . . . . . . H.3 The any type . . . . . . . . . . . . . . H.4 The macro capability . . . . . . . . .. . .. .. . . . . . . . .. .. .. .. .. . . . . . . . . . . . . . . . .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. ..... ..... . ..... ..... .. ..... .... . ... .. ..... conformance . .. .. ... .. .. . ..... ..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Annex I The any type notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I.1 Notation for the any type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Annex J The macro notation . . . . . . . . . . . . . . . . . . . . . . J.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . J.2 Extensions to the ASN.1 character set and items J.3 Macro definition notation . . . . . . . . . . . . . . . . J.4 Use of the new notation . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. ..

Annex K Summary of the ASN.1 notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Copyright

STANDARDS AUSTRALIA/ STANDARDS NEW ZEALAND

Users of Standards are reminded that copyright subsists in all Standards Australia and Standards New Zealand publications and software. Except where the Copyright Act allows and except where provided for below no publications or software produced by Standards Australia or Standards New Zealand may be reproduced, stored in a retrieval system in any form or transmitted by any means without prior permission in writing from Standards Australia or Standards New Zealand. Permission may be conditional on an appropriate royalty payment. Australian requests for permission and information on commercial software royalties should be directed to the head office of Standards Australia. New Zealand requests should be directed to Standards New Zealand. Up to 10 percent of the technical content pages of a Standard may be copied for use exclusively in-house by purchasers of the Standard without payment of a royalty or advice to Standards Australia or Standards New Zealand. Inclusion of copyright material in computer software programs is also permitted without royalty payment provided such programs are used exclusively in-house by the creators of the programs. Care should be taken to ensure that material used is from the current edition of the Standard and that it is updated whenever the Standard is amended or revised. The number and date of the Standard should therefore be clearly identified. The use of material in print form or in computer software programs to be used commercially, with or without payment, or in commercial contracts is subject to the payment of a royalty. This policy may be varied by Standards Australia or Standards New Zealand at any time.

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

This is a free preview. Purchase the entire publication at the link below:

This is a free 9 page sample. Access the full version at http://infostore.saiglobal.com.

AS/NZS 8824.1:1998, Information technology Abstract syntax notation one Specification of basic notation

Looking for additional Standards? Visit SAI Global Infostore Subscribe to our Free Newsletters about Australian Standards in Legislation; ISO, IEC, BSI and more Do you need to Manage Standards Collections Online? Learn about LexConnect, All Jurisdictions, Standards referenced in Australian legislation Do you want to know when a Standard has changed? Want to become an SAI Global Standards Sales Affiliate? Learn about other SAI Global Services: LOGICOM Military Parts and Supplier Database Metals Infobase Database of Metal Grades, Standards and Manufacturers Materials Infobase Database of Materials, Standards and Suppliers Database of European Law, CELEX and Court Decisions

Need to speak with a Customer Service Representative - Contact Us

Anda mungkin juga menyukai