SIST-TS TS 102 027-2 V2.1.1:2004
(Main)Telecommunications and Internet Protocol Harmonization Over Networks (TIPHON); Technology Compliance Specification; Draft IETF SIP RFC 3261; Part 2: Abstract Test Suite (ATS) and partial Protocol Implementation eXtra Information for Testing (PIXIT) proforma specification
- Abstract
Design of Test Suite Structure and implementation of Test Purposes for conformance testing of an draft IETF SIP RFC 3261 protocol implementation.
- Status
- Published
- Publication Date
- 31-Mar-2004
- Technical Committee
- SPN - Services and Protocols for Networks
- Current Stage
- 6060 - National Implementation/Publication (Adopted Project)
- Start Date
- 01-Apr-2004
- Due Date
- 01-Apr-2004
- Completion Date
- 01-Apr-2004
SIST-TS TS 102 027-2 V2.1.1:2004 is the Slovenian version of ETSI TS 102 027-2 V2.1.1 for TIPHON SIP conformance testing. It specifies an Abstract Test Suite (ATS) and a partial Protocol Implementation eXtra Information for Testing (PIXIT) proforma for Session Initiation Protocol (SIP) equipment defined in RFC 3261. In practice, it is the document test laboratories and implementers use to structure and run SIP conformance tests.
What does SIST-TS TS 102 027-2 V2.1.1:2004 specify?
SIST-TS TS 102 027-2 V2.1.1:2004 specifies the ATS for SIP as defined in RFC 3261, together with the partial PIXIT proforma and the PCTR proforma used around that ATS. The document is organized as clauses 1 to 9 plus three normative annexes, so it covers both the test method and the forms used to carry out and report testing.
The scope states that the objective is to provide a basis for conformance tests for SIP equipment with a high probability of interoperability between different manufacturers’ SIP equipment. The ATS is written at the abstract level, so it focuses on test behavior and message exchange rather than a concrete implementation platform.
| Annex | What it covers |
|---|---|
| Annex A | Abstract Test Suite (ATS), including the TTCN-3 representation |
| Annex B | Partial PIXIT proforma, with the implementation information needed to run the ATS |
| Annex C | PCTR proforma, for reporting protocol conformance test results |
What are the key requirements of SIST-TS TS 102 027-2 V2.1.1:2004?
Abstract test method and system model
SIST-TS TS 102 027-2 V2.1.1:2004 defines an Abstract Test Method (ATM) in clause 4 and models SIP testing around standard SIP roles such as User Agent, Proxy, Registrar and Redirect Server. That matters because the ATS can exercise an implementation in different functional roles, not only as a single fixed device.
Clause 4 also treats SIP messages as protocol data units (PDUs) and keeps them independent of the transport layer used. In practice, that means the test suite checks SIP behavior from the message level, while the transport handling is managed by the test system.
Transport handling, decoding and logging
The document says the ATS does not care whether several SIP messages arrive in one frame or several frames, and expects SIP messages one by one. The transport protocol choice is reflected at test start through dedicated port initialization functions. This is important for implementers because the test system must adapt to the transport setup before execution starts.
Clause 4.3.2 sets decoding and encoding rules for the Encoding/Decoding System (EDS). Fully decoded TTCN-3 fields should not keep syntactic delimiters, parameter names are decoded in lower case, repeated white space is compressed, and integer parameter values are mapped to TTCN-3 integer values where appropriate. The document also requires encoded and received messages to be logged, so test labs can review exactly what crossed the interface.
Handling of unusual SIP messages
Clause 4.3.2 distinguishes undefined methods, undefined headers and unexpected headers. An undefined request method is not passed into the executable test suite, but it is still logged. Undefined headers are decoded into an UndefinedHeader field, and multiple headers of the same kind are merged into a single header with multiple values when needed. This matters in practice because the test system must normalize real SIP traffic into the representation expected by the ATS.
RawMessage is defined for syntactic torture or syntactically invalid messages. Valid receiving templates use structured messages instead, which keeps conformance tests precise while still allowing negative and robustness-oriented message cases.
ATS conventions and naming rules
Clause 6 defines naming conventions for types, templates, constants, enumerations, module parameters, variables, functions, test cases, timers and group names. These rules make the TTCN-3 ATS easier to read and maintain, and they help ensure that test case identifiers and template names stay consistent with the SIP test purposes.
The test case identifier scheme in clause 6.1.8.2 encodes the protocol, main functionality, role, functionality, type and sequence number. In practice, this lets a tester identify whether a case targets registration, call control or messaging, and whether it is a valid, invalid, inopportune or timer-related test.
Conformance statements
Clause 5 states that there are no untestable test purposes in the ATS. That means the suite is intended to implement the intended test purpose set directly.
Clauses 7 to 9 define conformance for the PCTR, PIXIT and ATS. A test laboratory producing a PCTR must follow the proforma in Annex C, a test realizer producing an executable test suite must produce a technically equivalent ExTS, and the executable suite must contain the same test groups and test cases in equivalent form. Extra checks may exist in a test system, but they do not count toward the verdict for a test case.
What terms does SIST-TS TS 102 027-2 V2.1.1:2004 define?
- Abstract Test Suite (ATS) - the TTCN-3-based set of abstract test cases and test data used to assess SIP conformance.
- Protocol Implementation eXtra Information for Testing (PIXIT) - the implementation-specific information needed to prepare and run the tests on a particular implementation.
- Protocol Conformance Test Report (PCTR) - the report form used to record the outcome of conformance testing.
- Implementation Under Test (IUT) - the SIP implementation being evaluated by the test suite.
- SUT Adapter (SA) - the test system component that connects the test environment to the System Under Test (SUT).
- TTCN-3 - Testing and Test Control Notation version 3, the language used to express the ATS.
- Test Purpose (TP) - the intended behavior or feature that a test case is meant to verify.
Who uses SIST-TS TS 102 027-2 V2.1.1:2004?
Test laboratories use SIST-TS TS 102 027-2 V2.1.1:2004 to execute SIP conformance campaigns and produce PCTR reports. Test realizers use it to build an executable test suite and the associated Means Of Testing (MOT).
SIP equipment vendors and interoperability teams use it when validating implementations against RFC 3261 behavior, especially for registration, call control and messaging. Client test managers also use the PIXIT and PCTR forms in Annexes B and C to prepare campaigns and record results.
Which standards are used with SIST-TS TS 102 027-2 V2.1.1:2004?
- IETF RFC 3261 - defines SIP, the protocol being tested.
- ETSI ES 201 873-1 - provides TTCN-3 core language rules, used for the ATS in Annex A.
- ETSI ES 201 873-5 - provides the TTCN-3 Runtime Interface (TRI), used in the test system architecture.
- ISO/IEC 9646-1 - gives general conformance testing concepts.
- ISO/IEC 9646-2 - gives abstract test suite specification guidance.
- ISO/IEC 9646-4 - covers test realisation and the creation of executable test suites.
- ISO/IEC 9646-5 - covers requirements on test laboratories and PCTR use.
- ISO/IEC 9646-6 - covers protocol profile test specification and the PIXIT/PCTR proforma basis.
- ISO/IEC 9646-7 - covers the implementation conformance statement framework.
- Part 1 of the TIPHON SIP conformance testing deliverable - provides the Test Suite Structure and Test Purposes that this part turns into the ATS and PIXIT proforma.
What does the SIST-TS TS 102 027-2 V2.1.1:2004 document contain?
The document contains an abstract SIP test method, architecture figures for the SIP network, the SIP protocol and the test system, and detailed rules for EDS encoding, decoding and logging. It also contains naming and implementation conventions for the TTCN-3 test suite, including message, header, template, timer and test case naming patterns.
Annex A contains the TTCN-3 ATS files, while Annex B and Annex C contain proformas with tables for identification, ATS summary, laboratory details, SUT details, protocol information, capabilities, IP parameters, registration settings, session settings, header parameters, body parameters, timers, conformance status and test campaign reporting. Annex C also lists the test case identifiers used in the campaign report, grouped by SIP function such as registration, call control and messaging.
Get Certified
Connect with accredited certification bodies for this standard

ANCE
Mexican certification and testing association.

Intertek Slovenia
Intertek testing, inspection, and certification services in Slovenia.

LNE (Laboratoire National de Métrologie et d'Essais)
French national laboratory for metrology and testing.
Sponsored listings
Frequently Asked Questions
SIST-TS TS 102 027-2 V2.1.1:2004 is a technical specification published by the Slovenian Institute for Standardization (SIST). Its full title is "Telecommunications and Internet Protocol Harmonization Over Networks (TIPHON); Technology Compliance Specification; Draft IETF SIP RFC 3261; Part 2: Abstract Test Suite (ATS) and partial Protocol Implementation eXtra Information for Testing (PIXIT) proforma specification". This standard covers: Design of Test Suite Structure and implementation of Test Purposes for conformance testing of an draft IETF SIP RFC 3261 protocol implementation.
Design of Test Suite Structure and implementation of Test Purposes for conformance testing of an draft IETF SIP RFC 3261 protocol implementation.
SIST-TS TS 102 027-2 V2.1.1:2004 is classified under the following ICS (International Classification for Standards) categories: 33.020 - Telecommunications in general. The ICS classification helps identify the subject area and facilitates finding related standards.
SIST-TS TS 102 027-2 V2.1.1:2004 is available in PDF format for immediate download after purchase. The document can be added to your cart and obtained through the secure checkout process. Digital delivery ensures instant access to the complete standard document.
Standards Content (Sample)
Contents
- 1 Scope
- 2 References
- 7 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 3 Definitions and abbreviations
- 3.1 Definitions
- 3.2 Abbreviations
- 8 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 4 Abstract Test Method (ATM)
- 4.1 Network architecture
- 4.2 Protocol architecture
- 9 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 4.3 Test system architecture
- 10 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 11 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 5 Untestable Test Purposes (TP)
- 6 ATS conventions
- 6.1 Naming conventions
- 12 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 13 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 14 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 6.2 Implementation conventions
- 15 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 16 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 17 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 7 PCTR conformance
- 18 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 8 PIXIT conformance
- 9 ATS Conformance
- 19 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 20 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 21 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 22 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 23 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 24 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 25 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 26 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 27 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 28 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 29 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 30 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 31 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 32 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 33 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 34 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 35 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 36 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 37 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 38 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 39 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 40 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 41 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 42 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 43 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 44 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 45 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 46 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 47 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 48 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 49 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 50 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 51 ETSI TS 102 027-2 V2.1.1 (2003-10)
- 52 ETSI TS 102 027-2 V2.1.1 (2003-10)
1 Scope
The present document specifies the Abstract Test Suite (ATS) for the Session Initiation Protocol SIP as defined in RFC 3261 [1].
The objective of the present document is to provide a basis for conformance tests for SIP equipment giving a high probability of inter-operability between different manufacturer's SIP equipments. Annex A provides the Testing and Test Control Notation (TTCN-3) part of the ATS. Annex B provides the Partial Protocol Implementation Extra Information for Testing (PIXIT) Proforma of the ATS. Annex C provides the Protocol Conformance Test Report (PCTR) Proforma of the ATS.
2 References
The following documents contain provisions which, through reference in this text, constitute provisions of the present document.
- References are either specific (identified by date of publication and/or edition number or version number) or non-specific.
- For a specific reference, subsequent revisions do not apply.
- For a non-specific reference, the latest version applies.
Referenced documents which are not found to be publicly available in the expected location might be found at http://docbox.etsi.org/Reference.
[1] IETF RFC 3261: "SIP: Session Initiation Protocol".
[2] ETSI ES 201 873-1 (V2.2.0): "Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 1: TTCN-3 Core Language". [3] ETSI ES 201 873-5 (V1.1.1): "Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 5: TTCN-3 Runtime Interface (TRI)". [4] ISO/IEC 9646-1 (1991): "Information technology - Open Systems Interconnection - Conformance testing methodology and framework - Part 1: General concepts". [5] ISO/IEC 9646-2 (1991): "Information technology - Open Systems Interconnection - Conformance testing methodology and framework - Part 2: Abstract test suite specification". [6] ISO/IEC 9646-4 (1991): "Information Technology - Open Systems Interconnection - Conformance Testing Methodology and Framework, Part 4: Test realisation".
[7] ISO/IEC 9646-5 (1991): "Information Technology - Open Systems Interconnection - Conformance testing methodology and framework - Part 5: Requirements on test laboratories". [8] ISO/IEC 9646-6 (1991): "Information technology - Open Systems Interconnection - Conformance testing methodology and framework - Part 6: Protocol profile test specification". [9] ISO/IEC 9646-7 (1991): "Information technology - Open Systems Interconnection - Conformance testing methodology and framework - Part 7: Implementation conformance statement". ETSI
SIST-TS TS 102 027-2 V2.1.1:2004
7 ETSI TS 102 027-2 V2.1.1 (2003-10)
3 Definitions and abbreviations
3.1 Definitions
For the purposes of the present document, the following terms and definitions apply:
- Terms defined in RFC 3261 [1];
- Terms defined in ES 201 873-1 [2];
- Terms defined in ES 201 873-5 [3].
3.2 Abbreviations
For the purposes of the present document, the abbreviations given in ES 201 873-1 [2], ES 201 873-5 [3], and RFC 3261 [1] apply. In particular, the following abbreviations apply:
ABNF Augmented Backus Naur Form ATM Abstract Test Method ATS Abstract Test Suite EDS Encoding/Decoding System ETS Executable Test Suite IUT Implementation Under Test PA Platform Adapter PDU Protocol Data Unit PICS Protocol Implementation Conformance Statement PIXIT Protocol Implementation eXtra Information for Testing PTC Parallel Test Component SA SUT Adapter SUT System Under Test TC Test Cases TCI TTCN-3 Control Interface TE TTCN-3 Executable TM Test Management TP Test Purpose TRI TTCN-3 Runtime Interface TS Test System TSS Test Suite Structure TTCN Testing and Test Control Notation version 3 ETSI
SIST-TS TS 102 027-2 V2.1.1:2004
8 ETSI TS 102 027-2 V2.1.1 (2003-10)
4 Abstract Test Method (ATM)
This clause describes the ATM used to test IETF SIP RFC as defined in [1].
4.1 Network architecture
The basic SIP network architecture is defined in figure 1. The ATS defines test cases for the IUT being in the role of each displayed entity.
OUTBOUND
User Agent User Agent PROXY
Client/Server Client/Server PROXY
A B Registrar
REDIRECT SERVER
A: caller interface
Registrar B: callee interface
Figure 1: SIP network architecture
4.2 Protocol architecture
The Implementation Under Test (IUT) for which this test case specification applies consists of the SIP protocol (see figure 2).
IUT
SIP
UDP TCP IP (LAN)
Figure 2: SIP protocol architecture ETSI
SIST-TS TS 102 027-2 V2.1.1:2004
9 ETSI TS 102 027-2 V2.1.1 (2003-10)
SIP messages are considered in TTCN-3 description as PDU and analysed independently of the transport layer that has been used. The ATS does not care if the several SIP messages have been received in a same frame or in several frames and expect SIP messages one by one. It is up to the TRI to manage those considerations. The choice of the transport protocol used is taken into account by the ATS while the port are initialized at the beginning of each test component by calling a dedicated init function (initUDPport(), initUDPMTCport, etc.).
4.3 Test system architecture
Test systems that implement this ATS shall conform to the requirements as defined in this clause.
4.3.1 Structure
An abstract architecture for a test system (TS) implementing a TTCN-3 ATS is displayed in figure 3 and also stated in ES 201 873-5 [3].
Figure 3: Abstract Test System Architecture A TS has two interfaces, the TTCN-3 Control Interface (TCI) and the TTCN-3 Runtime Interface (TRI), which specify the interface between Test Management (TM) and TTCN-3 Executable (TE) entities, and TE, SUT Adapter (SA) and Platform Adapter (PA) entities, respectively. Out of these two interfaces the TRI has been standardized in ES 201 873-5 [3], whereas the specification and implementation of the TCI is currently considered to be proprietary. The part of TS that deals with interpretation and execution of TTCN-3 modules, i.e. the Executable Test Suite (ETS), is shown as part of the TTCN-3 Executable (TE). This ETS corresponds either to the executable code produced by a TTCN-3 compiler or a TTCN-3 interpreter from the TTCN-3 ATS in a TS implementation. The remaining part of the TS, which deals with any aspects that cannot be concluded from information being present in the TTCN-3 ATS alone, can be decomposed into Test Management (TM), SUT Adapter (SA), and Platform Adapter (PA) entities. In general, these entities cover a TS user interface, test execution control, test event logging, communication of test data with the SUT, and timer implementation.
The SA for a SIP TS shall implement the TRI adaptation as well as the SIP transport protocol architecture described in clause 4.2. The Encoding/Decoding System (EDS) entity with the TE and Test Logging (TL) entity within the TM shall comply with the conventions defined in following clauses.
4.3.2 Encoding/Decoding System requirements
SIP is a text-based protocol that allows different syntactical presentations of the same information. In general, an implementation of this ATS should use a EDS to parse received encoded messages into TTCN-3 type structures and values, and encode structured TTCN-3 type structures and values into encoded messages. This EDS is not part of the ATS. Still all encoded messages, i.e. the messages as they are transmitted by the SA to or received by the SA from the SUT, shall be logged.
ETSI
SIST-TS TS 102 027-2 V2.1.1:2004
10 ETSI TS 102 027-2 V2.1.1 (2003-10)
The following terms shall be used for the conventions defined below:
Syntactic delimiter Syntactic delimiters are characters like "=" or ";" that are used to separate encoded values LWS linear white spaces as defined SIP [1] Parameter name name of header parameters as defined in SIP [1]. Parameter value the value of a parameter as defined in SIP Undefined method an undefined method is a method other than: "INVITE", "ACK", "OPTIONS", "BYE", "CANCEL" and "REGISTER".
Undefined header an undefined header is a header other than general-header, entity-header, request-header and response header as defined in SIP [1].
Unexpected header an unexpected header is a header, which shall not be present in a specific request message. This definition complies to the definition of NOT APPLICABLE in SIP [1]/10 for request messages.
4.3.2.1 Decoding requirements
TTCN-3 fields should not contain syntactic delimiters like white space, semicolon, equal characters etc. in fully decoded fields. Instead the information provided by a parser shall be used to build the decoded message in TTCN-3. Decoded messages shall use the TTCN-3 enumeration types where ever appropriate, e.g. for the method and the header field name.
For charstring fields the following decoding rules shall be applied by the EDS:
- Subsequent LWS shall compress to a single space character " ".
- Decoded parameter names shall use only lower case letters.
- Parameter values containing an integer value shall be decoded to a TTCN-3 integer value where a TTCN-3 integer type is used for a SIP parameter value.
The following decoding rules shall be applied by the EDS to each received message in the following order:
1) In case a request message indicating an undefined method is received by the test system, the message shall not be passed in the TE to the ETS. However the message is subject to logging as defined in clause 4.3.3. 2) In case an undefined header has been received the header field shall be decoded as UndefinedHeader field. 3) The SIP standard [1] allows for multiple header field values of the same kind to either arrive in one or multiple occurrences of the corresponding header field. The SIP ATS has been written assuming only the first format. Therefore, should the EDS receive multiple header fields of the same kind in a SIP message, e.g., of a Via header field, it shall convert them into the equivalent single header field with multiple values. This can be achieved by adding the value of , e.g. the second received Via header field as the last value to the value(s) of the first Via header field.
4.3.2.2 Encoding requirements
Encoders shall follow all encoding rules that are defined in SIP ABNF [2] when encoding structured values received from templates. This applies in particular to but it is not restricted to clause [1]/3 "SIP Message Overview" and [1]/10.5 "Header Field Format".
Values of type RawMessage shall be send to the SUT without any modification.
4.3.3 Logging conventions
As the ATS defines on an abstract level the message exchange between TS and SUT the messages encoded messages send and received shall be logged. The TM entity in the TS shall provide access to this log. ETSI
SIST-TS TS 102 027-2 V2.1.1:2004
11 ETSI TS 102 027-2 V2.1.1 (2003-10)
5 Untestable Test Purposes (TP)
This clause gives a list of TP, which are not implemented in the ATS due to the chosen ATM or other restrictions :
None
6 ATS conventions
The ATS conventions are intended to give a better understanding of the ATS, but they also describe the conventions made for the development of the ATS. These conventions shall be considered during any later maintenance or further development of the ATS.
The ATS conventions contain two clauses, the naming conventions and the implementation conventions. The naming conventions describe the structure of the naming of all ATS elements. The implementation conventions describe the functional structure of the ATS.
6.1 Naming conventions
6.1.1 Type definitions
This clause describes the naming conventions used for structured and unstructured types as well as for the field names of structured types.
6.1.1.1 General
Type identifiers use mixed cased with the first letter of each internal word capitalized. EXAMPLE: RequestLine
Field identifiers use mixed cased with a lowercase first letter. Internal words start with a capital letter. EXAMPLE: requestLine Names of type as well as field identifiers attempt to follow the naming chosen of ABNF elements (if a counterpart exists) as closely as possible.
EXAMPLES: NameAddr hostName In case type and identifier names should give a hint on their structure the term describing the structure should be separated with an underscore ("_") at the end of the name.
EXAMPLES: CommaParam_List ContactBody_Union
6.1.1.2 PDU Type Definition
Names of types used as PDUs follow the general conventions as defined in clause 6.1.1.1. EXAMPLE: Request
6.1.2 Template definition
Template identifiers consist of the type name, an identifier denoting whether the template is for sending or receiving and a sequential number.
EXAMPLE: Request_r_1 denotes a template from type Request that is intended for reception. CommaParam_List_s_25 denotes a template from type CommaParam_List that is intended for sending.
ETSI
SIST-TS TS 102 027-2 V2.1.1:2004
12 ETSI TS 102 027-2 V2.1.1 (2003-10)
The sequential number is used only to distinguish between templates for the same type and direction and includes no other information.
6.1.3 Constant declarations
Identifiers for either internal or external constants, use only uppercase letters. Internal words are separated by an underscore ("_").
EXAMPLE: SIP_VERSION
6.1.4 Enumeration declarations
While identifiers for the enumeration type follow the conventions as defined in clause 6.1.1.1, enumerations elements use only uppercase letters, which are suffixed by "_E" to distinguish them from constants. Internal words are separated by an underscore character ("_").
EXAMPLE: Enumeration type FieldName Enumeration value FROM_E
6.1.5 Module parameter declarations
Identifiers for module parameters follow the general rules as defined in clause 6.1.3. Numbers are separated from words using the underscore character "_".
EXAMPLE: CAP_1
6.1.6 Variable declarations
Identifiers for variables follow the general rules for field names as defined in clause 6.1.1.1.
6.1.7 Function declarations
Identifiers for either internal or external functions use mixed case with a lowercase first letter. Internal words start with a capital letter, and "To " is abbreviated with "2".
EXAMPLE: char2str ()
6.1.8 Test Case declarations
6.1.8.1 General
All test cases are listed in the order in which they appear in the Test Suite Structure (TSS) and TP document. Grouping is used to reflect the TSS.
6.1.8.2 Test Case (TC) identifier
The identifier of the test case is constructed in the same way as the test purpose described in TS 102 027-1, clause 5.1.1. The identifier of a TC is built according to table 1.
ETSI
SIST-TS TS 102 027-2 V2.1.1:2004
13 ETSI TS 102 027-2 V2.1.1 (2003-10)
Table 1: TP identifier naming convention scheme Identifier: <protocol>_<main functionality>_<role>_<functionality>_<type>_<nn> <protocol> SIP <main functionality> Registration (RG), Call Control (CC), Messaging (MG).
<role> Registrant (RT), Registrar (RR) Originating Endpoint (OE), Terminating Endpoint (TE), Proxy (PR), Redirect (RD).
<functionality> (optional) Call Establishment (CE), Call Release(CR), Session modification (SM), Message processing (MP), Transaction (TR).
<sub-functionality> (optional) Request (RQ), Response(RS), Client(CL), Server(SE) <type> Valid Behaviour (V), Invalid Behaviour (I), Inopportune Behaviour (O) , Timers (TI).
<nnn> sequential number (001-999).
6.1.9 Timer declarations
Two types of timers can be identified:
1) Standardized:
- Those defined in SIP [1], e.g. T1. They use exactly the same name as in the standard. As there is a tolerance margin accepted for these timers, three values are needed:
- The maximum value allowed, which will use the suffix "_max"; - The minimum value allowed, which will use the suffix "_min"; - The value actually implemented, with no suffix; EXAMPLE: T1 _max, T1_min, and T1.
2) Not standardized:
- Those not defined in the protocol standard, i.e. for execution use, e.g. a timer waiting for a response. These timers begin with the prefix "T_", followed by a string in lowercase letters. EXAMPLE: T_resp represents a timer for controlling the response time of the IUT.
6.1.10 Group names
Group names follow the same general conventions as defined in clause 6.1.1.1. EXAMPLE: SubtypesTemplateDeclarations Where appropriate group names reflect the hierarchic group structure. ETSI
SIST-TS TS 102 027-2 V2.1.1:2004
14 ETSI TS 102 027-2 V2.1.1 (2003-10)
6.2 Implementation conventions
6.2.1 Type definitions
The following clause gives an overview on the mapping of SIP messages and structures as defined in SIP [1] and their corresponding TTCN-3 types.
6.2.1.1 Messages
Distinct types have been defined for SIP request and response messages, as they have a different internal structure. Messages are defined as a record structure containing three fields, a request/status line field, a header field and a message body field, and a payload field [ETSIStyleGuide] which contains the whole message as it has been received in its text format..For syntactic delimiters, like Carriage Return Line Feed (CRLF), colon ":", etc. no extra fields are defined as they are already removed by the EDS.
The definition of invalid messages for sending and receiving is discussed in clause 6.2.1.1.3. 6.2.1.1.1 Request messages For all possible valid requests one generic type has been defined. EXAMPLE: The generic request message type record SipRequest { RequestLine requestLine, RequestHeader reqHeader, charstring messageBody optional, Payload payload optional
6.2.1.1.2 Response messages For all possible valid responses one generic type has been defined. EXAMPLE: The generic response message type record Response { StatusLine statusLine, ResponseHeader resHeader, charstring messageBody optional, Payload payload optional
6.2.1.1.3 Raw messages For defining syntactic torture or syntactic invalid messages a distinct type RawMessage has been defined. This type is defined as a charstring. Messages using this type define exactly how the message shall be transmitted, thus giving the possibility to define the message on a character level.
EXAMPLE: A torture message template RawMessage rawMessage_s_1 = 'INVITE sip:joe@foo.com SIP/2.0' & CRLF & 'TO : ' & CRLF ' sip:joe@foo.com ;' & TAB & ' tag = 1918181833n' & CRLF & 'Via : SIP / 2.0' ;
The RawMessage type has not been used to describe valid receiving templates. Therefore, valid receiving templates will always use structured messages.
ETSI
SIST-TS TS 102 027-2 V2.1.1:2004
...



