Vehicle-mounted networking data transmission method and device, switch, vehicle and storage medium

By implementing the in-vehicle networked data transmission method in the switch in the vehicle, dynamically selecting cellular network or Wi-Fi network for data transmission, the problems of single point failure risk and network bandwidth loss in the vehicle network are solved, and efficient and reliable data transmission is achieved .

CN119485569APending Publication Date: 2025-02-18ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411607521.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The prior art has a single point of failure risk in vehicle networking, resulting in separate deployment of cellular network modules and Wi-Fi network modules, increasing network bandwidth loss.

Method used

By implementing the on-board networked data transmission method in the switch in the vehicle, network selection instructions are obtained, target network provisioning equipment is determined, and forwarding strategies are determined based on the traffic data category to achieve dynamic forwarding of data.

Benefits of technology

This method can maximize and reduce network bandwidth loss, improve data transmission efficiency and reliability, and avoid single point of failure risk.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119485569A_ABST
    Figure CN119485569A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted networking data transmission method and device, a switch, a vehicle and a storage medium, and relates to the technical field of vehicle control. The method is applied to a switch in a vehicle, and specifically comprises the steps that a network selection instruction is acquired, and the network selection instruction indicates selection of wireless hotspot network providing equipment or selection of cellular network providing equipment; determining a wireless hotspot network providing device or a cellular network providing device as a target network providing device based on the network selection instruction; receiving networking uplink flow data sent by the networking controller; acquiring the category of the networking uplink traffic data to obtain the traffic data category; determining a target forwarding strategy according to the traffic data category; and forwarding the networking uplink flow data to the target network providing equipment according to the target forwarding strategy. According to the invention, the vehicle-mounted networking data can be transmitted, and the loss of network bandwidth can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control technology, and in particular to a vehicle-mounted network data transmission method, device, switch, vehicle and storage medium. Background Art

[0002] Vehicles generally have Internet access. The main ways to connect to the Internet include cellular networks (4G / 5G) and wireless hotspot networks (Wi-Fi networks). Considering the cost of cellular network traffic, unless the Wi-Fi network is turned off, it is generally required to use the Wi-Fi network to access the external network for data transmission.

[0003] The relevant technology generally uses a separate networking module TBOX for networking arbitration. All external traffic (also known as uplink traffic) must pass through TBOX, and TBOX decides whether the export is a cellular network or a Wi-Fi network.

[0004] Considering the risk of single point failure in vehicle networks, the cellular network module and Wi-Fi network module are deployed separately on different devices to avoid the complete failure of the vehicle networking function due to a single device failure. At this time, there are two exit devices for external traffic. Due to the existence of two exit devices, it is not suitable to use the networking module TBOX for networking arbitration, which will lose a certain amount of network bandwidth. Summary of the invention

[0005] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a vehicle-mounted network data transmission method, device, switch, vehicle and storage medium, which can transmit vehicle-mounted network data and reduce the loss of network bandwidth.

[0006] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a vehicle-mounted network data transmission method, which is applied to a switch in a vehicle, wherein the vehicle is provided with a wireless hotspot network providing device, a cellular network providing device and a network controller connected to the switch, wherein the wireless hotspot network providing device is used to provide a wireless hotspot network, and the cellular network providing device is used to provide a cellular network; the method comprises:

[0007] Acquire a network selection instruction, wherein the network selection instruction instructs selecting the wireless hotspot network providing device or selecting the cellular network providing device;

[0008] Determine the wireless hotspot network providing device or the cellular network providing device as a target network providing device based on the network selection instruction;

[0009] Receiving networking uplink traffic data sent by the networking controller;

[0010] Acquire the category of the networked uplink traffic data to obtain the traffic data category;

[0011] Determining a target forwarding strategy according to the traffic data category;

[0012] The networked uplink traffic data is forwarded to the target network providing device according to the target forwarding strategy.

[0013] Optionally, the switch stores a preset forwarding strategy set;

[0014] The determining of a target forwarding strategy according to the traffic data category includes:

[0015] Filtering a category-associated strategy from the preset forwarding strategy set according to the traffic data category;

[0016] Obtaining the forwarding strategy supported by the networking controller to obtain a target supported strategy;

[0017] Comparing the target support strategy with the category association strategy to obtain a strategy comparison result; the strategy comparison result is used to characterize whether the target support strategy is the same as or different from the category association strategy;

[0018] The target forwarding strategy is selected from the preset forwarding strategy set according to the strategy comparison result.

[0019] Optionally, the forwarding strategy set includes a LAN identifier forwarding strategy, a LAN address forwarding strategy, and a multicast packet forwarding strategy;

[0020] The step of selecting a category-associated strategy from a preset forwarding strategy set according to the traffic data category includes:

[0021] If the traffic data category is an encrypted data category, determining the local area network identifier forwarding strategy as the category association strategy;

[0022] If the traffic data category is an instruction data category, determining at least one of the local area network identification forwarding strategy and the local area network address forwarding strategy as the category association strategy;

[0023] If the traffic data category is a log data category, the multicast packet forwarding strategy is determined as the category association strategy.

[0024] Optionally, the filtering out the target forwarding strategy from the preset forwarding strategy set according to the strategy comparison result includes:

[0025] If the strategy comparison result indicates that the target support strategy is the same as the category association strategy, extracting the category association strategy from the preset forwarding strategy set, and determining the category association strategy as the target forwarding strategy;

[0026] If the policy comparison result indicates that the target support policy is different from the category association policy, a category general policy is extracted from the preset forwarding policy set, and the category general policy is determined as the target forwarding policy; wherein the category general policy does not include the category association policy.

[0027] Optionally, the preset forwarding policy set includes a LAN identifier forwarding policy and a LAN address forwarding policy, and the category association policy includes the LAN identifier forwarding policy and the LAN address forwarding policy;

[0028] If the strategy comparison result indicates that the target support strategy is the same as the category association strategy, extracting the category association strategy from the preset forwarding strategy set and determining the category association strategy as the target forwarding strategy includes:

[0029] If the target supported policy includes a LAN address forwarding policy, extracting the LAN address forwarding policy from the preset forwarding policy set, and determining the LAN address forwarding policy as the target forwarding policy;

[0030] If the target supported policy includes the LAN identifier forwarding policy but does not include the LAN address forwarding policy, the LAN identifier forwarding policy is extracted from the preset forwarding policy set, and the LAN identifier forwarding policy is determined as the target forwarding policy.

[0031] Optionally, after forwarding the networking uplink traffic data to the target network providing device according to the target forwarding strategy, the method further includes:

[0032] If the target support strategy includes the LAN identifier forwarding strategy and the LAN address forwarding strategy, detecting the load of data forwarding according to the target forwarding strategy;

[0033] If the load is greater than a preset load threshold, the target forwarding strategy is switched from the LAN address forwarding strategy to the LAN identifier forwarding strategy, or the target forwarding strategy is switched from the LAN identifier forwarding strategy to the LAN address forwarding strategy.

[0034] Optionally, the target forwarding strategy is a local area network identifier forwarding strategy, the local area network identifier forwarding strategy includes a first local area network identifier and a second local area network identifier, the first local area network identifier is associated with the wireless hotspot network providing device, and the second local area network identifier is associated with the cellular network providing device;

[0035] The forwarding of the networked uplink traffic data to the target network providing device according to the target forwarding strategy includes:

[0036] Obtaining a destination LAN identifier of the networking uplink traffic data to obtain an initial destination LAN identifier;

[0037] If the target network providing device is the wireless hotspot network providing device, the initial destination LAN identifier is modified to the first LAN identifier to obtain a target destination LAN identifier;

[0038] If the target network providing device is the cellular network providing device, modifying the initial destination local area network identifier to the second local area network identifier to obtain a target destination local area network identifier;

[0039] The networking uplink traffic data is forwarded to the target network providing device according to the target destination LAN identifier.

[0040] Optionally, the switch has a first interface and a second interface, the wireless hotspot network provides a device to connect to the first interface, and the cellular network provides a device to connect to the second interface;

[0041] The method of forwarding the networking uplink traffic data to the target network providing device according to the target destination LAN identifier includes:

[0042] Obtain an identifier-interface mapping relationship table, wherein the identifier-interface mapping relationship table indicates a relationship between the first local area network identifier and the first interface and indicates a relationship between the second local area network identifier and the second interface;

[0043] Search the identification interface mapping table according to the target destination LAN identifier to obtain the target interface;

[0044] The networking uplink traffic data is forwarded from the target interface to the target network providing device.

[0045] Optionally, the target forwarding strategy is a local area network address forwarding strategy, the local area network address forwarding strategy includes a first local area network address and a second local area network address, the first local area network address is associated with the wireless hotspot network providing device, and the second local area network address is associated with the cellular network providing device;

[0046] The forwarding of the networked uplink traffic data to the target network providing device according to the target forwarding strategy includes:

[0047] Obtaining the destination LAN address of the networking uplink traffic data to obtain an initial destination LAN address;

[0048] If the target network providing device is the wireless hotspot network providing device, modifying the initial destination LAN address to the first LAN address to obtain the target destination LAN address;

[0049] If the target network providing device is the cellular network providing device, modifying the initial destination LAN address to the second LAN address to obtain the target destination LAN address;

[0050] The networked uplink traffic data is forwarded to the target network providing device according to the target destination LAN address.

[0051] Optionally, the switch has a first interface and a second interface, the wireless hotspot network provides a device to connect to the first interface, and the cellular network provides a device to connect to the second interface;

[0052] The method of forwarding the networked uplink traffic data to the target network providing device according to the target destination LAN address includes:

[0053] Acquire an address-interface mapping relationship table, wherein the address-interface mapping relationship table indicates a relationship between the first local area network address and the first interface and indicates a relationship between the second local area network address and the second interface;

[0054] Search the address-interface mapping table according to the local area network address to obtain the target interface;

[0055] The networking uplink traffic data is forwarded from the target interface to the target network providing device.

[0056] Optionally, the target forwarding strategy is a multicast forwarding strategy, the multicast forwarding strategy includes a wireless hotspot multicast group and a cellular multicast group, the wireless hotspot multicast group is associated with the wireless hotspot network providing device, and the cellular multicast group is associated with the cellular network providing device;

[0057] The forwarding of the networked uplink traffic data to the target network providing device according to the target forwarding strategy includes:

[0058] If the target network provider is the wireless hotspot network provider, the networked uplink traffic data is divided into the wireless hotspot multicast group to obtain the target group;

[0059] If the target network providing device is the cellular network providing device, dividing the networked uplink traffic data into the cellular multicast groups to obtain target groups;

[0060] The networking uplink traffic data is forwarded to the target network providing device according to the target grouping.

[0061] To achieve the above-mentioned purpose, the second aspect of the present application proposes an in-vehicle networking data transmission device, which is applied to a switch in a vehicle, wherein the vehicle is provided with a wireless hotspot network providing device, a cellular network providing device and a networking controller connected to the switch, wherein the wireless hotspot network providing device is used to provide a wireless hotspot network, and the cellular network providing device is used to provide a cellular network; the device comprises:

[0062] An instruction acquisition module, used to acquire a network selection instruction, wherein the network selection instruction indicates to select the wireless hotspot network providing device or the cellular network providing device;

[0063] A device selection module, configured to determine the wireless hotspot network providing device or the cellular network providing device as a target network providing device based on the network selection instruction;

[0064] A data receiving module, used for receiving the networking uplink traffic data sent by the networking controller;

[0065] A category determination module, used to obtain the category of the networked uplink traffic data and obtain the traffic data category;

[0066] A strategy determination module, used to determine a target forwarding strategy according to the traffic data category;

[0067] A data forwarding module is used to forward the networked uplink traffic data to the target network providing device according to the target forwarding strategy.

[0068] To achieve the above-mentioned purpose, the third aspect of the present application proposes a switch, comprising at least one processor and a memory for communicating with the processor; the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by at least one of the processors so that at least one of the processors executes the in-vehicle networking data transmission method as described in the first aspect.

[0069] To achieve the above-mentioned purpose, a fourth aspect of the embodiment of the present application provides a vehicle, comprising

[0070] The switch as described in the third aspect;

[0071] A wireless hotspot network providing device, a cellular network providing device and a networking controller connected to the switch.

[0072] To achieve the above-mentioned purpose, the fifth aspect of an embodiment of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the in-vehicle network data transmission method described in the first aspect above.

[0073] The in-vehicle networking data transmission method, device, switch, vehicle and storage medium proposed in the present application are executed by the switch, and after obtaining the network selection instruction, the target network providing device is determined according to the network selection instruction. If the network selection instruction indicates to select the wireless hotspot network providing device, the target network providing device is the wireless hotspot network providing device; if the network selection instruction indicates to select the cellular network providing device, the target network providing device is the cellular network providing device. The switch also receives the networking uplink traffic data sent by the networking controller and obtains the traffic data category. Then the switch determines the forwarding strategy for forwarding the networking uplink traffic data according to the traffic data category, that is, the target forwarding strategy. Finally, the switch forwards the networking uplink traffic data to the target network providing device according to the target forwarding strategy, so as to realize the data transmission from the networking controller to the target network providing device. The present application can minimize the cost of network switching by executing the action of dynamic data transmission of the second-layer link in the switch (the process from the switch obtaining the network selection instruction to forwarding the networking uplink traffic data to the target network providing device according to the target forwarding strategy), that is, it can reduce the loss of network bandwidth.

[0074] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 is a flow chart of a vehicle-mounted networking data transmission method provided in an embodiment of the present application;

[0076] Figure 2 is a schematic structural diagram of a vehicle provided in an embodiment of the present application;

[0077] Figure 3 is a structural diagram of a switch provided in an embodiment of the present application;

[0078] Figure 4 It is a flow chart of the local area network identification forwarding strategy provided in the embodiment of the present application;

[0079] Figure 5 It is a flow chart of the local area network address forwarding strategy provided by the embodiment of the present application;

[0080] Figure 6 It is a flowchart of the multicast forwarding strategy provided by the embodiment of the present application;

[0081] Figure 7 It is a flowchart of supporting policy confirmation provided by an embodiment of the present application;

[0082] Figure 8 It is a schematic diagram of a process for determining a target forwarding strategy provided by an embodiment of the present application;

[0083] Fig. 9 This is another schematic diagram of the structure of the switch provided in the embodiment of the present application. DETAILED DESCRIPTION

[0084] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0085] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0086] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0087] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0088] Wireless hotspot network (Wifi): is a network that can connect devices to the Internet through wireless signals. It allows devices (such as mobile phones, computers, tablets, etc.) to communicate and access the Internet through wireless networks without the need for network cables.

[0089] Cellular network (such as 4G / 5G): is a mobile communication network technology that uses base stations and radio spectrum to provide communication services to mobile devices (such as mobile phones, tablets, laptops, etc.). Cellular network is the mainstream technology in the current mobile communication field, including 4G and 5G networks.

[0090] Single point failure: refers to a single device failure. For example, a device that provides both cellular and Wifi networks fails. Considering the risk of single point failure in vehicle networks, cellular network modules and Wifi network modules are deployed separately on different devices to avoid a single device failure causing the entire vehicle networking function to fail completely.

[0091] Networked controller: a hardware device specifically used for in-vehicle computer systems, usually referred to as an in-vehicle communication module or in-vehicle communication controller. This controller usually integrates wireless communication technologies, such as 4G / 5G, Wifi, etc., which allows the vehicle to connect to external networks through the Internet to achieve data exchange and communication between the in-vehicle system and external services. The networked controller in the vehicle can be used for many applications, including but not limited to: providing real-time location information of the vehicle, so that the owner can manage the vehicle through functions such as remote monitoring and remote start; supporting in-vehicle Internet services such as online map navigation, music streaming, real-time traffic information, etc.; supporting vehicle diagnosis and remote vehicle monitoring, making vehicle maintenance more convenient and timely; supporting communication between in-vehicle devices, such as data exchange between the in-vehicle entertainment system and the in-vehicle navigation system. The networked controller in the vehicle is a product of the trend of automotive intelligence and interconnection, which helps to improve the safety, convenience and connectivity of the vehicle.

[0092] At present, vehicles generally have networking functions, and the main networking methods include cellular networks and wireless hotspot networks. Taking into account the traffic cost of cellular networks, unless the wireless hotspot network is closed, it is generally required to use the wireless hotspot network to access the external network for data transmission first, and then switch the networking method according to actual needs. For example, the networking method is switched according to the user's network preference, or according to the network quality. However, the conventional networking method switching algorithm is done on a third-layer router, which has limitations on second-layer devices such as switches and is not suitable for in-vehicle Ethernet networks, that is, the applicability is poor.

[0093] Based on this, the embodiments of the present application provide a vehicle-mounted network data transmission method, device, switch, vehicle and storage medium, the method is executed by the switch, and after obtaining the network selection instruction, the target network provider is determined according to the network selection instruction. Among them, if the network selection instruction indicates to select a wireless hotspot network provider, the target network provider is a wireless hotspot network provider; if the network selection instruction indicates to select a cellular network provider, the target network provider is a cellular network provider. The switch also receives the networking uplink traffic data sent by the networking controller and obtains the traffic data category. Then the switch determines the forwarding strategy for forwarding the networking uplink traffic data according to the traffic data category, that is, the target forwarding strategy. Finally, the switch forwards the networking uplink traffic data to the target network provider according to the target forwarding strategy to achieve switching of the networking mode. This application takes into account that data transmission interruption may occur during network switching. By executing the dynamic data transmission action of the second-layer link in the switch (the process from the switch obtaining the network selection instruction to forwarding the network uplink traffic data to the target network provider according to the target forwarding strategy), other in-vehicle controllers (such as wireless hotspot network provider, cellular network provider and network controller, etc.) do not change the data packet tuple parameters (such as MAC, Port, VLAN, etc.). It can be seen that this application can minimize the cost of network switching, that is, it can reduce the loss of network bandwidth.

[0094] The in-vehicle networking data transmission method, device, switch, vehicle and storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the in-vehicle networking data transmission method in the embodiments of the present application is described.

[0095] Please refer to Figure 1 , Figure 1 An optional flow chart of a vehicle-mounted network data transmission method is disclosed. In this embodiment, the method is executed by a switch. Figure 1 The method may include but is not limited to steps 101 to 106.

[0096] Step 101, obtaining a network selection instruction, the network selection instruction instructing to select a wireless hotspot network providing device or a cellular network providing device;

[0097] Step 102, determining a wireless hotspot network providing device or a cellular network providing device as a target network providing device based on the network selection instruction;

[0098] Step 103, receiving the network uplink traffic data sent by the network controller;

[0099] Step 104, obtaining the category of the uplink traffic data of the network, and obtaining the traffic data category;

[0100] Step 105, determining a target forwarding strategy according to the traffic data category;

[0101] Step 106: forward the networked uplink traffic data to the target network providing device according to the target forwarding strategy.

[0102] Steps 101 to 106 shown in the embodiment of the present application can transmit vehicle-mounted network data and reduce the loss of network bandwidth.

[0103] In computer networks, a switch is a network device that is used to connect multiple computers or network devices to forward and route data packets to achieve communication between devices. In this embodiment, the switch is a device in the vehicle. In addition to the switch, the vehicle is also equipped with other devices. Please refer to Figure 2 , Figure 2 A schematic diagram of the structure of a vehicle is disclosed. The vehicle includes a switch 201, a wireless hotspot network providing device 202 connected to the switch 201, a cellular network providing device 203, and a plurality of network controllers. Figure 2 In the embodiment, there are n network controllers in total, including network controller 1, network controller 2, ..., network controller n. Wherein, n is a positive integer. The wireless hotspot network providing device 202 is used to provide a wireless hotspot network. The cellular network providing device 203 is used to provide a cellular network.

[0104] In step 101 of some embodiments, the network selection instruction is a message transmission mechanism for the vehicle, which is used to send a notification or reminder to the switch. The network selection instruction indicates to select a wireless hotspot network providing device, or to select a cellular network providing device. In one example, the network selection instruction is "the current networking mode is a wireless hotspot network", which means that the network selection instruction indicates to select a wireless hotspot network providing device. In one example, the network selection instruction is "the current networking mode is a cellular network", which means that the network selection instruction indicates to select a cellular network providing device.

[0105] In one embodiment, the network selection instruction is obtained in the following ways: (1) The switch obtains the network selection instruction sent by the wireless hotspot network providing device, and the network selection instruction is generated by the wireless hotspot network according to the network bandwidth of the wireless hotspot network and the network bandwidth of the cellular network. (2) The switch obtains the network selection instruction sent by the human-computer interaction system, and the network selection instruction is generated by the human-computer interaction system according to the user's network preference information.

[0106] In method (1), the wireless hotspot network provider can integrate a network sniffing software to send sniffing messages to the cellular network provider and its own Wifi module (used to pass through the wireless hotspot network) to detect the network bandwidth. By default, when the Wifi network and the cellular network are turned on at the same time, the Wifi network is used to access the external network. Once the effective network bandwidth of the Wifi network is less than half of the effective network bandwidth of the cellular network, the wireless hotspot network provider will set the networking mode to the cellular network, otherwise the networking mode will be maintained as the Wifi network, and at the same time, a network selection instruction will be sent to the switch to trigger the switch to select and switch the networking path.

[0107] In method (2), the user can input network preference information to the human-computer interaction system. For example, the network preference information is "the user prefers the network mode to be a wireless hotspot network". Another example is "the user prefers the network mode to be a cellular network". The human-computer interaction system is a control system for interacting with the user. The human-computer interaction system sets the network mode to the cellular network according to the network preference information "the user prefers the network mode to be a cellular network", otherwise the network mode is maintained as the Wifi network, and at the same time sends a network selection instruction to the switch to trigger the switch to select and switch the network path.

[0108] In step 102 of some embodiments, if the network selection instruction indicates to select a wireless hotspot network providing device, the target network providing device is a wireless hotspot network providing device; if the network selection instruction indicates to use a cellular network providing device, the target network providing device is a cellular network providing device.

[0109] In one example, if the network selection instruction is "the current networking mode is a wireless hotspot network", the wireless hotspot network provider is determined as the target network provider. In another example, if the network selection instruction is "the current networking mode is a cellular network", the cellular network provider is determined as the target network provider.

[0110] In step 103 of some embodiments, the networking uplink traffic data refers to data sent from the networking controller to the target network providing device. If the data is sent from the target network providing device to the networking controller, it is called networking downlink traffic data. Figure 2 In one example, the switch 201 receives networking uplink traffic data sent by a networking controller (such as the networking controller 1).

[0111] In step 104 of some embodiments, the traffic data category refers to the category of network uplink traffic data. In this embodiment, the traffic categories are divided into four categories, namely, encrypted data category, log data category, instruction data category, and general data category.

[0112] Encrypted data, also known as special encrypted data, generally involves user sensitive information and needs to be desensitized in advance. If the network uplink traffic data contains user sensitive information, it belongs to encrypted data.

[0113] Log data category generally involves data that records system, application or device activities. This data usually contains timestamps, event descriptions, operator information, etc. For example, if the network uplink traffic data includes network controller logs, operation logs, or network traffic logs, etc., it belongs to log data.

[0114] The instruction data category generally involves data used to instruct the system or device to perform certain operations or control certain behaviors. This data can include information such as commands, parameters, and instruction sets. For example, instructions sent by networked controllers to devices, remote control instructions, and sensor data collection commands all belong to control instruction data.

[0115] General data categories are categories that are not limited to specific fields or uses. Data in general data categories can be widely used and processed. Data in general data categories does not depend on specific fields or specific applications and can be used by different types of systems, applications, and analysis tools.

[0116] In one example, the switch may pre-store a parsing algorithm, and then use the parsing algorithm to classify the networking uplink traffic data to obtain the traffic class. In another example, the networking uplink traffic data has a class tag, and the switch identifies the class tag to obtain the traffic class. The class tag indicates one of an encryption class, a log class, a control instruction class, and a general class.

[0117] Before describing step 105, the data interaction between the switch and the networking controller is described first. Figure 3 , the switch 201 includes a first interface 301, a second interface 302, multiple digital interfaces (including Port1 to Port6) and a networking path selector 304. The networking path selector 304 determines the networking path and calls the API inside the switch 201 to perform data packet routing and forwarding. The first interface 301 represents the interface for connecting to a wireless hotspot network providing device, the second interface 302 represents the interface for connecting to a cellular network providing device, and the digital interface represents the interface for connecting to a networking controller. The networking path selector involves three forwarding strategies. The forwarding strategy refers to the strategy for forwarding the networking uplink traffic data to the target network providing device.

[0118] Reference Figure 2 and Figure 3In the networking path selector 304, there is the following working logic: (1) For the networking downstream traffic data, the networking path selector 304 does not perform data filtering, and forwards the data according to the statically configured interface mapping relationship (for example, forwarding from the first interface 301 to port1). (2) For the networking upstream traffic data, firstly, the information corresponding to the networking controller (for example, networking controller 1 to networking controller 6) is required to be registered in the networking path selector 304. The specific registered information includes the digital interface (port1 to port6) where the networking controller is located, the source LAN identifier (VLAN1 to VLAN6), the source LAN address (MAC1 to MAC6), the supported forwarding strategy and the network protocol (I nternet Protocol, IP). Then, the target forwarding strategy is determined according to the category of the networking upstream traffic data, and then the data is forwarded based on the target forwarding strategy (for example, forwarding from port1 to the first interface 301).

[0119] The switch stores three forwarding strategies, namely LAN ID forwarding strategy (also known as strategy a), LAN address forwarding strategy (also known as strategy b), and multicast forwarding strategy (also known as strategy c). The three strategies are applicable to different scenarios. For example, strategy a is applicable to cross-VLAN interaction and secure data isolation scenarios; strategy b is applicable to interaction scenarios with high timeliness, and is also applicable to all scenarios; strategy c is applicable to low-frequency transmission scenarios.

[0120] Reference Figure 4 For strategy a, a specific source LAN ID (i.e., the VLAN of the networking controller) is identified at each digital interface of the switch, and the destination LAN ID of the networking upstream traffic data is modified to a different target destination LAN ID in the networking path selector according to the target network providing device. For example, if the wireless hotspot network is selected for Internet access at this time (i.e., the target network is Wifi), the target destination LAN ID corresponding to all the networking upstream traffic data is modified to VLAN101. Similarly, if the cellular network is selected for Internet access (i.e., the target network is not Wifi), the target destination LAN ID corresponding to all the networking upstream traffic data is switched to VLAN102. Finally, according to the mapping relationship between the interface and the LAN ID (such as the interface ID mapping relationship table recorded below), the second-layer data forwarding is performed.

[0121] Reference Figure 5For strategy b, a specific source LAN identifier (i.e., the VLAN of the networking controller) is identified at each digital interface of the switch. By default, the destination LAN address (also called DMAC) of the networking controller is filled with the network card LAN address of the cellular network provider. Once it is found in the networking path selector that the vehicle network mode is Wi-Fi (i.e., it is found that the target network provider is a wireless hotspot network provider), the destination LAN address of the corresponding layer 2 data frame is modified to the network card LAN address of the wireless hotspot network provider. Otherwise, the original destination LAN address is maintained as the network card LAN address of the cellular network provider. Finally, the switch forwards the layer 2 data according to the mapping relationship between the interface and the LAN address (such as the interface address mapping relationship table).

[0122] Reference Figure 6 , divide the vehicle into two separate multicast groups, namely the wireless hotspot multicast group and the cellular multicast group, and add two multicast ARP table entries in all networked controllers and switches, and then divide the wireless hotspot network provider into the wireless hotspot multicast group and the cellular network provider into the cellular multicast group. After the data frame of the networked controller reaches the switch through multicast, the current target network provider is actively determined in the network path selector, and then the corresponding data frame is forwarded to the corresponding group.

[0123] In combination with the above, the network path selector stores the registration information corresponding to each network controller. When the vehicle is started, the registration information can be confirmed. The confirmation method is as follows: Figure 7 At the digital interface where the networking controller is located, the networking path selector initiates three times (the specific number can be adjusted according to demand, and the interval between each request can be calibrated and adjusted according to the startup time of each networking controller) a Layer 2 broadcast check message under a specific VLAN. The content of the check message includes the code of each networking controller and the forwarding strategy code. For example, if the content of the check message is "1001:abc", it means that the networking controller 1001 supports three forwarding strategies a, b, and c. For another example, if the content of the check message is "1002:bc", it means that the networking controller 1002 supports two forwarding strategies b and c.

[0124] After sending three requests to the network controller, if the network controller has not started normally and cannot respond to the request, you need to adjust the sending interval (only for debugging during the development stage). Figure 7 ,When the networking controller is successfully started, if the configuration information is consistent with the ,verification information requested, it replies with a positive response, otherwise it replies with a negative response and carries the ,specific supported forwarding strategy.

[0125] In step 105 of some embodiments, it is necessary to determine a target forwarding strategy according to the traffic category. As can be seen from the above, the traffic category includes one of an encryption category, a log category, a control instruction category, and a general category.

[0126] In one embodiment, step 105 includes:

[0127] Filter out the category-related policies from the preset forwarding policy set according to the traffic data category;

[0128] Obtain the forwarding strategies supported by the network controller and obtain the target supported strategies;

[0129] Compare the target support strategy with the category association strategy to obtain a strategy comparison result; the strategy comparison result is used to characterize whether the target support strategy is the same as or different from the category association strategy;

[0130] The target forwarding strategy is filtered out from the preset forwarding strategy set according to the strategy comparison result.

[0131] The class-associated policy refers to the forwarding policy associated with the traffic data class. The switch stores a preset forwarding policy set, which includes a LAN ID forwarding policy (policy a), a LAN address forwarding policy (policy b), and a multicast forwarding policy (policy c).

[0132] In one embodiment, if the traffic data category is an encrypted data category, the LAN identification forwarding policy is determined as a category association policy; if the traffic data category is an instruction data category, at least one of the LAN identification forwarding policy and the LAN address forwarding policy is determined as a category association policy; if the traffic data category is a log data category, the multicast packet forwarding policy is determined as a category association policy.

[0133] Referring to the above, different forwarding strategies are applicable in different scenarios. This embodiment determines different category association strategies by traffic data category, and then determines the target forwarding strategy based on the category association strategy, which has high applicability and flexibility.

[0134] The switch stores the registration information of the networking controller, and can obtain the forwarding strategy supported by the networking controller from the registration information to obtain the target support strategy. The supported forwarding strategy refers to the rules that the networking controller can implement or configure. For example, if the forwarding strategy supported by networking controller 1 is strategy a, the switch will preferentially forward the networking upstream traffic data of networking controller 1 with strategy a. For another example, if the forwarding strategy supported by networking controller 2 is strategy b, the switch will preferentially forward the networking upstream traffic data of networking controller 2 with strategy b.

[0135] The policy comparison result refers to the comparison result between the target support policy and the category association policy. For example, if the target support policy is policy a and the category association policy is policy a, then the policy comparison result indicates that the target support policy and the category association policy are the same. For example, if the target support policy is policy a and the category association policy is policy b, then the policy comparison result indicates that the target support policy and the category association policy are different. After obtaining the policy comparison result, it is necessary to filter out the target forwarding policy from the preset forwarding policy set based on the policy comparison result.

[0136] In one embodiment, the above-mentioned process of filtering out the target forwarding policy from the preset forwarding policy set based on the policy comparison result may include: if the policy comparison result indicates that the target support policy is the same as the category association policy, then extracting the category association policy from the preset forwarding policy set, and determining the category association policy as the target forwarding policy; if the policy comparison result indicates that the target support policy is different from the category association policy, then extracting the category general policy from the preset forwarding policy set, and determining the category general policy as the target forwarding policy; wherein the category general policy does not include the category association policy.

[0137] In one example, if the target support policy is policy a, and the category association policy is policy a, then the policy comparison result indicates that the target support policy is the same as the category association policy, then the category association policy is extracted from the preset forwarding policy set as policy a, and policy a is determined as the target forwarding policy. If the target support policy is policy a, and the category association policy is policy b, then the policy comparison result indicates that the target support policy is different from the category association policy, then the category association policy is extracted from the preset forwarding policy set as policy b (or policy c), and policy b (or policy c) is determined as the target forwarding policy.

[0138] The benefit of the above embodiment is that the forwarding strategy supported by the networking controller can be preferentially used as the target forwarding strategy, which helps to improve the efficiency of data forwarding.

[0139] In one embodiment, the category association policy includes a LAN identifier forwarding policy and a LAN address forwarding policy. The above process of extracting the category association policy from the preset forwarding policy set and determining the category association policy as the target forwarding policy if the policy comparison result indicates that the target support policy is the same as the category association policy may include: if the target support policy includes the LAN address forwarding policy, extracting the LAN address forwarding policy from the preset forwarding policy set and determining the LAN address forwarding policy as the target forwarding policy; if the target support policy includes the LAN identifier forwarding policy but does not include the LAN address forwarding policy, extracting the LAN identifier forwarding policy from the preset forwarding policy set and determining the LAN identifier forwarding policy as the target forwarding policy.

[0140] In this embodiment, the target support policy includes the LAN address forwarding policy, which may be that the target support policy only includes the LAN address forwarding policy, or the target support policy includes the LAN address forwarding policy and the LAN identification forwarding policy. In the case where the target support policy includes the LAN address forwarding policy, the LAN address forwarding policy is preferentially selected as the target forwarding policy. On the contrary, in the case where the target support policy does not include the LAN address forwarding policy, if the target support policy includes the LAN identification forwarding policy, the LAN identification forwarding policy is determined as the target forwarding policy.

[0141] The benefit of the above embodiment is that, when the target support policy may include multiple policies, the LAN address forwarding policy is preferentially selected as the target forwarding policy, which can effectively reduce the load of data forwarding.

[0142] In one embodiment, after step 106, the vehicle networking data transmission method further includes:

[0143] If the target supports policies including a LAN ID forwarding policy and a LAN address forwarding policy, detecting a load of data forwarding according to the target forwarding policy;

[0144] If the load is greater than a preset load threshold, the target forwarding strategy is switched from the LAN address forwarding strategy to the LAN identifier forwarding strategy, or the target forwarding strategy is switched from the LAN identifier forwarding strategy to the LAN address forwarding strategy.

[0145] If the load is greater than the preset load threshold, it means that data forwarding according to the target forwarding strategy is not appropriate and a strategy switching is required. The strategy switching may be switching from a LAN ID forwarding strategy to a LAN address forwarding strategy, or from a LAN address forwarding strategy to a LAN ID forwarding strategy.

[0146] The benefit of the above embodiment is that the target forwarding strategy is switched dynamically based on the load, thereby improving the flexibility of data forwarding.

[0147] Reference Figure 8 In one example, determining the target forwarding strategy includes the following situations:

[0148] (1) For traffic data of general data type: determine strategy b as the target forwarding strategy. Specifically, the switch will preferentially adopt strategy b for networking uplink traffic data forwarding regardless of whether all networking controllers support strategy b.

[0149] (2) For traffic data of encrypted data type:

[0150] If the target support policy is policy a and the category association policy is policy a, the policy comparison result indicates that the target support policy is the same as the category association policy (i.e., support policy a), and then the category association policy is extracted from the preset forwarding policy set as policy a, and policy a is determined as the target forwarding policy.

[0151] If the target support policy is policy a and the category association policy is policy b, the policy comparison result indicates that the target support policy is different from the category association policy (i.e., policy a is not supported). Then, the category association policy is extracted from the preset forwarding policy set as policy b, and policy b is determined as the target forwarding policy.

[0152] (3) For traffic data category being instruction data category:

[0153] If the target support policy is policy a, and the category association policy includes policy a, the policy comparison result indicates that the target support policy is the same as the category association policy (i.e., only policy a is supported), and then the category association policy is extracted from the preset forwarding policy set as policy a, and policy a is determined as the target forwarding policy.

[0154] If the target support policy is policy b, and the category association policy includes policy b, the policy comparison result indicates that the target support policy is the same as the category association policy (i.e., only policy b is supported), and then the category association policy is extracted from the preset forwarding policy set as policy b, and policy b is determined as the target forwarding policy.

[0155] If the target supported policies are policies a and b, and the category associated policies include policies a and b, then the policy comparison result indicates that the target supported policy is the same as the category associated policy (i.e., both policies a and b are supported), then the policy is switched according to the load of the target forwarding policy, specifically including: determining the LAN address forwarding policy as the target forwarding policy; then detecting the load of data forwarding according to the target forwarding policy; if the load is greater than a preset load threshold, switching the target forwarding policy from the LAN address forwarding policy to the LAN identification forwarding policy, or switching the target forwarding policy from the LAN identification forwarding policy to the LAN address forwarding policy.

[0156] (4) For traffic data of log data type:

[0157] If the target support policy is policy c and the category association policy is policy c, the policy comparison result indicates that the target support policy is the same as the category association policy (i.e., support policy c), and then the category association policy is extracted from the preset forwarding policy set as policy c, and policy c is determined as the target forwarding policy.

[0158] If the target supported policy is policy b, and the category associated policy is policy c, the policy comparison result indicates that the target supported policy is different from the category associated policy (i.e., policy c is not supported), and then the category associated policy is extracted from the preset forwarding policy set as policy b, and policy b is determined as the target forwarding policy. Specifically, the networking uplink traffic data is sent by the networking controller in a multicast manner. The switch determines whether each networking controller supports policy c. If it supports policy c, it adopts policy c. If not, it adopts the default policy b.

[0159] In step 106 of some embodiments, the switch forwards the networking uplink traffic data to the target network providing device according to the target forwarding strategy. The specific forwarding process is described below from three aspects.

[0160] In the first aspect, the target forwarding strategy is a local area network identifier forwarding strategy. The local area network identifier forwarding strategy includes a first local area network identifier and a second local area network identifier, the first local area network identifier is associated with a wireless hotspot network providing device, and the second local area network identifier is associated with a cellular network providing device. In one embodiment, step 106 includes:

[0161] Obtain the destination LAN identifier of the networked uplink traffic data to obtain the initial destination LAN identifier;

[0162] If the target network providing device is a wireless hotspot network providing device, the initial destination LAN identifier is modified to the first LAN identifier to obtain the target destination LAN identifier;

[0163] If the target network providing device is a cellular network providing device, the initial destination local area network identifier is modified to a second local area network identifier to obtain a target destination local area network identifier;

[0164] The network uplink traffic data is forwarded to the target network provider device according to the target destination LAN identifier.

[0165] Reference Figure 2 , Figure 3 and Figure 4In one example, it is assumed that the first networking controller VLAN1 sends the networking uplink traffic data from the digital interface (Port1) to the switch 201. The switch 201 obtains the LAN identifier of the first networking controller VLAN1 and obtains the initial destination LAN identifier (for example, VLAN1). If the target network provider is a wireless hotspot network provider (that is, the current network mode is WiFi), the initial destination LAN identifier (for example, VLAN102) is modified to the first LAN identifier (for example, VLAN101) through the switch 201 to obtain the target destination LAN identifier (for example, VLAN101). The switch 201 forwards the networking uplink traffic data to the wireless hotspot network provider according to the target destination LAN identifier (for example, VLAN101). If the target network provider is a cellular network provider (that is, the current network mode is a cellular network), the initial destination LAN identifier (for example, VLAN101) is modified to the second LAN identifier (for example, VLAN102) through the switch 201 to obtain the target destination LAN identifier (for example, VLAN102). The switch 201 forwards the networking uplink traffic data to the cellular network providing device according to the target destination LAN identifier (eg, VLAN 102).

[0166] In one embodiment, the above process of forwarding the networking uplink traffic data to the target network providing device according to the target destination LAN identifier may include: obtaining an identifier interface mapping relationship table; searching the identifier port mapping relationship table according to the target destination LAN identifier to obtain the target interface; and forwarding the networking uplink traffic data from the target interface to the target network providing device.

[0167] In combination with the above, it can be seen that the switch includes a first interface and a second interface, and the wireless hotspot network provides a device to connect to the first interface, and the cellular network provides a device to connect to the second interface. The interface identifier mapping relationship table indicates the relationship between the first local area network identifier and the first interface and indicates the relationship between the second local area network identifier and the second interface, as shown in Table 1:

[0168] Target destination LAN ID Target interface VLAN101 (first LAN ID) First interface VLAN102 (second LAN identifier) Second interface

[0169] Table 1

[0170] In Table 1, if the target destination LAN identifier is VLAN 101, the target interface is the first interface; if the target destination LAN identifier is VLAN 102, the target interface is the second interface.

[0171] The benefit of the above embodiment of determining the target interface to perform data forwarding is that the efficiency of data forwarding can be improved.

[0172] In the second aspect, the target forwarding strategy is a LAN address forwarding strategy. The LAN address forwarding strategy includes a first LAN address and a second LAN address, the first LAN address is associated with a wireless hotspot network providing device, and the second LAN address is associated with a cellular network providing device. In one embodiment, step 106 also includes:

[0173] Obtain the destination LAN address of the uplink traffic data to obtain the initial destination LAN address;

[0174] If the target network providing device is a wireless hotspot network providing device, the initial destination LAN address is modified to the first LAN address to obtain the target destination LAN address;

[0175] If the target network providing device is a cellular network providing device, the initial destination LAN address is modified to a second LAN address to obtain the target destination LAN address;

[0176] The upstream traffic data is forwarded to the target network provider according to the target destination LAN address.

[0177] Reference Figure 2 , Figure 3 and Figure 5 In one example, it is assumed that the first networking controller VLAN2 sends the networking uplink traffic data from the digital interface (Port2) to the switch 201. The switch 201 obtains the LAN address of the first networking controller VLAN2 and obtains the initial destination LAN address (for example, MAC102). If the target network provider is a wireless hotspot network provider (that is, the current network mode is WiFi), the initial destination LAN address (for example, MAC102) is modified to the first LAN address (for example, MAC101) through the switch 201, thereby obtaining the target destination LAN address (for example, MAC101). The switch 201 forwards the networking uplink traffic data to the wireless hotspot network provider according to the target destination LAN address (for example, MAC101). If the target network provider is a cellular network provider (that is, the current network mode is a cellular network), the initial destination LAN address (for example, MAC101) is modified to the second LAN address (for example, MAC102) through the switch 201, thereby obtaining the target destination LAN address (for example, MAC102). The switch 201 forwards the networking uplink traffic data to the cellular network providing device according to the target destination LAN address (eg, MAC102).

[0178] In one embodiment, the above process of forwarding the networking uplink traffic data to the target network providing device according to the target destination LAN address may include: obtaining the address interface mapping relationship table; searching the interface identifier mapping relationship table according to the LAN address to obtain the target interface; and forwarding the networking uplink traffic data from the target interface to the target network providing device.

[0179] In combination with the above, it can be seen that the switch includes a first interface and a second interface, and the wireless hotspot network provides a device to connect to the first interface, and the cellular network provides a device to connect to the second interface. The address interface mapping relationship table indicates the relationship between the first local area network address and the first interface and indicates the relationship between the second local area network address and the second interface, as shown in Table 2:

[0180] Target destination LAN address Target interface MAC101 (first LAN address) First interface MAC102 (second LAN address) Second interface

[0181] Table 2

[0182] In Table 2, if the target destination LAN address is MAC101, the target interface is the first interface; if the target destination LAN address is MAC102, the target interface is the second interface.

[0183] The benefit of the above embodiment of determining the target interface to perform data forwarding is that the efficiency of data forwarding can be improved.

[0184] In the third aspect, the target forwarding strategy is a multicast forwarding strategy. The multicast forwarding strategy includes wireless hotspot multicast groups and cellular multicast groups. The wireless hotspot multicast groups are associated with wireless hotspot network provision devices, and the cellular multicast groups are associated with cellular network provision devices. In one embodiment, step 106 includes: if the target network provision device is a wireless hotspot network provision device, the networked uplink traffic data is divided into wireless hotspot multicast groups to obtain a target group; if the target network provision device is a cellular network provision device, the networked uplink traffic data is divided into cellular multicast groups to obtain a target group; and the networked uplink traffic data is forwarded to the target network provision device according to the target group.

[0185] Reference Figure 2 , Figure 3 and Figure 6 In one example, it is assumed that the first networking controller VLAN2 sends the networking uplink traffic data from the digital interface (Port2) to the switch 201. If the target network providing device is a wireless hotspot network providing device, the switch 201 divides the networking uplink traffic data into wireless hotspot multicast groups, and then forwards the networking uplink traffic data to the wireless hotspot network providing device according to the wireless hotspot multicast groups. If the target network providing device is a cellular network providing device, the switch 201 divides the networking uplink traffic data into cellular multicast groups, and then forwards the networking uplink traffic data to the cellular network providing device according to the wireless hotspot multicast groups.

[0186] The benefit of the above-mentioned embodiment of forwarding data according to the target forwarding strategy is that by making full use of the connection relationship between the switch and the networking controller, the wireless hotspot network providing device and the cellular network providing device, the switching of the networking mode is achieved, which has high universality.

[0187] The various technical features in the above embodiments can be combined arbitrarily as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they are not described one by one. Therefore, any combination of the various technical features in the above embodiments also falls within the scope of this specification.

[0188] The embodiment of the present application also discloses an in-vehicle network data transmission device, which is applied to a switch in a vehicle. The vehicle is provided with a wireless hotspot network providing device, a cellular network providing device and a network controller connected to the switch. The wireless hotspot network providing device is used to provide a wireless hotspot network. The cellular network providing device is used to provide a cellular network. The in-vehicle network data transmission device includes: an instruction acquisition module, which is used to obtain a network selection instruction, and the network selection instruction indicates to select a wireless hotspot network providing device or a cellular network providing device; a device selection module, which is used to determine the wireless hotspot network providing device or the cellular network providing device as the target network providing device based on the network selection instruction; a data receiving module, which is used to receive the network uplink traffic data sent by the network controller; a category determination module, which is used to obtain the category of the network uplink traffic data and obtain the traffic data category; a strategy determination module, which is used to determine the target forwarding strategy according to the traffic data category; a data forwarding module, which is used to forward the network uplink traffic data to the target network providing device according to the target forwarding strategy.

[0189] It should be noted that the specific implementation of the vehicle-mounted networked data transmission device is basically the same as the specific implementation example of the above-mentioned vehicle-mounted networked data transmission method, and will not be repeated here.

[0190] Reference Fig. 9 An embodiment of the present application also discloses a switch, including at least one processor and a memory for communicating with the processor; the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that at least one processor executes the above-mentioned vehicle-mounted network data transmission method.

[0191] The specific implementation method of the processor executing the vehicle networking data transmission method is basically the same as the specific embodiment of the above-mentioned vehicle networking data transmission method, and will not be repeated here.

[0192] An embodiment of the present application also discloses a vehicle, which includes: a switch for executing the vehicle-mounted network data transmission method, and a wireless hotspot network providing device, a cellular network providing device and a network controller connected to the switch.

[0193] It should be noted that the specific implementation method of the vehicle is basically the same as the specific embodiment of the above-mentioned vehicle-mounted networked data transmission method, and will not be repeated here.

[0194] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned vehicle-mounted networked data transmission method is implemented.

[0195] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0196] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0197] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0198] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0199] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0200] The terms "first", "second", "third", "fourth", etc. (if any) in the specification 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 device comprising 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.

[0201] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0202] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0203] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0204] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0205] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0206] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A vehicle-mounted networking data transmission method, characterized in that: A switch applied to a vehicle, wherein the vehicle is provided with a wireless hotspot network providing device, a cellular network providing device and a networking controller connected to the switch, wherein the wireless hotspot network providing device is used to provide a wireless hotspot network, and the cellular network providing device is used to provide a cellular network; the method comprises: Acquire a network selection instruction, wherein the network selection instruction instructs selecting the wireless hotspot network providing device or selecting the cellular network providing device; Determine the wireless hotspot network providing device or the cellular network providing device as a target network providing device based on the network selection instruction; Receiving networking uplink traffic data sent by the networking controller; Acquire the category of the networked uplink traffic data to obtain the traffic data category; Determining a target forwarding strategy according to the traffic data category; The networked uplink traffic data is forwarded to the target network providing device according to the target forwarding strategy.

2. The method according to claim 1, characterized in that The switch stores a preset forwarding strategy set; The determining of a target forwarding strategy according to the traffic data category includes: Filtering a category-associated strategy from the preset forwarding strategy set according to the traffic data category; Obtaining the forwarding strategy supported by the networking controller to obtain a target supported strategy; Comparing the target support strategy with the category association strategy to obtain a strategy comparison result; the strategy comparison result is used to characterize whether the target support strategy is the same as or different from the category association strategy; The target forwarding strategy is selected from the preset forwarding strategy set according to the strategy comparison result.

3. The method according to claim 2, characterized in that The forwarding strategy set includes a LAN identification forwarding strategy, a LAN address forwarding strategy and a multicast packet forwarding strategy; The step of selecting a category-associated strategy from the preset forwarding strategy set according to the traffic data category includes: If the traffic data category is an encrypted data category, determining the local area network identifier forwarding strategy as the category association strategy; If the traffic data category is an instruction data category, determining at least one of the local area network identification forwarding strategy and the local area network address forwarding strategy as the category association strategy; If the traffic data category is a log data category, the multicast packet forwarding strategy is determined as the category association strategy.

4. The method according to claim 2, characterized in that: The step of selecting the target forwarding strategy from the preset forwarding strategy set according to the strategy comparison result includes: If the strategy comparison result indicates that the target support strategy is the same as the category association strategy, extracting the category association strategy from the preset forwarding strategy set, and determining the category association strategy as the target forwarding strategy; If the policy comparison result indicates that the target support policy is different from the category association policy, a category general policy is extracted from the preset forwarding policy set, and the category general policy is determined as the target forwarding policy; wherein the category general policy does not include the category association policy.

5. The method according to claim 4, characterized in that The preset forwarding strategy set includes a LAN identifier forwarding strategy and a LAN address forwarding strategy, and the category association strategy includes the LAN identifier forwarding strategy and the LAN address forwarding strategy; If the strategy comparison result indicates that the target support strategy is the same as the category association strategy, extracting the category association strategy from the preset forwarding strategy set and determining the category association strategy as the target forwarding strategy includes: If the target supported policy includes a LAN address forwarding policy, extracting the LAN address forwarding policy from the preset forwarding policy set, and determining the LAN address forwarding policy as the target forwarding policy; If the target supported policy includes the LAN identifier forwarding policy but does not include the LAN address forwarding policy, the LAN identifier forwarding policy is extracted from the preset forwarding policy set, and the LAN identifier forwarding policy is determined as the target forwarding policy.

6. The method according to claim 4 or 5, characterized in that: After forwarding the networking uplink traffic data to the target network providing device according to the target forwarding strategy, the method further includes: If the target support strategy includes the LAN identifier forwarding strategy and the LAN address forwarding strategy, detecting the load of data forwarding according to the target forwarding strategy; If the load is greater than a preset load threshold, the target forwarding strategy is switched from the LAN address forwarding strategy to the LAN identifier forwarding strategy, or the target forwarding strategy is switched from the LAN identifier forwarding strategy to the LAN address forwarding strategy.

7. The method according to any one of claims 1 to 5, characterized in that: The target forwarding strategy is a local area network identifier forwarding strategy, the local area network identifier forwarding strategy includes a first local area network identifier and a second local area network identifier, the first local area network identifier is associated with the wireless hotspot network providing device, and the second local area network identifier is associated with the cellular network providing device; The forwarding of the networked uplink traffic data to the target network providing device according to the target forwarding strategy includes: Obtaining a destination LAN identifier of the networking uplink traffic data to obtain an initial destination LAN identifier; If the target network providing device is the wireless hotspot network providing device, the initial destination LAN identifier is modified to the first LAN identifier to obtain a target destination LAN identifier; If the target network providing device is the cellular network providing device, modifying the initial destination local area network identifier to the second local area network identifier to obtain a target destination local area network identifier; The networking uplink traffic data is forwarded to the target network providing device according to the target destination LAN identifier.

8. The method according to claim 7, characterized in that The switch has a first interface and a second interface, the wireless hotspot network provides a device to connect to the first interface, and the cellular network provides a device to connect to the second interface; The method of forwarding the networking uplink traffic data to the target network providing device according to the target destination LAN identifier includes: Obtain an identifier-interface mapping relationship table, wherein the identifier-interface mapping relationship table indicates a relationship between the first local area network identifier and the first interface and indicates a relationship between the second local area network identifier and the second interface; Search the identification interface mapping table according to the target destination LAN identifier to obtain the target interface; The networking uplink traffic data is forwarded from the target interface to the target network providing device.

9. The method according to any one of claims 1 to 5, characterized in that: The target forwarding strategy is a LAN address forwarding strategy, the LAN address forwarding strategy includes a first LAN address and a second LAN address, the first LAN address is associated with the wireless hotspot network providing device, and the second LAN address is associated with the cellular network providing device; The forwarding of the networked uplink traffic data to the target network providing device according to the target forwarding strategy includes: Obtaining the destination LAN address of the networking uplink traffic data to obtain an initial destination LAN address; If the target network providing device is the wireless hotspot network providing device, modifying the initial destination LAN address to the first LAN address to obtain the target destination LAN address; If the target network providing device is the cellular network providing device, modifying the initial destination LAN address to the second LAN address to obtain the target destination LAN address; The networked uplink traffic data is forwarded to the target network providing device according to the target destination LAN address.

10. The method according to claim 9, characterized in that The switch has a first interface and a second interface, the wireless hotspot network provides a device to connect to the first interface, and the cellular network provides a device to connect to the second interface; The method of forwarding the networked uplink traffic data to the target network providing device according to the target destination LAN address includes: Acquire an address-interface mapping relationship table, wherein the address-interface mapping relationship table indicates a relationship between the first local area network address and the first interface and indicates a relationship between the second local area network address and the second interface; Search the address-to-interface mapping table according to the target destination LAN address to obtain the target interface; The networking uplink traffic data is forwarded from the target interface to the target network providing device.

11. The method according to any one of claims 1 to 5, characterized in that: The target forwarding strategy is a multicast forwarding strategy, which includes a wireless hotspot multicast group and a cellular multicast group. The wireless hotspot multicast group is associated with the wireless hotspot network providing device, and the cellular multicast group is associated with the cellular network providing device. The forwarding of the networked uplink traffic data to the target network providing device according to the target forwarding strategy includes: If the target network provider is the wireless hotspot network provider, the networked uplink traffic data is divided into the wireless hotspot multicast group to obtain the target group; If the target network providing device is the cellular network providing device, dividing the networked uplink traffic data into the cellular multicast groups to obtain target groups; The networking uplink traffic data is forwarded to the target network providing device according to the target grouping.

12. A vehicle-mounted networking data transmission device, characterized in that: A switch used in a vehicle, wherein the vehicle is provided with a wireless hotspot network providing device, a cellular network providing device and a networking controller connected to the switch, wherein the wireless hotspot network providing device is used to provide a wireless hotspot network, and the cellular network providing device is used to provide a cellular network; the device comprises: An instruction acquisition module, used to acquire a network selection instruction, wherein the network selection instruction indicates to select the wireless hotspot network providing device or the cellular network providing device; A device selection module, configured to determine the wireless hotspot network providing device or the cellular network providing device as a target network providing device based on the network selection instruction; A data receiving module, used for receiving the networking uplink traffic data sent by the networking controller; A category determination module, used to obtain the category of the networked uplink traffic data and obtain the traffic data category; A strategy determination module, used to determine a target forwarding strategy according to the traffic data category; A data forwarding module is used to forward the networked uplink traffic data to the target network providing device according to the target forwarding strategy.

13. A switch, characterized in that: It includes at least one processor and a memory for communicating with the processor; the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by at least one processor to enable at least one processor to execute the in-vehicle networking data transmission method as described in any one of claims 1 to 11.

14. A vehicle, characterized in that: include: The switch as claimed in claim 13; A wireless hotspot network providing device, a cellular network providing device and a networking controller connected to the switch.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the vehicle-mounted networked data transmission method according to any one of claims 1 to 11 is implemented.

Citation Information

Cited By

  • Network node switching method, system, medium and equipment

    CN121397671A

  • In-vehicle networking data transmission

    WO2026103586A1