Network communication system, network communication method, electronic device, storage medium, and computer program product

By identifying and removing redundant tags by the message processing component at the message receiver, the problem of the message receiver being unable to parse messages with redundant tags in the vehicular backbone Ethernet ring topology was solved, and normal network communication was achieved.

CN123164162APending Publication Date: 2026-11-24CHERY AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611317210.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In a vehicle-mounted backbone Ethernet ring topology environment, the message receiver cannot parse Ethernet messages with redundant tags, resulting in format errors and message discarding, causing network outages.

Method used

Deploy a message processing component at the message receiving end to identify and remove redundant tags through preset parsing rules, convert them into standard Ethernet format, and ensure that the protocol stack can correctly parse and deliver data.

Benefits of technology

This enabled normal data exchange between the message receiver and sender, ensuring smooth network communication and correct data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164162A_ABST
    Figure CN123164162A_ABST
Patent Text Reader

Abstract

This disclosure provides a network communication system, a network communication method, an electronic device, a storage medium, and a computer program product. The network communication system includes a message sending end and a message receiving end. The message sending end is configured to send a first network message. The message receiving end is equipped with a network interface card (NIC), a message processing component, and a protocol stack. The NIC is configured to receive the first network message. The message processing component is configured to parse the fields of the first network message according to preset parsing rules to obtain a parsing result. In response to the parsing result indicating that the first network message carries a redundant tag, the component performs a redundant tag stripping operation on the first network message to obtain a second network message. The protocol stack is configured to deliver communication data to the second network message. This disclosure solves the technical problem in related technologies where the message sending end cannot communicate with the message receiving end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of network communication technology, and more specifically, to a network communication system, a network communication method, an electronic device, a storage medium, and a computer program product. Background Technology

[0002] Network packet processing is a key step in the testing of intelligent vehicle electronic and electrical architecture. In the context of an in-vehicle backbone Ethernet ring topology, the packet receiver (such as a general-purpose test computer) performs packet parsing to achieve data interaction and functional verification with the packet sender (such as a vehicle domain controller).

[0003] However, in a vehicular backbone Ethernet ring topology environment, the message receiver does not support parsing Ethernet packets with redundancy tags. When the message receiver tries to parse an Ethernet packet with a redundancy tag sent by the message sender, a format error will occur, leading to the packet being discarded and causing network failure.

[0004] There is currently no good solution to the above problems. Summary of the Invention

[0005] This disclosure provides a network communication system, network communication method, electronic device, storage medium, and computer program product to at least solve the technical problem in the related art that the message sender cannot communicate with the message receiver.

[0006] According to one aspect of the present disclosure, a network communication system is provided, including: a message sending end and a message receiving end; the message sending end is configured to send a first network message; the message receiving end is deployed with a network interface card (NIC), a message processing component, and a protocol stack, wherein the NIC is configured to receive the first network message, the message processing component is configured to parse the fields of the first network message according to a preset parsing rule to obtain a parsing result, and in response to the parsing result indicating that the first network message carries a redundant label, performs a redundant label stripping operation on the first network message to obtain a second network message, and the protocol stack is configured to deliver communication data to the second network message, wherein the redundant label is used to indicate the difference between the message structure of the first network message and the message structure used by the protocol stack for delivering communication data.

[0007] Furthermore, the first network message includes: a message header and a message payload. The message header is configured to carry network transmission control and service processing information, and the message payload is configured to carry service data.

[0008] Furthermore, the message header includes: a source address field, a destination address field, a network identifier field, and a type field; the source address field is configured to identify the data link layer physical address of the message sender; the destination address field is configured to identify the data link layer physical address of the message receiver; the network identifier field is configured to identify the identification information and priority of the virtual local area network to which the first network message belongs; and the type field is configured to identify the protocol type encapsulated by the first network message.

[0009] Furthermore, the parsing result is obtained by parsing the type field.

[0010] Furthermore, the message processing component is also configured to perform a frame check sequence regeneration operation on the second network message based on the message header of the second network message, so as to obtain an updated second network message.

[0011] Furthermore, the message processing component is also configured to forward the first network message to the protocol stack in response to a parsing result indicating that the first network message does not carry a redundant label.

[0012] Furthermore, the message receiver also has a target application deployed on it, and the protocol stack is configured to deliver the message payload in the second network message to the target application.

[0013] Furthermore, the message sender is the vehicle domain controller, and the message receiver is a general-purpose computer.

[0014] Furthermore, the message processing component is also configured to compare the field value filled in the type field with the specific protocol identifier value to determine the consistency relationship between the field value and the specific protocol identifier value, and generate the parsing result based on the consistency relationship.

[0015] Furthermore, the consistency relationship includes: maintaining consistency, and the message processing component is also configured to determine the parsing result as the first network message carries a redundant label in response to the consistency relationship being maintained.

[0016] Furthermore, the consistency relationship also includes: if the consistency relationship is not consistent, the message processing component is also configured to determine the parsing result as the first network message does not carry a redundant label in response to the consistency relationship being not consistent.

[0017] According to another aspect of the embodiments of this disclosure, a network communication method is also provided, applied to a message receiving end. The network communication method includes: receiving a first network message, wherein the first network message is generated by a message sending end; parsing the fields of the first network message according to a preset parsing rule to obtain a parsing result; in response to the parsing result indicating that the first network message carries a redundant tag, performing a redundant tag stripping operation on the first network message to obtain a second network message, wherein the redundant tag is used to indicate the difference between the message structure of the first network message and the message structure used for communication data delivery; and delivering communication data to the second network message.

[0018] Furthermore, the first network message includes a message header and a message payload, wherein the message header is configured to carry network transmission control and service processing information, and the message payload is configured to carry service data.

[0019] Furthermore, the message header includes: a source address field, a destination address field, a network identifier field, and a type field. The source address field is configured to identify the data link layer physical address of the message sender; the destination address field is configured to identify the data link layer physical address of the message receiver; the network identifier field is configured to identify the identification information and priority of the virtual local area network to which the first network message belongs; and the type field is configured to identify the protocol type encapsulated by the first network message.

[0020] Furthermore, according to the preset parsing rules, the first network packet is parsed to obtain the parsing result, including: comparing the field value filled in the type field with the specific protocol identifier value to determine the consistency relationship between the field value and the specific protocol identifier value; and generating the parsing result based on the consistency relationship.

[0021] Furthermore, the consistency relationship includes: maintaining consistency and not maintaining consistency. Based on the consistency relationship, a resolution result is generated, including: in response to the consistency relationship being consistent, determining that the first network packet carries a redundant label; in response to the consistency relationship being not consistent, determining that the first network packet does not carry a redundant label.

[0022] Furthermore, the message receiving end is also deployed with a target application, and the network communication method also includes: in response to the first network message not carrying a redundant tag, delivering the message payload in the first network message to the target application.

[0023] Furthermore, the network communication method also includes: performing a frame check sequence regeneration operation on the second network message based on the message header of the second network message to obtain an updated second network message.

[0024] Furthermore, the message sender is the vehicle domain controller, and the message receiver is a general-purpose computer.

[0025] Furthermore, the network communication method also includes: updating the frame length of the second network message to obtain the update result.

[0026] According to another aspect of the present disclosure, an electronic device is also provided, including: a memory storing an executable program; and a processor configured to run the executable program, wherein the executable program executes any of the network communication methods described above when it runs.

[0027] According to another aspect of the embodiments of this disclosure, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to perform the network communication method described in any of the above.

[0028] According to another aspect of the present disclosure, a computer program product is also provided, including a computer program that, when executed by a processor, implements the network communication method described in any of the above.

[0029] This disclosure provides a network communication system, including: a message sending end and a message receiving end; the message sending end is configured to send a first network message; the message receiving end is deployed with a network interface card (NIC), a message processing component, and a protocol stack, wherein the NIC is configured to receive the first network message, the message processing component is configured to parse the fields of the first network message according to a preset parsing rule to obtain a parsing result, and in response to the parsing result indicating that the first network message carries a redundant label, performs a redundant label stripping operation on the first network message to obtain a second network message, and the protocol stack is configured to deliver communication data to the second network message, wherein the redundant label is used to indicate the difference between the message structure of the first network message and the message structure used by the protocol stack for delivering communication data. This disclosure includes a message processing component at the message receiving end. This component parses the received first network message according to preset parsing rules, accurately identifying whether the first network message carries redundant tags. When the parsing result indicates that the first network message carries redundant tags, a redundant tag stripping operation is performed on the first network message to obtain a second network message. This eliminates the redundant tag structure in the first network message, transforming its message structure into a standard Ethernet format recognizable by the protocol stack. The protocol stack then delivers communication data to the stripped second network message, ensuring that the application at the message receiving end can correctly parse and process network messages from the message sending end, thereby enabling data interaction between the message sending end and the message receiving end. In summary, the technical solution disclosed in this disclosure effectively solves the technical problem in related technologies where the message sending end cannot communicate with the message receiving end, achieving the technical effect of normal communication between the message sending end and the message receiving end. Attached Figure Description

[0030] The accompanying drawings, which are included to provide a further understanding of this disclosure and form part of this disclosure, illustrate exemplary embodiments of the present disclosure and are used to explain the disclosure, but do not constitute an undue limitation of the disclosure. In the drawings:

[0031] Figure 1 This is a structural block diagram of a network communication system according to an embodiment of the present disclosure;

[0032] Figure 2 This is a topology diagram of a ring Ethernet according to an embodiment of the present disclosure;

[0033] Figure 3 This is a schematic diagram of a network communication connection method according to an embodiment of the present disclosure;

[0034] Figure 4 This is a schematic diagram of a message processing flow according to an embodiment of the present disclosure;

[0035] Figure 5 This is a flowchart of a network communication method according to an embodiment of the present disclosure;

[0036] Figure 6 This is a flowchart example of a message processing flow according to an embodiment of the present disclosure;

[0037] Figure 7 This is a schematic diagram illustrating an embodiment of the present disclosure of a redundant tag stripping operation. Detailed Implementation

[0038] To enable those skilled in the art to better understand the present disclosure, the technical solutions of the present disclosure will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present disclosure, and not all embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present disclosure.

[0039] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0040] This disclosure provides a network communication system. Figure 1 This is a structural block diagram of a network communication system according to an embodiment of the present disclosure, such as... Figure 1 As shown, the network communication system 100 includes: a message sending end 101 and a message receiving end 102; the message sending end 101 is configured to send a first network message; the message receiving end 102 is equipped with a network interface card (NIC), a message processing component, and a protocol stack, wherein the NIC is configured to receive the first network message, the message processing component is configured to parse the fields of the first network message according to a preset parsing rule to obtain a parsing result, and in response to the parsing result indicating that the first network message carries a redundant label, the component performs a redundant label stripping operation on the first network message to obtain a second network message, and the protocol stack is configured to deliver communication data to the second network message, wherein the redundant label is used to indicate the difference between the message structure of the first network message and the message structure used by the protocol stack for delivering communication data.

[0041] The aforementioned message sender refers to the data source node in the network communication system, which is configured to generate and send the first network message.

[0042] Optionally, the message sender can be a vehicle domain controller, in-vehicle switch, or other network device with time-sensitive networking capabilities that supports the 802.1CB protocol. In the first network message, to achieve link redundancy and fault recovery in a ring Ethernet topology, the message sender inserts a Redundancy Tag (RTAG) into the standard Ethernet frame. Therefore, the structure of the first network message is not a standard Ethernet frame, but an enhanced Ethernet frame that includes the RTAG field.

[0043] The aforementioned message receiver refers to a data receiving node in a network communication system. In this embodiment, the message receiver is specifically a general-purpose computer. The message receiver is equipped with a network interface card (NIC), message processing components, and a protocol stack.

[0044] Optionally, the network interface card (NIC) is a hardware interface responsible for signal conversion between the physical layer and the data link layer. It is configured to capture electrical or optical signals on the network medium and convert them into digital bit streams. The packet processing component is a software module deployed on the packet receiver, configured to parse and process the received raw Ethernet packets (i.e., the first network packet) in real time. The protocol stack is a collection of software within the operating system kernel responsible for network communication processing, delivering data from lower layers to upper-layer applications.

[0045] The aforementioned network interface card (NIC) is configured to receive the first network packet. When the first network packet sent by the packet sender arrives at the packet receiver, the NIC passes the received first network packet to the packet processing component through an interrupt or polling mechanism.

[0046] The aforementioned message processing component is configured to parse the fields of the first network packet according to preset parsing rules to obtain the parsing result. These preset parsing rules refer to predefined logical conditions used to identify specific Ethernet type codes. In an Ethernet frame, for an 802.1CB packet carrying an RTAG, the value of the type field (EtherType) is defined as 0xF1C1. Therefore, the message processing component extracts the EtherType field from the received first network packet and compares the value of the EtherType field with the preset RTAG identifier (i.e., 0xF1C1).

[0047] Optionally, the parsing result is used to indicate whether the first network packet carries a redundant label. When the value of EtherType is equal to 0xF1C1, the parsing result indicates that "the first network packet carries a redundant label". When the value of EtherType is not equal to 0xF1C1, the parsing result indicates that "the first network packet does not carry a redundant label".

[0048] Furthermore, in response to the parsing result indicating that the first network packet carries a redundant label, the packet processing component performs a redundant label stripping operation on the first network packet to obtain the second network packet. The redundant label stripping operation is the core step in the processing. Optionally, after identifying the presence of an RTAG in the first network packet, the packet processing component removes the RTAG from the Ethernet frame header. After the stripping operation, the original payload (i.e., the standard Ethernet frame masked by the RTAG) that was originally located after the RTAG moves forward to fill the space occupied by the RTAG. At this time, the next EtherType field, which was originally masked by the RTAG, is revealed and becomes the EtherType field in the new Ethernet frame header. The packet after the stripping operation is the second network packet. The packet structure of the second network packet conforms to the standard Ethernet frame format and no longer contains the redundant label field specific to 802.1CB.

[0049] The aforementioned protocol stack is configured to deliver communication data to the second network packet. Upon receiving the second network packet, the protocol stack reads the new EtherType field to identify the data type encapsulated in the second network packet. Since the second network packet conforms to the standard Ethernet and Internet Protocol (IP) formats supported by the protocol stack, the stack can correctly parse the IP header and transport layer header, and deliver the extracted payload to the corresponding upper-layer application. In contrast, if the stripping operation is not performed, the protocol stack, facing a first network packet with EtherType 0xF1C1, cannot recognize this EtherType because the general operating system kernel does not support the 802.1CB protocol, thus failing to parse subsequent data and causing the packet to be discarded.

[0050] The aforementioned redundancy tag is used to indicate the difference between the message structure of the first network packet and the message structure used by the protocol stack for communication data delivery. The presence of the redundancy tag indicates that the first network packet adopts the enhanced frame structure of the 802.1CB standard, which introduces an additional 6 bytes of header information to support ring network redundancy mechanisms. However, the message structure used by the protocol stack for communication data delivery typically refers to the standard IEEE 802.3 Ethernet frame structure, where EtherType directly points to the network layer protocol and does not contain the RTAG field. Therefore, the presence of the redundancy tag leads to a mismatch between the message structure and the expected structure of the protocol stack, making it impossible for the protocol stack to process directly. By removing the redundancy tag, the difference in message structure is eliminated, transforming the message structure of the first network packet into a standard structure that the protocol stack can process.

[0051] Optionally, the specific implementation of the above-mentioned packet processing component can be varied. For example, a program based on the extended Berkeley Packet Filter (eBPF) technology can be attached to the eXpress Data Path (XDP) hook in the network interface card (NIC) driver layer. XDP allows for high-speed processing of data packets at the very front of the kernel network stack with extremely low latency. An XDP program can be written to directly intercept data packets received by the NIC in kernel mode, perform operations such as field parsing and RTAG stripping, and finally allow the processed data packets to pass through the kernel protocol stack. This disclosure does not limit the specific implementation of the packet processing component, as long as RTAG stripping and delivery to the protocol stack are achieved.

[0052] This disclosure provides a network communication system, including: a message sending end and a message receiving end; the message sending end is configured to send a first network message; the message receiving end is deployed with a network interface card (NIC), a message processing component, and a protocol stack, wherein the NIC is configured to receive the first network message, the message processing component is configured to parse the fields of the first network message according to a preset parsing rule to obtain a parsing result, and in response to the parsing result indicating that the first network message carries a redundant label, performs a redundant label stripping operation on the first network message to obtain a second network message, and the protocol stack is configured to deliver communication data to the second network message, wherein the redundant label is used to indicate the difference between the message structure of the first network message and the message structure used by the protocol stack for delivering communication data. This disclosure includes a message processing component at the message receiving end. This component parses the received first network message according to preset parsing rules, accurately identifying whether the first network message carries redundant tags. When the parsing result indicates that the first network message carries redundant tags, a redundant tag stripping operation is performed on the first network message to obtain a second network message. This eliminates the redundant tag structure in the first network message, transforming its message structure into a standard Ethernet format recognizable by the protocol stack. The protocol stack then delivers communication data to the stripped second network message, ensuring that the application at the message receiving end can correctly parse and process network messages from the message sending end, thereby enabling data interaction between the message sending end and the message receiving end. In summary, the technical solution disclosed in this disclosure effectively solves the technical problem in related technologies where the message sending end cannot communicate with the message receiving end, achieving the technical effect of normal communication between the message sending end and the message receiving end.

[0053] The network communication system in the embodiments of this disclosure will be further described below.

[0054] Optionally, the first network message includes: a message header and a message payload, wherein the message header is configured to carry network transmission control and service processing information, and the message payload is configured to carry service data.

[0055] The aforementioned message header refers to the control information area located at the beginning of the first network message, configured to carry network transmission control and service processing information. This network transmission control and service processing information is primarily used to indicate the message's flow direction, its flow identifier, redundancy status, and the logical basis for frame duplication and cancellation at the receiving end.

[0056] The aforementioned payload refers to the data area following the packet header, configured to carry service data. The content of the payload depends on the EtherType field in the packet header. In the first network packet carrying the RTAG, since EtherType is 0xF1C1, the data immediately following it is the service data wrapped by the RTAG. Typically, the service data is a standard network layer protocol packet, such as an IPv4 packet (EtherType 0x0800) or an IPv6 packet (EtherType 0x86DD). The payload carries the specific content that the upper-layer application needs to transmit, such as video stream data or control command data. At the packet receiving end, only after the RTAG is correctly stripped can the service payload following the RTAG be extracted and further parsed into IP packets by the protocol stack according to the internal EtherType identifier, ultimately delivered to the application.

[0057] Optionally, the message header includes: a source address field, a destination address field, a network identifier field, and a type field; the source address field is configured to identify the data link layer physical address of the message sender; the destination address field is configured to identify the data link layer physical address of the message receiver; the network identifier field is configured to identify the identification information and priority of the virtual local area network to which the first network message belongs; and the type field is configured to identify the protocol type encapsulated by the first network message.

[0058] The aforementioned source address field is the data link layer physical address field in the packet header used to identify the sender's network interface card (NIC). In Ethernet standards, the source address field typically occupies 6 bytes (48 bits) and stores the Media Access Control (MAC) address of the network device (such as a domain controller, switch, or general-purpose computer) that sent the packet. A MAC address is a globally unique hardware identifier used to uniquely identify a network interface within a local area network (LAN). In this embodiment, when the first network packet is sent by a domain controller or switch supporting the 802.1CB protocol, the source address field records the MAC address of that specific sending node. When a general-purpose computer acts as the sender, the source address field records the MAC address of the computer's NIC. By reading the source address field, the receiving end can determine which specific physical node the packet originated from, thereby determining the destination address when a reply is needed, or updating the mapping relationship when building a MAC address table.

[0059] The destination address field mentioned above is a field in the message header used to identify the data link layer physical address of the message receiver. Similar to the source address field, the destination address field also occupies 6 bytes and stores the MAC address of the network device expected to receive the message. In unicast communication, the destination address field contains the unique MAC address of a specific receiving node. In broadcast or multicast communication, the destination address field may contain the broadcast address or multicast group address. In an 802.1CB ring network, the message is transmitted across multiple links, but the destination address field always points to the logical final receiver or the current next-hop node. The message receiver (such as a general-purpose computer) determines whether the message is the intended destination by comparing its own network card's MAC address with the destination address field in the message header.

[0060] The aforementioned network identification field is a field in the packet header used to identify the Virtual Local Area Network (VLAN) to which the first network packet belongs and its priority. In network communication, VLAN technology is used to divide a physical network into multiple logically independent broadcast domains to improve network security and management efficiency. The network identification field typically corresponds to the VLAN Tag structure in the IEEE 802.1Q standard. This field includes a 16-bit Tag Protocol Identifier (TPID) and a 12-bit Virtual Local Area Network Identifier (VID), where the VID is used to uniquely identify the VLAN ID to which the packet belongs (typically ranging from 1 to 4094). In addition, the network identification field also contains a 3-bit User Priority (UP) or Differential Service Code Point mapping field, used to indicate the processing priority of the packet in the event of network congestion. For example, in communication between an intelligent driving domain controller and a cockpit domain controller, driving control packets may be assigned a high priority, while entertainment video streams may be assigned a low priority. By setting the network identifier field, the switch can make forwarding decisions based on the VID and perform queue scheduling according to priority, ensuring low-latency transmission of critical business data.

[0061] The type field mentioned above is a field in the packet header used to identify the protocol type encapsulated in the first network packet. In a standard Ethernet frame, this type field is usually located after the source address (or after the VLAN tag) and is called the EtherType field, occupying 2 bytes. The value of the EtherType field determines which upper-layer protocol should parse the following payload portion. For example, if the value of the type field is 0x0800, the payload portion is parsed as an IPv4 protocol data unit; if the value is 0x86DD, the payload portion is parsed as an IPv6 protocol data unit; and if the value is 0x0806, the payload portion is parsed as an Address Resolution Protocol (ARP) message.

[0062] Optionally, if the message carries an RTAG, the value of the type field is typically 0xF1C1. If the message does not carry an RTAG, the value of the type field is the standard protocol type (such as 0x0800). The presence of the type field allows the protocol stack at the message receiver to call the corresponding protocol parser to process subsequent data based on the value of this field.

[0063] By defining a packet header structure that includes source address, destination address, network identifier, and type fields, a network packet format that conforms to the Ethernet standard and supports VLANs and 802.1CB extensions is constructed.

[0064] Optionally, the parsing result is obtained by parsing the type field.

[0065] Parsing the type field is the core step for the message processing component to identify the nature of the message. Optionally, the message processing component first locates the start of the Ethernet frame, skips the destination address, source address, and network identifier, and reads the next 2 bytes of data, i.e., the type field. Then, the message processing component compares the read 2-byte value with a preset RTAG identifier (0xF1C1). If the read value equals 0xF1C1, the parsing result indicates that the first network message carries a redundancy tag; if the read value is not equal to 0xF1C1 (e.g., 0x0800 or 0x8100), the parsing result indicates that the first network message does not carry a redundancy tag.

[0066] By parsing the type field, it is possible to accurately determine whether the first network packet belongs to the 802.1CB protocol category with low latency and computational overhead.

[0067] Optionally, the message processing component is further configured to perform a frame check sequence regeneration operation on the second network message based on the message header of the second network message, so as to obtain an updated second network message.

[0068] The aforementioned second network packet refers to the Ethernet frame generated after the redundant label stripping operation. During the RTAG stripping process, the original first network packet had its 6-byte redundant label field (including a 2-byte type field and a 4-byte redundant data field) removed.

[0069] Optionally, the redundant label stripping operation shortens the overall length of the message and shifts the starting position of the message payload. Because the message content has changed (the RTAG portion is missing), the Frame Check Sequence (FCS) originally attached to the end of the original message is no longer applicable to the new message structure. Therefore, the second network message initially contains an outdated or incorrect FCS value and must be recalculated to be correctly identified.

[0070] Regenerating the frame check sequence (FCS) for the second network packet is a crucial step to ensure the packet can be received by the protocol stack. Specifically, the packet processing component (such as an eBPF / XDP-based program) removes the RTAG field, shifts subsequent data forward by 6 bytes, and adjusts the frame length field. Then, the packet processing component calls a standard 32-bit cyclic redundancy check (CRC) calculation routine to calculate the new checksum. Finally, the calculated new checksum value is written to the FCS field at the end of the packet.

[0071] By regenerating the Frame Check Sequence (FCS), the problem of packet data integrity verification failure caused by RTAG stripping was eliminated. Stripping the RTAG alters the packet's bitstream, rendering the original FCS meaningless. By recalculating and updating the FCS, it was ensured that the second network packet was a valid frame conforming to Ethernet standards, with complete data and no errors. Based on the updated second network packet, the operating system's network protocol stack could successfully pass the FCS check, thereby correctly parsing the network packet information and ultimately delivering the service data to the application layer.

[0072] Optionally, the message processing component is also configured to forward the first network message to the protocol stack in response to a parsing result indicating that the first network message does not carry a redundant label.

[0073] When the parsing result indicates that the first network packet does not carry a redundant label, it means that the value of the type field is not equal to the redundant label identifier defined by the 802.1CB protocol.

[0074] Forwarding the first network packet to the protocol stack means that after confirming that the first network packet does not require RTAG stripping, the packet processing component completely passes the first network packet to the network protocol stack in the operating system kernel.

[0075] Optionally, in high-performance network processing scenarios, in order to prevent the protocol stack from incurring unnecessary overhead when processing ordinary packets, the packet processing component only performs a very lightweight check. If the parsing result indicates that the packet does not carry RTAG, the packet processing component does not need to perform time-consuming operations such as memory copying, field modification or FCS recalculation. Instead, it directly establishes a data path and points the packet pointer to the protocol stack entry.

[0076] By directly forwarding packets without redundant labels to the protocol stack, mixed network traffic is processed. For non-802.1CB packets, unnecessary label parsing and stripping are avoided, maintaining a standard network communication path and ensuring low latency and high efficiency. Based on this differentiated processing mechanism, a general-purpose computer can be compatible with both 802.1CB redundant networks and traditional Ethernet networks on a single network interface, achieving seamless integration of network environments.

[0077] Optionally, the message receiver also deploys a target application, and the protocol stack is configured to deliver the message payload in the second network message to the target application.

[0078] The target application mentioned above is a specific software program running on the message receiving end. For example, the target application could be a network diagnostic tool (such as a Ping program), an automated test script, or visualization software used to monitor the status of a domain controller.

[0079] The payload in a second network message refers to the valid data portion of an Ethernet frame after redundant tags have been removed. The payload typically encapsulates data from network layer and higher protocols. It is the core content carrying actual business information, and for upper-layer applications, it represents the final data unit that needs to be processed.

[0080] Optionally, the protocol stack is configured to deliver the payload of the second network packet to the target application. This means that after parsing the second network packet layer by layer, the protocol stack transmits the payload to the target application in user space through the operating system's internal data structures. Specifically, the protocol stack identifies the upper-layer protocol based on the EtherType of the second network packet (e.g., 0x0800 represents IPv4), then parses the IP header to obtain the source / destination IP address, and then parses the transport layer header to determine which socket to deliver to. Once a matching socket is found, the protocol stack copies the payload to the receive buffer corresponding to that socket and wakes up the target application waiting to read data from that socket. At this point, the target application can obtain the service data transmitted from the packet sender that supports the 802.1 protocol through standard system calls.

[0081] Optionally, the target application can be of various types. In intelligent driving testing scenarios, the target application may be a service on an adaptive vehicle software platform or a node based on a robot operating system. The target application needs to receive sensor data or control commands from the domain controller via Ethernet.

[0082] The mechanism of delivering message payloads to target applications through the protocol stack enables a complete data path from the underlying network hardware to the upper-layer business applications.

[0083] Optionally, the message sender is a vehicle domain controller, and the message receiver is a general-purpose computer.

[0084] In specific application scenarios, the sender of the aforementioned message is limited to the vehicle domain controller. The vehicle domain controller is the core computing unit in the automotive electronic and electrical architecture, responsible for controlling and managing all electronic control units and sensors within a specific functional domain of the vehicle. Common domain controllers include the intelligent driving domain controller (responsible for autonomous driving algorithms and perception decisions), the intelligent cockpit domain controller (responsible for human-machine interaction and entertainment systems), and the body domain controller (responsible for body functions such as windows, doors, and lights).

[0085] Optionally, the vehicle domain controller has the capability to support Time-Sensitive Networking (TSN) protocol stacks. The vehicle domain controller not only generates service data (such as camera image data, control commands, and status information), but also encapsulates the data according to the 802.1CB standard, i.e., inserting redundant tags into Ethernet frames, and sending the first network packet with the RTAG to the ring topology network through the onboard Ethernet switch to achieve highly reliable onboard communication.

[0086] The aforementioned message receiver is limited to a general-purpose computer in specific application scenarios. A general-purpose computer refers to a computing device built on a standard hardware architecture and a general-purpose operating system, such as a personal computer, laptop, or engineering workstation used for testing. Unlike dedicated vehicle domain controllers, general-purpose computers are typically used for research and development, testing, debugging, or monitoring purposes. In in-vehicle network testing environments, general-purpose computers are often used as part of a test bench to simulate external devices or manual intervention for data packet capture and analysis. However, standard general-purpose computer network cards and operating system kernels typically only support the standard IEEE 802.3 Ethernet protocol and do not support RTAG parsing and processing of the 802.1CB protocol by default. Therefore, when a general-purpose computer directly connects to a network that supports the 802.1CB protocol, communication often fails because it cannot recognize the RTAG. This disclosure fills this capability gap by deploying a message processing component on a general-purpose computer, enabling the general-purpose computer to act as a receiver for networks that support the 802.1CB protocol.

[0087] It should be noted that the specific form of the message sender can also be a vehicle-mounted switch. In a ring topology, the switch also executes the 802.1CB protocol, is responsible for frame copying and forwarding, and adds RTAGs at the egress point. Therefore, the messages received by the message receiver from the switch also carry RTAGs. This disclosure does not strictly limit the specific device type of the message sender, as long as the sender can generate Ethernet messages that conform to the 802.1CB standard and carry RTAGs.

[0088] It should be noted that the general-purpose computer is connected to the vehicle domain controller via a physical connection. Since in-vehicle Ethernet typically uses specific physical interfaces and electrical characteristics, while general-purpose computers are usually equipped with standard RJ45 interfaces (a standard physical interface type used to connect network cables), physical layer conversion is usually required between the two through an in-vehicle Ethernet adapter box.

[0089] By working together with a vehicle domain controller and a general-purpose computer, a bridge is built from the dedicated vehicle network to the general information technology network. The vehicle domain controller sends highly reliable redundant messages according to the 802.1CB standard, while the general-purpose computer uses software to strip the redundant tags and restore the redundant messages to standard Ethernet messages.

[0090] It is easy to understand that the message processing component parses the received first network message according to preset parsing rules, accurately identifying whether the first network message carries redundant tags. When the parsing result indicates that the first network message carries redundant tags, a redundant tag stripping operation is performed on the first network message to obtain the second network message. This eliminates the redundant tag structure unique to messages corresponding to the 802.1CB protocol, transforming the message structure into a standard Ethernet format recognizable by the protocol stack. The protocol stack then delivers communication data to the second network message after removing the redundant tags, ensuring that the application of the general-purpose computer can correctly parse and process messages from the vehicle domain controller that supports the 802.1CB protocol, thereby realizing data interaction between the general-purpose computer and the vehicle domain controller. In summary, the technical solution disclosed in this disclosure effectively solves the technical problem in related technologies where general-purpose computers cannot communicate with vehicle domain controllers that support the 802.1CB protocol because they do not support it, achieving the technical effect of normal communication between general-purpose computers and vehicle domain controllers.

[0091] Optionally, the message processing component is also configured to compare the field value filled in the type field with the specific protocol identifier value to determine the consistency relationship between the field value and the specific protocol identifier value, and generate the parsing result based on the consistency relationship.

[0092] The aforementioned field values ​​refer to the specific numerical values ​​extracted from the type field of the first network packet. During data link layer processing, the packet processing component locates the type field from the raw data packet buffer through memory pointer offset or register read, and reads the value filled in that field.

[0093] The aforementioned specific protocol identifier value refers to a predefined protocol type code used to uniquely identify an 802.1CB redundancy tag. According to the IEEE 802.1CB standard, when an Ethernet frame carries an RTAG, the value of the EtherType field is specified as 0xF1C1. Therefore, the specific protocol identifier value is 0xF1C1. This specific protocol identifier value is a fixed, standardized protocol identifier, and any device conforming to the 802.1CB standard will use this value as the identifier for the type field when sending a message carrying an RTAG.

[0094] Comparing the field value filled in the type field with the specific protocol identifier value to determine the consistency relationship between the field value and the specific protocol identifier value is a logical judgment operation performed by the message processing component. Specifically, the message processing component performs an equality comparison between the extracted field value and the preset specific protocol identifier value to determine the consistency relationship between the field value and the specific protocol identifier value, and generates the parsing result based on the consistency relationship.

[0095] The mechanism of comparing the field value filled in the type field with the specific protocol identifier value and generating the parsing result enables efficient and accurate identification of 802.1CB redundant messages.

[0096] Optionally, the consistency relationship includes: maintaining consistency, and the message processing component is also configured to determine, in response to the consistency relationship being maintained, that the parsing result is that the first network message carries a redundant label.

[0097] The aforementioned consistency relationship describes the degree of matching between the extracted message features and preset standard features. Specifically, the consistency relationship includes two states: "consistent" and "inconsistent". "Consistent" means that the field value extracted from the type field of the first network message is exactly equal to the predefined specific protocol identifier value used to identify the 802.1CB redundancy label. The consistency relationship is a key triggering condition for subsequent redundancy label processing, directly reflecting whether the currently processed message belongs to an 802.1CB enhanced Ethernet frame that requires special stripping operations.

[0098] By responding to the consistency relationship and determining the parsing result as carrying a redundant label, the accurate characterization of 802.1CB redundant messages is achieved.

[0099] Optionally, the consistency relationship also includes: if the consistency relationship is not consistent, the message processing component is also configured to determine the parsing result as the first network message does not carry a redundant label in response to the consistency relationship being not consistent.

[0100] When the value extracted from the type field of the first network packet is not equal to the preset specific protocol identifier value (i.e., 0xF1C1) used to identify the 802.1CB redundancy tag, the consistency relationship is determined to be inconsistent. A inconsistent consistency relationship indicates that the currently processed Ethernet frame does not contain the redundancy tag of the IEEE 802.1CB standard, is a standard Ethernet frame, or is an enhanced Ethernet frame carrying other optional fields, but is not an 802.1CB packet carrying the RTAG.

[0101] By using a mechanism that determines the parsing result as not carrying redundant tags in response to a lack of consistency in the consistency relationship, rapid identification and pass-through processing of non-802.1CB messages are achieved.

[0102] Optionally, Figure 2 This is a topology diagram of a ring Ethernet according to an embodiment of the present disclosure, such as... Figure 2 As shown, an Ethernet ring topology connection for the entire vehicle includes: a driving domain controller, a cockpit domain controller, and a body domain controller. The 802.1CB protocol is implemented in this ring topology. This ring topology can implement the standard 802.1CB protocol, directly enabling the addition and deletion of RTAGs. Figure 2 The 1000M-T1 in the text refers to a high-speed automotive Ethernet physical layer interface that conforms to the IEEE 802.3bz standard.

[0103] Optionally, Figure 3 This is a schematic diagram of a network communication connection method according to an embodiment of the present disclosure, such as... Figure 3 As shown, this network communication connection method is an Ethernet connection in a bench test environment. With this wiring method, the computer needs to directly interface with the cockpit domain controller and body domain controller that support the 802.1CB protocol. When the computer receives Ethernet packets with RTAGs, it cannot recognize these packets. Figure 3 In this context, 1000M-T1 refers to a high-speed automotive Ethernet physical layer interface conforming to the IEEE 802.3bz standard, and 1000M-TX refers to a high-speed automotive Ethernet physical layer interface conforming to the IEEE 802.3 standard.

[0104] Optionally, Figure 4 This is a schematic diagram of a message processing flow according to an embodiment of the present disclosure, such as... Figure 4 As shown, when a computer's network card receives a packet carrying a redundant tag, the upper-layer application cannot recognize the network packet forwarded by the Ethernet protocol stack without special processing. However, when the redundant tag is removed using a packet redundancy tag removal program based on eBPF / XDP, the upper-layer application can recognize the normal packet forwarded by the Ethernet protocol stack.

[0105] According to an embodiment of this disclosure, an embodiment of a network communication method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0106] According to another aspect of the embodiments of this disclosure, a network communication method is also provided, applied to a message receiving end. Figure 5 This is a flowchart of a network communication method according to an embodiment of the present disclosure, such as... Figure 5 As shown, the network communication method includes the following steps.

[0107] Step S50: Receive a first network message, wherein the first network message is generated by the message sender.

[0108] Step S51: According to the preset parsing rules, the first network packet is parsed to obtain the parsing result.

[0109] Step S52: In response to the parsing result indicating that the first network packet carries a redundant label, a redundant label stripping operation is performed on the first network packet to obtain a second network packet, wherein the redundant label is used to indicate the difference between the packet structure of the first network packet and the packet structure used for communication data delivery.

[0110] Step S53: Deliver communication data to the second network message.

[0111] The aforementioned message sender refers to the data source node in the network communication system, which is configured to generate and send the first network message.

[0112] Optionally, the message sender can be a domain controller, vehicle-mounted switch, or other network device with time-sensitive networking capabilities that supports the 802.1CB protocol.

[0113] The aforementioned message receiving end refers to a data receiving node in a network communication system. In this embodiment of the disclosure, the message receiving end is specifically a general-purpose computer. The message receiving end is equipped with a network interface card (NIC), message processing components, and a protocol stack.

[0114] When the first network packet sent by the packet sender arrives at the packet receiver, the network card passes the received first network packet to the packet processing component through an interrupt or polling mechanism.

[0115] The aforementioned preset parsing rules refer to predefined logical conditions used to identify specific Ethernet type codes. In an Ethernet frame, for an 802.1CB message carrying an RTAG, the value of the type field is defined as 0xF1C1. Therefore, the message processing component extracts the EtherType field from the received first network message and compares the value of the EtherType field with the preset RTAG identifier (i.e., 0xF1C1).

[0116] Optionally, the parsing result is used to indicate whether the first network packet carries a redundant label. When the value of EtherType is equal to 0xF1C1, the parsing result indicates that "the first network packet carries a redundant label". When the value of EtherType is not equal to 0xF1C1, the parsing result indicates that "the first network packet does not carry a redundant label".

[0117] Furthermore, in response to the parsing result indicating that the first network packet carries a redundant label, the packet processing component performs a redundant label stripping operation on the first network packet to obtain the second network packet. The protocol stack then delivers communication data to the second network packet.

[0118] The aforementioned redundancy tags are used to indicate the difference between the message structure of the first network packet and the message structure used by the protocol stack for communication data delivery. The presence of redundancy tags leads to a mismatch between the message structure and the expected structure of the protocol stack, making it impossible for the protocol stack to process the data directly.

[0119] Optionally, the first network message includes: a message header and a message payload, wherein the message header is configured to carry network transmission control and service processing information, and the message payload is configured to carry service data.

[0120] The aforementioned message header refers to the control information area located at the beginning of the first network message, configured to carry network transmission control and service processing information. This network transmission control and service processing information is primarily used to indicate the message's flow direction, its flow identifier, redundancy status, and the logical basis for frame duplication and cancellation at the receiving end.

[0121] The aforementioned message payload refers to the data area located after the message header, configured to carry service data. The content of the message payload depends on the indication of the EtherType field in the message header.

[0122] Optionally, the message header includes: a source address field, a destination address field, a network identifier field, and a type field. The source address field is configured to identify the data link layer physical address of the message sender; the destination address field is configured to identify the data link layer physical address of the message receiver; the network identifier field is configured to identify the identification information and priority of the virtual local area network to which the first network message belongs; and the type field is configured to identify the protocol type encapsulated by the first network message.

[0123] The source address field mentioned above is a field in the message header used to identify the data link layer physical address of the message sender. In the Ethernet standard, the source address field typically occupies 6 bytes and stores the media access control address of the network interface card (NIC) of the network device (such as a domain controller, switch, or general-purpose computer) that sent the message.

[0124] The destination address field mentioned above is a field in the message header used to identify the data link layer physical address of the message receiver. Similar to the source address field, the destination address field also occupies 6 bytes and stores the MAC address of the network device expected to receive the message.

[0125] The aforementioned network identification field is a field in the packet header used to identify the virtual local area network to which the first network packet belongs and its priority.

[0126] The aforementioned type field is a field in the packet header used to identify the protocol type encapsulated in the first network packet. In a standard Ethernet frame, this type field is usually located after the source address (or after the VLAN tag) and is called the EtherType field, occupying 2 bytes.

[0127] Optionally, according to preset parsing rules, the first network packet is parsed to obtain the parsing result, including the following steps:

[0128] Step S511: Compare the field value filled in the type field with the specific protocol identifier value to determine the consistency relationship between the field value and the specific protocol identifier value;

[0129] Step S512: Generate the parsing result based on the consistency relationship.

[0130] The above field values ​​refer to the specific numerical values ​​extracted from the type field of the first network message.

[0131] The aforementioned specific protocol identifier value refers to a predefined protocol type code used to uniquely identify an 802.1CB redundancy tag. According to the IEEE 802.1CB standard, when an Ethernet frame carries an RTAG, the value of the EtherType field is specified as 0xF1C1.

[0132] Optionally, the extracted field values ​​are compared with the preset specific protocol identifier values ​​to determine the consistency relationship between the field values ​​and the specific protocol identifier values, and the parsing results are generated based on the consistency relationship.

[0133] Optionally, the consistency relationship includes: maintaining consistency and not maintaining consistency. Based on the consistency relationship, the resolution result is generated, including the following steps:

[0134] Step S5121: In response to the consistency relationship being kept consistent, the parsing result is determined to be that the first network packet carries a redundant label;

[0135] In step S5122, in response to the inconsistency relationship being not consistent, the resolution result is determined to be that the first network packet does not carry a redundant label.

[0136] The aforementioned consistency relationship describes the degree of matching between the extracted message features and the preset standard features. Specifically, the consistency relationship includes two states: "consistent" and "inconsistent". "Consistent" means that the field value extracted from the type field of the first network message is exactly equal to the predefined specific protocol identifier value used to identify the 802.1CB redundancy label.

[0137] When the value extracted from the type field of the first network packet is not equal to the preset specific protocol identifier value (i.e., 0xF1C1) used to identify the 802.1CB redundancy tag, the consistency relationship is determined to be inconsistent. A inconsistent consistency relationship indicates that the currently processed Ethernet frame does not contain the redundancy tag of the IEEE 802.1CB standard, is a standard Ethernet frame, or is an enhanced Ethernet frame carrying other optional fields, but is not an 802.1CB packet carrying the RTAG.

[0138] Optionally, the message receiver also deploys a target application, and the network communication method further includes: in response to the first network message not carrying a redundant tag, delivering the message payload in the first network message to the target application.

[0139] The target application mentioned above is a specific software program running on the message receiving end. For example, the target application could be a network diagnostic tool (such as a Ping program), an automated test script, or visualization software used to monitor the status of a domain controller.

[0140] The payload in a network packet refers to the valid data portion of an Ethernet frame. The payload typically encapsulates data from network layer and higher protocols. It is the core content carrying actual business information, and for upper-layer applications, the payload is the final data unit that needs to be processed.

[0141] Optionally, the network communication method further includes: performing a frame check sequence regeneration operation on the second network message based on the message header of the second network message to obtain an updated second network message.

[0142] Regenerating the frame check sequence (FCS) for the second network packet is a crucial step to ensure the packet can be received by the protocol stack. For example, an eBPF / XDP-based program removes the RTAG field, shifts subsequent data forward by 6 bytes, and adjusts the frame length field. Then, it calls a standard 32-bit cyclic redundancy check (CRC) calculation routine to calculate the new checksum. Finally, the calculated new checksum value is written to the FCS field at the end of the packet.

[0143] Optionally, the message sender is a vehicle domain controller, and the message receiver is a general-purpose computer.

[0144] In this specific application scenario, the sender of the aforementioned messages is limited to a vehicle domain controller. Similarly, in this specific application scenario, the receiver of the aforementioned messages is limited to a general-purpose computer.

[0145] Optionally, the network communication method further includes: updating the frame length of the second network message to obtain an update result.

[0146] The aforementioned frame length update refers to the operation of modifying the fields involving length information in an Ethernet frame.

[0147] When the RTAG is removed from an Ethernet frame, the total number of bytes in the message decreases. To maintain the structural integrity of the Ethernet protocol, the message length field must be adjusted accordingly to accurately reflect the modified data frame size. The frame length update process prevents data parsing anomalies caused by incorrect length information.

[0148] Optionally, Figure 6 This is a flowchart example of a message processing flow according to an embodiment of the present disclosure, such as... Figure 6 As shown, the message processing flow includes: loading the BPF program (a lightweight, sandboxed program that runs in the operating system kernel space); receiving messages; determining whether the message carries a redundant label; when the message carries a redundant label, removing the redundant label and sending the message with the redundant label removed; when the message does not carry a redundant label, sending the message directly.

[0149] Optionally, Figure 7 This is a schematic diagram illustrating an embodiment of the present disclosure of performing a redundant tag stripping operation, as shown below. Figure 7As shown, the message before the redundancy label stripping operation includes: source address field, destination address field, network identifier field, redundancy label, and Ethernet message content. After processing by specific software, the processed message is obtained, which includes: source address field, destination address field, network identifier field, and Ethernet message content.

[0150] Optionally, in order to enable communication between a regular network and a network that supports the 802.1CB protocol, a series of preparation and deployment tasks are required, including system environment setup and software environment installation.

[0151] Optionally, the network interface card (NIC) and the domain controller can be configured to the same network segment and the same VLAN.

[0152] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0153] According to another aspect of the present disclosure, an electronic device is also provided, including: a memory storing an executable program; and a processor configured to run the executable program, wherein the executable program executes any of the network communication methods described above when it runs.

[0154] Optionally, in this embodiment, the executable program performs the following steps when it runs:

[0155] Step S50: Receive a first network message, wherein the first network message is generated by the message sender.

[0156] Step S51: According to the preset parsing rules, the first network packet is parsed to obtain the parsing result.

[0157] Step S52: In response to the parsing result indicating that the first network packet carries a redundant label, a redundant label stripping operation is performed on the first network packet to obtain a second network packet, wherein the redundant label is used to indicate the difference between the packet structure of the first network packet and the packet structure used for communication data delivery.

[0158] Step S53: Deliver communication data to the second network message.

[0159] Optionally, the first network message includes: a message header and a message payload, wherein the message header is configured to carry network transmission control and service processing information, and the message payload is configured to carry service data.

[0160] Optionally, the message header includes: a source address field, a destination address field, a network identifier field, and a type field. The source address field is configured to identify the data link layer physical address of the message sender; the destination address field is configured to identify the data link layer physical address of the message receiver; the network identifier field is configured to identify the identification information and priority of the virtual local area network to which the first network message belongs; and the type field is configured to identify the protocol type encapsulated by the first network message.

[0161] Optionally, the executable program performs the following steps when it runs: compares the field value filled in the type field with the specific protocol identifier value to determine the consistency relationship between the field value and the specific protocol identifier value; and generates the parsing result based on the consistency relationship.

[0162] Optionally, the consistency relationship includes: maintaining consistency and not maintaining consistency. When the executable program runs, it performs the following steps: in response to the consistency relationship being consistent, it determines that the parsing result is that the first network packet carries a redundant label; in response to the consistency relationship being not consistent, it determines that the parsing result is that the first network packet does not carry a redundant label.

[0163] Optionally, the message receiver also deploys a target application, and the executable program performs the following steps when it runs: in response to the first network message not carrying a redundant label, the message payload in the first network message is delivered to the target application.

[0164] Optionally, the executable program performs the following steps when it runs: based on the header of the second network packet, it performs a frame check sequence regeneration operation on the second network packet to obtain an updated second network packet.

[0165] Optionally, the message sender is a vehicle domain controller, and the message receiver is a general-purpose computer.

[0166] Optionally, the executable program performs the following steps when it runs: updates the frame length of the second network packet to obtain the update result.

[0167] According to another aspect of the embodiments of this disclosure, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is running, it controls the device where the computer-readable storage medium is located to perform the network communication method described in any of the above.

[0168] Optionally, in this embodiment, the executable program can be configured to store an executable program for performing the following steps:

[0169] Step S50: Receive a first network message, wherein the first network message is generated by the message sender.

[0170] Step S51: According to the preset parsing rules, the first network packet is parsed to obtain the parsing result.

[0171] Step S52: In response to the parsing result indicating that the first network packet carries a redundant label, a redundant label stripping operation is performed on the first network packet to obtain a second network packet, wherein the redundant label is used to indicate the difference between the packet structure of the first network packet and the packet structure used for communication data delivery.

[0172] Step S53: Deliver communication data to the second network message.

[0173] Optionally, the first network message includes: a message header and a message payload, wherein the message header is configured to carry network transmission control and service processing information, and the message payload is configured to carry service data.

[0174] Optionally, the message header includes: a source address field, a destination address field, a network identifier field, and a type field. The source address field is configured to identify the data link layer physical address of the message sender; the destination address field is configured to identify the data link layer physical address of the message receiver; the network identifier field is configured to identify the identification information and priority of the virtual local area network to which the first network message belongs; and the type field is configured to identify the protocol type encapsulated by the first network message.

[0175] Optionally, the executable program can be configured to store an executable program for performing the following steps: comparing the field value filled in the type field with the specific protocol identifier value to determine the consistency relationship between the field value and the specific protocol identifier value; and generating a parsing result based on the consistency relationship.

[0176] Optionally, the consistency relationship includes: maintaining consistency and not maintaining consistency. The executable program can be configured to store an executable program for performing the following steps: in response to a consistency relationship of maintaining consistency, determining that the first network packet carries a redundant label; in response to a consistency relationship of not maintaining consistency, determining that the first network packet does not carry a redundant label.

[0177] Optionally, the message receiver may also deploy a target application, and the aforementioned executable program may be configured to store an executable program for performing the following steps: in response to the first network message not carrying a redundant label, delivering the message payload in the first network message to the target application.

[0178] Optionally, the executable program can be configured to store an executable program for performing the following steps: based on the header of the second network packet, perform a frame check sequence regeneration operation on the second network packet to obtain an updated second network packet.

[0179] Optionally, the message sender is a vehicle domain controller, and the message receiver is a general-purpose computer.

[0180] Optionally, the executable program can be configured to store an executable program for performing the following steps: updating the frame length of the second network packet and obtaining the update result.

[0181] According to another aspect of the present disclosure, a computer program product is also provided, including a computer program that, when executed by a processor, implements the network communication method described in any of the above.

[0182] Optionally, in this embodiment, the computer program, when executed by the processor, performs the following steps:

[0183] Step S50: Receive a first network message, wherein the first network message is generated by the message sender.

[0184] Step S51: According to the preset parsing rules, the first network packet is parsed to obtain the parsing result.

[0185] Step S52: In response to the parsing result indicating that the first network packet carries a redundant label, a redundant label stripping operation is performed on the first network packet to obtain a second network packet, wherein the redundant label is used to indicate the difference between the packet structure of the first network packet and the packet structure used for communication data delivery.

[0186] Step S53: Deliver communication data to the second network message.

[0187] Optionally, the first network message includes: a message header and a message payload, wherein the message header is configured to carry network transmission control and service processing information, and the message payload is configured to carry service data.

[0188] Optionally, the message header includes: a source address field, a destination address field, a network identifier field, and a type field. The source address field is configured to identify the data link layer physical address of the message sender; the destination address field is configured to identify the data link layer physical address of the message receiver; the network identifier field is configured to identify the identification information and priority of the virtual local area network to which the first network message belongs; and the type field is configured to identify the protocol type encapsulated by the first network message.

[0189] Optionally, when the above computer program is executed by the processor, it performs the following steps: comparing the field value filled in the type field with the specific protocol identifier value to determine the consistency relationship between the field value and the specific protocol identifier value; and generating a parsing result based on the consistency relationship.

[0190] Optionally, the consistency relationship includes: maintaining consistency and not maintaining consistency. When the above computer program is executed by the processor, it performs the following steps: in response to the consistency relationship being consistent, it determines that the parsing result is that the first network packet carries a redundant label; in response to the consistency relationship being not consistent, it determines that the parsing result is that the first network packet does not carry a redundant label.

[0191] Optionally, the message receiving end also deploys a target application, and the computer program described above performs the following steps when executed by the processor: in response to the first network message not carrying a redundant tag, delivers the message payload in the first network message to the target application.

[0192] Optionally, when the above computer program is executed by the processor, it performs the following steps: based on the header of the second network packet, it performs a frame check sequence regeneration operation on the second network packet to obtain an updated second network packet.

[0193] Optionally, the message sender is a vehicle domain controller, and the message receiver is a general-purpose computer.

[0194] Optionally, when the above computer program is executed by the processor, it performs the following steps: updating the frame length of the second network packet to obtain the update result.

[0195] In the above embodiments of this disclosure, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0196] In this disclosure, "multiple" refers to two or more.

[0197] In this disclosure, unless otherwise expressly defined, the terms "installation," "connection," and "linkage" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this disclosure based on the specific circumstances.

[0198] The terms “first,” “second,” “third,” “fourth,” etc., in this disclosure (if any) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0199] In this disclosure, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, in this disclosure, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0200] In the embodiments provided in this disclosure, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection of units or modules may be electrical or other forms.

[0201] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0202] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0203] If the integrated unit is implemented as 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 this disclosure, in essence, 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0204] The above description is only a preferred embodiment of this disclosure. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principles of this disclosure, and these improvements and modifications should also be considered within the scope of protection of this disclosure.

Claims

1. A network communication system, comprising: Message sender and message receiver; The message sender is configured to send a first network message; The message receiving end is equipped with a network interface card (NIC), a message processing component, and a protocol stack. The NIC is configured to receive the first network message. The message processing component is configured to parse the fields of the first network message according to a preset parsing rule to obtain a parsing result. In response to the parsing result indicating that the first network message carries a redundant label, the component performs a redundant label stripping operation on the first network message to obtain a second network message. The protocol stack is configured to deliver communication data to the second network message. The redundant label is used to indicate the difference between the message structure of the first network message and the message structure used by the protocol stack for delivering communication data.

2. The network communication system according to claim 1, wherein, The first network message includes a message header and a message payload. The message header is configured to carry network transmission control and service processing information, and the message payload is configured to carry service data.

3. The network communication system according to claim 2, wherein, The message header includes: source address field, destination address field, network identifier field, and type field; The source address field is configured to identify the data link layer physical address of the message sender; The destination address field is configured to identify the data link layer physical address of the message receiver; The network identification field is configured to identify the identification information and priority of the virtual local area network to which the first network packet belongs; The type field is configured to identify the protocol type encapsulated in the first network message.

4. The network communication system according to claim 3, wherein, The parsing result is obtained by parsing the type field.

5. The network communication system according to claim 3, wherein, The message processing component is further configured to perform a frame check sequence regeneration operation on the second network message based on the message header of the second network message, so as to obtain an updated second network message.

6. The network communication system according to claim 1, wherein, The message processing component is also configured to forward the first network message to the protocol stack in response to the parsing result indicating that the first network message does not carry the redundant label.

7. The network communication system according to claim 1, wherein, The message receiving end is also deployed with a target application, and the protocol stack is configured to deliver the message payload in the second network message to the target application.

8. The network communication system according to claim 1, wherein, The message sender is a vehicle domain controller, and the message receiver is a general-purpose computer.

9. The network communication system according to claim 4, wherein, The message processing component is further configured to compare the field value filled in the type field with the specific protocol identifier value, determine the consistency relationship between the field value and the specific protocol identifier value, and generate the parsing result based on the consistency relationship.

10. The network communication system according to claim 9, wherein, The consistency relationship includes: maintaining consistency. The message processing component is further configured to determine, in response to the consistency relationship being maintained, that the parsing result is that the first network message carries the redundant label.

11. The network communication system according to claim 9, wherein, The consistency relationship also includes: not consistent. The message processing component is further configured to determine, in response to the consistency relationship being not consistent, that the parsing result is that the first network message does not carry the redundant label.

12. A network communication method applied at a message receiving end, the network communication method comprising: Receive a first network message, wherein the first network message is generated by the message sender; According to the preset parsing rules, the first network packet is parsed to obtain the parsing result; In response to the parsing result indicating that the first network packet carries a redundant label, a redundant label stripping operation is performed on the first network packet to obtain a second network packet, wherein the redundant label is used to indicate the difference between the packet structure of the first network packet and the packet structure used for communication data delivery; The second network message is used to deliver communication data.

13. The network communication method according to claim 12, wherein, The first network message includes a message header and a message payload, wherein the message header is configured to carry network transmission control and service processing information, and the message payload is configured to carry service data.

14. The network communication method according to claim 13, wherein, The message header includes: a source address field, a destination address field, a network identifier field, and a type field. The source address field is configured to identify the data link layer physical address of the message sender; the destination address field is configured to identify the data link layer physical address of the message receiver; the network identifier field is configured to identify the identification information and priority of the virtual local area network to which the first network message belongs; and the type field is configured to identify the protocol type encapsulated by the first network message.

15. The network communication method according to claim 14, wherein, According to the preset parsing rules, the first network packet is parsed to obtain the parsing result, including: The field value filled in the type field is compared with the specific protocol identifier value to determine the consistency relationship between the field value and the specific protocol identifier value; The parsing result is generated based on the consistency relationship.

16. The network communication method according to claim 15, wherein, The consistency relationship includes: maintaining consistency and not maintaining consistency. Based on the consistency relationship, the parsing result is generated, including: In response to the consistency relationship being consistent, it is determined that the parsing result is that the first network packet carries the redundant label; In response to the inconsistency in the consistency relationship, it is determined that the parsing result is that the first network packet does not carry the redundant label.

17. The network communication method according to claim 16, wherein, The message receiving end is also deployed with a target application, and the network communication method further includes: In response to the fact that the first network packet does not carry the redundant tag, the packet payload in the first network packet is delivered to the target application.

18. The network communication method according to claim 12, wherein, The network communication method further includes: Based on the header of the second network packet, a frame check sequence regeneration operation is performed on the second network packet to obtain the updated second network packet.

19. The network communication method according to claim 12, wherein, The message sender is a vehicle domain controller, and the message receiver is a general-purpose computer.

20. The network communication method according to claim 12, wherein, The network communication method further includes: The frame length of the second network packet is updated to obtain the update result.

21. An electronic device, comprising: Memory, which stores executable programs; A processor is configured to run the executable program, wherein the executable program, when running, performs the network communication method according to any one of claims 12 to 20.

22. A computer-readable storage medium comprising a stored executable program, wherein, When the executable program is executed, it controls the device containing the storage medium to perform the network communication method according to any one of claims 12 to 20.

23. A computer program product comprising a computer program that, when executed by a processor, implements the network communication method according to any one of claims 12 to 20.