CN115996196A - Vehicle-mounted time-sensitive network communication method based on SOME/IP protocol - Google Patents

Vehicle-mounted time-sensitive network communication method based on SOME/IP protocol Download PDF

Info

Publication number
CN115996196A
CN115996196A CN202211707112.1A CN202211707112A CN115996196A CN 115996196 A CN115996196 A CN 115996196A CN 202211707112 A CN202211707112 A CN 202211707112A CN 115996196 A CN115996196 A CN 115996196A
Authority
CN
China
Prior art keywords
network
message
service
protocol
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211707112.1A
Other languages
Chinese (zh)
Inventor
郝晶晶
韩光首
郑继翔
毛鸿霖
郑子健
郭梦雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CATARC Tianjin Automotive Engineering Research Institute Co Ltd
Original Assignee
CATARC Tianjin Automotive Engineering Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CATARC Tianjin Automotive Engineering Research Institute Co Ltd filed Critical CATARC Tianjin Automotive Engineering Research Institute Co Ltd
Priority to CN202211707112.1A priority Critical patent/CN115996196A/en
Publication of CN115996196A publication Critical patent/CN115996196A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a vehicle-mounted time-sensitive network communication method based on SOME/IP protocol, which comprises the following steps: starting a vehicle-mounted system and initializing a network; the SOME/IP module monitors and encapsulates the application message; the system internal communication message is directly sent to the target application through the SOME/IP module; the network communication message judges the SOME/IP message type, and when newly added service subscription or service subscription stops, the network management module updates the network configuration; the SOME/IP encapsulated network communication message is encapsulated based on a transmission layer protocol and a network layer protocol, the transmission priority is obtained, a VLAN label is created, and TSN protocol encapsulation is carried out; and the transmission port sends the message according to the priority channel according to the gPTP synchronous clock and the network configuration parameter. The invention has the beneficial effects that: the system can adapt to SOME/IP protocol and TSN protocol, realize service-based communication of different types of equipment and data in the vehicle-mounted network, control and manage the transmission process of the service data network, meet the requirements of different service data on network communication quality, and realize high-quality communication between applications.

Description

Vehicle-mounted time-sensitive network communication method based on SOME/IP protocol
Technical Field
The invention belongs to the technical field of vehicle-mounted communication, and particularly relates to a vehicle-mounted time-sensitive network communication method based on an SOME/IP protocol.
Background
Along with the development trend of electric, networking, intelligent and sharing of automobiles, the automobiles are increasingly focused on the personalized requirements of automobile services and users while realizing intelligent networking, automatic driving and data driving, and the improvement of the functional complexity of vehicle-mounted electronic devices and systems also brings great challenges to the electronic and electric architecture of the automobiles. In Service-oriented architecture (SOA), all functions are defined as independent services, and information interaction is achieved by invoking services between applications, so that upper applications focus on their specific purpose implementation without paying attention to the underlying hardware and network implementation. The SOA architecture is structured through the service platform, service communication is standardized, the problem that the upstream module and the downstream module are required to follow the change due to individual function change in the traditional architecture can be solved, and the system is easier to integrate and expand due to the characteristics of loose coupling, high cohesion and reusability.
Compared with other networks, automobile service-oriented communication is characterized. The vehicle-mounted system is very complex, the software system can be distributed in a central computing platform, a domain controller, different ECUs and different modules of the same ECU, and different software architectures and operating systems are used, so that data interaction between applications is very difficult. An IP-based extensible service-oriented middleware (SOME/IP) is an application layer protocol for service-oriented communication mainly aiming at an in-vehicle communication scene, and is designed by BMW in 2011 and incorporated into the AUTOSAR specification in 2014. SOME/IP can adapt to devices of different scales and various operating systems, and achieves interoperability of different devices and applications.
The data characteristics and communication quality requirements of different vehicle-mounted applications are different, for example, the real-time requirements of safety-related control data are high and packet loss is not allowed, and the delay requirements of an audio-visual entertainment system are lower and packet loss is allowed. To meet the communication requirements of different types of data in the in-vehicle network, the link layer may employ a time sensitive network (Time Sensitive Networking, TSN). TSNs are a family of protocols established by the 802.1 working group, including related protocols such as clock synchronization, traffic scheduling, bandwidth reservation, high reliability, etc. Particularly, a gating mechanism defined by IEEE802.1Qbv in TSN can be used for key control data transmission in a vehicle-mounted network, a credit-based shaping mechanism defined by IEEE802.1Qav can be used for audio and video data transmission, strict priority shaping is used for transmitting non-real-time data, and common network high-efficiency transmission of various types of traffic can be realized.
SOME/IP can realize data interaction of application programs through services, but communication based on SOME/IP in the prior art cannot meet different requirements of different services on network communication quality. While the TSN is in the underlying communication, the packets generated by the application need to adapt forwarding and scheduling policies and configure time-sensitive network parameters if transmitted through the TSN. It is necessary to study the service interworking of the multi-source heterogeneous application layer in the in-vehicle network and the adaptation technology with the underlying communication network.
Disclosure of Invention
In view of this, the present invention aims to propose a vehicle-mounted time-sensitive network communication method based on the SOME/IP protocol, so as to solve the problem that the communication based on the SOME/IP in the prior art cannot meet the different requirements of different services on network communication quality.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
a vehicle-mounted time sensitive network communication method based on SOME/IP protocol includes the following steps:
s1, starting a vehicle-mounted system and initializing a network;
s2, the SOME/IP module monitors information from the application program, encapsulates based on SOME/IP protocol, and selects system internal communication or network communication according to the communication target;
s3, the message of the system internal communication is directly sent to the target application through the SOME/IP module;
s4, the network communication message firstly judges the type of the SOME/IP message, and when newly added service subscription or service subscription stops, the SOME/IP module informs the network management module and updates the network configuration;
s5, the network communication message packaged by the SOME/IP module is subjected to protocol packaging based on a transmission layer and a network layer, then a transmission priority is obtained, a corresponding VLAN label is created, and packaging based on a TSN protocol is performed;
and S6, the transmission port sends the message according to the priority channel according to the gPTP synchronous clock and the network configuration parameter.
Further, the initializing the network in step S1 includes the steps of:
s11, performing topology discovery by a TSN centralized network controller, completing the importing of parameters of each network node, and configuring the network parameters in each TSN device as default values;
s12, the SOME/IP module enters a service discovery stage, wherein the service discovery stage comprises that each client transmits a message requesting available service, and each server transmits a message informing the provided service, and the clients and the servers are matched based on the service.
Further, the SOME/IP message types in step S4 include: SOME/IP messages and SOME/IP-SD messages.
The SOME/IP message types include: requests for expected responses, requests for unexpected responses, event notifications, response messages, error messages.
The SOME/IP-SD message types include: the service discovery stage includes the steps of requesting service and providing service message, stopping providing service message by the service end, subscribing service message by the client end, unsubscribing service message by the client end, and response message (ACK or NACK is accepted or not accepted) of the service end to the subscribed service.
Further, in step S4, the newly added service subscription is specifically a response of the SOME/IP module to the service end to the subscription service (ACK), and in step S4, the service subscription stop is specifically a response of the SOME/IP module to the client end to unsubscribe from the service message or the service end stops providing the service message.
Further, the network management module in step S4 performs configuration management again, including the following steps:
and S41, when the message type is the response of the service end to the Acceptance (ACK) of the subscription service, the network management module acquires the service release data information from the SOME/IP module and sends an increased flow notification (carrying the service release data information) to the centralized network controller.
And S42, when the message type is that the client side unsubscribes from the service message or the service side stops providing the service message, the network management module sends a cancel flow notification to the centralized network controller.
S43, after receiving the notification of the increase or cancel of the flow of each terminal node network management module, the centralized network controller adjusts the transmission requirement of the user, and re-calculates and distributes network resources to generate configuration parameters and send the configuration parameters to each network switching device and the network management module of the terminal node.
Further, the service distribution data information in step S41 includes: priority, whether periodic data, data size, period, maximum delay and jitter requirements, whether loss is allowed.
Further, the network resource calculation and allocation in step S43 includes reserved bandwidth allocation on each traffic transmission path and gating queue transmission time schedule calculation in each network node port.
Further, the interaction of the network management module with the centralized network controller in steps S41, S42, S43 communicates through UNI (User/network configuration information) interface.
Further, the transmission priority in step S5 is specifically: the priority range is 0-7, and the corresponding relation between the flow type and the priority can be defined in the whole vehicle-mounted system in advance according to the flow characteristics and the transmission requirements.
Priority and transport port queue selection is associated with forwarding policies including IEEE802.1qbv defined gating scheduling mechanism, IEEE802.1Qav defined credit-based shaping, and strict priority shaping.
Further, the gPTP synchronization clock in step S6 performs clock synchronization in the TSN network according to the IEEE802.1AS protocol.
Further, according to the vehicle-mounted time sensitive network communication method based on the SOME/IP protocol, after the network switching equipment receives the message, the network switching equipment forwards the message in real time according to the VLAN label information of the message according to the configuration parameters issued by the centralized network controller.
Further, according to the vehicle-mounted time-sensitive network communication method based on the SOME/IP protocol, after receiving the network communication message, the target terminal node sequentially analyzes the TSN protocol, the network layer and the transport layer protocol, and sends the message to the target application through the SOME/IP module.
Compared with the prior art, the vehicle-mounted time-sensitive network communication method based on the SOME/IP protocol has the following advantages:
the vehicle-mounted time-sensitive network communication method based on the SOME/IP protocol can adapt to the SOME/IP protocol and the TSN protocol, realize service-based communication of different types of equipment and data in a vehicle-mounted network, control and manage the transmission process of a service data network, meet the requirements of different service data on network communication quality, and realize high-quality communication among applications.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention. In the drawings:
fig. 1 is a schematic diagram of a relationship between modules in a terminal node according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an application communication flow of a terminal node according to an embodiment of the present invention.
Detailed Description
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", etc. may explicitly or implicitly include one or more such feature. In the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art in a specific case.
The invention will be described in detail below with reference to the drawings in connection with embodiments.
As shown in fig. 1 to 2, the vehicle-mounted time-sensitive network communication method based on the SOME/IP protocol, the vehicle-mounted network system at least comprises a switching device, a centralized network controller and a terminal node.
The switching equipment mainly forwards the TSN message in real time.
The centralized network controller is communicated with all the switching equipment and the terminal nodes, acquires network and user information, calculates and distributes network resources, generates configuration parameters and transmits the configuration parameters to the switching equipment and the terminal nodes.
As shown in fig. 1, the terminal node includes an application program, a SOME/IP module, a network management module, a transport layer and network layer protocol stack, a TSN protocol stack, a gPTP clock synchronization module, and a transport port.
The SOME/IP module monitors the information from the application program, encapsulates based on SOME/IP protocol, performs system internal communication or network communication according to the communication target, and notifies the network management module when newly adding service subscription or stopping service subscription in the network communication service
When the network management module receives a new service subscription or a service subscription stop notification, if the message type is an Acknowledgement (ACK) response of the service end to the subscription service, acquiring service release data information from the SOME/IP module, and sending an increased flow notification (carrying the service release data information) to the centralized network controller; if the message type is the client side unsubscribe service message or the service side stops providing the service message, sending a cancel flow notification to the centralized network controller. And updating the network configuration after receiving the configuration parameters issued by the centralized network controller.
And the transport layer and network layer protocol stack performs transport layer and network layer protocol encapsulation and analysis.
The TSN protocol stack performs TSN protocol encapsulation and parsing.
The gPTP clock synchronization module performs clock synchronization in the TSN network according to the IEEE802.1AS protocol.
And the transmission port sends and receives the message according to the priority channel.
As shown in fig. 2, the vehicle-mounted system is started, the TSN centralized network controller performs topology discovery, and finishes the importing of parameters of each network node, and the network parameters in each TSN device are configured as default values. The SOME/IP module enters a service discovery phase, which includes each client sending a message requesting for an available service, each server sending a message informing of the service provided, and matching the client with the server based on the service.
When the application program subscribes to the service according to the requirement, the client sends a subscription request, the server responds to ACK or NACK, and after the subscription succeeds, the server sends service data to the client according to a service publishing mode. The service release mode includes three modes of cyclic transmission, updated transmission and transmission with a value larger than a specific value. And when the client side no longer needs a certain subscription service, sending a message for unsubscribing the subscription service to the service side. And when the service provided by the service end is closed accidentally, sending a service stopping message to the client.
And a SOME/IP module in the terminal node monitors the message from the application program, encapsulates the message based on the SOME/IP protocol, and selects system internal communication or network communication according to the communication target. And the message of the system internal communication is directly sent to the target application through the SOME/IP module. The message of network communication firstly judges the SOME/IP message type, when the newly added service subscription or the service subscription stops, the SOME/IP module informs the network management module and updates the network configuration. And carrying out protocol encapsulation based on a transmission layer and a network layer on the network communication message encapsulated by the SOME/IP module, then acquiring transmission priority, creating a corresponding VLAN label, and carrying out encapsulation based on a TSN protocol. And the transmission port sends the message according to the priority channel according to the gPTP synchronous clock and the network configuration parameter.
And after the network switching equipment receives the message, forwarding in real time according to VLAN label information of the message according to configuration parameters issued by the centralized network controller.
After receiving the network communication message, the target terminal node sequentially analyzes the TSN protocol, the network layer and the transport layer protocol and sends the message to the target application through the SOME/IP module.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.

Claims (10)

1. A vehicle-mounted time sensitive network communication method based on SOME/IP protocol is characterized in that: the method comprises the following steps:
s1, starting a vehicle-mounted system and initializing a network;
s2, the SOME/IP module monitors information from the application program, encapsulates based on SOME/IP protocol, and selects system internal communication or network communication according to the communication target;
s3, the message of the system internal communication is directly sent to the target application through the SOME/IP module;
s4, the network communication message firstly judges the type of the SOME/IP message, and when newly added service subscription or service subscription stops, the SOME/IP module informs the network management module and updates the network configuration;
s5, the network communication message packaged by the SOME/IP module is subjected to protocol packaging based on a transmission layer and a network layer, then a transmission priority is obtained, a corresponding VLAN label is created, and packaging based on a TSN protocol is performed;
and S6, the transmission port sends the message according to the priority channel according to the gPTP synchronous clock and the network configuration parameter.
2. The method for vehicle-mounted time-sensitive network communication based on the SOME/IP protocol according to claim 1, wherein: the initializing network in step S1 comprises the steps of:
s11, performing topology discovery by a TSN centralized network controller, completing the importing of parameters of each network node, and configuring the network parameters in each TSN device as default values;
s12, the SOME/IP module enters a service discovery stage, wherein the service discovery stage comprises that each client transmits a message requesting available service, and each server transmits a message informing the provided service, and the clients and the servers are matched based on the service.
3. The method for vehicle-mounted time-sensitive network communication based on the SOME/IP protocol according to claim 1, wherein: the SOME/IP message type in the step S4 comprises a SOME/IP message and a SOME/IP-SD message;
the SOME/IP message includes: requests for expected responses, requests for unexpected responses, event notifications, response messages, error messages;
the SOME/IP-SD message comprises: the service discovery stage comprises a service request and service providing message, a service end stopping providing service message, a client subscribing service message, a client unsubscribing service message and a response message of the service end to the subscribing service;
the newly added service subscription in step S4 is specifically that the SOME/IP module sends a message as an answer to the subscription service from the server, and the service subscription in step S4 stops specifically that the SOME/IP module sends a message as a service cancellation message from the client or that the server stops providing the service message.
4. The method for vehicle-mounted time-sensitive network communication based on the SOME/IP protocol according to claim 1, wherein: the network management module in step S4 performs configuration management again, including the steps of:
s41, when the message type is the receiving response of the service end to the subscription service, the network management module acquires the service release data information from the SOME/IP module and sends an increased flow notification to the centralized network controller;
s42, when the message type is that the client side unsubscribes from the service message or the service side stops providing the service message, the network management module sends a cancel flow notification to the centralized network controller;
s43, after receiving the notification of the increase or cancel of the flow of each terminal node network management module, the centralized network controller adjusts the transmission requirement of the user, and re-calculates and distributes network resources to generate configuration parameters and send the configuration parameters to each network switching device and the network management module of the terminal node.
5. The network management module of claim 4, wherein the network management module is configured to perform configuration management: the service distribution data information in step S41 includes: priority, whether periodic data, data size, period, maximum delay and jitter requirements, whether loss is allowed;
the network resource calculation and allocation in step S43 includes reserved bandwidth allocation on each traffic transmission path and gating queue transmission time schedule calculation within each network node port.
6. The network management module of claim 4, wherein the network management module is configured to perform configuration management: the interaction of the network management module with the centralized network controller in steps S41, S42, S43 communicates through the UNI interface.
7. The method for vehicle-mounted time-sensitive network communication based on the SOME/IP protocol according to claim 1, wherein: the transmission priority in step S5 is specifically: the priority range is 0-7, and the corresponding relation between the flow type and the priority can be defined in the whole vehicle-mounted system in advance according to the flow characteristics and the transmission requirements;
priority and transport port queue selection is associated with forwarding policies including ieee802.1qbv defined gating scheduling mechanism, ieee802.1qav defined credit-based shaping, and strict priority shaping.
8. The method for vehicle-mounted time-sensitive network communication based on the SOME/IP protocol according to claim 1, wherein: the gpp synchronization clock in step S6 performs clock synchronization within the TSN network according to the ieee802.1as protocol.
9. The method for vehicle-mounted time-sensitive network communication based on the SOME/IP protocol according to claim 1, wherein: and after the network switching equipment receives the message, forwarding in real time according to VLAN label information of the message according to configuration parameters issued by the centralized network controller.
10. The method for vehicle-mounted time-sensitive network communication based on the SOME/IP protocol according to claim 1, wherein: after receiving the network communication message, the target terminal node sequentially analyzes the TSN protocol, the network layer and the transport layer protocol and sends the message to the target application through the SOME/IP module.
CN202211707112.1A 2022-12-27 2022-12-27 Vehicle-mounted time-sensitive network communication method based on SOME/IP protocol Pending CN115996196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211707112.1A CN115996196A (en) 2022-12-27 2022-12-27 Vehicle-mounted time-sensitive network communication method based on SOME/IP protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211707112.1A CN115996196A (en) 2022-12-27 2022-12-27 Vehicle-mounted time-sensitive network communication method based on SOME/IP protocol

Publications (1)

Publication Number Publication Date
CN115996196A true CN115996196A (en) 2023-04-21

Family

ID=85993324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211707112.1A Pending CN115996196A (en) 2022-12-27 2022-12-27 Vehicle-mounted time-sensitive network communication method based on SOME/IP protocol

Country Status (1)

Country Link
CN (1) CN115996196A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117459190A (en) * 2023-12-20 2024-01-26 中汽研(天津)汽车工程研究院有限公司 OTA communication method of heterogeneous central computing architecture

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117459190A (en) * 2023-12-20 2024-01-26 中汽研(天津)汽车工程研究院有限公司 OTA communication method of heterogeneous central computing architecture
CN117459190B (en) * 2023-12-20 2024-04-02 中汽研(天津)汽车工程研究院有限公司 OTA communication method of heterogeneous central computing architecture

Similar Documents

Publication Publication Date Title
US20220247693A1 (en) Parameterized quality of service in a network
US10432422B2 (en) Parameterized quality of service architecture in a network
US7602723B2 (en) Model for enforcing different phases of the end-to-end negotiation protocol (E2ENP) aiming QoS support for multi-stream and multimedia applications
CN101861729B (en) Method and apparatus for discovering internet protocol television service (IPTV) provider and IPTV service by using session initiation protocol
KR101612819B1 (en) Method and apparatus for processing SOME/IP stream interworking AVB technology
US20060149845A1 (en) Managed quality of service for users and applications over shared networks
CN112702282B (en) Flexible configuration method and system of time sensitive network
WO2005027412A1 (en) Method for setting media streaming parameter of upnp-based network
CN111491330B (en) Fusion networking method of SDN (software defined network) and wireless network
CN115996196A (en) Vehicle-mounted time-sensitive network communication method based on SOME/IP protocol
WO2014114188A1 (en) Hierarchical service quality scheduling method and apparatus
CN102244604B (en) A kind of method for controlling quality of service of home gateway and home gateway and system
US7823178B2 (en) Method for controlling a network station in a network of a first type from a network station in a network of a second type, and connection unit for the connection of the networks of the first and second types
CN113438218A (en) Communication method and device based on SOME/IP protocol, storage medium and terminal
Osswald et al. Rap extensions for the hybrid configuration model
US20060198316A1 (en) System for remote configuration of QoS parameters
WO2012110527A1 (en) Distributed middleware for mobile devices
CN102497303B (en) IGRS (Intelligent Group and Resource Sharing) equipment interconnection system and method
EP1427142A1 (en) Home network gateway device
CN115189983B (en) TSN device for accessing AUTBUS network
US20240048616A1 (en) Apparatus and method for supporting deterministic networking in wireless communication system
Mutlu et al. QoS aware CORBA middleware for Bluetooth
Tan et al. SRv6-based Differentiated Service Framework for IP Networks
JP2010252110A (en) Network connecting apparatus, and control method thereof
KR101734557B1 (en) Method and apparatus for providing external network service to home network devive

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination