Congestion and flow control method based on vehicle-mounted Ethernet, vehicle, storage medium and program product

By establishing point-to-point links at the communication endpoints of the SOME/IP protocol stack and performing traffic statistics, and adjusting service message strategies, the congestion problem of traditional in-vehicle networks during short-term traffic surges is resolved, ensuring real-time response for critical services and traffic control for non-critical services, thereby improving the network service quality of in-vehicle Ethernet.

CN120639709APending Publication Date: 2025-09-12CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510825295.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

When implementing high-level autonomous driving/assisted driving functions, traditional CAN bus, Flexray bus, and MOST bus cannot effectively cope with network congestion caused by short-term traffic surges, affecting the service quality of key services.

Method used

A point-to-point communication link is established at each communication endpoint of the SOME/IP protocol stack. The congestion and flow control levels are determined through periodic traffic statistics. The message sending strategy of the service is adjusted according to preset rules to distinguish between critical and non-critical services, giving priority to ensuring real-time response of critical services.

Benefits of technology

During short-term traffic surges, it ensures timely response and processing of critical services, reduces traffic of non-critical services, achieves effective congestion and flow control of the in-vehicle Ethernet system, and improves network service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120639709A_ABST
    Figure CN120639709A_ABST
Patent Text Reader

Abstract

The invention discloses a congestion and flow control method based on a vehicle-mounted Ethernet, a vehicle, a storage medium and a program product. The method comprises the following steps: establishing a point-to-point communication link at each communication endpoint of an SOME / IP protocol stack; wherein a plurality of services are stored in the communication link, and the types of the services comprise key services and non-key services; based on the buffer area of the communication link, performing periodic flow statistics on the communication link; and determining congestion and flow control levels of the communication link according to a flow statistics result, and when the congestion and flow control levels change, adjusting a message sending strategy of the service based on a preset rule. According to the invention, for the communication link constructed by the SOME / IP protocol stack, the congestion and flow conditions of the communication link can be determined in real time through periodic flow statistics, and then the corresponding message sending strategy is adapted according to the change monitoring result of the flow statistics, so that the method can adapt to various congestion application scenarios and effectively realize flow control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of flow control, and in particular to a congestion and flow control method based on vehicle-mounted Ethernet, a vehicle, a storage medium, and a program product. Background Art

[0002] With the trend of intelligent, networked and shared vehicles, especially when vehicles are realizing high-level autonomous driving / assisted driving functions, the communication bandwidth, latency and reliability of traditional CAN bus, Flexray bus and MOST bus are increasingly unable to meet the requirements of in-vehicle network communication.

[0003] Traditional mechanisms for providing controllable quality of service (QoS) for critical services typically involve calculating and pre-reserving the required resources and processing power, particularly by increasing link bandwidth and providing buffering for server-side receivers to ensure the network can meet the QoS requirements for specific services. However, this mechanism works well in scenarios where network traffic latency and throughput are stable, but it often fails to meet the requirements for short-term traffic surges, where the network system experiences congestion for a period of time. Summary of the Invention

[0004] The main purpose of the embodiments of the present invention is to provide a congestion and flow control method based on in-vehicle Ethernet, a vehicle, a storage medium and a program product, in order to solve at least one problem of the prior art.

[0005] To achieve the above objectives, one aspect of an embodiment of the present invention provides a congestion and flow control method based on in-vehicle Ethernet. The control method includes: A point-to-point communication link is established at each communication endpoint of the SOME / IP protocol stack; wherein the communication link stores multiple services, and the service categories include critical services and non-critical services; Based on the buffer of the communication link, periodic traffic statistics are collected on the communication link; The congestion and flow control levels of the communication link are determined based on the results of traffic statistics. When the congestion and flow control levels change, the message sending strategy of the service is adjusted based on preset rules.

[0006] In some embodiments, when the congestion and flow control level of the previous cycle is level 0, the congestion and flow control level of the communication link is determined based on the results of traffic statistics. When the congestion and flow control level changes, the message sending policy of the service is adjusted based on preset rules, including: If the result of the traffic statistics of the current period is greater than the first threshold and less than the second threshold, a level 1 congestion and flow control message is sent to the server through the client of the built-in service of the electronic control unit; The level 1 congestion and flow control message carries the level 1 congestion and flow control policy; According to the level 1 congestion and flow control strategy, the server increases the periodicity of messages sent by non-critical services in the communication link.

[0007] In some embodiments, when the congestion and flow control level of the previous cycle is level 0, the congestion and flow control level of the communication link is determined based on the results of traffic statistics. When the congestion and flow control level changes, the message sending policy of the service is adjusted based on preset rules, including: If the result of the traffic statistics of the current period is greater than the second threshold, sending a level 2 congestion and flow control message to the server through the client of the built-in service of the electronic control unit; The Level 2 congestion and flow control message carries the Level 2 congestion and flow control policy. According to the Level 2 congestion and flow control strategy, the server adjusts the periodic message sending mode of non-critical services and non-critical information of critical services in the communication link from periodic sending to value change triggering and value greater than threshold triggering, and increases the trigger threshold corresponding to the value greater than threshold triggering.

[0008] In some embodiments, when the congestion and flow control level of the previous cycle is level 1, the congestion and flow control level of the communication link is determined based on the results of traffic statistics. When the congestion and flow control level changes, the message sending policy of the service is adjusted based on preset rules, including: If the result of the traffic statistics of the current period is greater than the second threshold, sending a level 2 congestion and flow control message to the server through the client of the built-in service of the electronic control unit; The Level 2 congestion and flow control message carries the Level 2 congestion and flow control policy. According to the Level 2 congestion and flow control strategy, the server adjusts the periodic message sending mode of non-critical services and non-critical information of critical services in the communication link from periodic sending to value change triggering and value greater than threshold triggering, and increases the trigger threshold corresponding to the value greater than threshold triggering.

[0009] In some embodiments, when the congestion and flow control level in the previous cycle is level 2, the congestion and flow control level of the communication link is determined based on the results of traffic statistics. When the congestion and flow control level changes, the message sending policy of the service is adjusted based on preset rules, including: If the traffic statistics results for a preset number of consecutive periods are all less than the first threshold, sending a level 0 congestion and flow control message to the server through the client of the built-in service of the electronic control unit; The level 0 congestion and flow control message carries the level 0 congestion and flow control policy; According to the level 0 congestion and flow control policy, the message sending mode of non-critical services and critical services in the communication link is set to the default policy through the server; the default policy includes periodic sending.

[0010] In some embodiments, when the congestion and flow control level of the previous cycle is level 1, the congestion and flow control level of the communication link is determined based on the results of traffic statistics. When the congestion and flow control level changes, the message sending policy of the service is adjusted based on preset rules, including: If the traffic statistics results for a preset number of consecutive periods are all less than the first threshold, sending a level 0 congestion and flow control message to the server through the client of the built-in service of the electronic control unit; The level 0 congestion and flow control message carries the level 0 congestion and flow control policy; According to the level 0 congestion and flow control policy, the sending period of periodic messages sent by non-critical services in the communication link is set to the default period by the server.

[0011] In some embodiments, when the congestion and flow control level in the previous cycle is level 2, the congestion and flow control level of the communication link is determined based on the results of traffic statistics. When the congestion and flow control level changes, the message sending policy of the service is adjusted based on preset rules, including: If the traffic statistics results for a preset number of consecutive periods are all greater than the first threshold and less than the second threshold, sending a level 1 congestion and flow control message to the server through the client of the built-in service of the electronic control unit; The level 1 congestion and flow control message carries the level 1 congestion and flow control policy; According to the level 1 congestion and flow control policy, the message sending mode for non-critical services and critical services in the communication link is set to the default policy through the server; wherein the default policy includes periodic sending, and the sending period of the periodic sending message of the non-critical service is greater than the default period.

[0012] To achieve the above objectives, another aspect of an embodiment of the present invention proposes a vehicle, which includes a memory, a processor, and a program stored in the memory and executable on the processor. When the program is executed by the processor, the above-mentioned congestion and flow control method based on in-vehicle Ethernet is implemented.

[0013] To achieve the above objectives, another aspect of an embodiment of the present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the above-mentioned congestion and flow control method based on in-vehicle Ethernet is implemented.

[0014] To achieve the above objectives, another aspect of an embodiment of the present invention provides a computer program product, including a computer program, which implements the above-mentioned congestion and flow control method based on in-vehicle Ethernet when executed by a processor.

[0015] An embodiment of the present invention establishes a point-to-point communication link at each communication endpoint of the SOME / IP protocol stack; wherein the communication link stores multiple services, including critical services and non-critical services; based on the communication link's buffer, periodic traffic statistics are performed on the communication link; the congestion and flow control level of the communication link are determined based on the results of the traffic statistics; when the congestion and flow control levels change, the message sending policy of the service is adjusted based on preset rules. The present invention, for the communication link constructed with the SOME / IP protocol stack, can determine the congestion and flow status of the communication link in real time through periodic traffic statistics, and then adapt the corresponding message sending policy based on the monitoring results of the traffic statistics changes. This can adapt to various congestion application scenarios and effectively implement flow control. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of an implementation environment for congestion and flow control based on in-vehicle Ethernet provided by an embodiment of the present invention; Figure 2 A flowchart of a congestion and flow control method based on in-vehicle Ethernet provided by an embodiment of the present invention; Figure 3 A schematic diagram of a system architecture for applying a congestion and flow control method based on in-vehicle Ethernet provided by an embodiment of the present invention; Figure 4 A schematic diagram of the business process of the Traffic_Control_Service provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0018] It should be noted that although the system diagrams illustrate functional module divisions and the flowcharts illustrate a logical sequence, in certain circumstances, the steps shown or described may be performed in a sequence that differs from the module divisions in the system or the sequence in the flowcharts. The terms "first / S100," "second / S200," and the like in the specification, claims, and drawings are used to distinguish similar objects and are not necessarily intended to describe a specific sequence or precedence.

[0019] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0020] It is understandable that the congestion and flow control method based on in-vehicle Ethernet provided in the embodiment of the present invention can be applied to any computer device with data processing and computing capabilities (such as an in-vehicle terminal device or a related control system of the vehicle), and this computer device can be various terminals or servers. When the computer device in the embodiment is a server, the server is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In some embodiments, the terminal is a smart phone, tablet computer, laptop computer, desktop computer, etc., but is not limited to this.

[0021] like Figure 1 FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the invention. Figure 1 , the implementation environment includes at least one terminal 102 and a server 101. The terminal 102 and the server 101 can be connected to the network in a wireless or wired manner to complete data transmission and exchange.

[0022] Server 101 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.

[0023] In addition, server 101 can also be a node server in a blockchain network. Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm.

[0024] Terminal 102 may be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, etc. Terminal 102 may also be a vehicle-mounted terminal of the various device types described above, but is not limited thereto. Terminal 102 and server 101 may be connected directly or indirectly via wired or wireless communication, which is not limited in this embodiment of the present invention.

[0025] Based on the example Figure 1 In the implementation environment shown, an embodiment of the present invention provides a congestion and flow control method based on an in-vehicle Ethernet. The following is explained using the example of applying the congestion and flow control method based on the in-vehicle Ethernet to the server 101. It can be understood that the congestion and flow control method based on the in-vehicle Ethernet can also be applied to the terminal 102.

[0026] Reference Figure 2 , Figure 2 The flowchart of the congestion and flow control method based on vehicle Ethernet applied to the server provided by the embodiment of the present invention, the execution subject of the congestion and flow control method based on vehicle Ethernet can be any of the aforementioned computer devices (including servers or terminals). Figure 2 , the method may include the following steps: S100, establishing a point-to-point communication link at each communication endpoint of the SOME / IP protocol stack; Among them, the communication link stores multiple services, and the service categories include critical services and non-critical services; For example, in some specific implementations, a peer-to-peer (P2P) communication link is first established at each communication endpoint of the SOME / IP protocol stack. Each link is identified by the IP address of the communication peer. Each P2P communication link contains n services (including m critical services and nm non-critical services).

[0027] Specifically, the in-vehicle services provided by the embodiments of the present invention can be divided into two categories: critical services and non-critical services: 1. Critical services are defined as those that affect driving safety, such as emergency braking and pedestrian and obstacle avoidance services; 2. Non-critical services are defined as services that have no or minimal impact on driving safety, such as in-vehicle infotainment services.

[0028] At the same time, different priorities are given according to the severity of their impact on driving safety; In addition, within the service, service information is divided as follows: 1. Key Information: A. RPC communication (Request / Response (R / R) and Fire & Forget (F&F) communication mechanisms) is usually used to ensure real-time and reliable communication; B. Use the Event communication mechanism to communicate important information to the driver, such as vehicle speed, rotation speed, and some important warning information; 2. Non-critical information: Usually consists of user experience information (such as information prompts, entertainment functions, etc.), usually using Event type information, which is sent periodically, triggered by value changes, and triggered when the value exceeds a certain threshold.

[0029] When traffic surges in a short period of time, it is necessary to ensure that the key information of key services is responded to and processed in a timely manner. In addition to increasing the priority response to the key information of the service within the service, it is also key to reduce the traffic sent by non-critical services and non-critical information of critical services.

[0030] S200, performing periodic traffic statistics on the communication link based on the buffer of the communication link; For example, in some specific implementations, the traffic statistics of each P2P (peer-to-peer) communication link are recorded in a buffer of the link at a period T1 (which can be set according to actual application requirements).

[0031] S300, determining the congestion and flow control level of the communication link based on the results of the traffic statistics, and adjusting the message sending policy of the service based on preset rules when the congestion and flow control levels change; First, it should be noted that in each P2P (point-to-point) communication link, there are n services (including m critical services and nm non-critical services). For each ECU (Electronic Control Unit) involved in SOME / IP communication, a built-in service (Traffic Control Service) is designed to send and receive congestion and flow control messages between the service sender and receiver. The built-in Traffic Control Service has a higher priority than non-critical services but lower priority than critical services. Specifically, the congestion and flow control levels are set as follows: A. Level 2 Congestion and Flow Control: The sender service changes the periodic event message transmission for non-critical services and non-critical information of critical services to value change triggering and value greater than a certain threshold triggering, and increases the threshold for the "value greater than a certain threshold" sending mode; B. Level 1 congestion and flow control: The sending service increases the sending period of Event messages for non-critical services; C. Level 0 congestion and flow control: This is the default level of congestion and flow control policy. This indicates that no congestion is occurring in the current logical communication, and all services are sending and receiving messages normally.

[0032] It should be noted that when the congestion and flow control level of the previous cycle is level 0, in some embodiments, step S300 may include the following steps: if the result of the flow statistics of the current cycle is greater than the first threshold and less than the second threshold, a level 1 congestion and flow control message is sent to the server through the client of the built-in service of the electronic control unit; wherein the level 1 congestion and flow control message carries a level 1 congestion and flow control strategy; according to the level 1 congestion and flow control strategy, the sending period of the periodic message of the non-critical service in the communication link is increased by the server.

[0033] For example, in some specific implementations, if the current congestion and flow control policy recorded by the client of a P2P (point-to-point) communication link Traffic_Control_Service on the service receiver is level 0, and after the expiration of period T1 of the buffer record of the P2P (point-to-point) communication link on the service receiver, the traffic statistics are greater than threshold threshold1 and less than threshold threshold2, the client of the Traffic_Control_Service sends a level 1 congestion and flow control message to the sender (the message parameters carry information about the use of level 1 congestion and flow control policy for nm non-critical services). After receiving this message, the service of the Traffic_Control_Service on the sending end ECU adjusts the message sending policy for the involved nm non-critical services according to the level 2 congestion and flow control policy.

[0034] It should be noted that when the congestion and flow control level of the previous cycle is level 0, in some embodiments, step S300 may include the following steps: if the result of the flow statistics of the current cycle is greater than the second threshold, a level 2 congestion and flow control message is sent to the server through the client of the built-in service of the electronic control unit; wherein the level 2 congestion and flow control message carries a level 2 congestion and flow control strategy; according to the level 2 congestion and flow control strategy, the sending mode of the periodic sending message of non-critical services and non-critical information of critical services in the communication link is adjusted from periodic sending to value change trigger and value greater than threshold trigger through the server, and the trigger threshold corresponding to the value greater than threshold trigger is increased.

[0035] For example, in some specific implementations, if the current congestion and flow control policy recorded by the Traffic_Control_Service client for a P2P (peer-to-peer) communication link on the service receiver is level 0, and the traffic statistics recorded in the buffer of the P2P (peer-to-peer) communication link on the service receiver exceed threshold threshold2 after the expiration of period T1, the Traffic_Control_Service client sends a level 2 congestion and flow control message to the sender (the message parameters carry information about adopting the level 2 congestion and flow control policy for nm non-critical services and adopting the level 2 congestion and flow control policy for the non-critical information of m critical services). After receiving this message, the Traffic_Control_Service server on the sending ECU adjusts the message sending policy for the affected services according to the level 2 congestion and flow control policy.

[0036] It should be noted that when the congestion and flow control level of the previous cycle is level 1, in some embodiments, step S300 may include the following steps: if the result of the flow statistics of the current cycle is greater than the second threshold, a level 2 congestion and flow control message is sent to the server through the client of the built-in service of the electronic control unit; wherein the level 2 congestion and flow control message carries a level 2 congestion and flow control strategy; according to the level 2 congestion and flow control strategy, the sending mode of the periodic sending message of non-critical services and non-critical information of critical services in the communication link is adjusted from periodic sending to value change trigger and value greater than threshold trigger through the server, and the trigger threshold corresponding to the value greater than threshold trigger is increased.

[0037] For example, in some specific implementations, if the current congestion and flow control policy recorded by the client of the service receiver's P2P (point-to-point) communication link Traffic_Control_Service is level 1, and after the expiration of period T1, the traffic statistics recorded in the buffer of the service receiver's P2P (point-to-point) communication link exceed threshold threshold2, the client of the Traffic_Control_Service sends a level 2 congestion and flow control message to the sender (the message parameters carry information about adopting the level 2 congestion and flow control policy for nm non-critical services and adopting the level 2 congestion and flow control policy for the non-critical information of m critical services). After receiving this message, the server of the Traffic_Control_Service on the sending end ECU adjusts the message sending policy for the affected services according to the level 2 congestion and flow control policy.

[0038] It should be noted that when the congestion and flow control level of the previous cycle is level 2, in some embodiments, step S300 may include the following steps: if the results of the flow statistics of a consecutive preset number of cycles are all less than the first threshold, a level 0 congestion and flow control message is sent to the server through the client of the built-in service of the electronic control unit; wherein the level 0 congestion and flow control message carries a level 0 congestion and flow control policy; according to the level 0 congestion and flow control policy, the message sending method for non-critical services and critical services in the communication link is set to a default policy through the server; the default policy includes periodic sending.

[0039] For example, in some specific implementations, if the current congestion and flow control policy recorded by the client of the service receiver's P2P (point-to-point) communication link Traffic_Control_Service is level 2, and the traffic statistics recorded in the buffer of the service receiver's P2P (point-to-point) communication link are less than threshold threshold1 for three consecutive periods T1, the client of the Traffic_Control_Service sends a level 0 congestion and flow control message to the sender (the message parameters carry information about the use of the level 0 congestion and flow control policy for nm non-critical services and m critical services). After receiving this message, the server of the Traffic_Control_Service on the sending ECU adjusts the message sending policy for the nm non-critical services and m critical services according to the level 0 congestion and flow control policy.

[0040] It should be noted that when the congestion and flow control level of the previous cycle is level 1, in some embodiments, step S300 may include the following steps: if the results of the flow statistics of a consecutive preset number of cycles are all less than the first threshold, a level 0 congestion and flow control message is sent to the server through the client of the built-in service of the electronic control unit; wherein the level 0 congestion and flow control message carries a level 0 congestion and flow control policy; according to the level 0 congestion and flow control policy, the sending period of the periodic sending message of the non-critical service in the communication link is set to the default period through the server.

[0041] For example, in some specific implementations, if the current congestion and flow control policy recorded by the client of the service receiver's P2P (point-to-point) communication link Traffic_Control_Service is level 1, and if the traffic statistics recorded in the buffer of the service receiver's P2P (point-to-point) communication link are less than a threshold value, threshold1, for three consecutive periods T1, the client of the Traffic_Control_Service sends a level 0 congestion and flow control message to the sender (the message parameters carry information about the use of the level 0 congestion and flow control policy for nm non-critical services). Upon receiving this message, the server of the Traffic_Control_Service on the sending ECU adjusts the message sending policy for the nm non-critical services involved according to the level 0 congestion and flow control policy.

[0042] It should be noted that when the congestion and flow control level of the previous cycle is level 2, in some embodiments, step S300 may include the following steps: if the results of the flow statistics of a consecutive preset number of cycles are greater than the first threshold and less than the second threshold, a level 1 congestion and flow control message is sent to the server through the client of the built-in service of the electronic control unit; wherein, the level 1 congestion and flow control message carries a level 1 congestion and flow control policy; according to the level 1 congestion and flow control policy, the message sending method of non-critical services and critical services in the communication link is set to the default policy through the server; wherein, the default policy includes periodic sending, and the sending period of the periodic sending message of the non-critical service is greater than the default period.

[0043] For example, in some specific implementations, if the current congestion and flow control policy recorded by the client of the service receiver's P2P (point-to-point) communication link Traffic_Control_Service is level 2, and if the traffic statistics recorded in the buffer of the service receiver's P2P (point-to-point) communication link are greater than threshold threshold1 and less than threshold threshold2 for three consecutive periods T1, the Traffic_Control_Service sends a level 1 congestion and flow control message to the sender (the message parameters carry information about adopting the level 1 congestion and flow control policy for nm non-critical services and adopting the level 1 congestion and flow control policy for the non-critical information of m critical services). After receiving this message, the server of the ECU Traffic_Control_Service adjusts the message sending policy for the affected services according to the level 1 congestion and flow control policy.

[0044] In order to explain the principle of the technical solution of the present invention in detail, the overall process of the present invention is described below in combination with some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and cannot be regarded as a limitation of the present invention.

[0045] First and foremost, it's important to note that end-user expectations of vehicle functionality are quietly evolving, and automotive engineers are increasingly seeking to enhance user experience, such as by ensuring rapid feature updates and upgrades, and by providing personalized, user-friendly, and differentiated features and services. Service-oriented software architecture (SOA) is providing a promising solution for future vehicle software services. Unlike the signal-oriented architecture of traditional automotive electrical and electronic architectures, SOA, through standardized service interfaces, loosely coupled service mechanisms, and composable and scalable service features, combined with a centralized electrical and electronic architecture centered around a high-performance computing platform—the domain controller—will become the technological foundation for "software-driven innovation" in the automotive industry.

[0046] SOME / IP, short for Scalable Service-Oriented Middleware over IP, is a middleware solution that enables service-oriented communication between controllers. However, SOME / IP technology relies on the traditional Ethernet bus, whose network layer IP protocol provides connectionless and unreliable packet switching. While this mechanism reduces the complexity and burden of core network nodes and systems, enabling rapid scalability, this best-effort packet-based approach makes it difficult to control and avoid network congestion, effectively control and distribute network traffic, and even more difficult to ensure Quality of Service (QoS). While this shortcoming can be significantly improved in the unique environment of in-vehicle networks compared to the Internet, the rapid growth of in-vehicle network applications has led to short-term traffic surges, resulting in transient or periodic congestion in the network system, significantly impacting the quality of service for critical in-vehicle applications.

[0047] In view of this, the present invention provides a mechanism and method that can predict and ensure that critical services that affect driving safety can be met in application scenarios with short-term traffic surges. At the same time, in this scenario, the traffic of non-critical services or non-critical information of critical services can be reduced, and the traffic can be restored in the scenario where congestion disappears, thereby achieving the purpose of congestion and flow control in a service-oriented system architecture based on in-vehicle Ethernet.

[0048] In some specific embodiments, the present invention provides a congestion and flow control method based on vehicle Ethernet and vehicle service-oriented software architecture (SOA) based on SOME / IP and a system architecture for its application. Figure 3 As shown in Figure 2. The services in the car can be divided into two categories: critical services and non-critical services: 1. Critical services are defined as those that affect driving safety, such as emergency braking and pedestrian and obstacle avoidance services; 2. Non-critical services are defined as services that have no or minimal impact on driving safety, such as in-vehicle infotainment services.

[0049] At the same time, different priorities are given according to the severity of their impact on driving safety; Within the service, service information is divided as follows: 1. Key Information: A. RPC communication (Request / Response (R / R) and Fire & Forget (F&F) communication mechanisms) is usually used to ensure real-time and reliable communication; B. Use the Event communication mechanism to communicate important information to the driver, such as vehicle speed, rotation speed, and some important warning information; 2. Non-critical information: Usually consists of user experience information (such as information prompts, entertainment functions, etc.), usually using Event type information, which is sent periodically, triggered by value changes, and triggered when the value exceeds a certain threshold.

[0050] When traffic surges in a short period of time, it is necessary to ensure that the key information of key services is responded to and processed in a timely manner. In addition to increasing the priority response to the key information of the service within the service, it is also key to reduce the traffic sent by non-critical services and non-critical information of critical services.

[0051] The present invention implements a method for ensuring the quality of service of key services in a business scenario with a short-term traffic surge, that is, a method for controlling congestion and flow in this scenario, as explained below: 1. Establish a P2P (point-to-point) communication link at each communication endpoint of the SOME / IP protocol stack. Each link is identified by the IP address of the communication peer. 2. Record the traffic statistics of each P2P (peer-to-peer) communication link in the buffer zone at period T1. 3. In each P2P (peer-to-peer) communication link, there are n services (including m critical services and nm non-critical services): 4. Design a built-in service (Traffic_Control_Service) for each ECU (Electronic Control Unit) involved in SOME / IP communication to send and receive congestion and flow control messages between the service receiver and the sender. 5. The built-in service Traffic_Control_Service has a higher priority than non-critical services but lower priority than critical services; 6. Congestion and flow control level settings: A. Level 2 Congestion and Flow Control: The sender service changes the periodic event message transmission for non-critical services and non-critical information of critical services to value change triggering and value greater than a certain threshold triggering, and increases the threshold for the "value greater than a certain threshold" sending mode; B. Level 1 congestion and flow control: The sending service increases the sending period of Event messages for non-critical services; C. Level 0 congestion and flow control: This is the default level of congestion and flow control policy. This indicates that no congestion is occurring in the current logical communication, and all services are sending and receiving messages normally.

[0052] 7. If Figure 4 As shown in the figure, the service (Traffic_Control_Service) records the congestion and flow control level settings of each P2P (point-to-point) communication link. Traffic_Control_Service sets the field data (Traffic_Level) through setter messages and queries the current value of the field data (Traffic_Level) through getter messages. 8. If the current congestion and flow control policy recorded by the client of Traffic_Control_Service on a P2P (point-to-point) communication link of the service receiver is level 0, and the traffic statistics recorded in the buffer of the P2P (point-to-point) communication link of the service receiver are greater than threshold threshold1 and less than threshold threshold2 after the expiration of period T1, a level 1 congestion and flow control message is sent to the sender via the client of Traffic_Control_Service (the message parameters carry the information that the level 1 congestion and flow control policy is adopted for nm non-critical services). After receiving this message, the server of ECUTraffic_Control_Service adjusts the message sending policy of the involved nm non-critical services according to the level 2 congestion and flow control policy. 9. If the current congestion and flow control policy recorded by the client of Traffic_Control_Service for a P2P (point-to-point) communication link of the service receiver is level 0, and the traffic statistics of the buffer record of the P2P (point-to-point) communication link of the service receiver are greater than the threshold threshold2 after the expiration of the period T1, a level 2 congestion and flow control message is sent to the sender through the client of Traffic_Control_Service (the message parameters carry the information that the level 2 congestion and flow control policy is adopted for nm non-critical services and the level 2 congestion and flow control policy is adopted for the non-critical information of m critical services). After receiving this message, the server of Traffic_Control_Service at the sending end adjusts the message sending policy of the involved services according to the level 2 congestion and flow control policy. 10. If the current congestion and flow control policy recorded by the client of the P2P (point-to-point) communication link Traffic_Control_Service of the service receiver is level 1, and the traffic statistics of the buffer record of the P2P (point-to-point) communication link of the service receiver are greater than the threshold threshold2 after the expiration of the period T1, the client of Traffic_Control_Service sends a level 2 congestion and flow control message to the sender (the message parameters carry the information that the level 2 congestion and flow control policy is adopted for nm non-critical services and the level 2 congestion and flow control policy is adopted for the non-critical information of m critical services). After receiving this message, the server of the ECU Traffic_Control_Service at the sender adjusts the message sending policy of the involved services according to the level 2 congestion and flow control policy. 11. If the current congestion and flow control policy recorded by the client of the P2P (point-to-point) communication link Traffic_Control_Service of the service receiver is level 2. After the traffic statistics recorded in the buffer of the P2P (point-to-point) communication link of the service receiver for three consecutive periods T1 expire and are less than the threshold threshold1, the client of Traffic_Control_Service sends a level 0 congestion and flow control message to the sender (the message parameters carry the information that the level 0 congestion and flow control policy is adopted for nm non-critical services and m critical services). After receiving this message, the server of the ECUTraffic_Control_Service at the sender adjusts the message sending policy for the nm non-critical services and m critical services involved according to the level 0 congestion and flow control policy; 12. If the current congestion and flow control policy recorded by the client of the P2P (point-to-point) communication link Traffic_Control_Service of the service receiver is level 1, and the traffic statistics recorded in the buffer of the P2P (point-to-point) communication link of the service receiver are less than the threshold threshold1 after three consecutive periods T1 expire, the client of Traffic_Control_Service sends a level 0 congestion and flow control message to the sender (the message parameters carry information about the use of level 0 congestion and flow control policy for nm non-critical services). After receiving this message, the server of the ECU Traffic_Control_Service at the sender adjusts the message sending policy for the nm non-critical services involved according to the level 0 congestion and flow control policy. 13. If the current congestion and flow control policy recorded by the client of the service receiver's P2P (point-to-point) communication link Traffic_Control_Service is level 2, and the traffic statistics recorded in the buffer of the service receiver's P2P (point-to-point) communication link are greater than threshold threshold1 and less than threshold threshold2 for three consecutive periods T1, the Traffic_Control_Service sends a level 1 congestion and flow control message to the sender (the message parameters carry information about using level 1 congestion and flow control policy for nm non-critical services and using level 1 congestion and flow control policy for non-critical information of m critical services). After receiving this message, the server of the ECU Traffic_Control_Service adjusts the message sending policy for the involved services according to the level 1 congestion and flow control policy.

[0053] In summary, the present invention provides a mechanism and method through the above-mentioned service-oriented congestion and flow control method based on in-vehicle Ethernet, which can predict and ensure that critical services that affect driving safety can be met in application scenarios with short-term traffic surges. At the same time, in this scenario, non-critical services or non-critical traffic of critical services can be reduced in scenarios where congestion occurs, and traffic can be restored in scenarios where congestion disappears, thereby achieving the purpose of congestion and flow control in a service-oriented system architecture based on in-vehicle Ethernet; specifically, the present invention uses the mechanism of the SOME / IP protocol itself to implement the above-mentioned control method, which is simple and highly scalable.

[0054] An embodiment of the present invention further provides a vehicle control device, comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program implements the control method of the above embodiment when executed by the processor.

[0055] For example, the processor and memory in a vehicle controller can be connected via a bus. Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. Furthermore, the memory can include high-speed random access memory and non-transitory memory, such as at least one disk drive, flash memory device, or other non-transitory solid-state memory device. In some embodiments, the memory can optionally include memory remotely located relative to the control processor, and these remote memories can be connected to the control device via a network.

[0056] The non-transitory software program and instructions required to implement the control method of the above embodiment are stored in the memory, and when executed by the processor, the control method of the above embodiment is executed.

[0057] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, i.e., they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.

[0058] An embodiment of the present invention further provides a vehicle, comprising the vehicle control device of the above embodiment.

[0059] The vehicle can be a private car, such as a sedan, SUV, MPV, or pickup truck. It can also be a commercial vehicle, such as a van, bus, small truck, or large trailer. The vehicle must have an electric motor that can output power or store mechanical energy as a generator. If the vehicle is a new energy vehicle, it can be a hybrid or a pure electric vehicle.

[0060] Since the vehicle applies all the technical solutions of the above-mentioned control device or vehicle controller, it has at least all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.

[0061] In addition, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the above-mentioned congestion and flow control method based on in-vehicle Ethernet.

[0062] It is worth noting that since the computer-readable storage medium of an embodiment of the present invention can execute the congestion and flow control method based on vehicle Ethernet of any of the above-mentioned embodiments, the specific implementation methods and technical effects of the computer-readable storage medium of an embodiment of the present invention can refer to the specific implementation methods and technical effects of the congestion and flow control method based on vehicle Ethernet of any of the above-mentioned embodiments.

[0063] In addition, an embodiment of the present invention also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. The processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the computer device executes the above-mentioned congestion and flow control method based on in-vehicle Ethernet.

[0064] It is worth noting that since the computer program product of the embodiment of the present invention can execute the congestion and flow control method based on vehicle Ethernet of any of the above-mentioned embodiments, the specific implementation methods and technical effects of the computer program product of the embodiment of the present invention can refer to the specific implementation methods and technical effects of the congestion and flow control method based on vehicle Ethernet of any of the above-mentioned embodiments.

[0065] Those skilled in the art will appreciate that all or some of the steps and systems disclosed above can be implemented as software, firmware, hardware, or any suitable combination thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is well known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVDs) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically includes computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0066] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, i.e., they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.

Claims

1. A congestion and flow control method based on vehicle-mounted Ethernet, characterized in that: The control method comprises: Establishing a point-to-point communication link at each communication endpoint of the SOME / IP protocol stack; wherein the communication link stores a plurality of services, and the categories of the services include critical services and non-critical services; performing periodic traffic statistics on the communication link based on the buffer of the communication link; The congestion and flow control levels of the communication link are determined according to the result of the flow statistics. When the congestion and flow control levels change, the message sending strategy of the service is adjusted based on preset rules.

2. The congestion and flow control method based on vehicle-mounted Ethernet according to claim 1, characterized in that: When the congestion and flow control level in the previous cycle is level 0, determining the congestion and flow control level of the communication link according to the result of the flow statistics, and when the congestion and flow control level changes, adjusting the message sending policy of the service based on a preset rule, including: If the result of the traffic statistics in the current period is greater than the first threshold and less than the second threshold, sending a level 1 congestion and flow control message to the server through the client of the built-in service of the electronic control unit; The level 1 congestion and flow control message carries a level 1 congestion and flow control policy; According to the level 1 congestion and flow control strategy, the server increases the sending period of the periodic message sending of the non-critical service in the communication link.

3. The congestion and flow control method based on vehicle-mounted Ethernet according to claim 1, characterized in that: When the congestion and flow control level in the previous cycle is level 0, determining the congestion and flow control level of the communication link according to the result of the flow statistics, and when the congestion and flow control level changes, adjusting the message sending policy of the service based on a preset rule, including: If the result of the traffic statistics in the current period is greater than a second threshold, sending a level 2 congestion and flow control message to the server through the client of the built-in service of the electronic control unit; The level 2 congestion and flow control message carries a level 2 congestion and flow control policy; According to the level 2 congestion and flow control strategy, the server side adjusts the periodic sending mode of messages of the non-critical services and the non-critical information of the critical services in the communication link from periodic sending to value change triggering and value greater than threshold triggering, and increases the trigger threshold corresponding to the value greater than threshold triggering.

4. The congestion and flow control method based on vehicle-mounted Ethernet according to claim 1, characterized in that: When the congestion and flow control level in the previous cycle is level 1, determining the congestion and flow control level of the communication link according to the result of the flow statistics, and when the congestion and flow control level changes, adjusting the message sending policy of the service based on a preset rule, including: If the result of the traffic statistics in the current period is greater than a second threshold, sending a level 2 congestion and flow control message to the server through the client of the built-in service of the electronic control unit; The level 2 congestion and flow control message carries a level 2 congestion and flow control policy; According to the level 2 congestion and flow control strategy, the server side adjusts the periodic sending mode of messages of the non-critical services and the non-critical information of the critical services in the communication link from periodic sending to value change triggering and value greater than threshold triggering, and increases the trigger threshold corresponding to the value greater than threshold triggering.

5. The congestion and flow control method based on vehicle-mounted Ethernet according to claim 1, characterized in that: When the congestion and flow control level in the previous cycle is level 2, determining the congestion and flow control level of the communication link according to the result of the flow statistics, and when the congestion and flow control level changes, adjusting the message sending policy of the service based on a preset rule, including: If the results of the traffic statistics for a consecutive preset number of periods are all less than a first threshold, sending a level 0 congestion and flow control message to the server through the client of the built-in service of the electronic control unit; The level 0 congestion and flow control message carries a level 0 congestion and flow control policy; According to the level 0 congestion and flow control strategy, the message sending mode of the non-critical service and the critical service in the communication link is set as a default strategy by the server; the default strategy includes periodic sending.

6. The congestion and flow control method based on vehicle-mounted Ethernet according to claim 1, characterized in that: When the congestion and flow control level in the previous cycle is level 1, determining the congestion and flow control level of the communication link according to the result of the flow statistics, and when the congestion and flow control level changes, adjusting the message sending policy of the service based on a preset rule, including: If the results of the traffic statistics for a consecutive preset number of periods are all less than a first threshold, sending a level 0 congestion and flow control message to the server through the client of the built-in service of the electronic control unit; The level 0 congestion and flow control message carries a level 0 congestion and flow control policy; According to the level 0 congestion and flow control strategy, the sending period of the periodic message sending of the non-critical service in the communication link is set as a default period by the server.

7. The congestion and flow control method based on vehicle-mounted Ethernet according to claim 1, characterized in that: When the congestion and flow control level in the previous cycle is level 2, determining the congestion and flow control level of the communication link according to the result of the flow statistics, and when the congestion and flow control level changes, adjusting the message sending policy of the service based on a preset rule, including: If the traffic statistics results for a predetermined number of consecutive periods are all greater than a first threshold and less than a second threshold, sending a level 1 congestion and flow control message to the server through the client of the built-in service of the electronic control unit; The level 1 congestion and flow control message carries a level 1 congestion and flow control policy; According to the level 1 congestion and flow control strategy, the message sending mode of the non-critical service and the critical service in the communication link is set to the default strategy through the server; wherein, the default strategy includes periodic sending, and the sending period of the periodic sending message of the non-critical service is greater than the default period.

8. A vehicle, characterized in that: The invention comprises a memory, a processor and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the congestion and flow control method based on the in-vehicle Ethernet is implemented.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the congestion and flow control method based on in-vehicle Ethernet according to any one of claims 1 to 7.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.