WO2019174390A1 - 基于工业以太网的数据传输系统、方法和通信设备 - Google Patents

基于工业以太网的数据传输系统、方法和通信设备 Download PDF

Info

Publication number
WO2019174390A1
WO2019174390A1 PCT/CN2019/071288 CN2019071288W WO2019174390A1 WO 2019174390 A1 WO2019174390 A1 WO 2019174390A1 CN 2019071288 W CN2019071288 W CN 2019071288W WO 2019174390 A1 WO2019174390 A1 WO 2019174390A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
terminal
receiving
receiving terminal
sequence code
Prior art date
Application number
PCT/CN2019/071288
Other languages
English (en)
French (fr)
Inventor
黄廉真
Original Assignee
固高科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 固高科技(深圳)有限公司 filed Critical 固高科技(深圳)有限公司
Priority to DE112019000746.7T priority Critical patent/DE112019000746T5/de
Publication of WO2019174390A1 publication Critical patent/WO2019174390A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/14Multichannel or multilink protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection

Definitions

  • the present application relates to an industrial Ethernet based data transmission system, method and communication device.
  • Ethernet With the continuous development of communication technologies, the use of Ethernet to build redundant networks is increasingly used in industrial scenarios.
  • the communication requirements for industrial application Ethernet are higher to meet the needs of industrial applications.
  • the existing industrial Ethernet mostly adopts the traditional redundant network, and the switches need to be connected end to end through the link to form a redundant ring network.
  • This type of network data transmission supports data retransmission and adds link redundancy.
  • link redundancy When a link fails, data retransmission requires data retransmission, and the transmission delay is relatively large. Adding link redundancy requires recalculating the data transfer path and retransmitting the data.
  • the inventor realized that the conventional data transmission method cannot communicate normally during the period of the link update when the link is faulty, and the data may be delayed or lost, thereby resulting in low reliability of data transmission. Therefore, how to effectively improve the reliability of data transmission has become a technical problem that needs to be solved at present.
  • an industrial Ethernet based data transmission system, method, and communication device are provided.
  • a data transmission system based on Industrial Ethernet includes:
  • a transmitting terminal configured to acquire a data packet; the first port of the sending terminal sends the data packet forward to the receiving terminal according to the Ethernet link, and the second port of the sending terminal passes the reverse Ethernet link through at least one middle Transmitting, by the terminal, the data packet to the receiving terminal;
  • An intermediate terminal configured to receive a data packet sent by the sending terminal, and forward the data packet to an adjacent intermediate terminal and/or a receiving terminal on the Ethernet link;
  • a receiving terminal configured to receive a data packet sent by the sending terminal and/or the intermediate terminal adjacent to the receiving terminal, and when the link between the sending end and the receiving end fails, the receiving is sent by using the sending
  • the second port of the terminal passes the data packet sent by the reverse Ethernet link through the at least one intermediate terminal.
  • a method of data transmission based on industrial Ethernet includes:
  • the sending terminal acquires a data packet
  • the second port of the transmitting terminal passes the reverse Ethernet link through the at least one intermediate terminal, and the data packet is forwarded through the intermediate terminal to the The receiving terminal.
  • a method of data transmission based on industrial Ethernet includes:
  • the link between the transmitting end and the receiving end fails, the data packet that is forwarded through the intermediate terminal by the second port of the transmitting terminal and the reverse Ethernet link through the at least one intermediate terminal is received.
  • a communication device comprising a memory and one or more processors, the memory storing computer readable instructions that, when executed by the processor, cause the one or more processors to execute The following steps: the sending terminal acquires the data packet; the first port of the sending terminal sends the data packet forward to the receiving terminal according to the Ethernet link; and the second port of the sending terminal passes the reverse Ethernet link through at least one middle And the terminal forwards the data packet to the receiving terminal by using the intermediate terminal; when the link between the sending end and the receiving end fails, continuing to execute the second port of the sending terminal according to the second port The reverse Ethernet link passes through at least one intermediate terminal, and the intermediate terminal forwards the data packet to the receiving terminal.
  • a communication device comprising a memory and one or more processors, the memory storing computer readable instructions that, when executed by the processor, cause the one or more processors to execute The following steps: the receiving terminal receives a data packet that is forwardly transmitted to the receiving terminal according to the Ethernet link through the first port of the transmitting terminal, and receives data sent by the second port of the transmitting terminal according to the reverse Ethernet link through the at least one intermediate terminal. a packet; when a link between the transmitting end and the receiving end fails, receiving a data packet sent by the second port of the transmitting terminal according to the reverse Ethernet link through the at least one intermediate terminal.
  • One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of: transmitting a terminal to acquire a data packet; The first port of the transmitting terminal forwards the data packet to the receiving terminal according to the Ethernet link; and the second port of the transmitting terminal passes the reverse Ethernet link through the at least one intermediate terminal, and the intermediate terminal Transmitting the data packet to the receiving terminal; when the link between the transmitting end and the receiving end fails, continuing to perform the second port passing through the transmitting terminal according to the reverse Ethernet link passing through at least one intermediate terminal And the step of forwarding, by the intermediate terminal, the data packet to the receiving terminal.
  • One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the steps of: receiving a receiving terminal through a transmitting terminal a data packet forwarded by the first port to the receiving terminal according to the Ethernet link; a data packet sent by the second port of the transmitting terminal according to the reverse Ethernet link through the at least one intermediate terminal; when the transmitting end and the When the link between the receiving ends fails, the data packet sent by the second port of the transmitting terminal through the reverse Ethernet link through the at least one intermediate terminal is received.
  • FIG. 1 is an application scenario diagram of an industrial Ethernet based data transmission method in accordance with one or more embodiments.
  • FIG. 2 is a block diagram showing the structure of a data transmission system in a conventional industrial Ethernet according to one or more embodiments.
  • FIG. 3 is a block diagram showing the structure of an industrial Ethernet based data transmission system in accordance with one or more embodiments.
  • FIG. 4 is a flow diagram of a method of data transmission based on Industrial Ethernet in accordance with one or more embodiments.
  • FIG. 5 is a schematic flow chart of a method for transmitting data based on Industrial Ethernet in another embodiment.
  • FIG. 6 is a block diagram of a communication device in accordance with one or more embodiments.
  • the industrial Ethernet-based data transmission system provided by the present application can be applied to an application environment as shown in FIG. 1.
  • the transmitting terminal 102 forms a dual-link redundant ring network with the receiving terminal 104 and the intermediate terminal 106 by two parallel links.
  • the transmitting terminal 102, the receiving terminal 104, and the intermediate terminal 106 may be, but are not limited to, network type industrial devices having a switch function, such as various printing devices, motor devices, and controller devices.
  • the solution in this application can form Industrial Ethernet directly through network-type industrial equipment with switch function, without the need for a switch and control center equipment. Moreover, the network type industrial equipment transmits the data in both directions at the same time, and the data can be transmitted to the receiving terminal in time and efficiently even when one of the links fails. Therefore, the solution of the present application can not only effectively improve the reliability of data transmission, but also effectively reduce operation and maintenance costs and resource utilization.
  • an industrial Ethernet based data transmission system including a transmitting terminal 302, a receiving terminal 304 and an intermediate terminal 306, wherein:
  • the sending terminal 302 is configured to acquire a data packet, and send a data packet to the receiving terminal in a forward direction according to the Ethernet port through the first port of the sending terminal, and pass the at least one intermediate terminal according to the reverse Ethernet link through the second port of the sending terminal. Send a packet to the receiving terminal.
  • the intermediate terminal 306 is configured to receive a data packet sent by the sending terminal, and forward the data packet to an adjacent intermediate terminal and/or a receiving terminal on the Ethernet link.
  • the receiving terminal 304 is configured to receive a data packet sent by the sending terminal and/or the intermediate terminal adjacent to the receiving terminal, and when the link between the sending terminal and the receiving terminal fails, receiving the second port through the sending terminal according to the reverse direction A packet transmitted by an Ethernet link through at least one intermediate terminal.
  • Industrial Ethernet is a mainstream technology in the field of commercial computer communication such as Ethernet, TCP/IP (Transmission Control Protocol/Internet Protocol), and is directly applied to communication between industrial control field devices.
  • An open network communication platform for communication between industrial field devices is established for the office field as well as production and process automation.
  • the transmitting terminal and the intermediate terminal and the receiving terminal are connected by two links in parallel to form a dual-link redundant ring network.
  • Each terminal has a switch function, and each terminal includes a first port and a second port, and the first port and the second port of two adjacent terminals establish a connection through an Ethernet to form a bidirectional link.
  • the transmitting terminal can send data to the corresponding receiving terminal in two directions through the redundant ring network.
  • multiple terminals can also establish multiple bidirectional links through Ethernet, and multiple terminals can simultaneously transmit data in both directions.
  • the transmitting terminal is one of the terminals in the redundant ring network that needs to send data, and the target device that receives the data is the receiving terminal.
  • the transmitting terminal and the receiving terminal are both intermediate terminals. There may be multiple intermediate terminals, and the sending terminal, the intermediate terminal, and the receiving terminal may be the same terminal device or different terminal devices.
  • the transmitting terminal obtains the data packet to be transmitted, and the data packet to be transmitted may be a data packet of the transmitting terminal itself, or may be a data packet sent by another device.
  • the first port of the sending terminal sends a data packet to the receiving terminal according to the Ethernet link, and sends the data to the receiving terminal through the second port according to the reverse Ethernet link through the at least one intermediate terminal. package.
  • the transmitting terminal may transmit the data packet in the forward direction of the "transmitting terminal ⁇ receiving terminal", and directly transmit the data packet to the receiving terminal.
  • the transmitting terminal can also perform reverse transmission according to "sending terminal ⁇ intermediate terminal B ⁇ intermediate terminal A ⁇ receiving terminal”, and after transmitting the data packet to the intermediate terminal B, the intermediate terminal B forwards it to the intermediate terminal A, and then the intermediate terminal A Forward the packet to the receiving terminal.
  • the transmitting terminal can effectively transmit the data packet through the bidirectional transmission, and the receiving terminal can also effectively receive the data packet transmitted by the transmitting terminal in real time.
  • the intermediate terminal After receiving the data packet sent by the sending terminal, the intermediate terminal verifies the target address identifier of the data packet transmission. Specifically, an address identifier may be included in the data packet.
  • the address identifier can be a MAC address (Media Access Control).
  • the intermediate terminal verifies whether the address identifier of the data packet matches the address identifier of the intermediate terminal itself. When the address identifier of the data packet does not match the address identifier of the intermediate terminal, if the verification passes, the data packet is forwarded to the adjacent intermediate terminal and/or the receiving terminal on the Ethernet link in the original direction.
  • the Industrial Ethernet based data transmission system may also have no intermediate terminals.
  • the transmitting terminal still sends a data packet to the receiving terminal according to the Ethernet link through the first port of the transmitting terminal, and simultaneously reverses the Ethernet through the second port.
  • the network link sends a data packet to the receiving terminal.
  • the transmitting terminal can still send a data packet to the receiving terminal according to the reverse Ethernet link through the second port. Therefore, even if there is a link failure between the transmitting terminal and the receiving terminal, the receiving terminal can effectively receive the data packet transmitted by the transmitting terminal in real time, thereby effectively ensuring the reliability of data transmission.
  • the receiving terminal may directly receive the data packet that the transmitting terminal sends in the forward direction of the Ethernet link through the first port, and may also receive the transmitting terminal to forward the intermediate terminal through the reversed Ethernet link through the second port through at least one intermediate terminal. data pack.
  • the receiving terminal can still receive the data packet forwarded by the sending terminal by the intermediate terminal through the second port through the reverse Ethernet link through the at least one intermediate terminal.
  • the receiving terminal may receive the data packet forwarded by the transmitting terminal according to the “transmitting terminal ⁇ receiving terminal” and the transmitting terminal according to “sending terminal ⁇ intermediate terminal”.
  • B intermediate terminal
  • A receiving terminal “reversely transmitted data packet. If the link between the transmitting terminal and the receiving terminal fails, the receiving terminal can still receive the data packet reversely transmitted by the transmitting terminal according to "sending terminal ⁇ intermediate terminal B ⁇ intermediate terminal A ⁇ receiving terminal” in real time. Therefore, even if the link between the transmitting terminal and the receiving terminal fails, the receiving terminal can quickly and efficiently receive the data packet transmitted by the transmitting terminal, thereby effectively ensuring the reliability of data transmission.
  • the first port of the transmitting terminal transmits the data packet to the receiving terminal in the forward direction according to the Ethernet link, and the reverse port is performed through the second port of the transmitting terminal.
  • the network link sends a data packet to the receiving terminal via at least one intermediate terminal. Thereby the transmitting terminal can transmit data to the receiving terminal through the bidirectional port.
  • the intermediate terminal forwards the data packet to the adjacent intermediate terminal and/or the receiving terminal on the Ethernet link.
  • the data packet carries a label
  • the receiving terminal is further configured to parse the label of the data packet, and use the parsed label to verify the data packet. When the verification fails, the data packet is sent. Reprocessing.
  • the transmitting terminal After the transmitting terminal acquires the data packet to be transmitted, the data packet is tagged.
  • the first port of the sending terminal sends a data packet to the receiving terminal according to the Ethernet link, and sends the data to the receiving terminal through the second port according to the reverse Ethernet link through the at least one intermediate terminal. package.
  • the receiving terminal After receiving the data packet, the receiving terminal parses the label carried in the data packet, and performs repetitive verification on the parsed label. When the receiving terminal does not receive the duplicate label, it indicates that the receiving terminal only receives one copy of the data packet, indicating that the verification passes, and performs the next processing on the received data packet. Further, when the receiving terminal receives the duplicate label, indicating that the receiving terminal receives two duplicate data packets, it indicates that the verification fails.
  • the receiving terminal may directly discard the data packet received later.
  • the receiving terminal performs the verification and deduplication processing on the received data, thereby not only effectively ensuring the reliability of the data transmission, but also effectively reducing the storage space of the receiving terminal.
  • the label of the data packet includes an address identifier and a sequence code
  • the intermediate terminal is further configured to verify the address identifier in the label of the data packet, and when the address identifier does not match the address identifier of the intermediate terminal, the data is The packet is forwarded to the adjacent intermediate terminal and/or the receiving terminal on the Ethernet link; the receiving terminal is further configured to parse the address identifier and the sequence code of the data packet according to the label of the data packet; when the address identifier of the data packet is related to the receiving terminal When the address identifiers match, the sequence code is stored in the cache list; whether the same sequence code is found in the cache list, and when the same sequence code does not exist in the cache list, the data in the data packet is processed; when the cache list is in the cache list When the same sequence code exists, the data packet corresponding to the sequence code is deleted.
  • the transmitting terminal, the receiving terminal, and the intermediate terminal on the Ethernet link each have their own address identifier.
  • the address identifier can be the MAC address of each terminal.
  • the data packet is tagged.
  • the tag of the data packet includes an address identifier corresponding to the target receiving terminal, and is used for identifying the receiving terminal of the data packet transmission.
  • the label of the data packet further includes a sequence code for verifying whether the received data packet is received after the receiving terminal receives the data packet.
  • the transmitting terminal sends a data packet to the receiving terminal in the forward direction according to the Ethernet link through the first port, and simultaneously sends the data packet to the receiving terminal through the second port according to the reverse Ethernet link through the at least one intermediate terminal.
  • the intermediate terminal After receiving the data packet, the intermediate terminal parses the label of the data packet. After the address identifier is parsed, the address representation is verified to verify whether the address identifier in the packet label matches the address identifier of the intermediate terminal itself. When the address identifier in the data packet label does not match the address identifier of the intermediate terminal itself, it indicates that the transmission end point of the data packet is not the intermediate terminal. Therefore, the intermediate terminal forwards the data packet in the original transmission direction and forwards it to the next adjacent intermediate terminal or receiving terminal on the Ethernet link. When the next intermediate terminal receives the data packet, the address identifier in the data packet is still verified. When the address identifier in the data packet label does not match the address identifier of the intermediate terminal itself, the data packet is continued to be original. The transmission direction is forwarded until it is transmitted to the receiving terminal.
  • the receiving terminal parses the label of the data packet. Thereby, the address identifier and the sequence code of the data packet can be parsed.
  • the receiving terminal first determines whether the address identifier of the data packet matches the address identifier of the receiving terminal itself. When the address identifier of the data packet matches the address identifier of the receiving terminal, it indicates that the receiving terminal is the transmission destination of the data packet. At the same time, the receiving terminal stores the sequence code of the data packet in the cache list, and determines whether the same sequence code exists in the cache list. When the same sequence code does not exist in the cache list, it indicates that the receiving terminal has not received the data packet before, and the receiving terminal immediately processes the data in the data packet.
  • the receiving terminal when the same sequence code already exists in the cache list, it indicates that the receiving terminal has received the data packet before, and the receiving terminal deletes the data packet corresponding to the sequence code.
  • the receiving terminal performs deduplication processing on the received duplicate data packet, thereby effectively reducing the storage space of the receiving terminal, thereby effectively ensuring the reliability of data transmission.
  • an industrial Ethernet based data transmission method including the following steps:
  • Step 402 The sending terminal acquires a data packet.
  • Step 404 Send a data packet to the receiving terminal in a forward direction according to the Ethernet link through the first port of the sending terminal.
  • Step 406 At the same time, the second port of the transmitting terminal forwards the data packet to the receiving terminal through the intermediate terminal according to the reverse Ethernet link through the at least one intermediate terminal.
  • Step 408 When the link between the sending terminal and the receiving terminal fails, the second port of the sending terminal passes the reverse Ethernet link through the at least one intermediate terminal, and the data packet is forwarded to the receiving terminal through the intermediate terminal.
  • the transmitting terminal obtains the data packet to be transmitted, and the data packet to be transmitted may be a data packet of the transmitting terminal itself, or may be a data packet sent by another device.
  • the first port of the sending terminal sends a data packet to the receiving terminal according to the Ethernet link, and the second port passes the reverse Ethernet link through the at least one intermediate terminal, and the intermediate terminal passes the intermediate terminal.
  • the packet is forwarded to the receiving terminal.
  • the transmitting terminal may transmit the data packet in the forward direction of the "transmitting terminal ⁇ receiving terminal", and directly transmit the data packet to the receiving terminal.
  • the transmitting terminal can also perform reverse transmission according to "sending terminal ⁇ intermediate terminal B ⁇ intermediate terminal A ⁇ receiving terminal", and after transmitting the data packet to the intermediate terminal B, the intermediate terminal B forwards it to the intermediate terminal A, and then passes through the intermediate terminal A. Forward the packet to the receiving terminal.
  • the transmitting terminal can effectively transmit the data packet through the bidirectional transmission, and the receiving terminal can also effectively receive the data packet transmitted by the transmitting terminal in real time.
  • the intermediate terminal After receiving the data packet sent by the sending terminal, the intermediate terminal verifies the specified address identifier of the data packet. The intermediate terminal identifies whether it is the address identifier of the intermediate terminal by verifying that the specified address of the data packet. When the specified address identifier of the data packet is not the address identifier of the intermediate terminal, if the verification passes, the data packet is forwarded to the adjacent intermediate terminal and/or the receiving terminal on the Ethernet link in the original direction.
  • the receiving terminal may directly receive the data packet that the sending terminal sends in the forward direction of the Ethernet link through the first port, and may also receive the sending terminal through the second port according to the reverse Ethernet link through the at least one intermediate terminal, by the middle The packet forwarded by the terminal.
  • the receiving terminal can still receive the data packet forwarded by the sending terminal by the intermediate terminal through the second port through the reverse Ethernet link through the at least one intermediate terminal.
  • the receiving terminal may receive the data packet forwarded by the transmitting terminal according to the “transmitting terminal ⁇ receiving terminal” and the transmitting terminal according to “sending terminal ⁇ intermediate terminal”.
  • B intermediate terminal
  • A receiving terminal “reversely transmitted data packet. If the link between the transmitting terminal and the receiving terminal fails, the receiving terminal can still receive the data packet reversely transmitted by the transmitting terminal according to "sending terminal ⁇ intermediate terminal B ⁇ intermediate terminal A ⁇ receiving terminal” in real time. Therefore, even if the link between the transmitting terminal and the receiving terminal fails, the receiving terminal can quickly and efficiently receive the data packet transmitted by the transmitting terminal, thereby effectively ensuring the reliability of data transmission.
  • the transmitting port forwards the data packet to the receiving terminal according to the Ethernet link through the first port of the transmitting terminal.
  • the second port of the transmitting terminal passes the reverse Ethernet link through the at least one intermediate terminal, and the data packet is forwarded to the receiving terminal through the intermediate terminal. Therefore, the transmitting terminal can simultaneously transmit the data packet in both directions, thereby effectively improving the reliability of data transmission.
  • the step of forwarding the data packet to the receiving terminal through the intermediate terminal through the reverse Ethernet link through the at least one intermediate terminal through the second port of the transmitting terminal is continued. Therefore, even when the link between the transmitting terminal and the receiving terminal fails, the receiving terminal can efficiently receive the data transmitted by the transmitting terminal in real time, thereby effectively ensuring the reliability of data transmission.
  • the method further includes: adding a corresponding label to the data packet; adding a sequence code to the data packet according to the label; the serial code is used by the receiving terminal to verify the received data packet, when the verification fails , de-duplication of the data packet.
  • a corresponding label is added to the data packet, and a serial code is added to the data packet according to the label.
  • the sequence code may be generated according to a preset manner, and the sequence code corresponding to each data packet is different.
  • the sending terminal adds the sequence code to the data packet
  • the first port of the sending terminal sends a data packet to the receiving terminal according to the Ethernet link, and the second port passes the reverse Ethernet link through the at least one intermediate terminal.
  • the data packet is forwarded to the receiving terminal through the intermediate terminal.
  • the receiving terminal After receiving the data packet, the receiving terminal parses the label carried in the data packet, and parses out the sequence code corresponding to the data packet.
  • the sequence code is used by the receiving terminal to verify the received data packet, and when the verification fails, the data packet is de-duplicated. Specifically, the receiving terminal stores the sequence code of the data packet in the cache list, and determines whether the same sequence code exists in the cache list. When the same sequence code does not exist in the cache list, it indicates that the receiving terminal has not received the data packet before, and the receiving terminal immediately processes the data in the data packet. Further, when the same sequence code already exists in the cache list, it indicates that the receiving terminal has received the data packet before, and the receiving terminal deletes the data packet corresponding to the sequence code.
  • the receiving terminal performs deduplication processing on the received duplicate data packet, thereby effectively reducing the storage space of the receiving terminal, thereby effectively ensuring the reliability of data transmission.
  • an industrial Ethernet based data transmission method including the following steps:
  • Step 502 The receiving terminal receives a data packet that is forwarded to the receiving terminal according to the Ethernet link by using the first port of the sending terminal.
  • Step 504 Receive a data packet that is forwarded through the intermediate terminal by the second port of the sending terminal according to the reverse Ethernet link through the at least one intermediate terminal.
  • Step 506 When the link between the transmitting end and the receiving end fails, the data packet that is forwarded through the intermediate terminal by the second port of the sending terminal according to the reverse Ethernet link through the at least one intermediate terminal is received.
  • the first port of the transmitting terminal After the transmitting terminal obtains the data packet to be transmitted, the first port of the transmitting terminal sends a data packet to the receiving terminal in the forward direction according to the Ethernet link, and passes through the second port through the reverse Ethernet link through at least one intermediate terminal.
  • the intermediate terminal forwards the data packet to the receiving terminal.
  • the intermediate terminal After receiving the data packet sent by the sending terminal, the intermediate terminal verifies the specified address identifier of the data packet. The intermediate terminal identifies whether the location identifier of the intermediate terminal is by verifying that the specified address of the data packet. When the specified address identifier of the data packet is not the address identifier of the intermediate terminal, if the verification is passed, the data packet is forwarded in the original direction to the adjacent intermediate terminal and/or the receiving terminal on the Ethernet link.
  • the receiving terminal may directly receive the data packet that the transmitting terminal sends in the forward direction of the Ethernet link through the first port, and may also receive the transmitting terminal to forward the intermediate terminal through the reversed Ethernet link through the second port through at least one intermediate terminal. data pack.
  • the receiving terminal can still receive the data packet forwarded by the sending terminal by the intermediate terminal through the second port through the reverse Ethernet link through the at least one intermediate terminal.
  • the receiving terminal may receive the data packet forwarded by the transmitting terminal according to the “transmitting terminal ⁇ receiving terminal” and the transmitting terminal according to “sending terminal ⁇ intermediate terminal”.
  • B intermediate terminal
  • A receiving terminal “reversely transmitted data packet. If the link between the transmitting terminal and the receiving terminal fails, the receiving terminal can still receive the data packet reversely transmitted by the transmitting terminal according to "sending terminal ⁇ intermediate terminal B ⁇ intermediate terminal A ⁇ receiving terminal” in real time. Therefore, even if the link between the transmitting terminal and the receiving terminal fails, the receiving terminal can quickly and efficiently receive the data packet transmitted by the transmitting terminal, thereby effectively ensuring the reliability of data transmission.
  • the receiving terminal receives a data packet forwarded to the receiving terminal according to the Ethernet link through the first port of the transmitting terminal, and receives the second port through the transmitting terminal according to the reverse Ethernet chain.
  • a data packet that is forwarded through the intermediate terminal through at least one intermediate terminal is received. Therefore, even when the link between the transmitting end and the receiving end fails, the receiving terminal can efficiently receive the data transmitted by the transmitting terminal in real time, thereby effectively ensuring the reliability of data transmission.
  • the method further includes: parsing the label of the data packet; verifying the data packet by using the parsed label; and performing deduplication processing on the data packet when the verification fails.
  • the transmitting terminal After the transmitting terminal acquires the data packet to be transmitted, the data packet is tagged.
  • the first port of the sending terminal sends a data packet to the receiving terminal according to the Ethernet link, and sends the data to the receiving terminal through the second port according to the reverse Ethernet link through the at least one intermediate terminal. package.
  • the receiving terminal After receiving the data packet, the receiving terminal parses the label carried in the data packet, and performs repetitive verification on the parsed label. When the receiving terminal does not receive the duplicate label, it indicates that the receiving terminal only receives one copy of the data packet, indicating that the verification is passed, and performing the next processing on the received data packet. Further, when the receiving terminal receives the duplicate label, indicating that the receiving terminal receives two duplicate data packets, it indicates that the verification fails.
  • the receiving terminal may directly discard the data packet received later.
  • the receiving terminal performs the verification and de-duplication processing on the received data, thereby not only effectively ensuring the reliability of the data transmission, but also effectively reducing the storage space of the receiving terminal.
  • the step of verifying the data packet by using the parsed label comprises: parsing the address identifier and the sequence code of the data packet according to the label of the data packet; and when the address identifier of the data packet is opposite to the address identifier of the receiving terminal When matching, the sequence code is stored in the cache list. Determine whether the same sequence code exists in the cache list. When the same sequence code does not exist in the cache list, the data in the data packet is processed; when the same sequence code exists in the cache list, the data packet corresponding to the sequence code is deleted. .
  • the transmitting terminal After the transmitting terminal acquires the data packet to be transmitted, the data packet is tagged.
  • the tag of the data packet includes an address identifier corresponding to the target receiving terminal, and is used for identifying the receiving terminal of the data packet transmission.
  • the label of the data packet further includes a sequence code for verifying whether the received data packet is received after the receiving terminal receives the data packet. Further, the transmitting terminal sends a data packet to the receiving terminal in the forward direction according to the Ethernet link through the first port, and simultaneously sends the data packet to the receiving terminal through the second port according to the reverse Ethernet link through the at least one intermediate terminal.
  • the receiving terminal After receiving the data packet, the receiving terminal parses the label of the data packet. Thereby, the address identifier and the sequence code of the data packet can be parsed.
  • the receiving terminal first determines whether the address identifier of the data packet matches the address identifier of the receiving terminal itself. When the address identifier of the data packet matches the address identifier of the receiving terminal, it indicates that the receiving terminal is the transmission destination of the data packet. At the same time, the receiving terminal stores the sequence code of the data packet in the cache list, and determines whether the same sequence code exists in the cache list. When the same sequence code does not exist in the cache list, it indicates that the receiving terminal has not received the data packet before, and the receiving terminal immediately processes the data in the data packet.
  • the receiving terminal when the same sequence code already exists in the cache list, it indicates that the receiving terminal has received the data packet before, and the receiving terminal deletes the data packet corresponding to the sequence code.
  • the receiving terminal performs deduplication processing on the received duplicate data packet, thereby effectively reducing the storage space of the receiving terminal, thereby effectively ensuring the reliability of data transmission.
  • a communication device which may be a terminal, and its internal structure diagram may be as shown in FIG. 6.
  • the communication device includes a processor, a memory, and a network interface connected by a system bus.
  • the processor of the communication device is used to provide computing and control capabilities.
  • the memory of the communication device includes a non-volatile storage medium, an internal memory.
  • the non-volatile storage medium stores operating system computer readable instructions and a database.
  • the internal memory provides an environment for operation of an operating system and computer readable instructions in a non-volatile storage medium.
  • the network interface of the communication device is used to communicate with an external terminal through a network connection.
  • the computer readable instructions are executed by the processor to implement an industrial Ethernet based data transmission method.
  • FIG. 6 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the communication device to which the solution of the present application is applied.
  • the specific communication device may be It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • a communication device includes a memory and a processor having stored therein computer readable instructions that, when executed by the processor, implement the following steps:
  • the sending terminal acquires a data packet
  • the step of forwarding the data packet to the receiving terminal through the intermediate terminal through the reverse Ethernet link through the at least one intermediate terminal through the second port of the transmitting terminal is continued.
  • the processor further implements the following steps when executing the computer readable instructions: adding a corresponding tag to the data packet; adding a sequence code to the data packet according to the tag; the serial code is used to receive the received data packet by the terminal Verification is performed, and when the verification fails, the data packet is de-duplicated.
  • a communication device includes a memory and a processor having stored therein computer readable instructions that, when executed by the processor, implement the following steps:
  • the second port that receives the transmitting terminal passes the data packet forwarded by the intermediate terminal according to the reverse Ethernet link through the at least one intermediate terminal.
  • the processor when the processor executes the computer readable instructions, the following steps are further performed: parsing the label of the data packet; verifying the data packet by using the parsed label; and performing the data packet when the verification fails Reprocessing.
  • the processor when executing the computer readable instructions, further implements the steps of: parsing the address identifier and the sequence code of the data packet according to the label of the data packet; and matching the address identifier of the data packet with the address identifier of the receiving terminal Store the sequence code in the cache list. Determine whether the same sequence code exists in the cache list. When the same sequence code does not exist in the cache list, the data in the data packet is processed; when the same sequence code exists in the cache list, the data packet corresponding to the sequence code is deleted. .
  • One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the following steps:
  • the sending terminal acquires a data packet
  • the step of forwarding the data packet to the receiving terminal through the intermediate terminal through the reverse Ethernet link through the at least one intermediate terminal through the second port of the transmitting terminal is continued.
  • the computer program is further executed by the processor to: add a corresponding label to the data packet; add a sequence code to the data packet according to the label; the serial code is used by the receiving terminal to perform the received data packet. Verification, when the verification fails, the data packet is de-duplicated.
  • One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the following steps:
  • the second port that receives the transmitting terminal passes the data packet forwarded by the intermediate terminal according to the reverse Ethernet link through the at least one intermediate terminal.
  • the following steps are further performed: parsing the tags of the data packet; verifying the data packet by using the parsed tag; and performing the data packet when the verification fails Go to heavy processing.
  • the computer readable instructions are further executed by the processor to: parse the address identifier and the sequence code of the data packet according to the label of the data packet; and when the address identifier of the data packet is opposite to the address identifier of the receiving terminal When matching, the sequence code is stored in the cache list. Determine whether the same sequence code exists in the cache list. When the same sequence code does not exist in the cache list, the data in the data packet is processed; when the same sequence code exists in the cache list, the data packet corresponding to the sequence code is deleted. .
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种基于工业以太网的数据传输系统,包括:发送终端,用于获取数据包,通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包,同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端向接收终端发送数据包;中间终端,用于接收发送终端发送的数据包,将数据包转发至以太网链路上的相邻中间终端和/或接收终端;及接收终端,用于接收发送终端和/或与接收终端相邻的中间终端发送的数据包,当发送终端和接收终端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端发送的数据包。

Description

基于工业以太网的数据传输系统、方法和通信设备
本申请要求于2018年03月14日提交中国专利局,申请号为2018102105114,申请名称为“基于工业以太网的数据传输系统、方法和通信设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及一种基于工业以太网的数据传输系统、方法和通信设备。
背景技术
随着通信技术的不断发展,通过以太网构建冗余网络在工业场景中的应用越来越广泛。而针对工业应用以太网的通信要求更高,以满足工业应用的需求。现有的工业以太网大都采用传统的冗余网络,需要交换机之间通过链路首尾相连组成冗余环网。这种网络的数据传输方式支持数据重发和添加链路冗余。当某一链路发生故障时,数据重发需要数据重新传输,传输延迟比较大。添加链路冗余则需要重新计算数据传输路径,并重新传输数据。
然而,发明人意识到,传统的数据传输方式在链路发生故障时,路径更新这段时间内无法正常通信,数据可能会延时或者丢失,进而导致数据传输的可靠性较低。因此,如何有效提高数据传输的可靠性成为目前需要解决的技术问题。
发明内容
根据本申请公开的各种实施例,提供一种基于工业以太网的数据传输系统、方法和通信设备。
一种基于工业以太网的数据传输系统包括:
发送终端,用于获取数据包;通过发送终端的第一端口按照以太网链路向接收终端正向发送所述数据包,同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端向所述接收终端发送所述数据包;
中间终端,用于接收发送终端发送的数据包;将所述数据包转发至所述以太网链路上的相邻中间终端和/或接收终端;及
接收终端,用于接收发送终端和/或与所述接收终端相邻的中间终端发送的数据包,当所述发送端和所述接收端之间的链路发生故障时,接收通过所述发送终端的第二端口按照逆向以太网链路经过至少一个中间终端发送的数据包。
一种基于工业以太网的数据传输方法包括:
发送终端获取数据包;
通过发送终端的第一端口按照以太网链路向接收终端正向发送所述数据包;
同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端;及
当所述发送端和所述接收端之间的链路发生故障时,通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端。
一种基于工业以太网的数据传输方法包括:
接收终端接收通过发送终端的第一端口按照以太网链路向接收终端正向发送的数据包;
接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端转发的数据包;及
当所述发送端和所述接收端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端转发的数据包。
一种通信设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:发送终端获取数据包;通过发送终端的第一端口按照以太网链路向接收终端正向发送所述数据包;同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端;当所述发送端和所述接收端之间的链路发生故障时,继续执行所述通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,所述中间终端将所述数据包转发至所述接收终端的步骤。
一种通信设备,包括存储器和一个或多个处理器,所述存储器中储存有 计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:接收终端接收通过发送终端的第一端口按照以太网链路向接收终端正向发送的数据包;接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端发送的数据包;当所述发送端和所述接收端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端发送的数据包。
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:发送终端获取数据包;通过发送终端的第一端口按照以太网链路向接收终端正向发送所述数据包;同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端;当所述发送端和所述接收端之间的链路发生故障时,继续执行所述通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,所述中间终端将所述数据包转发至所述接收终端的步骤。
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:接收终端接收通过发送终端的第一端口按照以太网链路向接收终端正向发送的数据包;接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端发送的数据包;当所述发送端和所述接收端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端发送的数据包。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为根据一个或多个实施例中基于工业以太网的数据传输方法的应用 场景图。
图2为根据一个或多个实施例中传统工业以太网中数据传输系统的结构框图。
图3为根据一个或多个实施例中基于工业以太网的数据传输系统的结构框图。
图4为根据一个或多个实施例中基于工业以太网的数据传输方法的流程示意图。
图5为另一个实施例中基于工业以太网的数据传输方法的流程示意图。
图6为根据一个或多个实施例中通信设备的框图。
具体实施方式
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供的基于工业以太网的数据传输系统,可以应用于如图1所示的应用环境中。发送终端102与接收终端104以及中间终端106通过并行的两条链路连接组成双链路冗余环网。其中,发送终端102、接收终端104和中间终端106可以但不限于是各种打印设备、电机设备、控制器设备等具有交换机功能的网络型工业设备。
在工业应用中,各种终端设备系统通过工业网络构建成工业以太网。对于工业网络而言,需要数据之间的通信更加快速、实时以及可靠,以适应工业领域的各种需求。而传统的工业以太网连接方式如图2所示,传统的工业以太网冗余网络中必须具备交换机和控制中心设备,常规工业以太网的交换机之间有多条路径可以传输数据,但采用的机制是只沿一个方向传输数据。控制中心设备监测到数据出错时,才校验网络拓扑的连接状况。当发现通信链路发送故障的时候,启动另外一条健全的通信链路,转换到这条新的通信链路进行数据传输。转换新的通信链路这整个过程必然需要时间。在这段时间内会导致数据无法进行正常通信,进而导致数据传输延时或者丢失,很显然通过这种传统传输方式,数据传输的可靠性较低。而本申请中的方案,直接通过具有交换机功能的网络型工业设备就能够组建工业以太网,不需要交 换机和控制中心设备。且网络型工业设备在传输数据时是同时双向进行传输,即使当其中某一条链路发生故障后数据也能够及时有效地传输至接收终端。因此,本申请的方案不仅能够有效地提高数据传输的可靠性,还能够有效减少运维成本和资源利用。
在其中一个实施例中,如图2所示,如图3所示,提供了一种基于工业以太网的数据传输系统,包括发送终端302,接收终端304和中间终端306,其中:
发送终端302,用于获取数据包,通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包,同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端向接收终端发送数据包。
中间终端306,用于接收发送终端发送的数据包,将数据包转发至以太网链路上的相邻中间终端和/或接收终端。
接收终端304,用于接收发送终端和/或与接收终端相邻的中间终端发送的数据包,当发送终端和接收终端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端发送的数据包。
工业以太网是以太网、TCP/IP(Transmission Control Protocol/Internet Protocol,传输控制协议/因特网互联协议)等商用计算机通信领域的主流技术直接应用于工业控制现场设备间的通信,并在此基础上建立的应用于工业现场设备间通信的开放网络通信平台,适用于办公领域以及生产和过程自动化领域。发送终端与中间终端以及接收终端通过并行的两条链路连接组成双链路冗余环网。其中,每个终端都具有交换机功能,每个终端包括第一端口和第二端口,相邻两个终端的第一端口和第二端口通过以太网建立连接形成双向链路。发送终端可以通过冗余环网向对应的接收终端双向发送数据。进一步地,多个终端还可以通过以太网建立多条双向链路,多个终端还可以同时双向传输数据。其中,发送终端为冗余环网中需要将数据发送出去的其中一个终端,对应接收数据的目标设备为接收终端,在冗余环网中发送终端与接收终端之间的都为中间终端。其中,中间终端可以有多个,发送终端、中间终端和接收终端可以是相同的终端设备,也可以是不同的终端设备。
发送终端获取待传输的数据包,待传输的数据包可以是发送终端本身的数据包,也可以是其他设备发送的数据包。发送终端获取数据包后,通过发 送终端的第一端口按照以太网链路向接收终端正向发送数据包,同时通过第二端口按照逆向的以太网链路经过至少一个中间终端向接收终端发送数据包。
例如,如图3中所示,发送终端可以将数据包按照“发送终端→接收终端”正向进行传输,直接将数据包发送至接收终端。发送终端同时还可以按照“发送终端→中间终端B→中间终端A→接收终端”逆向进行传输,将数据包发送至中间终端B后,由中间终端B转发至中间终端A,再由中间终端A将数据包转发给接收终端。由此发送终端能够通过双向传输有效地将数据包传输出去,接收终端也能够实时有效地接收到发送终端发送的数据包。
中间终端接收到发送终端发送的数据包后,对该数据包传输的目标地址标识进行验证。具体地,数据包中可以包括地址标识。例如,地址标识可以为MAC地址(Media Access Control,硬件地址)。中间终端通过验证该数据包的地址标识是否与中间终端自身的地址标识相匹配。当数据包的地址标识与中间终端的地址标识不相匹配时,验证通过,则将该数据包按照原始方向转发至以太网链路上的相邻中间终端和/或接收终端。
在另一个实施例中,基于工业以太网的数据传输系统还可以没有中间终端。当该系统中只有发送终端和接收终端时,发送终端获取数据包后,仍然通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包,同时通过第二端口按照逆向的以太网链路向接收终端发送数据包。当发送终端和接收终端之间的其中一条链路发生故障时,发送终端仍然可以通过第二端口按照逆向的以太网链路向接收终端发送数据包。因此,即使发送终端和接收终端之间有链路发生故障后,接收终端也能够实时有效地接收到发送终端传输的数据包,进而有效地保证了数据传输的可靠性。
接收终端可以直接接收发送终端通过第一端口按照以太网链路正向发送的数据包,还可以接收发送终端通过第二端口按照逆向的以太网链路经过至少一个中间终端,由中间终端转发的数据包。当发送终端和接收终端之间的链路发生故障时,接收终端仍然可以接收到发送终端通过第二端口按照逆向的以太网链路经过至少一个中间终端,由中间终端转发的数据包。
例如,如图3中所示,在以太网链路正常的情况下,接收终端可以接收到发送终端按照“发送终端→接收终端”正向传输的数据包和发送终端按照 “发送终端→中间终端B→中间终端A→接收终端”逆向传输的数据包。假如当发送终端和接收终端之间的链路发生故障时,接收终端仍然能够实时接收到发送终端按照“发送终端→中间终端B→中间终端A→接收终端”逆向传输的数据包。因此,即使发送终端和接收终端之间的链路发生故障后,接收终端也能够快速有效地接收到发送终端传输的数据包,从而有效地保证了数据传输的可靠性。
上述基于工业以太网的数据传输系统中,发送终端获取数据包后,通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包,同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端向接收终端发送数据包。由此发送终端能够通过双向端口将数据发送至接收终端。中间终端接收发送终端发送的数据包后,将数据包转发至以太网链路上的相邻中间终端和/或接收终端。接收终端接收发送终端和/或与接收终端相邻的中间终端发送的数据包,当发送终端和接收终端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端发送的数据包。由此即使当发送终端和接收终端之间的链路发生故障后,接收终端也能够快速有效地接收到发送终端传输的数据,从而能够有效提高数据传输的可靠性。
在其中一个实施例中,数据包携带有标签,接收终端还用于对数据包的标签进行解析,利用解析后的标签对数据包进行验证,当验证未通过时,对所述数据包进行去重处理。
发送终端获取待传输的数据包后,对数据包添加标签。发送终端获取数据包后,通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包,同时通过第二端口按照逆向的以太网链路经过至少一个中间终端向接收终端发送数据包。接收终端接收到数据包后,对数据包中携带的标签进行解析,并对解析后的标签进行重复性验证。当接收终端未接收到重复的标签时,表明接收终端只接收到一份该数据包,则表示验证通过,并对接收到的数据包进行下一步处理。进一步地,当接收终端接收到重复的标签时,表明接收终端接收到了两份重复的数据包,则表示验证未通过。因此需要将在后接收到的数据进行去重处理。具体地,接收终端可以直接将在后接收到的数据包丢弃。接收终端通过对接收到数据进行验证和去重处理,不仅有效地保证数 据传输的可靠性,还有效地减少了接收终端的存储空间。
在其中一个实施例中,数据包的标签包括地址标识和序列码,中间终端还用于对数据包的标签中的地址标识进行验证,当地址标识与中间终端的地址标识不匹配时,将数据包转发至以太网链路上的相邻中间终端和/或接收终端;接收终端还用于根据数据包的标签解析出数据包的地址标识和序列码;当数据包的地址标识与接收终端的地址标识相匹配时,将序列码存储至缓存列表;判断缓存列表中是否有相同的序列码,当缓存列表中不存在相同的序列码时,对数据包中的数据进行处理;当缓存列表中存在相同的序列码时,删除序列码对应的数据包。
以太网链路上的发送终端、接收终端以及中间终端都有各自的地址标识。例如,地址标识可以为每个终端的MAC地址。发送终端获取待传输的数据包后,对数据包添加标签。其中,该数据包的标签包括与目标接收终端相对应的地址标识,用于识别数据包传输的接收终端。数据包的标签还包括序列码,用于接收终端接收到该数据包后,验证是否收到重复的数据包。进一步地,发送终端通过第一端口按照以太网链路向接收终端正向发送数据包,同时通过第二端口按照逆向的以太网链路经过至少一个中间终端向接收终端发送数据包。
中间终端接收到该数据包后,对数据包的标签进行解析。解析出地址标识后,对该地址表示进行验证,验证数据包标签中的地址标识是否与中间终端自身的地址标识相匹配。当数据包标签中的地址标识与中间终端自身的地址标识不匹配时,表示该数据包的传输终点不是该中间终端。因此中间终端就将该数据包按照原始传输方向转发出去,转发给以太网链路上相邻的下一个中间终端或者接收终端。当下一个中间终端接收到该数据包时,仍然对数据包中的地址标识进行验证,当数据包标签中的地址标识与该中间终端自身的地址标识不匹配时,继续将将该数据包按照原始传输方向转发出去,直到传输至接收终端。
进一步地,接收终端接收到该数据包后,对数据包的标签进行解析。由此能够解析出数据包的地址标识和序列码。接收终端首先判断该数据包的地址标识与接收终端自身的地址标识是否相匹配。当数据包的地址标识与接收终端的地址标识相匹配时,则表示接收终端为该数据包的传输终点。同时接 收终端将该数据包的序列码存储至缓存列表中,并判断缓存列表中是否存在相同的序列码。当缓存列表中不存在相同的序列码时,表示接收终端在此之前没有接收过该数据包,接收终端就立即对该数据包中的数据进行处理。进一步地,当缓存列表中已经存在相同的序列码时,表示接收终端在此之前已经接收过该数据包了,接收终端则删除序列码对应的数据包。接收终端通过对接收到的重复数据包进行去重处理,有效地减少了接收终端的存储空间,从而有效地保证数据传输的可靠性。
在其中一个实施例中,如图4所示,提供了一种基于工业以太网的数据传输方法,包括以下步骤:
步骤402,发送终端获取数据包。
步骤404,通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包。
步骤406,同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端将数据包转发至接收终端。
步骤408,当发送终端和接收终端之间的链路发生故障时,通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端将数据包转发至接收终端。
发送终端获取待传输的数据包,待传输的数据包可以是发送终端本身的数据包,也可以是其他设备发送的数据包。发送终端获取数据包后,通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包,同时通过第二端口按照逆向的以太网链路经过至少一个中间终端,通过中间终端将数据包转发至接收终端。
例如,如图3中所示,发送终端可以将数据包按照“发送终端→接收终端”正向进行传输,直接将数据包发送至接收终端。发送终端同时还可以按照“发送终端→中间终端B→中间终端A→接收终端”逆向进行传输,将数据包发送至中间终端B后,由中间终端B转发至中间终端A,再通过中间终端A将数据包转发给接收终端。由此发送终端能够通过双向传输有效地将数据包传输出去,接收终端也能够实时有效地接收到发送终端发送的数据包。
进一步地,中间终端接收到发送终端发送的数据包后,对该数据包的指定地址标识进行验证。中间终端通过验证该数据包的指定地址标识是否是中 间终端的地址标识。当数据包的的指定地址标识不是该中间终端的地址标识时,验证通过,则将该数据包按照原始方向转发至以太网链路上的相邻中间终端和/或接收终端。
进一步地,接收终端可以直接接收发送终端通过第一端口按照以太网链路正向发送的数据包,还可以接收发送终端通过第二端口按照逆向的以太网链路经过至少一个中间终端,由中间终端转发的数据包。当发送终端和接收终端之间的链路发生故障时,接收终端仍然可以接收到发送终端通过第二端口按照逆向的以太网链路经过至少一个中间终端,由中间终端转发的数据包。
例如,如图3中所示,在以太网链路正常的情况下,接收终端可以接收到发送终端按照“发送终端→接收终端”正向传输的数据包和发送终端按照“发送终端→中间终端B→中间终端A→接收终端”逆向传输的数据包。假如当发送终端和接收终端之间的链路发生故障时,接收终端仍然能够实时接收到发送终端按照“发送终端→中间终端B→中间终端A→接收终端”逆向传输的数据包。因此,即使发送终端和接收终端之间的链路发生故障后,接收终端也能够快速有效地接收到发送终端传输的数据包,从而有效地保证了数据传输的可靠性。
上述基于工业以太网的数据传输方法中,发送终端获取数据包后,通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包。同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端将数据包转发至接收终端。由此发送终端能够同时将数据包进行双向传输,有效地提高了数据传输的可靠性。当发送终端和接收终端之间的链路发生故障时,继续执行通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端将数据包转发至接收终端的步骤。因此,即使当发送终端和接收终端之间的链路发生故障时,接收终端也能够实时有效地接收到发送终端传输的数据,从而有效地保证了数据传输的可靠性。
在其中一个实施例中,该方法还包括:对数据包添加对应的标签;根据标签对数据包添加序列码;该序列码用于接收终端对接收到的数据包进行验证,当验证未通过时,对数据包进行去重处理。
发送终端获取待传输的数据包后,对数据包添加对应的标签,并根据标签对数据包添加序列码。其中,序列码可以是按照预设方式生成的,且每个 数据包对应的序列码不同。发送终端对数据包添加序列码后,就通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包,同时通过第二端口按照逆向的以太网链路经过至少一个中间终端,通过中间终端向接收终端转发该数据包。
接收终端接收到数据包后,对数据包中携带的标签进行解析,解析出该数据包对应的序列码。序列码用于接收终端对接收到的数据包进行验证,当验证未通过时,对数据包进行去重处理。具体地,接收终端将该数据包的序列码存储至缓存列表中,并判断缓存列表中是否存在相同的序列码。当缓存列表中不存在相同的序列码时,表示接收终端在此之前没有接收过该数据包,接收终端就立即对该数据包中的数据进行处理。进一步地,当缓存列表中已经存在相同的序列码时,表示接收终端在此之前已经接收过该数据包了,接收终端则删除序列码对应的数据包。接收终端通过对接收到的重复数据包进行去重处理,有效地减少了接收终端的存储空间,从而有效地保证数据传输的可靠性。
在其中一个实施例中,如图5所示,提供了一种基于工业以太网的数据传输方法,包括以下步骤:
步骤502,接收终端接收通过发送终端的第一端口按照以太网链路向接收终端正向发送的数据包。
步骤504,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端转发的数据包。
步骤506,当发送端和所述接收端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端转发的数据包。
发送终端获取待传输的数据包后,通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包,同时通过第二端口按照逆向的以太网链路经过至少一个中间终端,通过中间终端将数据包转发至接收终端。
进一步地,中间终端接收到发送终端发送的数据包后,对该数据包的指定地址标识进行验证。中间终端通过验证该数据包的指定地址标识是否是中间终端的地点标识。当数据包的的指定地址标识不是该中间终端的地址标识时,验证通过,则将该数据包按照原始方向转发至以太网链路上的相邻中间 终端和/或接收终端。
接收终端可以直接接收发送终端通过第一端口按照以太网链路正向发送的数据包,还可以接收发送终端通过第二端口按照逆向的以太网链路经过至少一个中间终端,由中间终端转发的数据包。当发送终端和接收终端之间的链路发生故障时,接收终端仍然可以接收到发送终端通过第二端口按照逆向的以太网链路经过至少一个中间终端,由中间终端转发的数据包。
例如,如图3中所示,在以太网链路正常的情况下,接收终端可以接收到发送终端按照“发送终端→接收终端”正向传输的数据包和发送终端按照“发送终端→中间终端B→中间终端A→接收终端”逆向传输的数据包。假如当发送终端和接收终端之间的链路发生故障时,接收终端仍然能够实时接收到发送终端按照“发送终端→中间终端B→中间终端A→接收终端”逆向传输的数据包。因此,即使发送终端和接收终端之间的链路发生故障后,接收终端也能够快速有效地接收到发送终端传输的数据包,从而有效地保证了数据传输的可靠性。
上述基于工业以太网的数据传输方法中,接收终端接收通过发送终端的第一端口按照以太网链路向接收终端正向发送的数据包,并接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端转发的数据包。由此使得接收终端能够实时有效地接收到发送终端通过双向传输的数据。当发送端和所述接收端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端转发的数据包。因此,即使当发送终端和接收终端之间的链路发生故障时,接收终端也能够实时有效地接收到发送终端传输的数据,从而有效地保证了数据传输的可靠性。
在其中一个实施例中,该方法还包括:对数据包的标签进行解析;利用解析后的标签对数据包进行验证;当验证未通过时,对数据包进行去重处理。
发送终端获取待传输的数据包后,对数据包添加标签。发送终端获取数据包后,通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包,同时通过第二端口按照逆向的以太网链路经过至少一个中间终端向接收终端发送数据包。接收终端接收到数据包后,对数据包中携带的标签进行解析,并对解析后的标签进行重复性验证。当接收终端未接收到重复的标签时, 表明接收终端只接收到一份该数据包,则表示验证通过,并对接收到的数据包进行下一步处理。进一步地,当接收终端接收到重复的标签时,表明接收终端接收到了两份重复的数据包,则表示验证未通过。因此需要将在后接收到的数据进行去重处理。具体地,接收终端可以直接将在后接收到的数据包丢弃。接收终端通过对接收到数据进行验证和去重处理,不仅有效地保证数据传输的可靠性,还有效地减少了接收终端的存储空间。
在其中一个实施例中,利用解析后的标签对数据包进行验证的步骤包括:根据数据包的标签解析出数据包的地址标识和序列码;当数据包的地址标识与接收终端的地址标识相匹配时,将序列码存储至缓存列表。判断缓存列表中是否存在相同的序列码,当缓存列表中不存在相同的序列码时,对数据包中的数据进行处理;当缓存列表中存在相同的序列码时,删除序列码对应的数据包。
发送终端获取待传输的数据包后,对数据包添加标签。其中,该数据包的标签包括与目标接收终端相对应的地址标识,用于识别数据包传输的接收终端。数据包的标签还包括序列码,用于接收终端接收到该数据包后,验证是否收到重复的数据包。进一步地,发送终端通过第一端口按照以太网链路向接收终端正向发送数据包,同时通过第二端口按照逆向的以太网链路经过至少一个中间终端向接收终端发送数据包。
接收终端接收到该数据包后,通过对数据包的标签进行解析。由此能够解析出数据包的地址标识和序列码。接收终端首先判断该数据包的地址标识与接收终端自身的地址标识是否相匹配。当数据包的地址标识与接收终端的地址标识相匹配时,则表示接收终端为该数据包的传输终点。同时接收终端将该数据包的序列码存储至缓存列表中,并判断缓存列表中是否存在相同的序列码。当缓存列表中不存在相同的序列码时,表示接收终端在此之前没有接收过该数据包,接收终端就立即对该数据包中的数据进行处理。进一步地,当缓存列表中已经存在相同的序列码时,表示接收终端在此之前已经接收过该数据包了,接收终端则删除序列码对应的数据包。接收终端通过对接收到的重复数据包进行去重处理,有效地减少了接收终端的存储空间,从而有效地保证数据传输的可靠性。
应该理解的是,虽然图4-5的流程图中的各个步骤按照箭头的指示依次 显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图4-5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在其中一个实施例中,提供了一种通信设备,该通信设备可以是终端,其内部结构图可以如图6所示。该通信设备包括通过系统总线连接的处理器、存储器、网络接口。其中,该通信设备的处理器用于提供计算和控制能力。该通信设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该通信设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种基于工业以太网的数据传输方法。
本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的通信设备的限定,具体的通信设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
一种通信设备,包括存储器和处理器,存储器中存储有计算机可读指令,该处理器执行计算机可读指令时实现以下步骤:
发送终端获取数据包;
通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包;
同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端将数据包转发至接收终端;
当发送终端和接收终端之间的链路发生故障时,继续执行通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端将数据包转发至接收终端的步骤。
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤: 对数据包添加对应的标签;根据标签对数据包添加序列码;该序列码用于接收终端对接收到的数据包进行验证,当验证未通过时,对数据包进行去重处理。
一种通信设备,包括存储器和处理器,存储器中存储有计算机可读指令,该处理器执行计算机可读指令时实现以下步骤:
接收终端接收通过发送终端的第一端口按照以太网链路向接收终端正向发送的数据包;
接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端转发的数据包;
当发送端和接收端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端转发的数据包。
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:对数据包的标签进行解析;利用解析后的标签对数据包进行验证;当验证未通过时,对数据包进行去重处理。
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:根据数据包的标签解析出数据包的地址标识和序列码;当数据包的地址标识与接收终端的地址标识相匹配时,将序列码存储至缓存列表。判断缓存列表中是否存在相同的序列码,当缓存列表中不存在相同的序列码时,对数据包中的数据进行处理;当缓存列表中存在相同的序列码时,删除序列码对应的数据包。
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
发送终端获取数据包;
通过发送终端的第一端口按照以太网链路向接收终端正向发送数据包;
同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端将数据包转发至接收终端;
当发送终端和接收终端之间的链路发生故障时,继续执行通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端将数据包转发至接收终端的步骤。
在其中一个实施例中,计算机程序被处理器执行时还实现以下步骤:对 数据包添加对应的标签;根据标签对数据包添加序列码;该序列码用于接收终端对接收到的数据包进行验证,当验证未通过时,对数据包进行去重处理。
一个或多个存储有计算机可读指令的非易失性存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
接收终端接收通过发送终端的第一端口按照以太网链路向接收终端正向发送的数据包;
接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端转发的数据包;
当发送端和接收端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过中间终端转发的数据包。
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:对数据包的标签进行解析;利用解析后的标签对数据包进行验证;当验证未通过时,对数据包进行去重处理。
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:根据数据包的标签解析出数据包的地址标识和序列码;当数据包的地址标识与接收终端的地址标识相匹配时,将序列码存储至缓存列表。判断缓存列表中是否存在相同的序列码,当缓存列表中不存在相同的序列码时,对数据包中的数据进行处理;当缓存列表中存在相同的序列码时,删除序列码对应的数据包。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种基于工业以太网的数据传输系统,包括:
    发送终端,用于获取数据包;通过发送终端的第一端口按照以太网链路向接收终端正向发送所述数据包,同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端向所述接收终端发送所述数据包;
    中间终端,用于接收发送终端发送的数据包;将所述数据包转发至所述以太网链路上的相邻中间终端和/或接收终端;及
    接收终端,用于接收发送终端和/或与所述接收终端相邻的中间终端发送的数据包,当所述发送终端和所述接收终端之间的链路发生故障时,接收通过所述发送终端的第二端口按照逆向以太网链路经过至少一个中间终端发送的数据包。
  2. 根据权利要求1所述的系统,其特征在于,所述数据包携带标签,所述接收终端还用于对所述数据包的标签进行解析,利用解析后的标签对所述数据包进行验证,当验证未通过时,对所述数据包进行去重处理。
  3. 根据权利要求2所述的系统,其特征在于,所述数据包的标签包括地址标识和序列码,所述中间终端还用于对所述数据包的标签中的地址标识进行验证,当所述地址标识与所述中间终端的地址标识不匹配时,将所述数据包转发至所述以太网链路上的相邻中间终端和/或接收终端。
  4. 根据权利要求1所述的系统,其特征在于,所述发送终端还用于对所述数据包添加对应的标签;根据所述标签对所述数据包添加序列码;及所述序列码用于接收终端对接收到的数据包进行验证,当验证未通过时,对所述数据包进行去重处理。
  5. 根据权利要求1所述的系统,其特征在于,所述接收终端还用于根据所述数据包的标签解析出所述数据包的地址标识和序列码;当所述数据包的地址标识与接收终端的地址标识相匹配时,将所述序列码存储至缓存列表;判断缓存列表中是否存在相同的序列码,当所述缓存列表中不存在相同的序列码时,对所述数据包中的数据进行处理;及当所述缓存列表中存在相同的序列码时,删除所述序列码对应的数据包。
  6. 一种基于工业以太网的数据传输方法,包括:
    发送终端获取数据包;
    通过发送终端的第一端口按照以太网链路向接收终端正向发送所述数据包;
    同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端;及
    当所述发送端和所述接收端之间的链路发生故障时,通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    对所述数据包添加对应的标签;
    根据所述标签对所述数据包添加序列码;及
    所述序列码用于接收终端对接收到的数据包进行验证,当验证未通过时,对所述数据包进行去重处理。
  8. 一种基于工业以太网的数据传输方法,包括:
    接收终端接收通过发送终端的第一端口按照以太网链路向接收终端正向发送的数据包;
    接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端转发的数据包;及
    当所述发送端和所述接收端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端转发的数据包。
  9. 根据权利要求8所述的方法,其特征在于,所述数据包携带了标签,所述方法还包括:
    对所述数据包的标签进行解析;
    利用解析后的标签对所述数据包进行验证;及
    当验证未通过时,对所述数据包进行去重处理。
  10. 根据权利要求8所述的方法,其特征在于,所述利用解析后的标签对所述数据包进行验证的步骤包括:
    根据所述数据包的标签解析出所述数据包的地址标识和序列码;
    当所述数据包的地址标识与接收终端的地址标识相匹配时,将所述序列码存储至缓存列表;
    判断缓存列表中是否存在相同的序列码,当所述缓存列表中不存在相同的序列码时,对所述数据包中的数据进行处理;及
    当所述缓存列表中存在相同的序列码时,删除所述序列码对应的数据包。
  11. 一种通信设备,包括存储器及一个或多个处理器,所述存储器存储有计算机可读指令,其特征在于,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    发送终端获取数据包;
    通过发送终端的第一端口按照以太网链路向接收终端正向发送所述数据包;
    同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端;及
    当所述发送端和所述接收端之间的链路发生故障时,通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端。
  12. 根据权利要求11所述的通信设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    对所述数据包添加对应的标签;
    根据所述标签对所述数据包添加序列码;及
    所述序列码用于接收终端对接收到的数据包进行验证,当验证未通过时,对所述数据包进行去重处理。
  13. 一种通信设备,包括存储器及一个或多个处理器,所述存储器存储有计算机可读指令,其特征在于,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    接收终端接收通过发送终端的第一端口按照以太网链路向接收终端正向发送的数据包;
    接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端转发的数据包;及
    当所述发送端和所述接收端之间的链路发生故障时,接收通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端转发的数据包。
  14. 根据权利要求13所述的通信设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    对所述数据包的标签进行解析;
    利用解析后的标签对所述数据包进行验证;及
    当验证未通过时,对所述数据包进行去重处理。
  15. 根据权利要求13所述的通信设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    根据所述数据包的标签解析出所述数据包的地址标识和序列码;
    当所述数据包的地址标识与接收终端的地址标识相匹配时,将所述序列码存储至缓存列表;
    判断缓存列表中是否存在相同的序列码,当所述缓存列表中不存在相同的序列码时,对所述数据包中的数据进行处理;及
    当所述缓存列表中存在相同的序列码时,删除所述序列码对应的数据包。
  16. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    发送终端获取数据包;
    通过发送终端的第一端口按照以太网链路向接收终端正向发送所述数据包;
    同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端;及
    当所述发送端和所述接收端之间的链路发生故障时,通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端。
  17. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    对所述数据包添加对应的标签;
    根据所述标签对所述数据包添加序列码;及
    所述序列码用于接收终端对接收到的数据包进行验证,当验证未通过时,对所述数据包进行去重处理。
  18. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    发送终端获取数据包;
    通过发送终端的第一端口按照以太网链路向接收终端正向发送所述数据包;
    同时通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端;及
    当所述发送端和所述接收端之间的链路发生故障时,通过发送终端的第二端口按照逆向以太网链路经过至少一个中间终端,通过所述中间终端将所述数据包转发至所述接收终端。
  19. 根据权利要求18所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    对所述数据包的标签进行解析;
    利用解析后的标签对所述数据包进行验证;及
    当验证未通过时,对所述数据包进行去重处理。
  20. 根据权利要求18所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    根据所述数据包的标签解析出所述数据包的地址标识和序列码;
    当所述数据包的地址标识与接收终端的地址标识相匹配时,将所述序列码存储至缓存列表;
    判断缓存列表中是否存在相同的序列码,当所述缓存列表中不存在相同的序列码时,对所述数据包中的数据进行处理;及
    当所述缓存列表中存在相同的序列码时,删除所述序列码对应的数据包。
PCT/CN2019/071288 2018-03-14 2019-01-11 基于工业以太网的数据传输系统、方法和通信设备 WO2019174390A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
DE112019000746.7T DE112019000746T5 (de) 2018-03-14 2019-01-11 Industrielles Ethernetbasiertes Datenübertragungssystem und -verfahren sowie Kommunikationsvorrichtung

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810210511.4 2018-03-14
CN201810210511.4A CN108551425A (zh) 2018-03-14 2018-03-14 基于工业以太网的数据传输系统、方法和通信设备

Publications (1)

Publication Number Publication Date
WO2019174390A1 true WO2019174390A1 (zh) 2019-09-19

Family

ID=63516231

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/071288 WO2019174390A1 (zh) 2018-03-14 2019-01-11 基于工业以太网的数据传输系统、方法和通信设备

Country Status (3)

Country Link
CN (1) CN108551425A (zh)
DE (1) DE112019000746T5 (zh)
WO (1) WO2019174390A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274050A (zh) * 2020-01-19 2020-06-12 深圳华锐金融技术股份有限公司 业务数据转发方法、装置、计算机设备和存储介质
CN112954740A (zh) * 2021-02-03 2021-06-11 维沃移动通信有限公司 数据发送方法、设备、数据接收方法、设备及通信设备
CN113949622A (zh) * 2021-10-18 2022-01-18 湖南兴天电子科技有限公司 网络通信方法、系统、装置及计算机可读存储介质
CN114884859A (zh) * 2022-04-19 2022-08-09 西安大衡天成信息科技有限公司 一种支持指挥通信模拟训练的网络状态控制装置及方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108551425A (zh) * 2018-03-14 2018-09-18 固高科技(深圳)有限公司 基于工业以太网的数据传输系统、方法和通信设备
CN112448794A (zh) * 2019-08-29 2021-03-05 华为技术有限公司 一种帧处理方法和装置
CN113692007A (zh) * 2021-08-26 2021-11-23 安徽听见科技有限公司 数据传输方法、装置、系统、存储介质及终端设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7978727B2 (en) * 2002-12-12 2011-07-12 Fujitsu Limited Ethernet frame and synchronous optical network (SONET) frame convertible interface device and frame transmission method
CN102595456A (zh) * 2011-01-06 2012-07-18 上海戴河易信息科技有限公司 ZigBee环状传感网
CN103746784A (zh) * 2014-01-15 2014-04-23 中国神华能源股份有限公司 一种机车无线重联数据通信方法及系统
CN105703995A (zh) * 2016-04-08 2016-06-22 同济大学 一种基于可扩展环形以太网的电动智能汽车通信网络系统
CN107248963A (zh) * 2017-05-19 2017-10-13 闫晓峰 基于以太网的多通道交换机、通道仲裁方法和通讯方法
CN108551425A (zh) * 2018-03-14 2018-09-18 固高科技(深圳)有限公司 基于工业以太网的数据传输系统、方法和通信设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100696196B1 (ko) * 2005-12-09 2007-03-20 한국전자통신연구원 Sdh/sonet를 이용한 vpws망에서의유지보수신호 전파 방법
CN101316212A (zh) * 2008-07-07 2008-12-03 华为技术有限公司 环网故障处理方法、环网及运营商骨干设备
CN106470085B (zh) * 2015-08-20 2018-11-09 华为技术有限公司 基于同步数字体系sdh的通信方法和sdh设备
CN105959231B (zh) * 2016-04-29 2019-06-07 北京东土科技股份有限公司 一种代理端口通信流量控制方法和冗余设备
CN106953708A (zh) * 2017-03-31 2017-07-14 山东超越数控电子有限公司 一种基于工业环网的时间同步系统及其工作方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7978727B2 (en) * 2002-12-12 2011-07-12 Fujitsu Limited Ethernet frame and synchronous optical network (SONET) frame convertible interface device and frame transmission method
CN102595456A (zh) * 2011-01-06 2012-07-18 上海戴河易信息科技有限公司 ZigBee环状传感网
CN103746784A (zh) * 2014-01-15 2014-04-23 中国神华能源股份有限公司 一种机车无线重联数据通信方法及系统
CN105703995A (zh) * 2016-04-08 2016-06-22 同济大学 一种基于可扩展环形以太网的电动智能汽车通信网络系统
CN107248963A (zh) * 2017-05-19 2017-10-13 闫晓峰 基于以太网的多通道交换机、通道仲裁方法和通讯方法
CN108551425A (zh) * 2018-03-14 2018-09-18 固高科技(深圳)有限公司 基于工业以太网的数据传输系统、方法和通信设备

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274050A (zh) * 2020-01-19 2020-06-12 深圳华锐金融技术股份有限公司 业务数据转发方法、装置、计算机设备和存储介质
CN111274050B (zh) * 2020-01-19 2024-04-30 深圳华锐分布式技术股份有限公司 业务数据转发方法、装置、计算机设备和存储介质
CN112954740A (zh) * 2021-02-03 2021-06-11 维沃移动通信有限公司 数据发送方法、设备、数据接收方法、设备及通信设备
CN113949622A (zh) * 2021-10-18 2022-01-18 湖南兴天电子科技有限公司 网络通信方法、系统、装置及计算机可读存储介质
CN114884859A (zh) * 2022-04-19 2022-08-09 西安大衡天成信息科技有限公司 一种支持指挥通信模拟训练的网络状态控制装置及方法
CN114884859B (zh) * 2022-04-19 2024-01-09 西安大衡天成信息科技有限公司 一种支持指挥通信模拟训练的网络状态控制装置及方法

Also Published As

Publication number Publication date
DE112019000746T5 (de) 2020-10-22
CN108551425A (zh) 2018-09-18

Similar Documents

Publication Publication Date Title
WO2019174390A1 (zh) 基于工业以太网的数据传输系统、方法和通信设备
WO2015131537A1 (zh) 双向转发检测方法、设备、系统及计算机存储介质
CN110661702B (zh) 一种链路备份的方法、装置及计算机可读存储介质
US11729085B2 (en) Cluster wide packet tracing
WO2018113425A1 (zh) 一种检测时延的方法、装置及系统
US10326681B2 (en) System and method to analyze route information in a network
WO2018095075A1 (zh) 一种数据传输方法、集中控制器和通信装置
US10050859B2 (en) Apparatus for processing network packet using service function chaining and method for controlling the same
WO2020119644A1 (zh) 一种转发表项生成方法、装置及设备
US20200044964A1 (en) Defect detection in ip/mpls network tunnels
US20210096939A1 (en) Fault Tolerance Processing Method, Apparatus, and Server
WO2014000698A1 (zh) 基于ip层的网络拓扑识别方法和设备
WO2018004931A1 (en) Techniques for virtual ethernet switching of a multi-node fabric
WO2017143738A1 (zh) 报文发送方法及装置
JP5672836B2 (ja) 通信装置、通信方法、および通信プログラム
KR101576833B1 (ko) 이중화 장치에서 수신 버퍼를 이용한 통신 데이터의 중복 검사 방법
WO2018120228A1 (zh) 一种环路故障恢复方法、装置及节点设备
WO2016070617A1 (zh) 流表更新方法及装置
EP3422676A1 (en) Method and device for forwarding a data packet
WO2019174424A1 (zh) 链路容量调整方法及装置、系统、控制器、网络节点
Zhang et al. A service protection mechanism impelemented on P4 by packet replication
JP5320571B2 (ja) ノード間データ応答システム
WO2023030202A1 (zh) 路径故障检测方法、装置、系统、网络设备及存储介质
WO2024093636A1 (zh) 显示方法和电子设备
WO2015131766A1 (zh) 网络诊断处理方法、装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19768391

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19768391

Country of ref document: EP

Kind code of ref document: A1