CN114584582B - In-vehicle message processing method and device, vehicle-mounted terminal and storage medium - Google Patents

In-vehicle message processing method and device, vehicle-mounted terminal and storage medium Download PDF

Info

Publication number
CN114584582B
CN114584582B CN202210172998.8A CN202210172998A CN114584582B CN 114584582 B CN114584582 B CN 114584582B CN 202210172998 A CN202210172998 A CN 202210172998A CN 114584582 B CN114584582 B CN 114584582B
Authority
CN
China
Prior art keywords
message
protocol
target
forwarding rule
accelerated
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.)
Active
Application number
CN202210172998.8A
Other languages
Chinese (zh)
Other versions
CN114584582A (en
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.)
China Automotive Innovation Co Ltd
Original Assignee
China Automotive Innovation 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 China Automotive Innovation Co Ltd filed Critical China Automotive Innovation Co Ltd
Priority to CN202210172998.8A priority Critical patent/CN114584582B/en
Publication of CN114584582A publication Critical patent/CN114584582A/en
Application granted granted Critical
Publication of CN114584582B publication Critical patent/CN114584582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The application discloses a method, a device, a vehicle-mounted terminal and a storage medium for processing a message in a vehicle, wherein a message to be sent is encapsulated by calling an encapsulation protocol of a target protocol type to obtain a protocol message, the protocol message is sent to an Ethernet gateway, the Ethernet gateway takes the protocol message containing a protocol type identifier as the message to be accelerated, extracts forwarding rule association information of the message to be accelerated, determines a target forwarding rule, and forwards the message to be accelerated according to the target forwarding rule. According to the method and the device, the network communication protocol which can be perceived by the gateway is introduced, the specific message is packaged to obtain the protocol message, and the protocol message is forwarded in an accelerating way, so that the communication efficiency is improved.

Description

In-vehicle message processing method and device, vehicle-mounted terminal and storage medium
Technical Field
The present disclosure relates to the field of vehicle communications technologies, and in particular, to a method and an apparatus for processing an in-vehicle message, a vehicle terminal, and a storage medium.
Background
Under the trend of intelligent networking development of automobiles, a traditional automobile Electronic Control Unit (ECU) is integrated into a whole according to a functional domain, and is called a Domain Controller (DCU). The domain controller generally has greater computational power, memory, and more sensor interfaces than a conventional ECU, and runs multiple software functions simultaneously thereon, which are developed based on the AUTOSAR Adaptive Platform (AP) architecture and released externally in the form of services. There are typically a plurality of in-vehicle domain controllers that are partitioned into functional domains and that access in-vehicle ethernet. Services running on the respective domain controllers communicate with each other via ethernet messages, and routing of these messages requires an in-vehicle ethernet gateway to complete. The AUTOSAR AP standard specifies the presentation form of the service interface, and also specifies two underlying network communication mechanisms, namely, scalable service-Oriented MiddlewarE over IP (SOME/IP) and Data Distribution Service for Real-Time Systems (DDS). In QOS (Quality of Service), i.e. service quality, of inter-service communication, SOME/IP does not provide relevant regulations, DDS has various QOS mechanisms, but is mainly guaranteed by reserving resources in an application program, and is not involved in accelerating forwarding of a message, and a gateway cannot perceive a message needing accelerating forwarding and accelerate forwarding of the message.
The quality of network communication involves each node in the network communication path, and if any node becomes a bottleneck, QOS quality may not reach standard, and the in-vehicle ethernet gateway serves as an important message forwarding node, which is particularly important. Therefore, there is a need to design a network communication protocol in which an ethernet gateway can perceive the QOS requirements of a service, and a gateway that guarantees QOS for a specific service based on this protocol.
Disclosure of Invention
In order to improve the transmission efficiency of in-vehicle messages on a communication path and provide low-delay network quality guarantee for communication messages of specific services, the invention provides an in-vehicle message processing method, an in-vehicle message processing device, a vehicle-mounted terminal and a storage medium, and introduces a network communication protocol which can be perceived by a gateway to accelerate forwarding of the specific messages and improve the communication efficiency.
In one aspect, an embodiment of the present application provides a method for processing an in-vehicle packet, including:
receiving a protocol message sent by a first domain controller of a vehicle;
when the protocol type identifier in the protocol message indicates a target protocol type, the protocol message is used as a message to be accelerated to be forwarded;
extracting forwarding rule association information in the message to be accelerated;
determining a target forwarding rule according to the forwarding rule association information;
and according to the target forwarding rule, forwarding the message to be accelerated.
Further, the forwarding rule association information includes a source IP, a destination IP, a source port number, and a destination port number of the message to be forwarded in an accelerating manner; the determining the target forwarding rule according to the forwarding rule association information includes:
determining a target flow context according to the forwarding rule association information of the message to be forwarded in an accelerating way;
and determining a target forwarding rule according to the target flow context.
Further, the determining the context of the target flow according to the forwarding rule association information of the to-be-accelerated forwarding message includes:
inquiring whether a target flow context corresponding to forwarding rule association information of the message to be accelerated and forwarded exists in a preset register;
and if so, acquiring the target stream context from the preset register.
Further, the method further comprises:
if the target flow context does not exist, the message to be accelerated and forwarded is sent to a central processing unit for processing, so that the central processing unit builds a target flow context corresponding to the message to be accelerated and forwarded, and the target flow context is stored in the preset register.
The method for processing the in-vehicle message provided by the embodiment of the application further comprises the following steps:
generating a message to be sent;
calling an encapsulation protocol of a target protocol type to encapsulate the message to be sent to obtain a protocol message;
the protocol message is sent to an Ethernet gateway of a vehicle, so that the Ethernet gateway takes the protocol message as a message to be accelerated and forwarded when a protocol type identifier in the protocol message indicates a target protocol type; extracting forwarding rule association information in the message to be accelerated; determining a target forwarding rule according to the forwarding rule association information; and according to the target forwarding rule, forwarding the message to be accelerated.
Further, the encapsulating protocol of the calling target protocol type encapsulates the message to be sent to obtain a protocol message, which includes:
splicing the tail part of a preset protocol identification message and the head part of the message to be sent to obtain the protocol message; the preset protocol identification message includes a protocol type identification, where the protocol type identification is used to indicate that the protocol message is a target protocol type.
Further, the method further comprises:
and receiving the protocol message forwarded by the Ethernet gateway from the vehicle, and decapsulating the protocol message.
In a second aspect, the present invention provides an in-vehicle message processing apparatus, including:
and a receiving module: the method comprises the steps of receiving a protocol message sent by a first domain controller of a vehicle;
and an identification module: when the protocol type identifier in the protocol message indicates the target protocol type, the protocol message is used as a message to be accelerated to be forwarded;
and the information extraction module is used for: the forwarding rule association information is used for extracting forwarding rule association information in the message to be accelerated;
the target forwarding rule determining module: the forwarding rule determining module is used for determining a target forwarding rule according to the forwarding rule association information;
and (5) an acceleration forwarding module: the method is used for carrying out acceleration forwarding on the message to be accelerated forwarded according to the target forwarding rule;
the generation module is used for: for generating messages to be sent
And (3) packaging a module: the encapsulation protocol used for calling the target protocol type encapsulates the message to be sent to obtain a protocol message
And a sending module: the Ethernet gateway is used for sending the protocol message to an Ethernet gateway of a vehicle, so that the Ethernet gateway takes the protocol message as a message to be accelerated to be forwarded when a protocol type identifier in the protocol message indicates a target protocol type; extracting forwarding rule association information in the message to be accelerated; determining a target forwarding rule according to the forwarding rule association information; and according to the target forwarding rule, forwarding the message to be accelerated.
Further, the target forwarding rule determining module includes:
the target flow context determination module: the method comprises the steps of determining a target flow context according to forwarding rule association information of the message to be accelerated;
and a determination module: and the forwarding rule determining module is used for determining a target forwarding rule according to the target flow context.
Further, the target flow context determination module includes:
and a query module: the method comprises the steps of inquiring whether a target flow context corresponding to forwarding rule association information of the message to be accelerated is present in a preset register;
the acquisition module is used for: if the query result is present, acquiring the target stream context from the preset register;
the processing module is used for: and if the query result is that the query result does not exist, the message to be accelerated and forwarded is sent to a central processing unit for processing, so that the central processing unit builds a target flow context corresponding to the message to be accelerated and forwarded, and the target flow context is stored in the preset register.
Further, the in-vehicle message processing device further includes:
and (5) a decapsulation module: and the protocol message is used for receiving the protocol message forwarded by the Ethernet gateway from the vehicle and decapsulating the protocol message.
On the other hand, the vehicle-mounted terminal comprises a processor and a memory, wherein at least one instruction or at least one section of program is stored in the memory, and the at least one instruction or the at least one section of program is loaded and executed by the processor to realize the in-vehicle message processing method.
In another aspect, a computer readable storage medium is provided, where at least one instruction or at least one program is stored in the storage medium, where the at least one instruction or the at least one program is loaded and executed by a processor to implement an in-vehicle message processing method as described above.
The method, the device, the vehicle-mounted terminal and the storage medium for processing the in-vehicle message provided by the embodiment of the application have the following technical effects:
the method comprises the steps that a packaging protocol is introduced to package a message to be sent to obtain a protocol message, the protocol message is sent to an Ethernet gateway, when the Ethernet gateway recognizes that a protocol type identifier of the protocol message indicates a target protocol type, the protocol message is used as the message to be accelerated and forwarded, forwarding rule association information of the message to be accelerated and forwarded is extracted, a target forwarding rule is determined, the message to be accelerated and forwarded is accelerated and forwarded according to the target forwarding rule, the transmission efficiency of the message in a vehicle on a communication path is improved, and network quality guarantee with low time delay is provided for the communication message of a specific service.
Drawings
In order to more clearly illustrate the technical solutions and advantages of embodiments of the present application or of the prior art, the following description will briefly introduce the drawings that are required to be used in the embodiments or the prior art descriptions, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an in-vehicle message processing method provided in an embodiment of the present application;
fig. 2 is a flow chart of another method for processing in-vehicle messages according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an in-vehicle message processing device according to an embodiment of the present application;
fig. 4 is a hardware structural block diagram of an in-vehicle message processing vehicle-mounted terminal provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a flow chart of an in-vehicle message processing method provided by an embodiment of the present application, where when a protocol type of a protocol message sent by a first regional controller of a vehicle is a target protocol type, the protocol message is used as a message to be forwarded with acceleration, forwarding rule association information of the message to be forwarded with acceleration is extracted, a target forwarding rule is determined according to the forwarding rule association information, and the message to be forwarded with acceleration is forwarded according to the target forwarding rule. The method for processing the in-vehicle message can accurately identify the type of the protocol message, and can accelerate the forwarding of the protocol message needing to be accelerated and forwarded, thereby improving the communication efficiency of the vehicle communication message.
The present specification provides method operational steps as an example or a flowchart, but may include more or fewer operational steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented by a system or server product in practice, the methods illustrated in the embodiments or figures may be performed sequentially or in parallel (e.g., in a parallel processing or multithreaded environment). As shown in fig. 1, the method may include:
s101: receiving a protocol message sent by a first domain controller of a vehicle;
s102: when the protocol type identifier in the protocol message indicates a target protocol type, the protocol message is used as a message to be accelerated to be forwarded;
s103: extracting forwarding rule association information in the message to be accelerated;
in this embodiment, optionally, forwarding rule association information in the to-be-accelerated forwarding packet includes a source IP, a destination IP, a source port number, and a destination port number of the to-be-accelerated forwarding packet, where a sending end and a receiving end of the to-be-accelerated forwarding packet may be determined by the forwarding rule association information.
S104: determining a target forwarding rule according to the forwarding rule association information;
in one embodiment of the present application, according to the extracted source IP, destination IP, source port number, and destination port number of the message to be accelerated and forwarded, the target flow context of the message to be accelerated and forwarded may be queried in a preset register on an acceleration chip of the ethernet gateway with the combination of the source IP, destination IP, source port number, and destination port number of the message to be accelerated and forwarded; the method comprises the steps of storing forwarding rule association information and corresponding target flow contexts in a preset register, wherein the target flow contexts are used for indicating a sending end and a receiving end of a message to be forwarded in an accelerating mode, determining forwarding rules of the message to be forwarded in the accelerating mode according to the inquired target flow contexts, and then forwarding the message to be forwarded in the accelerating mode according to the forwarding rules.
Optionally, a method for determining a target flow context corresponding to a message to be forwarded in an accelerated manner includes:
the method can be used for inquiring whether a target flow context corresponding to forwarding rule association information of the message to be accelerated and forwarded exists in a preset register;
if the queried result is present, acquiring the queried target stream context from a preset register;
if the query result is that the message does not exist, the message to be accelerated and forwarded can be sent to the central processing unit for processing, the target stream context corresponding to the message to be accelerated and forwarded is newly built through the central processing unit, the newly built target stream context is stored in the preset register, and the preset register is updated.
Determining a target forwarding rule of a message to be forwarded in an accelerating way according to a target flow context, wherein the target forwarding rule is used for indicating how the message to be forwarded in an accelerating way, including but not limited to which network port of a switch forwards the message and the sequence of a next hop and an outgoing interface passing through in the forwarding process, and the like; optionally, the target forwarding rules may be adjusted as needed.
S105: according to the target forwarding rule, the message to be forwarded in an accelerating way is forwarded;
optionally, an acceleration chip, for example, FPGA (Field Programmable Gate Array), i.e., a field programmable gate array, may be disposed in the ethernet gateway, and the acceleration chip is used to forward the message to be accelerated, so as to improve the forwarding efficiency of the message to be accelerated.
In this embodiment of the present application, there is further provided a method for encapsulating a message to be sent to obtain a protocol packet, as shown in fig. 2, including:
s201: generating a message to be sent;
s202: calling an encapsulation protocol of a target protocol type to encapsulate the message to be sent to obtain a protocol message;
specifically, an embodiment of optionally encapsulating a message to be sent to obtain a protocol message is as follows: splicing the tail part of a preset protocol identification message and the head part of the message to be sent to obtain a protocol message; the method comprises the steps that a preset protocol identification message is a pre-constructed message segment, wherein the preset protocol identification message comprises a protocol type identification used for indicating that the protocol message is a target protocol type; and splicing the preset protocol identification message with the protocol type identification with the message to be sent to obtain the protocol message containing the protocol type identification.
S203: the protocol message is sent to an Ethernet gateway of a vehicle, so that the Ethernet gateway takes the protocol message as a message to be accelerated and forwarded when a protocol type identifier in the protocol message indicates a target protocol type; extracting forwarding rule association information in the message to be accelerated; determining a target forwarding rule according to the forwarding rule association information; and according to the target forwarding rule, forwarding the message to be accelerated.
And (3) sending the protocol message obtained by the encapsulation protocol in the step S202 to an Ethernet gateway, wherein the Ethernet gateway comprises a software module capable of identifying and processing the encapsulation protocol, and when the protocol type of the protocol message is identified to indicate the target protocol type, the protocol message is used as a message to be accelerated and forwarded, and the message to be accelerated and forwarded is accelerated and forwarded according to the method of the steps S103-S105.
In this embodiment of the present application, optionally, the first domain controller may further receive a protocol packet forwarded by the ethernet gateway acceleration from the vehicle, and decapsulate the received protocol packet.
The traditional AUTOSAR Adaptive Platform (AP) communication management function comprises SOME/IP and DDS network binding modes, and packets are respectively encapsulated and forwarded through SOME/IP protocols and DDS protocols, the SOME/IP protocols do not provide QOS services per se, the communication efficiency of the packets cannot be improved, the DDS protocols provide various QOS mechanisms for improving the communication quality, but the DDS protocols are mainly realized by reserving resources at an application program end, and the accelerated forwarding of the packets on a transmission path is not involved, so that an Ethernet gateway cannot sense the QOS requirements of the DDS protocols and accelerate the forwarding of the packets.
According to the method for processing the in-vehicle message, the encapsulation protocol is introduced to encapsulate the message to be sent to obtain the protocol message, the protocol message is sent to the Ethernet gateway, when the Ethernet gateway recognizes that the protocol type identification of the protocol message indicates the target protocol type, the protocol message is used as the message to be accelerated and forwarded, the forwarding rule association information of the message to be accelerated and forwarded is extracted, the target forwarding rule is determined, the message to be accelerated and forwarded is accelerated and forwarded according to the target forwarding rule, the propagation delay of the message to be accelerated and forwarded is reduced, the transmission efficiency of the message in the vehicle on a communication path is improved, and network quality guarantee with low delay is provided for the communication message of specific service.
On the other hand, the embodiment of the application further provides an in-vehicle message processing device, and fig. 3 is a schematic structural diagram of the in-vehicle message processing device provided by the embodiment of the application, as shown in fig. 3, where the device includes:
the receiving module 301 is configured to receive a protocol packet sent by a first domain controller of a vehicle;
the identification module 302 is configured to, when the protocol type identifier in the protocol packet indicates a target protocol type, take the protocol packet as a packet to be forwarded in an accelerated manner;
the information extraction module 303 is configured to extract forwarding rule association information in the forwarding message to be accelerated;
the target forwarding rule determining module 304 is configured to determine a target forwarding rule according to the forwarding rule association information;
the acceleration forwarding module 305 is configured to perform acceleration forwarding on the message to be accelerated forwarded according to the target forwarding rule;
the generating module 306 is configured to generate a message to be sent;
the encapsulation module 307 is configured to invoke an encapsulation protocol of a target protocol type to encapsulate the message to be sent, so as to obtain a protocol message;
the sending module 308 is configured to send the protocol packet to an ethernet gateway of the vehicle, so that the ethernet gateway takes the protocol packet as a packet to be forwarded in an accelerated manner when a protocol type identifier in the protocol packet indicates a target protocol type; extracting forwarding rule association information in the message to be accelerated; determining a target forwarding rule according to the forwarding rule association information; and according to the target forwarding rule, forwarding the message to be accelerated.
Further, the target forwarding rule determining module 304 includes:
the target flow context determination module: the method comprises the steps of determining a target flow context according to forwarding rule association information of a message to be forwarded in an accelerating way;
and a determination module: for determining a target forwarding rule based on the target flow context.
Further, the target flow context determination module includes:
and a query module: the method comprises the steps of inquiring whether a target flow context corresponding to forwarding rule association information of a message to be accelerated and forwarded exists in a preset register;
the acquisition module is used for: if the query result is present, acquiring a target stream context from a preset register;
the processing module is used for: if the query result is that the message does not exist, the message to be accelerated and forwarded is sent to the central processing unit for processing, so that the central processing unit builds a target flow context corresponding to the message to be accelerated and forwarded, and the target flow context is stored in a preset register.
Further, the in-vehicle message processing device further includes:
and (5) a decapsulation module: and the system is used for receiving the protocol message forwarded by the Ethernet gateway from the vehicle and decapsulating the protocol message.
The apparatus and method embodiments in the embodiments of the present application are based on the same application concept.
The embodiment of the invention provides a vehicle-mounted terminal, which comprises a processor and a memory, wherein at least one instruction or at least one section of program is stored in the memory, and the at least one instruction or the at least one section of program is loaded and executed by the processor so as to realize the in-vehicle message processing method provided by the embodiment of the method.
The memory may be used to store software programs and modules that the processor executes by running the software programs and modules stored in the memory to thereby execute various functional applications. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to the use of the device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide access to the memory by the processor.
The method embodiment provided by the embodiment of the invention can be executed on the vehicle-mounted terminal. As shown in fig. 4, the internal structure of the in-vehicle terminal may include, but is not limited to: the processor, the network interface, and the memory may be connected by a bus or other means.
Among them, a processor (or CPU (Central Processing Unit, central processing unit)) is a calculation core and a control core of the in-vehicle terminal. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.). Memory (Memory) is used to store programs and data. It will be appreciated that the memory herein may be a high speed RAM memory device or a non-volatile memory device, such as at least one magnetic disk memory device; optionally, at least one memory device located remotely from the processor. The memory provides a storage space that stores an operating system of the electronic device, which may include, but is not limited to: windows (an operating system), linux (an operating system), android (an Android, a mobile operating system) system, IOS (a mobile operating system) system, etc., the invention is not limited in this regard; also stored in the memory space are one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor. In the embodiment of the present disclosure, the processor loads and executes one or more instructions stored in the memory, so as to implement the method for processing the in-vehicle message provided in the above method embodiment.
Embodiments of the present invention also provide a computer readable storage medium, where the storage medium may be disposed in a terminal to store at least one instruction, at least one program, a code set, or an instruction set related to implementing an in-vehicle message processing method, where the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the in-vehicle message processing method provided in the foregoing method embodiments.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The method, the device, the vehicle-mounted terminal and the storage medium for processing the in-vehicle message are applied to the technical field of vehicle communication, the encapsulation protocol is introduced to encapsulate the message to be sent to obtain the protocol message, the protocol message is sent to the Ethernet gateway, when the Ethernet gateway recognizes that the protocol type identifier of the protocol message indicates the target protocol type, the protocol message is used as the message to be accelerated and forwarded, the forwarding rule association information of the message to be accelerated and forwarded is extracted, the target forwarding rule is determined, the message to be accelerated and forwarded is accelerated and forwarded according to the target forwarding rule, the transmission efficiency of the in-vehicle message on a communication path is improved, and network quality guarantee of low time delay and high bandwidth is provided for the communication message of specific service.
It should be noted that: the foregoing sequence of the embodiments of the present application is only for describing, and does not represent the advantages and disadvantages of the embodiments. And the foregoing description has been directed to specific embodiments of this specification. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (10)

1. The in-car message processing method is characterized by being applied to an in-car Ethernet gateway and comprising the following steps of:
receiving a protocol message sent by a first domain controller of a vehicle, wherein the protocol message is a message obtained by calling an encapsulation protocol of a target protocol type to encapsulate a message to be accelerated, the encapsulation protocol is an introduced network communication protocol, and the Ethernet gateway can perceive the requirement of improving the service quality based on the encapsulation protocol;
when the protocol type identifier in the protocol message indicates a target protocol type, the protocol message is used as a message to be accelerated to be forwarded;
extracting forwarding rule association information in the message to be accelerated;
determining a target forwarding rule according to the forwarding rule association information;
and according to the target forwarding rule, forwarding the message to be accelerated.
2. The method for processing an in-vehicle message according to claim 1, wherein the forwarding rule association information includes a source IP, a destination IP, a source port number, and a destination port number of the message to be forwarded with acceleration; the determining the target forwarding rule according to the forwarding rule association information includes:
determining a target flow context according to the forwarding rule association information of the message to be forwarded in an accelerating way;
and determining a target forwarding rule according to the target flow context.
3. The method for processing an in-vehicle message according to claim 2, wherein the determining the context of the target flow according to the forwarding rule association information of the message to be forwarded with acceleration includes:
inquiring whether a target flow context corresponding to forwarding rule association information of the message to be accelerated and forwarded exists in a preset register;
and if so, acquiring the target stream context from the preset register.
4. The in-vehicle message processing method according to claim 3, further comprising:
if the target flow context does not exist, the message to be accelerated and forwarded is sent to a central processing unit for processing, so that the central processing unit builds a target flow context corresponding to the message to be accelerated and forwarded, and the target flow context is stored in the preset register.
5. The in-car message processing method is characterized by being applied to an in-car Ethernet gateway and comprising the following steps of:
generating a message to be sent;
calling an encapsulation protocol of a target protocol type to encapsulate the message to be sent to obtain a protocol message, wherein the encapsulation protocol is an introduced network communication protocol, and based on the encapsulation protocol, the Ethernet gateway can perceive the requirement of improving the service quality;
the protocol message is sent to the Ethernet gateway, so that the Ethernet gateway takes the protocol message as a message to be accelerated to be forwarded when a protocol type identifier in the protocol message indicates a target protocol type; extracting forwarding rule association information in the message to be accelerated; determining a target forwarding rule according to the forwarding rule association information; and according to the target forwarding rule, forwarding the message to be accelerated.
6. The method for processing an in-vehicle message according to claim 5, wherein the calling the encapsulation protocol of the target protocol type encapsulates the message to be sent to obtain a protocol message, comprising:
splicing the tail part of a preset protocol identification message and the head part of the message to be sent to obtain the protocol message;
the preset protocol identification message includes a protocol type identification, where the protocol type identification is used to indicate that the protocol message is a target protocol type.
7. The in-vehicle message processing method according to claim 5, further comprising:
and receiving the protocol message forwarded by the Ethernet gateway, and decapsulating the protocol message.
8. An in-vehicle message processing device, which is characterized in that the device is applied to an in-vehicle ethernet gateway and comprises:
and a receiving module: the method comprises the steps that a protocol message sent by a first domain controller of a vehicle is received, wherein the protocol message is obtained after a message to be accelerated is encapsulated by an encapsulation protocol of a calling target protocol type, the encapsulation protocol is an introduced network communication protocol, and the Ethernet gateway can perceive the requirement of improving service quality based on the encapsulation protocol;
and an identification module: when the protocol type identifier in the protocol message indicates the target protocol type, the protocol message is used as a message to be accelerated to be forwarded;
and the information extraction module is used for: the forwarding rule association information is used for extracting forwarding rule association information in the message to be accelerated;
the target forwarding rule determining module: the forwarding rule determining module is used for determining a target forwarding rule according to the forwarding rule association information;
and (5) an acceleration forwarding module: and the accelerating forwarding module is used for accelerating forwarding of the message to be accelerated according to the target forwarding rule.
9. A vehicle-mounted terminal, characterized in that the vehicle-mounted terminal comprises a processor and a memory, wherein at least one instruction or at least one section of program is stored in the memory, and the at least one instruction or the at least one section of program is loaded and executed by the processor to implement the in-vehicle message processing method according to any one of claims 1 to 7.
10. A computer readable storage medium having stored therein at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by a processor to implement the in-vehicle message processing method of any one of claims 1 to 7.
CN202210172998.8A 2022-02-24 2022-02-24 In-vehicle message processing method and device, vehicle-mounted terminal and storage medium Active CN114584582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210172998.8A CN114584582B (en) 2022-02-24 2022-02-24 In-vehicle message processing method and device, vehicle-mounted terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210172998.8A CN114584582B (en) 2022-02-24 2022-02-24 In-vehicle message processing method and device, vehicle-mounted terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114584582A CN114584582A (en) 2022-06-03
CN114584582B true CN114584582B (en) 2024-03-08

Family

ID=81770516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210172998.8A Active CN114584582B (en) 2022-02-24 2022-02-24 In-vehicle message processing method and device, vehicle-mounted terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114584582B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442173B (en) * 2022-06-07 2024-02-06 北京车和家信息技术有限公司 Vehicle message forwarding and processing method and device, electronic equipment and storage medium
CN115580505A (en) * 2022-09-05 2023-01-06 欣旺达电动汽车电池有限公司 Message processing method and device, electronic equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1850614A1 (en) * 2006-04-28 2007-10-31 Nokia Siemens Networks Gmbh & Co. Kg Advanced speech call items in networks comprising a MSC server and a media gateway
CN102263687A (en) * 2011-08-11 2011-11-30 武汉思为同飞网络技术有限公司 VPN (virtual private network) speed-up gateway in WAN (wide area network) as well as speed-up communication and method thereof
CN102904959A (en) * 2012-10-19 2013-01-30 李恺 Network accelerating method and gateway
CN104144156A (en) * 2013-05-10 2014-11-12 华为技术有限公司 Message processing method and device
WO2019041332A1 (en) * 2017-09-04 2019-03-07 深圳前海达闼云端智能科技有限公司 Method and system for optimizing transmission of acceleration network
KR20190074052A (en) * 2017-12-19 2019-06-27 김양수 Gateway Platform
CN112003792A (en) * 2020-07-23 2020-11-27 烽火通信科技股份有限公司 Software and hardware cooperative message acceleration method and device
CN113949599A (en) * 2021-10-18 2022-01-18 广州小鹏汽车科技有限公司 Method, device and system for transmitting vehicle data and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170072876A1 (en) * 2015-09-14 2017-03-16 Broadcom Corporation Hardware-Accelerated Protocol Conversion in an Automotive Gateway Controller
US10057382B2 (en) * 2015-09-24 2018-08-21 Amrita Vishwa Vidyapeetham Intelligent “IoT gateway”
CN111835627B (en) * 2019-04-23 2022-04-26 华为技术有限公司 Communication method of vehicle-mounted gateway, vehicle-mounted gateway and intelligent vehicle
US20220014423A1 (en) * 2021-09-25 2022-01-13 Intel Corporation Systems, apparatus, and methods for data resiliency in an edge network environment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1850614A1 (en) * 2006-04-28 2007-10-31 Nokia Siemens Networks Gmbh & Co. Kg Advanced speech call items in networks comprising a MSC server and a media gateway
CN102263687A (en) * 2011-08-11 2011-11-30 武汉思为同飞网络技术有限公司 VPN (virtual private network) speed-up gateway in WAN (wide area network) as well as speed-up communication and method thereof
CN102904959A (en) * 2012-10-19 2013-01-30 李恺 Network accelerating method and gateway
CN104144156A (en) * 2013-05-10 2014-11-12 华为技术有限公司 Message processing method and device
WO2019041332A1 (en) * 2017-09-04 2019-03-07 深圳前海达闼云端智能科技有限公司 Method and system for optimizing transmission of acceleration network
KR20190074052A (en) * 2017-12-19 2019-06-27 김양수 Gateway Platform
CN112003792A (en) * 2020-07-23 2020-11-27 烽火通信科技股份有限公司 Software and hardware cooperative message acceleration method and device
CN113949599A (en) * 2021-10-18 2022-01-18 广州小鹏汽车科技有限公司 Method, device and system for transmitting vehicle data and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于MQTT协议的物联网通信系统的研究与实现;姚丹;谢雪松;杨建军;Han Fei;Wang Shuai;;信息通信(第03期);第33-35页 *

Also Published As

Publication number Publication date
CN114584582A (en) 2022-06-03

Similar Documents

Publication Publication Date Title
CN114584582B (en) In-vehicle message processing method and device, vehicle-mounted terminal and storage medium
EP3468106B1 (en) Gateway device, in-vehicle network system, transfer method, and program
US11177976B2 (en) Method and device for automatically implementing IOAM encapsulation and storage medium
EP3745657B1 (en) Gateway device, vehicle network system, transfer method, and program
EP3073698A1 (en) Method for processing address resolution protocol message, forwarder and controller
CN112104538B (en) DDS middleware communication method based on CAN bus data transmission
CN110995595B (en) Message sending method, device, storage medium and node equipment
CN113114706B (en) Multichannel Ethernet message processing method based on power chip
CN114679350B (en) SD-WAN-based link selection method, device and storage medium
CN112929210A (en) Method and system for gateway routing application plug-in built on WebFlux framework and application of gateway routing application plug-in
CN110691139B (en) Data transmission method, device, equipment and storage medium
CN111010346A (en) Message processing method, device, storage medium and device based on dynamic routing
CN107872341A (en) Configure the method and device of gateway device
CN108259350B (en) Message transmission method and device and machine-readable storage medium
CN115065637A (en) Method and device for transmitting computing power resource information and electronic equipment
CN104219178A (en) Openflow-based control message processing method, Openflow-based control message transmitting device, Openflow-based control message receiving device and Openflow-based control message processing system
CN110022344B (en) Communication method, non-transitory computer-readable storage medium, storage access system
CN114827188B (en) Platform equipment management method, system, terminal and storage medium
US8130765B2 (en) Method for processing data packets while communicating with a machine via one or more secondary networks
CN111147520B (en) Information processing method and device executed by firewall
CN114301619B (en) Industrial control firewall without hardware management port and implementation method of simulation management port of industrial control firewall
CN115801498A (en) Vehicle-mounted Ethernet gateway system and operation method
CN114221898B (en) Message processing method and network system
CN115842792B (en) Data processing method and device, storage medium and electronic equipment
US20230291650A1 (en) Communication control system and communication control method

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
GR01 Patent grant
GR01 Patent grant