ETSI TS 102 127 V9.0.0 (2018-08)

Smart Cards; Transport protocol for CAT applications; Stage 2 (Release 9)

ETSI TS 102 127 V9.0.0 (2018-08)

Name:ETSI TS 102 127 V9.0.0 (2018-08)   Standard name:Smart Cards; Transport protocol for CAT applications; Stage 2 (Release 9)
Standard number:ETSI TS 102 127 V9.0.0 (2018-08)   language:English language
Release Date:01-Aug-2018   technical committee:SET TEC - SET-TEC
Drafting committee:   ICS number:
ETSI TS 102 127 V9.0.0 (2018-08)






TECHNICAL SPECIFICATION
Smart Cards;
Transport protocol for CAT applications;
Stage 2
(Release 9)

---------------------- Page: 1 ----------------------
Release 9 2 ETSI TS 102 127 V9.0.0 (2018-08)



Reference
RTS/SCP-T0015rcv900
Keywords
protocol, smart card, transport
ETSI
650 Route 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 enregistrée à la
Sous-Préfecture de Grasse (06) N° 7803/88

Important notice
The present document can be downloaded from:

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 in 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 status.
Information on the current status of this and other ETSI documents is available at

If you find errors in the present document, please send your comment to one of the following services:

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 ETSI.
The copyright and the foregoing restriction extend to reproduction in all media.

© ETSI 2018.
All rights reserved.

TM TM TM
DECT , PLUGTESTS , UMTS and the ETSI logo are trademarks of ETSI registered for the benefit of its Members.
TM TM
3GPP and LTE are trademarks 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 trademarks registered and owned by the GSM Association.
ETSI

---------------------- Page: 2 ----------------------
Release 9 3 ETSI TS 102 127 V9.0.0 (2018-08)
Contents
Intellectual Property Rights . 8
Foreword . 8
Modal verbs terminology . 8
1 Scope . 9
2 References . 9
2.1 Normative references . 9
2.2 Informative references . 10
3 Definitions, symbols, abbreviations and coding conventions . 10
3.1 Definitions . 10
3.2 Symbols . 11
3.3 Abbreviations . 11
3.4 Coding conventions . 11
4 Description . 12
5 CAT_TP layer . 13
5.0 Layers presentation. 13
5.1 Data communication. 13
5.2 Segmentation management . 13
5.2.1 Segmentation and re-assembly . 13
5.2.1.0 Segmentation behaviour . 13
5.2.1.1 N-SDU and N-PDU when segmentation is needed . 14
5.2.1.2 N-SDU and N-PDU when no segmentation . 14
5.2.2 Limitations . 14
5.2.3 CAT_TP segmentation management . 14
5.3 Transport management . 15
5.3.1 CAT_TP connection management . 15
5.3.1.0 Connection description . 15
5.3.1.1 Opening a connection . 16
5.3.1.2 Ports . 16
5.3.1.3 Connection states . 16
5.3.1.3.0 Connection states presentation . 16
5.3.1.3.1 CLOSED state . 17
5.3.1.3.2 LISTEN state . 17
5.3.1.3.3 SYN-SENT state . 17
5.3.1.3.4 SYN-RCVD state . 17
5.3.1.3.5 OPEN state . 17
5.3.1.3.6 CLOSE-WAIT state . 17
5.3.1.4 Connection record . 17
5.3.1.4.0 Overview . 17
5.3.1.4.1 STATE. 17
5.3.1.4.2 Variables for CAT_TP sending activity . 18
5.3.1.4.3 Variables for CAT_TP receiving activity . 18
5.3.1.4.4 Variables from current PDU . 18
5.3.1.4.5 Variables from SYN PDU . 18
5.3.1.5 Closing a connection . 18
5.3.1.6 Detecting a Half-Open and/or inactive connection . 19
5.3.1.7 Version Number Management . 19
5.3.2 Reliable Communication . 19
5.3.2.0 Reliability mechanisms . 19
5.3.2.1 Sequence number . 19
5.3.2.2 Checksum . 20
5.3.2.3 Positive acknowledgement of PDUs . 20
5.3.2.4 Retransmission timeout . 20
5.3.3 Flow control and window management . 21
5.4 Events processing . 21
ETSI

---------------------- Page: 3 ----------------------
Release 9 4 ETSI TS 102 127 V9.0.0 (2018-08)
5.4.0 Overview . 21
5.4.1 Upper layer events . 22
5.4.1.0 Introduction . 22
5.4.1.1 Open request . 23
5.4.1.2 Close request . 25
5.4.1.3 Receive request . 28
5.4.1.4 Send request . 30
5.4.2 PDU arrival events . 34
5.4.2.0 PDU pre-treatment . 34
5.4.2.1 Initial state: CLOSE . 34
5.4.2.2 Initial state: OPEN . 35
5.4.2.3 Initial state: LISTEN . 39
5.4.2.4 Initial state: SYN-SENT . 40
5.4.2.5 Initial state: SYN-RCVD . 41
5.4.2.6 Initial state: CLOSE-WAIT . 43
5.4.3 Timeout events . 44
5.4.3.0 Timeout description . 44
5.4.3.1 Retransmission timeout . 44
5.4.3.2 Close-wait timeout . 45
5.5 Identification . 45
5.6 CAT_TP header format . 46
5.6.0 CAT_TP header description . 46
5.6.1 First octet . 47
5.6.2 Header length . 47
5.6.3 Source and destination ports . 47
5.6.4 Data length . 48
5.6.5 Sequence number . 48
5.6.6 Acknowledgement number . 48
5.6.7 Window size . 48
5.6.8 Checksum . 48
5.6.9 Variable header area . 48
5.6.10 RFU field . 48
5.7 SYN PDU . 49
5.7.0 SYN PDU description . 49
5.7.1 SYN PDU fields . 49
5.7.1.1 Data length . 49
5.7.1.2 Sequence number . 49
5.7.1.3 Acknowledgment number . 49
5.7.1.4 Maximum PDU size . 50
5.7.1.5 Maximum SDU size . 50
5.7.1.6 Identification . 50
5.8 ACK PDU . 50
5.8.0 ACK PDU description . 50
5.8.1 ACK PDU field . 51
5.8.1.1 Data length . 51
5.8.1.2 Sequence number . 51
5.8.1.3 Acknowledgment number . 51
5.9 EACK PDU . 52
5.9.0 EACK PDU description . 52
5.9.1 EACK PDU Field . 53
5.9.1.1 Data length . 53
5.9.1.2 Sequence number . 53
5.9.1.3 Acknowledgment number . 53
5.9.1.4 Variable header area . 53
5.10 RST PDU. 54
5.10.0 RST PDU description . 54
5.10.1 RST PDU fields . 54
5.10.1.1 Data length . 54
5.10.1.2 Sequence number . 54
5.10.1.3 Acknowledgment number . 54
5.10.1.4 Reason code . 55
5.11 NUL PDU . 55
ETSI

---------------------- Page: 4 ----------------------
Release 9 5 ETSI TS 102 127 V9.0.0 (2018-08)
5.11.0 NUL PDU description . 55
5.11.1 NUL PDU fields . 56
5.11.1.1 Data length . 56
5.11.1.2 Sequence number . 56
5.11.1.3 Acknowledgment number . 56
5.11.1.4 Variable header area . 56
5.12 Header flags combinations . 57
6 Implementation on BIP . 58
6.1 Sending and receiving data . 58
6.2 Timers . 58
Annex A (informative): Scenarios examples . 59
A.1 Connection establishment. 59
A.2 Lost PDUs . 59
A.3 PDUs received out of order . 60
A.4 Communication over long delay path. 60
A.5 Communication over long delay path with lost PDUs . 61
A.6 Detecting a half open connection on crash recovery . 61
A.7 Detecting a half open connection from the active side . 62
A.8 Dynamic window management . 62
Annex B (informative): CAT_TP-Upper layer interface definition . 64
B.0 Introduction . 64
B.1 OPEN . 64
B.2 Send . 65
B.3 Receive . 65
B.4 CLOSE . 65
B.5 Status . 66
Annex C (informative): Change history . 67
History . 68

ETSI

---------------------- Page: 5 ----------------------
Release 9 6 ETSI TS 102 127 V9.0.0 (2018-08)
List of figures
Figure 1: Environment description .12
Figure 2: CAT_TP layer position .12
Figure 3: CAT_TP layer description .13
Figure 4: PDUs exchange between two Layers N .13
Figure 5: N-SDU and N-PDU with segmentation .14
Figure 6: N-SDU and N-PDU with no segmentation .14
Figure 7: Segmentation description .15
Figure 8: CAT_TP functional state machine .16
Figure 9: Open Request in OPEN, LISTEN, SYN-SENT, SYN-RCVD state .23
Figure 10: Open request in CLOSE-WAIT state .23
Figure 11: Open request in CLOSED state .24
Figure 12: Close request in Open state .25
Figure 13: Close request in CLOSE state .25
Figure 14: Close request in CLOSE-WAIT state .26
Figure 15: Close request in SYN-SENT or SYN-RCVD state .26
Figure 16: Close request in LISTEN state .27
Figure 17: Receive request in OPEN state .28
Figure 18: Receive request in CLOSE state .29
Figure 19: Receive request in CLOSE-WAIT state .29
Figure 20: Receive request in LISTEN, SYN-SENT or SYN-RCVD state .30
Figure 21: Send data request in OPEN state .31
Figure 21a: Send NUL request in OPEN state .32
Figure 22: Send request in CLOSE, LISTEN, SYN-SENT or SYN-RCVD state.33
Figure 23: Send request in CLOSE-WAIT state .33
Figure 24: CLOSE state PDU arrival event processing.34
Figure 25: OPEN state PDU arrival event processing 1/4 .35
Figure 26: OPEN state PDU arrival event processing 2/4 .
...

  • Relates Information
  • IEC 60300-3-7:1999

    IEC 60300-3-7:1999 - Dependability management - Part 3-7: Application guide - Reliability stress screening of electronic hardware Released:5/31/1999 Isbn:2831847974
    09-20
  • HD 571 S1:1990

    HD 571 S1:1998
    09-20
  • ISO 8130-4:1992

    ISO 8130-4:1992 - Coating powders
    09-20
  • HD 478.2.7 S1:1990

    HD 478.2.7 S1:2003
    09-19
  • ISO 8473:1988/Cor 1:1992

    ISO 8473:1988/Cor 1:1992 - Information processing systems — Data communications — Protocol for providing the connectionless-mode network service — Technical Corrigendum 1 Released:12/10/1992
    09-19
  • EN ISO 9013:2017/prA1

    EN ISO 9013:2017/oprA1:2024
    09-19
  • IEC 60118-6:1999

    IEC 60118-6:1999 - Hearing aids - Part 6: Characteristics of electrical input circuits for hearing aids Released:6/9/1999 Isbn:2831848075
    09-19
  • HD 280.3 S1:1990

    HD 280.3 S1:1999
    09-19
  • ISO 9832:1992

    ISO 9832:1992 - Animal and vegetable fats and oils -- Determination of residual technical hexane content
    09-19
  • EN 60188:1988/A1:1990

    EN 60188:1999/A1:1999
    09-18