1、 ETSI ES 201 873-7 V4.6.1 (2017-05) Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 7: Using ASN.1 with TTCN-3 ETSI STANDARD ETSI ETSI ES 201 873-7 V4.6.1 (2017-05)2 Reference RES/MTS-201873-7 T3ed461 Keywords ASN.1, testing, TTCN, XML ETSI 650 Rout
2、e des Lucioles F-06921 Sophia Antipolis Cedex - FRANCE Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 Siret N 348 623 562 00017 - NAF 742 C Association but non lucratif enregistre la Sous-Prfecture de Grasse (06) N 7803/88 Important notice The present document can be downloaded from: http:/www.etsi.
3、org/standards-search The present document may be made available in electronic versions and/or in print. The content of any electronic and/or print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any existing or perceived difference i
4、n contents between such versions and/or in print, the only prevailing document is the print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat. Users of the present document should be aware that the document may be subject to revision or change of
5、status. Information on the current status of this and other ETSI documents is available at https:/portal.etsi.org/TB/ETSIDeliverableStatus.aspx If you find errors in the present document, please send your comment to one of the following services: https:/portal.etsi.org/People/CommiteeSupportStaff.as
6、px Copyright Notification No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm except as authorized by written permission of ETSI. The content of the PDF version shall not be modified without the written authorization of ET
7、SI. The copyright and the foregoing restriction extend to reproduction in all media. European Telecommunications Standards Institute 2017. All rights reserved. DECTTM, PLUGTESTSTM, UMTSTMand the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members. 3GPPTM and LTE are Trade Mar
8、ks of ETSI registered for the benefit of its Members and of the 3GPP Organizational Partners. oneM2M logo is protected for the benefit of its Members GSM and the GSM logo are Trade Marks registered and owned by the GSM Association. ETSI ETSI ES 201 873-7 V4.6.1 (2017-05)3 Contents Intellectual Prope
9、rty Rights 5g3Foreword . 5g3Modal verbs terminology 5g31 Scope 6g32 References 6g32.1 Normative references . 6g32.2 Informative references 7g33 Definitions and abbreviations . 8g33.1 Definitions 8g33.2 Abbreviations . 9g34 Introduction 9g35 General . 9g35.1 Approach 9g35.2 Conformance and compatibil
10、ity . 10g36 Amendments to the core language . 10g37 Additional TTCN-3 types . 10g37.1 General . 10g37.2 The object identifier type . 10g37.2.0 The objid type . 10g37.2.1 Sub-typing of the objid type 11g37.2.1.1 Subtrees of the objid type 11g37.2.1.2 List subtypes . 12g37.2.1.3 Range subtypes . 12g37
11、.2.1.4 Mixing list and range subtypings 12g37.2.2 Object identifier values . 12g37.2.3 Using objid values to identify modules . 12g37.2.3.1 Identifying module definitions 12g37.2.3.2 Identifying modules in import statements . 13g37.2.4 Object identifier templates 13g37.2.4.0 General 13g37.2.4.1 In-l
12、ine templates 13g37.2.4.2 Template matching mechanisms . 13g37.2.5 Using objid with operators 14g37.2.5.1 List operator 14g37.2.5.2 Relational operators 14g37.2.6 Using objid with predefined functions 15g37.2.6.1 Number of components of an objid value or template. 15g37.2.6.2 The Substring function
13、15g37.2.6.3 The isvalue function 16g37.2.7 Supporting objid in TCI 16g37.2.7.0 General 16g37.2.7.1 Adding objid to abstract data types and values . 16g37.2.7.2 Adding objid to Java language mapping . 17g37.2.7.3 Adding objid to ANSI C language mapping . 18g38 ASN.1 and TTCN-3 type equivalents 22g38.
14、1 General . 22g38.1.a Importing from ASN.1 modules . 23g38.1.a.1 Language specification strings 23g38.1.a.2 Importing definitions from ASN.1 modules . 23g38.1.a.3 Importing import statements from ASN.1 modules 24g38.1.a.4 Import Visibility of ASN.1 definitions . 24g3ETSI ETSI ES 201 873-7 V4.6.1 (20
15、17-05)4 8.2 Identifiers . 24g39 ASN.1 data types and values 25g39.1 Transformation rules for ASN.1 types and values 25g39.2 Transformation rules for values 33g39.3 Scope of ASN.1 identifiers . 33g310 Parameterization in ASN.1 . 33g311 Defining ASN.1 message templates . 34g311.1 General . 34g311.2 Re
16、ceiving messages based on ASN.1 types . 34g311.3 Ordering of template fields . 35g312 Encoding information . 35g312.1 General . 35g312.2 ASN.1 encoding attributes . 35g312.3 ASN.1 variant attributes . 36g3Annex A (normative): Additional BNF and static semantics . 37g3A.0 General rules 37g3A.1 New pr
17、oductions for ASN.1 support 37g3A.2 Amended core language BNF productions and static semantics 37g3Annex B (normative): Additional Pre-defined TTCN-3 functions 39g3Annex C (informative): Additional information on object identifiers . 40g3C.1 The top-level arcs of the OID tree 40g3C.2 Character patte
18、rns to match OID IRI-s . 42g3Annex D (informative): Deprecated features . 43g3Annex E (informative): Example patterns for ASN.1 time types . 44g3E.0 General rules 44g3E.1 Patterns corresponding to unconstrained time types 44g3E.2 Constructing patterns corresponding to constrained time types . 57g3An
19、nex F (informative): Bibliography . 58g3History 59g3ETSI ETSI ES 201 873-7 V4.6.1 (2017-05)5 Intellectual Property Rights IPRs essential or potentially essential to the present document may have been declared to ETSI. The information pertaining to these essential IPRs, if any, is publicly available
20、for ETSI members and non-members, and can be found in ETSI SR 000 314: “Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in respect of ETSI standards“, which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web server (ht
21、tps:/ipr.etsi.org/). Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web server) which are, or may be, or may become, ess
22、ential to the present document. Foreword This ETSI Standard (ES) has been produced by ETSI Technical Committee Methods for Testing and Specification (MTS). The present document is part 7 of a multi-part deliverable. Full details of the entire series can be found in part 1 1. Modal verbs terminology
23、In the present document “shall“, “shall not“, “should“, “should not“, “may“, “need not“, “will“, “will not“, “can“ and “cannot“ are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of provisions). “must“ and “must not“ are NOT allowed in ETSI d
24、eliverables except when used in direct citation. ETSI ETSI ES 201 873-7 V4.6.1 (2017-05)6 1 Scope The present document defines a normative way of using ASN.1 as defined in Recommendations ITU-T X.680 2, X.681 3, X.682 4 and X.683 5 with TTCN-3. The harmonization of other languages with TTCN-3 is not
25、 covered by the present document. 2 References 2.1 Normative references References are either specific (identified by date of publication and/or edition number or version number) or non-specific. For specific references, only the cited version applies. For non-specific references, the latest version
26、 of the referenced document (including any amendments) applies. Referenced documents which are not found to be publicly available in the expected location might be found at https:/docbox.etsi.org/Reference/. NOTE: While any hyperlinks included in this clause were valid at the time of publication, ET
27、SI cannot guarantee their long term validity. The following referenced documents are necessary for the application of the present document. 1 ETSI ES 201 873-1: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 1: TTCN-3 Core Language TTCN-3: Core La
28、nguage“. 2 Recommendation ITU-T X.680 (2008): “Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation“. 3 Recommendation ITU-T X.681 (2008): “Information technology - Abstract Syntax Notation One (ASN.1): Information object specification“. 4 Recommendation ITU
29、-T X.682 (2008): “Information technology - Abstract Syntax Notation One (ASN.1): Constraint specification“. 5 Recommendation ITU-T X.683 (2008): “Information technology - Abstract Syntax Notation One (ASN.1): Parameterization of ASN.1 specifications“. 6 Recommendation ITU-T X.690 (2008): “Informatio
30、n technology - ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)“. 7 Recommendation ITU-T X.691 (2008): “Information technology - ASN.1 encoding rules: Specification of Packed Encoding Rules (PER)“. 8 Recommendati
31、on ITU-T X.693 (2008): “Information technology - ASN.1 encoding rules: XML Encoding Rules (XER)“. 9 Recommendation ITU-T T.100 (1988): “International information exchange for interactive Videotex“. 10 Recommendation ITU-T T.101 (1994): “International interworking for Videotex services“. 11 Recommend
32、ation ITU-T X.660 (2011): “Information technology - Procedures for the operation of object identifier registration authorities: General procedures and top arcs of the international object identifier tree“. 12 ETSI ES 201 873-6: “Methods for Testing and Specification (MTS); The Testing and Test Contr
33、ol Notation version 3; Part 6: TTCN-3 Control Interface (TCI)“. 13 Void. ETSI ETSI ES 201 873-7 V4.6.1 (2017-05)7 2.2 Informative references References are either specific (identified by date of publication and/or edition number or version number) or non-specific. For specific references, only the c
34、ited version applies. For non-specific references, the latest version of the referenced document (including any amendments) applies. NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee their long term validity. The following referenced docu
35、ments are not necessary for the application of the present document but they assist the user with regard to a particular subject area. i.1 ISO 8601 (2004): “Data elements and interchange formats - Information interchange - Representation of dates and times“. i.2 ETSI ES 201 873-10: “Methods for Test
36、ing and Specification (MTS); The Testing and Test Control Notation version 3; Part 10: TTCN-3 Documentation Comment Specification“. i.3 ISO 3166-1: “Codes for the representation of names of countries and their subdivisions - Part 1: Country codes“. i.4 Recommendation ITU-T X.121: “Public data networ
37、ks - Network aspects - International numbering plan for public data networks“. NOTE: References to Recommendations ITU-T include the Recommendation and all Amendments and Corrigenda published to the Recommendation except when specified otherwise in other parts of the present document. i.5 Recommenda
38、tion ITU-T X.208: “Specification of Abstract Syntax Notation One (ASN.1)“ (Blue Book). i.6 Recommendation ITU-T X.680 (1994): “Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation“. i.7 Recommendation ITU-T X.680 (1997): “Information technology - Abstract Sy
39、ntax Notation One (ASN.1): Specification of basic notation“. i.8 Recommendation ITU-T X.680 (2002): “Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation“. i.9 Recommendation ITU-T X.681 (1994): “Information technology - Abstract Syntax Notation One (ASN.1):
40、 Information object specification“. i.10 Recommendation ITU-T X.681 (1997): “Information technology - Abstract Syntax Notation One (ASN.1): Information object specification“. i.11 Recommendation ITU-T X.681 (2002): “Information technology - Abstract Syntax Notation One (ASN.1): Information object sp
41、ecification“. i.12 Recommendation ITU-T X.682 (1994): “Information technology - Abstract Syntax Notation One (ASN.1): Constraint specification“. i.13 Recommendation ITU-T X.682 (1997): “Information technology - Abstract Syntax Notation One (ASN.1): Constraint specification“. i.14 Recommendation ITU-
42、T X.682 (2002): “Information technology - Abstract Syntax Notation One (ASN.1): Constraint specification“. i.15 Recommendation ITU-T X.683 (1994): “Information technology - Abstract Syntax Notation One (ASN.1): Parameterization of ASN.1 specifications“. i.16 Recommendation ITU-T X.683 (1997): “Infor
43、mation technology - Abstract Syntax Notation One (ASN.1): Parameterization of ASN.1 specifications“. i.17 Recommendation ITU-T X.683 (2002): “Information technology - Abstract Syntax Notation One (ASN.1): Parameterization of ASN.1 specifications“. ETSI ETSI ES 201 873-7 V4.6.1 (2017-05)8 i.18 Recomm
44、endation ITU-T X.690 (2002): “Information technology - ASN.1 encoding rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)“. i.19 Recommendation ITU-T X.691 (2002): “Information technology - ASN.1 encoding rules: Specification of P
45、acked Encoding Rules (PER)“. i.20 ETSI ES 202 781: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; TTCN-3 Language Extensions: Configuration and Deployment Support“. i.21 ETSI ES 202 782: “Methods for Testing and Specification (MTS); The Testing and Tes
46、t Control Notation version 3; TTCN-3 Language Extensions: TTCN-3 Performance and Real Time Testing“. i.22 ETSI ES 202 784: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; TTCN-3 Language Extensions: Advanced Parameterization“. i.23 ETSI ES 202 785: “Met
47、hods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; TTCN-3 Language Extensions: Behaviour Types“. i.24 ETSI ES 202 786: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; TTCN-3 Language Extensions: Support of interfa
48、ces with continuous signals“. i.25 ETSI ES 202 789: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; TTCN-3 Language Extensions: Extended TRI“. i.26 CCITT Blue Book. i.27 ETSI ES 201 873-8: “Methods for Testing and Specification (MTS); The Testing and Te
49、st Control Notation version 3; Part 8: The IDL to TTCN-3 Mapping“. i.28 ETSI ES 201 873-9: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 9: Using XML schema with TTCN-3“. i.29 ETSI ES 201 873-11: “Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 11: Using JSON with TTCN-3“. 3 Definitions and abbreviations 3.1 Definitions For the purposes of the present document, the terms and defin
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1