Method and system for accessing dual-redundant tte network via serial communication interface network layer
Patent Information
- Application Number
- CN202311165329.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-08
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2043-09-08
AI Technical Summary
但该文献在数据通信上存在多种总线类型、多种协议类型,造成标准不统一,无法兼容,同样无法解决上述问题
[0068] 1. The method and system provided by this invention realize network layer protocol conversion and bidirectional data transmission between TTE networks and serial communication interface networks, which has good flexibility and improves data transmission efficiency.
Smart Images

Figure CN117459490B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of network communication and fieldbus technology, specifically to a method and system for accessing a dual-redundant TTE network via a serial communication interface network layer. Background Technology
[0002] Fieldbus is an industrial data bus that has developed rapidly in recent years. It mainly solves the problems of digital communication between intelligent instruments, controllers, actuators and other field devices in industrial fields, as well as the information transmission between these field control devices and advanced control systems. Fieldbus is usually used to interconnect electronic devices, and it has high reliability, real-time performance and time response characteristics.
[0003] As application scenarios continue to expand, the problems of interconnection, interoperability, and interoperability between devices from different manufacturers are difficult to solve, which seriously hinders the development and widespread application of fieldbus technology.
[0004] Time-Triggered Ethernet (TTE) is gaining increasing popularity due to its superior performance in synchronization accuracy, network scale, compatibility, complexity, and implementation cost, and is being applied in new energy vehicles, aviation, and aerospace fields. Based on TTE technology, a five-layer protocol system can be built, encompassing the physical layer, data link layer, network layer, transport layer, and application layer. TTE supports three message mechanisms: Time-Triggered (TT), Rate-Constrained (RC), and Best-Effort (BE). TT and RC messages are critical traffic.
[0005] Applying Ethernet technology to industrial automation control has become a direction for the development of fieldbus technology. To meet the needs of high real-time performance applications, major companies and standardization organizations have proposed various technical solutions to improve the real-time performance and reliability of Ethernet.
[0006] However, when applying TTE technology, the system may still contain electronic devices using traditional fieldbus technologies, such as RS232, RS422, and LVDS serial communication interfaces. While serial communication interfaces are inexpensive to implement, replacing them all with TTE network interfaces would result in high equipment modification costs and long development cycles. To balance the advantages of network technology with the overhead of system development (SWaP-C), interface conversion is typically used to achieve interconnection between devices with different transmission interfaces.
[0007] Existing interface conversion between ordinary Ethernet and serial communication interfaces is usually customized based on specific application scenarios and requirements. It lacks a universal design for protocol conversion and bidirectional data transmission, and does not make good use of the advantages of IP protocol's network-wide identification and addressing.
[0008] When promoting and applying TTE networks, compatibility issues with traditional interfaces of existing equipment are inevitable. Currently, there is a lack of a universal protocol conversion method between TTE networks and serial communication interfaces, and it is necessary to make full use of the reliability guarantee mechanism of TTE network TT, RC, and BE messages.
[0009] Chinese patent document CN105991384B discloses a space Ethernet communication method compatible with time-triggered Ethernet and 1553B, which includes transmitting three types of data frames with different priorities using a time-triggered compatible protocol architecture: command response data, IT application data, and time-triggered data. However, these three types of frames all use the standard Ethernet frame format, which cannot solve the aforementioned problem.
[0010] Chinese patent document CN110417630A discloses a time-triggered Ethernet switching device and method compatible with the 1553B bus, including a 1553B bus processing module and a time-triggered Ethernet switching module. The implementation method involves: decoding data sent by the 1553B bus device into 1553B receive messages and buffering them; converting the 1553B receive messages into time-triggered Ethernet data frames and forwarding them to their corresponding destination ports; forwarding data frames sent by the time-triggered Ethernet end system; converting data frames sent to the 1553B bus into 1553B send messages; buffering and encoding the 1553B send messages before sending them to the 1553B bus. However, this method may cause congestion during transmission, leading to a decrease in the quality of 1553B command response data service, and the transmission process is not flexible enough. Therefore, this document cannot solve the above problems.
[0011] Chinese patent document CN113949600B discloses a method and apparatus for accessing a time-triggered network via a 1553B bus, including transmitting data from the 1553B bus to the time-triggered network and transmitting data from the time-triggered network to the 1553B bus. The method for transmitting data from the 1553B bus to the time-triggered network includes the following steps: acquiring interrupts and reading 1553B data from the 1553B bus; performing frame format conversion on the 1553B data; storing the converted data in an uplink FIFO; and transmitting the data in the uplink FIFO to the time-triggered network. The method for the time-triggered network to transmit data to the 1553B bus includes the following steps: receiving and checking data from the time-triggered network; performing frame format conversion on the received data; storing the converted data in a downlink FIFO; and transmitting the data in the downlink FIFO to the 1553B bus. However, this method may also cause congestion during transmission, leading to a decrease in the quality of the 1553B command response data service, and the transmission process is not flexible enough. Therefore, this document cannot solve the above problems.
[0012] Chinese patent document CN103200195A discloses a conversion device and method for converting multiple serial protocols to Ethernet communication. The device includes a serial communication device, an embedded device, computer monitoring software, a serial communication data line, and an Ethernet communication data line. The method includes the following steps: Start S1, Initialization S2, Sending requests to all devices S3; TCP data packets received at the network port S4, Parsing TCP data packets S5, Reading SDRAM data S6, Composing TCP data packets S7, Sending to the Ethernet port S8; RTU data packets received at the serial port S9, Verification check S10, If correct, proceed to parsing RTU data packets S11, Retrieving data S12, Storing in SDRAM S13; If not, return to receiving RTU data packets at the serial port S9. Finally, the program ends S14. However, this method cannot meet the technical requirements of high real-time performance, and therefore cannot solve the aforementioned problems.
[0013] Chinese patent document CN105610876B discloses an industrial control automation network communication protocol converter and a communication protocol conversion method. The communication protocol converter includes a microprocessor, an upper-end interface expansion circuit, a lower-end interface expansion circuit, a memory, and a power supply circuit. The upper-end interface expansion circuit includes a serial communication interface, an Ethernet interface, a hardware protocol stack chip, a software protocol stack chip, and a switch for switching the communication between the hardware and software protocol stack chips and the host computer. The serial communication interface connects the microprocessor to a Modbus network, and the Ethernet interface connects the microprocessor to an industrial Ethernet network. The lower-end interface expansion circuit includes multiple serial communication interfaces that communicate one-to-one with multiple lower-level machines. However, this document suffers from inflexibility, a high bit error rate, and a slow transmission rate, failing to meet the needs of modern industrial control systems for different application environments and thus unable to solve the aforementioned problems.
[0014] Chinese patent document CN109510746A discloses a data transmission method and device, including a data recording system acquiring a first Ethernet data packet to be sent to a locomotive protection memory; converting the first Ethernet data packet into a first Universal Serial Bus (USB) data packet; and transmitting the first USB data packet to the locomotive protection memory via a USB interface. However, the data transmission method used in this document is simplistic and inflexible, thus failing to solve the aforementioned problems.
[0015] Chinese patent document CN106506347A discloses a multi-protocol data communication gateway device for an air traffic control system, including a chassis, a system main processor module disposed inside the chassis, and an internal communication module and an external communication module embedded in the side wall of the chassis; the internal communication module and the external communication module are connected to the system main processor module. However, this document uses multiple bus types and multiple protocol types for data communication, resulting in inconsistent standards and incompatibility, and thus fails to solve the aforementioned problems. Summary of the Invention
[0016] To address the shortcomings of existing technologies, the purpose of this invention is to provide a method and system for accessing a dual-redundant TTE network via a serial communication interface network layer.
[0017] The present invention provides a method for accessing a dual-redundant TTE network via a serial communication interface network layer, comprising a hybrid network consisting of a dual-redundant TTE network and a serial communication interface network; the dual-redundant TTE network includes an end system; the serial communication interface network includes an interface conversion terminal and a serial port terminal connected thereto; the hybrid network, based on IP data packets, enables communication between the TTE end system and the serial port terminal, and between different serial port terminals, comprising the following steps:
[0018] Step S1: Connect the interface conversion terminal as an end system to the dual-redundant TTE network;
[0019] Step S2: The serial communication interface carries and sends IP data packets according to the network layer IP address;
[0020] Step S3: The interface conversion terminal receives and processes IP data packets through the serial communication interface.
[0021] Preferably, the IP address includes a subnet number field and a terminal number field;
[0022] The subnet number field defines a subnet number for the TTE network, and defines a subnet number for each interface conversion terminal and its connected serial port terminal; the subnet number is unique within the same network, and the subnet number is reused between different networks;
[0023] The terminal number field defines a primary / backup identifier bit, which defines a terminal number for each end system in the TTE network. The two redundant end systems are distinguished by the primary / backup identifier bit. Each serial port terminal in the serial communication interface network is defined with a terminal number, and the two redundant serial port terminals are distinguished by the primary / backup identifier bit. The interface conversion terminal has both the terminal number of the TTE network and the terminal number of the serial communication interface network. The terminal number is unique in the same subnet and is reused in different subnets.
[0024] Preferably, if the data sending source and receiving destination are in the same subnet, the subnet number in the source IP address and destination IP address fields of the IP packet header is assigned a fixed characteristic value; otherwise, the subnet number in the source IP address field of the IP packet header is the subnet number of the sending end, and the subnet number in the destination IP address field is the subnet number of the receiving end.
[0025] Preferably, step S2 includes the following sub-steps:
[0026] Step S2.1: The terminal number in the source IP address field of the IP data packet header is the terminal number of the sending serial port terminal, and the terminal number in the destination IP address field is the terminal number of the receiving serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal.
[0027] Step S2.2: If the IP packet needs to be forwarded to the receiving end via the TTE network, then the best-effort traffic and critical traffic are distinguished by the flow category field in the IP packet header; if critical traffic is used, then the VLID is passed to the interface conversion terminal through the flow label field; if best-effort traffic is used, then the flow label field is assigned a fixed characteristic value.
[0028] Step S2.3: When the end system sends an IP data packet, the terminal number in the source IP address field of the packet header is the terminal number of the sending end system; the terminal number in the destination IP address field is the terminal number of the receiving end serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal.
[0029] Step S2.4: After the serial terminal or end system carries the IP data packet, it determines the subnet number and terminal number in the destination IP address field of the IP data packet header; if the subnet number is the local subnet number or a fixed characteristic value, and the terminal number is the local terminal number, then the IP data packet is further parsed; otherwise, the IP data packet is discarded and an error is reported.
[0030] Preferably, step S3 includes the following sub-steps:
[0031] Step S3.1: If the destination IP address subnet number field is the subnet number of the serial communication interface network where the interface conversion terminal is located or a fixed characteristic value, then further determine the destination terminal number field; if the destination terminal number is the local terminal number, then the interface conversion terminal receives and parses the IP data packet; if the destination terminal number is not the local terminal number, then according to the terminal number and serial communication output port mapping table, the IP data packet is output through the corresponding port.
[0032] Step S3.2: If the destination IP address subnet number field is the subnet number of the TTE network, then further determine the flow category field and the destination terminal number field: If the flow category is best-effort traffic, then retrieve the TTE network terminal number and MAC address mapping table according to the destination terminal number field to determine the receiving system MAC address, encapsulate the IP data packet into a MAC frame, the source MAC address is the sending interface conversion terminal MAC address, and the destination MAC address is the TTE network receiving system MAC address; if the flow category is critical traffic, then use the flow label field as the data transmission VL ID, encapsulate the IP data packet into a MAC frame, the source MAC address is the sending interface conversion terminal MAC address, and the virtual link of the destination MAC address is the VL ID;
[0033] Step S3.3: If the destination IP address subnet number cannot be correctly addressed, discard the IP packet and report an error;
[0034] Step S3.4: The interface conversion terminal receives a MAC frame through the TTE network, parses the MAC frame to obtain an IP data packet. If the destination IP address subnet number field is the subnet number of the TTE network where the interface conversion terminal is located or a fixed characteristic value, then the destination terminal number field is further determined. If the terminal number is the local terminal number, the interface conversion terminal receives and parses the IP data packet. If the terminal number is not the local terminal number, then the IP data packet is output through the corresponding port according to the terminal number and the serial communication output port mapping table.
[0035] Preferably, the interface conversion terminal establishes a mapping table between the serial communication interface network subnet number and the TTE network terminal number, a mapping table between the TTE network terminal number and the MAC address, and a mapping table between the terminal number and the serial communication output port;
[0036] The mapping table between the serial communication interface network subnet number and the TTE network terminal number includes: the TTE network terminal number is the TTE network terminal number of the interface conversion terminal, and the serial communication interface network subnet number is the subnet number defined by the interface conversion terminal and the serial port terminal connected to it.
[0037] The TTE network terminal number and MAC address mapping table includes: the MAC address is the MAC address of the TTE network terminal system and the interface conversion module, and the TTE network terminal number is the terminal number of the TTE network terminal system and the interface conversion module.
[0038] The terminal number and serial communication output port mapping table includes: the serial communication output port is the serial communication interface address from which the interface conversion terminal outputs data to the serial port terminal, and the terminal number is the network terminal number of the serial communication interface of the conversion terminal.
[0039] Preferably, in the serial communication interface network, if there is a direct communication link between two serial port terminals, then based on the IP address definition of the serial port terminals, the sending, receiving, and processing of IP data packets can be performed directly between the two serial port terminals.
[0040] Preferably, the serial communication interface between the interface conversion terminal and the serial port terminal supports one-to-two, two-to-one, one-to-one, and two-to-two connection modes, and supports asynchronous serial transmission and synchronous serial transmission.
[0041] Preferably, the dual-redundant TTE network further includes switches; the multiple switches form a TTE switching network, and the primary and backup redundant end systems are directly connected to a group of primary and backup redundant switches in the switching network via Ethernet links.
[0042] A system for accessing a dual-redundant TTE network via a serial communication interface network layer according to the present invention includes a hybrid network composed of a dual-redundant TTE network and a serial communication interface network; the dual-redundant TTE network includes an end system; the serial communication interface network includes an interface conversion terminal and a serial port terminal connected thereto; the hybrid network, based on IP data packets, enables communication between the TTE end system and the serial port terminal, and between different serial port terminals, and includes the following modules:
[0043] Module M1: Connects the interface conversion terminal as an end system to the dual-redundant TTE network;
[0044] Module M2: Serial communication interface carries and sends IP data packets based on the network layer IP address;
[0045] Module M3: The interface conversion terminal receives and processes IP data packets through a serial communication interface.
[0046] Preferably, the IP address includes a subnet number field and a terminal number field;
[0047] The subnet number field defines a subnet number for the TTE network, and defines a subnet number for each interface conversion terminal and its connected serial port terminal; the subnet number is unique within the same network, and the subnet number is reused between different networks;
[0048] The terminal number field defines a primary / backup identifier bit, which defines a terminal number for each end system in the TTE network. The two redundant end systems are distinguished by the primary / backup identifier bit. Each serial port terminal in the serial communication interface network is defined with a terminal number, and the two redundant serial port terminals are distinguished by the primary / backup identifier bit. The interface conversion terminal has both the terminal number of the TTE network and the terminal number of the serial communication interface network. The terminal number is unique in the same subnet and is reused in different subnets.
[0049] Preferably, if the data sending source and receiving destination are in the same subnet, the subnet number in the source IP address and destination IP address fields of the IP packet header is assigned a fixed characteristic value; otherwise, the subnet number in the source IP address field of the IP packet header is the subnet number of the sending end, and the subnet number in the destination IP address field is the subnet number of the receiving end.
[0050] Preferably, module M2 includes the following sub-modules:
[0051] Module M2.1: The terminal number in the source IP address field of the IP packet header is the terminal number of the sending serial port terminal, and the terminal number in the destination IP address field is the terminal number of the receiving serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal.
[0052] Module M2.2: If IP packets need to be forwarded to the receiving end via the TTE network, the best-effort traffic and critical traffic are distinguished by the flow category field in the IP packet header; if critical traffic is used, the VLID is passed to the interface conversion terminal through the flow label field; if best-effort traffic is used, the flow label field is assigned a fixed characteristic value.
[0053] Module M2.3: When the end system sends IP data packets, the terminal number in the source IP address field of the packet header is the terminal number of the sending end system; the terminal number in the destination IP address field is the terminal number of the receiving end serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal.
[0054] Module M2.4: After the serial terminal or end system receives an IP data packet, it determines the subnet number and terminal number in the destination IP address field of the IP data packet header. If the subnet number is the local subnet number or a fixed characteristic value, and the terminal number is the local terminal number, then the IP data packet is further parsed; otherwise, the IP data packet is discarded and an error is reported.
[0055] Preferably, module M3 includes the following sub-modules:
[0056] Module M3.1: If the destination IP address subnet number field is the subnet number of the serial communication interface network where the interface conversion terminal is located or a fixed characteristic value, then the destination terminal number field is further determined; if the destination terminal number is the local terminal number, then the interface conversion terminal receives and parses the IP data packet; if the destination terminal number is not the local terminal number, then according to the terminal number and serial communication output port mapping table, the IP data packet is output through the corresponding port.
[0057] Module M3.2: If the destination IP address subnet number field is the subnet number of the TTE network, then further determine the flow category field and the destination terminal number field: If the flow category is best-effort traffic, then retrieve the TTE network terminal number and MAC address mapping table based on the destination terminal number field to determine the receiving system MAC address, encapsulate the IP data packet into a MAC frame, the source MAC address is the sending interface conversion terminal MAC address, and the destination MAC address is the TTE network receiving system MAC address; if the flow category is critical traffic, then use the flow label field as the data transmission VL ID, encapsulate the IP data packet into a MAC frame, the source MAC address is the sending interface conversion terminal MAC address, and the virtual link of the destination MAC address is the VL ID;
[0058] Module M3.3: If the destination IP address subnet number cannot be correctly addressed, the IP packet is discarded and an error is reported;
[0059] Module M3.4: The interface conversion terminal receives MAC frames through the TTE network, parses the MAC frames to obtain IP data packets, and if the destination IP address subnet number field is the subnet number of the TTE network where the interface conversion terminal is located or a fixed characteristic value, then it further determines the destination terminal number field; if the terminal number is the local terminal number, the interface conversion terminal receives and parses the IP data packets; if the terminal number is not the local terminal number, then according to the terminal number and serial communication output port mapping table, it outputs IP data packets through the corresponding port.
[0060] Preferably, the interface conversion terminal establishes a mapping table between the serial communication interface network subnet number and the TTE network terminal number, a mapping table between the TTE network terminal number and the MAC address, and a mapping table between the terminal number and the serial communication output port;
[0061] The mapping table between the serial communication interface network subnet number and the TTE network terminal number includes: the TTE network terminal number is the TTE network terminal number of the interface conversion terminal, and the serial communication interface network subnet number is the subnet number defined by the interface conversion terminal and the serial port terminal connected to it.
[0062] The TTE network terminal number and MAC address mapping table includes: the MAC address is the MAC address of the TTE network terminal system and the interface conversion module, and the TTE network terminal number is the terminal number of the TTE network terminal system and the interface conversion module.
[0063] The terminal number and serial communication output port mapping table includes: the serial communication output port is the serial communication interface address from which the interface conversion terminal outputs data to the serial port terminal, and the terminal number is the network terminal number of the serial communication interface of the conversion terminal.
[0064] Preferably, in the serial communication interface network, if there is a direct communication link between two serial port terminals, then based on the IP address definition of the serial port terminals, the sending, receiving, and processing of IP data packets can be performed directly between the two serial port terminals.
[0065] Preferably, the serial communication interface between the interface conversion terminal and the serial port terminal supports one-to-two, two-to-one, one-to-one, and two-to-two connection modes, and supports asynchronous serial transmission and synchronous serial transmission.
[0066] Preferably, the dual-redundant TTE network further includes switches; the multiple switches form a TTE switching network, and the primary and backup redundant end systems are directly connected to a group of primary and backup redundant switches in the switching network via Ethernet links.
[0067] Compared with the prior art, the present invention has the following beneficial effects:
[0068] 1. The method and system provided by this invention realize network layer protocol conversion and bidirectional data transmission between TTE networks and serial communication interface networks, which has good flexibility and improves data transmission efficiency.
[0069] 2. The method and system provided by this invention realize the identification and addressing of all network devices, paths and the serial communication interface and the TTE network through the definition of IP data packet header fields.
[0070] 3. The serial communication data in this invention can be transmitted via TT, RC, and BE messages of the TTE network, making full use of the data transmission reliability guarantee mechanism of TTE technology, and has a wide range of applications in the fields of network communication and fieldbus technology.
[0071] Other beneficial effects of the present invention will be explained in detail through the introduction of specific technical features and technical solutions in specific embodiments. Those skilled in the art should be able to understand the beneficial technical effects brought about by these technical features and technical solutions through the introduction of these technical features and technical solutions. Attached Figure Description
[0072] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0073] Figure 1 This is a schematic diagram of a method for accessing a dual-redundant TTE network through the network layer of a serial communication interface in an embodiment of the present invention.
[0074] Figure 2 This is a flowchart illustrating the process of a serial terminal sending IP data packets in an embodiment of the present invention.
[0075] Figure 3 This is a flowchart illustrating how the interface conversion terminal receives and processes IP data packets via a serial communication interface, as described in an embodiment of the present invention. Detailed Implementation
[0076] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.
[0077] This invention provides a method for accessing a dual-redundant TTE network via a serial communication interface network layer, comprising a hybrid network consisting of a dual-redundant TTE network and a serial communication interface network. The dual-redundant TTE network includes an end system, while the serial communication interface network includes an interface conversion terminal and a serial port terminal connected to it. The hybrid network, based on IP data packets, enables communication between the TTE end system and the serial port terminal, as well as between different serial port terminals.
[0078] First, the interface conversion terminal is connected to the dual-redundant TTE network as an end system. The interface conversion terminal is both an end system of the TTE network and a serial port terminal of the serial communication interface network. It realizes network layer protocol conversion and bidirectional data transmission between the TTE network and the serial communication interface network.
[0079] Reference Figure 1 As shown, the dual-redundant TTE network also includes switches. End System 1-Master and End System 1-Backup represent end systems with master-backup redundancy; Switch 1-Master and Switch 1-Backup, Switch N-Master and Switch N-Backup represent switches with master-backup redundancy; the TTE switching network is composed of several master-backup redundant switches, and the master-backup redundant end systems are directly connected to a group of master-backup redundant switches in the switching network via Ethernet links.
[0080] Serial terminal 11-main, serial terminal 11-backup, and serial terminal 1K-main and serial terminal 1K-backup represent primary and backup redundant serial terminals. Serial terminal 11-main, serial terminal 11-backup, and serial terminal 1K-main and serial terminal 1K-backup are connected to interface conversion terminal 1-main and interface conversion terminal 1-backup respectively via serial communication links, such as RS422 or LVDS interfaces.
[0081] Next, the serial terminal can send and receive IP data packets through the serial communication interface, and the end system can send and receive IP data packets through the TTE network.
[0082] Reference Figure 1 and Figure 2 As shown, when a serial terminal sends IP data packets, it needs to first determine the location of the data receiving end. The assignment rules for the header fields of IP data packets are also different for different receiving ends.
[0083] In the IP packet header, the terminal number in the source IP address field is the terminal number of the sending serial port terminal, and the terminal number in the destination IP address field is the terminal number of the receiving serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal.
[0084] If IP packets need to be forwarded to the receiving end via the TTE network, the flow category field in the IP packet header is used to distinguish between best-effort traffic and critical traffic. If critical traffic is used, the VLID is passed to the interface conversion terminal through the flow label field; if best-effort traffic is used, the flow label field is assigned a fixed characteristic value.
[0085] When a serial terminal sends IP data packets, if the IP data packets need to be forwarded to the receiving end via the TTE network, for example, if serial terminal 11-master sends data to serial terminal 21-master via the TTE network, then the best-effort traffic and critical traffic are distinguished by the flow category field in the IP data packet header. If critical traffic is used, the VL ID (Virtual Link Number) is passed to the interface conversion terminal through the flow label field; if best-effort traffic is used, the flow label field is assigned a fixed characteristic value. Critical traffic includes TT and RC, while best-effort traffic is represented by BE messages.
[0086] When an end system sends IP packets, the terminal number in the source IP address field of the IP packet header is the terminal number of the sending end system. The terminal number in the destination IP address field is the terminal number of the receiving serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal. When assembling MAC frames, IP packets can be transmitted using best-effort traffic and critical traffic.
[0087] After a serial terminal or end system receives an IP data packet, it checks the subnet number and terminal number in the destination IP address field of the IP data packet header. If the subnet number is the local subnet number or a fixed characteristic value, and the terminal number is the local terminal number, then the IP data packet is further parsed; otherwise, the IP data packet is discarded and an error is reported.
[0088] The IP address includes:
[0089] Subnet ID field: Defines a subnet ID for the TTE network, and a subnet ID for each interface conversion terminal and its connected serial terminal. Subnet IDs are unique within the same network, but can be reused between different networks.
[0090] Terminal ID field: Defines a primary / backup identifier bit, assigning a terminal ID to each end system in the TTE network. Two redundant end systems are distinguished by this primary / backup identifier. Also defines a terminal ID for each serial port terminal in the serial communication interface network. Two redundant serial port terminals are distinguished by this primary / backup identifier. The interface conversion terminal possesses both a TTE network terminal ID and a serial communication interface network terminal ID. The terminal ID is unique within the same subnet but can be reused in different subnets.
[0091] If the data source and destination are on the same subnet, the subnet number in the source IP address and destination IP address fields of the IP packet header is assigned a fixed characteristic value, such as all "FF". Otherwise, the subnet number in the source IP address field of the IP packet header is the subnet number of the sending end, and the subnet number in the destination IP address field is the subnet number of the receiving end.
[0092] Finally, the interface conversion terminal can send and receive IP data packets through the serial communication interface or through the TTE network.
[0093] Specifically, refer to Figure 3 As shown:
[0094] If the destination IP address subnet number field is the subnet number of the serial communication interface network where the interface conversion terminal is located or a fixed characteristic value, then the destination terminal number field is further determined; if the destination terminal number is the local terminal number, the interface conversion terminal receives and parses the IP data packet; if the destination terminal number is not the local terminal number, then the IP data packet is output through the corresponding port according to the terminal number and serial communication output port mapping table.
[0095] If the destination IP address subnet number field is the subnet number of the TTE network, then further determine the flow category field and the destination terminal number field:
[0096] If the flow type is best-effort flow, the receiving system MAC address is determined by retrieving the TTE network terminal number and MAC address mapping table based on the destination terminal number field. The IP data packet is then encapsulated into a MAC frame, with the source MAC address being the MAC address of the sending interface conversion terminal and the destination MAC address being the MAC address of the TTE network receiving system.
[0097] If the flow category is critical traffic, the flow label field is used as the data transmission VL ID, the IP packet is encapsulated into a MAC frame, the source MAC address is the MAC address of the sending interface conversion terminal, and the virtual link of the destination MAC address is the VL ID.
[0098] If the destination IP address subnet number cannot be correctly addressed, the IP packet is discarded and an error is reported.
[0099] The interface conversion terminal receives a MAC frame through the TTE network, parses the MAC frame to obtain an IP data packet, and if the destination IP address subnet number field is the subnet number of the TTE network where the interface conversion terminal is located or a fixed characteristic value, then the destination terminal number field is further determined.
[0100] If the terminal number is the local terminal number, the interface conversion terminal receives and parses the IP data packets; if the terminal number is not the local terminal number, the IP data packets are output through the corresponding port according to the terminal number and serial communication output port mapping table.
[0101] Among them, the interface conversion terminal is established:
[0102] Mapping table of serial communication interface network subnet number and TTE network terminal number: The TTE network terminal number is the TTE network terminal number of the interface conversion terminal, and the serial communication interface network subnet number is the subnet number defined by the interface conversion terminal and the serial port terminal connected to it.
[0103] TTE Network Terminal Number and MAC Address Mapping Table: The MAC address is the MAC address of the TTE network terminal system and the interface conversion module, and the TTE network terminal number is the terminal number of the TTE network terminal system and the interface conversion module.
[0104] Terminal Number and Serial Communication Output Port Mapping Table: The serial communication output port is the serial communication interface address from which the interface conversion terminal outputs data to the serial port terminal, and the terminal number is the network terminal number of the serial communication interface of the conversion terminal.
[0105] In a serial communication interface network, if there is a direct communication link between two serial port terminals, IP data packets can be sent, received, and processed directly between the two serial port terminals based on the IP address definition of the serial port terminals.
[0106] The serial communication interface between the interface conversion terminal and the serial port terminal supports one-to-two transmit, two-to-one transmit, one-to-one transmit, and two-to-two transmit connection modes to adapt to the communication link redundancy backup requirements of single-redundant and dual-redundant serial port terminals. The dual-redundant terminals are distinguished by the primary / backup identifier in the terminal number field, which has good flexibility.
[0107] The serial communication interface can also support asynchronous serial transmission and synchronous serial transmission. In synchronous serial transmission, clock lines, data lines, gate lines, etc., are defined as a group corresponding to a certain serial communication output port.
[0108] The present invention also provides a system for accessing a dual-redundant TTE network via a serial communication interface network layer. The system for accessing a dual-redundant TTE network via a serial communication interface network layer can be implemented by executing the process steps of the method for accessing a dual-redundant TTE network via a serial communication interface network layer. That is, those skilled in the art can understand the method for accessing a dual-redundant TTE network via a serial communication interface network layer as a preferred embodiment of the system for accessing a dual-redundant TTE network via a serial communication interface network layer.
[0109] Specifically, it includes the following modules:
[0110] Module M1: Connects the interface conversion terminal as an end system to the dual-redundant TTE network.
[0111] Module M2: Serial communication interface carries and sends IP data packets based on the network layer IP address.
[0112] In the IP packet header, the terminal number in the source IP address field is the terminal number of the sending serial port terminal, and the terminal number in the destination IP address field is the terminal number of the receiving serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal.
[0113] If IP packets need to be forwarded to the receiving end via the TTE network, the flow category field in the IP packet header is used to distinguish between best-effort traffic and critical traffic. If critical traffic is used, the VLID is passed to the interface conversion terminal through the flow label field; if best-effort traffic is used, the flow label field is assigned a fixed characteristic value.
[0114] When an end system sends an IP data packet, the terminal number in the source IP address field of the packet header is the terminal number of the sending end system. The terminal number in the destination IP address field is the terminal number of the receiving end serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal.
[0115] After the serial terminal or end system receives the IP data packet, it checks the subnet number and terminal number in the destination IP address field of the IP data packet header. If the subnet number is the local subnet number or a fixed characteristic value, and the terminal number is the local terminal number, then the IP data packet is further parsed; otherwise, the IP data packet is discarded and an error is reported.
[0116] The IP address includes:
[0117] Subnet ID field: Defines a subnet ID for the TTE network, and a subnet ID for each interface conversion terminal and its connected serial terminal. Subnet IDs are unique within the same network, but can be reused between different networks.
[0118] Terminal ID field: Defines a primary / backup identifier bit, assigning a terminal ID to each end system in the TTE network. Two redundant end systems are distinguished by this primary / backup identifier. Also defines a terminal ID for each serial port terminal in the serial communication interface network. Two redundant serial port terminals are distinguished by this primary / backup identifier. The interface conversion terminal possesses both a TTE network terminal ID and a serial communication interface network terminal ID. The terminal ID is unique within the same subnet but can be reused in different subnets.
[0119] If the data source and destination are on the same subnet, the subnet number in the source IP address and destination IP address fields of the IP packet header is assigned a fixed characteristic value; otherwise, the subnet number in the source IP address field of the IP packet header is the subnet number of the sending end, and the subnet number in the destination IP address field is the subnet number of the receiving end.
[0120] Module M3: The interface conversion terminal receives and processes IP data packets via a serial communication interface.
[0121] If the destination IP address subnet number field is the subnet number of the serial communication interface network where the interface conversion terminal is located, or a fixed characteristic value, then further determine the destination terminal number field:
[0122] If the destination terminal number is the same as the local terminal number, the interface conversion terminal receives and parses the IP data packets; if the destination terminal number is not the same as the local terminal number, the IP data packets are output through the corresponding port according to the terminal number and the serial communication output port mapping table.
[0123] If the destination IP address subnet number field is the subnet number of the TTE network, then further determine the flow category field and the destination terminal number field:
[0124] If the flow type is best-effort flow, the receiving system MAC address is determined by retrieving the TTE network terminal number and MAC address mapping table based on the destination terminal number field. The IP data packet is then encapsulated into a MAC frame, with the source MAC address being the MAC address of the sending interface conversion terminal and the destination MAC address being the MAC address of the TTE network receiving system.
[0125] If the flow category is critical traffic, the flow label field is used as the data transmission VL ID, the IP packet is encapsulated into a MAC frame, the source MAC address is the MAC address of the sending interface conversion terminal, and the virtual link of the destination MAC address is the VL ID.
[0126] If the destination IP address subnet number cannot be correctly addressed, the IP packet is discarded and an error is reported.
[0127] The interface conversion terminal receives a MAC frame through the TTE network. After parsing the MAC frame, it obtains an IP data packet. If the destination IP address subnet number field is the subnet number of the TTE network where the interface conversion terminal is located, or a fixed characteristic value, then it further determines the destination terminal number field:
[0128] If the terminal number is the local terminal number, the interface conversion terminal receives and parses the IP data packets; if the terminal number is not the local terminal number, the IP data packets are output through the corresponding port according to the terminal number and serial communication output port mapping table.
[0129] Among them, the interface conversion terminal is established:
[0130] Mapping table of serial communication interface network subnet number and TTE network terminal number: The TTE network terminal number is the TTE network terminal number of the interface conversion terminal, and the serial communication interface network subnet number is the subnet number defined by the interface conversion terminal and the serial port terminal connected to it.
[0131] TTE Network Terminal Number and MAC Address Mapping Table: The MAC address is the MAC address of the TTE network terminal system and the interface conversion module, and the TTE network terminal number is the terminal number of the TTE network terminal system and the interface conversion module.
[0132] Terminal Number and Serial Communication Output Port Mapping Table: The serial communication output port is the serial communication interface address from which the interface conversion terminal outputs data to the serial port terminal, and the terminal number is the network terminal number of the serial communication interface of the conversion terminal.
[0133] In a serial communication interface network, if there is a direct communication link between two serial port terminals, IP data packets can be sent, received, and processed directly between the two serial port terminals based on the IP address definition of the serial port terminals.
[0134] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.
Claims
1. A method for accessing a dual-redundant TTE network via a serial communication interface network layer, comprising a hybrid network consisting of a dual-redundant TTE network and a serial communication interface network, characterized in that, The dual-redundant TTE network includes an end system; the serial communication interface network includes an interface conversion terminal and a serial port terminal connected to it; the hybrid network, based on IP data packets, enables communication between the TTE end system and the serial port terminal, and between different serial port terminals, including the following steps: Step S1: Connect the interface conversion terminal as an end system to the dual-redundant TTE network; Step S2: The serial communication interface carries and sends IP data packets according to the network layer IP address; Step S3: The interface conversion terminal receives and processes IP data packets through the serial communication interface; The IP address includes a subnet number field and a terminal number field; The subnet number field defines a subnet number for the TTE network, and defines a subnet number for each interface conversion terminal and its connected serial port terminal; the subnet number is unique within the same network, and the subnet number is reused between different networks; The terminal number field defines a primary / backup identifier bit, which defines a terminal number for each end system in the TTE network. The two redundant end systems are distinguished by the primary / backup identifier bit. Each serial port terminal in the serial communication interface network is defined with a terminal number, and the two redundant serial port terminals are distinguished by the primary / backup identifier bit. The interface conversion terminal has both the terminal number of the TTE network and the terminal number of the serial communication interface network. The terminal number is unique in the same subnet and is reused in different subnets. Step S2 includes the following sub-steps: Step S2.1: The terminal number in the source IP address field of the IP data packet header is the terminal number of the sending serial port terminal, and the terminal number in the destination IP address field is the terminal number of the receiving serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal. Step S2.2: If the IP packet needs to be forwarded to the receiving end via the TTE network, then the best-effort traffic and critical traffic are distinguished by the flow category field in the IP packet header; if critical traffic is used, then the VLID is passed to the interface conversion terminal through the flow label field; if best-effort traffic is used, then the flow label field is assigned a fixed characteristic value. Step S2.3: When the end system sends an IP data packet, the terminal number in the source IP address field of the packet header is the terminal number of the sending end system; the terminal number in the destination IP address field is the terminal number of the receiving end serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal. Step S2.4: After the serial terminal or end system carries the IP data packet, it determines the subnet number and terminal number in the destination IP address field of the IP data packet header; if the subnet number is the local subnet number or a fixed characteristic value, and the terminal number is the local terminal number, then the IP data packet is further parsed; otherwise, the IP data packet is discarded and an error is reported.
2. The method for accessing a dual-redundant TTE network via a serial communication interface network layer according to claim 1, characterized in that, If the data source and destination are on the same subnet, the subnet number in the source IP address and destination IP address fields of the IP packet header is assigned a fixed characteristic value; otherwise, the subnet number in the source IP address field of the IP packet header is the subnet number of the sending end, and the subnet number in the destination IP address field is the subnet number of the receiving end.
3. The method for accessing a dual-redundant TTE network via a serial communication interface network layer according to claim 1, characterized in that, Step S3 includes the following sub-steps: Step S3.1: If the destination IP address subnet number field is the subnet number of the serial communication interface network where the interface conversion terminal is located or a fixed characteristic value, then further determine the destination terminal number field; if the destination terminal number is the local terminal number, then the interface conversion terminal receives and parses the IP data packet; if the destination terminal number is not the local terminal number, then according to the terminal number and serial communication output port mapping table, the IP data packet is output through the corresponding port. Step S3.2: If the destination IP address subnet number field is the subnet number of the TTE network, then further determine the flow category field and the destination terminal number field: If the flow category is best-effort traffic, then retrieve the TTE network terminal number and MAC address mapping table according to the destination terminal number field to determine the receiving system MAC address, encapsulate the IP data packet into a MAC frame, the source MAC address is the MAC address of the sending interface conversion terminal, and the destination MAC address is the MAC address of the TTE network receiving system; If the flow category is critical traffic, the flow label field is used as the data transmission VL ID, the IP packet is encapsulated into a MAC frame, the source MAC address is the MAC address of the sending interface translation terminal, and the virtual link of the destination MAC address is the VL ID; Step S3.3: If the destination IP address subnet number cannot be correctly addressed, discard the IP packet and report an error; Step S3.4: The interface conversion terminal receives a MAC frame through the TTE network, parses the MAC frame to obtain an IP data packet. If the destination IP address subnet number field is the subnet number of the TTE network where the interface conversion terminal is located or a fixed characteristic value, then the destination terminal number field is further determined. If the terminal number is the local terminal number, the interface conversion terminal receives and parses the IP data packet. If the terminal number is not the local terminal number, then the IP data packet is output through the corresponding port according to the terminal number and the serial communication output port mapping table.
4. The method for accessing a dual-redundant TTE network via a serial communication interface network layer according to claim 1, characterized in that, The interface conversion terminal establishes a mapping table between the serial communication interface network subnet number and the TTE network terminal number, a mapping table between the TTE network terminal number and the MAC address, and a mapping table between the terminal number and the serial communication output port. The mapping table between the serial communication interface network subnet number and the TTE network terminal number includes: the TTE network terminal number is the TTE network terminal number of the interface conversion terminal, and the serial communication interface network subnet number is the subnet number defined by the interface conversion terminal and the serial port terminal connected to it. The TTE network terminal number and MAC address mapping table includes: the MAC address is the MAC address of the TTE network terminal system and the interface conversion module, and the TTE network terminal number is the terminal number of the TTE network terminal system and the interface conversion module. The terminal number and serial communication output port mapping table includes: the serial communication output port is the serial communication interface address from which the interface conversion terminal outputs data to the serial port terminal, and the terminal number is the network terminal number of the serial communication interface of the conversion terminal.
5. The method for accessing a dual-redundant TTE network via a serial communication interface network layer according to claim 1, characterized in that, In the serial communication interface network, if there is a direct communication link between two serial port terminals, IP data packets can be sent, received, and processed directly between the two serial port terminals based on the IP address definition of the serial port terminals.
6. The method for accessing a dual-redundant TTE network via a serial communication interface network layer according to claim 1, characterized in that, The serial communication interface between the interface conversion terminal and the serial port terminal supports one-to-two, two-to-one, one-to-one, and two-to-two connection modes, and supports asynchronous serial transmission and synchronous serial transmission.
7. The method for accessing a dual-redundant TTE network via a serial communication interface network layer according to claim 1, characterized in that, The dual-redundant TTE network also includes switches; a TTE switching network is composed of multiple switches, and the primary and backup redundant end systems are directly connected to a set of primary and backup redundant switches in the switching network via Ethernet links.
8. A system for accessing a dual-redundant TTE network via a serial communication interface network layer, comprising a hybrid network consisting of a dual-redundant TTE network and a serial communication interface network, characterized in that, The dual-redundant TTE network includes an end system; the serial communication interface network includes an interface conversion terminal and a serial port terminal connected to it; the hybrid network, based on IP data packets, enables communication between the TTE end system and the serial port terminal, and between different serial port terminals, and includes the following modules: Module M1: Connects the interface conversion terminal as an end system to the dual-redundant TTE network; Module M2: Serial communication interface carries and sends IP data packets based on the network layer IP address; Module M3: The interface conversion terminal receives and processes IP data packets through a serial communication interface; The IP address includes a subnet number field and a terminal number field; The subnet number field defines a subnet number for the TTE network, and defines a subnet number for each interface conversion terminal and its connected serial port terminal; the subnet number is unique within the same network, and the subnet number is reused between different networks; The terminal number field defines a primary / backup identifier bit, which defines a terminal number for each end system in the TTE network. The two redundant end systems are distinguished by the primary / backup identifier bit. Each serial port terminal in the serial communication interface network is defined with a terminal number, and the two redundant serial port terminals are distinguished by the primary / backup identifier bit. The interface conversion terminal has both the terminal number of the TTE network and the terminal number of the serial communication interface network. The terminal number is unique in the same subnet and is reused in different subnets. The module M2 includes the following sub-steps: Module M2.1: The terminal number in the source IP address field of the IP packet header is the terminal number of the sending serial port terminal, and the terminal number in the destination IP address field is the terminal number of the receiving serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal. Module M2.2: If IP packets need to be forwarded to the receiving end via the TTE network, the best-effort traffic and critical traffic are distinguished by the flow category field in the IP packet header; if critical traffic is used, the VLID is passed to the interface conversion terminal through the flow label field; if best-effort traffic is used, the flow label field is assigned a fixed characteristic value. Module M2.3: When the end system sends IP data packets, the terminal number in the source IP address field of the packet header is the terminal number of the sending end system; the terminal number in the destination IP address field is the terminal number of the receiving end serial port terminal, the terminal number of the end system, or the terminal number of the interface conversion terminal. Module M2.4: After the serial terminal or end system receives an IP data packet, it determines the subnet number and terminal number in the destination IP address field of the IP data packet header. If the subnet number is the local subnet number or a fixed characteristic value, and the terminal number is the local terminal number, then the IP data packet is further parsed; otherwise, the IP data packet is discarded and an error is reported.
Citation Information
Patent Citations
Transformation device and transformation method for transferring multiple serial protocols to Ethernet communication
CN103200195A
Industrial Control Automation Network Communication Protocol Converter and Communication Protocol Conversion Method
CN105610876B
Compatible Time-Triggered Ethernet and 1553B Aerospace Ethernet Communication Method
CN105991384B
Multiprotocol data communication gateway equipment for air traffic control system
CN106506347A
Data transmission method and transmission device
CN109510746A