logo资料库

AUTOSAR_PRS_SOMEIPServiceDiscoveryProtocol.pdf

第1页 / 共74页
第2页 / 共74页
第3页 / 共74页
第4页 / 共74页
第5页 / 共74页
第6页 / 共74页
第7页 / 共74页
第8页 / 共74页
资料共74页,剩余部分请下载后查看
1 Introduction and overview
1.1 Protocol purpose and objectives
1.2 Applicability of the protocol
1.2.1 Constraints and assumptions
1.3 Dependencies
1.3.1 Dependencies to other protocol layers
2 Protocol Requirements
2.1 Requirements Traceability
3 Acronyms and Abbreviations
4 Protocol specification
4.1 SOME/IP Service Discovery (SOME/IP-SD)
4.1.1 General
4.1.1.1 Terms and Definitions
4.1.2 SOME/IP-SD Message Format
4.1.2.1 General Requirements
4.1.2.2 SOME/IP-SD Header
4.1.2.3 Entry Format
4.1.2.4 Options Format
4.1.3 Service Discovery Messages
4.1.3.1 Service Entries
4.1.3.2 Eventgroup Entry
4.1.4 Service Discovery Communication Behavior
4.1.4.1 Startup Behavior
4.1.4.2 Server Answer Behavior
4.1.4.3 Shutdown Behavior
4.1.4.4 State Machines
4.1.4.5 SOME/IP-SD Mechanisms and Errors
4.1.4.6 Error Handling
4.1.5 Announcing non-SOME/IP protocols with SOME/IP-SD
4.1.6 Publish/Subscribe with SOME/IP and SOME/IP-SD
4.1.7 Endpoint Handling for Services and Events
4.1.7.1 Service Endpoints
4.1.7.2 Eventgroup Endpoints
4.1.8 Reserved and special identifiers for SOME/IP and SOME/IP-SD.
5 Configuration Parameters
6 Protocol usage and guidelines
6.1 Security Considerations for SOME/IP-SD Options
6.2 Referencing Options from Entries
6.3 Mandatory Feature Set and Basic Behavior
6.4 Migration and Compatibility
6.4.1 Supporting multiple versions of the same service.
7 References
SOME/IP Service Discovery Protocol Specification AUTOSAR FO Release 1.0.0 Document Title Document Owner SOME/IP Service Discovery Protocol Specification AUTOSAR Document Responsibility AUTOSAR Document Identification No 802 Document Classification Standard Document Status Final Part of AUTOSAR Standard Foundation Part of Standard Release 1.0.0 Date Release Changed by Description Document Change History 2016-11-30 1.0.0 AUTOSAR Release Management Initial Release 1 of 74 Document ID 802: AUTOSAR_PRS_SOMEIPServiceDiscoveryProtocol — AUTOSAR CONFIDENTIAL —
SOME/IP Service Discovery Protocol Specification AUTOSAR FO Release 1.0.0 Disclaimer This specification and the material contained in it, as released by AUTOSAR, is for the purpose of information only. AUTOSAR and the companies that have contributed to it shall not be liable for any use of the specification. The material contained in this specification is protected by copyright and other types of Intellectual Property Rights. The commercial exploitation of the material contained in this specification requires a license to such Intellectual Property Rights. This specification may be utilized or reproduced without any modification, in any form or by any means, for informational purposes only. For any other purpose, no part of the specification may be utilized or reproduced, in any form or by any means, without permission in writing from the publisher. The AUTOSAR specifications have been developed for automotive applications only. They have neither been developed, nor tested for non-automotive applications. The word AUTOSAR and the AUTOSAR logo are registered trademarks. Advice for users AUTOSAR specifications may contain exemplary items (exemplary reference models, "use cases", and/or references to exemplary technical solutions, devices, processes or software). Any such exemplary items are contained in the specifications for illustration purposes only, and they themselves are not part of the AUTOSAR Standard. Neither their pres- ence in such specifications, nor any later documentation of AUTOSAR conformance of products actually implementing such exemplary items, imply that intellectual property rights covering such exemplary items are licensed under the same rules as applicable to the AUTOSAR Standard. 2 of 74 Document ID 802: AUTOSAR_PRS_SOMEIPServiceDiscoveryProtocol — AUTOSAR CONFIDENTIAL —
SOME/IP Service Discovery Protocol Specification AUTOSAR FO Release 1.0.0 5 5 5 5 5 5 7 7 15 17 17 17 17 17 17 20 23 25 36 36 39 41 42 44 45 46 48 50 52 54 63 63 64 65 68 69 69 69 Table of Contents 1 Introduction and overview 1.1 1.2 1.3 Protocol purpose and objectives . . . . . . . . . . . . . . . . . . . . . . Applicability of the protocol . . . . . . . . . . . . . . . . . . . . . . . . . 1.2.1 Constraints and assumptions . . . . . . . . . . . . . . . . . . Dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.3.1 Dependencies to other protocol layers . . . . . . . . . . . . . 2 Protocol Requirements 2.1 Requirements Traceability . . . . . . . . . . . . . . . . . . . . . . . . . 3 Acronyms and Abbreviations 4 Protocol specification 4.1 SOME/IP Service Discovery (SOME/IP-SD) 4.1.1 Service Discovery Communication Behavior . . . . . . . . . . . . . . . General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Terms and Definitions . . . . . . . . . . . . . . . . . SOME/IP-SD Message Format . . . . . . . . . . . . . . . . . General Requirements . . . . . . . . . . . . . . . . . SOME/IP-SD Header . . . . . . . . . . . . . . . . . . Entry Format . . . . . . . . . . . . . . . . . . . . . . Options Format . . . . . . . . . . . . . . . . . . . . . Service Discovery Messages . . . . . . . . . . . . . . . . . . Service Entries . . . . . . . . . . . . . . . . . . . . . Eventgroup Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Startup Behavior . . . . . . . . . . . . . . . . . . . . Server Answer Behavior . . . . . . . . . . . . . . . . Shutdown Behavior . . . . . . . . . . . . . . . . . . . State Machines . . . . . . . . . . . . . . . . . . . . . SOME/IP-SD Mechanisms and Errors . . . . . . . . Error Handling . . . . . . . . . . . . . . . . . . . . . Announcing non-SOME/IP protocols with SOME/IP-SD . . . Publish/Subscribe with SOME/IP and SOME/IP-SD . . . . . Endpoint Handling for Services and Events . . . . . . . . . . Service Endpoints . . . . . . . . . . . . . . . . . . . Eventgroup Endpoints . . . . . . . . . . . . . . . . . Reserved and special identifiers for SOME/IP and SOME/IP- SD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.1.1 4.1.2.1 4.1.2.2 4.1.2.3 4.1.2.4 4.1.3.1 4.1.3.2 4.1.4.1 4.1.4.2 4.1.4.3 4.1.4.4 4.1.4.5 4.1.4.6 4.1.7.1 4.1.7.2 5 Configuration Parameters 6 Protocol usage and guidelines 6.1 6.2 Security Considerations for SOME/IP-SD Options . . . . . . . . . . . . Referencing Options from Entries . . . . . . . . . . . . . . . . . . . . . 3 of 74 Document ID 802: AUTOSAR_PRS_SOMEIPServiceDiscoveryProtocol — AUTOSAR CONFIDENTIAL —
SOME/IP Service Discovery Protocol Specification AUTOSAR FO Release 1.0.0 6.3 Mandatory Feature Set and Basic Behavior . . . . . . . . . . . . . . . 6.4 Migration and Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Supporting multiple versions of the same service. 6.4.1 7 References 70 73 73 74 4 of 74 Document ID 802: AUTOSAR_PRS_SOMEIPServiceDiscoveryProtocol — AUTOSAR CONFIDENTIAL —
SOME/IP Service Discovery Protocol Specification AUTOSAR FO Release 1.0.0 1 Introduction and overview This protocol specification specifies the format, message sequences and semantics of the Protocol SOME/IP Service Discovery (SOME/IP-SD). The main tasks of the Service Discovery Protocol are communicating the availability functional entities called services in the in-vehicle communication as well as controlling the send behavior of event messages. This allows sending only event messages to re- ceivers requiring them (Publish/Subscribe). The solution described here is also known as SOME/IP-SD (Scalable service-Oriented MiddlewarE over IP - Service Discovery). 1.1 Protocol purpose and objectives SOME/IP-SD is used to • Locate service instances. • Detect if service instances are running. • Implement the Publish/Subscribe handling. 1.2 Applicability of the protocol SOME/IP SD can be used for service discovery in automotive vehicle networks. 1.2.1 Constraints and assumptions Currently SOME/IP-SD supports only IP based communication. 1.3 Dependencies 1.3.1 Dependencies to other protocol layers SOME/IP-SD depends on SOME/IP. SOME/IP itself supports both TCP and UDP communications but SOME/IP SD is constraint to use SOME/IP only over UDP (See [PRS_SOMEIPSD_00220]). 5 of 74 Document ID 802: AUTOSAR_PRS_SOMEIPServiceDiscoveryProtocol — AUTOSAR CONFIDENTIAL —
SOME/IP Service Discovery Protocol Specification AUTOSAR FO Release 1.0.0 Figure 1.1: SOME/IP-SD Dependencies to other protocol layers 6 of 74 Document ID 802: AUTOSAR_PRS_SOMEIPServiceDiscoveryProtocol — AUTOSAR CONFIDENTIAL —
SOME/IP Service Discovery Protocol Specification AUTOSAR FO Release 1.0.0 2 Protocol Requirements 2.1 Requirements Traceability Feature [RS_SOMEIPSD_00001] Description SOME/IP Service Discovery Protocol shall be used on top of SOME/IP Protocol [RS_SOMEIPSD_00002] SOME/IP Service Discovery Protocol shall support unicast messages [RS_SOMEIPSD_00003] SOME/IP Service Discovery Protocol shall support multicast messages [RS_SOMEIPSD_00004] SOME/IP Service Discovery Protocol shall support SOME/IP and non-SOME/IP services Satisfied by [PRS_SOMEIPSD_00151] [PRS_SOMEIPSD_00152] [PRS_SOMEIPSD_00153] [PRS_SOMEIPSD_00154] [PRS_SOMEIPSD_00155] [PRS_SOMEIPSD_00156] [PRS_SOMEIPSD_00157] [PRS_SOMEIPSD_00158] [PRS_SOMEIPSD_00159] [PRS_SOMEIPSD_00160] [PRS_SOMEIPSD_00161] [PRS_SOMEIPSD_00162] [PRS_SOMEIPSD_00163] [PRS_SOMEIPSD_00164] [PRS_SOMEIPSD_00250] [PRS_SOMEIPSD_00251] [PRS_SOMEIPSD_00252] [PRS_SOMEIPSD_00256] [PRS_SOMEIPSD_00259] [PRS_SOMEIPSD_00540] [PRS_SOMEIPSD_00631] [PRS_SOMEIPSD_00700] [PRS_SOMEIPSD_00701] [PRS_SOMEIPSD_00702] [PRS_SOMEIPSD_00238] [PRS_SOMEIPSD_00239] [PRS_SOMEIPSD_00256] [PRS_SOMEIPSD_00322] [PRS_SOMEIPSD_00323] [PRS_SOMEIPSD_00324] [PRS_SOMEIPSD_00325] [PRS_SOMEIPSD_00326] [PRS_SOMEIPSD_00327] [PRS_SOMEIPSD_00329] [PRS_SOMEIPSD_00330] [PRS_SOMEIPSD_00331] [PRS_SOMEIPSD_00332] [PRS_SOMEIPSD_00333] [PRS_SOMEIPSD_00334] [PRS_SOMEIPSD_00336] [PRS_SOMEIPSD_00545] [PRS_SOMEIPSD_00631] [PRS_SOMEIPSD_00437] [PRS_SOMEIPSD_00438] [PRS_SOMEIPSD_00439] [PRS_SOMEIPSD_00440] 7 of 74 Document ID 802: AUTOSAR_PRS_SOMEIPServiceDiscoveryProtocol — AUTOSAR CONFIDENTIAL —
SOME/IP Service Discovery Protocol Specification AUTOSAR FO Release 1.0.0 [RS_SOMEIPSD_00006] SOME/IP Service Discovery Protocol shall define the format of the Service Discovery message [PRS_SOMEIPSD_00253] [PRS_SOMEIPSD_00254] [PRS_SOMEIPSD_00255] [PRS_SOMEIPSD_00258] [PRS_SOMEIPSD_00261] [PRS_SOMEIPSD_00262] [PRS_SOMEIPSD_00263] [PRS_SOMEIPSD_00264] [PRS_SOMEIPSD_00265] [PRS_SOMEIPSD_00266] [PRS_SOMEIPSD_00267] [PRS_SOMEIPSD_00268] [PRS_SOMEIPSD_00269] [PRS_SOMEIPSD_00270] [PRS_SOMEIPSD_00271] [PRS_SOMEIPSD_00273] [PRS_SOMEIPSD_00274] [PRS_SOMEIPSD_00275] [PRS_SOMEIPSD_00276] [PRS_SOMEIPSD_00277] [PRS_SOMEIPSD_00278] [PRS_SOMEIPSD_00279] [PRS_SOMEIPSD_00280] [PRS_SOMEIPSD_00281] [PRS_SOMEIPSD_00282] [PRS_SOMEIPSD_00283] [PRS_SOMEIPSD_00284] [PRS_SOMEIPSD_00285] [PRS_SOMEIPSD_00286] [PRS_SOMEIPSD_00287] [PRS_SOMEIPSD_00289] [PRS_SOMEIPSD_00304] [PRS_SOMEIPSD_00305] [PRS_SOMEIPSD_00306] [PRS_SOMEIPSD_00307] [PRS_SOMEIPSD_00308] [PRS_SOMEIPSD_00310] [PRS_SOMEIPSD_00313] [PRS_SOMEIPSD_00314] [PRS_SOMEIPSD_00315] [PRS_SOMEIPSD_00317] [PRS_SOMEIPSD_00319] [PRS_SOMEIPSD_00320] [PRS_SOMEIPSD_00321] [PRS_SOMEIPSD_00380] [PRS_SOMEIPSD_00547] [PRS_SOMEIPSD_00548] [PRS_SOMEIPSD_00549] 8 of 74 Document ID 802: AUTOSAR_PRS_SOMEIPServiceDiscoveryProtocol — AUTOSAR CONFIDENTIAL —
分享到:
收藏