CN114584582A - 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
CN114584582A
CN114584582A CN202210172998.8A CN202210172998A CN114584582A CN 114584582 A CN114584582 A CN 114584582A CN 202210172998 A CN202210172998 A CN 202210172998A CN 114584582 A CN114584582 A CN 114584582A
Authority
CN
China
Prior art keywords
message
protocol
accelerated
target
forwarding rule
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.)
Granted
Application number
CN202210172998.8A
Other languages
Chinese (zh)
Other versions
CN114584582B (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 Corp
Original Assignee
China Automotive Innovation Corp
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 Corp filed Critical China Automotive Innovation Corp
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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application discloses a device and a method for processing a message in a vehicle, a vehicle-mounted terminal and a storage medium, wherein the message to be transmitted is encapsulated by calling an encapsulation protocol of a target protocol type to obtain a protocol message, the protocol message is transmitted 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 associated information of the message to be accelerated and determines a target forwarding rule, and the message to be accelerated is accelerated and forwarded according to the target forwarding rule. According to the method and the device, a network communication protocol which can be sensed by a gateway is introduced, a specific message is packaged to obtain a protocol message, the protocol message is transmitted in an accelerated mode, and the communication efficiency is improved.

Description

In-vehicle message processing method and device, vehicle-mounted terminal and storage medium
Technical Field
The present application relates to the field of vehicle communication technologies, and in particular, to an in-vehicle message processing method and apparatus, a vehicle-mounted terminal, and a storage medium.
Background
Under the trend of intelligent networking development of automobiles, the traditional automobile Electronic Control Units (ECUs) are integrated according to functional domains, and are called Domain Controllers (DCUs). Compared with the traditional ECU, the domain controller generally has larger computing power, memory and more sensor interfaces, and simultaneously runs a plurality of software functions which are developed based on the AUTOSAR Adaptive Platform (AP) architecture and are externally released in the form of service. There are generally a plurality of domain controllers divided by functional domains in the vehicle, which access the in-vehicle ethernet. Services running on each domain controller communicate with each other through Ethernet messages, and routing and forwarding of the messages are completed through an in-vehicle Ethernet gateway. The AUTOSAR AP standard specifies the presentation form of a Service interface, and also specifies two underlying network communication mechanisms, namely Scalable Service-organized MiddlewarE over IP (SOME/IP) and Data Distribution Service for Real-Time Systems (DDS). In the aspect of QOS (quality of service), namely quality of service, of communication between services, SOME/IP is not specified, DDS has various QOS mechanisms, but is mainly guaranteed by reserving resources in an application program, and does not relate to accelerated forwarding of messages, and a gateway cannot sense the messages needing accelerated forwarding and accelerate forwarding of the messages.
The quality of network communication involves each node in a network communication path, if any node becomes a bottleneck, the quality of QOS can not reach the standard, and the in-vehicle Ethernet gateway is used as an important message forwarding node, which is particularly important. Therefore, it is desirable to design a network communication protocol that an ethernet gateway can sense the service QOS requirements, and a gateway that guarantees the service QOS based on the protocol.
Disclosure of Invention
In order to improve the transmission efficiency of the in-vehicle message on a communication path and provide low-delay network quality guarantee for the communication message of a specific service, the invention provides an in-vehicle message processing method, an in-vehicle message processing device, a vehicle-mounted terminal and a storage medium, wherein a gateway perceivable network communication protocol is introduced to accelerate the transmission of the specific message and improve the communication efficiency.
In one aspect, an embodiment of the present application provides an in-vehicle message processing method, including:
receiving a protocol message sent by a first domain controller of a vehicle;
when the protocol type identification in the protocol message indicates the target protocol type, taking the protocol message as a message to be accelerated and forwarded;
extracting forwarding rule associated information in the message to be accelerated and forwarded;
determining a target forwarding rule according to the forwarding rule association information;
and accelerating forwarding is carried out on the message to be accelerated and forwarded according to the target forwarding rule.
Further, the forwarding rule association information includes a source IP, a destination IP, a source port number, and a destination port number of the packet to be accelerated; the determining a 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 accelerated and forwarded;
and determining a target forwarding rule according to the target flow context.
Further, the determining a target flow context according to the forwarding rule association information of the packet to be accelerated includes:
inquiring whether a preset register has a target flow context corresponding to the forwarding rule association information of the message to be accelerated and forwarded;
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 is sent to a central processing unit for processing, so that the central processing unit newly builds the target flow context corresponding to the message to be accelerated, 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;
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 and forwarded when a protocol type identifier in the protocol message indicates a target protocol type; extracting forwarding rule associated information in the message to be accelerated and forwarded; determining a target forwarding rule according to the forwarding rule association information; and according to the target forwarding rule, performing accelerated forwarding on the message to be accelerated forwarded.
Further, the invoking an encapsulation protocol of the 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 comprises a protocol type identification, and the protocol type identification is used for indicating that the protocol message is a target protocol type.
Further, the method further comprises:
and receiving the protocol message forwarded by the Ethernet gateway of the vehicle, and de-encapsulating the protocol message.
In a second aspect, the present invention provides an in-vehicle message processing apparatus, including:
a receiving module: the system comprises a protocol message used for receiving a protocol message sent by a first domain controller of a vehicle;
an identification module: the message forwarding device is used for taking the protocol message as a message to be accelerated and forwarded when the protocol type identifier in the protocol message indicates a target protocol type;
the information extraction module: the forwarding rule association information is used for extracting the forwarding rule association information in the message to be accelerated and forwarded;
a target forwarding rule determination module: the forwarding rule association information is used for determining a target forwarding rule according to the forwarding rule association information;
the acceleration forwarding module: the message forwarding device is used for forwarding the message to be forwarded in an accelerated manner according to the target forwarding rule;
a generation module: for generating message to be sent
Packaging the module: a packaging protocol for calling the target protocol type is used for packaging the message to be sent to obtain a protocol message
A sending module: the Ethernet gateway is used for sending the protocol message to a vehicle so that the Ethernet gateway takes the protocol message as a message to be accelerated and forwarded when the protocol type identifier in the protocol message indicates a target protocol type; extracting forwarding rule associated information in the message to be accelerated and forwarded; determining a target forwarding rule according to the forwarding rule association information; and according to the target forwarding rule, performing accelerated forwarding on the message to be accelerated forwarded.
Further, the target forwarding rule determining module includes:
a target flow context determination module: the context of the target flow is determined according to the forwarding rule association information of the message to be accelerated and forwarded;
a determination module: for determining a target forwarding rule based on the target flow context.
Further, the target flow context determination module includes:
the query module: the target flow context is used for inquiring whether a preset register has a target flow context corresponding to the forwarding rule association information of the message to be accelerated and forwarded;
an acquisition module: the target flow context is acquired from the preset register if the query result is present;
a processing module: and if the query result is that the target flow context does not exist, sending the message to be accelerated and forwarded to a central processing unit for processing, so that the central processing unit newly establishes the target flow context corresponding to the message to be accelerated and forwarded, and storing the target flow context into the preset register.
Further, the in-vehicle message processing apparatus further includes:
a decapsulation module: and the protocol message is used for receiving the protocol message forwarded by the Ethernet gateway of the vehicle and de-encapsulating the protocol message.
In another aspect, a vehicle-mounted terminal is provided, which includes a processor and a memory, where the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the in-vehicle message processing method.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the in-vehicle message processing method as described above.
The in-vehicle message processing method and device, the vehicle-mounted terminal and the storage medium provided by the embodiment of the application have the following technical effects:
the method comprises the steps of obtaining a protocol message by introducing an encapsulation protocol to encapsulate the message to be sent, sending the protocol message to an Ethernet gateway, taking the protocol message as a message to be accelerated when the Ethernet gateway recognizes that a protocol type identifier of the protocol message indicates a target protocol type, extracting forwarding rule associated information of the message to be accelerated, determining a target forwarding rule, and accelerating forwarding the message to be accelerated according to the target forwarding rule, so that the transmission efficiency of the message in the vehicle on a communication path is improved, and the 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 the embodiments of the present application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of an in-vehicle message processing method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating another method for processing in-vehicle messages according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an in-vehicle message processing apparatus according to an embodiment of the present application;
fig. 4 is a block diagram of a hardware structure of an in-vehicle message processing vehicle-mounted terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or 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, 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 schematic flow diagram of an in-vehicle message processing method according to an embodiment of the present disclosure, in which when a protocol type of a protocol message sent by a first local controller of a vehicle is a target protocol type, the protocol message is used as a message to be accelerated, forwarding rule association information of the message to be accelerated is extracted, a target forwarding rule is determined according to the forwarding rule association information, and accelerated forwarding is performed on the message to be accelerated according to the target forwarding rule. The in-vehicle message processing method can accurately identify the type of the protocol message, and can accelerate the forwarding of the protocol message needing accelerated forwarding, thereby improving the communication efficiency of the vehicle communication message.
The specification provides the method steps as in the examples or flowcharts, but may include more or fewer steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel or multi-threaded environments) according to the embodiments or methods shown in the drawings. Specifically, 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 identification in the protocol message indicates the target protocol type, taking the protocol message as a message to be accelerated and forwarded;
s103: extracting forwarding rule associated information in the message to be accelerated and forwarded;
in this embodiment of the present application, optionally, the forwarding rule association information in the message to be forwarded with an accelerated speed includes a source IP, a destination IP, a source port number, and a destination port number of the message to be forwarded with an accelerated speed, and the sending end and the receiving end of the message to be forwarded with an accelerated speed may be determined by the forwarding rule association information.
S104: determining a target forwarding rule according to the forwarding rule association information;
in an embodiment of the present application, a target flow context of a to-be-accelerated forwarding packet may be queried in a preset register by using a combination of a source IP, a destination IP, a source port number, and a destination port number of the to-be-accelerated forwarding packet on an acceleration chip of an ethernet gateway according to a source IP, a destination IP, a source port number, and a destination port number of the extracted to-be-accelerated forwarding packet; the preset register stores forwarding rule association information and a corresponding target flow context, the target flow context is used for indicating a sending end and a receiving end of a message to be accelerated, the forwarding rule of the message to be accelerated is determined according to the inquired target flow context, and then the message to be accelerated is accelerated and forwarded according to the forwarding rule.
Optionally, a method for determining a target flow context corresponding to a packet to be accelerated for forwarding is as follows:
whether a target flow context corresponding to the forwarding rule association information of the message to be accelerated forwarded exists in a preset register can be inquired;
if the inquired result is present, acquiring the inquired target stream context from a preset register;
if the query result is that the message does not exist, the message to be accelerated is sent to the central processing unit for processing, a target flow context corresponding to the message to be accelerated is newly built through the central processing unit, the newly built target flow context is stored in a preset register, and the preset register is updated.
Determining a target forwarding rule of a message to be forwarded in an accelerated manner according to a target flow context, wherein the target forwarding rule is used for indicating how the message to be forwarded in an accelerated manner, and includes but is not limited to forwarding from which network port of a switch and a sequence of a next hop passing through and an outgoing interface in a forwarding process, and the like; optionally, the target forwarding rule may be adjusted as needed.
S105: according to the target forwarding rule, the message to be accelerated forwarded is accelerated and forwarded;
optionally, an acceleration chip, such as an fpga (field Programmable Gate array), that is, a field Programmable Gate array, may be disposed in the ethernet gateway, and the acceleration chip accelerates forwarding of the message to be accelerated, so as to improve the forwarding efficiency of the message to be accelerated.
In this embodiment, a method for encapsulating a packet to be sent to obtain a protocol packet is further provided, as shown in fig. 2, the method includes:
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, a protocol type identification is contained in the preset protocol identification message, and the protocol type identification is used for indicating that the protocol message is a target protocol type; and splicing a preset protocol identification message with a protocol type identification with a message to be sent to obtain the protocol message containing the protocol type identification.
S203: 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 and forwarded when a protocol type identifier in the protocol message indicates a target protocol type; extracting forwarding rule associated information in the message to be accelerated and forwarded; determining a target forwarding rule according to the forwarding rule association information; and accelerating forwarding is carried out on the message to be accelerated and forwarded according to the target forwarding rule.
And 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, taking the protocol message as the message to be accelerated and forwarding the message to be accelerated according to the method in the steps S103-S105.
In this embodiment, optionally, the first domain controller may further receive a protocol packet forwarded by the ethernet gateway of the vehicle in an accelerated manner, and decapsulate the received protocol packet.
The traditional AUTOSAR Adaptive Platform (AP) communication management function comprises SOME/IP and DDS network binding modes, and the message is encapsulated and forwarded through an SOME/IP protocol and a DDS protocol respectively, the SOME/IP protocol does not provide QOS service and cannot improve the communication efficiency of the message, the DDS protocol provides various QOS mechanisms for improving the communication quality, but is mainly realized by reserving resources at an application program end and does not relate to accelerated forwarding of the message on a transmission path, and an Ethernet gateway cannot sense the QOS requirement of the DDS protocol and accelerate forwarding of the message.
According to the in-vehicle message processing method, the protocol message is obtained by introducing the encapsulation protocol to encapsulate the message to be sent, the protocol message is sent to the Ethernet gateway, when the Ethernet gateway identifies 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, the forwarding rule association information of the message to be accelerated is extracted, the target forwarding rule is determined, the message to be accelerated is accelerated and forwarded according to the target forwarding rule, the propagation delay of the message to be accelerated is reduced, the transmission efficiency of the in-vehicle message on a communication path is improved, and the low-delay network quality guarantee is provided for the communication message of a specific service.
On the other hand, an embodiment of the present application further provides an in-vehicle message processing apparatus, and fig. 3 is a schematic structural diagram of the in-vehicle message processing apparatus provided in the embodiment of the present application, and as shown in fig. 3, the apparatus 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 use the protocol packet as a packet to be forwarded with acceleration when the protocol type identifier in the protocol packet indicates a target protocol type;
the information extraction module 303 is configured to extract forwarding rule association information in the message to be accelerated for forwarding;
the target forwarding rule determining module 304 is configured to determine a target forwarding rule according to the forwarding rule association information;
the accelerated forwarding module 305 is configured to accelerate forwarding of the packet to be accelerated 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 when the protocol type identifier in the protocol packet indicates the target protocol type, the ethernet gateway takes the protocol packet as a packet to be forwarded with acceleration; extracting forwarding rule associated information in the message to be accelerated and forwarded; determining a target forwarding rule according to the forwarding rule association information; and according to the target forwarding rule, performing accelerated forwarding on the message to be accelerated forwarded.
Further, the target forwarding rule determining module 304 includes:
a target flow context determination module: the context of the target flow is determined according to the forwarding rule association information of the message to be accelerated and forwarded;
a determination module: for determining the target forwarding rules according to the target flow context.
Further, the target flow context determination module includes:
the query module: the message forwarding 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 or not;
an acquisition module: the method comprises the steps of obtaining a target flow context from a preset register if a query result is present;
a processing module: and if the query result is that the target flow context does not exist, sending the message to be accelerated to be forwarded to the central processing unit for processing so that the central processing unit newly establishes the target flow context corresponding to the message to be accelerated to be forwarded and stores the target flow context into a preset register.
Further, the in-vehicle message processing apparatus further includes:
a decapsulation module: and the protocol message is used for receiving the protocol message forwarded by the Ethernet gateway of the vehicle and de-encapsulating the protocol message.
The device and the method in the embodiment of the 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 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, and the processor may execute various functional applications by executing the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, 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 the processor access to the memory.
The method 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: a processor, a network interface, and a memory, wherein the processor, the network interface, and the memory may be connected by a bus or other means.
The processor (or CPU) is a computing core and a control core of the vehicle-mounted terminal. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI, mobile communication interface, etc.). The Memory (Memory) is used for storing programs and data. It is understood that the memory herein may be a high-speed RAM storage device, or may be a non-volatile storage device (non-volatile memory), such as at least one magnetic disk storage device; optionally, at least one memory device located remotely from the processor. The memory provides storage space that stores an operating system of the electronic device, which may include, but is not limited to: a Windows system (an operating system), a Linux system (an operating system), an Android system, an IOS system, etc., which are not limited in the present invention; also, one or more instructions, which may be one or more computer programs (including program code), are stored in the memory space and are adapted to be loaded and executed by the processor. In an embodiment of this specification, the processor loads and executes one or more instructions stored in the memory to implement the in-vehicle message processing method provided in the above method embodiment.
An embodiment of the present invention further provides 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 a set of instructions related to implementing an in-vehicle message processing method, and the at least one instruction, the at least one program, the code set, or the set of instructions are loaded and executed by the processor to implement the in-vehicle message processing method provided by the foregoing method embodiment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and various media capable of storing program codes.
The in-vehicle message processing method, the in-vehicle message processing device, the vehicle-mounted terminal and the storage medium are applied to the technical field of vehicle communication, a protocol message is obtained by introducing an encapsulation protocol to encapsulate a message to be sent, the protocol message is sent to the Ethernet gateway, the Ethernet gateway takes the protocol message as a message to be accelerated and forwarded when recognizing that a protocol type identifier of the protocol message indicates a target protocol type, forwarding rule associated 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 according to the target forwarding rule, the transmission efficiency of the in-vehicle message on a communication path is improved, and low-delay and high-bandwidth network quality guarantee is provided for the communication message of specific service.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And that specific embodiments have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may 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 may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
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 instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, as any modifications, equivalents, improvements and the like within the spirit and principle of the present invention should be included in the present invention.

Claims (10)

1. An in-vehicle message processing method, comprising:
receiving a protocol message sent by a first domain controller of a vehicle;
when the protocol type identification in the protocol message indicates the target protocol type, taking the protocol message as a message to be accelerated to be forwarded;
extracting forwarding rule associated information in the message to be accelerated and forwarded;
determining a target forwarding rule according to the forwarding rule association information;
and according to the target forwarding rule, performing accelerated forwarding on the message to be accelerated forwarded.
2. The in-vehicle message processing method 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 accelerated; the determining a 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 accelerated and forwarded;
and determining a target forwarding rule according to the target flow context.
3. The in-vehicle message processing method according to claim 2, wherein the determining a target flow context according to the forwarding rule association information of the message to be accelerated-forwarded includes:
inquiring whether a preset register has a target flow context corresponding to the forwarding rule association information of the message to be accelerated and forwarded;
and if so, acquiring the target stream context from the preset register.
4. The in-vehicle message processing method according to claim 3, characterized by further comprising:
if the target flow context does not exist, the message to be accelerated is sent to a central processing unit for processing, so that the central processing unit newly builds the target flow context corresponding to the message to be accelerated, and the target flow context is stored in the preset register.
5. An in-vehicle message processing method, comprising:
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;
sending the protocol message to an Ethernet gateway of a vehicle, so that when the protocol type identifier in the protocol message indicates a target protocol type, the Ethernet gateway takes the protocol message as a message to be accelerated to be forwarded; extracting forwarding rule associated information in the message to be accelerated and forwarded; determining a target forwarding rule according to the forwarding rule association information; and according to the target forwarding rule, performing accelerated forwarding on the message to be accelerated forwarded.
6. The in-vehicle message processing method according to claim 5, wherein the calling an encapsulation protocol of a target protocol type to encapsulate the message to be sent to obtain a protocol message 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 comprises a protocol type identification, and the protocol type identification is used for indicating 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 of the vehicle, and de-encapsulating the protocol message.
8. An in-vehicle message processing apparatus, comprising:
a receiving module: the system comprises a protocol message used for receiving a protocol message sent by a first domain controller of a vehicle;
an identification module: the message forwarding device is used for taking the protocol message as a message to be accelerated and forwarded when the protocol type identifier in the protocol message indicates a target protocol type;
the information extraction module: the forwarding rule association information is used for extracting the forwarding rule association information in the message to be accelerated and forwarded;
a target forwarding rule determination module: the forwarding rule association information is used for determining a target forwarding rule according to the forwarding rule association information;
the acceleration forwarding module: and the message forwarding module is used for forwarding the message to be forwarded in an accelerated manner 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 program is stored in the memory, and the at least one instruction or the at least one program is loaded by the processor and executed to implement the in-vehicle message processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the in-vehicle message processing method according to 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 true CN114584582A (en) 2022-06-03
CN114584582B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150187A (en) * 2022-07-28 2022-10-04 中汽创智科技有限公司 Vehicle-mounted bus message security detection method and device, vehicle-mounted terminal and storage medium
CN115442173A (en) * 2022-06-07 2022-12-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
CN117572804A (en) * 2023-11-30 2024-02-20 零束科技有限公司 Dynamic data acquisition system, acquisition method and processing method of intelligent network-connected automobile
CN118233387A (en) * 2024-05-27 2024-06-21 成都赛力斯科技有限公司 Message transmission method, vehicle-mounted gateway and storage medium

Citations (12)

* 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
US20170072876A1 (en) * 2015-09-14 2017-03-16 Broadcom Corporation Hardware-Accelerated Protocol Conversion in an Automotive Gateway Controller
US20170094033A1 (en) * 2015-09-24 2017-03-30 Amrita Vishwa Vidyapeetham Intelligent "IoT Gateway"
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
US20210126917A1 (en) * 2019-04-23 2021-04-29 Huawei Technologies Co., Ltd. In-Vehicle Gateway Communication Method, In-Vehicle 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
CN113949599A (en) * 2021-10-18 2022-01-18 广州小鹏汽车科技有限公司 Method, device and system for transmitting vehicle data and computer readable storage medium

Patent Citations (12)

* 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
US20170072876A1 (en) * 2015-09-14 2017-03-16 Broadcom Corporation Hardware-Accelerated Protocol Conversion in an Automotive Gateway Controller
US20170094033A1 (en) * 2015-09-24 2017-03-30 Amrita Vishwa Vidyapeetham Intelligent "IoT Gateway"
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
US20210126917A1 (en) * 2019-04-23 2021-04-29 Huawei Technologies Co., Ltd. In-Vehicle Gateway Communication Method, In-Vehicle Gateway, and Intelligent Vehicle
CN112003792A (en) * 2020-07-23 2020-11-27 烽火通信科技股份有限公司 Software and hardware cooperative message acceleration method and device
US20220014423A1 (en) * 2021-09-25 2022-01-13 Intel Corporation Systems, apparatus, and methods for data resiliency in an edge network environment
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
姚丹;谢雪松;杨建军;HAN FEI;WANG SHUAI;: "基于MQTT协议的物联网通信系统的研究与实现", 信息通信, no. 03, pages 33 - 35 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442173A (en) * 2022-06-07 2022-12-06 北京车和家信息技术有限公司 Vehicle message forwarding and processing method and device, electronic equipment and storage medium
CN115442173B (en) * 2022-06-07 2024-02-06 北京车和家信息技术有限公司 Vehicle message forwarding and processing method and device, electronic equipment and storage medium
CN115150187A (en) * 2022-07-28 2022-10-04 中汽创智科技有限公司 Vehicle-mounted bus message security detection method and device, vehicle-mounted terminal and storage medium
CN115150187B (en) * 2022-07-28 2024-04-26 中汽创智科技有限公司 Vehicle-mounted bus message security detection method and device, vehicle-mounted terminal and storage medium
CN115580505A (en) * 2022-09-05 2023-01-06 欣旺达电动汽车电池有限公司 Message processing method and device, electronic equipment and computer readable storage medium
CN117572804A (en) * 2023-11-30 2024-02-20 零束科技有限公司 Dynamic data acquisition system, acquisition method and processing method of intelligent network-connected automobile
CN117572804B (en) * 2023-11-30 2024-08-02 零束科技有限公司 Dynamic data acquisition system, acquisition method and processing method of intelligent network-connected automobile
CN118233387A (en) * 2024-05-27 2024-06-21 成都赛力斯科技有限公司 Message transmission method, vehicle-mounted gateway and storage medium
CN118233387B (en) * 2024-05-27 2024-07-19 成都赛力斯科技有限公司 Message transmission method, vehicle-mounted gateway and storage medium

Also Published As

Publication number Publication date
CN114584582B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
CN114584582B (en) In-vehicle message processing method and device, vehicle-mounted terminal and storage medium
EP3468106A1 (en) Gateway device, in-vehicle network system, transfer method, and program
CN108965204B (en) Method and device for automatically realizing IOAM packaging
CN104144156B (en) Message processing method and device
CN113168332B (en) Data processing method and device and mobile terminal
EP2608585A1 (en) Method, device and system for triggering terminal operation
EP3745657A1 (en) Gateway device, vehicle network system, transfer method, and program
CN112929210B (en) Method and system for gateway routing application plug-in built on WebFlux framework and application of gateway routing application plug-in
CN112466303B (en) Device discovery method, device, storage medium, and electronic apparatus
CN112104538A (en) DDS middleware communication method based on CAN bus data transmission
CN113891396A (en) Data packet processing method and device, computer equipment and storage medium
CN117082137A (en) Communication method, device, equipment and medium for maintaining OTA upgrade refreshing mode
CN114500453B (en) Identification analysis method and device
CN115361327A (en) Method, device, terminal and medium for automatically testing network card NCSI (network control interface Standard) command
CN111865809B (en) Equipment state sensing method, system and switch based on protocol non-sensing forwarding
WO2024174447A1 (en) Data processing method and apparatus, storage medium and electronic device
CN110099011B (en) Method and system for accessing entity gateway to virtual home gateway
CN115801498A (en) Vehicle-mounted Ethernet gateway system and operation method
CN108259350B (en) Message transmission method and device and machine-readable storage medium
CN113076128B (en) Method, device, electronic equipment and storage medium for robot configuration
CN107544928B (en) Direct memory access control device and method for operating the same
CN114827188B (en) Platform equipment management method, system, terminal and storage medium
CN114301619B (en) Industrial control firewall without hardware management port and implementation method of simulation management port of industrial control firewall
CN114866534B (en) Image processing method, device, equipment and medium
CN108234362B (en) VXLAN message accelerated forwarding method and system, VNF and NFVI

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