SOME/IP的傳輸層協議

SOME/IP的傳輸層協議

  • SOME/IP shall be transported using UDP and TCP based on the configuration. When used in a vehicle the ports used shall be specified in the Interface Specification.
    根據配置使用UDP和TCP傳輸SOME/IP。 在車輛中使用時,所使用的端口應在Interface Specification中指定。

  • If an ECU needs to dynamically use a port number, it shall follow the rules of IETF and IANA for that:如果ECU需要動態使用端口號,則它應遵循IETF和IANA的規則:

    • Ephemeral ports from range 49152-65535 •範圍爲49152-65535 端口
  • If not specified otherwise by the Interface Specification (i.e. FIBEX or ARXML), the SOME/IP implementation may use port 30491 as SOME/IP dynamic client port and the port 30501 as first SOME/IP server port. For further server instances the ports 30502, 30503, and so on may be used.
    如果沒有通過Interface Specification (即FIBEX或ARXML)進行規定,則SOME / IP實現可以使用端口30491作爲SOME / IP動態客戶端端口,並將端口30501作爲第一個SOME / IP服務器端口。 對於更多的服務器實例,可以使用端口30502,30503等。

  • The IP addresses and port numbers an ECU shall use, shall be taken from the Interface Specification.
    ECU應使用的IP地址和端口號應取自Interface Specification 。

  • The client shall take the IP address and port number the server announces using SOME/IP-SD 客戶端需要使用服務端通過SOME / IP-SD發佈的IP地址和端口號。

  • SOME/IP-SD currently uses port 304901 but this shall be over written if another port number is specified in the Interface Specification. 如果在Interface Specification中指定了另一個端口號,那麼SOME / IP-SD當前使用端口號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進行通信的應用程序

  • 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允許應用程序在錯誤發生時更好地控制時序和行爲。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章