Message transmission methods, devices, and in-vehicle network equipment for vehicle networks
By parsing the header and source port information of the vehicle network packets and performing redundant sending, forwarding, or dropping operations, the problem of high configuration complexity of the vehicle network is solved, and high-reliability transmission of critical business data and simplified commissioning are achieved.
Patent Information
- Application Number
- CN202611364410.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-17
AI Technical Summary
In centralized or regional vehicle electronic and electrical architectures, the network configuration and debugging complexity of the vehicle Ethernet backbone increases rapidly with the number of nodes, and existing technologies have not been able to effectively solve this problem.
By receiving target service messages, parsing message header and source port information, and using the decision module to determine redundant transmission, message forwarding, or backflow and discarding operations, the system can achieve precise processing of the vehicle network and reduce the complexity of network configuration and commissioning.
It enables precise processing of critical business data in the vehicle network, reduces the complexity of network configuration and commissioning, and improves the reliability and stability of the vehicle network.
Smart Images

Figure CN123123486A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle communication technology, and more specifically, to a message transmission method, apparatus, and vehicle network device for a vehicle network. Background Technology
[0002] In centralized or regional vehicle electronic and electrical architectures, the in-vehicle Ethernet backbone often adopts a ring topology to improve link redundancy. Related technologies typically utilize the IEEE 802.1CB Frame Replication and Elimination for Reliability (FRER) mechanism, which plans a pair of Virtual Local Area Networks (VLANs) between each pair of Electronic Control Units (ECUs) requiring protection, enabling dual-path transmission of critical services. However, as the number of protected nodes increases, the number of VLANs and switch rule sets required by the relevant solutions grows rapidly and linearly, leading to a significant increase in the complexity of network planning, switch rule maintenance, host interface configuration, and debugging.
[0003] There is currently no good solution to the above problems. Summary of the Invention
[0004] This application provides a message transmission method, apparatus, and device for vehicular networks, to at least solve the technical problem of high network configuration and debugging complexity caused by the increasing number of node pairs in vehicular network message transmission methods in related technologies.
[0005] According to one aspect of the embodiments of this application, a message transmission method for a vehicular network is provided, comprising: receiving a target service message, wherein the target service message carries target service data carried in a protected virtual local area network; parsing the target service message to obtain message header information and source port information of the target service message, wherein the message header information includes at least: a source medium access control address, a destination medium access control address, and a message type identifier; performing decision processing based on the message header information and the source port information to determine the message processing operation corresponding to the target service message, wherein the message processing operation includes at least one of the following: redundant transmission operation, message forwarding operation, and backflow discarding operation; and performing the corresponding message processing operation on the target service message.
[0006] Optionally, the protected virtual LAN includes ring network backbone ports, and the dynamic media access control address learning function of the protected virtual LAN is disabled.
[0007] Optionally, decision processing is performed based on the message header information and source port information to determine the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is the local host port, and the source media access control address in the message header information is the local host physical address, the destination media access control address is the remote physical address, and the message type identifier indicates that the target service message is a unicast service message, and determining to perform redundant transmission operation on the target service message.
[0008] Optionally, performing corresponding message processing operations on the target service message includes: performing replication processing on the unicast service message to generate multiple first message copies; adding redundant tags to the multiple first message copies to obtain multiple second message copies; and sending the multiple second message copies to network ports in different transmission directions in the vehicular ring network.
[0009] Optionally, decision processing is performed based on the message header information and source port information to determine the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is the local host port, and the source media access control address in the message header information is the local host physical address, the destination media access control address is the local physical address, and the message type identifier indicates that the target service message is a unicast service message, and determining to perform a message forwarding operation on the target service message.
[0010] Optionally, performing corresponding message processing operations on the target service message includes: determining the local destination port based on the local physical address; and directly forwarding the unicast service message to the local destination port.
[0011] Optionally, decision processing is performed based on the message header information and source port information to determine the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is a ring network port, and the source media access control address in the message header information is the remote host physical address, the destination media access control address is the local physical address, and the message type identifier indicates that the target service message is a unicast service message, and determining to perform a message forwarding operation on the target service message.
[0012] Optionally, performing corresponding message processing operations on the target service message includes: deduplicating the unicast service message to obtain a first deduplicated message; deleting redundant tags in the first deduplicated message to obtain a first delabeled message; determining the local destination host port based on the local physical address; and forwarding the first delabeled message to the local destination host port.
[0013] Optionally, decision processing is performed based on the message header information and source port information to determine the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is a local host port, and the source media access control address in the message header information is a local host physical address, and the message type identifier indicating that the target service message is a shared service message, determining to perform a message forwarding operation on the target service message.
[0014] Optionally, performing corresponding message processing operations on the target service message includes: performing replication processing on the shared service message to generate multiple third message copies; adding redundancy tags to the multiple third message copies to obtain multiple fourth message copies; sending the multiple fourth message copies to network ports in different transmission directions in the vehicular ring network, and sending at least one of the multiple fourth message copies to the local receiving port.
[0015] Optionally, decision processing is performed based on the message header information and source port information to determine the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is a ring network port, and the source media access control address in the message header information is the physical address of the remote host, and the message type identifier indicating that the target service message is a shared service message, determining to perform a message forwarding operation on the target service message.
[0016] Optionally, performing corresponding message processing operations on the target service message includes: performing deduplication processing on the shared service message to obtain a second deduplicated message; deleting redundant tags in the second deduplicated message to obtain a second detagged message; sending the second detagged message to the local receiving port; and sending the shared service message to network ports in different transmission directions in the vehicular ring network.
[0017] Optionally, the shared service message includes at least one of the following: multicast service message and broadcast service message.
[0018] Optionally, the decision processing based on the message header information and source port information determines the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is a ring network port and the source media access control address in the message header information is the local host physical address, determining that the target service message is a return service message, and performing a return discard operation on the target service message.
[0019] According to another aspect of the embodiments of this application, a message transmission device for a vehicular network is also provided, comprising: a receiving module for receiving a target service message, wherein the target service message carries target service data carried in a protected virtual local area network; a parsing module for parsing the target service message to obtain message header information and source port information of the target service message, wherein the message header information includes at least: a source medium access control address, a destination medium access control address, and a message type identifier; a decision module for making a decision based on the message header information and the source port information to determine the message processing operation corresponding to the target service message, wherein the message processing operation includes at least one of the following: redundant transmission operation, message forwarding operation, and backflow discarding operation; and a processing module for performing the corresponding message processing operation on the target service message.
[0020] Optionally, the protected virtual LAN includes ring network backbone ports, and the dynamic media access control address learning function of the protected virtual LAN is disabled.
[0021] Optionally, the decision module is further configured to: in response to the source port information indicating that the port is a local host port, and the source media access control address in the packet header information is a local host physical address, the destination media access control address is a remote physical address, and the packet type identifier indicates that the target service packet is a unicast service packet, determine to perform a redundant transmission operation on the target service packet.
[0022] Optionally, the processing module is also used to: perform replication processing on unicast service messages to generate multiple first message copies; add redundant tags to the multiple first message copies to obtain multiple second message copies; and send the multiple second message copies to network ports in different transmission directions in the vehicle ring network.
[0023] Optionally, the decision module is further configured to: in response to the source port information indicating that the port is a local host port, and the source media access control address in the packet header information is a local host physical address, the destination media access control address is a local physical address, and the packet type identifier indicates that the target service packet is a unicast service packet, determine to perform a packet forwarding operation on the target service packet.
[0024] Optionally, the processing module is also used to: determine the local destination port based on the local physical address; and directly forward unicast service packets to the local destination port.
[0025] Optionally, the decision module is further configured to: in response to the source port information indicating that the port is a ring network port, and the source media access control address in the packet header information is the physical address of the remote host, the destination media access control address is the local physical address, and the packet type identifier indicates that the target service packet is a unicast service packet, determine to perform a packet forwarding operation on the target service packet.
[0026] Optionally, the processing module is further configured to: perform deduplication processing on unicast service packets to obtain a first deduplicated packet; delete redundant tags in the first deduplicated packet to obtain a first delabeled packet; determine the local destination host port based on the local physical address; and forward the first delabeled packet to the local destination host port.
[0027] Optionally, the decision module is further configured to: in response to the source port information indicating that the port is a local host port, and the source media access control address in the packet header information is a local host physical address, and the packet type identifier indicating that the target service packet is a shared service packet, determine to perform a packet forwarding operation on the target service packet.
[0028] Optionally, the processing module is further configured to: perform replication processing on the shared service message to generate multiple third message copies; add redundant tags to the multiple third message copies to obtain multiple fourth message copies; send the multiple fourth message copies to network ports in different transmission directions in the vehicle ring network respectively; and send at least one of the multiple fourth message copies to the local receiving port.
[0029] Optionally, the decision module is further configured to: in response to the source port information indicating that the port is a ring network port, and the source media access control address in the packet header information is the physical address of the remote host, and the packet type identifier indicating that the target service packet is a shared service packet, determine to perform a packet forwarding operation on the target service packet.
[0030] Optionally, the processing module is further configured to: perform deduplication processing on the shared service message to obtain a second deduplicated message; delete redundant tags in the second deduplicated message to obtain a second detagged message; send the second detagged message to the local receiving port; and send the shared service message to network ports in different transmission directions in the vehicle ring network respectively.
[0031] Optionally, the shared service message includes at least one of the following: multicast service message and broadcast service message.
[0032] Optionally, the decision module is further configured to: determine that the target service packet is a return service packet in response to the source port information indicating that the port is a ring network port and the source media access control address in the packet header information is the local host physical address, and perform a return discard operation on the target service packet.
[0033] According to another aspect of the embodiments of this application, an in-vehicle network device is also provided, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods in various embodiments of this application when it runs.
[0034] According to another aspect of the embodiments of this application, 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 methods of various embodiments of this application.
[0035] According to another aspect of the embodiments of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the methods of various embodiments of this application.
[0036] According to another aspect of the embodiments of this application, a computer program product is also provided, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods in various embodiments of this application.
[0037] According to another aspect of the embodiments of this application, a computer program is also provided, which, when executed by a processor, implements the methods of the various embodiments of this application.
[0038] In this embodiment, by receiving target service packets carrying target service data in a protected virtual local area network, parsing the packet header information and source port information, and performing decision processing based on the packet header information and source port information to determine redundant transmission operation, packet forwarding operation, or backflow and discard operation, and then performing the corresponding packet processing operation, the purpose of accurately processing packets carrying protected service data is achieved. This reduces the technical effect of network configuration and debugging complexity, and solves the technical problem of high network configuration and debugging complexity caused by the increase of node logarithms in the vehicular network packet transmission method in related technologies. Attached Figure Description
[0039] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0040] Figure 1 This is a flowchart of an optional message transmission method for an in-vehicle network according to an embodiment of this application;
[0041] Figure 2 This is a schematic diagram of an optional unicast service message processing operation according to an embodiment of this application;
[0042] Figure 3 This is a schematic diagram of another optional unicast service message processing operation according to an embodiment of this application;
[0043] Figure 4 This is a schematic diagram of an optional shared service message processing operation according to an embodiment of this application;
[0044] Figure 5 This is a schematic diagram of another optional shared service message processing operation according to an embodiment of this application;
[0045] Figure 6 This is a structural block diagram of an optional message transmission device for a vehicle network according to an embodiment of this application. Detailed Implementation
[0046] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0047] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application 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 application 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.
[0048] In centralized or regional vehicle electronic and electrical architectures, the in-vehicle Ethernet backbone often adopts a ring topology to enhance link redundancy and ensure reliable transmission of critical services even in the event of link failure. Related engineering solutions are mostly based on the IEEE 802.1CB standard, utilizing switches to perform packet replication and deduplication (FRER) mechanisms to achieve this goal. However, these technologies typically employ a "dual-VLAN tunnel-based" protection scheme. This involves planning a separate VLAN pair for each pair of ECU nodes requiring protection, with the ingress switch replicating packets between the two VLANs for bidirectional transmission along the ring network, and the egress switch performing deduplication.
[0049] While the above solutions can achieve basic redundancy protection, their shortcomings become increasingly apparent when facing large-scale vehicle network topologies: as the number of protected nodes increases, the number of VLANs required and the corresponding switch rule sets grow linearly or even exponentially, leading to a significant increase in the complexity of network planning, switch rule maintenance, host interface configuration, and system debugging. Furthermore, the host ECU needs to maintain multiple VLAN interfaces and corresponding Internet Protocol (IP) subnets, and the application layer often needs to explicitly bind multiple interfaces, which not only increases the difficulty of host-side software development but also introduces the potential risks and maintenance burden of multiple interface bindings.
[0050] Therefore, the relevant methods still have technical problems such as high complexity in network configuration and debugging.
[0051] According to an embodiment of this application, a method embodiment for message transmission in a vehicle network 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.
[0052] This embodiment provides a message transmission method for an in-vehicle network. Figure 1 This is a flowchart of an optional message transmission method for an in-vehicle network according to an embodiment of this application, such as... Figure 1 As shown, the process includes the following steps:
[0053] Step S11: Receive the target service message, wherein the target service message carries the target service data carried in the protected virtual local area network;
[0054] Step S12: Parse the target service message to obtain the message header information and source port information of the target service message. The message header information includes at least the source media access control address, the destination media access control address, and the message type identifier.
[0055] Step S13: Make a decision based on the message header information and source port information to determine the message processing operation corresponding to the target service message. The message processing operation includes at least one of the following: redundant sending operation, message forwarding operation, and backflow discarding operation.
[0056] Step S14: Perform the corresponding message processing operation on the target service message.
[0057] The aforementioned target service message can be a network message encapsulated with critical service data carried in a protected virtual local area network. This message carries target service data that needs to be transmitted in a high-reliability environment and is the object processed in the embodiments of this application.
[0058] The aforementioned protected virtual local area network (VLAN) can be a VLAN planned within the vehicle network to carry all protected services, i.e., a protected VLAN. This VLAN corresponds to a protected subnet, and all critical services are uniformly carried through this VLAN to simplify network configuration.
[0059] The aforementioned target service data can be critical service information that requires high-reliability transmission in vehicular Ethernet, such as autonomous driving control commands, vehicle stability system signals, or powertrain status data. In this embodiment, target service data specifically refers to service data carried in a protected virtual local area network (VLAN), distinguishing it from non-critical service data.
[0060] For example, when receiving a target service message, the switch port of the vehicle-mounted Ethernet ring network listens for and receives incoming data frames. When the VLAN tag of the data frame identifies it as a protected virtual local area network (VLAN), the data frame is determined to be a target service message. This step enables the initial access of critical service data in the ring network, ensuring that only service data carried within a protected VLAN enters the subsequent redundancy protection processing flow.
[0061] The aforementioned message header information can be a set of header fields for the target service message, used to identify the message's source, destination, and type. In this embodiment, the message header information includes at least the source media access control address, the destination media access control address, and the message type identifier, serving as the basis for the switch's decision-making.
[0062] The aforementioned source Media Access Control (MAC) address can be the physical address of the device initiating the target service message, i.e., the source MAC address. In ring network protection scenarios, the source MAC address is used to identify whether a message originates from a local host ECU or a remote host ECU, thereby distinguishing between ingress and egress behaviors.
[0063] The aforementioned destination medium access control address can be the physical address of the receiving device expected to receive the target service message, i.e., the destination MAC address. In unicast messages, the destination medium access control address is used to determine whether the message is sent to the local host ECU or a remote host ECU, and thus determine whether to perform local forwarding, deduplication, or continue forwarding.
[0064] The aforementioned message type identifier can be used to distinguish the type of target service message, that is, to distinguish whether the target service message is a unicast message or a multicast / broadcast message. This identifier determines the subsequent processing logic; unicast messages can be used to perform exact matching and deduplication, while multicast / broadcast messages can be used to perform replication and flooding control.
[0065] The source port information mentioned above can be the physical port identifier of the switch that received the target service packet. The source port information is used to determine whether the packet entered from the local host port or from the ring network port, thereby determining the packet's flow direction in the ring network.
[0066] Upon receiving a target service message, the switch parses and processes it to obtain the message header and source port information. For example, the switch hardware decodes the received target service message and extracts key fields from its Layer 2 frame header. Specifically, this includes reading the source Media Access Control (MAC) address to identify the sender, reading the destination MAC address to identify the receiver, reading the message type identifier to distinguish between unicast and multicast / broadcast, and recording the physical port currently receiving the message as the source port information. Obtaining this information provides the necessary conditions for subsequent Ternary Content Addressable Memory (TCAM) rule matching.
[0067] The aforementioned message processing operation can be a set of specific actions performed by the switch on the received target service message according to predefined Tri-State Content Addressing Memory (TCAM) rules. This operation includes at least one of redundant transmission operation, message forwarding operation, and return flow discarding operation.
[0068] The aforementioned redundant transmission operation can be performed on unicast messages originating from the local host port and destined for a remote location, or multicast / broadcast messages originating from the local host port, by copying and inserting a reliability tag (R-TAG), and transmitting them in both directions of the ring network. This operation ensures that messages are transmitted via dual paths, achieving redundancy protection.
[0069] The above message forwarding operations can be operations that forward messages that match specific rules, including explicit forwarding of unicast messages from a local source to a local destination, forwarding of deduplicated valid copies to the destination host port, or sending deduplicated multicast / broadcast messages to the local receiver.
[0070] The aforementioned backflow drop operation can be used to drop packets that flow back from the ring network to the originating switch and whose source Media Access Control (MAC) address is the local host. This operation is used to terminate the loop propagation of packets and prevent packets from endlessly circulating in the network, which could lead to a network storm.
[0071] After parsing the header and source port information of the target service packet, the switch performs decision processing based on these information to determine the corresponding packet processing operation. For example, the switch uses the extracted header and source port information to perform multi-field matching in the TCAM table. For instance, if the source port is a local host port and the source medium access control address (MAC address) is the local host MAC address, and the destination MAC address is a remote MAC address, then a redundant transmission operation is matched. If the source port is a ring network port and the source MAC address is the remote host MAC address, and the destination MAC address is the local MAC address, then a deduplication forwarding operation is matched. If the packet flows back to the originating switch and the source MAC address is the local host MAC address, then a return discard operation is matched. This step achieves rule-based precise traffic control decisions.
[0072] After determining the message processing operation, the corresponding message processing operation is performed on the target service message. For example, based on the matching decision result determined above, the switch executes the corresponding hardware action. If it is a redundant transmission operation, the message is copied and an R-TAG is inserted before being sent from the bidirectional port of the ring network. If it is a message forwarding operation, the R-TAG is removed before being sent from the destination host port, or the R-TAG is retained and forwarded to other ports of the ring network. If it is a return-to-discard operation, the message is directly discarded. This step completes the actual processing of the target service message, realizing redundant transmission, deduplication, or loop termination.
[0073] Based on the above steps S11 to S14, this embodiment of the application receives target service packets carrying target service data in a protected virtual local area network, parses the packet header information and source port information, and performs decision processing based on the packet header information and source port information to determine redundant transmission operation, packet forwarding operation or backflow and discard operation, and then performs the corresponding packet processing operation, thereby achieving the purpose of accurately processing packets carrying protected service data, thereby achieving the technical effect of reducing the complexity of network configuration and commissioning, and thus solving the technical problem of high network configuration and commissioning complexity caused by the increase of the number of nodes in the vehicular network packet transmission method in related technologies.
[0074] Optionally, the protected virtual LAN includes ring network backbone ports, and the dynamic media access control address learning function of the protected virtual LAN is disabled.
[0075] The aforementioned ring network backbone ports can be physical switch ports that constitute the vehicular Ethernet ring network topology. The ring network backbone ports are responsible for connecting the various switch nodes on the ring network, forming a closed loop for forwarding packets within the protected virtual local area network (VLAN). In this embodiment, the protected VLAN only includes the ring network backbone ports to ensure the bidirectional transmission capability of critical services within the ring network.
[0076] The aforementioned dynamic media access control (MAC) address learning function is a mechanism by which a switch automatically listens for the source MAC address of incoming data frames and records the correspondence between that address and the receiving port in the MAC address table. When this function is enabled, the switch dynamically updates the forwarding path based on the MAC address table.
[0077] For example, during the switch configuration phase, the administrator or network management system assigns all physical interconnect ports constituting the vehicular Ethernet ring network, i.e., the ring network backbone ports, to a protected virtual local area network (VLAN). This action establishes the transmission channel for protected services at the physical link layer, ensuring that critical service packets can be transmitted through the bidirectional path of the ring network. By including only the ring network backbone ports in the protected VLAN, this embodiment of the application achieves physical or logical isolation between protected and unprotected services, preventing unprotected services from interfering with the ring network's redundancy protection mechanism.
[0078] When configuring a protected VLAN on a switch, execute a configuration command to disable the dynamic media access control (MAC) address learning function for that VLAN. Specifically, when the switch receives a packet on any port of the protected VLAN, including ring network backbone ports, the hardware or software module ignores the source MAC address in the packet header, does not write it into the MAC address learning table, and does not flood other ports to learn that address. This action ensures that the MAC address table within the protected VLAN remains static or relies solely on static configuration, avoiding the phenomenon of MAC addresses repeatedly switching between different ports due to redundant packets arriving bidirectionally in the ring network.
[0079] Based on the above optional embodiments, this application embodiment achieves the technical effect of suppressing MAC address table oscillation caused by the bidirectional arrival of redundant packets in the ring network by including the ring network backbone port in the protected virtual LAN and disabling the dynamic media access control address learning function of the protected virtual LAN. This avoids the problems of unstable forwarding and network storms caused by this, and thus ensures the high reliability transmission stability of the vehicle Ethernet ring network under a single protected virtual LAN architecture. It solves the technical defect of enabling the dynamic learning function in the related technology, which is prone to generating Layer 2 oscillation in the ring network redundancy scenario.
[0080] Optionally, decision processing is performed based on the message header information and source port information to determine the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is the local host port, and the source media access control address in the message header information is the local host physical address, the destination media access control address is the remote physical address, and the message type identifier indicates that the target service message is a unicast service message, and determining to perform redundant transmission operation on the target service message.
[0081] The aforementioned local host port can be a physical port of a switch that is directly connected to the local host ECU. This port is used to receive messages from the local host ECU or to send messages to the local host ECU.
[0082] The aforementioned local host physical address can be the network interface physical address of the local Host ECU connected to the local host port, i.e., the source media access control address. In unicast service scenarios, this address is used to identify the initiator of the message.
[0083] The aforementioned remote physical address can be the network interface physical address of a remote host ECU that is not locally connected in the ring network, i.e., the destination media access control address. In unicast service scenarios, this address is used to identify the final recipient of the message.
[0084] The aforementioned unicast service message can be a message type identifier indicating that the target service message is of the unicast type. Unicast service messages are designed to transmit data from a single source node to a single destination node, and are the main service type in this application embodiment that requires precise path control and deduplication processing.
[0085] When the switch hardware receives a target service packet and performs decision processing, it parses and extracts the packet header information and source port information. Subsequently, the switch performs parallel matching with a pre-stored rule table in the TCAM. The TCAM simultaneously compares whether the source port information matches the local host port identifier, whether the source media access control address in the packet header matches the local host physical address, whether the destination media access control address in the packet header matches the remote physical address, and whether the packet type identifier indicates a unicast service packet. This process enables high-speed traffic classification and policy matching.
[0086] In response to the source port information indicating a local host port, and with the source media access control address in the packet header being the local host physical address, the destination media access control address being the remote physical address, and the packet type identifier indicating the target service packet is a unicast service packet, a redundant transmission operation is determined for the target service packet. For example, when all the above matching conditions are met simultaneously, the TCAM outputs the corresponding action command, instructing the switch to perform a redundant transmission operation for the target service packet. That is, the switch copies the target service packet to generate at least two copies, inserts a reliability tag (R-TAG) into each copy, and then sends these copies with reliability tags to the ring network backbone ports pointing in different directions of the ring network. This action enables dual-path parallel transmission of critical unicast services in the ring network, providing a foundation for subsequent destination deduplication.
[0087] Based on the above optional embodiments, this application embodiment performs decision processing based on the packet header information and source port information. In response to the source port information indicating that the port is the local host port, and the source media access control address in the packet header information is the local host physical address, the destination media access control address is the remote physical address, and the packet type identifier indicates that the target service packet is a unicast service packet, it determines to perform redundant transmission operation on the target service packet. This achieves the technical effect of accurately identifying the critical unicast service that needs protection and performing dual-path replication under a single protected virtual LAN architecture, thereby realizing highly reliable transmission of critical services. This solves the technical problem that the complex VLAN configuration caused by related technologies makes it difficult to implement engineering when extended to large-scale vehicle network topologies.
[0088] Optionally, performing corresponding message processing operations on the target service message includes: performing replication processing on the unicast service message to generate multiple first message copies; adding redundant tags to the multiple first message copies to obtain multiple second message copies; and sending the multiple second message copies to network ports in different transmission directions in the vehicular ring network.
[0089] The above-mentioned copying process can be the process of copying the original target service packet inside the switch to generate a data frame with completely identical but independent content.
[0090] The aforementioned first message copy can be an initial copy data frame generated from the original target service message after replication processing. The first message copy does not yet carry a reliability tag used to identify the redundancy protection status.
[0091] The aforementioned redundancy tag can be a reliability tag (R-TAG) inserted according to the IEEE 802.1CB standard. It is used to identify that the message is protected by the redundancy protection mechanism and carries control information such as the sequence number so that the receiving end can perform deduplication operation.
[0092] The aforementioned second message copy can be the final data frame to be sent formed by adding a redundancy tag to the first message copy. The second message copy contains the original service data and metadata used for ring network redundancy control.
[0093] The aforementioned in-vehicle ring network can be a closed-loop topology consisting of multiple switch nodes and links, used to connect various electronic control units (ECUs) in the in-vehicle Ethernet. In this embodiment, the network carries critical service traffic within a protected virtual local area network.
[0094] The network ports with different transmission directions mentioned above can be two or more physical exit ports pointing clockwise and counterclockwise from the entry port of the packet in a ring topology.
[0095] When performing redundant transmission on a target service packet, a copying process is performed on the unicast service packet to generate multiple first packet copies. For example, when a switch determines that a target service packet is a unicast service packet and requires redundant transmission, the switch's hardware processing unit receives the target service packet. The switch performs a complete copy of the data payload and frame header of the target service packet in its internal memory or buffer, generating at least two independent data frame instances, i.e., first packet copies. This action ensures the integrity of the original service data and prepares data resources for subsequent multipath transmission.
[0096] After generating multiple copies of the first message, redundancy tags are added to each copy to obtain multiple copies of the second message. For example, for each generated first message copy, the switch inserts a redundancy tag (R-TAG) conforming to the IEEE 802.1CB standard between its Ethernet frame header and payload. This redundancy tag typically contains a unique sequence number or flow identifier generated by the switch. After adding the redundancy tag, the first message copy becomes a second message copy. This action ensures that the message carries a protected identifier during ring network transmission, enabling intermediate and destination nodes to recognize and process the message's redundancy attributes.
[0097] After obtaining multiple copies of the second message, the switch sends these copies to network ports in different transmission directions within the vehicular ring network. For example, the switch sends the generated copies of the second message to the ring network backbone ports connected to different physical directions of the vehicular ring network according to preset TCAM rules or forwarding table entries. For instance, one copy of the second message is sent to the left port of the ring network, and another copy is sent to the right port. This action allows messages with redundant tags to propagate in parallel along two opposite directions of the ring network, thereby achieving path redundancy on the physical link and preventing service interruption due to single-point link failure.
[0098] Based on the above optional embodiments, this application embodiment generates multiple first message copies by performing replication processing on unicast service messages, adds redundant tags to each of the multiple first message copies to obtain multiple second message copies, and sends the multiple second message copies to network ports in different transmission directions in the vehicle ring network. This achieves the technical effect of realizing dual-path parallel transmission of critical unicast services under a single protected virtual LAN architecture, thereby avoiding the complexity of configuring independent VLANs for each pair of nodes, and thus improving the service continuity and network configuration simplicity of the vehicle Ethernet ring network in single-point failure scenarios.
[0099] Figure 2 This is a schematic diagram of an optional unicast service message processing operation according to an embodiment of this application, such as... Figure 2 As shown in the figure, this diagram illustrates the specific execution logic of the unicast service packet replication process of the switch in this embodiment of the application. After receiving the unicast service packet carried by the protected virtual LAN from the local host port, the switch first parses the header information of the received unicast packet, extracting the source medium access control address, destination medium access control address, and source port information. Subsequently, the switch compares the extracted source port information with preset rules to determine whether the source port is a local host port, and simultaneously verifies whether the source medium access control address matches the local host physical address, and confirms whether the destination medium access control address points to the remote host physical address. If the destination medium access control address is not the remote host physical address, the packet is forwarded to the local port associated with the destination medium access control address.
[0100] When the above conditions are met simultaneously, the switch determines that the unicast message is a critical service message requiring redundancy protection, thus triggering the replication mechanism. The switch performs a replication operation on the original unicast message, generating at least two message copies. Next, the switch inserts a redundancy tag (R-TAG) conforming to the IEEE 802.1CB standard into each message copy. The redundancy tag contains sequence number information for subsequent deduplication processing. The sequence number information is generated by looking up the corresponding sequence number transmitter based on the source and destination media access control addresses of the message. After tag insertion, the switch sends the message copies carrying the redundancy tags to ring network ports in different transmission directions within the vehicular ring network, achieving bidirectional propagation of the message within the ring network.
[0101] Optionally, decision processing is performed based on the message header information and source port information to determine the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is the local host port, and the source media access control address in the message header information is the local host physical address, the destination media access control address is the local physical address, and the message type identifier indicates that the target service message is a unicast service message, and determining to perform a message forwarding operation on the target service message.
[0102] The aforementioned local physical address can be the network interface physical address of the local host ECU connected to the local host port, i.e., the destination media access control address. When the destination media access control address matches the local physical address, it indicates that the target recipient of the message is the local host ECU.
[0103] When making decisions based on the packet header information and source port information, the switch responds to the source port information indicating the local host port, and the source media access control address in the packet header information is the local host physical address, the destination media access control address is the local physical address, and the packet type identifier indicates that the target service packet is a unicast service packet, thus determining to perform a packet forwarding operation on the target service packet. For example, after receiving the target service packet, the switch hardware parses and extracts the packet header information and source port information. Subsequently, the switch performs parallel matching of a pre-stored rule table in the TCAM. The TCAM simultaneously compares whether the source port information matches the local host port identifier, whether the source media access control address in the packet header information matches the local host physical address, whether the destination media access control address in the packet header information matches the local physical address, and whether the packet type identifier indicates a unicast service packet.
[0104] When all the above matching conditions are met simultaneously, TCAM outputs the corresponding action command, instructing the switch to perform a packet forwarding operation for the target service packet. For example, based on a pre-configured static forwarding table or TCAM rules, the switch directly forwards the target service packet from the internal switching matrix of the switch where the local host port that received it resides to the local host port connected to the target local host ECU. This action avoids the packet entering the ring network backbone port, achieving direct and efficient communication between local hosts without the need for redundant tags or duplication within the ring network.
[0105] Based on the above optional embodiments, this application embodiment makes a decision based on the message header information and source port information. In response to the source port information indicating that the port is the local host port, and the source media access control address in the message header information is the local host physical address, the destination media access control address is the local physical address, and the message type identifier indicates that the target service message is a unicast service message, it determines to perform a message forwarding operation on the target service message. This achieves the technical effect of optimizing the communication path between local hosts under a single protected virtual LAN architecture, thereby avoiding unnecessary ring network redundancy replication and transmission overhead of local critical service messages, and thus improving the real-time performance of local communication and the overall network resource utilization.
[0106] Optionally, performing corresponding message processing operations on the target service message includes: determining the local destination port based on the local physical address; and directly forwarding the unicast service message to the local destination port.
[0107] The aforementioned local destination port can be a physical port on the switch that is directly connected to the target local host ECU. This port is used to send packets from the switch to the target local host ECU.
[0108] When performing packet forwarding operations on a target service packet, the local destination port is determined based on the local physical address. For example, during the decision-making phase, the switch identifies a match between the destination Media Access Control (MAC) address of the target service packet and the local physical address. Subsequently, the switch queries its internal configuration table or static forwarding table to find the local host port associated with that local physical address, i.e., the MAC address of the target local Host ECU. The switch identifies the found port as the local destination port. This action establishes a mapping relationship between the packet's destination address and the physical output port, providing target guidance for direct forwarding.
[0109] After determining the local destination port, the unicast service packet is directly forwarded to that port. For example, upon receiving the unicast service packet, the switch, based on the determined local destination port, uses the internal switching matrix of the switching chip to guide the unicast service packet directly from the receiving port to the local destination port, and then sends it out from that port. In this process, the switch does not perform packet duplication, insert redundant tags, or send the packet to any port connected to the ring network backbone. This action enables point-to-point direct transmission of packets between local host ECUs, bypassing the complex processing flow of the ring network redundancy protection mechanism.
[0110] Based on the above optional embodiments, this application embodiment determines the local destination port based on the local physical address, and then directly forwards the unicast service packets to the local destination port to perform packet forwarding operations. This achieves the technical effect of low-overhead and low-latency transmission of critical services between local hosts under a single protected virtual LAN architecture, thereby avoiding the occupation of ring network bandwidth by local communication traffic and the waste of resources caused by redundant processing, and thus improving the processing efficiency and network performance of the vehicle Ethernet ring network in local communication scenarios.
[0111] Optionally, decision processing is performed based on the message header information and source port information to determine the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is a ring network port, and the source media access control address in the message header information is the remote host physical address, the destination media access control address is the local physical address, and the message type identifier indicates that the target service message is a unicast service message, and determining to perform a message forwarding operation on the target service message.
[0112] The aforementioned ring network port can be a physical port of a switch that forms the topology of an in-vehicle Ethernet ring network, used to connect other switch nodes in the ring network. In this embodiment, this port is distinct from the local host port and is mainly used to receive packets from other directions of the ring network, i.e., remote ends.
[0113] The aforementioned remote host physical address can be the network interface physical address of a remote Host ECU that is not locally connected in the ring network, i.e., the source media access control address. In unicast service scenarios, this address is used to identify that the initiator of the message is another remote device in the ring network.
[0114] When making decisions based on the packet header and source port information, the response port indicated by the source port information is the ring network port, and the source media access control address in the packet header is the remote host physical address, the destination media access control address is the local physical address, and the packet type identifier indicates that the target service packet is a unicast service packet. Therefore, a packet forwarding operation is performed on the target service packet. For example, after receiving the target service packet, the switch hardware parses and extracts the packet header and source port information. Subsequently, the switch performs parallel matching of pre-stored rule tables in the TCAM. The TCAM simultaneously compares whether the source port information matches the ring network port identifier, whether the source media access control address in the packet header matches the remote host physical address, whether the destination media access control address in the packet header matches the local physical address, and whether the packet type identifier indicates a unicast service packet. This action achieves high-speed traffic classification and policy matching, ensuring that unicast packets entering from the ring network and destined for the local machine are correctly identified.
[0115] When all the above matching conditions are met simultaneously, TCAM outputs the corresponding action command, instructing the switch to perform packet forwarding operations for the target service packet. The switch first performs deduplication on the received unicast service packet. This deduplication is typically based on the sequence number in the R-TAG. After confirming that the packet is a valid copy, it removes redundant tags, i.e., performs R-TAG removal, restoring the packet to the standard Ethernet frame format. Subsequently, according to the pre-configured static forwarding table or TCAM rules, the switch forwards the deduplicated unicast service packet directly from the internal switching matrix of the switch where the receiving ring network port is located to the local host port connected to the local host ECU. This action achieves efficient, deduplicated, local delivery of critical unicast service packets arriving from the ring network.
[0116] Based on the above optional embodiments, this application embodiment determines to perform a packet forwarding operation on the target service packet by responding to the source port information indicating that the port is a ring network port, and the source medium access control address in the packet header information is the physical address of the remote host, the destination medium access control address is the local physical address, and the packet type identifier indicates that the target service packet is a unicast service packet. This achieves the technical effect of deduplication and local delivery of key unicast service packets entering from the ring network under a single protected virtual LAN architecture, thereby avoiding the local host from receiving duplicate packets, and thus improving the data accuracy and processing efficiency of the vehicular Ethernet ring network in remote-to-local communication scenarios.
[0117] Optionally, performing corresponding message processing operations on the target service message includes: deduplicating the unicast service message to obtain a first deduplicated message; deleting redundant tags in the first deduplicated message to obtain a first delabeled message; determining the local destination host port based on the local physical address; and forwarding the first delabeled message to the local destination host port.
[0118] The first deduplication message mentioned above can be a valid unicast service message retained after deduplication processing. This message still carries a redundancy tag (R-TAG), containing the original service data and metadata used to identify the redundancy protection status.
[0119] The first detagged message mentioned above can be a standard Ethernet unicast service message generated after redundant tag removal processing. This message no longer contains R-TAG, but only the service payload and standard Ethernet frame header and trailer, and can be directly received by the host ECU.
[0120] The aforementioned local destination host port can be a physical port on the switch that is directly connected to the target local host ECU. This port is used to send the processed message out of the switch and deliver it to the specific local host ECU.
[0121] When performing packet forwarding operations on target service packets, unicast service packets are deduplicated to obtain the first deduplicated packet. For example, after receiving a unicast service packet carrying a redundant tag at a ring network port, the switch extracts the redundant tag information from the packet header, particularly the sequence number. The switch compares this sequence number with its locally maintained flow state table. This locally maintained flow state table records the sequence numbers of processed packets. If the packet corresponding to the sequence number is found to have already been processed, the current packet is discarded. If no valid copy of the current packet is found or confirmed, the packet is retained. The retained packet is the first deduplicated packet. This action ensures that in a bidirectional ring network transmission scenario, only one valid instance of the same service data is retained at the destination.
[0122] After obtaining the first deduplication message, redundant tags in the first deduplication message are deleted to obtain the first detagged message. For example, for the retained first deduplication message, the switch performs a frame structure modification operation, removing the redundant tag (R-TAG) field from the Ethernet frame header. When removing the redundant tag, the frame header length is adjusted, the R-TAG data segment originally located after or before the VLAN tag is truncated and discarded, and the Frame Check Sequence (FCS) is adjusted accordingly. The standard Ethernet frame generated after this processing is the first detagged message. This action ensures that the message format conforms to the expectations of the host ECU's regular protocol stack, removing metadata only used for network-side redundancy control.
[0123] Upon receiving the first delabeled packet, the switch determines the local destination host port based on the local physical address and forwards the first delabeled packet to that port. For example, the switch parses the destination Media Access Control (MAC) address of the first delabeled packet, which matches the local physical address. The switch queries its internal forwarding table to find the local host port associated with that physical address and identifies it as the local destination host port. Subsequently, the switch uses its internal switching matrix to redirect the first delabeled packet from the receiving port to the local destination host port and physically sends it out through that port. This action completes the final delivery of critical service packets from the ring network side to the host side.
[0124] Based on the above optional embodiments, this application embodiment obtains a first deduplicated message by deduplicating unicast service messages, deletes redundant tags in the first deduplicated message to obtain a first delabeled message, determines the local destination host port based on the local physical address, and forwards the first delabeled message to the local destination host port. This achieves the technical effect of deduplicating, tag stripping, and accurately delivering critical unicast service messages in a single protected virtual LAN architecture, thereby reducing the processing complexity of the host ECU and ensuring the uniqueness and format compatibility of service data, thus improving the reliability of critical service transmission in the vehicle Ethernet ring network and the integration efficiency of the host side.
[0125] Figure 3 This is a schematic diagram of another optional unicast service message processing operation according to an embodiment of this application, such as... Figure 3 As shown in the figure, this diagram illustrates the specific execution logic of the unicast service packet deduplication process in this embodiment of the application. After receiving a unicast service packet carrying a redundancy tag (R-TAG) from the ring network port, the switch first parses the received packet header information, extracting the source medium access control address (MAC address), destination MAC address, source port information, and the sequence number within the redundancy tag. Subsequently, the switch performs deduplication checks, verifying whether the source port is a ring network port, whether the source MAC address is a remote host physical address, and whether the destination MAC address is a local host physical address. If the destination MAC address is not a local host physical address, it is processed according to standard Layer 2 forwarding rules, and the packet is directly forwarded to the destination port.
[0126] After confirming that the packet origin meets the conditions of remote initiation and local reception, the switch first searches for the corresponding recovery instance based on the source and destination MAC addresses of the packet using TCAM rules. Once the instance is found, the device processes the packet according to a pre-configured deduplication algorithm to remove potential redundant data. Specifically, the switch compares the sequence number in the packet header with its locally maintained flow state table to determine if the current packet is a duplicate. If it is determined to be a duplicate, it is discarded to avoid wasting resources on invalid traffic. If it is determined to be a valid copy, redundant tags are removed from the Ethernet frame, generating a unicast packet in standard Ethernet format. Finally, the switch sends the detagged unicast packet to the corresponding local receiving port, completing the delivery of the packet to the destination host ECU.
[0127] Optionally, decision processing is performed based on the message header information and source port information to determine the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is a local host port, and the source media access control address in the message header information is a local host physical address, and the message type identifier indicating that the target service message is a shared service message, determining to perform a message forwarding operation on the target service message.
[0128] The aforementioned shared service messages can be messages whose message type identifier indicates they are of the shared type, including multicast service messages or broadcast service messages. In this embodiment, shared service messages are intended to transmit data from a single source node to multiple or all nodes in the network, requiring special replication, distribution, and deduplication control mechanisms to distinguish them from unicast service messages.
[0129] When making decisions based on packet header and source port information, the switch responds to the source port information indicating the local host port, and the source media access control address in the packet header is the local host physical address. The packet type identifier indicates that the target service packet is a shared service packet, thus determining to perform packet forwarding for the target service packet. For example, after receiving the target service packet, the switch hardware parses and extracts the packet header and source port information. Subsequently, the switch performs parallel matching of pre-stored rule tables in the TCAM. The TCAM simultaneously compares whether the source port information matches the local host port identifier, whether the source media access control address in the packet header matches the local host physical address, and whether the packet type identifier indicates a shared service packet, i.e., multicast or broadcast. This action achieves high-speed traffic classification, distinguishing shared service packets from other types of traffic.
[0130] When all the above matching conditions are met simultaneously, TCAM outputs the corresponding action command, instructing the switch to perform packet forwarding operations for the target service packet. The switch duplicates the target service packet to generate multiple copies and inserts a redundancy tag (R-TAG) into each copy. Subsequently, the switch sends the copies with redundancy tags to the ring network backbone ports pointing in different directions within the ring network to achieve bidirectional propagation within the ring network. Simultaneously, according to the pre-configured multicast / broadcast forwarding table entries, the valid copy, or the original copy after processing, is sent to the local host port that needs to receive the shared service. This action achieves redundant distribution of locally shared service packets within the ring network and immediate delivery to local nodes.
[0131] Based on the above optional embodiments, this application embodiment determines to perform a message forwarding operation on the target service message by responding to the source port information indicating that the port is the local host port, and the source medium access control address in the message header information is the local host physical address, and the message type identifier indicates that the target service message is a shared service message. This achieves the technical effect of starting the local shared service redundancy protection process under a single protected virtual LAN architecture, thereby ensuring that multicast and broadcast messages can be reliably propagated bidirectionally through the ring network and accurately delivered to the local receiving node, thereby improving the coverage, reliability and real-time performance of shared service transmission in vehicular Ethernet.
[0132] Optionally, performing corresponding message processing operations on the target service message includes: performing replication processing on the shared service message to generate multiple third message copies; adding redundancy tags to the multiple third message copies to obtain multiple fourth message copies; sending the multiple fourth message copies to network ports in different transmission directions in the vehicular ring network, and sending at least one of the multiple fourth message copies to the local receiving port.
[0133] The aforementioned third message copy can be an initial copy data frame generated from the original shared service message after replication processing. The third message copy does not yet carry a redundancy tag used to identify the redundancy protection status.
[0134] The aforementioned fourth message copy can be the final data frame to be sent, formed by adding a redundancy tag to the third message copy. The fourth message copy contains the original service data and metadata used for ring network redundancy control.
[0135] The aforementioned local receiving port can be a physical port on the switch that is directly connected to a local host ECU that needs to receive the specific shared service message. Unlike the local destination host port, i.e., the unicast target port, the local receiving port is determined based on multicast / broadcast group membership or broadcast flooding rules, and multiple local receiving ports may simultaneously receive the same shared service message.
[0136] When performing packet forwarding operations on a target service packet, a copying process is performed on the shared service packet to generate multiple third packet copies. For example, when a switch determines that the target service packet is a shared service packet and requires packet forwarding, the switch's hardware processing unit receives the shared service packet. The switch performs a complete copy of the data payload and frame header of the shared service packet in its internal memory or buffer, generating at least two independent data frame instances, i.e., third packet copies. This action ensures the integrity of the original service data and prepares data resources for subsequent multipath transmission, i.e., bidirectional transmission in a ring network and local transmission.
[0137] After generating multiple third-party copy packets, redundancy tags are added to each copy to obtain multiple fourth-party copy packets. For example, for each generated third-party copy packet, the switch inserts a redundancy tag (R-TAG) conforming to the IEEE 802.1CB standard between its Ethernet frame header and payload. This redundancy tag typically contains a unique sequence number or flow identifier generated by the switch. After adding the redundancy tag, the third-party copy packet becomes a fourth-party copy packet. This action ensures that the packet carries a protected identifier during ring network transmission, enabling intermediate and destination nodes to identify and process the packet's redundancy attributes and providing a basis for subsequent deduplication.
[0138] After obtaining multiple copies of the fourth message, the switch sends these copies to network ports in different transmission directions within the vehicular ring network, and sends at least one copy of the fourth message to a local receiving port. For example, the switch performs a dual-path distribution operation based on preset TCAM rules or forwarding table entries. First, the switch sends the replicated copies of the fourth message to ring network backbone ports connected to different physical directions of the vehicular ring network, such as clockwise and counterclockwise, to ensure bidirectional propagation of the message along the ring network, covering remote target nodes. Second, the switch determines at least one local receiving port based on the multicast group membership or broadcast flooding rules of the shared service message, and sends one or all copies of the fourth message to this local receiving port. This operation achieves redundant distribution of shared service messages within the ring network and immediate delivery to local nodes.
[0139] Based on the above optional embodiments, this application embodiment generates multiple third message copies by performing replication processing on shared service messages, adds redundancy tags to each of the multiple third message copies to obtain multiple fourth message copies, and sends the multiple fourth message copies to network ports in different transmission directions in the vehicular ring network, and sends at least one of the multiple fourth message copies to the local receiving port. This achieves the technical effect of realizing bidirectional redundant propagation and local real-time delivery of shared service messages under a single protected virtual LAN architecture, thereby avoiding the ring network detour delay of local nodes receiving shared service messages, and thus improving the real-time performance of multicast and broadcast services and the redundancy reliability of remote transmission in vehicular Ethernet.
[0140] Figure 4 This is a schematic diagram illustrating an optional shared service message processing operation according to an embodiment of this application, such as... Figure 4As shown in the figure, this diagram illustrates the specific execution logic of the multicast / broadcast packet replication process in this embodiment of the application. After receiving a multicast or broadcast target service packet from the local host port, the switch first parses the packet type identifier of the received packet to confirm whether it is a multicast or broadcast service packet, and extracts the source medium access control address, destination medium access control address, and source port information. Subsequently, the switch compares the extracted source port information with preset rules to determine whether the source port is a local host port, and verifies whether the source medium access control address matches the local host physical address. When the above conditions are met, the switch determines that the shared service packet is a critical service packet requiring redundancy protection, thereby triggering the replication processing mechanism. The switch performs a replication operation on the original multicast or broadcast packet, generating multiple packet copies. Next, the switch inserts a redundancy tag conforming to the IEEE 802.1CB standard into each packet copy. The redundancy tag contains sequence number information for subsequent deduplication processing. This sequence number information is generated based on finding the sequence number transmitter from the source MAC address and is encapsulated in the redundancy tag. After tag insertion, the switch sends copies of the message carrying the redundant tag to all other ports in the vehicular ring network except the source port. Simultaneously, if a local host port needs to receive the shared service, the switch will also distribute a copy without the redundant tag or after de-tagging to that local host port to ensure that the local node can correctly receive the service data.
[0141] Optionally, decision processing is performed based on the message header information and source port information to determine the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is a ring network port, and the source media access control address in the message header information is the physical address of the remote host, and the message type identifier indicating that the target service message is a shared service message, determining to perform a message forwarding operation on the target service message.
[0142] For example, after receiving a target service packet, the switch hardware parses and extracts the packet header information and source port information. Subsequently, the switch performs parallel matching with a pre-stored rule table in the TCAM. The TCAM simultaneously compares whether the source port information matches the ring network port identifier, whether the source Media Access Control address in the packet header matches the remote host's physical address, and whether the packet type identifier indicates a shared service packet. This action achieves high-speed traffic classification, distinguishing shared service packets from the remote end of the ring network from other types of traffic.
[0143] When all the above matching conditions are met simultaneously, the TCAM outputs the corresponding action command, instructing the switch to perform packet forwarding operations for the target service packet. For example, the switch first performs deduplication on the received shared service packet. After confirming that the packet is a valid copy, it performs a redundancy tag removal operation (R-TAG removal), restoring the packet to the standard Ethernet frame format, and sends the valid copy to the local receiving port that needs to receive the shared service. Simultaneously, according to preset rules, the switch allows the original copy carrying the redundancy tag to continue being sent to other ports in the ring network to cover other target nodes. If it is determined to be a duplicate copy, it is discarded directly. This action realizes the deduplication, local delivery, and continued propagation of shared service packets in the ring network.
[0144] Based on the above optional embodiments, this application embodiment, by responding to the source port information indicating that the port is a ring network port, and the source medium access control address in the packet header information is the physical address of the remote host, and the packet type identifier indicating that the target service packet is a shared service packet, determines to perform a packet forwarding operation on the target service packet. This achieves the technical effect of deduplication, local delivery, and continued propagation of shared service packets entering from the ring network under a single protected virtual LAN architecture, thereby avoiding the infinite replication of shared service packets and network storms in the ring network, and thus improving the stability and reliability of the vehicular Ethernet ring network in remote shared service transmission scenarios.
[0145] Optionally, performing corresponding message processing operations on the target service message includes: performing deduplication processing on the shared service message to obtain a second deduplicated message; deleting redundant tags in the second deduplicated message to obtain a second detagged message; sending the second detagged message to the local receiving port; and sending the shared service message to network ports in different transmission directions in the vehicular ring network.
[0146] The second deduplication message mentioned above can be a valid shared service message retained after deduplication processing. This message still carries a redundancy tag (R-TAG), containing the original service data and metadata used to identify the redundancy protection status.
[0147] The second detagged message mentioned above can be a standard Ethernet shared service message generated after the redundant tag removal process. This message no longer contains R-TAG, but only the service payload and standard Ethernet frame header and trailer, and can be directly received by the host ECU.
[0148] When forwarding a target service packet, deduplication is performed on the shared service packet to obtain a second deduplicated packet. For example, after receiving a shared service packet carrying a redundant tag at a ring network port, the switch extracts the redundant tag information from the packet header, particularly the sequence number. The switch compares this sequence number with its locally maintained flow state table. If the packet corresponding to the sequence number has already been processed, the current packet is discarded. If no valid copy of the current packet is found or confirmed, the packet is retained. The retained packet is the second deduplicated packet. This action ensures that in a bidirectional ring network transmission scenario, only one valid instance of the same shared service data is retained at the destination or intermediate processing node, preventing local nodes from receiving duplicate data.
[0149] After obtaining the second deduplication message, redundant tags in it are removed to obtain the second detagged message. For example, for the retained second deduplication message, the switch performs a frame structure modification operation, removing the Redundant Tag (R-TAG) field from the Ethernet frame header. During the removal of the redundant tag, the frame header length is adjusted, the R-TAG data segment originally located after or before the VLAN Tag is truncated and discarded, and the Frame Check Sequence (FCS) is adjusted accordingly. The resulting standard Ethernet frame is the second detagged message. This action ensures the message format conforms to the expectations of the host ECU's conventional protocol stack, removing metadata only used for network-side redundancy control, facilitating direct processing by local applications.
[0150] Upon receiving the second detagged message, the switch sends it to the local receiving port and the shared service message to network ports in different transmission directions within the vehicular ring network. For example, the switch parses the destination medium access control address or multicast group membership of the second detagged message to determine the port connected to the local host ECU that needs to receive the shared service message, i.e., the local receiving port. Subsequently, the switch uses its internal switching matrix to redirect the second detagged message from the receiving port to one or more local receiving ports, and then physically sends it out through these ports. This action completes the final delivery of the shared service message at the local node.
[0151] For original shared service packets that do not enter the local delivery process, these packets typically refer to packets carrying redundant tags or copies retained for continued propagation. The switch, according to preset ring network forwarding rules, sends these shared service packets to network ports connected to different physical directions of the vehicular ring network. This action ensures that the shared service packets can continue to propagate along the ring network, covering remote target nodes and achieving network-wide shared service distribution.
[0152] Based on the above optional embodiments, this application embodiment performs deduplication processing on shared service packets to obtain a second deduplicated packet, deletes redundant tags in the second deduplicated packet to obtain a second detagged packet, sends the second detagged packet to the local receiving port, and sends shared service packets to network ports in different transmission directions in the vehicular ring network. This achieves the technical effect of parallel delivery of deduplicated shared service packets and continued propagation of the ring network under a single protected virtual LAN architecture. This ensures that local nodes receive clean packets with low latency while guaranteeing the redundancy reliability of remote nodes receiving packets through dual paths in the ring network, thereby improving the network stability, coverage, and transmission efficiency of the vehicular Ethernet ring network in shared service transmission scenarios.
[0153] Figure 5 This is a schematic diagram illustrating another optional shared service message processing operation according to an embodiment of this application, such as... Figure 5 As shown in the figure, this diagram illustrates the specific execution logic of deduplication and continued forwarding of shared service packets by the switch in this embodiment of the application. After receiving a multicast or broadcast packet carrying a redundancy tag from the ring network port, the switch first parses the packet header information, extracting key information such as the source medium access control address, destination medium access control address, source port identifier, and sequence number from the redundancy tag. Subsequently, the switch compares the current receiving scenario with the preset deduplication rules, focusing on verifying whether the source port is a ring network port, whether the VLAN is a protected virtual LAN, and whether the source medium access control address points to a remote host address.
[0154] When a match is found, the switch performs deduplication, searching for the corresponding recovery instance using the source MAC address. After successfully finding the instance, it executes a deduplication algorithm to remove redundant tags and restore the original packet structure. Next, the switch determines if a local host port needs to receive the multicast or broadcast service. If so, it sends the deduplicated valid copy to the corresponding local host port for application layer processing. Simultaneously, to ensure that other remote nodes in the ring network can receive the service packet, the switch does not discard the original copy but retains its redundant tags and allows it to continue propagating along different ports in the ring network.
[0155] Optionally, the shared service message includes at least one of the following: multicast service message and broadcast service message.
[0156] The aforementioned multicast service messages can be messages whose message type identifier indicates they are multicast. In this embodiment, multicast service messages are used to transmit data from a single source node to all target nodes within a specific multicast group. In a vehicular Ethernet ring network, multicast service messages need to be replicated in different directions of the ring network for propagation, and deduplication and detagging operations are performed upon arrival at the destination node to ensure that group members receive one and only one valid copy.
[0157] The aforementioned broadcast service message can be a message whose message type identifier indicates it to be of the broadcast type. In this embodiment, the broadcast service message is used to transmit data from a single source node to all nodes within the protected virtual local area network. In a vehicular Ethernet ring network, the broadcast service message also needs to be replicated in different directions of the ring network for flood propagation, and deduplication and delabeling operations are performed upon arrival at each node to ensure that all nodes can receive one and only one valid copy.
[0158] In this embodiment, when the switch identifies the packet type identifier of a target service packet, if the identifier indicates that the packet is either a multicast service packet or a broadcast service packet, then the packet is classified as a shared service packet. This action triggers a specific processing flow for shared service packets, namely, performing replication processing to generate multiple packet copies, preparing for subsequent bidirectional propagation and local delivery within the ring network. By clearly defining the composition of shared service packets, this embodiment ensures that all non-unicast critical services can be included in a unified redundancy protection mechanism.
[0159] Based on the above optional embodiments, this application embodiment defines shared service packets as including at least one of the following: multicast service packets and broadcast service packets. This achieves the technical effect of uniformly processing multiple types of shared service packets under a single protected virtual LAN architecture, thereby simplifying the switch's classification and processing logic for multicast and broadcast services and ensuring that all shared services can be included in a unified redundancy protection mechanism. This, in turn, improves the configuration efficiency, reliability, and network stability of the vehicular Ethernet ring network in shared service transmission scenarios.
[0160] Optionally, the decision processing based on the message header information and source port information determines the message processing operation corresponding to the target service message, including: responding to the source port information indicating that the port is a ring network port and the source media access control address in the message header information is the local host physical address, determining that the target service message is a return service message, and performing a return discard operation on the target service message.
[0161] The aforementioned return service message can be a copy of a message that returns from the ring network direction to the original sending node during the transmission of the vehicular Ethernet ring network. In this embodiment, since shared services or unicast services may propagate in two directions in the ring network, some message copies return to the source node after circling the ring once; such messages are called return service messages.
[0162] When making decisions based on packet header and source port information, if the source port information indicates a ring network port and the source Media Access Control (MAC) address in the packet header is a local host physical address, the target service packet is determined to be a return service packet, and a return discard operation is performed on the target service packet. For example, after receiving the target service packet, the switch hardware parses and extracts the packet header and source port information. Subsequently, the switch performs parallel matching of a pre-stored rule table in the TCAM. The TCAM simultaneously compares whether the source port information matches the ring network port identifier and whether the source MAC address in the packet header matches the local host physical address. This action achieves high-speed traffic classification, distinguishing return packets that may cause loop problems from normal service traffic.
[0163] When the above matching conditions are met simultaneously, the TCAM outputs the corresponding action command, instructing the switch to perform a backflow drop operation on the target service packet. For example, the switch directly drops the target service packet, neither forwarding it to any local host port nor re-forwarding it to other directions in the ring network. This action ensures that locally initiated packet copies returning from the ring network are completely cleared, thereby cutting off the packet's circular path within the ring network.
[0164] Based on the above optional embodiments, this application embodiment, by responding to the source port information indicating that the port is a ring network port and the source media access control address in the packet header information is the local host physical address, determines that the target service packet is a return service packet, and performs a return discard operation on the target service packet. This achieves the technical effect of effectively identifying and terminating infinitely looping packet copies in a ring network under a single protected virtual LAN architecture, thereby avoiding network storms and reducing the ineffective occupation of bandwidth resources, and thus improving the stability and reliability of the operation of the vehicle Ethernet ring network.
[0165] In an alternative embodiment, the embodiments of this application may focus on the flexibility of hardware implementation, allowing different switching chips to be used to achieve equivalent packet duplication, deduplication and continued forwarding functions without changing the overall architecture of a single Protected VLAN, thereby reducing dependence on specific chips.
[0166] In an optional embodiment, for switching chips that do not support hardware-level "deduplication and continued forwarding" capabilities, embodiments of this application can simulate and implement equivalent control logic through software or logic-level means such as rule cascading, introducing additional processing pipelines, or constructing virtual port mechanisms, to ensure that the technical effect is not limited by hardware functionality.
[0167] In an optional embodiment, this application embodiment can adjust the port membership policy of the Protected VLAN, including not only the ring network backbone ports but also local host ports that need to use redundant services in the VLAN. In this scenario, the system no longer relies on complex TCAM rules or flooding mechanisms, but instead configures a static address forwarding table and forwards packets according to conventional Layer 2 forwarding rules, further simplifying the forwarding logic and improving the intuitiveness of the configuration.
[0168] According to an embodiment of this application, an embodiment of a message transmission device for an in-vehicle network is provided. It should be noted that the device can be used to execute the above-described message transmission method for an in-vehicle network. Figure 6 This is a structural block diagram of an optional message transmission device for a vehicle network according to an embodiment of this application, such as... Figure 6 As shown. The device includes: a receiving module 601, used to receive a target service packet, wherein the target service packet carries target service data carried in a protected virtual local area network; a parsing module 602, used to parse the target service packet to obtain the packet header information and source port information of the target service packet, wherein the packet header information includes at least: source medium access control address, destination medium access control address, and packet type identifier; a decision module 603, used to perform decision processing based on the packet header information and the source port information to determine the packet processing operation corresponding to the target service packet, wherein the packet processing operation includes at least one of the following: redundant transmission operation, packet forwarding operation, and backflow discarding operation; and a processing module 604, used to perform the corresponding packet processing operation on the target service packet.
[0169] Optionally, the protected virtual LAN includes ring network backbone ports, and the dynamic media access control address learning function of the protected virtual LAN is disabled.
[0170] Optionally, the decision module 603 is further configured to: in response to the source port information indicating that the port is a local host port, and the source media access control address in the message header information is a local host physical address, the destination media access control address is a remote physical address, and the message type identifier indicates that the target service message is a unicast service message, determine to perform a redundant transmission operation on the target service message.
[0171] Optionally, the processing module 604 is further configured to: perform replication processing on the unicast service message to generate multiple first message copies; add redundant tags to the multiple first message copies to obtain multiple second message copies; and send the multiple second message copies to network ports in different transmission directions in the vehicle ring network.
[0172] Optionally, the decision module 603 is further configured to: in response to the source port information indicating that the port is a local host port, and the source media access control address in the packet header information is a local host physical address, the destination media access control address is a local physical address, and the packet type identifier indicates that the target service packet is a unicast service packet, determine to perform a packet forwarding operation on the target service packet.
[0173] Optionally, the processing module 604 is also used to: determine the local destination port based on the local physical address; and directly forward unicast service packets to the local destination port.
[0174] Optionally, the decision module 603 is further configured to: in response to the source port information indicating that the port is a ring network port, and the source media access control address in the packet header information is the physical address of the remote host, the destination media access control address is the local physical address, and the packet type identifier indicates that the target service packet is a unicast service packet, determine to perform a packet forwarding operation on the target service packet.
[0175] Optionally, the processing module 604 is further configured to: perform deduplication processing on the unicast service message to obtain a first deduplicated message; delete redundant tags in the first deduplicated message to obtain a first delabeled message; determine the local destination host port based on the local physical address; and forward the first delabeled message to the local destination host port.
[0176] Optionally, the decision module 603 is further configured to: in response to the source port information indicating that the port is a local host port, and the source media access control address in the packet header information is a local host physical address, and the packet type identifier indicating that the target service packet is a shared service packet, determine to perform a packet forwarding operation on the target service packet.
[0177] Optionally, the processing module 604 is further configured to: perform replication processing on the shared service message to generate multiple third message copies; add redundant tags to the multiple third message copies to obtain multiple fourth message copies; send the multiple fourth message copies to network ports in different transmission directions in the vehicle ring network respectively; and send at least one of the multiple fourth message copies to the local receiving port.
[0178] Optionally, the decision module 603 is further configured to: in response to the source port information indicating that the port is a ring network port, and the source media access control address in the packet header information is the physical address of the remote host, and the packet type identifier indicating that the target service packet is a shared service packet, determine to perform a packet forwarding operation on the target service packet.
[0179] Optionally, the processing module 604 is further configured to: perform deduplication processing on the shared service message to obtain a second deduplicated message; delete redundant tags in the second deduplicated message to obtain a second detagged message; send the second detagged message to the local receiving port; and send the shared service message to network ports in different transmission directions in the vehicle ring network respectively.
[0180] Optionally, the shared service message includes at least one of the following: multicast service message and broadcast service message.
[0181] Optionally, the decision module 603 is further configured to: determine that the target service packet is a return service packet in response to the source port information indicating that the port is a ring network port and the source media access control address in the packet header information is a local host physical address, and perform a return discard operation on the target service packet.
[0182] Embodiments of this application also provide a vehicle, including: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods described in various embodiments of this application when it runs.
[0183] Embodiments of this application also provide a 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 methods of various embodiments of this application.
[0184] Embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the methods of various embodiments of this application.
[0185] Embodiments of this application also provide a computer program product, including a non-volatile computer-readable storage medium for storing a computer program that, when executed by a processor, implements the methods in various embodiments of this application.
[0186] Embodiments of this application also provide a computer program that, when executed by a processor, implements the methods described in the various embodiments of this application.
[0187] In the above embodiments of this application, 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.
[0188] 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 application 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.
[0189] In the several embodiments provided in this application, 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 between units or modules may be electrical or other forms.
[0190] 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.
[0191] Furthermore, the functional units in the various embodiments of this application 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.
[0192] 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 application, 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 application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0193] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A message transmission method for a vehicle-mounted network, characterized in that, include: Receive a target service message, wherein the target service message carries target service data carried in a protected virtual local area network; The target service message is parsed to obtain the message header information and source port information of the target service message. The message header information includes at least: source media access control address, destination media access control address and message type identifier. Decision processing is performed based on the packet header information and the source port information to determine the packet processing operation corresponding to the target service packet, wherein the packet processing operation includes at least one of the following: redundant transmission operation, packet forwarding operation, and backflow discarding operation; Perform the corresponding message processing operation on the target service message.
2. The message transmission method for a vehicle network according to claim 1, characterized in that, The protected virtual local area network includes a ring network backbone port, and the dynamic media access control address learning function of the protected virtual local area network is turned off.
3. The message transmission method for a vehicular network according to claim 1, wherein the message processing operation corresponding to the target service message is determined by performing decision processing based on the message header information and the source port information includes: In response to the source port information indicating that the port is a local host port, and the source medium access control address in the packet header information is a local host physical address, the destination medium access control address is a remote physical address, and the packet type identifier indicates that the target service packet is a unicast service packet, it is determined that a redundant transmission operation will be performed on the target service packet.
4. The message transmission method for a vehicular network according to claim 3, wherein performing the corresponding message processing operation on the target service message includes: The unicast service message is replicated to generate multiple copies of the first message; Add redundant tags to the multiple first message copies to obtain multiple second message copies; The multiple copies of the second message are sent to network ports in different transmission directions in the vehicle ring network.
5. The message transmission method for a vehicle network according to claim 1, characterized in that, The decision-making process based on the packet header information and the source port information to determine the packet processing operation corresponding to the target service packet includes: In response to the source port information indicating that the port is a local host port, and the source media access control address in the packet header information is a local host physical address, the destination media access control address is a local physical address, and the packet type identifier indicates that the target service packet is a unicast service packet, it is determined that a packet forwarding operation will be performed on the target service packet.
6. The message transmission method for a vehicular network according to claim 5, wherein performing the corresponding message processing operation on the target service message includes: Determine the local destination port based on the local physical address; The unicast service message is directly forwarded to the local destination port.
7. The message transmission method for a vehicle network according to claim 1, characterized in that, The decision-making process based on the packet header information and the source port information to determine the packet processing operation corresponding to the target service packet includes: In response to the source port information indicating that the port is a ring network port, and the source media access control address in the packet header information is a remote host physical address, the destination media access control address is a local physical address, and the packet type identifier indicates that the target service packet is a unicast service packet, it is determined that a packet forwarding operation will be performed on the target service packet.
8. The message transmission method for a vehicular network according to claim 7, wherein performing the corresponding message processing operation on the target service message includes: The unicast service message is deduplicated to obtain the first deduplicated message; The redundant tags in the first deduplication message are deleted to obtain the first detagged message; The local destination host port is determined based on the local physical address, and the first delabeled packet is forwarded to the local destination host port.
9. The message transmission method for a vehicle network according to claim 1, characterized in that, The decision-making process based on the packet header information and the source port information to determine the packet processing operation corresponding to the target service packet includes: In response to the source port information indicating that the port is a local host port, and the source media access control address in the packet header information being a local host physical address, and the packet type identifier indicating that the target service packet is a shared service packet, a packet forwarding operation is determined to be performed on the target service packet.
10. The message transmission method for a vehicular network according to claim 9, wherein performing the corresponding message processing operation on the target service message includes: The shared service messages are replicated to generate multiple third message copies; Add redundant tags to the multiple third message copies to obtain multiple fourth message copies; The plurality of fourth message copies are sent to network ports in different transmission directions in the vehicle ring network, and at least one of the plurality of fourth message copies is sent to the local receiving port.
11. The message transmission method for a vehicle network according to claim 1, characterized in that, The decision-making process based on the packet header information and the source port information to determine the packet processing operation corresponding to the target service packet includes: In response to the source port information indicating that the port is a ring network port, and the source media access control address in the packet header information being a remote host physical address, and the packet type identifier indicating that the target service packet is a shared service packet, it is determined that a packet forwarding operation will be performed on the target service packet.
12. The message transmission method for a vehicular network according to claim 11, wherein performing the corresponding message processing operation on the target service message includes: The shared service message is deduplicated to obtain a second deduplicated message; The redundant tags in the second deduplication message are deleted to obtain the second detagged message. The second delabeled message is sent to the local receiving port, and the shared service message is sent to network ports in different transmission directions in the vehicle ring network.
13. The message transmission method for a vehicle network according to any one of claims 9 to 12, characterized in that, The shared service messages include at least one of the following: multicast service messages and broadcast service messages.
14. The message transmission method for a vehicle network according to claim 1, characterized in that, The decision-making process based on the packet header information and the source port information to determine the packet processing operation corresponding to the target service packet includes: In response to the source port information indicating that the port is a ring network port, and the source media access control address in the packet header information being a local host physical address, the target service packet is determined to be a return service packet, and a return discard operation is performed on the target service packet.
15. A message transmission device for a vehicle-mounted network, characterized in that, include: A receiving module is used to receive a target service message, wherein the target service message carries target service data carried in a protected virtual local area network; The parsing module is used to parse the target service message to obtain the message header information and source port information of the target service message. The message header information includes at least: source media access control address, destination media access control address and message type identifier. The decision module is used to perform decision processing based on the packet header information and the source port information to determine the packet processing operation corresponding to the target service packet, wherein the packet processing operation includes at least one of the following: redundant transmission operation, packet forwarding operation, and backflow discarding operation; The processing module is used to perform corresponding message processing operations on the target service message.
16. A vehicle-mounted network device, characterized in that, include: Memory, which stores executable programs; A processor for running the program, wherein the program, when running, performs the method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored executable program, wherein, when the executable program is executed, it controls the device on which the storage medium is located to perform the method according to any one of claims 1 to 14.
18. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 14.
