Data Transmission Method, Apparatus, Device and Dual-Connected PRP Node
By designing a dual-connected PRP node, using the judgment logic submodule and the DANP submodule, selecting the communication link according to the IP address, realizing the interoperability of PRP and TSN terminals, solving the problem of incompatibility of transmission methods and improving the compatibility and reliability of data transmission.
Patent Information
- Application Number
- CN202211707317.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2042-12-29
AI Technical Summary
The existing PRP and TSN transmission methods cannot meet the efficiency and reliability requirements of data transmission during interoperability, and the hardware replacement cost is high.
A dual-connected PRP node is designed, including a judgment logic submodule, a two-in-one submodule and a DANP submodule. It judges the terminal type through the IP address, selects an appropriate communication link for data transmission, and is compatible with PRP and TSN transmission methods.
It realizes interoperability between PRP and TSN terminals, reduces hardware replacement costs, improves data transmission compatibility and reliability, and supports smooth network upgrades.
Smart Images

Figure CN115914138B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data communication technology, and in particular to a data transmission method, apparatus, device, and dual-connection PRP node. Background Art
[0002] Traditional data transmission often uses the Parallel Redundancy Protocol (PRP). Its basic idea is to connect to two independent parallel local area networks (LANs) A and B through a doubly attached node with PRP (DANP). The message is copied into two copies and sent through two full-duplex communication ports. The copies are then forwarded to the destination DANP via LAN A and LAN B respectively. The receiving link redundancy entity then sends the first of the two copies of the message frame from the receiving port (R) to UDP or TCP, and the second copy is discarded.
[0003] With the increasing demand for timely data transmission, Time-Sensitive Networking (TSN) has emerged as a new application for data transmission. The core principle of TSN is based on a high-precision time synchronization protocol. It creates and distributes a time schedule between network devices, prioritizing the transmission of frames within the schedule. To improve data transmission reliability, redundant copies of the same message can be transmitted in parallel across the network via disjoint paths. TSN incorporates a redundancy management mechanism that aggregates these redundant messages from different links, removes duplicate messages, and generates a single information stream for the receiver.
[0004] However, technology iteration takes a certain amount of time. During the iteration process, there will be a need for both PRP terminals and TSN-supported Ethernet terminals to coexist in a network, and the two types of terminals must communicate with each other. However, the transmission genes of the above two transmission methods are different, which means that none of the current transmission technologies can meet the above requirements. Summary of the Invention
[0005] The embodiments of the present application provide a data transmission method, apparatus, device, and dual-connection PRP node to be compatible with the traditional PRP data transmission mechanism under the TSN transmission mode.
[0006] In a first aspect, an embodiment of the present application provides a dual-connection PRP node, comprising: a judgment logic submodule, a two-in-one submodule, and a DANP submodule;
[0007] The judgment logic submodule is provided with a sending unit and a receiving unit, the sending unit being connected to the receiving unit and the two-in-one submodule respectively, and being used to determine whether to send the data to be sent through the communication link connected to the receiving unit or through the communication link connected to the two-in-one submodule according to the destination IP address;
[0008] The receiving unit is connected to the sending unit and the DANP submodule respectively, and is used to determine whether to receive the to-be-received data through the communication link connected to the sending unit or through the communication link connected to the DANP submodule according to the source IP address;
[0009] The two-in-one submodule is connected to the DANP submodule and is used to merge the data to be sent into one path of data or copy the data received by the DANP submodule into two paths of data;
[0010] The DANP submodule is used to copy the data of one channel and send them to the optical network and the power grid respectively, or to merge the data of the optical network and the power grid to obtain the received data.
[0011] In a second aspect, an embodiment of the present application further provides a data transmission device, which includes a dual-connected PRP node and a TSN electrical switching board and a TSN optical switching board as described in any embodiment of the present application.
[0012] In a third aspect, an embodiment of the present application further provides a data transmission method, which is applied to the dual-connected PRP node described in any embodiment of the present application, and the method includes:
[0013] When it is necessary to send data to be sent, obtain the destination IP address of the target terminal in the network, and determine the target type of the target terminal corresponding to the destination IP address based on the pre-stored IP addresses of the terminals in the network and the types of the corresponding terminals;
[0014] If the target type is a PRP terminal, the data to be sent is sent via the communication link connected to the two-in-one submodule;
[0015] If the target type is a TSN terminal, the data to be sent is sent via a communication link connected to the receiving unit.
[0016] or,
[0017] When receiving data to be received, obtaining a source IP address of a source terminal in the network, and determining a source type of the source terminal corresponding to the source IP address based on pre-stored IP addresses of terminals in the network and types of corresponding terminals;
[0018] If the source type is a PRP terminal, receiving the to-be-received data via a communication link connected to the DANP submodule;
[0019] If the source type is a TSN terminal, the to-be-received data is received via a communication link connected to the sending unit.
[0020] In a fourth aspect, an embodiment of the present application further provides a data transmission device, which is applied to the dual-connected PRP node as described in any embodiment of the present application, and the device includes:
[0021] a target terminal type determination module, configured to, when it is necessary to send data to be sent, obtain a destination IP address of the target terminal in the network, and determine a target type of the target terminal corresponding to the destination IP address based on pre-stored IP addresses of various terminals in the network and types of corresponding terminals;
[0022] A first sending module, configured to send the data to be sent via a communication link connected to the two-in-one submodule if the target type is a PRP terminal;
[0023] The second sending module is used to send the data to be sent through the communication link connected to the receiving unit if the target type is a TSN terminal.
[0024] Alternatively, a source terminal type determination module is configured to, when receiving data to be received, obtain a source IP address of the source terminal in the network, and determine the source type of the source terminal corresponding to the source IP address based on pre-stored IP addresses of various terminals in the network and types of corresponding terminals;
[0025] A first receiving module is configured to receive the data to be received via a communication link connected to the DANP submodule if the source type is a PRP terminal;
[0026] The second receiving module is configured to receive the data to be received via a communication link connected to the sending unit if the source type is a TSN terminal.
[0027] In the technical solution of the embodiment of the present application, a dual-connection PRP node is designed, which includes a judgment logic submodule, a two-in-one submodule and a DANP submodule; the judgment logic submodule is provided with a sending unit and a receiving unit, the sending unit being connected to the receiving unit and the two-in-one submodule respectively, and being configured to determine, based on the destination IP address, whether to send the data to be sent through a communication link connected to the receiving unit or through a communication link connected to the two-in-one submodule; the receiving unit being connected to the sending unit and the DANP submodule respectively, and being configured to determine, based on the source IP address, whether to receive the data to be received through the communication link connected to the sending unit or through the communication link connected to the DANP submodule; the two-in-one submodule being connected to the DANP submodule, and being configured to merge the data to be sent into one path of data or to copy the data received by the DANP submodule into two paths of data; the DANP submodule being configured to copy the one path of data and send it to the optical network and the power grid respectively, or to merge the data of the optical network and the power grid to obtain the received data. Based on this, the dual-connected PRP node sets up two communication links, one communication link adapts to the TSN transmission mode, and the other communication link is compatible with the PRP transmission mode. It can determine which communication link to use to send or receive data based on the destination IP address or source IP address, thereby achieving compatibility with the two transmission modes. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A schematic structural diagram of a dual-connected PRP node provided in Example 1 of the present application;
[0029] Figure 2 A schematic diagram of the structure of a data transmission device provided in Example 2 of the present application;
[0030] Figure 3 A schematic diagram of a terminal network scenario provided in Example 4 of the present application;
[0031] Figure 4 A flowchart of the data transmission method provided in Example 3 of the present application;
[0032] Figure 5 A schematic diagram of a data flow in which a TSN terminal sends data to a PRP terminal according to the third embodiment of the present application;
[0033] Figure 6 A flowchart of the data transmission method provided in Example 3 of the present application;
[0034] Figure 7 A schematic diagram of a data flow in which a PRP terminal sends data to a TSN terminal, as provided in the third embodiment of the present application;
[0035] Figure 8 A schematic structural diagram of a data transmission device provided in Example 4 of the present application;
[0036] Figure 9 A structural diagram of a data transmission device provided in Example 4 of the present application. DETAILED DESCRIPTION
[0037] The present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the present application and are not intended to limit the present application. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions of the present application, not all of the structures.
[0038] Example 1
[0039] Figure 1 This is a schematic diagram of the structure of a dual-connected PRP node provided in Example 1 of this application. Figure 1 As shown, the dual-connection PRP node in this embodiment includes: a judgment logic submodule, a two-in-one submodule and a DANP submodule.
[0040] The judgment logic submodule is provided with a sending unit and a receiving unit, and the sending unit is connected to the receiving unit and the two-in-one submodule respectively, and is used to determine whether to send the data to be sent through the communication link connected to the receiving unit or through the communication link connected to the two-in-one submodule according to the destination IP address;
[0041] The receiving unit is connected to the sending unit and the DANP submodule respectively, and is used to determine whether to receive the data to be received through the communication link connected to the sending unit or through the communication link connected to the DANP submodule according to the source IP address;
[0042] The two-in-one submodule is connected to the DANP submodule and is used to merge the data to be sent into one channel of data or copy the data received by the DANP submodule into two channels of data;
[0043] The DANP submodule is used to copy one channel of data and send them to the optical network and the power grid respectively, or to merge the data of the optical network and the power grid to obtain the received data.
[0044] like Figure 1 As shown, the sending unit of the judgment logic submodule is directly connected to the receiving unit of the judgment logic submodule, forming a communication link (hereinafter referred to as the first communication link); the sending unit of the judgment logic submodule is connected to the two-in-one submodule, the two-in-one submodule is connected to the DANP submodule, and the DANP submodule is connected to the receiving unit of the judgment logic submodule, forming another communication link (hereinafter referred to as the second communication link).
[0045] It should be noted that the dual-connected PRP node of this embodiment can realize intercommunication between a dual-path Ethernet terminal (also referred to as a TSN terminal) and a remote dual-path Ethernet terminal, and can also realize intercommunication between a dual-path Ethernet terminal and a remote PRP terminal.
[0046] Among them, when the dual-channel Ethernet terminal communicates with the remote Ethernet terminal, dual transmission and dual reception are required, and when the dual-channel Ethernet terminal communicates with the PRP terminal, the dual-channel Ethernet terminal needs to transmit and receive dual signals and the PRP terminal needs to transmit and receive single signals. Therefore, this embodiment sets up the aforementioned first communication link and second communication link, wherein the two-in-one sub-module in the second communication link can merge the dual-channel data sent by the dual-channel Ethernet terminal into single-channel data, and then send it to the PRP terminal through the DANP sub-module, thereby realizing single transmission and single reception of the PRP terminal when the dual-channel Ethernet terminal communicates with the PRP terminal.
[0047] In order to adapt to the development of subsequent networks, that is, after the traditional PRP terminals are completely eliminated, only the intercommunication between TSN terminals remains, this embodiment also provides a judgment switch. The judgment switch exists in the form of a software program. In the judgment logic submodule, the software module for determining which communication link to use for transmission is enabled.
[0048] When the software module for determining which communication link to use for transmission is enabled by the determination switch, the determination logic submodule determines whether to send or receive data through the first communication link or the second communication link.
[0049] When the software module for determining which communication link to transmit is not enabled by the determination switch, the determination process is omitted, and data is directly sent and received through the first communication link (i.e., the communication link that enables intercommunication between TSN terminals).
[0050] This judgment switch allows the network to be upgraded directly without replacing hardware, and upgraded to nodes that only adapt to pure TSN dual-plane networks.
[0051] It should be noted that the judgment process of the judgment logic submodule and the working process of the two-in-one submodule will be described in subsequent embodiments and will not be repeated here.
[0052] The DANP submodule implements standard DANP functionality, replicating one Ethernet data packet into two copies, sending them to the optical network and the power grid, respectively. It should be noted that during replication, the two copies can be labeled PRP-A and PRP-B, respectively.
[0053] Among them, the label can be composed of 4 fields, namely, the serial number, 16 bits, used to identify the data packet; the network ID number, 4 bits, used to identify whether the data packet is sent from network A or network B; the frame size, 12 bits, the length of the data packet after adding the PRP label; the padding field, 16 bits, used to fill when the data packet is too short.
[0054] In this embodiment, a dual-connection PRP node is designed, which includes a judgment logic submodule, a two-in-one submodule, and a DANP submodule. The judgment logic submodule is provided with a sending unit and a receiving unit. The sending unit is respectively connected to the receiving unit and the two-in-one submodule, and is used to determine whether to send data to be sent through a communication link connected to the receiving unit or through a communication link connected to the two-in-one submodule based on the destination IP address; the receiving unit is respectively connected to the sending unit and the DANP submodule, and is used to determine whether to receive data to be received through the communication link connected to the sending unit or through the communication link connected to the DANP submodule based on the source IP address; the two-in-one submodule is connected to the DANP submodule, and is used to merge the data to be sent into one path of data or copy the data received by the DANP submodule into two paths of data; the DANP submodule is used to copy one path of data and send it to the optical network and the power grid respectively, or to merge the data of the optical network and the power grid to obtain the received data. Based on this, the dual-connected PRP node sets up two communication links, one communication link adapts to the TSN transmission mode, and the other communication link is compatible with the PRP transmission mode. It can determine which communication link to use to send or receive data based on the destination IP address or source IP address, thereby achieving compatibility with the two transmission modes.
[0055] Example 2
[0056] Figure 2 This is a structural diagram of the data transmission device provided in Example 2 of this application. Figure 2 As shown, the data transmission device provided in this embodiment may include a dual-connected PRP node and a TSN electrical switching board and a TSN optical switching board as in the above embodiment.
[0057] It should be noted that the TSN electrical switching board is used to send and receive data to and from the power grid, while the TSN optical switching board is used to send and receive data to and from the optical network. The TSN electrical switching board and the TSN optical switching board are based on the TSN switching chip KD6530, which supports the time synchronization protocol (IEEE802.1AS), the time-aware traffic shaping protocol (IEEE802.1Qbv), and the frame duplication and frame elimination protocol (IEEE 802.1CB).
[0058] In addition, the specific structure and function of the dual-connected PRP node in this embodiment can refer to the description of the aforementioned embodiment 1, and will not be repeated here.
[0059] Example 3
[0060] For the sake of convenience, this embodiment uses Figure 3 The network shown is the basis. Figure 3 This is a schematic diagram of the terminal network scenario provided in Example 4 of this application.
[0061] like Figure 3 As shown, one end of the network is provided with a single-channel CAN terminal, a single-channel Ethernet (ETH) terminal, a dual-channel CAN terminal, a dual-channel Ethernet terminal, and a PRP terminal, and the other end is provided with a single-channel CAN terminal, a single-channel Ethernet (ETH) terminal, a dual-channel CAN terminal, and a dual-channel Ethernet terminal. The method of this embodiment uses the intercommunication between a dual-channel Ethernet terminal and a PRP terminal as an example to illustrate the two processes of data transmission and data reception.
[0062] Figure 4 This is a flow chart of a data transmission method provided in Example 3 of the present application. This embodiment is applicable to scenarios where data is sent during data transmission. The method can be performed by the dual-connected PRP node in the aforementioned embodiment. The dual-connected PRP node can be implemented in hardware and / or software, and specifically includes the following steps:
[0063] Step 401: When data to be sent needs to be sent, the destination IP address of the target terminal in the network is obtained, and the target type of the target terminal corresponding to the destination IP address is determined based on the pre-stored IP addresses of the terminals in the network and the types of the corresponding terminals.
[0064] In this step, since the IP address of the terminal connected to the network is unique, and the terminal notifies the network management unit (such as a switch, gateway, etc.) of the terminal type when accessing the network, the notified type can be used to maintain a mapping table between the terminal IP address and the terminal type in a storage unit of the network. The mapping table can be shown in Table 1:
[0065] Table 1
[0066] IP address Terminal Type IP1 TSN Terminal IP2 PRP Terminal IP3 TSN Terminal ...... ......
[0067] In addition, the target terminal is the terminal to which the data to be sent needs to be sent, that is, the terminal that expects to receive the data to be sent. Usually, when a data sending request is received, it is identified as a situation where the data to be sent needs to be sent. The data sending request includes at least the destination IP address of the target terminal and the data to be sent.
[0068] The above Table 1 is a specific reference example. In this reference example, the destination IP address of the target terminal is assumed to be IP2. As can be seen from Table 1, the type of the target terminal is a PRP terminal. In this case, the following step 402 is executed.
[0069] Assuming that the destination IP address of the target terminal is IP1, it can be seen from Table 1 that the type of the target terminal is a TSN terminal. In this case, the following step 403 is executed.
[0070] Step 402: If the target type is a PRP terminal, the data to be sent is sent via the communication link connected to the two-in-one sub-module.
[0071] In this step, the data to be sent includes two channels of Ethernet data: first Ethernet data and second Ethernet data. It should be noted that the two channels of Ethernet data sent by the TSN terminal are intended to improve the reliability of data transmission. When the remote end is also a TSN terminal, high-reliability data transmission can be achieved based on the TSN data transmission mechanism.
[0072] However, since the PRP terminal is a single-receive and single-transmitter, it is necessary to merge the two Ethernet data sent by the TSN terminal. Specifically, the first Ethernet data and the second Ethernet data are merged, and the merged data is copied into the first PRP data and the second PRP data; the first PRP data is sent to the PRP terminal through the first preset network, and the second PRP data is sent to the PRP terminal through the second preset network.
[0073] It should be noted that after the first Ethernet data and the second Ethernet data are merged, the merged data will be copied into the first PRP data and the second PRP data. This process is to achieve high reliability of data transmission under the PRP data transmission mechanism.
[0074] In addition, when merging the first Ethernet data and the second Ethernet data, it is not just a merging of the data itself. Since the TSN terminal is connected to the network by two network cards, one with an electrical port and the other with an optical port, the two network cards have their own MAC addresses ( Figure 1 MAC-A, MAC-B), and also configured with different IP addresses ( Figure 1 192.168.10.x / 24, 192.168.20.x / 24), and the PRP terminal is a single-receive and single-transmitter, so the MAC address and IP address also need to be merged.
[0075] Specifically, the data body of the first Ethernet data, the data body of the second Ethernet data, the Mac address and IP address corresponding to the first Ethernet data, and the Mac address and IP address corresponding to the second Ethernet data may be merged to obtain merged data.
[0076] The merged data includes the merged data body, the merged Mac address and the merged IP address.
[0077] In a specific example, the merged MAC address may be MAC-C, and the merged IP address may be 192.168.30.x / 24. The remote PRP terminal can only perceive the merged MAC-C and 192.168.30.x / 24, thus achieving single reception.
[0078] For this specific example, see Figure 5 , Figure 5 This is a data flow diagram of a TSN terminal sending data to a PRP terminal provided in Example 3 of the present application.
[0079] like Figure 5 As shown, two-way Ethernet data (i.e., first Ethernet data and second Ethernet data) is replicated into first PRP data (PRP-A) and second PRP data (PRP-B) after passing through SDANP (i.e., dual-connected PRP nodes). PRP-A and PRP-B are respectively sent to the power grid (network consisting of A:S1-A:S2-A:S3) and the optical network (network consisting of B:S1-B:S2-B:S3). 802.1CB replication and elimination are performed in the optical network and the power grid (this operation is to further improve the reliability of data transmission). After leaving the power grid and the optical network, the data is restored to two channels, PRP-A and PRP-B. After normal deduplication, the PRP terminal sends the data as a single channel of Ethernet (ETH) data to the upper-layer application for data processing.
[0080] Step 403: If the target type is a TSN terminal, the data to be sent is sent through the communication link connected to the receiving unit.
[0081] In this step, if the target type is a TSN terminal, the data can be directly sent through the first communication link without additional processing of the data to be sent.
[0082] In this embodiment, the destination IP address of the target terminal can be used to determine the terminal type of the remote data receiver, and then it can be known whether the data is sent through the first communication link or the second communication link. When the target terminal is of PRP type, the single reception required for compatibility with PRP terminals is achieved through the two-in-one sub-module and the DANP sub-module.
[0083] Figure 6 This is a flow chart of a data transmission method provided in Example 3 of the present application. This embodiment is applicable to scenarios where data is received during data transmission. The method can be performed by the dual-connected PRP node in the aforementioned embodiment, which can be implemented in hardware and / or software, and specifically includes the following steps:
[0084] Step 601: When receiving data to be received, obtain the source IP address of the source terminal in the network, and determine the source type of the source terminal corresponding to the source IP address based on the pre-stored IP addresses of the terminals in the network and the types of the corresponding terminals.
[0085] In this step, the data to be received will include the source IP address of the source terminal (data sending end), so the source type of the source terminal can be determined by directly searching based on the mapping table in Table 1 (example).
[0086] It should be noted that this process is similar to the aforementioned step 401 and can be directly referred to and will not be described in detail here.
[0087] Step 602: If the source type is a PRP terminal, the data to be received is received via the communication link connected to the DANP submodule.
[0088] In this step, the data to be received includes the third PRP data and the fourth PRP data. Figure 7 , Figure 7 This is a data flow diagram of a PRP terminal sending data to a TSN terminal provided in the third embodiment of the present application. Figure 7 As shown, before the SDANP connected to the TSN terminal receives the third PRP data and the fourth PRP data, 802.1CB replication and deduplication are first performed on the power grid and the optical network. This process is to improve the reliability of data transmission. After leaving the power grid and the optical network, the third PRP data and the fourth PRP data are restored.
[0089] After SDANP receives the third PRP data and the fourth PRP data, the DANP submodule first merges the third PRP data and the fourth PRP data into one channel of Ethernet data to be received; then the two-in-one submodule copies the Ethernet data to be received to obtain received two-channel Ethernet data.
[0090] It should be noted that the two-in-one sub-module copying process may include: copying the data body of the Ethernet data to be received into the data body of the third Ethernet data and the data body of the fourth Ethernet data; determining the Mac address of the preset electrical port network card as the Mac address of the receiving network card for the third Ethernet data, and determining the Mac address of the preset optical port network card as the Mac address of the receiving network card for the fourth Ethernet data; determining the IP address of the preset electrical port network card as the IP address of the receiving network card for the third Ethernet data, and determining the IP address of the preset optical port network card as the IP address of the receiving network card for the fourth Ethernet data.
[0091] In a specific example, since the TSN terminal has two network cards, it is necessary to determine MAC-A as the Mac address of the third Ethernet data and MAC-B as the Mac address of the fourth Ethernet data; determine 192.168.10.x / 24 as the IP address of the third Ethernet data and 192.168.20.x / 24 as the IP address of the fourth Ethernet data.
[0092] Step 603: If the source type is a TSN terminal, the data to be received is received through the communication link connected to the sending unit.
[0093] In this step, the data can be directly received through the aforementioned first communication link without the need for additional processing of the data to be sent.
[0094] In this embodiment, the source IP address of the source terminal can be used to determine the terminal type of the remote data sender, and then it can be known whether the data is received through the first communication link or the second communication link. When the source terminal is of PRP type, the single-shot required for compatibility with the PRP terminal is achieved through the two-in-one sub-module and the DANP sub-module.
[0095] Example 4
[0096] Figure 8 This is a structural diagram of a data transmission device provided in Example 4 of the present application. The data transmission device provided in the embodiment of the present application can execute the data sending part of the data transmission method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. The device can be implemented in software and / or hardware, such as Figure 8 As shown, the data transmission device specifically includes: a target terminal type determination module 801, a first sending module 802, and a second sending module 803.
[0097] The target terminal type determination module is used to obtain the destination IP address of the target terminal in the network when it is necessary to send the data to be sent, and determine the target type of the target terminal corresponding to the destination IP address based on the pre-stored IP addresses of each terminal in the network and the types of the corresponding terminals;
[0098] A first sending module is used to send the data to be sent through the communication link connected to the two-in-one sub-module if the target type is a PRP terminal;
[0099] The second sending module is used to send the data to be sent through the communication link connected to the receiving unit if the target type is a TSN terminal.
[0100] Figure 9This is a structural diagram of a data transmission device provided in Example 4 of the present application. The data transmission device provided in the embodiment of the present application can execute the data receiving part of the data transmission method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. The device can be implemented in software and / or hardware, such as Figure 9 As shown, the data transmission device specifically includes: a source terminal type determination module 901, a first receiving module 902, and a second receiving module 903.
[0101] Among them, the source terminal type determination module is used to obtain the source IP address of the source terminal in the network when it is necessary to receive the data to be received, and determine the source type of the source terminal corresponding to the source IP address based on the pre-stored IP addresses of each terminal in the network and the types of the corresponding terminals;
[0102] A first receiving module is configured to receive the data to be received via a communication link connected to the DANP submodule if the source type is a PRP terminal;
[0103] The second receiving module is configured to receive the data to be received through the communication link connected to the sending unit if the source type is a TSN terminal.
[0104] Example 5
[0105] The fifth embodiment of the present application further provides a storage medium containing computer-executable instructions. When the computer-executable instructions are executed by a computer processor, they are used to perform a data transmission method. The method includes:
[0106] When it is necessary to send data to be sent, obtain the destination IP address of the target terminal in the network, and determine the target type of the target terminal corresponding to the destination IP address based on the pre-stored IP addresses of each terminal in the network and the types of the corresponding terminals;
[0107] If the target type is a PRP terminal, the data to be sent is sent through the communication link connected to the two-in-one submodule;
[0108] If the target type is a TSN terminal, the data to be sent is sent through the communication link connected to the receiving unit.
[0109] Alternatively, when it is necessary to receive the data to be received, the source IP address of the source terminal in the network is obtained, and the source type of the source terminal corresponding to the source IP address is determined based on the pre-stored IP addresses of the terminals in the network and the types of the corresponding terminals;
[0110] If the source type is a PRP terminal, the data to be received is received through the communication link connected to the DANP submodule;
[0111] If the source type is a TSN terminal, the data to be received is received through the communication link connected to the sending unit.
[0112] Of course, the storage medium containing computer-executable instructions provided in the embodiment of the present application, whose computer-executable instructions are not limited to the above method operations, can also execute related operations in the data transmission method provided in any embodiment of the present application.
[0113] Through the above description of the implementation methods, those skilled in the art can clearly understand that the present application can be implemented with the help of software and necessary general-purpose hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer's floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0114] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.
[0115] Note that the above are only preferred embodiments of the present application and the technical principles employed. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present application. The scope of the present application is determined by the scope of the appended claims.
Claims
1. A dual-connected PRP node, characterized in that: include: Judgment logic submodule, two-in-one submodule and DANP submodule; The judgment logic submodule is provided with a sending unit and a receiving unit, the sending unit being connected to the receiving unit and the two-in-one submodule respectively, and being used to determine whether to send the data to be sent through the communication link connected to the receiving unit or through the communication link connected to the two-in-one submodule according to the destination IP address; The receiving unit is connected to the sending unit and the DANP submodule respectively, and is used to determine whether to receive the data to be received through the communication link connected to the sending unit or through the communication link connected to the DANP submodule according to the source IP address; when it is necessary to receive the data to be received, the receiving unit obtains the source IP address of the source terminal in the network, and determines the source type of the source terminal corresponding to the source IP address based on the pre-stored IP addresses of each terminal in the network and the type of the corresponding terminal; if the source type is a PRP terminal, the data to be received is received through the communication link connected to the DANP submodule; if the source type is a TSN terminal, the data to be received is received through the communication link connected to the sending unit; The two-in-one submodule is connected to the DANP submodule and is used to merge the data to be sent into one path of data or copy the data received by the DANP submodule into two paths of data; The DANP submodule is used to copy the data of one channel and send them to the optical network and the power grid respectively, or to merge the data of the optical network and the power grid to obtain the received data.
2. A data transmission device, characterized in that: The data transmission device includes the dual-connection PRP node according to claim 1 and a TSN electrical switching board and a TSN optical switching board.
3. A data transmission method, characterized in that: The method is applied to the dual-connected PRP node according to claim 1, and the method includes: When it is necessary to send data to be sent, obtain the destination IP address of the target terminal in the network, and determine the target type of the target terminal corresponding to the destination IP address based on the pre-stored IP addresses of the terminals in the network and the types of the corresponding terminals; If the target type is a PRP terminal, the data to be sent is sent via the communication link connected to the two-in-one submodule; If the target type is a TSN terminal, the data to be sent is sent via a communication link connected to the receiving unit.
4. The method according to claim 3, characterized in that The data to be sent includes two channels of Ethernet data: first Ethernet data and second Ethernet data; The sending of the data to be sent through the communication link connected to the two-in-one sub-module includes: Merging the first Ethernet data and the second Ethernet data, and copying the merged data into first PRP data and second PRP data; The first PRP data is sent to the PRP terminal through a first preset network, and the second PRP data is sent to the PRP terminal through a second preset network.
5. The method according to claim 4, characterized in that The merging of the first Ethernet data and the second Ethernet data includes: Merging the data body of the first Ethernet data, the data body of the second Ethernet data, the Mac address and IP address corresponding to the first Ethernet data, and the Mac address and IP address corresponding to the second Ethernet data to obtain merged data; The merged data includes the merged data body, the merged Mac address and the merged IP address.
6. A data transmission method, characterized in that: The method is applied to the dual-connected PRP node according to claim 1, and the method includes: When receiving data to be received, obtaining a source IP address of a source terminal in the network, and determining a source type of the source terminal corresponding to the source IP address based on pre-stored IP addresses of terminals in the network and types of corresponding terminals; If the source type is a PRP terminal, receiving the to-be-received data via a communication link connected to the DANP submodule; If the source type is a TSN terminal, the to-be-received data is received via a communication link connected to the sending unit.
7. The method according to claim 6, characterized in that The data to be received includes third PRP data and fourth PRP data; The receiving the data to be received by connecting the communication link of the DANP submodule includes: Combining the third PRP data and the fourth PRP data into one channel of Ethernet data to be received; The Ethernet data to be received is copied to obtain received two-way Ethernet data.
8. The method according to claim 7, characterized in that The step of copying the to-be-received Ethernet data to obtain received two-way Ethernet data includes: copying the data body of the to-be-received Ethernet data into the data body of the third Ethernet data and the data body of the fourth Ethernet data; Determine the Mac address of the preset electrical port network card as the Mac address of the receiving network card for the third Ethernet data, and determine the Mac address of the preset optical port network card as the Mac address of the receiving network card for the fourth Ethernet data; The IP address of the preset electrical port network card is determined as the IP address of the receiving network card for the third Ethernet data, and the IP address of the preset optical port network card is determined as the IP address of the receiving network card for the fourth Ethernet data.
9. A data transmission device, characterized in that: The device is applied to the dual-connected PRP node according to claim 1, and the device includes: a target terminal type determination module, configured to, when it is necessary to send data to be sent, obtain a destination IP address of the target terminal in the network, and determine a target type of the target terminal corresponding to the destination IP address based on pre-stored IP addresses of various terminals in the network and types of corresponding terminals; A first sending module, configured to send the data to be sent via a communication link connected to the two-in-one submodule if the target type is a PRP terminal; The second sending module is used to send the data to be sent through the communication link connected to the receiving unit if the target type is a TSN terminal.
10. A data transmission device, characterized in that: The device is applied to the dual-connected PRP node according to claim 1, and the device includes: a source terminal type determination module, configured to, when receiving data to be received, obtain a source IP address of a source terminal in the network, and determine the source type of the source terminal corresponding to the source IP address based on pre-stored IP addresses of terminals in the network and the types of corresponding terminals; A first receiving module is configured to receive the data to be received via a communication link connected to the DANP submodule if the source type is a PRP terminal; The second receiving module is configured to receive the data to be received via a communication link connected to the sending unit if the source type is a TSN terminal.
Citation Information
Patent Citations
Transformer substation message data interactive method, device and system
CN106850119A
Receiving frames at redundant port connecting node to communications network
CN109314655A