Data processing method and device, vehicle-mounted computing platform and vehicle
By introducing rule management plug-ins into the network management module of the adaptive automotive open architecture system to process external network data packets, the problem of lack of data security management in the system is solved, and safe transmission of vehicle data and stable operation of the system are achieved.
Patent Information
- Application Number
- CN202310372612.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-10-15
AI Technical Summary
The lack of data security management functions in the adaptive automotive open architecture system leads to network attacks such as DoS attacks, threatening the stability and security of the vehicle system.
Introduce the rule management plug-in into the network management module of the adaptive automotive open architecture system, obtain the data packet processing rules by loading the rule configuration file, and process the data packets sent or received by the external network to ensure the security of data transmission.
It improves the security of the vehicle network, prevents data leakage and system paralysis, and ensures the safe operation of the vehicle system.
Smart Images

Figure CN118784663A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle safety technology, and in particular to a data processing method, device, vehicle-mounted computing platform and vehicle. Background Art
[0002] The development of intelligent and connected vehicles requires high-performance computing power, flexible and rich software functions, and fast network communication capabilities, which has given rise to a new generation of electronic and electrical architecture based on vehicle networks. In this context, the Adaptive Automotive Open System Architecture (AP AUTOSAR) has been widely promoted as a standardized architecture for high-performance electronic control units (ECUs) that support the new generation of electronic and electrical architecture.
[0003] At present, the on-board central computing unit equipped with the adaptive open architecture system usually uses the Transmission Control Protocol (TCP) or the User Datagram Protocol (UDP) to exchange data with the external network. However, the network management module in the adaptive open architecture system currently provides functions limited to the coordinated sleep and wake-up of each ECU, and does not have the data security management function, which provides an opportunity for network attacks. For example, network attacks represented by denial of service (DoS) also use TCP / UDP and other protocols as carriers to disguise as normal network access to carry out attack actions. DoS attacks can cause the system's available computing resources, bandwidth resources, etc. to be exhausted, or cause program buffer overflow errors, etc., resulting in the vehicle system or software being unable to provide normal services, and ultimately causing the vehicle system to be paralyzed or crashed. This will have serious consequences in the domain controller fusion, cloud-based functional services, and more intelligent high-level autonomous driving stages under the new generation of electronic and electrical architecture. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, device, vehicle-mounted computing platform and vehicle based on an adaptive vehicle open architecture system.
[0005] On the one hand, an embodiment of the present application discloses a data processing method based on an adaptive automobile open architecture system, the method comprising:
[0006] Obtaining data packets to be processed; the data packets to be processed are data packets sent from an external network to the vehicle network, or data packets sent from the vehicle network to an external network;
[0007] The data packets to be processed are processed based on the data packet processing rules to obtain the target data packets; the data packet processing rules are obtained by loading the rule configuration file based on the rule management plug-in; the rule management plug-in is configured in the network management module; the network management module is a module for managing the vehicle network in the adaptive vehicle open architecture system or a module for detecting the transmission behavior of the vehicle network;
[0008] The target data packet is transmitted in the vehicle network, or the target data packet is sent to an external network.
[0009] In some optional embodiments, before obtaining the data packet to be processed, the method further includes:
[0010] Obtaining a rule configuration file from a preset storage medium based on a rule management plug-in, and parsing the rule configuration file to obtain a data packet processing rule;
[0011] Based on the rule management plug-in, the data packet processing rules are loaded into the memory of the adaptive automotive open architecture system for operation; the data packet processing rules running in the memory are used to process the data packets to be processed.
[0012] In some optional embodiments, the method further includes:
[0013] Modify the data packet processing rule based on the rule management plug-in to obtain the modified data packet processing rule;
[0014] The data packet to be processed is processed based on the modified data packet processing rule to obtain the target data packet.
[0015] In some optional embodiments, obtaining a data packet to be processed includes:
[0016] At a preset detection position, a data packet to be processed is obtained based on a hook function to process the data packet to be processed; the preset detection position is at least one position configured in the vehicle network to process the data packet to be processed.
[0017] In some optional embodiments, the preset detection position includes an advance routing detection position and an input detection position; processing the data packet to be processed based on the data packet processing rule to obtain the target data packet includes:
[0018] Determining in the data packet processing rules respectively a first data packet processing rule corresponding to the advance routing detection position and a second data packet processing rule corresponding to the input detection position;
[0019] Processing the data packet to be processed based on the first data packet processing rule to obtain a first processing result;
[0020] Determining a routing target object of the first processing result;
[0021] When it is determined that the routing target object of the first processing result is an object in the vehicle network, the first processing result is processed based on the second data packet processing rule to obtain a target data packet.
[0022] In some optional embodiments, the preset detection position further includes a forwarding detection position; processing the data packet to be processed based on the data packet processing rule to obtain the target data packet includes:
[0023] In the case where it is determined that the route selection of the first processing result is not an object in the vehicle network, determining a third data packet processing rule corresponding to the forwarding detection position in the data packet processing rule;
[0024] The first processing result is processed based on the third data packet processing rule to obtain a target data packet.
[0025] In some optional embodiments, the preset detection position includes an output detection position and a post-routing detection position; processing the data packet to be processed based on the data packet processing rule to obtain the target data packet includes:
[0026] Determining, in the data packet processing rules, a fourth data packet processing rule corresponding to the output detection position and a fifth data packet processing rule corresponding to the post-routing detection position;
[0027] Processing the data packet to be processed based on the fourth data packet processing rule to obtain a second processing result;
[0028] The second processing result is processed based on the fifth data packet processing rule to obtain a target data packet.
[0029] On the other hand, an embodiment of the present application discloses a data processing device based on an adaptive automotive open architecture system, the device comprising:
[0030] The module for acquiring data packets to be processed is used to acquire data packets to be processed; the data packets to be processed are data packets sent from the external network to the vehicle network, or data packets sent from the vehicle network to the external network;
[0031] The data packet processing module is used to process the data packets to be processed based on the data packet processing rules to obtain the target data packets; the data packet processing rules are obtained by loading the rule configuration file based on the rule management plug-in; the rule management plug-in is configured in the network management module; the network management module is a module for managing the vehicle network in the adaptive vehicle open architecture system or a module for detecting the transmission behavior of the vehicle network;
[0032] The transmission module is used to transmit the target data packet in the vehicle network, or send the target data packet to an external network.
[0033] In some optional embodiments, the device further comprises:
[0034] A rule configuration file acquisition module is used to acquire a rule configuration file from a preset storage medium based on a rule management plug-in, and parse the rule configuration file to obtain a data packet processing rule;
[0035] The data packet processing rule loading module is used to load the data packet processing rules into the memory of the adaptive automotive open architecture system for operation based on the rule management plug-in; the data packet processing rules running in the memory are used to process the data packets to be processed.
[0036] In some optional embodiments, the device further comprises:
[0037] A rule modification module is used to modify the data packet processing rules based on the rule management plug-in to obtain the modified data packet processing rules;
[0038] The data packet processing module is used to process the data packet to be processed based on the modified data packet processing rule to obtain the target data packet.
[0039] In some optional embodiments, the module for acquiring data packets to be processed includes:
[0040] The unit for acquiring data packets to be processed is used to acquire data packets to be processed based on a hook function at a preset detection position so as to process the data packets to be processed; the preset detection position is at least one position configured in the vehicle network for processing data packets to be processed.
[0041] In some optional embodiments, the preset detection position includes an advance routing detection position and an input detection position; and the data packet processing module includes:
[0042] A first data packet processing rule and a second data packet processing rule determining unit, configured to respectively determine in the data packet processing rules a first data packet processing rule corresponding to the advance routing detection position and a second data packet processing rule corresponding to the input detection position;
[0043] A first processing result determining unit, configured to process the data packet to be processed based on the first data packet processing rule to obtain a first processing result;
[0044] A routing target object unit, used to determine a routing target object of the first processing result;
[0045] The target data packet determining unit is used to process the first processing result based on the second data packet processing rule to obtain the target data packet when it is determined that the routing target object of the first processing result is an object in the vehicle network.
[0046] In some optional embodiments, the preset detection position also includes a forwarding detection position; and the data packet processing module includes:
[0047] A third data packet processing rule determining unit, configured to determine a third data packet processing rule corresponding to the forwarding detection position in the data packet processing rule when it is determined that the routing selection of the first processing result is not an object in the vehicle network;
[0048] The target data packet determining unit is used to process the first processing result based on the third data packet processing rule to obtain the target data packet.
[0049] In some optional embodiments, the preset detection position includes an output detection position and a post-routing detection position; and the data packet processing module includes:
[0050] A fourth data packet processing rule and a fifth data packet processing rule determining unit, used to determine, in the data packet processing rules, a fourth data packet processing rule corresponding to the output detection position and a fifth data packet processing rule corresponding to the post-routing detection position;
[0051] A second processing result determining unit, configured to process the data packet to be processed based on the fourth data packet processing rule to obtain a second processing result;
[0052] The target data packet determining unit is used to process the second processing result based on the fifth data packet processing rule to obtain the target data packet.
[0053] On the other hand, the embodiment of the present application discloses an in-vehicle computing platform, in which an adaptive automotive open architecture system runs;
[0054] The adaptive automobile open architecture system can implement the data processing method based on the adaptive automobile open architecture system as described above.
[0055] On the other hand, an embodiment of the present application discloses a vehicle, which includes the on-board computing platform as described above.
[0056] On the other hand, an electronic device for data processing based on an adaptive automobile open architecture system is provided. The electronic device includes a processor and a memory. The memory stores at least one instruction or at least one program. The at least one instruction or at least one program is loaded by the processor and executes the data processing method based on the adaptive automobile open architecture system as described above.
[0057] On the other hand, 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 at least one program is loaded and executed by a processor to implement the data processing method based on the adaptive automotive open architecture system as described above.
[0058] On the other hand, a computer program product is provided, which includes a computer program stored in a readable storage medium, and at least one processor of a computer device reads and executes the computer program from the readable storage medium, so that the computer device executes the data processing method based on the adaptive automotive open architecture system as described above.
[0059] The data processing method, device, vehicle-mounted computing platform and vehicle based on the adaptive vehicle open architecture system provided by the embodiments of the present application have the following technical effects:
[0060] By utilizing the rule management plug-in configured in the network management module of the adaptive automotive open architecture system, the rule configuration file is loaded to obtain the data processing rules, and the data packets sent from the external network to the vehicle network or the data packets sent from the vehicle network to the external network are processed based on the data packet processing rules to obtain the target data packets, which are then transmitted or sent, thereby improving the security of the vehicle network and ensuring the safe operation of the vehicle system. At the same time, it can avoid the leakage of vehicle safety data and improve the safety of vehicle driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0062] Figure 1 is a schematic diagram of an application environment of a data processing method based on an adaptive automobile open architecture system provided in an embodiment of the present application;
[0063] Figure 2 It is a flow chart of data processing based on an adaptive automobile open architecture system provided by an embodiment of the present application;
[0064] Figure 3 It is a structural schematic diagram of a data processing device based on an adaptive automobile open architecture system provided in an embodiment of the present application;
[0065] Figure 4 It is a hardware structure block diagram of a server of a data processing method based on an adaptive automobile open architecture system provided according to an exemplary embodiment. DETAILED DESCRIPTION
[0066] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0067] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0068] The realization of intelligent connected vehicles relies on multi-party communication between vehicles, roads (infrastructure) and clouds. As the hub of data interaction, vehicles need to receive sensor data on the one hand, and also interact with other vehicles or cloud networks on the other hand. At present, the electronic and electrical architecture of the adaptive automotive open architecture adopts a domain-centric or central computing + regional control electronic and electrical architecture. The central gateway or central computing unit is the hub of the local area network inside the vehicle and a portal to the external Internet. However, the network management module in the adaptive automotive open architecture is mainly used to coordinate the switching of the underlying network mode and realize the regular sleep and wake-up of the communication bus to save energy. It does not have network security-related functions. When an intelligent network car exchanges data with other devices, the vehicle network may be exposed to security risks, such as stealing vehicle component information and confidential information, launching DoS attacks on the vehicle, and obtaining access rights to the vehicle.
[0069] In view of this, the embodiments of the present application provide a data processing method, device, on-board computing platform and vehicle based on an adaptive automobile open architecture system, which utilizes a rule management plug-in configured in a network management module of the adaptive automobile open architecture system to load a rule configuration file to obtain data processing rules, and based on the data packet processing rules, processes data packets sent from an external network to the on-board network or data packets sent from the on-board network to an external network to obtain target data packets, and then transmits or sends the target data packets, thereby improving the security of the on-board network and ensuring the safe operation of the vehicle system. At the same time, it can avoid the leakage of vehicle safety data and improve the safety of vehicle driving.
[0070] See also Figure 1 , Figure 1 1 is a schematic diagram of an application environment of a data processing method based on an adaptive automotive open architecture system provided in an embodiment of the present application, and the application environment includes an electronic device 101 and a vehicle 103. The electronic device 101 and the vehicle 103 can be directly or indirectly connected via wired or wireless communication, and the present application does not limit this.
[0071] In the embodiment of the present application, the electronic device 101 sends a data packet to the vehicle 103 through an external network, or receives a data packet sent by the vehicle 103 through an external network. Optionally, the electronic device 101 can be a mobile electronic terminal or a server. Among them, the electronic terminal includes but is not limited to smart phones, tablet computers, laptops, desktop computers, smart TVs, smart speakers, wearable smart devices, smart vehicle terminals, smart traffic lights, roadside units and other devices. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
[0072] In an embodiment of the present application, vehicle 103 may be an intelligent networked vehicle, and vehicle 103 includes one or more domain-centered on-board computing platforms or electronic control units, and the on-board computing units or electronic control units communicate with each other through the on-board network. Among them, the on-board computing platform is equipped with an adaptive automotive open architecture system. The network management unit in the adaptive automotive open architecture system is configured with rule management middleware. The rule management plug-in can load the rule configuration file to obtain data processing rules. The on-board computing platform can process data packets sent from the external network to the on-board network or data packets sent from the on-board network to the external network based on the data packet processing rules to obtain a target data packet, and then transmit the target data packet within the on-board network or send it to the electronic device 101 through an external network.
[0073] It should be noted that Figure 1 This is just an example. In other scenarios, other implementation environments may also be included.
[0074] The following describes a specific embodiment of a data processing method based on an adaptive automotive open architecture system of the present application. Figure 2It is a flowchart of data processing based on an adaptive automotive open architecture system provided by an embodiment of the present application. This specification provides method operation steps such as the embodiment or flowchart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the actual system or server product is executed, it can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment) according to the method shown in the embodiment or the accompanying drawings. Specifically, Figure 2 As shown, the method may include:
[0075] S201: Obtain a data packet to be processed.
[0076] In the embodiment of the present application, when the vehicle exchanges data with the electronic device, the electronic device may send data to the vehicle, and the vehicle may also send data to the electronic device. The data is transmitted in the form of data packets in the communication link between the vehicle and the electronic device. When the data packet arrives at the on-board computing platform, the on-board computing platform can process the data packet according to the running data packet processing rules, thereby ensuring that the data packet sent to the on-board network or to the external network is a safe data packet.
[0077] In the embodiment of the present application, an adaptive automotive open architecture system is installed in the vehicle computing platform. The adaptive automotive open architecture system is provided with a network management module for managing the vehicle network. Based on the middleware technology, a rule management plug-in is provided on the network management module, and the pre-configured rule configuration file is loaded by using the rule management plug-in, so that the data packet processing rules can be obtained.
[0078] In some embodiments, the adaptive automotive open architecture system is provided with an intrusion detection module for detecting vehicle network transmission behavior. A rule management plug-in can also be provided on the network management module based on middleware technology, so that the pre-configured rule configuration file can be loaded using the rule management plug-in to obtain data packet processing rules.
[0079] In the embodiment of the present application, before the vehicle interacts with the electronic device, the adaptive automotive open architecture system in the vehicle computing platform can obtain a rule configuration file from a preset storage medium based on a rule management plug-in, and parse the rule configuration file to obtain a data packet processing rule. The data packet processing rule is loaded into the memory of the adaptive automotive open architecture system based on the rule management plug-in for operation, and the data packet processing rule running in the memory is used to process the data packet to be processed.
[0080] In the embodiment of the present application, the network management module or intrusion detection module in the adaptive automobile open architecture system is connected to the rule management plug-in by calling the interface. When the adaptive automobile open architecture system in the vehicle computing platform is started, or when a data packet is received from the external network to the vehicle network, or when the vehicle network sends a data packet to the external network, the adaptive automobile open architecture system can call the rule management plug-in configured thereon to run by triggering the network management module or the intrusion detection module. Specifically, a configuration file reading interface is provided in the rule management plug-in, and the network management module or the intrusion detection module reads the configuration file from the preset storage medium by calling the configuration file reading interface, so that the rule management plug-in reads the rule configuration file stored in the preset storage medium. Optionally, the preset storage medium can be a storage disk in the vehicle computing platform, or a mobile storage medium connected to the vehicle computing platform, and the mobile storage medium includes but is not limited to various media that can store program codes, such as a U disk, a read-only memory, a random access memory, a mobile hard disk, a magnetic disk or an optical disk. The network management module or the intrusion detection module is a module located in the user space in the adaptive automobile open architecture system. Since the rule management plug-in is configured on the network management module or the intrusion detection module, when the rule management plug-in obtains the rule configuration file from the preset storage medium, it needs to parse the rule configuration file and pass the parsed packet processing rules to the kernel space for execution, and then the packet processing rules running in the memory can be used to process the packets to be processed.
[0081] In an embodiment of the present application, the protocol stack of the vehicle network can be an open system interconnection (OSI) reference model structure. By capturing the data packet to be processed in the network layer, and processing the data packet to be processed based on the data processing rules. The data packet to be processed can be a data packet sent from the external network to the vehicle network, or it can be a data packet sent from the vehicle network to the external network. When the adaptive automobile open architecture system obtains the data packet to be processed, a preset detection position is set in the network layer, and the preset detection position is configured in the vehicle network, at least one position for processing the data packet to be processed. A hook function is configured at the preset detection position, and the data packet to be processed is obtained based on the hook function to process the data packet to be processed. Taking the data packets to be processed as an example, which can be data packets sent from an external network to the vehicle network, when data from an external network, such as a wifi module, an external communication unit, or an external diagnostic device, reaches the corresponding network card node in the vehicle computing platform (such as wlan0, ethn, or eth1), it will enter the network layer of the vehicle network protocol stack. These data packets will be captured at different locations of the flow direction of the kernel space by setting preset detection positions at different locations, and then the data packet processing rules are called separately to process these data packets. Those that do not comply with the rules will be discarded, and the target data packets that can pass the rules and be released can be received by the application.
[0082] S203: Process the data packet to be processed based on the data packet processing rule to obtain the target data packet.
[0083] In an embodiment of the present application, by setting one or more preset detection locations in the network layer and configuring corresponding data packet processing rules for each preset detection location in the rule configuration file, corresponding data packet processing rules can be used for processing according to each preset detection location.
[0084] In the embodiment of the present application, the preset detection positions set in the network layer may include an advance routing detection position, an input detection position, a forwarding detection position, an output detection position, and a post-routing detection position. Each detection position corresponds to its own data packet processing rule, and the data packet to be processed obtained by each detection position is processed using the corresponding data packet processing rule to obtain the target data packet.
[0085] As an optional implementation, the preset detection position includes an advance routing detection position and an input detection position; processing the data packet to be processed based on the data packet processing rule to obtain the target data packet may include: determining the first data packet processing rule corresponding to the advance routing detection position and the second data packet processing rule corresponding to the input detection position in the data packet processing rule. Processing the data packet to be processed based on the first data packet processing rule to obtain a first processing result. Determining the routing target object of the first processing result. In the case where the routing target object of the first processing result is determined to be an object in the vehicle network, processing the first processing result based on the second data packet processing rule to obtain the target data packet. Specifically, the data packet processing rule includes the first data packet processing rule corresponding to the advance routing detection position. The advance routing detection position belongs to the stage of entering the network layer but not passing through the first routing selection. Among them, the first route is used to identify the target address contained in the network data packet to determine whether the network data packet flows to the user space of the local machine or is forwarded to other networks. Using the first data packet processing rule to perform network address translation, application parameter modification and state tracking mechanism processing and judgment on the network data packet. Optionally, the application parameter includes at least one of a service type parameter, a lifetime parameter and a routing configuration parameter. The first data packet processing rule can be used to set a processing rule for the advance routing detection position. The data packet processing rule includes a second data packet processing rule corresponding to the input detection position. The input detection position belongs to the stage determined to enter the user space after the first route selection but has not yet entered. The second data packet processing rule may include a first sub-category detection rule and a second sub-category detection rule. The first sub-category detection rule may include: discarding pending data packets with invalid connection status, releasing test type pending data packets from the local loop interface, releasing pending data packets from the preset network interface, releasing pending data packets from the connected or trusted connection network, discarding pending data packets containing preset confirmation character values, discarding pending data packets of the same type that exceed the preset number in a short time, releasing pending data packets from the preset network segment of the external communication unit, releasing data packets from the designated port of the preset network segment of the external diagnostic device, and processing pending data packets that exceed the preset number within the preset time based on the second sub-category detection rule. The second sub-category detection rule may include: recording the access time of the data packets that are processed by the first sub-category detection rule and are handed over to the second sub-category detection rule for processing, and discarding the pending data packets when the number of accesses exceeds the preset limit within the preset time. When processing the data packet to be processed based on the second data packet processing rule, the data packet to be processed is filtered and application parameters are modified using the second data packet processing rule, wherein the application parameters include at least one of a service type parameter, a lifetime parameter, and a routing configuration parameter.
[0086] As another optional implementation, the preset detection position includes an output detection position and a post-routing detection position. Processing the data packet to be processed based on the data packet processing rule to obtain the target data packet may include: determining the fourth data packet processing rule corresponding to the output detection position in the data packet processing rule, and the fifth data packet processing rule corresponding to the post-routing detection position. Processing the data packet to be processed based on the fourth data packet processing rule to obtain a second processing result. Processing the second processing result based on the fifth data packet processing rule to obtain the target data packet. Specifically, the data packet processing rule includes the fourth data packet processing rule corresponding to the output detection position. The fourth detection function is used to filter the network data packet, convert the network address, modify the application parameters, and process and judge the state tracking mechanism; the application parameters include at least one of the service type parameter, the lifetime parameter, and the routing configuration parameter. The implementation of the output detection position filtering function needs to ensure that the kernel module supports the control protocol based on the OSI model. The protocol provides several application protocols that can be filtered, such as: filtering the application protocol is ssh / telnet, and the rules are as follows: if the current TCP protocol data packet application layer protocol type is telnet, it is discarded. If the current TCP protocol data packet application layer protocol type is ssh, it is discarded. The data packet processing rule also includes the fifth data packet processing rule corresponding to the post-routing detection position. The post-routing detection position belongs to the stage before leaving the network card. The fifth detection function is used to perform network address translation and application parameter modification on the network data packet. The application parameters include at least one of the service type parameter, the survival time parameter and the routing configuration parameter.
[0087] As another optional implementation, the preset detection position also includes a forwarding detection position. Processing the data packet to be processed based on the data packet processing rules to obtain the target data packet may include: when it is determined that the route selection of the first processing result is not an object in the vehicle network, determining the third data packet processing rule corresponding to the forwarding detection position in the data packet processing rules. Processing the first processing result based on the third data packet processing rule to obtain the third processing result. Processing the second processing result based on the fifth data packet processing rule to obtain the target data packet. The data packet processing rules include the third data packet processing rule corresponding to the forwarding detection position. The forwarding detection position belongs to the stage where it is determined not to enter the user space and forward to other networks after the first routing selection. Using the third detection function to filter the network data packet and modify the application parameters; the application parameters include at least one of the service type parameter, the lifetime parameter and the routing configuration parameter. Then, the fifth detection function is used to perform network address conversion and application parameter modification on the network data packet.
[0088] In an embodiment of the present application, in addition to providing a configuration file reading interface, the rule management plug-in also provides a rule modification interface and a rule dynamic management interface. The network management module or the intrusion detection module can modify the data packet processing rules by calling the rule modification interface. Specifically, the data packet processing rules are modified based on the rule management plug-in to obtain the modified data packet processing rules. The data packet to be processed is processed based on the modified data packet processing rules to obtain a target data packet. Optionally, the modification of the data packet includes adding a data packet processing rule or deleting a data packet processing rule. The network management module or the intrusion detection module can control the startup and shutdown of the data packet processing rules by calling the rule dynamic management interface.
[0089] S205: Transmitting the target data packet in the vehicle network, or sending the target data packet to an external network.
[0090] In the embodiment of the present application, after the target data packet is obtained, the target data packet can be consumed by objects in the vehicle network, such as processes running in the vehicle computing platform. The target data packet can also be sent to an external network after encoding.
[0091] In an embodiment of the present application, by configuring a rule management plug-in on a network management module or an intrusion detection module, data packet processing rules can be run in the adaptive automotive open architecture system, and the acquired data packets to be processed can be processed based on the data packet processing rules, so that only network data packets that comply with the rules are transmitted, thereby ensuring the data security of the vehicle system, avoiding the leakage of sensitive data, and avoiding threats to personal safety due to system paralysis.
[0092] The embodiment of the present application also provides a data processing device based on an adaptive automotive open architecture system, Figure 3 is a structural diagram of a data processing device based on an adaptive automobile open architecture system provided in an embodiment of the present application, such as Figure 3 As shown, the device comprises:
[0093] The to-be-processed data packet acquisition module 301 is used to acquire the to-be-processed data packet; the to-be-processed data packet is a data packet sent from an external network to the vehicle network, or a data packet sent from the vehicle network to an external network;
[0094] The data packet processing module 303 is used to process the data packet to be processed based on the data packet processing rule to obtain the target data packet; the data packet processing rule is obtained by loading the rule configuration file based on the rule management plug-in; the rule management plug-in is configured in the network management module; the network management module is a module for managing the vehicle network in the adaptive vehicle open architecture system or a module for detecting the vehicle network transmission behavior;
[0095] The transmission module 305 is used to transmit the target data packet in the vehicle network, or send the target data packet to an external network.
[0096] In some optional embodiments, the device further comprises:
[0097] A rule configuration file acquisition module is used to acquire a rule configuration file from a preset storage medium based on a rule management plug-in, and parse the rule configuration file to obtain a data packet processing rule;
[0098] The data packet processing rule loading module is used to load the data packet processing rules into the memory of the adaptive automotive open architecture system for operation based on the rule management plug-in; the data packet processing rules running in the memory are used to process the data packets to be processed.
[0099] In some optional embodiments, the device further comprises:
[0100] A rule modification module is used to modify the data packet processing rules based on the rule management plug-in to obtain the modified data packet processing rules;
[0101] The data packet processing module is used to process the data packet to be processed based on the modified data packet processing rule to obtain the target data packet.
[0102] In some optional embodiments, the module for acquiring data packets to be processed includes:
[0103] The unit for acquiring data packets to be processed is used to acquire data packets to be processed based on a hook function at a preset detection position so as to process the data packets to be processed; the preset detection position is at least one position configured in the vehicle network for processing data packets to be processed.
[0104] In some optional embodiments, the preset detection position includes an advance routing detection position and an input detection position; and the data packet processing module includes:
[0105] A first data packet processing rule and a second data packet processing rule determining unit, configured to respectively determine in the data packet processing rules a first data packet processing rule corresponding to the advance routing detection position and a second data packet processing rule corresponding to the input detection position;
[0106] A first processing result determining unit, configured to process the data packet to be processed based on the first data packet processing rule to obtain a first processing result;
[0107] A routing target object unit, used to determine a routing target object of the first processing result;
[0108] The target data packet determining unit is used to process the first processing result based on the second data packet processing rule to obtain the target data packet when it is determined that the routing target object of the first processing result is an object in the vehicle network.
[0109] In some optional embodiments, the preset detection position also includes a forwarding detection position; and the data packet processing module includes:
[0110] A third data packet processing rule determining unit, configured to determine a third data packet processing rule corresponding to the forwarding detection position in the data packet processing rule when it is determined that the routing selection of the first processing result is not an object in the vehicle network;
[0111] The target data packet determining unit is used to process the first processing result based on the third data packet processing rule to obtain the target data packet.
[0112] In some optional embodiments, the preset detection position includes an output detection position and a post-routing detection position; and the data packet processing module includes:
[0113] A fourth data packet processing rule and a fifth data packet processing rule determining unit, used to determine, in the data packet processing rules, a fourth data packet processing rule corresponding to the output detection position and a fifth data packet processing rule corresponding to the post-routing detection position;
[0114] A second processing result determining unit, configured to process the data packet to be processed based on the fourth data packet processing rule to obtain a second processing result;
[0115] The target data packet determining unit is used to process the second processing result based on the fifth data packet processing rule to obtain the target data packet.
[0116] The data processing device based on the adaptive automobile open architecture system and the data processing method based on the adaptive automobile open architecture system in the embodiments of the present application are based on the same application concept. Regarding the specific implementation of the data processing based on the adaptive automobile open architecture system, please refer to all the methods of the data processing method based on the adaptive automobile open architecture system described above, which will not be repeated here.
[0117] An embodiment of the present application also provides an on-vehicle computing platform, in which an adaptive automobile open architecture system runs; the adaptive automobile open architecture system can implement the data processing method based on the adaptive automobile open architecture system as described above.
[0118] An embodiment of the present application also provides a vehicle, which includes the on-board computing platform as described above.
[0119] An embodiment of the present application also provides an electronic device for data processing based on an adaptive automobile open architecture system, the electronic device comprising a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or at least one program being loaded and executed by the processor to implement a data processing method based on an adaptive automobile open architecture system as provided in any of the above embodiments.
[0120] An embodiment of the present application also provides a computer-readable storage medium, which can be set in a terminal to store at least one instruction or at least one program for implementing a data processing method based on an adaptive automobile open architecture system in a method embodiment. The at least one instruction or at least one program is loaded and executed by a processor to implement the data processing method based on an adaptive automobile open architecture system provided in the above method embodiment.
[0121] Optionally, in the embodiment of this specification, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the above storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0122] The memory of the embodiment of this specification can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, applications required for functions, etc.; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.
[0123] The embodiment of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data processing method based on the adaptive automotive open architecture system provided by the above method embodiment.
[0124] The method embodiments provided in the embodiments of the present application can be executed in a terminal, a computer terminal, a server or a similar computing device. Taking running on a server as an example, Figure 4 FIG. 1 is a hardware structure block diagram of a server of a data processing method based on an adaptive automotive open architecture system provided according to an exemplary embodiment. Figure 4 As shown, the server 400 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 44 (the central processing unit 44 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 430 for storing data, and one or more storage media 420 (such as one or more mass storage devices) for storing application programs 423 or data 422. Among them, the memory 430 and the storage medium 420 can be short-term storage or permanent storage. The program stored in the storage medium 420 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit 44 can be configured to communicate with the storage medium 420 and execute a series of instruction operations in the storage medium 420 on the server 400. The server 400 may also include one or more power supplies 460, one or more wired or wireless network interfaces 450, one or more input and output interfaces 440, and / or one or more operating systems 421, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0125] The input / output interface 440 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 400. In one example, the input / output interface 440 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 440 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0126] It can be understood by those skilled in the art that Figure 4 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 4 More or fewer components as shown, or with Figure 4 Different configurations are shown.
[0127] The data processing solution based on the adaptive automobile open architecture system provided by the present application expands the functions of the network management module or the intrusion detection module by configuring a rule management plug-in on the network management module or the intrusion detection module. By using the rule management plug-in, the rule configuration file can be read and parsed to obtain the data packet processing rules. By running the data packet processing rules in the adaptive automobile open architecture system, the acquired data packets to be processed can be processed based on the data packet processing rules to obtain the target data packet, and then the target data packet is transmitted. In this way, the security of the adaptive automobile open architecture system is guaranteed, and the vehicle data security and operation safety are ensured.
[0128] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0129] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0130] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0131] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A data processing method based on an adaptive automotive open architecture system, It is characterized in that The method comprises: Acquire a data packet to be processed; the data packet to be processed is a data packet sent from an external network to the vehicle network, or a data packet sent from the vehicle network to an external network; The data packet to be processed is processed based on a data packet processing rule to obtain a target data packet; the data packet processing rule is obtained by loading a rule configuration file based on a rule management plug-in; the rule management plug-in is configured in a network management module; the network management module is a module in an adaptive automotive open architecture system for managing the vehicle network or a module for detecting the transmission behavior of the vehicle network; The target data packet is transmitted in the vehicle network, or the target data packet is sent to an external network.
2. The method according to claim 1, It is characterized in that Before obtaining the data packet to be processed, the method further includes: Obtaining the rule configuration file from a preset storage medium based on the rule management plug-in, and parsing the rule configuration file to obtain the data packet processing rule; Based on the rule management plug-in, the data packet processing rules are loaded into the memory of the adaptive automotive open architecture system for execution; the data packet processing rules running in the memory are used to process the data packets to be processed.
3. The method according to claim 1 or 2, It is characterized in that The method further comprises: Modifying the data packet processing rule based on the rule management plug-in to obtain a modified data packet processing rule; The data packet to be processed is processed based on the modified data packet processing rule to obtain a target data packet.
4. The method according to claim 1, It is characterized in that The step of obtaining the data packet to be processed comprises: At a preset detection position, the data packet to be processed is obtained based on a hook function to process the data packet to be processed; the preset detection position is at least one position configured in the vehicle network to process the data packet to be processed.
5. The method according to claim 4, It is characterized in that The preset detection position includes an advance routing detection position and an input detection position; the processing of the to-be-processed data packet based on the data packet processing rule to obtain the target data packet includes: Determining respectively in the data packet processing rules a first data packet processing rule corresponding to the advance routing detection position and a second data packet processing rule corresponding to the input detection position; Processing the data packet to be processed based on the first data packet processing rule to obtain a first processing result; Determining a routing target object of the first processing result; When it is determined that the routing target object of the first processing result is an object in the vehicle network, the first processing result is processed based on the second data packet processing rule to obtain the target data packet.
6. The method according to claim 5, It is characterized in that The preset detection position also includes a forwarding detection position; the processing of the to-be-processed data packet based on the data packet processing rule to obtain the target data packet includes: In a case where it is determined that the route selection of the first processing result is not an object in the vehicle network, determining a third data packet processing rule corresponding to the forwarding detection position in the data packet processing rule; The first processing result is processed based on the third data packet processing rule to obtain the target data packet.
7. The method according to any one of claims 4 to 6, It is characterized in that The preset detection position includes an output detection position and a post-routing detection position; the processing of the to-be-processed data packet based on the data packet processing rule to obtain the target data packet includes: Determining, in the data packet processing rules, a fourth data packet processing rule corresponding to the output detection position and a fifth data packet processing rule corresponding to the post-routing detection position; Processing the to-be-processed data packet based on the fourth data packet processing rule to obtain a second processing result; The second processing result is processed based on the fifth data packet processing rule to obtain the target data packet.
8. A data processing device based on an adaptive automotive open architecture system, It is characterized in that The device comprises: A module for acquiring data packets to be processed, used for acquiring data packets to be processed; the data packets to be processed are data packets sent from an external network to the vehicle network, or data packets sent from the vehicle network to an external network; A data packet processing module, used for processing the data packet to be processed based on a data packet processing rule to obtain a target data packet; the data packet processing rule is obtained by loading a rule configuration file based on a rule management plug-in; the rule management plug-in is configured in a network management module; the network management module is a module for managing the vehicle network in the adaptive vehicle open architecture system or a module for detecting the transmission behavior of the vehicle network; A transmission module is used to transmit the target data packet in the vehicle network, or send the target data packet to an external network.
9. An in-vehicle computing platform, It is characterized in that An adaptive automotive open architecture system runs in the vehicle-mounted computing platform; The adaptive automobile open architecture system can implement the data processing method based on the adaptive automobile open architecture system as described in any one of claims 1 to 7.
10. A vehicle, It is characterized in that The vehicle comprises the on-board computing platform of claim 9.
