TSN communication configuration method, system and computer based on DDS discovery message

By dynamically constructing network topology and configuring switches based on DDS discovery messages, it solves the problem in the existing technology that TSN configuration is difficult to adapt to QoS changes, improves the communication effect between DDS and TSN, and is suitable for intelligent and connected cars. high bandwidth requirements.

CN118337693BActive Publication Date: 2024-10-11NANCHANG AUTOMOTIVE INST OF INTELLIGENCE & NEW ENERGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410773386.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-11
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

Existing technology makes it difficult to dynamically configure TSN according to changes in QoS requirements in automobile driving scenarios, resulting in poor communication between DDS and TSN.

Method used

Adopt a method based on DDS discovery messages, maintain the local and remote MIB of the node through LLDP, dynamically construct the network topology, determine the redundancy level and location of the communication link between the data writer and the reader, and output disjoint paths Configuration information, dynamically configure the forwarding table of the switch, and realize dynamic configuration of TSN communication.

Benefits of technology

It improves the integrated communication effect between DDS and TSN, is suitable for large-scale promotion, and can dynamically adjust communication methods according to QoS requirements to meet the needs of high-bandwidth, low-latency and low-jitter in-vehicle networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118337693B_ABST
    Figure CN118337693B_ABST
Patent Text Reader

Abstract

The present invention provides a TSN communication configuration method, system and computer based on DDS discovery message, the communication configuration method includes: realizing message interaction of adjacent nodes based on the local MIB of each node in the network to dynamically build the network topology; establishing communication between data writers and data readers through DDS node operation dynamic discovery; determining the redundancy level of the communication link of the data writer and the data reader and the specific location in the network topology; using a centralized network / distributed user model to output configuration information of several non-intersecting paths; modeling the configuration information and converting the file format, transmitting it to each switch through TCP to dynamically configure the switch's forwarding table, and then dynamically configuring the TSN communication. The TSN communication configuration method based on DDS discovery message provided by the present invention can realize the dynamic configuration of TSN communication mode based on QoS.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle-mounted communication technology, and in particular to a TSN communication configuration method, system and computer based on DDS discovery messages. Background Art

[0002] With the continuous development of automobile technology, the demand for communication between on-board devices is getting higher and higher. At the same time, people have also put forward higher requirements for various performances of automobiles. In order to meet people's various needs, automobiles are gradually becoming intelligent, and various intelligent controllers are emerging. In this way, the control system of the whole vehicle becomes more complex, and the amount of data that needs to be transmitted also increases greatly.

[0003] As cars move towards intelligence and networking, traditional in-vehicle networks such as CAN, LIN, and FlexRay can no longer meet the high bandwidth requirements. Time-Sensitive Networking (TSN) has gradually become the backbone network of automobiles with its high bandwidth, low bounded latency, low jitter, and high reliability. Data Distribution Service (DDS) is a new generation of distributed real-time communication middleware protocol that adopts a publish / subscribe architecture and emphasizes data-centricity, which can meet the needs of various distributed real-time communication applications. In the communication process between in-vehicle devices, DDS provides communication services for applications, and the quality of service (QoS) of communication is guaranteed by TSN.

[0004] As car driving scenarios change, the QoS requirements of applications may change. Currently, the configuration information of TSN is generally fixed, and it is difficult to dynamically configure according to changes in QoS requirements, resulting in poor communication between DDS and TNS. Summary of the invention

[0005] Based on this, the purpose of the present invention is to provide a TSN communication configuration method, system and computer based on DDS discovery message to solve the technical problems existing in the prior art.

[0006] The present invention proposes a TSN communication configuration method based on DDS discovery message, comprising:

[0007] Running LLDP on each node in the network so that each node maintains a local MIB and a remote MIB based on the LLDP;

[0008] The message interaction between adjacent nodes is realized based on the local MIB of the node. After all nodes complete the message interaction, the network topology is dynamically constructed through the CCU to complete the first initialization setting;

[0009] Running dynamic discovery through the DDS node, the dynamic discovery including a PDP phase and an EDP phase, establishing communication between a data writer and a data reader through the PDP phase and the EDP phase;

[0010] Determine the redundancy level of the communication link between the data writer and the data reader, and the specific location of the data writer and the data reader in the network topology, so as to complete the second initialization setting;

[0011] After completing the first initialization setting and the second initialization setting, a centralized network / distributed user model is adopted to output configuration information of a plurality of disjoint paths, wherein the configuration information at least includes a MAC address of a source node, a MAC address of a destination address, an ingress port number, and an egress port number of a data flow;

[0012] The configuration information is modeled and converted into a file format, and transmitted to each switch through TCP. The forwarding table of the switch is dynamically configured through the dynamic configuration interface of the switch, and then the communication of TSN is dynamically configured.

[0013] Preferably, the step of realizing message interaction between adjacent nodes based on the local MIB of the node and dynamically constructing the network topology through the CCU after all nodes complete the message interaction includes:

[0014] A node is selected, and based on the LLDP protocol, the local MIB of the current node is sent to an adjacent node for message interaction;

[0015] After receiving the local MIB of the current node, the neighboring node parses it and stores the parsed information in the remote MIB of the neighboring node. Similarly, several neighboring nodes interact with each other to complete the message interaction of all nodes.

[0016] The CCU queries the local MIB and remote MIB of each node through SNMP to dynamically build the network topology.

[0017] Preferably, the network topology at least includes an end node and a CCU, the end node and the CCU are connected via a switch, and each node of the switch includes a plurality of ports for forwarding data.

[0018] Preferably, the dynamic discovery process adopts a client-server mode. In the PDP phase, each domain participant sends a participant discovery message to the server, and domain participants with the same domain identifier discover each other's existence; in the EDP phase, domain participants that discover each other exchange relevant information of their respective data writers and data readers;

[0019] The step of establishing communication between a data writer and a data reader through the PDP phase and the EDP phase comprises:

[0020] The data writer and the data reader are each associated with a Topic, and the data type and QoS are defined by the Topic. When the data writer and the data reader subscribe to the same Topic and the corresponding QoS match, communication is established between the data writer and the data reader.

[0021] Preferably, the step of determining the redundancy level of the communication link between the data writer and the data reader, and the specific location of the data writer and the data reader in the network topology comprises:

[0022] Adding ReliableLevel QoS to both the data writer and the data reader, and extracting the ReliableLevel QoS of the data writer and the ReliableLevelQoS of the data reader in the discovery message through the server;

[0023] Selecting the greater of the ReliableLevel QoS of the data writer and the ReliableLevel QoS of the data reader to determine the redundancy level of the communication link between the data writer and the data reader;

[0024] The server extracts the IP address of the data writer and the IP address of the data reader in the discovery message, maps the data writer and the data reader to the network topology according to their respective IP addresses, and determines the specific locations of the data writer and the data reader in the network topology.

[0025] Preferably, the step of adopting a centralized network / distributed user model to output configuration information of a plurality of disjoint paths comprises: calculating a plurality of disjoint paths based on a Dijkstra algorithm, , , , As the input of the Dijkstra algorithm, based on the input of the Dijkstra algorithm, the output Configuration information of disjoint paths;

[0026] in, is an abstract directed graph of the network topology, is a set of nodes in the network topology, is a set of connections between nodes in the network topology, is the specific location of the data writer in the network topology, is the specific location of the data reader in the network topology, is the redundancy level of the communication link.

[0027] Preferably, the configuration information is described using a map data structure in C++, and the map data structure includes a keyword key and a value value, wherein the keyword key is used to identify a switch in a network, and the value value is used to identify a configuration parameter of the switch.

[0028] Preferably, the switches in the network include a functional switch, and the configuration information of the functional switch also includes flag configuration information, and the flag configuration information is used to enable the functional switch to perform frame replication and frame elimination operations.

[0029] The present invention also proposes a TSN communication configuration system based on DDS discovery message, comprising:

[0030] An operation module, configured to operate LLDP on each node in the network, so that each node maintains a local MIB and a remote MIB based on the LLDP;

[0031] A first initialization setting module is used to implement message interaction between adjacent nodes based on the local MIB of the node. After all nodes complete the message interaction, the network topology is dynamically constructed through the CCU to complete the first initialization setting;

[0032] An operation module, used for running dynamic discovery through a DDS node, wherein the dynamic discovery includes a PDP phase and an EDP phase, and communication is established between a data writer and a data reader through the PDP phase and the EDP phase;

[0033] A second initialization setting module, used to determine the redundancy level of the communication link between the data writer and the data reader, and the specific location of the data writer and the data reader in the network topology, so as to complete the second initialization setting;

[0034] An output module, configured to output configuration information of a plurality of disjoint paths by adopting a centralized network / distributed user model after completing the first initialization setting and the second initialization setting, wherein the configuration information at least includes a MAC address of a source node, a MAC address of a destination address, an ingress port number, and an egress port number of a data flow;

[0035] The configuration module is used to model the configuration information and convert the file format, transmit it to each switch through TCP, dynamically configure the switch's forwarding table through the switch's dynamic configuration interface, and then dynamically configure the TSN communication.

[0036] The present invention also proposes a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned TSN communication configuration method based on DDS discovery message when executing the computer program.

[0037] Compared with the prior art, the present invention has the following beneficial effects: the TSN communication configuration method based on DDS discovery message proposed in the present application realizes the interaction between adjacent nodes based on two management information bases (MIB) maintained by nodes: local MIB and remote MIB, and constructs a network topology by querying the MIB of each node through the central control unit (CCU) to complete the first initialization setting; based on the dynamic discovery of DDS node operation, communication is established between data writers and data readers, and the redundancy level of data writers and data readers is dynamically determined according to QoS requirements and the specific location in the network topology is determined according to the IP address to complete the second initialization setting; according to the redundancy level of data writers and data readers and the specific location in the network topology, the configuration information of several non-intersecting paths is outputted, and the output configuration information is format-converted and transmitted to the switch to dynamically configure the forwarding table of the switch, and then the communication mode of TSN is dynamically configured. The TSN communication configuration method based on DDS discovery message provided in this application dynamically outputs configuration information of non-intersecting paths according to QoS requirements based on DDS discovery message, dynamically configures TSN communication mode according to the configuration information, and improves the integrated communication effect between DDS and TNS; it is suitable for large-scale promotion.

[0038] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a flowchart of a TSN communication configuration method based on a DDS discovery message in a first embodiment of the present invention;

[0040] Figure 2 A schematic diagram of the structure of the network topology in the first embodiment of the present invention;

[0041] Figure 3 FIG. 4 is a structural block diagram of a computer in a fourth embodiment of the present invention.

[0042] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0043] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0045] Embodiment 1

[0046] See also Figure 1 , which shows a TSN communication configuration method based on a DDS discovery message in a first embodiment of the present invention, specifically comprising steps S10 to S60:

[0047] S10, running LLDP on each node in the network, so that each node maintains a local MIB and a remote MIB based on the LLDP;

[0048] In specific implementation, TSN provides the IEEE 802.1CB protocol for key messages in vehicle communications. The nodes that perform communication in IEEE802.1CB can be end nodes or switch nodes. For example, for communications with frame replication and frame elimination functions, since current end nodes generally do not have frame replication and frame elimination functions, most of them use switch nodes for network management to implement frame replication and frame elimination functions. For network management, TSN provides the IEEE 802.1Qcc protocol and provides three network configuration models: fully distributed model, centralized network / distributed user model, and fully centralized model; since the fully distributed model supports limited functions, it is impossible to centrally schedule TSN flows and cannot guarantee deterministic transmission of flows. Therefore, current research focuses on the centralized network / distributed user model and the fully centralized network model.

[0049] Optionally, in this embodiment, the Link Layer Discovery Protocol (LLDP) specified in the IEEE 802.1AB protocol is run on each node in the network, so that each node maintains two Management Information Bases (MIBs) based on the Link Layer Discovery Protocol: a local MIB and a remote MIB.

[0050] S20, realizing message interaction between adjacent nodes based on the local MIB of the node, and dynamically building a network topology through the CCU after all nodes complete the message interaction to complete the first initialization setting;

[0051] Optionally, the node-based local MIB and remote MIB implement message interaction between adjacent nodes, and the step of dynamically constructing the network topology through the CCU after all nodes complete the message interaction includes: selecting a node, and sending the local MIB of the current node to the adjacent node for message interaction based on the LLDP protocol; the adjacent node parses the local MIB of the current node after receiving it, and stores the parsed information in the remote MIB of the adjacent node, and so on, performing interactions with several adjacent nodes to complete the message interaction of all nodes; the CCU queries the local MIB and remote MIB of each node through SNMP to dynamically construct the network topology; illustratively, for example, the interaction between node A and adjacent node B, node A sends the local MIB of node A to node B, and node B updates its own remote MIB after receiving the local MIB of node A, and so on.

[0052] In specific implementation, after adjacent nodes complete information exchange, the Central Control Unit (CCU) can dynamically build the network topology by querying the MIB of each network node through the Simple Network Management Protocol (SNMP); Figure 2 As shown, the network topology includes at least an end node (EndSystem, ES) and a central computing unit (CCU), ES={es1, es2, es3, es4}, the end node and the CCU are connected through a switch (Switch, SW), SW={sw1, sw2, sw3, sw4}; each node of the switch includes multiple ports for forwarding data.

[0053] S30, running dynamic discovery through the DDS node, the dynamic discovery including a PDP phase and an EDP phase, establishing communication between the data writer and the data reader through the PDP phase and the EDP phase;

[0054] Optionally, dynamic discovery is run through the Data Distribution Service (DDS) node. The dynamic discovery process adopts the client-server mode. Dynamic discovery includes the Participant Discovery Phase (PDP) and the Endpoint Discovery Phase (EDP). In the PDP phase, each domain participant sends a participant discovery message to the server, and domain participants with the same domain identifier (Domain Id) discover each other's existence; in the EDP phase, domain participants that discover each other exchange information about their own data writers (DataWriter) and data readers (Data Reader). Data writers and data readers are each associated with a topic (Topic), and the data type and QoS are defined by the Topic. When the data writer and data reader subscribe to the same Topic and the corresponding QoS match, communication is established between the data writer and the data reader.

[0055] S40, determining the redundancy level of the communication link between the data writer and the data reader, and the specific location of the data writer and the data reader in the network topology, so as to complete the second initialization setting;

[0056] Optionally, the step of determining the redundancy level of the communication link between the data writer and the data reader, and the specific positions of the data writer and the data reader in the network topology includes:

[0057] ReliableLevel QoS is added to both the data writer and the data reader, and the ReliableLevel QoS of the data writer and the ReliableLevel QoS of the data reader in the discovery message are extracted by the server; the larger one of the ReliableLevel QoS of the data writer and the ReliableLevel QoS of the data reader is selected to determine the redundancy level of the communication link between the data writer and the data reader; the IP address of the data writer and the IP address of the data reader in the discovery message are extracted by the server, and the data writer and the data reader are mapped to the network topology according to their respective IP addresses to determine the specific positions of the data writer and the data reader in the network topology.

[0058] In the specific implementation, the present invention adds ReliableLevel QoS to the data writer and the data reader respectively. The server extracts the ReliableLevel QoS of the data writer and the data reader in the discovery message, and takes the larger one as the redundancy level of the communication link. , the total number of communication links between two nodes is equal to the redundancy level plus 1, that is Indicates that two non-intersecting paths are required between the two nodes. The IP addresses of the data writer and data reader in the discovery message are extracted by the server, and the data writer and data reader are mapped to the network topology according to the IP address to determine the specific location of the data writer in the network topology. and the specific location of the data reader in the network topology , complete the second initialization setting.

[0059] S50, after completing the first initialization setting and the second initialization setting, using a centralized network / distributed user model, outputting configuration information of a plurality of disjoint paths, wherein the configuration information at least includes a MAC address of a source node, a MAC address of a destination address, an ingress port number, and an egress port number of a data flow;

[0060] In the specific implementation, after completing the initialization settings, the server collects the specific location of the data writer in the network topology and the specific location of the data reader in the network topology , the redundancy level of the communication link , based on the Dijkstra algorithm to calculate several disjoint paths, , , , As the input of the Dijkstra algorithm, based on the input of the Dijkstra algorithm, the output Configuration information of disjoint paths;

[0061] in, is an abstract directed graph of the network topology, is a set of nodes in the network topology, is a set of connections between nodes in the network topology, is the specific location of the data writer in the network topology, is the specific location of the data reader in the network topology, is the redundancy level of the communication link. Optionally, in this embodiment, the node and , indicating connections in different directions. To the destination node The path of can be described as an ordered sequence, for example, Figure 2 As shown, is the kth path from es1 to es3.

[0062] Optionally, the configuration information is described using a map data structure in C++. The map data structure includes a keyword key and a value value. The keyword key is used to identify a switch in the network, and the value value is used to identify the configuration parameters of the switch. For example, the path The corresponding configuration information is .

[0063] S60, modeling the configuration information and converting the file format, transmitting it to each switch through TCP, dynamically configuring the forwarding table of the switch through the dynamic configuration interface of the switch, and then dynamically configuring the communication of TSN.

[0064] Optionally, in this embodiment, IEEE 802.1Qcc uses a YANG model to model the configuration information, and uses a YANG model file to configure the central network configuration (CNC). The configuration information of the disjoint paths is modeled and converted into XML format, which is transmitted to each switch through the Transmission Control Protocol (TCP); after receiving the XML format message, each switch parses the message to obtain the configuration information, and calls the dynamic configuration interface of the switch to configure the switch forwarding table, thereby dynamically configuring TSN.

[0065] Furthermore, in some optional embodiments, the switches in the network include functional switches, and the configuration information of the functional switches also includes flag configuration information, and the flag configuration information is used to enable the functional switch to perform frame replication and frame elimination operations; the IEEE 802.1CB protocol provided by TSN can transmit the same message on multiple non-intersecting paths to achieve redundant communication; the specific method is: performing a frame replication function at the first switch on the stream transmission path, dividing the message into multiple copies according to the redundancy level, and transmitting them along non-intersecting paths, and performing a frame elimination function at the last switch on the stream transmission path, retaining only one of the multiple redundant messages.

[0066] In summary, the TSN communication configuration method based on DDS discovery message proposed in this application realizes the interaction between adjacent nodes based on two management information bases (MIB) maintained by nodes: local MIB and remote MIB, and constructs the network topology by querying the MIB of each node through the central computing unit (CCU) to complete the first initialization setting; based on the dynamic discovery of DDS node operation, communication is established between data writers and data readers, and the redundancy level of data writers and data readers is dynamically determined according to QoS requirements and the specific location in the network topology is determined according to the IP address to complete the second initialization setting; according to the redundancy level of data writers and data readers and the specific location in the network topology, the configuration information of several non-intersecting paths is output, and the output configuration information is format-converted and transmitted to the switch to dynamically configure the forwarding table of the switch, and then the communication mode of TSN is dynamically configured. The TSN communication configuration method based on DDS discovery message provided in this application dynamically outputs configuration information of non-intersecting paths according to QoS requirements based on DDS discovery message, dynamically configures TSN communication mode according to the configuration information, and improves the integrated communication effect between DDS and TNS; it is suitable for large-scale promotion.

[0067] Embodiment 2

[0068] This embodiment provides a TSN communication configuration system based on DDS discovery message, including:

[0069] An operation module, configured to operate LLDP on each node in the network, so that each node maintains a local MIB and a remote MIB based on the LLDP;

[0070] A first initialization setting module is used to implement message interaction between adjacent nodes based on the local MIB of the node. After all nodes complete the message interaction, the network topology is dynamically constructed through the CCU to complete the first initialization setting;

[0071] The steps of realizing message interaction between adjacent nodes based on the local MIB of the node and dynamically constructing the network topology through the CCU after all nodes complete the message interaction include:

[0072] A node is selected, and based on the LLDP protocol, the local MIB of the current node is sent to an adjacent node for message interaction;

[0073] After receiving the local MIB of the current node, the neighboring node parses it and stores the parsed information in the remote MIB of the neighboring node. Similarly, several neighboring nodes interact with each other to complete the message interaction of all nodes.

[0074] The CCU queries the local MIB and remote MIB of each node through SNMP to dynamically build the network topology.

[0075] The network topology at least includes an end node and a CCU. The end node and the CCU are connected via a switch. Each node of the switch includes a plurality of ports for forwarding data.

[0076] An operation module, used for running dynamic discovery through a DDS node, wherein the dynamic discovery includes a PDP phase and an EDP phase, and communication is established between a data writer and a data reader through the PDP phase and the EDP phase;

[0077] The dynamic discovery process adopts the client-server mode. In the PDP phase, each domain participant sends a participant discovery message to the server, and domain participants with the same domain identifier discover each other's existence; in the EDP phase, domain participants that discover each other exchange relevant information about their respective data writers and data readers;

[0078] The step of establishing communication between a data writer and a data reader through the PDP phase and the EDP phase comprises:

[0079] The data writer and the data reader are each associated with a Topic, and the data type and QoS are defined by the Topic. When the data writer and the data reader subscribe to the same Topic and the corresponding QoS match, communication is established between the data writer and the data reader.

[0080] A second initialization setting module, used to determine the redundancy level of the communication link between the data writer and the data reader, and the specific location of the data writer and the data reader in the network topology, so as to complete the second initialization setting;

[0081] The step of determining the redundancy level of the communication link between the data writer and the data reader, and the specific location of the data writer and the data reader in the network topology includes:

[0082] Adding ReliableLevel QoS to both the data writer and the data reader, and extracting the ReliableLevel QoS of the data writer and the ReliableLevelQoS of the data reader in the discovery message through the server;

[0083] Selecting the greater of the ReliableLevel QoS of the data writer and the ReliableLevel QoS of the data reader to determine the redundancy level of the communication link between the data writer and the data reader;

[0084] The server extracts the IP address of the data writer and the IP address of the data reader in the discovery message, maps the data writer and the data reader to the network topology according to their respective IP addresses, and determines the specific locations of the data writer and the data reader in the network topology.

[0085] An output module, configured to output configuration information of a plurality of disjoint paths by adopting a centralized network / distributed user model after completing the first initialization setting and the second initialization setting, wherein the configuration information at least includes a MAC address of a source node, a MAC address of a destination address, an ingress port number, and an egress port number of a data flow;

[0086] The step of adopting a centralized network / distributed user model to output configuration information of a plurality of disjoint paths comprises: calculating a plurality of disjoint paths based on a Dijkstra algorithm, , , , As the input of the Dijkstra algorithm, based on the input of the Dijkstra algorithm, the output Configuration information of disjoint paths;

[0087] in, is an abstract directed graph of the network topology, is a set of nodes in the network topology, is a set of connections between nodes in the network topology, is the specific location of the data writer in the network topology, is the specific location of the data reader in the network topology, is the redundancy level of the communication link.

[0088] The configuration module is used to model the configuration information and convert the file format, transmit it to each switch through TCP, dynamically configure the switch's forwarding table through the switch's dynamic configuration interface, and then dynamically configure the TSN communication.

[0089] The configuration information is described using a map data structure in C++, and the map data structure includes a keyword key and a value value, wherein the keyword key is used to identify a switch in a network, and the value value is used to identify a configuration parameter of the switch.

[0090] The switches in the network include a functional switch, and the configuration information of the functional switch also includes flag configuration information, and the flag configuration information is used to enable the functional switch to perform frame replication and frame elimination operations.

[0091] Embodiment 3

[0092] The present invention also provides a computer, see Figure 3 , shown is a computer in the third embodiment of the present invention, including a memory 10, a processor 20, and a computer program 30 stored in the memory 10 and executable on the processor 20. When the processor 20 executes the computer program 30, the above-mentioned TSN communication configuration method based on the DDS discovery message is implemented.

[0093] The memory 10 includes at least one type of storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10 may be an internal storage unit of a computer, such as a hard disk of the computer. In other embodiments, the memory 10 may also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Further, the memory 10 may also include both an internal storage unit of the computer and an external storage device. The memory 10 may be used not only to store application software and various types of data installed in the computer, but also to temporarily store data that has been output or is to be output.

[0094] Among them, in some embodiments, the processor 20 can be an electronic control unit (Electronic Control Unit, abbreviated as ECU, also known as a vehicle computer), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 10 or process data, such as executing access restriction programs, etc.

[0095] It should be pointed out that Figure 3 The structure shown does not constitute a limitation on the computer. In other embodiments, the computer may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0096] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0097] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0098] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0099] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0100] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A TSN communication configuration method based on DDS discovery message, characterized in that: include: Running LLDP on each node in the network so that each node maintains a local MIB and a remote MIB based on the LLDP; The message interaction between adjacent nodes is realized based on the local MIB of the node. After all nodes complete the message interaction, the network topology is dynamically constructed through the CCU to complete the first initialization setting; Running dynamic discovery through the DDS node, the dynamic discovery including a PDP phase and an EDP phase, establishing communication between a data writer and a data reader through the PDP phase and the EDP phase; Determine the redundancy level of the communication link between the data writer and the data reader, and the specific location of the data writer and the data reader in the network topology, so as to complete the second initialization setting; After completing the first initialization setting and the second initialization setting, a centralized network / distributed user model is adopted to output configuration information of a plurality of disjoint paths, wherein the configuration information at least includes a MAC address of a source node, a MAC address of a destination address, an ingress port number, and an egress port number of a data flow; Model the configuration information and convert the file format, transmit it to each switch through TCP, dynamically configure the switch forwarding table through the dynamic configuration interface of the switch, and then dynamically configure the communication of TSN; The dynamic discovery process adopts the client-server mode. In the PDP phase, each domain participant sends a participant discovery message to the server, and domain participants with the same domain identifier discover each other's existence; in the EDP phase, domain participants that discover each other exchange relevant information about their respective data writers and data readers; The step of establishing communication between a data writer and a data reader through the PDP phase and the EDP phase comprises: The data writer and the data reader are each associated with a Topic, and the data type and QoS are defined by the Topic. When the data writer and the data reader subscribe to the same Topic and the corresponding QoS match, communication is established between the data writer and the data reader; The step of determining the redundancy level of the communication link between the data writer and the data reader, and the specific location of the data writer and the data reader in the network topology includes: Adding ReliableLevel QoS to both the data writer and the data reader, and extracting the ReliableLevel QoS of the data writer and the ReliableLevel QoS of the data reader in the discovery message through the server; Selecting the greater of the ReliableLevel QoS of the data writer and the ReliableLevel QoS of the data reader to determine the redundancy level of the communication link between the data writer and the data reader; Extracting the IP address of the data writer and the IP address of the data reader in the discovery message through the server, mapping the data writer and the data reader to the network topology according to their respective IP addresses, and determining the specific locations of the data writer and the data reader in the network topology; The step of adopting a centralized network / distributed user model to output configuration information of a plurality of disjoint paths comprises: calculating a plurality of disjoint paths based on a Dijkstra algorithm, , , , As the input of the Dijkstra algorithm, based on the input of the Dijkstra algorithm, the output Configuration information of disjoint paths; in, is an abstract directed graph of the network topology, is a set of nodes in the network topology, is a set of connections between nodes in the network topology, is the specific location of the data writer in the network topology, is the specific location of the data reader in the network topology, is the redundancy level of the communication link.

2. The TSN communication configuration method based on DDS discovery message according to claim 1, characterized in that: The steps of realizing message interaction between adjacent nodes based on the local MIB of the node and dynamically constructing the network topology through the CCU after all nodes complete the message interaction include: A node is selected, and based on the LLDP protocol, the local MIB of the current node is sent to an adjacent node for message interaction; After receiving the local MIB of the current node, the neighboring node parses it and stores the parsed information in the remote MIB of the neighboring node. Similarly, several neighboring nodes interact with each other to complete the message interaction of all nodes. The CCU queries the local MIB and remote MIB of each node through SNMP to dynamically build the network topology.

3. The TSN communication configuration method based on DDS discovery message according to claim 2 is characterized in that: The network topology at least includes an end node and a CCU. The end node and the CCU are connected via a switch. Each node of the switch includes a plurality of ports for forwarding data.

4. The TSN communication configuration method based on DDS discovery message according to claim 1, characterized in that: The configuration information is described using a map data structure in C++, and the map data structure includes a keyword key and a value value, wherein the keyword key is used to identify a switch in a network, and the value value is used to identify a configuration parameter of the switch.

5. The TSN communication configuration method based on DDS discovery message according to claim 4 is characterized in that: The switches in the network include a functional switch, and the configuration information of the functional switch also includes flag configuration information, and the flag configuration information is used to enable the functional switch to perform frame replication and frame elimination operations.

6. A TSN communication configuration system based on DDS discovery message, characterized in that: include: An operation module, configured to operate LLDP on each node in the network, so that each node maintains a local MIB and a remote MIB based on the LLDP; A first initialization setting module is used to implement message interaction between adjacent nodes based on the local MIB of the node. After all nodes complete the message interaction, the network topology is dynamically constructed through the CCU to complete the first initialization setting; An operation module, used for running dynamic discovery through a DDS node, wherein the dynamic discovery includes a PDP phase and an EDP phase, and communication is established between a data writer and a data reader through the PDP phase and the EDP phase; A second initialization setting module, used to determine the redundancy level of the communication link between the data writer and the data reader, and the specific location of the data writer and the data reader in the network topology, so as to complete the second initialization setting; An output module, configured to output configuration information of a plurality of disjoint paths by adopting a centralized network / distributed user model after completing the first initialization setting and the second initialization setting, wherein the configuration information at least includes a MAC address of a source node, a MAC address of a destination address, an ingress port number, and an egress port number of a data flow; A configuration module is used to model the configuration information and convert the file format, transmit it to each switch through TCP, dynamically configure the switch forwarding table through the dynamic configuration interface of the switch, and then dynamically configure the communication of TSN; The dynamic discovery process adopts the client-server mode. In the PDP phase, each domain participant sends a participant discovery message to the server, and domain participants with the same domain identifier discover each other's existence; in the EDP phase, domain participants that discover each other exchange relevant information about their respective data writers and data readers; The step of establishing communication between a data writer and a data reader through the PDP phase and the EDP phase comprises: The data writer and the data reader are each associated with a Topic, and the data type and QoS are defined by the Topic. When the data writer and the data reader subscribe to the same Topic and the corresponding QoS match, communication is established between the data writer and the data reader; The step of determining the redundancy level of the communication link between the data writer and the data reader, and the specific location of the data writer and the data reader in the network topology includes: Adding ReliableLevel QoS to both the data writer and the data reader, and extracting the ReliableLevel QoS of the data writer and the ReliableLevel QoS of the data reader in the discovery message through the server; Selecting the greater of the ReliableLevel QoS of the data writer and the ReliableLevel QoS of the data reader to determine the redundancy level of the communication link between the data writer and the data reader; Extracting the IP address of the data writer and the IP address of the data reader in the discovery message through the server, mapping the data writer and the data reader to the network topology according to their respective IP addresses, and determining the specific locations of the data writer and the data reader in the network topology; The step of adopting a centralized network / distributed user model to output configuration information of a plurality of disjoint paths comprises: calculating a plurality of disjoint paths based on a Dijkstra algorithm, , , , As the input of the Dijkstra algorithm, based on the input of the Dijkstra algorithm, the output Configuration information of disjoint paths; in, is an abstract directed graph of the network topology, is a set of nodes in the network topology, is a set of connections between nodes in the network topology, is the specific location of the data writer in the network topology, is the specific location of the data reader in the network topology, is the redundancy level of the communication link.

7. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the TSN communication configuration method based on the DDS discovery message is implemented as described in any one of claims 1 to 5.