CN115941386A - Vehicle-mounted Ethernet ring network data redundancy processing method, device, equipment and medium - Google Patents

Vehicle-mounted Ethernet ring network data redundancy processing method, device, equipment and medium Download PDF

Info

Publication number
CN115941386A
CN115941386A CN202211529761.7A CN202211529761A CN115941386A CN 115941386 A CN115941386 A CN 115941386A CN 202211529761 A CN202211529761 A CN 202211529761A CN 115941386 A CN115941386 A CN 115941386A
Authority
CN
China
Prior art keywords
data
serial number
redundant
ethernet
redundant data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211529761.7A
Other languages
Chinese (zh)
Inventor
王敏
黄杰
陈德芮
侯亚飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202211529761.7A priority Critical patent/CN115941386A/en
Publication of CN115941386A publication Critical patent/CN115941386A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The application relates to the technical field of automobile communication, and discloses a vehicle-mounted Ethernet ring network data redundancy processing method, device, equipment and medium, wherein the method comprises the following steps: acquiring multiple copies of data through a pre-configured Ethernet switch, wherein the multiple copies of data comprise one copy of original data and at least one copy of redundant data; comparing the serial number identifications of the multiple copies of data through the pre-stored initial serial number identification; and receiving the at least one piece of redundant data or discarding the at least one piece of redundant data according to the sequence number identification comparison result. When the node hardware on the ring network link does not support 802.1CB, the redundant data can be acquired and received or discarded by adopting a software mode, so that the terminal receiving node can also receive the data transmitted from the other link when one link in the vehicle-mounted Ethernet ring network fails, and the reliability of the vehicle-mounted network is improved.

Description

Vehicle-mounted Ethernet ring network data redundancy processing method, device, equipment and medium
Technical Field
The application relates to the technical field of automobile communication, in particular to a vehicle-mounted Ethernet ring network data redundancy processing method, device, equipment and medium.
Background
With the development of the vehicle-mounted E/E architecture (electrical and electronic architecture), ethernet has become a mainstream direction of the trend as a backbone network. In order to guarantee the reliability of the function safety in the vehicle, the topology in the vehicle adopts an annular framework, and the support of a data link redundancy technology is provided. 802.1CB (Frame Replication and optimization for redundancy, which defines a scheme for implementing redundant transmission in a vehicle ethernet) proposes a method for copying and eliminating redundant link frames, which can implement redundancy processing of data frames on a bottom layer without changing an application layer. However, 802.1CB technology requires hardware support, and not all hardware currently supports 802.1CB.
In part of the prior art, a redundant source path is selected by constructing a link priority model, and segment-by-segment careful backup path protection is provided for a working link through multi-stage P-ring cascade connection, so that the network reliability is ensured, and the extra bandwidth consumption of a frame copying and eliminating mechanism is reduced as much as possible, but the method performs path selection optimization on the basis of 802.1CB to improve the performance, and needs hardware to support the 802.1CB. In part of the prior art, the interconnection of different redundancy protocols of a backbone network and a subnet is realized by adding a redundancy label conversion function at an output port of a backbone switch adjacent to an HSR (high speed signaling) ring network, and although the problem that an intersected node of two protocols does not support 802.1CB is solved, the problem that a terminal sending node does not support 802.1CB is actually solved.
Therefore, how to implement the processing of redundant data under the condition that the hardware does not support 802.1CB is a problem that needs to be solved at present.
Disclosure of Invention
In view of the above drawbacks of the prior art, the present invention provides a method, an apparatus, a device and a medium for processing data redundancy of a vehicular ethernet ring network, so as to solve the above technical problems.
In an embodiment of the present invention, a method for processing data redundancy of a vehicle-mounted ethernet ring is provided, where the method is applied to a terminal receiving node in the vehicle-mounted ethernet ring, and the method includes:
acquiring multiple copies of data through a pre-configured Ethernet switch, wherein the multiple copies of data comprise one copy of original data and at least one copy of redundant data;
comparing the serial number identifications of the multiple data copies through the pre-stored initial serial number identifications;
and receiving the at least one piece of redundant data or discarding the at least one piece of redundant data according to the sequence number identification comparison result.
In an embodiment of the present invention, the ethernet switch includes a first ethernet switch and a second ethernet switch, and before acquiring the multiple copies of data, the method further includes:
copying original data through a terminal sending node configured in advance in the Ethernet ring network to obtain the multiple copies of data;
and transmitting the multiple copies of data to the first Ethernet switch, and transmitting the multiple copies of data to the second Ethernet switch through a plurality of preconfigured Ethernet links, where the number of the Ethernet links corresponds to the number of copies of the multiple copies of data, and the second Ethernet switch is configured to transmit the multiple copies of data to the terminal receiving node.
In an embodiment of the present invention, before copying the original data through the terminal sending node configured in advance in the ethernet ring, the method further includes:
judging whether the original data needs to be subjected to redundant data copying or not according to the data type of the original data;
if the original data does not need to be subjected to redundant data copying, transmitting the original data to the first Ethernet switch;
and if the original data needs to be copied by redundant data, transmitting the original data to the terminal sending node so as to copy the original data by the terminal sending node.
In an embodiment of the present invention, the copying, by a terminal sending node configured in advance in the ethernet ring, original data to obtain multiple copies of data includes:
copying the original data according to the number of the plurality of preconfigured Ethernet links, wherein the copying times of the original data are less than the number of the plurality of Ethernet links;
and distributing original data virtual local area network labels to the original data, and distributing redundant data virtual local area network labels to the copied data to obtain the multiple data.
In an embodiment of the present invention, the transmitting the multiple copies of data to the second ethernet switch through a plurality of preconfigured ethernet links respectively includes:
acquiring virtual local area network identity identifiers at ports where the plurality of previously configured Ethernet links are connected with the second Ethernet switch;
and matching the original data virtual local area network tag, the redundant data virtual local area network tag and the virtual local area network identity identification, and transmitting the multiple copies of data to the second Ethernet switch according to the matching result.
In an embodiment of the present invention, after copying the original data through a terminal sending node configured in advance in the ethernet ring to obtain the multiple copies of data, the method further includes:
respectively allocating redundancy identifications to the original data and the redundant data;
the redundant identification comprises redundant data identification and serial number identification;
the redundant data identification comprises 0 and 1, wherein 0 is original data, and 1 is redundant data;
the serial number identification is an integer serial number identification, the serial number identification of the original data is consistent with the serial number identification of the redundant data, and the serial number identification is gradually increased within a preset integer range.
In an embodiment of the present invention, receiving the at least one piece of redundant data or discarding the at least one piece of redundant data according to the comparison result of the serial number identifier includes:
if the serial number identification comparison result shows that the serial number identification of the redundant data is larger than the initial serial number identification, receiving the redundant data, and modifying the initial serial number identification into the serial number identification of the redundant data;
and if the serial number identification comparison result shows that the serial number identification of the redundant data is less than or equal to the initial serial number identification, discarding the redundant data.
In an embodiment of the present invention, a device for processing data redundancy of a vehicle-mounted ethernet ring is further provided, where the device includes:
the data acquisition module is used for acquiring multiple copies of data through a pre-configured Ethernet switch, wherein the multiple copies of data comprise one copy of original data and at least one copy of redundant data;
the serial number identification comparison module is used for comparing the serial number identifications of the multiple data sets through the pre-stored initial serial number identifications;
and the redundant data processing module is used for receiving the at least one piece of redundant data or discarding the at least one piece of redundant data according to the serial number identification matching result.
In an embodiment of the present invention, an electronic device is further provided, including:
one or more processors;
the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic equipment is enabled to realize the vehicle-mounted Ethernet ring data redundancy processing method.
In an embodiment of the present invention, a computer-readable storage medium is further provided, on which a computer program is stored, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method for processing data redundancy of the vehicular ethernet ring.
The invention has the beneficial effects that: firstly, acquiring multiple copies of data through a pre-configured Ethernet switch, wherein the multiple copies of data comprise one copy of original data and at least one copy of redundant data; then comparing the serial number identifications of the multiple data sets through the pre-stored initial serial number identification; and finally, receiving the at least one piece of redundant data or discarding the at least one piece of redundant data according to the sequence number identification comparison result. In the invention, when the node hardware on the ring network link does not support 802.1CB, the redundant data can be acquired and received or discarded by adopting a software mode, so that the terminal receiving node can also receive the data transmitted from the other link when one link in the vehicle-mounted Ethernet ring network fails, thereby improving the reliability of the vehicle-mounted network.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 is a schematic diagram of an implementation environment of a data redundancy processing method for a vehicle-mounted ethernet ring network according to an exemplary embodiment of the present application;
fig. 2 is a flowchart illustrating a data redundancy processing method of a vehicle-mounted ethernet ring network according to an exemplary embodiment of the present application;
fig. 3 is a schematic flowchart illustrating a redundant data replication process in a data redundancy processing method of a vehicle-mounted ethernet ring according to an exemplary embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a redundant data discarding process in a data redundancy processing method of a vehicle-mounted ethernet ring according to an exemplary embodiment of the present application;
fig. 5 is a block diagram of a vehicle-mounted ethernet ring data redundancy processing apparatus according to an exemplary embodiment of the present application;
FIG. 6 illustrates a schematic structural diagram of a computer system suitable for use to implement the electronic device of the embodiments of the present application.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the disclosure herein, wherein the embodiments of the present invention are described in detail with reference to the accompanying drawings and preferred embodiments. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It should be understood that the preferred embodiments are illustrative of the invention only and are not limiting upon the scope of the invention.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the drawings only show the components related to the present invention rather than being drawn according to the number, shape and size of the components in actual implementation, and the type, amount and proportion of each component in actual implementation can be changed freely, and the layout of the components can be more complicated.
In the following description, numerous details are set forth to provide a more thorough explanation of embodiments of the present invention, however, it will be apparent to one skilled in the art that embodiments of the present invention may be practiced without these specific details, and in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring embodiments of the present invention.
It should be noted that, with the rapid development of the intelligent internet automobile, the automobile is no longer a simple transportation tool, but rather an ecological subject full of personality, experience and scene, and many new rich and colorful functions are introduced into the automobile. The increase of a large number of functions makes electronic devices of the intelligent networking automobile more and more, the Network architecture becomes very complex, and the traditional CAN Network (Controller Area Network) cannot meet the requirement of the fast-developing intelligent networking nowadays. The Ethernet ring network architecture provided for meeting the intelligent networking requirements has the advantages of strong computing capability, expansion capability, openness and the like, CAN flexibly interact with external equipment, quickly transmit data and upgrade OTA (Over-the-Air Technology) software, completely makes up the defects of the traditional CAN network and meets the development requirements of intelligent networking automobiles.
The following describes in detail a method, an apparatus, a device, and a medium for processing data redundancy of a vehicle-mounted ethernet ring in the present application.
Referring to fig. 1, fig. 1 is a schematic diagram of an implementation environment of a data redundancy processing method for a vehicle-mounted ethernet ring network according to an exemplary embodiment of the present application. The implementation environment comprises a terminal sending node, two Ethernet switches (namely Switch1 and Switch 2), two links (namely link 1 and link 2) and a terminal receiving node. It should be noted that the numbers of the terminal sending node, the ethernet switch, the link, and the terminal receiving node in the implementation environment shown in fig. 1 are only examples, and are not limited specifically, and the numbers of the terminal sending node, the ethernet switch, the link, and the terminal receiving node may be set according to actual situations.
Illustratively, a terminal receiving node acquires multiple copies of data through a preconfigured ethernet switch, where the multiple copies of data include one copy of original data and at least one copy of redundant data; comparing the serial number identifications of the multiple data sets through the pre-stored initial serial number identifications; and finally, receiving the at least one piece of redundant data or discarding the at least one piece of redundant data according to the serial number identification comparison result.
Fig. 2 is a flowchart of a vehicle-mounted ethernet ring data redundancy processing method according to an exemplary embodiment of the present application. The method provided by the embodiment of the present application may be executed by the terminal sending node in the embodiment of fig. 1.
Referring to fig. 2, the method for processing data redundancy of the vehicle-mounted ethernet ring according to the embodiment of the present application at least includes the following steps S210 to S230.
In step S210, multiple copies of data are obtained through a preconfigured ethernet switch, where the multiple copies of data include one copy of original data and at least one copy of redundant data.
Illustratively, the Switch1 shown in fig. 1 transmits the original data and the copied redundant data in the terminal sending node to the Switch2 through the link 1 and the link 2, respectively, and the Switch2 transmits the original data and the redundant data to the terminal receiving node. The data copies of the original data and the redundant data are the same as the number of the links, so as to ensure that each copy of data is transmitted to the Switch2 from different links.
In step S220, the serial number identifications of the multiple copies of data are compared with the pre-stored initial serial number identifications.
It should be noted that the initial serial number identifier in the embodiment of the present application defaults to a minimum range of serial number identifiers of redundant data at initialization.
For example, in the embodiment of the present application, the sequence number identifier of the multiple copies of data is compared with the initial sequence number identifier in size to determine whether redundant data therein needs to be received.
In step S230, at least one piece of redundant data is received or discarded according to the comparison result of the serial number identifier.
For example, when one link in the ethernet ring network shown in fig. 1 fails and original data cannot be normally transmitted, the reliability of the vehicle-mounted network is improved by receiving redundant data to ensure that the data can still be received by the terminal receiving node.
As can be seen from the foregoing steps S210 to S230, in the scheme provided in this embodiment, when node hardware on a link of a ring network does not support 802.1CB, a software manner may be adopted to obtain redundant data and receive or discard the redundant data, so that when one link in a vehicle-mounted ethernet ring network fails, a terminal receiving node can also receive data transmitted from another link, thereby improving reliability of the vehicle-mounted network.
In an embodiment of the present application, the ethernet switch includes a first ethernet switch and a second ethernet switch, and before acquiring the multiple copies of data, the method further includes the following steps:
copying original data through a terminal sending node configured in advance in the Ethernet ring network to obtain the multiple copies of data;
and transmitting the multiple copies of data to the first Ethernet switch, and transmitting the multiple copies of data to the second Ethernet switch through a plurality of preconfigured Ethernet links, where the number of the Ethernet links corresponds to the number of copies of the multiple copies of data, and the second Ethernet switch is configured to transmit the multiple copies of data to the terminal receiving node.
Illustratively, two pieces of data to be redundant are sent, and are distinguished by different VLAN-tags (virtual local area network tags), and a VLAN ID (virtual local area network identity) is configured at each port of the Switch connecting two redundant links, so that the two pieces of data can be sent to different links, where the VLAN ID of the default shortest path is the original data, and the VLAN ID of the other link is the redundant data.
Referring to fig. 1, the ring network in fig. 1 includes 2 links, a terminal sending node sends two pieces of data, namely, original data and redundant data, and then the two pieces of data are distinguished by different VLAN IDs and sent from two ports of Switch1 respectively, and sent to a terminal receiving node via link 1 and link 2, and the terminal node determines whether to receive and process the data according to a redundant identifier after receiving the data.
In an embodiment of the present application, before copying the original data through the terminal sending node configured in advance in the ethernet ring, the method further includes the following steps:
judging whether the original data needs to be subjected to redundant data copying or not according to the data type of the original data;
if the original data does not need to be subjected to redundant data copying, transmitting the original data to the first Ethernet switch;
and if the original data needs to be copied by redundant data, transmitting the original data to the terminal sending node so as to copy the original data by the terminal sending node.
In an embodiment of the present application, the copying original data through a terminal sending node configured in advance in the ethernet ring network to obtain multiple copies of data includes the following steps:
copying the original data according to the number of the plurality of preconfigured Ethernet links, wherein the copying times of the original data are less than the number of the plurality of Ethernet links;
and distributing original data virtual local area network labels to the original data, and distributing redundant data virtual local area network labels to the copied data to obtain the multiple data.
In an embodiment of the present application, the transmitting the multiple copies of data to the second ethernet switch through a plurality of preconfigured ethernet links respectively includes the following steps:
acquiring virtual local area network identity identifiers at ports where the plurality of previously configured Ethernet links are connected with the second Ethernet switch;
and matching the original data virtual local area network tag, the redundant data virtual local area network tag and the virtual local area network identity identification, and transmitting the multiple copies of data to the second Ethernet switch according to the matching result.
In an embodiment of the present application, after copying original data through a terminal sending node configured in advance in the ethernet ring network to obtain the multiple copies of data, the method further includes the following steps:
respectively allocating redundancy identifications to the original data and the redundant data;
the redundant identification comprises redundant data identification and serial number identification;
the redundant data identification comprises 0 and 1, wherein 0 is original data, and 1 is redundant data;
the serial number identification is an integer serial number identification, the serial number identification of the original data is consistent with the serial number identification of the redundant data, and the serial number identification is gradually increased within a preset integer range.
Exemplarily, when two pieces of redundant data are sent, a redundant data identifier and a serial number identifier need to be added in a data field, and the redundant data identifier indicates whether the data is original data or redundant data; the sequence number identifier records the order in which the data is sent, and may be a whole data, specifying a range of values, increasing from an initial value to a maximum value, and then back to a minimum value, in a cycle.
In an embodiment of the present application, referring to fig. 3, fig. 3 is a schematic flowchart illustrating a redundant data replication process in a data redundancy processing method of a vehicle-mounted ethernet ring network according to an exemplary embodiment of the present application. The data replication comprises the following processes:
s301, judging whether the data is data needing redundancy, if so, turning to S302 for processing, and if not, turning to S303 for directly sending out the data.
S302, copy one copy of the original data, where the embodiment includes two links, and only one redundant link is needed, so that only one copy of the data needs to be copied, and if there are multiple redundant links, multiple copies of the data need to be copied. After the data is copied, adding the original data into a redundancy identifier and adding the redundancy data into a redundancy identifier, wherein the redundancy identifier comprises a redundancy data identifier and a serial number identifier. The redundant data identification can be represented by 0/1, 0 represents original data, and 1 represents redundant data. The serial number mark is an integer serial number mark and represents the sending times of the original data, the redundant data is completely consistent with the serial number mark of the original data, the serial number mark is an integer range, the serial number mark is counted from the lowest integer, the serial number mark is increased until the highest integer and then is recycled to the minimum value.
And S303, directly transmitting the original data.
In an embodiment of the present application, the receiving the at least one piece of redundant data or discarding the at least one piece of redundant data according to the comparison result of the serial number identifier includes the following steps:
if the serial number identification comparison result shows that the serial number identification of the redundant data is larger than the initial serial number identification, receiving the redundant data, and modifying the initial serial number identification into the serial number identification of the redundant data;
and if the serial number identification comparison result shows that the serial number identification of the redundant data is less than or equal to the initial serial number identification, discarding the redundant data.
For example, after the terminal receiving node receives data with redundant data and a serial number identifier, if the data arrives according to the sequence of original data 1, redundant data 1, original data 2, and redundant data 2, it is determined whether the current data serial number identifier is greater than a preset initial serial number identifier. And if the serial number identification of the current data is larger than the preset initial serial number identification, directly receiving the current data, and updating the serial number identification into the current serial number identification. And if the current data serial number identification is equal to the preset initial serial number identification, discarding the data, and ensuring that the application layer cannot receive redundant data.
It should be noted that, because the original data is the data with the shortest transmission path, when the link for transmitting the original data is normal, the original data will reach the terminal receiving node earlier than the redundant data, and when the redundant data is transmitted to the terminal receiving node, the serial number identifier of the redundant data will be less than or equal to the initial serial number identifier, and at this time, the redundant data can be discarded; when the link for transmitting the original data fails, the original data will not reach the terminal receiving node, and when the redundant data is transmitted to the terminal receiving node, the serial number identification of the redundant data is larger than the initial serial number identification, and then the redundant data can be received.
In an embodiment of the present application, referring to fig. 4, fig. 4 is a schematic flowchart of a redundant data discarding process in a vehicle-mounted ethernet ring data redundancy processing method according to an exemplary embodiment of the present application, where the data discarding process includes the following processes:
s401, receiving current data.
S402, judging whether the serial number identification of the current data is larger than the currently stored serial number identification, and if so, skipping to S403 for processing; if the value is less than or equal to the predetermined value, the process goes to S404 to discard the data.
S403, receiving the current data and updating the stored serial number identifier to the serial number identifier of the current data.
And S404, discarding the current data.
Fig. 5 is a block diagram of a vehicle-mounted ethernet ring data redundancy processing apparatus according to an exemplary embodiment of the present application. The apparatus may be applied to the implementation environment shown in fig. 1. The apparatus may also be applied to other exemplary implementation environments and specifically configured in other devices, and the embodiment does not limit the implementation environment to which the apparatus is applied.
As shown in fig. 5, the exemplary data redundancy processing apparatus for an on-vehicle ethernet ring includes:
a data obtaining module 501, configured to obtain multiple copies of data through a preconfigured ethernet switch, where the multiple copies of data include one piece of original data and at least one piece of redundant data;
a serial number identifier comparing module 502, configured to compare serial number identifiers of the multiple pieces of data through a pre-stored initial serial number identifier;
and a redundant data processing module 503, configured to receive the at least one piece of redundant data or discard the at least one piece of redundant data according to the serial number identifier matching result.
In the exemplary data redundancy processing device for the vehicle-mounted Ethernet ring network, when node hardware on a ring network link does not support 802.1CB, a software mode can be adopted to achieve the purpose of acquiring redundant data and receiving or discarding the redundant data, so that when one link in the vehicle-mounted Ethernet ring network fails, a terminal receiving node can also receive data transmitted from the other link, and the reliability of a vehicle-mounted network is improved.
It should be noted that the vehicle-mounted ethernet ring data redundancy processing apparatus provided in the foregoing embodiment and the vehicle-mounted ethernet ring data redundancy processing method provided in the foregoing embodiment belong to the same concept, and specific ways of executing operations by each module and unit have been described in detail in the method embodiment, and are not described herein again. In practical applications, the vehicle-mounted ethernet ring network data redundancy processing apparatus provided in the above embodiment may distribute the above functions by different functional modules according to needs, that is, divide the internal structure of the apparatus into different functional modules to complete all or part of the above described functions, which is not limited herein.
An embodiment of the present application further provides an electronic device, including: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic equipment is enabled to realize the vehicle-mounted Ethernet ring data redundancy processing method provided in the above embodiments.
FIG. 6 illustrates a schematic structural diagram of a computer system suitable for use to implement the electronic device of the embodiments of the present application. It should be noted that the computer system 600 of the electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 602 or a program loaded from a storage portion 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for system operation are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An Input/Output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output section 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted into the storage section 608 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609 and/or installed from the removable medium 611. When the computer program is executed by a Central Processing Unit (CPU) 601, various functions defined in the system of the present application are executed.
It should be noted that the computer readable media shown in the embodiments of the present application may be computer readable signal media or computer readable storage media or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may comprise a propagated data signal with a computer-readable computer program embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Another aspect of the present application also provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor of a computer, causes the computer to execute the vehicular ethernet ring network data redundancy processing method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist separately without being incorporated in the electronic device.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the vehicle-mounted ethernet ring data redundancy processing method provided in the foregoing embodiments.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. A data redundancy processing method for a vehicle-mounted Ethernet ring is characterized in that the method is applied to a terminal receiving node in the vehicle-mounted Ethernet ring, and the method comprises the following steps:
acquiring multiple copies of data through a pre-configured Ethernet switch, wherein the multiple copies of data comprise one copy of original data and at least one copy of redundant data;
comparing the serial number identifications of the multiple copies of data through the pre-stored initial serial number identification;
and receiving the at least one piece of redundant data or discarding the at least one piece of redundant data according to the sequence number identification comparison result.
2. The vehicle-mounted ethernet ring network data redundancy processing method according to claim 1, wherein the ethernet switch includes a first ethernet switch and a second ethernet switch, and before acquiring the multiple copies of data, the method further comprises:
copying original data through a terminal sending node configured in advance in the Ethernet ring network to obtain the multiple copies of data;
and transmitting the multiple copies of data to the first Ethernet switch, and transmitting the multiple copies of data to the second Ethernet switch through a plurality of pre-configured Ethernet links, wherein the number of the plurality of Ethernet links corresponds to the number of the multiple copies of data, and the second Ethernet switch is used for transmitting the multiple copies of data to the terminal receiving node.
3. The method for processing data redundancy of a vehicular ethernet ring network according to claim 2, wherein before copying the original data through the terminal sending node configured in advance in the ethernet ring network, the method further comprises:
judging whether the original data needs to be subjected to redundant data copying or not according to the data type of the original data;
if the original data does not need to be subjected to redundant data copying, transmitting the original data to the first Ethernet switch;
and if the original data needs to be copied by redundant data, transmitting the original data to the terminal sending node so as to copy the original data by the terminal sending node.
4. The method for processing data redundancy of a vehicular ethernet ring network according to claim 2, wherein said copying original data through a terminal sending node pre-configured in the ethernet ring network to obtain multiple copies of data comprises:
copying the original data according to the number of the plurality of preconfigured Ethernet links, wherein the copying times of the original data are less than the number of the plurality of Ethernet links;
and distributing original data virtual local area network labels to the original data, and distributing redundant data virtual local area network labels to the copied data to obtain the multiple data.
5. The method for processing data redundancy of the vehicular ethernet ring network according to claim 4, wherein the step of respectively transmitting the multiple copies of data to the second ethernet switch via the preconfigured multiple ethernet links comprises:
acquiring virtual local area network identity identifiers at ports where the plurality of previously configured Ethernet links are connected with the second Ethernet switch;
and matching the original data virtual local area network tag, the redundant data virtual local area network tag and the virtual local area network identity, and transmitting the multiple data copies to the second Ethernet switch according to the matching result.
6. The method for processing data redundancy of a vehicular ethernet ring network according to claim 2, wherein after copying original data through a terminal sending node pre-configured in the ethernet ring network to obtain the multiple copies of data, the method further comprises:
respectively allocating redundancy identifications to the original data and the redundant data;
the redundant identification comprises redundant data identification and serial number identification;
the redundant data identification comprises 0 and 1, wherein 0 is original data, and 1 is redundant data;
the serial number identification is an integer serial number identification, the serial number identification of the original data is consistent with the serial number identification of the redundant data, and the serial number identification is gradually increased within a preset integer range.
7. The method for processing data redundancy of an ethernet ring on a vehicle of claim 6, wherein receiving the at least one redundant data or discarding the at least one redundant data according to the comparison result of the serial number identifier comprises:
if the serial number identification comparison result shows that the serial number identification of the redundant data is larger than the initial serial number identification, receiving the redundant data, and modifying the initial serial number identification into the serial number identification of the redundant data;
and if the serial number identification comparison result shows that the serial number identification of the redundant data is less than or equal to the initial serial number identification, discarding the redundant data.
8. A vehicle-mounted Ethernet ring network data redundancy processing device is characterized by comprising:
the data acquisition module is used for acquiring multiple copies of data through a pre-configured Ethernet switch, wherein the multiple copies of data comprise one copy of original data and at least one copy of redundant data;
the serial number identification comparison module is used for comparing the serial number identifications of the multiple data sets through the pre-stored initial serial number identifications;
and the redundant data processing module is used for receiving the at least one piece of redundant data or discarding the at least one piece of redundant data according to the serial number identification matching result.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs, which when executed by the one or more processors, cause the electronic device to implement the vehicular ethernet ring network data redundancy processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program, which, when executed by a processor of a computer, causes the computer to execute the vehicular ethernet ring network data redundancy processing method of any one of claims 1 to 7.
CN202211529761.7A 2022-11-30 2022-11-30 Vehicle-mounted Ethernet ring network data redundancy processing method, device, equipment and medium Pending CN115941386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211529761.7A CN115941386A (en) 2022-11-30 2022-11-30 Vehicle-mounted Ethernet ring network data redundancy processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211529761.7A CN115941386A (en) 2022-11-30 2022-11-30 Vehicle-mounted Ethernet ring network data redundancy processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115941386A true CN115941386A (en) 2023-04-07

Family

ID=86551625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211529761.7A Pending CN115941386A (en) 2022-11-30 2022-11-30 Vehicle-mounted Ethernet ring network data redundancy processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115941386A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422700A (en) * 2021-01-25 2021-02-26 奥特酷智能科技(南京)有限公司 Vehicle-mounted network redundant communication method and system based on DDS (direct digital synthesizer) protocol and TSN (time delay network) technology
CN114500161A (en) * 2022-02-27 2022-05-13 重庆长安汽车股份有限公司 Redundant link switching method based on vehicle-mounted Ethernet ring network and readable storage medium
CN114844774A (en) * 2022-04-24 2022-08-02 重庆长安汽车股份有限公司 Redundant communication system, method and storage medium of vehicle-mounted Ethernet ring network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422700A (en) * 2021-01-25 2021-02-26 奥特酷智能科技(南京)有限公司 Vehicle-mounted network redundant communication method and system based on DDS (direct digital synthesizer) protocol and TSN (time delay network) technology
CN114500161A (en) * 2022-02-27 2022-05-13 重庆长安汽车股份有限公司 Redundant link switching method based on vehicle-mounted Ethernet ring network and readable storage medium
CN114844774A (en) * 2022-04-24 2022-08-02 重庆长安汽车股份有限公司 Redundant communication system, method and storage medium of vehicle-mounted Ethernet ring network

Similar Documents

Publication Publication Date Title
US11080404B2 (en) Firmware upgrade method, slave station of robot, and machine readable storage medium
CN109032796B (en) Data processing method and device
CN113726637B (en) Network traffic transparent transmission method and device based on cloud platform and storage medium
CN111654399B (en) Networking method, device, equipment and storage medium based on SD-WAN
CN114079615B (en) Application synchronization method, system, medium and electronic equipment in multi-cluster environment
CN112817641A (en) Daughter card initialization method, electronic device and storage medium
CN114650223B (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN115941386A (en) Vehicle-mounted Ethernet ring network data redundancy processing method, device, equipment and medium
CN114546493A (en) Core sharing method and device, processing core, electronic device and medium
US10565148B2 (en) Method and system for configuring filter objects for a controller area network controller
CN116074308A (en) Method, system, equipment and readable storage medium for downloading vehicle-end upgrade package
CN113227968B (en) Version management method and device
CN107454021B (en) Communication method and device
CN113792093A (en) Signal system interface service creating and executing method, device and electronic equipment
CN111416780A (en) Real-time priority ceiling optimization method, system, medium and terminal
CN114745466B (en) Mobile phone interconnection plug-in design system and method based on Linux system
WO2021197327A1 (en) Signal processing method and related device
CN115686563A (en) Software update module and method, controller, cloud, program, and storage medium
WO2024121893A1 (en) Database management device, database management method, and database management program
WO2024055876A1 (en) Ota update method and apparatus for multiple devices
CN111338680B (en) Firmware upgrading method, firmware upgrading device and terminal of slave station
US11281494B2 (en) Business operation method, apparatus, and system for determining and executing operation tasks in cloud computing
CN116700756A (en) OTA upgrading method and device, electronic equipment and readable storage medium
CN113467913A (en) Task execution method and device, storage medium and electronic device
CN116760711A (en) Virtual network card configuration method and device based on hardware isolation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination