BS ISO 13400-2:2012
BSI Standards Publication
Road vehicles - Diagnostic
communication over Internet
Protocol (DoIP)
Part 2: Transport protocol and network
layer services
NO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAW
raising standards worldwide™
BS ISO 13400-2:2012
BRITISH STANDARD
National foreword
This British Standard is the UK implementation of ISO 13400-2:2012.
The UK participation in its preparation was entrusted to Technical
Committee AUE/16, Electrical and electronic equipment.
A list of organizations represented on this committee can be
obtained on request to its secretary.
This publication does not purport to include all the necessary
provisions of a contract. Users are responsible for its correct
application.
© The British Standards Institution 2012. Published by BSI Standards
Limited 2012
ISBN 978 0 580 69653 4
ICS 43.040.10; 43.180
Compliance with a British Standard cannot confer immunity from
legal obligations.
This British Standard was published under the authority of the
Standards Policy and Strategy Committee on 30 June 2012.
Amendments issued since publication
Date
Text affected
INTERNATIONAL
STANDARD
BS ISO 13400-2:2012
ISO
13400-2
First edition
2012-06-01
Road vehicles — Diagnostic
communication over Internet Protocol
(DoIP) —
Part 2:
Transport protocol and network layer
services
Véhicules routiers — Communication de diagnostic au travers du
protocole internet (DoIP) —
Partie 2: Protocole de transport et services de la couche réseau
Reference number
ISO 13400-2:2012(E)
© ISO 2012
BS ISO 13400-2:2012
ISO 13400-2:2012(E)
COPYRIGHT PROTECTED DOCUMENT
ISO 2012
©
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means,
electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISO’s
member body in the country of the requester.
ISO copyright office
Case postale 56 • CH-1211 Geneva 20
Tel. + 41 22 749 01 11
Fax + 41 22 749 09 47
E-mail copyright@iso.org
Web www.iso.org
Published in Switzerland
ii
© ISO 2012 – All rights reserved
Contents
BS ISO 13400-2:2012
ISO 13400-2:2012(E)
Page
Foreword ............................................................................................................................................................................iv
Introduction ........................................................................................................................................................................ v
Scope ...................................................................................................................................................................... 1
1
Normative references ......................................................................................................................................... 1
2
Terms, definitions, symbols and abbreviated terms .................................................................................. 2
3
Terms and definitions ......................................................................................................................................... 2
3.1
Symbols ................................................................................................................................................................. 3
3.2
3.3
Abbreviated terms ............................................................................................................................................... 4
Conventions .......................................................................................................................................................... 5
4
Document overview ............................................................................................................................................ 5
5
Basic requirements for implementation of internet protocols ................................................................ 7
6
General considerations ..................................................................................................................................... 7
6.1
Network layer requirements ............................................................................................................................. 8
6.2
Transport Layer requirements ......................................................................................................................... 9
6.3
6.4
Application layer requirements — Dynamic host control protocol (DHCP) ......................................14
Application layer requirements — Data transmission order .................................................................18
6.5
DoIP protocol — Technical description .......................................................................................................19
7
IP-based vehicle communication protocol .................................................................................................19
7.1
7.2
Socket handling .................................................................................................................................................41
Timing and communication parameters .....................................................................................................48
7.3
Logical addressing ...........................................................................................................................................49
7.4
7.5
Communication environments and recommended timings ..................................................................50
Transport layer services ..................................................................................................................................50
8
General information ..........................................................................................................................................50
8.1
Specification of DoIP layer service primitives ...........................................................................................52
8.2
8.3
Service data unit specification ......................................................................................................................53
DoIP protocol usage .........................................................................................................................................54
9
General information ..........................................................................................................................................54
9.1
Connection establishment and vehicle discovery ...................................................................................54
9.2
9.3
DoIP session .......................................................................................................................................................56
Vehicle network integration ............................................................................................................................58
9.4
DoIP entity functional requirements ............................................................................................................64
10
Communication example message sequence charts ..............................................................................64
11
Bibliography .....................................................................................................................................................................67
© ISO 2012 – All rights reserved
iii
BS ISO 13400-2:2012
ISO 13400-2:2012(E)
Foreword
ISO (the International Organization for Standardization) is a worldwide federation of national standards bodies
(ISO member bodies). The work of preparing International Standards is normally carried out through ISO
technical committees. Each member body interested in a subject for which a technical committee has been
established has the right to be represented on that committee. International organizations, governmental and
non-governmental, in liaison with ISO, also take part in the work. ISO collaborates closely with the International
Electrotechnical Commission (IEC) on all matters of electrotechnical standardization.
International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2.
The main task of technical committees is to prepare International Standards. Draft International Standards
adopted by the technical committees are circulated to the member bodies for voting. Publication as an
International Standard requires approval by at least 75 % of the member bodies casting a vote.
Attention is drawn to the possibility that some of the elements of this document may be the subject of patent
rights. ISO shall not be held responsible for identifying any or all such patent rights.
ISO 13400-2 was prepared by Technical Committee ISO/TC 22, Road vehicles, Subcommittee SC 3, Electrical
and electronic equipment.
ISO 13400 consists of the following parts, under the general title Road vehicles — Diagnostic communication
over Internet Protocol (DoIP):
— Part 1: General information and use case definition
— Part 2: Transport protocol and network layer services
— Part 3: Wired vehicle interface based on IEEE 802.3
The following parts are under preparation:
— Part 4: Ethernet diagnostic connector
— Part 5: Conformance test specification
iv
© ISO 2012 – All rights reserved
BS ISO 13400-2:2012
ISO 13400-2:2012(E)
Introduction
Vehicle diagnostic communication has been developed starting with the introduction of the first legislated
emissions-related diagnostics and has evolved over the years, now covering various use cases ranging
from emission-related diagnostics to vehicle-manufacturer-specific applications like calibration or electronic
component software updates.
With the introduction of new in-vehicle network communication technologies, the interface between the
vehicle’s electronic control units and the external test equipment has been adapted several times to address
the specific characteristics of each new network communication technology requiring optimized data link
layer definitions and transport protocol developments in order to make the new in-vehicle networks usable for
diagnostic communication.
With increasing memory size of electronic control units, the demand to update this increasing amount of software
and an increasing number of functions provided by these control units, technology of the connecting network
and buses has been driven to a level of complexity and speed similar to computer networks. New applications
(x-by-wire, infotainment) require high band-width and real-time networks (like FlexRay, MOST), which cannot
be adapted to provide the direct interface to a vehicle. This requires gateways to route and convert messages
between the in-vehicle networks and the vehicle interface to external test equipment.
The intent of ISO 13400 (all parts) is to describe a standardized vehicle interface which
— separates in-vehicle network technology from the external test equipment vehicle interface requirements
to allow for a long-term stable external vehicle communication interface,
— utilizes existing industry standards to define a long-term stable state-of-the-art communication standard
usable for legislated diagnostic communication as well as for manufacturer-specific use cases, and
— can easily be adapted to new physical and data link layers, including wired and wireless connections, by
using existing adaptation layers.
To achieve this, all parts of ISO 13400 are based on the Open Systems Interconnection (OSI) Basic Reference
Model specified in ISO/IEC 7498-1 and ISO/IEC 10731, which structures communication systems into seven
layers. When mapped on this model, the services specified by ISO 14229-1, ISO 14229-2 and ISO 14229-5
are divided into
a) unified diagnostic services (layer 7), specified in ISO 14229-1, ISO 14229-5, ISO 27145-3,
b) presentation (layer 6):
1)
2)
for enhanced diagnostics, specified by the vehicle manufacturer,
for WWH-OBD (World-Wide Harmonized On-Board Diagnostics), specified in ISO 27145-2,
SAE J1930-DA, SAE J1939:2011, Appendix C (SPNs), SAE J1939-73:2010, Appendix A (FMI),
SAE J1979-DA, SAE J2012-DA,
c) session layer services (layer 5), specified in ISO 14229-2,
d)
transport protocol (layer 4), specified in this part of ISO 13400,
e) network layer (layer 3) services, specified in this part of ISO 13400, and
f) physical and data link services (layers 1 and 2), specified in ISO 13400-3,
in accordance with Table 1.
© ISO 2012 – All rights reserved
v
BS ISO 13400-2:2012
ISO 13400-2:2012(E)
Table 1 — Enhanced and legislated WWH-OBD diagnostic specifications applicable to the OSI layers
Applicability
OSI 7 layers
Application (layer 7)
Vehicle manufacturer
enhanced diagnostics
ISO 14229-1/ISO 14229-5
WWH-OBD document reference
ISO 14229-1/ISO 27145-3
Seven layers
according to
ISO/IEC 7498-1
and
ISO/IEC 10731
Presentation (layer 6)
Vehicle manufacturer
specific
Session (layer 5)
Transport (layer 4)
Network (layer 3)
Data link (layer 2)
Physical (layer 1)
ISO 14229-2
ISO 13400-2
ISO 13400-3
ISO 27145-2, SAE J1930-DA,
SAE J1939:2011, Appendix C (SPNs),
SAE J1939-73:2010, Appendix A (FMIs),
SAE J1979-DA, SAE J2012-DA
ISO 14229-2
ISO 13400-2
ISO 13400-3
The application layer services covered by ISO 14229-5 have been defined in compliance with diagnostic
services established in ISO 14229-1, but are not limited to use only with them.
The transport and network layer services covered by this part of ISO 13400 have been defined to be independent
of the physical layer implemented.
For other application areas, ISO 13400-3 can be used with any Ethernet physical layer.
vi
© ISO 2012 – All rights reserved