SOME/IP的傳輸層協(xié)議
SOME/IP shall be transported using UDP and TCP based on the con?guration. When used in a vehicle the ports used shall be speci?ed in the Interface Speci?cation.
根據(jù)配置使用UDP和TCP傳輸SOME/IP。 在車輛中使用時(shí),所使用的端口應(yīng)在Interface Speci?cation中指定。
If an ECU needs to dynamically use a port number, it shall follow the rules of IETF and IANA for that:如果ECU需要?jiǎng)討B(tài)使用端口號,則它應(yīng)遵循IETF和IANA的規(guī)則:
Ephemeral ports from range 49152-65535 ?范圍為49152-65535 端口
If not speci?ed otherwise by the Interface Speci?cation (i.e. FIBEX or ARXML), the SOME/IP implementation may use port 30491 as SOME/IP dynamic client port and the port 30501 as ?rst SOME/IP server port. For further server instances the ports 30502, 30503, and so on may be used.
如果沒有通過Interface Speci?cation (即FIBEX或ARXML)進(jìn)行規(guī)定,則SOME / IP實(shí)現(xiàn)可以使用端口30491作為SOME / IP動(dòng)態(tài)客戶端端口,并將端口30501作為第一個(gè)SOME / IP服務(wù)器端口。 對于更多的服務(wù)器實(shí)例,可以使用端口30502,30503等。
The IP addresses and port numbers an ECU shall use, shall be taken from the Interface Speci?cation.
ECU應(yīng)使用的IP地址和端口號應(yīng)取自Interface Speci?cation 。
The client shall take the IP address and port number the server announces using SOME/IP-SD 客戶端需要使用服務(wù)端通過SOME / IP-SD發(fā)布的IP地址和端口號。
SOME/IP-SD currently uses port 304901 but this shall be over written if another port number is speci?ed in the Interface Speci?cation. 如果在Interface Speci?cation中指定了另一個(gè)端口號,那么SOME / IP-SD當(dāng)前使用端口號304901將被改寫。
The port 304902 (UDP and TCP as well) shall be only used for SOME/IP-SD and not used for applications communicating over SOME/IP.端口304902(UDP和TCP)只能用于SOME / IP-SD,不能用于通過SOME / IP進(jìn)行通信的應(yīng)用程序
It is recommended to use UDP for as many messages as possible and see TCP as fall-back for message requiring larger size. UDP allows the application to better control of timings and behavior when errors occur. 建議為盡可能多的消息使用UDP,并將TCP看作需要更大消息的低效方式。 UDP允許應(yīng)用程序在錯(cuò)誤發(fā)生時(shí)更好地控制時(shí)序和行為。
