Network data processing method and device and vehicle

By setting up multiple components in the network and sending data packets using different network transmission paths, the reliability problem caused by the single data transmission link is solved, and the reliability and accuracy of data transmission is improved.

CN119254864APending Publication Date: 2025-01-03BEIJING SEMIDRIVE TECHNOLOGY LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411397754.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

During network data transmission, single or unreliable factors in the data transmission link lead to communication failure or single point failure, resulting in device reliability problems.

Method used

By setting up multiple components in the network, each component has a different type of interface, using a compatible network communication protocol, it determines whether the data packet needs to be copied, and sends data packets through different network transmission paths to improve the reliability of data transmission and accuracy.

Benefits of technology

It improves the efficiency of data packet delivery and the reliability of data transmission, ensures that data packets can be accurately transmitted to the target network equipment, and enhances the reliability of network data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254864A_ABST
    Figure CN119254864A_ABST
Patent Text Reader

Abstract

The invention discloses a network data processing method and device and a vehicle, the method is applied to a network, a plurality of components are arranged in the network, each component corresponds to a respective network device, and a first interface and a second interface of different types are arranged on each component. The method comprises the following steps: under the condition that a first interface of a first component receives a data packet sent by first network equipment, determining whether the data packet needs to be copied based on a first field in a frame structure of the data packet; if so, copying the data packet to generate a plurality of same data packets; respectively sending the plurality of data packets to a second component through a plurality of second interfaces of the first component and different network transmission paths; and according to the playing type of the data packet and the network address in the frame structure of the data packet, transmitting the data packet to the second component, and / or sending the data packet to other components in the network. The method improves the reliability of network data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing in a network, and in particular to a network data processing method, device and vehicle. Background Art

[0002] Currently, in many network usage scenarios, the reliability requirements for traditional network data transmission are getting higher and higher. For example, in some industrial and automotive usage scenarios with high network requirements, network data transmission reliability is required to be extremely strong. However, in the process of network data processing and transmission, communication failures or single point failures often occur due to a single data transmission link or other unreliable factors, which will cause problems with the reliability of related equipment. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a network data processing method, which can improve the reliability of data transmission in the network.

[0004] The method of the embodiment of the present application is applied to a network, wherein a plurality of different components are arranged in the network, each component corresponds to a respective network device, and the components are provided with first interfaces and second interfaces of different types, and the first interfaces and the second interfaces have compatible network communication protocols, and the method includes:

[0005] In a case where a first interface of a first component receives a data packet sent by a first network device, determining whether the data packet needs to be copied based on a first field in a frame structure of the data packet, wherein the first component corresponds to the first network device;

[0006] If the data packet needs to be copied, the data packet is copied to generate multiple identical data packets;

[0007] Sending the plurality of data packets to the second interfaces of the second component respectively through the plurality of second interfaces of the first component via different network transmission paths;

[0008] According to the playback type of the data packet and the network address in the frame structure of the data packet, the data packet is transmitted to the first interface of the second component, and / or the data packet is sent to the second interface of other components in the network to send the data packet to the target network device corresponding to the target component.

[0009] Optionally, after sending the data packet to the second interface of the second component, the method further includes:

[0010] Determining whether other data packets identical to the currently received data packet have been received by the second interface of the second component based on a second field in the frame structure of the data packet and / or a network address in the frame structure of the data packet, wherein the second field is used to identify the identity of the data packet;

[0011] If it is determined that the data packet has been received, the currently received data packet is discarded.

[0012] Optionally, determining whether other data packets identical to the currently received data packet have been received by the second interface of the second component based on the second field in the frame structure of the data packet and / or the network address in the frame structure of the data packet includes:

[0013] Determine the identity information of the data packet based on the second field in the frame structure of the data packet and the network address of the data packet;

[0014] Comparing the identity information of the data packet with the record table stored by the second component;

[0015] When it is determined that the identity information of the data packet has been recorded in the record table, it is determined that other data packets identical to the currently received data packet have been received by the second interface of the second component.

[0016] Optionally, the step of duplicating the data packet to generate a plurality of identical data packets includes:

[0017] Based on the frame format of the preset network, the data packet is reframed to generate a plurality of identical data packets, wherein the network address and the second field in the frame structure of each data packet are the same.

[0018] Optionally, each of the components is connected to a second interface of another component through its respective second interface, and sending the plurality of data packets to the second interface of the second component through the plurality of second interfaces of the first component through different network transmission paths respectively includes:

[0019] sending the data packet to a second interface of the second component via a second interface of the first component in a first transmission direction;

[0020] The data packet is sent via another second interface of the first component to another second interface of the second component in a second transmission direction, wherein the first transmission direction is different from the second transmission direction.

[0021] Optionally, transmitting the data packet to the first interface of the second component and / or sending the data packet to the second interface of other components in the network according to the playback type of the data packet and the network address in the frame structure of the data packet includes:

[0022] When it is determined that the data packet is of unicast type and the destination address in the network address is the second component, the second component is determined as the target component, and the data packet is transmitted to the first interface of the second component and the data packet is no longer forwarded through the second interface of the second component;

[0023] When it is determined that the data packet is of unicast type and the destination address in the network address is not the first interface of the second component, forwarding the data packet to the target component through the second interface of the second component;

[0024] When it is determined that the data packet is of a multicast type or a broadcast type, the data packet is sent to the target component, and / or the data packet is forwarded to a plurality of corresponding target components via a second interface of the second component.

[0025] Optionally, after sending the plurality of data packets to the second interfaces of the second component respectively through the plurality of second interfaces of the first component via different network transmission paths, the method further includes:

[0026] When the second interface of the target component does not receive the data packet, or only receives the unique data packet, it is determined that a data flow failure occurs in the network.

[0027] Optionally, the method further comprises:

[0028] Different bytes of the organization code in the frame structure of the data packet are respectively determined as the first field and the second field.

[0029] The embodiment of the present application further provides a network data processing device, which is applied to a network, wherein the network is provided with a plurality of different components, each component corresponds to a respective network device, and the components are provided with different types of first interfaces and second interfaces, and the first interfaces and the second interfaces have compatible network communication protocols, and the device comprises:

[0030] a determination module configured to determine, when a first interface of a first component receives a data packet sent by a first network device, whether the data packet needs to be copied based on a first field in a frame structure of the data packet, wherein the first component corresponds to the first network device;

[0031] A copy module, configured to copy the data packet if it needs to be copied, to generate a plurality of identical data packets;

[0032] a processing module configured to send the plurality of data packets to the second interfaces of the second component respectively through the plurality of second interfaces of the first component and through different network transmission paths;

[0033] According to the playback type of the data packet and the network address in the frame structure of the data packet, the data packet is transmitted to the first interface of the second component, and / or the data packet is sent to the second interface of other components in the network to send the data packet to the target network device corresponding to the target component.

[0034] An embodiment of the present application also provides a vehicle, comprising the network data processing device as described above, wherein the device is used to process the network of the vehicle.

[0035] The processing method of the embodiment of the present application can distinguish the functions of data transmission processing by setting multiple different types of interfaces on the components in the network to improve the efficiency of data packet delivery. In the process of transmitting data packets to the target network device, different network transmission paths are used for transmission, which improves the reliability of data transmission. And the data packet can be transmitted to the target network device according to the playback type of the data packet and the network address in the frame structure of the data packet, which improves the accuracy of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A flowchart of a network data processing method according to an embodiment of the present application;

[0037] Figure 2 A schematic diagram of the structure of a frame structure of a data packet according to an embodiment of the present application;

[0038] Figure 3 A schematic diagram of the connection relationship between components in a network and corresponding network devices in an embodiment of the present application;

[0039] Figure 4 A flowchart of an embodiment of a network data processing method according to an embodiment of the present application;

[0040] Figure 5 For the embodiments of this application Figure 4 A flowchart of an embodiment of step S500;

[0041] Figure 6 For the embodiments of this application Figure 1 A flowchart of an embodiment of step S300;

[0042] Figure 7For the embodiments of this application Figure 1 A flowchart of an embodiment of step S400;

[0043] Figure 8 This is a structural block diagram of a network data processing device according to an embodiment of the present application. DETAILED DESCRIPTION

[0044] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0045] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0046] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0047] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0048] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.

[0049] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0050] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0051] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0052] A network data processing method in an embodiment of the present application is applied to a network, which may be a local area network, such as an Ethernet composed of various devices in a vehicle or other small local area network. The processing method can be used for network architecture and data transmission with network link redundancy configuration applicable to vehicle-mounted or other small local area network topologies.

[0053] The network of this embodiment is provided with a plurality of different components, which are sequentially connected to the network, each component corresponds to a respective network device, and the network device sends and receives data through the respective corresponding components. In one embodiment, the component may be other corresponding devices independent of the network device, and in another embodiment, the component may also be a part of the network device, or a subordinate device, for providing support for network data interaction for the network device.

[0054] Different types of first interfaces and second interfaces are provided on each component, and the first interface and the second interface have compatible network communication protocols. For example, both the first interface and the second interface can perform network communication based on the IEEE 802.1CB protocol of the IEEE TSN protocol family. In one embodiment, the first interface may be a G port, and the second interface may be a T port. Each component is connected to its corresponding network device through the first interface, and is connected to other components in the network through the second interface.

[0055] Based on the above network architecture, the network data processing method of the present application includes: when the first interface of the first component in the network receives a data packet sent by the first network device corresponding to the first component, the content in the data packet is analyzed to determine whether the data packet needs to be copied. If it is determined that it needs to be copied, the first component can copy it into multiple data packets with the same data content, and send the multiple data packets to the second interface of the second component through the multiple second interfaces of the first component with different network transmission paths to ensure that the data packet can be sent to the target component. Then the second component can select a specific way to send and transmit the data packet according to the playback type of the data packet. This includes transmitting the data packet to the first interface of the second component, where the second component can be the target component. The data packet can also be sent to the second interface of other components in the network, and forwarded to the second interface of the target component through the second interface of the other components, and the target component can be one or more. The target component then sends the data packet to the target network device corresponding to it through the first interface. Thus, while determining the accurate target network device, the reliability of sending the data packet is also effectively improved.

[0056] The network data processing method of the present application is described in detail below with reference to specific embodiments. Figure 1 Flow chart of the network data processing method according to an embodiment of the present application, such as Figure 1 Shown and combined Figure 2and Figure 3 , the method comprises the following steps:

[0057] S100, when a first interface of a first component receives a data packet sent by a first network device, determine whether the data packet needs to be copied based on a first field in a frame structure of the data packet, wherein the first component corresponds to the first network device.

[0058] Exemplarily, the network data processing method of the present application is applied in a network, which may be a local area network, such as an Ethernet composed of various devices in a vehicle or other small local area network. The network is provided with multiple components, and each component corresponds to its own network device. For example, the first component corresponds to the first network device, and the second component corresponds to the second network device.

[0059] Different types of first interfaces (such as G ports) and second interfaces (such as T ports) are provided on each component, so that the functions of data transmission processing are differentiated based on different types of interfaces to improve the efficiency of data packet delivery. The first component receives a data packet sent by a first network device through its first interface, analyzes the content of the data packet, and determines whether the data packet needs to be copied based on the first field. The data packet has a corresponding frame structure, which includes multiple information. In one embodiment, the first interface can be a G port, and the second interface can be a T port.

[0060] For example, Figure 2 As shown, the frame structure of Ethernet based on the 802.3 protocol includes multiple fields, wherein the orgcode field has 3 bytes, the first byte in the orgcode field is the FT field, and the last two bytes in the orgcode field are the FID field, and the FID field can represent the unique ID of the data packet in the Ethernet. In this embodiment, the FT field is determined as the first field, and the first field can be used to indicate whether the data packet needs to be copied. The FID field is determined as the second field, and the second field can represent the identity information of the data packet.

[0061] S200, if the data packet needs to be copied, copy the data packet to generate multiple identical data packets.

[0062] Exemplarily, whether the data packet needs to be copied is determined based on the content in the first field. For example, when the first field is "1", it indicates that the data packet needs to be copied, and when the first field is "0", it indicates that the data packet does not need to be copied.

[0063] If it is determined based on the first field that the data packet needs to be copied, the first component may copy the data packet to generate multiple data packets with the same content, and process the multiple data packets generated after the copying through the network respectively.

[0064] S300, sending the plurality of data packets to the second interfaces of the second component respectively via the plurality of second interfaces of the first component via different network transmission paths.

[0065] Exemplarily, the first component has multiple second interfaces, and each second interface can send data packets relatively independently. In this embodiment, multiple data packets can be sent to the second interface of the second component through different network transmission paths through the multiple second interfaces of the first component. This includes a second interface of the first component sending a data packet to the second interface of the second component in a first transmission direction, and another second interface of the first component sending another data packet to the second interface of the second component in a second transmission direction. This ensures that the data packet can be sent to the second component, and improves the reliability of data transmission.

[0066] In one embodiment, the second interface of the first component sends multiple data packets to the second interface of the second component through different network transmission paths, and the second interface of the second component receiving the data packets can be different second interfaces. Thus, multiple second interfaces can cooperate with each other to receive data packets respectively, thereby improving the receiving efficiency.

[0067] S400, according to the playback type of the data packet and the network address in the frame structure of the data packet, transmits the data packet to the first interface of the second component, and / or sends the data packet to the second interface of other components in the network, so as to send the data packet to the target network device corresponding to the target component.

[0068] Exemplarily, the broadcast type of the data packet includes at least one of the following: unicast, multicast and broadcast. Different broadcast types correspond to different modes of data packet transmission and / or target network devices for transmission. In one embodiment, unicast means that the first component transmits the data packet unidirectionally to a single target component, multicast means that the first component transmits the data packet to multiple target components, and broadcast means that the first component transmits the data packet to all components in the network, that is, all components are target components.

[0069] The frame structure of the data packet has a network address, such as the MAC address part of the frame structure, which contains information such as the destination address and source address of the data packet. The network address contains information such as the source and destination of the data packet. Therefore, the present application can accurately transmit the data packet to the second component and / or other components according to the playback type of the data packet and the network address in the frame structure of the data packet. For example, the data packet is transmitted to a second component, which is the target component. Or the data packet is transmitted to other components (such as the third component, the fourth component, etc.) through the second component, and then forwarded to the target component by other components.

[0070] The data packet eventually needs to be sent to the target network device corresponding to the target component. The specific transmission methods include: when the second component is the target component, the first component transmits the data packet to the second interface of the second component, and the second component transmits the data packet to its first interface. The first interface of the second component is connected to the first interface of the target network device, and the data packet is sent to the first interface of the target network device through the first interface of the second component, and then the data packet is sent to the target network device.

[0071] The specific transmission method also includes: the first component sends the data packet to the second interface of other components in the network, and the other components can be non-target components or target components. The first component can directly forward the data packet to the target component, or gradually forward the data packet to the target component via one or more other components, and the target component then sends the data packet to the target network device corresponding to it.

[0072] The processing method of the embodiment of the present application can distinguish the functions of data transmission processing by setting multiple different types of interfaces on the components in the network to improve the efficiency of data packet delivery. In the process of transmitting data packets to the target network device, different network transmission paths are used for transmission, which improves the reliability of data transmission. And the data packet can be transmitted to the target network device according to the playback type of the data packet and the network address in the frame structure of the data packet, which improves the accuracy of data transmission.

[0073] In one embodiment of the present application, after the data packet is sent to the second interface of the second component, Figure 4 As shown, the method further comprises the following steps:

[0074] S500, based on the second field in the frame structure of the data packet, and / or the network address in the frame structure of the data packet, determine whether other data packets identical to the currently received data packet have been received by the second interface of the second component, wherein the second field is used to identify the identity of the data packet.

[0075] Exemplarily, the frame structure includes multiple fields, wherein the org code field has 3 bytes, wherein the last two bytes are the FID field, and the FID field may represent the unique ID of the data packet in Ethernet. In this embodiment, the FID field is determined as the second field. The second field may represent the identity information of the data packet.

[0076] The network address in the frame structure of the data packet can be the MAC address part of the frame structure, which includes the destination address, source address and other information of the data packet. After receiving the data packet sent by the first component, the second component can record part of the network address in the data packet, that is, record the data packet that has been received. In one embodiment, the received data packet can be recorded based on the FID field (second field) corresponding to the original MAC address in the network address. When the second component receives the same data packet again, for example, a second interface of the second component has received a data packet. Another second interface of the second component also receives the same data packet. The second component can determine whether the same data packet has been received before based on the second field and / or network address of the data packet.

[0077] S600: If it is determined that the data packet has been received, the currently received data packet is discarded.

[0078] Exemplarily, if it is determined that the second component has received a data packet, the second component will not receive the same data packet again to save system resources. The second component will discard the currently received data packet, thereby saving system processing resources and storage space.

[0079] In one embodiment of the present application, the determining whether other data packets identical to the currently received data packet have been received by the second interface of the second component is based on the second field in the frame structure of the data packet and / or the network address in the frame structure of the data packet, such as Figure 5 As shown, including:

[0080] S510, determining identity information of the data packet based on a second field in the frame structure of the data packet and a network address of the data packet;

[0081] S520, comparing the identity information of the data packet with the record table stored in the second component;

[0082] S530: When it is determined that the identity information of the data packet has been recorded in the record table, it is determined that other data packets identical to the currently received data packet have been received by the second interface of the second component.

[0083] Exemplarily, in combination with the above embodiment, the second field in the frame structure of the data packet may be the FID field as described above, and the FID field may represent the unique ID of the data packet in Ethernet. The network address of the data packet may be the MAC address part of the frame structure, which includes information such as the destination address and source address of the data packet. It may also be used to determine the identity of the data packet. In this embodiment, based on the second field and the network address, the identity information of the data packet is accurately determined.

[0084] In one embodiment, a record table related to received data packets is stored in the second component. The record table records the identity information of the data packets that have been received by the second component. When the second component receives a data packet, the identity information of the currently received data packet can be compared with the content in the record table. If the identity information of the currently received data packet has been recorded in the record table, it is determined that other data packets identical to the currently received data packet have been received by the second interface of the second component.

[0085] In one embodiment, the identity information of the data packet recorded in the record table includes TAG information (tag information) and FID field (second field), wherein the TAG information is information calculated using the network address of the data packet. When comparing the identity information of the currently received data packet with the content in the record table, the network address in the identity information of the currently received data packet can be compared with the TAG information respectively, and then the second field in the identity information of the currently received data packet can be compared with the second field recorded in the record table. Then, it is determined whether other data packets identical to the currently received data packet have been received by the second component.

[0086] In one embodiment of the present application, the step of performing a copy operation on the data packet to generate a plurality of identical data packets includes:

[0087] Based on the frame format of the preset network, the data packet is reframed to generate a plurality of identical data packets, wherein the network address and the second field in the frame structure of each data packet are the same.

[0088] Exemplarily, the data frame formats of different types of networks are different, so based on the frame format of the preset network in the specific application scenario, the data packet is copied, and the data packet can be reframed, that is, the data frame is reconstructed, and then the corresponding data packet is generated based on the reconstructed data frame. The network address and the second field in the frame structure of each copied data packet are the same, so that after the second component receives the data packet, the identity of the currently received data packet can be judged based on the network address and the second field to determine whether the same data packet has been received.

[0089] In one embodiment of the present application, each of the components is connected to a second interface of another component through its respective second interface, and the plurality of data packets are respectively sent to the second interface of the second component through the plurality of second interfaces of the first component through different network transmission paths, such as Figure 6 Shown and combined Figure 4 ,include:

[0090] S310, sending the data packet to a second interface of the second component in a first transmission direction through a second interface of the first component.

[0091] Exemplarily, when a first component sends a data packet to a second component, the data packet may be sent to multiple second interfaces of the second component in different transmission directions in parallel through multiple second interfaces of the first component. For example, when the network is a ring, the first transmission direction may be the clockwise direction of the network, that is, the data packet is sent to a second interface of the second component closer to the first component in the clockwise direction of the network through a second interface of the first component.

[0092] S320, sending the data packet to another second interface of the second component in a second transmission direction through another second interface of the first component, wherein the first transmission direction is different from the second transmission direction.

[0093] Similarly, for example, when the network is ring-shaped, the second transmission direction can be the counterclockwise direction of the network, that is, sending the data packet to another second interface of the second component closer to the first component in the counterclockwise direction of the network through another second interface of the first component.

[0094] Since the first transmission direction is different from the second transmission direction, the reliability of the data packet during transmission is increased. For example, even if the first transmission direction fails, the data packet can be sent to the second component based on the second transmission direction.

[0095] In one embodiment of the present application, the data packet is transmitted to the first interface of the second component and / or the data packet is sent to the second interface of other components in the network according to the playback type of the data packet and the network address in the frame structure of the data packet, such as Figure 7 As shown, the following steps are included:

[0096] S410, when it is determined that the data packet is of unicast type and the destination address in the network address is the first interface of the second component, the second component is determined as the target component, and the data packet is transmitted to the first interface of the second component and the data packet is no longer forwarded through the second interface of the second component.

[0097] Exemplarily, the unicast type refers to sending a data packet to a single target component. If the destination address in the network address is the first interface of the second component, the second component is the target component. The first component can only send the data packet to the second interface of the second component through its second interface, and the second component then sends the data packet to its first interface. Since the first interface of the second component is connected to the first interface of the second network device (target network device), the data packet can be sent to the target network device. Moreover, the second component no longer forwards the data packet through its second interface, thus completing the task of accurately delivering the data packet to the target network device.

[0098] S420: When it is determined that the data packet is of unicast type and the destination address in the network address is not the first interface of the second component, the data packet is forwarded to the target component through the second interface of the second component.

[0099] Exemplarily, if the data packet is of unicast type, and the destination address in the network address is not the first interface of the second component, it indicates that the target component is not the second component. The data packet needs to be forwarded through the second component. The second interface of the second component is connected to the second interface of other components. The second component forwards the data packet to the second interface of other components connected to it through its second interface. Of course, if the data packet is not sent to the target component, other components can also forward the data packet until it is sent to the target component.

[0100] S430, when it is determined that the data packet is of a multicast type or a broadcast type, the data packet is sent to the target component, and / or the data packet is forwarded to a plurality of corresponding target components via a second interface of the second component.

[0101] Exemplarily, if the data packet is of a multicast type or a broadcast type, it indicates that the data packet needs to be sent to multiple target components, or the data packet needs to be sent to all components in the network, that is, all components are target components.

[0102] When it is determined that the data packet is of a multicast type or a broadcast type, if the second component is a target component, the data packet is transmitted to the second interface of the second component, and then the data packet is sent to the first interface of the second component, and then the data packet is sent to the target network device connected to the second component. Since there are multiple target components, the data packet can be forwarded to multiple corresponding target components via the second interface of the second component, and then the target component sends the data packet to the target network device corresponding to it.

[0103] When determining that the data packet is of a multicast type or a broadcast type, if the second component is not a target component, the data packet can be gradually forwarded to the second interfaces of multiple target components via the second interface of the second component, and then each target component sends the data packet to the target network device corresponding thereto, thereby realizing the multicast or broadcast operation of the data packet.

[0104] In one embodiment of the present application, after sending the plurality of data packets to the second interfaces of the second component respectively through the plurality of second interfaces of the first component via different network transmission paths, the method further comprises the following steps:

[0105] When the second interface of the target component does not receive the data packet, or only receives the unique data packet, it is determined that a data flow failure occurs in the network.

[0106] Exemplarily, the target component may have multiple second interfaces. In this embodiment, the first component may send data packets to multiple second interfaces of the target component. If the second component determines that it has only received a unique data packet, it indicates that only one second interface has received the data packet, and the other second interfaces have not received the data packet. Therefore, it can be determined that a data flow failure has occurred in the network and a corresponding prompt message is generated.

[0107] In one embodiment of the present application, the method further includes: determining different bytes of the organization code in the frame structure of the data packet as the first field and the second field, respectively.

[0108] For example, Figure 2 As shown, the frame structure of the data packet includes multiple fields, including an organization code as an orgcode field. The orgcode field has 3 bytes, the first byte in the orgcode field is the FT field, and the last two bytes in the orgcode field are the FID field. The FID field can represent the unique ID of the data packet in Ethernet. In this embodiment, the FT field is determined as the first field, and the first field can be used to indicate whether the data packet needs to be copied. The FID field is determined as the second field, and the second field can represent the identity information of the data packet.

[0109] In one embodiment, the organization code may also be represented by the first 3 bytes of the source address in the MAC address in the frame structure, so that the org code field can be effectively utilized to perform the above-mentioned network data processing method in this embodiment.

[0110] The embodiment of the present application further provides a network data processing device, which is applied to a network, wherein the network is provided with a plurality of different components, each component corresponds to its own network device, and the components are provided with different types of first interfaces and second interfaces, and the first interfaces and the second interfaces have compatible network communication protocols, such as Figure 8 As shown, the device comprises:

[0111] A determination module is configured to determine whether a data packet needs to be copied based on a first field in a frame structure of a data packet when a first interface of a first component receives a data packet sent by a first network device, wherein the first component corresponds to the first network device.

[0112] Exemplarily, the network data processing device of the present application is applied to a network, which may be a local area network, such as an Ethernet composed of various devices in a vehicle or other small local area network. The network is provided with multiple components, and each component corresponds to its own network device. For example, the first component corresponds to the first network device, and the second component corresponds to the second network device.

[0113] Different types of first interfaces (such as G ports) and second interfaces (such as T ports) are provided on each component, so that the functions of data transmission processing are differentiated based on different types of interfaces to improve the efficiency of data packet delivery. The first component receives a data packet sent by the first network device through its first interface, and the determination module analyzes the content of the data packet and determines whether the data packet needs to be copied based on the first field. The data packet has a corresponding frame structure, which includes multiple information. In one embodiment, the first interface can be a G port and the second interface can be a T port.

[0114] For example, the frame structure of Ethernet based on the 802.3 protocol includes multiple fields, wherein the org code field has 3 bytes, the first byte in the org code field is the FT field, and the last two bytes in the org code field are the FID field, and the FID field can represent the unique ID of the data packet in the Ethernet. In this embodiment, the FT field is determined as the first field, and the first field can be used to indicate whether the data packet needs to be copied. The FID field is determined as the second field, and the second field can represent the identity information of the data packet.

[0115] The copy module is configured to copy the data packet if it needs to be copied, so as to generate a plurality of identical data packets.

[0116] Exemplarily, whether the data packet needs to be copied is determined based on the content in the first field. For example, when the first field is "1", it indicates that the data packet needs to be copied, and when the first field is "0", it indicates that the data packet does not need to be copied.

[0117] If it is determined based on the first field that the data packet needs to be copied, the copy module can copy the data packet through the first component to generate multiple data packets with the same content, and process the multiple data packets generated after the copying through the network respectively.

[0118] a processing module configured to send the plurality of data packets to the second interfaces of the second component respectively through the plurality of second interfaces of the first component and through different network transmission paths;

[0119] According to the playback type of the data packet and the network address in the frame structure of the data packet, the data packet is transmitted to the first interface of the second component, and / or the data packet is sent to the second interface of other components in the network to send the data packet to the target network device corresponding to the target component.

[0120] Exemplarily, the first component has multiple second interfaces, and each second interface can send data packets relatively independently. In this embodiment, the processing module can send multiple data packets to the second interfaces of the second component respectively through the multiple second interfaces of the first component in different network transmission paths. This includes sending a data packet to the second interface of the second component through a second interface of the first component in a first transmission direction, and sending another data packet to the second interface of the second component through another second interface of the first component in a second transmission direction. This ensures that the data packet can be sent to the second component, and improves the reliability of data transmission.

[0121] In one embodiment, multiple data packets are sent to the second interface of the second component through different network transmission paths through the second interface of the first component, and the second interface of the second component receiving the data packets can be different second interfaces. Thus, multiple second interfaces can cooperate with each other to receive data packets respectively, thereby improving the receiving efficiency.

[0122] The data packet playback type includes at least one of the following: unicast, multicast and broadcast. Different playback types correspond to different data packet transmission modes and / or target network devices for transmission. In one embodiment, unicast means that the first component transmits the data packet unidirectionally to a single target component, multicast means that the first component transmits the data packet to multiple target components, and broadcast means that the first component transmits the data packet to all components in the network, that is, all components are target components.

[0123] The frame structure of the data packet has a network address, such as the MAC address part of the frame structure, which contains information such as the destination address and source address of the data packet. The network address contains information such as the source and destination of the data packet. Therefore, the processing module of the present application can accurately transmit the data packet to the second component and / or other components according to the playback type of the data packet and the network address in the frame structure of the data packet. For example, the data packet is transmitted to a second component, which is the target component. Or the data packet is transmitted to other components (such as the third component, the fourth component, etc.) through the second component, and then forwarded to the target component by other components.

[0124] The data packet eventually needs to be sent to the target network device corresponding to the target component. The specific transmission method includes: when the second component is the target component, the processing module transmits the data packet to the second interface of the second component through the first component, and then transmits the data packet to its first interface through the second component. The first interface of the second component is connected to the first interface of the target network device, and is sent to the first interface of the target network device through the first interface of the second component, and then the data packet is sent to the target network device.

[0125] The specific transmission method also includes: the processing module sends the data packet to the second interface of other components in the network through the first component, and the other components can be non-target components or target components. The processing module can directly forward the data packet to the target component through the first component, or gradually forward the data packet to the target component through one or more other components, and then send the data packet to the corresponding target network device through the target component.

[0126] In one embodiment of the present application, after sending the data packet to the second interface of the second component, the processing module is further configured to:

[0127] Determining whether other data packets identical to the currently received data packet have been received by the second interface of the second component based on a second field in the frame structure of the data packet and / or a network address in the frame structure of the data packet, wherein the second field is used to identify the identity of the data packet;

[0128] If it is determined that the data packet has been received, the currently received data packet is discarded.

[0129] In one embodiment of the present application, the processing module is further configured to:

[0130] Determine the identity information of the data packet based on the second field in the frame structure of the data packet and the network address of the data packet;

[0131] Comparing the identity information of the data packet with the record table stored by the second component;

[0132] When it is determined that the identity information of the data packet has been recorded in the record table, it is determined that other data packets identical to the currently received data packet have been received by the second interface of the second component.

[0133] In one embodiment of the present application, the copy module is further configured as follows:

[0134] Based on the frame format of the preset network, the data packet is reframed to generate a plurality of identical data packets, wherein the network address and the second field in the frame structure of each data packet are the same.

[0135] In one embodiment of the present application, the components are connected to the second interfaces of other components through their respective second interfaces, and the processing module is further configured as follows:

[0136] sending the data packet to a second interface of the second component via a second interface of the first component in a first transmission direction;

[0137] The data packet is sent via another second interface of the first component to another second interface of the second component in a second transmission direction, wherein the first transmission direction is different from the second transmission direction.

[0138] In one embodiment of the present application, the processing module is further configured to:

[0139] When it is determined that the data packet is of unicast type and the destination address in the network address is the second component, the second component is determined as the target component, and the data packet is transmitted to the first interface of the second component and the data packet is no longer forwarded through the second interface of the second component;

[0140] When it is determined that the data packet is of unicast type and the destination address in the network address is not the first interface of the second component, forwarding the data packet to the target component through the second interface of the second component;

[0141] When it is determined that the data packet is of a multicast type or a broadcast type, the data packet is sent to the target component, and / or the data packet is forwarded to a plurality of corresponding target components via a second interface of the second component.

[0142] In one embodiment of the present application, the processing module is further configured to:

[0143] When the second interface of the target component does not receive the data packet, or only receives the unique data packet, it is determined that a data flow failure occurs in the network.

[0144] In one embodiment of the present application, the determination module is further configured to: determine different bytes of the organization code in the frame structure of the data packet as the first field and the second field, respectively.

[0145] An embodiment of the present application also provides a vehicle, comprising the network data processing device as described above, wherein the device is used to process the network of the vehicle.

[0146] An embodiment of the present application further provides an electronic device, as shown in the figure, comprising a processor and a memory, wherein the memory stores an executable program, and the memory executes the executable program to perform the steps of the method described above.

[0147] An embodiment of the present application further provides a storage medium, wherein the storage medium carries one or more computer programs, and when the one or more computer programs are executed by a processor, the steps of the method described above are implemented.

[0148] An embodiment of the present application also provides a computer program product, including a computer program / instruction, which implements the steps of the above method when executed by a processor.

[0149] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.

[0150] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM).

[0151] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) is integrated in the processor.

[0152] It should be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0153] It should also be understood that the first, second, third, fourth and various numerical numbers involved in this document are only distinctions made for the convenience of description and are not intended to limit the scope of the present application.

[0154] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0155] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0156] In various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0157] Those skilled in the art will appreciate that the various illustrative logical blocks (ILBs) and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0158] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and electronic devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the 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.

[0159] The units described 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.

[0160] 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.

[0161] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0162] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A network data processing method, characterized in that: Applied in a network, the network is provided with a plurality of different components, each component corresponds to its own network device, the components are provided with different types of first interfaces and second interfaces, the first interfaces and the second interfaces have compatible network communication protocols, the method comprises: In a case where a first interface of a first component receives a data packet sent by a first network device, determining whether the data packet needs to be copied based on a first field in a frame structure of the data packet, wherein the first component corresponds to the first network device; If the data packet needs to be copied, the data packet is copied to generate multiple identical data packets; Sending the plurality of data packets to the second interfaces of the second component respectively through the plurality of second interfaces of the first component via different network transmission paths; According to the playback type of the data packet and the network address in the frame structure of the data packet, the data packet is transmitted to the first interface of the second component, and / or the data packet is sent to the second interface of other components in the network to send the data packet to the target network device corresponding to the target component.

2. The network data processing method according to claim 1, characterized in that: After sending the data packet to the second interface of the second component, the method further includes: Determining whether other data packets identical to the currently received data packet have been received by the second interface of the second component based on a second field in the frame structure of the data packet and / or a network address in the frame structure of the data packet, wherein the second field is used to identify the identity of the data packet; If it is determined that the data packet has been received, the currently received data packet is discarded.

3. The network data processing method according to claim 2, characterized in that: The determining, based on a second field in the frame structure of the data packet and / or a network address in the frame structure of the data packet, whether other data packets identical to the currently received data packet have been received by the second interface of the second component comprises: Determine the identity information of the data packet based on the second field in the frame structure of the data packet and the network address of the data packet; Comparing the identity information of the data packet with the record table stored by the second component; When it is determined that the identity information of the data packet has been recorded in the record table, it is determined that other data packets identical to the currently received data packet have been received by the second interface of the second component.

4. The network data processing method according to claim 2, characterized in that: The step of duplicating the data packet to generate a plurality of identical data packets comprises: Based on the frame format of the preset network, the data packet is reframed to generate a plurality of identical data packets, wherein the network address and the second field in the frame structure of each data packet are the same.

5. The network data processing method according to claim 1, characterized in that: The components are connected to the second interfaces of other components through their respective second interfaces, and the multiple data packets are sent to the second interfaces of the second components through the multiple second interfaces of the first component through different network transmission paths, including: sending the data packet to a second interface of the second component via a second interface of the first component in a first transmission direction; The data packet is sent via another second interface of the first component to another second interface of the second component in a second transmission direction, wherein the first transmission direction is different from the second transmission direction.

6. The network data processing method according to claim 1, characterized in that: The method of transmitting the data packet to the first interface of the second component and / or sending the data packet to the second interface of other components in the network according to the playback type of the data packet and the network address in the frame structure of the data packet comprises: When it is determined that the data packet is of unicast type and the destination address in the network address is the second component, the second component is determined as the target component, and the data packet is transmitted to the first interface of the second component and the data packet is no longer forwarded through the second interface of the second component; When it is determined that the data packet is of unicast type and the destination address in the network address is not the first interface of the second component, forwarding the data packet to the target component through the second interface of the second component; When it is determined that the data packet is of a multicast type or a broadcast type, the data packet is sent to the target component, and / or the data packet is forwarded to a plurality of corresponding target components via a second interface of the second component.

7. The network data processing method according to claim 1, characterized in that: After sending the plurality of data packets to the second interfaces of the second component respectively through the plurality of second interfaces of the first component via different network transmission paths, the method further comprises: When the second interface of the target component does not receive the data packet, or only receives the unique data packet, it is determined that a data flow failure occurs in the network.

8. The network data processing method according to claim 2, characterized in that: The method further comprises: Different bytes of the organization code in the frame structure of the data packet are respectively determined as the first field and the second field.

9. A network data processing device, characterized in that: Applied in a network, the network is provided with a plurality of different components, each component corresponds to its own network device, the components are provided with different types of first interfaces and second interfaces, the first interfaces and the second interfaces have compatible network communication protocols, and the device comprises: a determination module configured to determine, when a first interface of a first component receives a data packet sent by a first network device, whether the data packet needs to be copied based on a first field in a frame structure of the data packet, wherein the first component corresponds to the first network device; A copy module, configured to copy the data packet if it needs to be copied, to generate a plurality of identical data packets; a processing module configured to send the plurality of data packets to the second interfaces of the second component respectively through the plurality of second interfaces of the first component and through different network transmission paths; According to the playback type of the data packet and the network address in the frame structure of the data packet, the data packet is transmitted to the first interface of the second component, and / or the data packet is sent to the second interface of other components in the network to send the data packet to the target network device corresponding to the target component.

10. A vehicle, characterized in that: It comprises the network data processing device as claimed in claim 9, wherein the device is used to process the network of the vehicle.