1、raising standards worldwideNO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAWBSI Standards PublicationBS ISO 13400-2:2012Road vehicles - Diagnosticcommunication over InternetProtocol (DoIP)Part 2: Transport protocol and networklayer servicesBS ISO 13400-2:2012 BRITISH STANDARDNat
2、ional forewordThis British Standard is the UK implementation of ISO 13400-2:2012.The UK participation in its preparation was entrusted to TechnicalCommittee AUE/16, Electrical and electronic equipment.A list of organizations represented on this committee can beobtained on request to its secretary.Th
3、is publication does not purport to include all the necessaryprovisions of a contract. Users are responsible for its correctapplication. The British Standards Institution 2012. Published by BSI StandardsLimited 2012ISBN 978 0 580 69653 4ICS 43.040.10; 43.180Compliance with a British Standard cannot c
4、onfer immunity fromlegal obligations.This British Standard was published under the authority of theStandards Policy and Strategy Committee on 30 June 2012.Amendments issued since publicationDate Text affectedBS ISO 13400-2:2012 ISO 2012Road vehicles Diagnostic communication over Internet Protocol (D
5、oIP) Part 2: Transport protocol and network layer servicesVhicules routiers Communication de diagnostic au travers du protocole internet (DoIP) Partie 2: Protocole de transport et services de la couche rseauINTERNATIONAL STANDARDISO13400-2First edition2012-06-01Reference numberISO 13400-2:2012(E)BS
6、ISO 13400-2:2012ISO 13400-2:2012(E)ii ISO 2012 All rights reservedCOPYRIGHT PROTECTED DOCUMENT ISO 2012All 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 microfil
7、m, without permission in writing from either ISO at the address below or ISOs member body in the country of the requester.ISO copyright officeCase postale 56 CH-1211 Geneva 20Tel. + 41 22 749 01 11Fax + 41 22 749 09 47E-mail copyrightiso.orgWeb www.iso.orgPublished in SwitzerlandBS ISO 13400-2:2012I
8、SO 13400-2:2012(E) ISO 2012 All rights reserved iiiContents PageForeword ivIntroduction v1 Scope 12 Normative references . 13 Terms, definitions, symbols and abbreviated terms 23.1 Terms and definitions . 23.2 Symbols . 33.3 Abbreviated terms . 44 Conventions 55 Document overview 56 Basic requiremen
9、ts for implementation of internet protocols 76.1 General considerations . 76.2 Network layer requirements . 86.3 Transport Layer requirements . 96.4 Application layer requirements Dynamic host control protocol (DHCP) 146.5 Application layer requirements Data transmission order .187 DoIP protocol Tec
10、hnical description .197.1 IP-based vehicle communication protocol .197.2 Socket handling .417.3 Timing and communication parameters .487.4 Logical addressing .497.5 Communication environments and recommended timings 508 Transport layer services 508.1 General information 508.2 Specification of DoIP l
11、ayer service primitives .528.3 Service data unit specification 539 DoIP protocol usage .549.1 General information 549.2 Connection establishment and vehicle discovery .549.3 DoIP session .569.4 Vehicle network integration 5810 DoIP entity functional requirements 6411 Communication example message se
12、quence charts 64Bibliography .67BS ISO 13400-2:2012ISO 13400-2:2012(E)ForewordISO (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 technic
13、al 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 wi
14、th 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 Intern
15、ational 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 b
16、e 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 genera
17、l 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.3The following parts are under preparation: Part 4: Ethernet diagn
18、ostic connector Part 5: Conformance test specificationiv ISO 2012 All rights reservedBS ISO 13400-2:2012ISO 13400-2:2012(E)IntroductionVehicle diagnostic communication has been developed starting with the introduction of the first legislated emissions-related diagnostics and has evolved over the yea
19、rs, 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 vehicles electron
20、ic 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
21、 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 complexit
22、y 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
23、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 veh
24、icle 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, inclu
25、ding 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 map
26、ped on this model, the services specified by ISO 14229-1, ISO 14229-2 and ISO 14229-5 are divided intoa) unified diagnostic services (layer 7), specified in ISO 14229-1, ISO 14229-5, ISO 27145-3,b) presentation (layer 6):1) for enhanced diagnostics, specified by the vehicle manufacturer,2) for WWH-O
27、BD (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
28、 part of ISO 13400,e) network layer (layer 3) services, specified in this part of ISO 13400, andf) physical and data link services (layers 1 and 2), specified in ISO 13400-3,in accordance with Table 1. ISO 2012 All rights reserved vBS ISO 13400-2:2012ISO 13400-2:2012(E)Table 1 Enhanced and legislate
29、d WWH-OBD diagnostic specifications applicable to the OSI layersApplicability OSI 7 layersVehicle manufacturer enhanced diagnosticsWWH-OBD document referenceSeven layers according to ISO/IEC 7498-1 and ISO/IEC 10731Application (layer 7) ISO 14229-1/ISO 14229-5 ISO 14229-1/ISO 27145-3Presentation (la
30、yer 6)Vehicle manufacturer specificISO 27145-2, SAE J1930-DA, SAE J1939:2011, Appendix C (SPNs), SAE J1939-73:2010, Appendix A (FMIs), SAE J1979-DA, SAE J2012-DASession (layer 5) ISO 14229-2 ISO 14229-2Transport (layer 4)ISO 13400-2 ISO 13400-2Network (layer 3)Data link (layer 2)ISO 13400-3 ISO 1340
31、0-3Physical (layer 1)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
32、 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 reservedBS ISO 13400-2:2012INTERNATIONAL STANDARD ISO 13400-2:2012(E)Road vehicles Diagnostic communication over Internet Protocol (DoIP) Part 2
33、: Transport protocol and network layer services1 Scope1.1 This part of ISO 13400 specifies the requirements for diagnostic communication between external test equipment and vehicle electronic components using Internet Protocol (IP) as well as the transmission control protocol (TCP) and user datagram
34、 protocol (UDP). This includes the definition of vehicle gateway requirements (e.g. for integration into an existing computer network) and test equipment requirements (e.g. to detect and establish communication with a vehicle).1.2 This part of ISO 13400 specifies features that can be used to detect
35、a vehicle in a network and enable communication with the vehicle gateway as well as with its sub-components during the various vehicle states. These features are separated into two types: mandatory and optional.1.3 This part of ISO 13400 specifies the following mandatory features: vehicle network in
36、tegration (IP address assignment); vehicle announcement and vehicle discovery; vehicle basic status information retrieval (e.g. diagnostic power mode); connection establishment (e.g. concurrent communication attempts), connection maintenance and vehicle gateway control; data routing to and from the
37、vehicles sub-components; error handling (e.g. physical network disconnect).1.4 This part of ISO 13400 specifies the following optional features: DoIP entity status monitoring; DoIP entity firewall capabilities.2 Normative referencesThe following referenced documents are indispensable for the applica
38、tion of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.ISO 3779, Road vehicles Vehicle identification number (VIN) Content and structureISO 13400-1, Road vehicles Diagnostic
39、 communication over Internet Protocol (DoIP) Part 1: General information and use case definitionISO 13400-3, Road vehicles Diagnostic communication over Internet Protocol (DoIP) Part 3: Wired vehicle interface based on IEEE 802.3 ISO 2012 All rights reserved 1BS ISO 13400-2:2012ISO 13400-2:2012(E)IE
40、EE 802.3, IEEE Standard for Information Technology Telecommunications and information exchange between systems Local and metropolitan area networks Specific requirements Part 3: Carrier sense multiple access with collision detection (CSMA/CD) access method and physical layer specificationsIETF RFC 1
41、47, The Definition of a SocketIETF RFC 768, User Datagram ProtocolIETF RFC 791 (September 1981), Internet Protocol DARPA Internet Program Protocol Specification IETF RFC 792, Internet Control Message Protocol DARPA Internet Program Protocol SpecificationIETF RFC 793, Transmission Control Protocol DA
42、RPA Internet Program Protocol SpecificationIETF RFC 826, An Ethernet Address Resolution ProtocolIETF RFC 1122, Requirements for Internet Hosts Communication Layers IETF RFC 2131, Dynamic Host Configuration ProtocolIETF RFC 2132, DHCP Options and BOOTP Vendor ExtensionsIETF RFC 2460, Internet Protoco
43、l, Version 6 (IPv6) SpecificationIETF RFC 2375, IPv6 Multicast Address Assignments IETF RFC 3315, Dynamic Host Configuration Protocol for IPv6 (DHCPv6)IETF RFC 3484, Default Address Selection for Internet Protocol version 6 (IPv6)IETF RFC 3927, Dynamic Configuration of IPv4 Link-Local AddressesIETF
44、RFC 4291, IP Version 6 Addressing ArchitectureIETF RFC 4443, Internet Control Message Protocol (ICMP v6) for the Internet Protocol Version 6 (IPv6) SpecificationIETF RFC 4702, The Dynamic Host Configuration Protocol (DHCP) Client Fully Qualified Domain Name (FQDN) OptionIETF RFC 4861, Neighbor Disco
45、very for IP version 6 (IPv6)IETF RFC 4862, IPv6 Stateless Address Autoconfiguration3 Terms, definitions, symbols and abbreviated terms3.1 Terms and definitionsFor the purposes of this document, the terms and definitions given in ISO 13400-1 and the following apply.3.1.1diagnostic power modeabstract
46、vehicle internal power supply state which affects the diagnostic capabilities of all ECUs on the in-vehicle networks and which identifies the state of all ECUs of all gateway sub-networks that allow diagnostic communicationNOTE The intent is to provide information to the external test equipment abou
47、t whether diagnostics can be performed on the connected vehicle or whether the vehicle needs to be put into a different diagnostic power mode (i.e. technician interaction required). In this part of ISO 13400, the following states are relevant: Not Ready (not all ECUs accessible via DoIP can communic
48、ate), Ready (all ECUs accessible via DoIP can communicate) and Not Supported (the Diagnostic Information Power Mode Information Request message is not supported).2 ISO 2012 All rights reservedBS ISO 13400-2:2012ISO 13400-2:2012(E)3.1.2DoIP edge nodehost inside the vehicle, where an Ethernet activati
49、on line in accordance with ISO 13400-3 is terminated and where the link from the first node/host in the external network is terminatedNOTE Adapted from ISO 13400-3:2011, 3.1.2.3.1.3network nodecomponent which is connected to the IP-based network (e.g. Ethernet) and which communicates using Internet Protocol but does not implement the DoIP protocolNOTE 1 Ethernet is an example of an IP-based network.NOTE 2 Some network nodes might also be connected to a vehicle sub-network, but they are n
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1