WO2012075885A1 - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
WO2012075885A1
WO2012075885A1 PCT/CN2011/082714 CN2011082714W WO2012075885A1 WO 2012075885 A1 WO2012075885 A1 WO 2012075885A1 CN 2011082714 W CN2011082714 W CN 2011082714W WO 2012075885 A1 WO2012075885 A1 WO 2012075885A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
serial port
response
packet
receiving
Prior art date
Application number
PCT/CN2011/082714
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2012075885A1 publication Critical patent/WO2012075885A1/en

Links

Classifications

    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Definitions

  • the invention relates to the field of communication and control, in particular to a method and a device for reliably communicating data between a virtual serial port on a host where the management software is located and a physical serial port on the serial port server.
  • TCP Transmission Control Protocol
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • the present invention provides a data transmission method for communication between a serial port server and a host, including:
  • the data When the data is sent to the peer end, the data is buffered; the data is encapsulated by the reliable user data packet protocol RUDP; and the data is not received within a preset time range after the data is sent. After the response corresponding to the sent data, the encapsulated data is retransmitted; and after receiving the data sent by the opposite end, the response corresponding to the received data is sent to the opposite end.
  • the step of encapsulating the data by using RUDP includes: encapsulating the data into a user data packet protocol UDP packet, where the UDP packet includes a packet sequence number;
  • the step of sending a response to the peer end includes: after receiving the UDP packet sent by the peer end, acquiring a packet sequence number from the received UDP packet, and sending a response including the packet sequence number to the peer end; and the method further includes After receiving the response, the packet sequence number is obtained from the received response. If the obtained packet sequence number is the same as the packet sequence number of the transmitted data, it is considered that a response corresponding to the transmitted data is received.
  • the UDP packet further includes control information
  • the method further includes: after receiving the UDP packet sent by the peer end, verifying the data in the UDP packet according to the control information in the UDP packet, and sending a response to the peer end if the verification succeeds.
  • the data refers to serial port data
  • the method further includes: when transmitting the serial port data, using a virtual local area network VLAN identifier to identify the serial port data;
  • the step of sending a response corresponding to the received data to the peer end includes: after receiving the serial port data, if it is determined that the received serial port data includes the VLAN identifier, the response corresponding to the serial port data is sent to the opposite end.
  • the method further includes: establishing, by using a network port, a correspondence between a physical serial port on the serial port server and a virtual serial port of the host;
  • the present invention also provides a data transmission device for communication between a serial port server and a host, the data transmission device comprising:
  • a data sending module configured to: cache the data when transmitting data; and send the data after the data is encapsulated by a reliable user data packet protocol RUDP; and, a preset time range after the data is sent If there is no response corresponding to the sent data, then Send the encapsulated data; and
  • a data receiving response module is arranged to send a response corresponding to the received data after receiving the data.
  • the data sending module is configured to encapsulate the data into a user data packet protocol UDP packet when the data is encapsulated by RUDP, where the UDP packet includes a packet sequence number;
  • the data receiving response module is configured to send a response by: after receiving the UDP packet, obtaining a packet sequence number from the received UDP packet, and transmitting a response including the packet sequence number;
  • the data sending module is further configured to: after receiving the response, obtain a packet sequence number from the received response, and if the obtained packet sequence number is the same as the packet sequence number of the sent data, the data is considered to be received and sent. Corresponding response.
  • the UDP packet further includes control information
  • the data receiving response module is further configured to: after receiving the UDP packet sent by the peer end, verify the data in the UDP packet according to the control information in the UDP packet, and send the response if the verification succeeds .
  • the data refers to serial port data
  • the data sending module is further configured to use the virtual local area network VLAN identifier to identify the serial port data when sending serial port data;
  • the data receiving response module is configured to send a response corresponding to the received data by: after receiving the serial port data, if it is determined that the received serial port data includes a VLAN identifier, sending, corresponding to the serial port data, Answer.
  • the data sending module is further configured to: establish a correspondence between a physical serial port on the serial port server and a virtual serial port of the host through a network port; and establish a physical serial port and a serial port on the serial port server according to the corresponding relationship The transmission channel between the virtual serial ports on the host.
  • the invention provides a data transmission method and device, which can realize reliable transmission by adding a reliability mechanism between a virtual serial port and a corresponding physical serial port.
  • BRIEF abstract 1 is a flowchart of a data transmission method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a data transmission process according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a data retransmission mechanism in a data transmission process according to an embodiment of the present invention
  • FIG. 4 is a block diagram of a data transmission apparatus according to an embodiment of the present invention.
  • FIG. 1 shows a data transmission method for communication between a serial port server and a host according to an embodiment of the present invention, including the steps of:
  • Step S101 When sending data to the peer end, buffering the data
  • Step S102 Encapsulating the data by using a reliable user data packet protocol (RUDP) and sending it out;
  • RUDP reliable user data packet protocol
  • Step S103 Resending the encapsulated data after receiving a response corresponding to the data within a preset time range after the sending of the data;
  • Step S104 After receiving the data sent by the peer end, send a response corresponding to the received data to the opposite end.
  • reliable UDP transmission is used at the transmission link layer to monitor the order of UDP packets, effectively preventing packet loss and out-of-order, and adding a retransmission mechanism at the application level.
  • Resend When data transmission fails, Resend. Therefore, when communicating between the serial server and the host, the UDP consumption and the limited data transmission advantages are fully utilized, and the shortage of packet loss is improved, and hierarchical control is performed at the transmission link level and the application level. Ensure the reliability of data transmission.
  • the method further includes: establishing a data transmission channel between the serial port server and the host, where the network port is configured to establish a correspondence between the physical serial port on the serial port server and the virtual serial port of the host, and The corresponding relationship establishes a transmission channel between the physical serial port on the serial server and the virtual serial port on the host.
  • the serial server is receiving When the data of a serial port is sent, it can be sent to the corresponding virtual serial port on the host through the corresponding transmission channel.
  • the host can also send the data on a virtual serial port to the corresponding serial port on the serial server through the corresponding transmission channel. .
  • the host runs the virtual serial port management software, and sends a configuration command to notify the serial server to establish a data transmission channel.
  • the serial server sets the serial port according to the configuration parameters in the configuration command, and associates the serial port with the virtual serial port on the host.
  • UDP interface create a link, and then notify the virtual serial port management software on the host, so that the serial port and the virtual serial port are established on the serial server and the host side.
  • the serial server receives the serial port data through the serial port, Determining, according to the corresponding relationship of the local maintenance, the virtual serial port to which the serial port data is sent, and then sending the serial port data to the network side through the network port, after the host receives the serial port data from the network side through the network port, according to local maintenance
  • the corresponding relationship is sent to the corresponding virtual serial port.
  • the host side determines the serial port to which the data of the virtual serial port is sent according to the corresponding relationship, and then passes the data of the virtual serial port to the network port.
  • the serial server After being sent to the network side, the serial server receives the data of the virtual serial port from the network side through the network port, and sends the data of the virtual serial port to the corresponding serial port according to the corresponding relationship of the local maintenance, thereby implementing the serial port server.
  • the method may include: encapsulating the data into a UDP packet, where the UDP packet includes a packet sequence number.
  • a reliable UDP header may be added to the UDP packet, where the packet sequence number for ensuring that the UDP packet is correctly transmitted in sequence is included.
  • the method further includes: after receiving the response, obtaining the packet sequence number from the packet. If the packet sequence number is the same as the packet sequence number of the transmitted data, it is considered that a response corresponding to the transmitted data is received.
  • the step S104 the method further includes: after receiving the UDP packet sent by the peer end, obtaining a packet sequence number from the peer end, and sending a response including the packet sequence number to the peer end.
  • the reliable UDP header may further include other information for further ensuring reliable transmission of the UDP packet.
  • flow control related information such as >3 ⁇ 4 text length, transmission flow control information, and the like.
  • the response sequence number may also be included, and after receiving the UDP packet, the response sequence number is obtained. A response including the response sequence number is returned, thereby verifying whether the response is a response corresponding to the UDP packet.
  • step S102 data that does not meet the requirements may be filtered by adding control information at the application level, thereby further ensuring reliability of data transmission.
  • the control information may be information such as a checksum.
  • the method further includes: after receiving the UDP packet sent by the peer end, verifying, according to the control information in the UDP packet, the data in the UDP packet, if the verification succeeds, The corresponding response is sent to the peer.
  • the invention is mainly applied to transmitting serial port data between a physical serial port of a serial port data server and a virtual serial port established by a host.
  • the data sent by the serial server is in addition to the serial port data, there are other Ethernet-related data, server management data and other data.
  • a specific virtual local area network VLAN can be used.
  • the identifier identifies the serial port data.
  • the virtual local area network (VLAN) VLAN identifier is used to identify the serial port data.
  • the step S104 After performing the step S104, after receiving the serial port data, if it is determined that the VLAN identifier is included, the corresponding serial port data is sent. Response.
  • the communication between the serial port server and the host device may be bidirectional, that is, the data may be sent from the serial server to the host, or the host may send data to the serial server, which is applicable to the foregoing method.
  • FIG. 2 shows a process of data transmission between a serial port server and a host according to an embodiment of the present invention.
  • the serial server After the transmission channel between the two is established, the serial server will be sent.
  • Data caching, and then encapsulating the data includes: encapsulating the data into a UDP packet, adding a control information header to the UDP packet, adding a reliable UDP header to the UDP packet, adding the UDP packet to the UDP packet.
  • the UDP header then sends the encapsulated UDP packet to the network side.
  • the host side strips the UDP header, determines whether the order of the data packet is correct according to the reliable UDP header, and determines according to the control information header.
  • the embodiment of the present invention further provides a data transmission apparatus, which is used for communication between a serial port server and a host, as shown in FIG. 4, including:
  • a data sending module configured to: cache the data when transmitting data; and package the data by using a reliable user data packet protocol (RUDP); and send a preset after sending the data Resending the encapsulated data without receiving a response corresponding to the transmitted data within the time range;
  • RUDP reliable user data packet protocol
  • a data receiving response module configured to transmit a response corresponding to the received data after receiving the data.
  • the data sending module is configured to encapsulate data into a UDP packet when the data is encapsulated by RUDP, and the UDP packet includes a packet sequence number.
  • the data receiving response module obtains the packet sequence number from the packet, and sends a response including the packet sequence number.
  • the data sending module obtains the packet sequence number from the packet, and if the packet sequence number is the same as the packet sequence number of the data transmitted, it is considered that the response corresponding to the transmitted data is received.
  • the UDP packet further includes control information.
  • the data receiving response module After receiving the UDP packet sent by the peer end, the data receiving response module further verifies the data in the UDP packet according to the control information in the UDP packet, and if the verification succeeds, the UDP packet is sent. Corresponding response.
  • the data refers to serial port data.
  • the data sending module further uses the virtual local area network (VLAN) VLAN identifier to identify the serial port data when transmitting the serial port data.
  • the data receiving response module sends a response corresponding to the serial port data if it is determined that the VLAN identifier is included therein.
  • the data sending module is further configured to: establish, by using a network port, a correspondence between a physical serial port on the serial port server and a virtual serial port of the host; and establish a physical serial port on the serial port server according to the corresponding relationship A transmission channel between the virtual serial port on the host.
  • the data sending module and the receiving response module of the present invention are loaded on the serial server, and the data sending module and the receiving response module of the present invention are also loaded on the host, which can effectively ensure the reliable transmission of the serial data between the two by the hierarchical control mode. Sex.
  • the present invention can achieve reliable transmission by adding a reliability mechanism between the virtual serial port and the corresponding physical serial port.

Abstract

The present invention provides a data transmission method and device used for communication between a serial port server and a host. The method comprises: when sending data to a peer end, buffering the data; encapsulating the data using the Reliable User Datagram Protocol (RUDP) and sending the encapsulated data; if no response corresponding to the sent data is received within a predetermined time range after the data is sent, sending the encapsulated data again; and, after receiving data sent from the peer end, sending a response corresponding to the sent data to the peer end. The present invention can realize reliable transmission by adding a reliability mechanism between a virtual serial port and a corresponding physical serial port.

Description

一种数据传输方法及装置  Data transmission method and device
技术领域 Technical field
本发明涉及在通讯和控制领域, 尤其涉及在管理软件所在主机上的虚拟 串口与串口服务器上的物理串口之间的数据进行可靠通讯的方法及装置。  The invention relates to the field of communication and control, in particular to a method and a device for reliably communicating data between a virtual serial port on a host where the management software is located and a physical serial port on the serial port server.
背景技术 Background technique
目前, 虚拟串口技术已经被广泛应用, 其中最关键的指标是可靠性, 不 同的虚拟串口软件实现方案有差异, 大多数现有方案仅仅从通信层面来解决 可靠性问题, 比如网络通信协议大多数釆用传输控制协议 (Transmission Control Protocol, 简称 TCP ) , 但整个系统的可靠性单纯从通信角度解决是 有缺陷的。  At present, virtual serial port technology has been widely used. The most critical indicator is reliability. Different virtual serial port software implementation schemes are different. Most existing solutions only solve reliability problems from the communication level, such as most network communication protocols. The Transmission Control Protocol (TCP) is used, but the reliability of the entire system is simply solved from the communication point of view.
从软件实现看, 虚拟串口与物理串口间的数据传输直接釆用 TCP或用户 数据包协议( User Datagram Protocol, 简称 UDP ) , 简单可行。 TCP是面向 连接的, 可以保障数据的可靠传输, 但这仅体现在协议层面上, 而且 TCP自 身消耗较大, 特别是有些应用环境(如经过防火墙 )对 TCP进行限制。 UDP 是无连接的, 消耗和限制较少, 但在网络传输中容易出现丟包、 乱序等情况, 对数据的可靠传输无法保障。  From the software implementation point of view, the data transmission between the virtual serial port and the physical serial port directly uses TCP or User Datagram Protocol (UDP), which is simple and feasible. TCP is connection-oriented and can guarantee reliable transmission of data, but this is only reflected at the protocol level, and TCP itself consumes a lot of money, especially in some application environments (such as through a firewall) to limit TCP. UDP is connectionless, with less consumption and restrictions, but it is prone to packet loss, out-of-order, etc. in network transmission, and reliable transmission of data cannot be guaranteed.
发明内容 Summary of the invention
本发明的目的是, 提供一种数据传输方法及装置, 能够在虚拟串口与对 应的物理串口间通过增加可靠性机制, 实现可靠传输。 为了解决上述技术问题, 本发明提出一种数据传输方法, 用于串口服务 器与主机之间通信, 包括:  It is an object of the present invention to provide a data transmission method and apparatus capable of realizing reliable transmission by adding a reliability mechanism between a virtual serial port and a corresponding physical serial port. In order to solve the above technical problem, the present invention provides a data transmission method for communication between a serial port server and a host, including:
在向对端发送数据时, 对所述数据进行緩存; 釆用可靠用户数据包协议 RUDP封装所述数据后发送出去; 在发送所述数据后的一预设时间范围内如 果没有收到与所发送的数据对应的应答, 则重新发送封装后的数据; 以及 在接收到对端发送来的数据后,向对端发送与所接收的数据对应的应答。 釆用 RUDP封装所述数据的步骤包括: 将该数据封装为用户数据包协议 UDP包, 所述 UDP包中包括包序号; When the data is sent to the peer end, the data is buffered; the data is encapsulated by the reliable user data packet protocol RUDP; and the data is not received within a preset time range after the data is sent. After the response corresponding to the sent data, the encapsulated data is retransmitted; and after receiving the data sent by the opposite end, the response corresponding to the received data is sent to the opposite end. The step of encapsulating the data by using RUDP includes: encapsulating the data into a user data packet protocol UDP packet, where the UDP packet includes a packet sequence number;
向对端发送应答的步骤包括: 在接收到对端发送来的 UDP包后, 从所接 收的 UDP包中获取包序号, 并向对端发送包含所述包序号的应答; 以及 该方法还包括: 在接收到应答后, 从所接收的应答中获取包序号, 如果 所获取的包序号与所发送的数据的包序号相同, 则认为收到与所发送的数据 对应的应答。  The step of sending a response to the peer end includes: after receiving the UDP packet sent by the peer end, acquiring a packet sequence number from the received UDP packet, and sending a response including the packet sequence number to the peer end; and the method further includes After receiving the response, the packet sequence number is obtained from the received response. If the obtained packet sequence number is the same as the packet sequence number of the transmitted data, it is considered that a response corresponding to the transmitted data is received.
所述 UDP包中还包括控制信息;  The UDP packet further includes control information;
该方法还包括: 在接收到对端发送来的 UDP包后, 根据所述 UDP包中 的控制信息, 对所述 UDP包中的数据进行验证, 如果验证通过, 才向对端发 送应答。  The method further includes: after receiving the UDP packet sent by the peer end, verifying the data in the UDP packet according to the control information in the UDP packet, and sending a response to the peer end if the verification succeeds.
所述数据是指串口数据;  The data refers to serial port data;
该方法还包括: 在发送所述串口数据时, 使用虚拟局域网 VLAN标识来 标识所述串口数据;  The method further includes: when transmitting the serial port data, using a virtual local area network VLAN identifier to identify the serial port data;
向对端发送与所接收的数据对应的应答的步骤包括: 在接收到串口数据 后, 如判断出所接收的串口数据中包含 VLAN标识, 则向对端发送与该串口 数据对应的应答。 该方法还包括: 通过网口建立所述串口服务器上的物理串口与所述主机 的虚拟串口的对应关系; 以及  The step of sending a response corresponding to the received data to the peer end includes: after receiving the serial port data, if it is determined that the received serial port data includes the VLAN identifier, the response corresponding to the serial port data is sent to the opposite end. The method further includes: establishing, by using a network port, a correspondence between a physical serial port on the serial port server and a virtual serial port of the host;
根据所述对应关系建立所述串口服务器上的物理串口与所述主机上的虚 拟串口之间的传输通道。  And establishing, according to the correspondence, a transmission channel between the physical serial port on the serial server and the virtual serial port on the host.
本发明还提供一种数据传输装置, 用于串口服务器与主机之间通信, 该 数据传输装置包括: The present invention also provides a data transmission device for communication between a serial port server and a host, the data transmission device comprising:
数据发送模块, 其设置成: 在发送数据时, 对所述数据进行緩存; 釆用 可靠用户数据包协议 RUDP封装所述数据后发送出去; 以及, 在发送所述数 据后的一预设时间范围内如果没有收到与所发送的数据对应的应答, 则重新 发送封装后的数据; 以及 a data sending module, configured to: cache the data when transmitting data; and send the data after the data is encapsulated by a reliable user data packet protocol RUDP; and, a preset time range after the data is sent If there is no response corresponding to the sent data, then Send the encapsulated data; and
数据接收应答模块, 其设置成在接收到数据后, 发送与所接收的数据对 应的应答。  A data receiving response module is arranged to send a response corresponding to the received data after receiving the data.
所述数据发送模块是设置成在釆用 RUDP封装所述数据时, 将该数据封 装为用户数据包协议 UDP包, 所述 UDP包中包括包序号;  The data sending module is configured to encapsulate the data into a user data packet protocol UDP packet when the data is encapsulated by RUDP, where the UDP packet includes a packet sequence number;
所述数据接收应答模块是设置成通过如下方式发送应答: 在接收到 UDP 包后, 从所接收的 UDP包中获取包序号, 并发送包含所述包序号的应答; 以 及  The data receiving response module is configured to send a response by: after receiving the UDP packet, obtaining a packet sequence number from the received UDP packet, and transmitting a response including the packet sequence number; and
所述数据发送模块还设置成: 在接收到应答后, 从所接收的应答中获取 包序号, 如果所获取的包序号与所发送的数据的包序号相同, 则认为收到与 所发送的数据对应的应答。  The data sending module is further configured to: after receiving the response, obtain a packet sequence number from the received response, and if the obtained packet sequence number is the same as the packet sequence number of the sent data, the data is considered to be received and sent. Corresponding response.
所述 UDP包中还包括控制信息;  The UDP packet further includes control information;
所述数据接收应答模块还设置成: 在接收到对端发送来的 UDP包后, 根 据所述 UDP包中的控制信息, 对所述 UDP包中的数据进行验证, 如果验证 通过, 才发送应答。  The data receiving response module is further configured to: after receiving the UDP packet sent by the peer end, verify the data in the UDP packet according to the control information in the UDP packet, and send the response if the verification succeeds .
所述数据是指串口数据;  The data refers to serial port data;
所述数据发送模块还设置成在发送串口数据时, 使用虚拟局域网 VLAN 标识来标识所述串口数据;  The data sending module is further configured to use the virtual local area network VLAN identifier to identify the serial port data when sending serial port data;
所述数据接收应答模块是设置成通过如下方式发送与所接收到的数据对 应的应答: 在接收到串口数据后, 如判断出所接收的串口数据中包含 VLAN 标识, 则发送与该串口数据对应的应答。  The data receiving response module is configured to send a response corresponding to the received data by: after receiving the serial port data, if it is determined that the received serial port data includes a VLAN identifier, sending, corresponding to the serial port data, Answer.
所述数据发送模块还设置成: 通过网口建立所述串口服务器上的物理串 口与所述主机的虚拟串口的对应关系; 以及, 根据所述对应关系建立所述串 口服务器上的物理串口与所述主机上的虚拟串口之间的传输通道。  The data sending module is further configured to: establish a correspondence between a physical serial port on the serial port server and a virtual serial port of the host through a network port; and establish a physical serial port and a serial port on the serial port server according to the corresponding relationship The transmission channel between the virtual serial ports on the host.
本发明提供的一种数据传输方法及装置, 能够在虚拟串口与对应的物理 串口间通过增加可靠性机制, 实现可靠传输。  The invention provides a data transmission method and device, which can realize reliable transmission by adding a reliability mechanism between a virtual serial port and a corresponding physical serial port.
附图概述 图 1是本发明实施例一种数据传输方法流程图; BRIEF abstract 1 is a flowchart of a data transmission method according to an embodiment of the present invention;
图 2是本发明实施例一种数据传输过程示意图;  2 is a schematic diagram of a data transmission process according to an embodiment of the present invention;
图 3是本发明实施例数据传输过程中的数据重发机制示意图;  3 is a schematic diagram of a data retransmission mechanism in a data transmission process according to an embodiment of the present invention;
图 4是本发明实施例一种数据传输装置方框图。  4 is a block diagram of a data transmission apparatus according to an embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下面结合附图来详细说明本发明实施方式。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
参见图 1 , 该图示出了本发明实施例一种数据传输方法, 用于串口服务 器与主机之间通信, 包括步骤:  Referring to FIG. 1, the figure shows a data transmission method for communication between a serial port server and a host according to an embodiment of the present invention, including the steps of:
步骤 S101 : 在向对端发送数据时, 对所述数据进行緩存;  Step S101: When sending data to the peer end, buffering the data;
步骤 S102: 釆用可靠用户数据包协议(RUDP )封装所述数据后将其发 送出去;  Step S102: Encapsulating the data by using a reliable user data packet protocol (RUDP) and sending it out;
步骤 S103: 在发送所述数据后的一预设时间范围内没有收到与该数据对 应的应答, 则重新发送封装后的数据; 以及  Step S103: Resending the encapsulated data after receiving a response corresponding to the data within a preset time range after the sending of the data; and
步骤 S104: 在接收到对端发送来的数据后, 向对端发送与所接收到的数 据对应的应答。  Step S104: After receiving the data sent by the peer end, send a response corresponding to the received data to the opposite end.
本发明实施例在传输链路层面, 釆用可靠 UDP传输, 对 UDP包的顺序 进行监控, 有效防止丟包、 乱序现象, 并且在应用程序层面增加了重发机制, 在数据发送失败时, 重新发送。从而巧妙地在串口服务器与主机之间通信时, 充分利用 UDP消耗和限制少的数据传输优势,并针对丟包乱序的不足进行改 进, 通过在传输链路层面和应用程序层面进行分级控制, 确保数据传输的可 靠性。 In the embodiment of the present invention, reliable UDP transmission is used at the transmission link layer to monitor the order of UDP packets, effectively preventing packet loss and out-of-order, and adding a retransmission mechanism at the application level. When data transmission fails, Resend. Therefore, when communicating between the serial server and the host, the UDP consumption and the limited data transmission advantages are fully utilized, and the shortage of packet loss is improved, and hierarchical control is performed at the transmission link level and the application level. Ensure the reliability of data transmission.
在执行步骤 S101之前,还包括建立串口服务器与主机之间的数据传输通 道, 具体可以是, 通过网口建立所述串口服务器上的物理串口与所述主机的 虚拟串口的对应关系, 以及根据所述对应关系建立所述串口服务器上的物理 串口与所述主机上的虚拟串口之间的传输通道。 这样, 串口服务器在接收到 一串口的数据时,即可将其经对应的传输通道发送至主机上对应的虚拟串口; 同理, 主机也可以将一虚拟串口上的数据经对应的传输通道发送至串口服务 器上对应的串口。 具体实现时, 可以是, 主机运行虚拟串口管理软件, 通过 发送配置命令, 通知串口服务器建立数据传输通道; 串口服务器根据配置命 令中的配置参数, 设置串口, 将串口与主机上的虚拟串口对应, 并调用可靠Before performing step S101, the method further includes: establishing a data transmission channel between the serial port server and the host, where the network port is configured to establish a correspondence between the physical serial port on the serial port server and the virtual serial port of the host, and The corresponding relationship establishes a transmission channel between the physical serial port on the serial server and the virtual serial port on the host. In this way, the serial server is receiving When the data of a serial port is sent, it can be sent to the corresponding virtual serial port on the host through the corresponding transmission channel. Similarly, the host can also send the data on a virtual serial port to the corresponding serial port on the serial server through the corresponding transmission channel. . In the specific implementation, the host runs the virtual serial port management software, and sends a configuration command to notify the serial server to establish a data transmission channel. The serial server sets the serial port according to the configuration parameters in the configuration command, and associates the serial port with the virtual serial port on the host. And call reliable
UDP的接口, 创建链路, 然后将操作结果通知主机上的虚拟串口管理软件, 从而在串口服务器和主机侧都建立起串口与虚拟串口的对应关系, 串口服务 器在经串口接收到串口数据后, 根据本地维护的所述对应关系, 确定所述串 口数据发向的虚拟串口, 然后将所述串口数据经网口发送至网络侧, 主机通 过网口从网络侧接收到串口数据后, 根据本地维护的所述对应关系, 将所述 串口数据发送至对应的虚拟串口, 同理, 主机侧根据所述对应关系, 确定虚 拟串口的数据发向的串口,然后将所述虚拟串口的数据经网口发送至网络侧, 串口服务器通过网口从网络侧接收到所述虚拟串口的数据后, 根据本地维护 的所述对应关系, 将所述虚拟串口的数据发送至对应的串口, 从而实现串口 服务器上的物理串口与主机建立的虚拟串口之间的传输通道。 UDP interface, create a link, and then notify the virtual serial port management software on the host, so that the serial port and the virtual serial port are established on the serial server and the host side. After the serial server receives the serial port data through the serial port, Determining, according to the corresponding relationship of the local maintenance, the virtual serial port to which the serial port data is sent, and then sending the serial port data to the network side through the network port, after the host receives the serial port data from the network side through the network port, according to local maintenance The corresponding relationship is sent to the corresponding virtual serial port. Similarly, the host side determines the serial port to which the data of the virtual serial port is sent according to the corresponding relationship, and then passes the data of the virtual serial port to the network port. After being sent to the network side, the serial server receives the data of the virtual serial port from the network side through the network port, and sends the data of the virtual serial port to the corresponding serial port according to the corresponding relationship of the local maintenance, thereby implementing the serial port server. The transmission channel between the physical serial port and the virtual serial port established by the host.
对于通过所述传输通道进行通讯的上层应用程序的数据而言, 见到的是 一条可靠的通讯链路,该链路由 UDP承载。至于该链路之下的网络环境状况, 对上层不可见, 本发明对此不需考虑。  For the data of the upper application communicating through the transmission channel, what is seen is a reliable communication link, which is carried by UDP. As for the network environment under the link, it is not visible to the upper layer, and the present invention does not need to be considered.
在执行步骤 S102时, 可以包括: 将数据封装为 UDP包, 所述 UDP包中 包括包序号。 在具体执行数据封装时, 可以在 UDP包中增加一可靠 UDP首 部, 其中包含确保 UDP包按序正确传输的包序号, 在执行步骤 S103时, 还 包括, 在接收到应答后, 从中获取包序号, 如果所述包序号与发送的数据的 包序号相同, 则认为收到与所发送数据对应的应答。 以及, 在执行步骤 S104 时, 还包括, 在接收到对端发送来的 UDP包后, 从中获取包序号, 向对端发 送包含所述包序号的应答。  When performing step S102, the method may include: encapsulating the data into a UDP packet, where the UDP packet includes a packet sequence number. When the data encapsulation is performed, a reliable UDP header may be added to the UDP packet, where the packet sequence number for ensuring that the UDP packet is correctly transmitted in sequence is included. When performing step S103, the method further includes: after receiving the response, obtaining the packet sequence number from the packet. If the packet sequence number is the same as the packet sequence number of the transmitted data, it is considered that a response corresponding to the transmitted data is received. And when the step S104 is performed, the method further includes: after receiving the UDP packet sent by the peer end, obtaining a packet sequence number from the peer end, and sending a response including the packet sequence number to the peer end.
在另一实施例中, 所述可靠 UDP首部中还可以包含其他信息, 用于进一 步确保 UDP包可靠传输。例如,还可以包含包类型,用于对包类型进行校验。 再例如, 还可以包含 >¾文长度、传输流量控制信息等这类流量控制相关信息。 又例如, 还可以包含应答序号, 在接收到 UDP包后, 获取其中的应答序号, 返回包含所述应答序号的应答, 从而校验应答是否为 UDP包对应的应答。 在执行步骤 S102时,还可以在应用程序层面, 通过增加控制信息对不符 合要求的数据进行过滤, 从而进一步确保数据传输的可靠性。 所述控制信息, 可以是例如校验和等信息。 相应地, 在执行步骤 S104时, 还包括, 在接收到 对端发送来的 UDP包后, 还根据所述 UDP包中的控制信息, 对所述 UDP包 中的数据进行验证, 如果验证通过, 才向对端发送对应的应答。 In another embodiment, the reliable UDP header may further include other information for further ensuring reliable transmission of the UDP packet. For example, you can also include a package type to verify the package type. For example, it is also possible to include flow control related information such as >3⁄4 text length, transmission flow control information, and the like. For another example, the response sequence number may also be included, and after receiving the UDP packet, the response sequence number is obtained. A response including the response sequence number is returned, thereby verifying whether the response is a response corresponding to the UDP packet. When step S102 is performed, data that does not meet the requirements may be filtered by adding control information at the application level, thereby further ensuring reliability of data transmission. The control information may be information such as a checksum. Correspondingly, when performing step S104, the method further includes: after receiving the UDP packet sent by the peer end, verifying, according to the control information in the UDP packet, the data in the UDP packet, if the verification succeeds, The corresponding response is sent to the peer.
本发明主要应用于串口数据服务器的物理串口与主机建立的虚拟串口之 间传输串口数据。 考虑到串口服务器发出的数据除了串口数据之外, 还有其 他以太网相关的数据, 服务器管理数据等其他数据, 为了将串口数据与这些 数据进行隔离, 较佳地, 可以使用特定的虚拟局域网 VLAN标识来标识所述 串口数据。 相应的, 在执行步骤 S102时, 还使用虚拟局域网 VLAN标识来 标识所述串口数据, 在执行步骤 S104时, 在接收到串口数据后, 如判断出其 中包含 VLAN标识, 才发送与该串口数据对应的应答。  The invention is mainly applied to transmitting serial port data between a physical serial port of a serial port data server and a virtual serial port established by a host. Considering that the data sent by the serial server is in addition to the serial port data, there are other Ethernet-related data, server management data and other data. In order to isolate the serial port data from the data, preferably, a specific virtual local area network VLAN can be used. The identifier identifies the serial port data. Correspondingly, when performing step S102, the virtual local area network (VLAN) VLAN identifier is used to identify the serial port data. After performing the step S104, after receiving the serial port data, if it is determined that the VLAN identifier is included, the corresponding serial port data is sent. Response.
其中, 串口服务器与主机之间通信可以是双向的, 即, 既可以由串口服 务器向主机发送数据, 也可以由主机向串口服务器发送数据, 均适用于上述 方法。  The communication between the serial port server and the host device may be bidirectional, that is, the data may be sent from the serial server to the host, or the host may send data to the serial server, which is applicable to the foregoing method.
为了进一步说明本发明实施方式, 参见图 2, 该图示出了本发明实施例 串口服务器与主机之间进行数据传输的过程,在两者之间的传输通道建立后, 串口服务器将待发送的数据緩存, 然后封装所述数据, 包括: 将所述数据封 装为 UDP包, 在所述 UDP包中增加控制信息头部, 在所述 UDP包中增加可 靠 UDP头部, 为所述 UDP包添加 UDP头部, 然后将封装好的 UDP包发送 至网络侧; 主机侧接收到所述 UDP包后, 剥离 UDP头部, 根据可靠 UDP头 部判断数据包的次序是否正确,根据控制信息头部判断 UDP包中封装的数据 是否符合要求, 如果 UDP包的次序正确, 且内容符合要求, 则返回对应的应 答; 串口服务器在发送数据后, 监测一预设时间内是否能收到对应的应答, 如果不能, 则启动重发机制, 如图 3所示, 重新发送数据, 确保主机侧接收 正确。 主机向串口服务器发送数据的过程相同, 此处不再赘述。 为了实现上述方法, 本发明实施例还提供了一种数据传输装置, 用于串 口服务器与主机之间通信, 如图 4所示, 包括: To further illustrate the embodiments of the present invention, referring to FIG. 2, the figure shows a process of data transmission between a serial port server and a host according to an embodiment of the present invention. After the transmission channel between the two is established, the serial server will be sent. Data caching, and then encapsulating the data, includes: encapsulating the data into a UDP packet, adding a control information header to the UDP packet, adding a reliable UDP header to the UDP packet, adding the UDP packet to the UDP packet The UDP header then sends the encapsulated UDP packet to the network side. After receiving the UDP packet, the host side strips the UDP header, determines whether the order of the data packet is correct according to the reliable UDP header, and determines according to the control information header. Whether the data encapsulated in the UDP packet meets the requirements. If the order of the UDP packets is correct and the content meets the requirements, the corresponding response is returned. After the serial server sends the data, it can monitor whether the corresponding response can be received within a preset time. If not, the retransmission mechanism is started. As shown in Figure 3, the data is resent, ensuring that the host side receives it correctly. The process of sending data to the serial server by the host is the same and will not be described here. In order to implement the foregoing method, the embodiment of the present invention further provides a data transmission apparatus, which is used for communication between a serial port server and a host, as shown in FIG. 4, including:
数据发送模块, 其设置成: 在发送数据时, 对所述数据进行緩存; 釆用 可靠用户数据包协议(RUDP )封装所述数据后将其发送出去; 在发送所述数 据后的一预设时间范围内没有收到与所发送数据对应的应答, 则重新发送封 装后的数据; 以及  a data sending module, configured to: cache the data when transmitting data; and package the data by using a reliable user data packet protocol (RUDP); and send a preset after sending the data Resending the encapsulated data without receiving a response corresponding to the transmitted data within the time range;
数据接收应答模块, 其设置成在接收到数据后, 发送与所接收到的数据 对应的应答。  A data receiving response module configured to transmit a response corresponding to the received data after receiving the data.
其中, 所述数据发送模块是设置成在釆用 RUDP封装数据时, 将数据封 装为 UDP包, 所述 UDP包中包括包序号。 所述数据接收应答模块在接收到 UDP包后, 从中获取包序号, 发送包含所述包序号的应答。 所述数据发送模 块在接收到应答后, 从中获取包序号, 如果所述包序号与其发送的数据的包 序号相同, 则认为收到与所发送数据对应的应答。  The data sending module is configured to encapsulate data into a UDP packet when the data is encapsulated by RUDP, and the UDP packet includes a packet sequence number. After receiving the UDP packet, the data receiving response module obtains the packet sequence number from the packet, and sends a response including the packet sequence number. After receiving the response, the data sending module obtains the packet sequence number from the packet, and if the packet sequence number is the same as the packet sequence number of the data transmitted, it is considered that the response corresponding to the transmitted data is received.
较佳地, 所述 UDP包中还包括控制信息。 所述数据接收应答模块在接收 到对端发送来的 UDP包后, 还根据所述 UDP包中的控制信息, 对所述 UDP 包中的数据进行验证, 如果验证通过, 才发送与该 UDP包对应的应答。  Preferably, the UDP packet further includes control information. After receiving the UDP packet sent by the peer end, the data receiving response module further verifies the data in the UDP packet according to the control information in the UDP packet, and if the verification succeeds, the UDP packet is sent. Corresponding response.
其中, 所述数据是指串口数据。 较佳地, 所述数据发送模块在发送串口 数据时, 还使用虚拟局域网 VLAN标识来标识所述串口数据。 所述数据接收 应答模块在接收到串口数据后, 如判断出其中包含 VLAN标识, 才发送与该 串口数据对应的应答。 其中, 所述数据发送模块还设置成: 通过网口建立所述串口服务器上的 物理串口与所述主机的虚拟串口的对应关系; 以及, 根据所述对应关系建立 所述串口服务器上的物理串口与所述主机上的虚拟串口之间的传输通道。 在串口服务器上加载本发明数据发送模块和接收应答模块, 在主机上也 加载本发明数据发送模块和接收应答模块, 能够通过分级控制的方式, 有效 确保两者之间的串口数据双向传输的可靠性。  The data refers to serial port data. Preferably, the data sending module further uses the virtual local area network (VLAN) VLAN identifier to identify the serial port data when transmitting the serial port data. After receiving the serial port data, the data receiving response module sends a response corresponding to the serial port data if it is determined that the VLAN identifier is included therein. The data sending module is further configured to: establish, by using a network port, a correspondence between a physical serial port on the serial port server and a virtual serial port of the host; and establish a physical serial port on the serial port server according to the corresponding relationship A transmission channel between the virtual serial port on the host. The data sending module and the receiving response module of the present invention are loaded on the serial server, and the data sending module and the receiving response module of the present invention are also loaded on the host, which can effectively ensure the reliable transmission of the serial data between the two by the hierarchical control mode. Sex.
当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的 些相应的改变和变形都应属于本发明所附的权利要求的保护范围。 Of course, the invention may have other various embodiments without departing from the spirit and spirit of the invention. All such changes and modifications are intended to be included within the scope of the appended claims.
工业实用性 Industrial applicability
与现有技术相比, 本发明能够在虚拟串口与对应的物理串口间通过增加 可靠性机制, 实现可靠传输。  Compared with the prior art, the present invention can achieve reliable transmission by adding a reliability mechanism between the virtual serial port and the corresponding physical serial port.

Claims

权 利 要 求 书 Claim
1、 一种数据传输方法, 用于串口服务器与主机之间通信, 该方法包括: 在向对端发送数据时, 对所述数据进行緩存; 釆用可靠用户数据包协议 RUDP封装所述数据后发送出去; 在发送所述数据后的一预设时间范围内如 果没有收到与所发送的数据对应的应答, 则重新发送封装后的数据; 以及 在接收到对端发送来的数据后,向对端发送与所接收的数据对应的应答。 A data transmission method, configured for communication between a serial port server and a host, the method comprising: caching the data when transmitting data to the opposite end; and encapsulating the data by using a reliable user data packet protocol RUDP Transmitting; resending the encapsulated data if a response corresponding to the transmitted data is not received within a preset time range after transmitting the data; and after receiving the data sent by the opposite end, The peer sends a response corresponding to the received data.
2、 如权利要求 1所述的方法, 其中, 2. The method of claim 1 wherein
釆用 RUDP封装所述数据的步骤包括: 将该数据封装为用户数据包协议 UDP包, 所述 UDP包中包括包序号;  The step of encapsulating the data by using RUDP includes: encapsulating the data into a user data packet protocol UDP packet, where the UDP packet includes a packet sequence number;
向对端发送应答的步骤包括: 在接收到对端发送来的 UDP包后, 从所接 收的 UDP包中获取包序号, 并向对端发送包含所述包序号的应答; 以及  The step of sending a response to the peer end includes: after receiving the UDP packet sent by the peer end, obtaining a packet sequence number from the received UDP packet, and sending a response including the packet sequence number to the peer end;
该方法还包括: 在接收到应答后, 从所接收的应答中获取包序号, 如果 所获取的包序号与所发送的数据的包序号相同, 则认为收到与所发送的数据 对应的应答。  The method further includes: after receiving the response, obtaining a packet sequence number from the received response, and if the obtained packet sequence number is the same as the packet sequence number of the transmitted data, it is considered that a response corresponding to the transmitted data is received.
3、 如权利要求 2所述的方法, 其中, 3. The method of claim 2, wherein
所述 UDP包中还包括控制信息;  The UDP packet further includes control information;
该方法还包括: 在接收到对端发送来的 UDP包后, 根据所述 UDP包中 的控制信息, 对所述 UDP包中的数据进行验证, 如果验证通过, 才向对端发 送应答。  The method further includes: after receiving the UDP packet sent by the peer end, verifying the data in the UDP packet according to the control information in the UDP packet, and sending a response to the peer end if the verification succeeds.
4、 如权利要求 1所述的方法, 其中, 4. The method of claim 1, wherein
所述数据是指串口数据;  The data refers to serial port data;
该方法还包括: 在发送所述串口数据时, 使用虚拟局域网 VLAN标识来 标识所述串口数据;  The method further includes: when transmitting the serial port data, using a virtual local area network VLAN identifier to identify the serial port data;
向对端发送与所接收的数据对应的应答的步骤包括: 在接收到串口数据 后, 如判断出所接收的串口数据中包含 VLAN标识, 则向对端发送与该串口 数据对应的应答。 The step of sending a response corresponding to the received data to the peer end includes: after receiving the serial port data, if it is determined that the received serial port data includes a VLAN identifier, the response corresponding to the serial port data is sent to the opposite end.
5、 如权利要求 1所述的方法, 还包括: 5. The method of claim 1 further comprising:
通过网口建立所述串口服务器上的物理串口与所述主机的虚拟串口的对 应关系; 以及  Establishing, by the network port, a correspondence between a physical serial port on the serial server and a virtual serial port of the host;
根据所述对应关系建立所述串口服务器上的物理串口与所述主机上的虚 拟串口之间的传输通道。  And establishing, according to the correspondence, a transmission channel between the physical serial port on the serial server and the virtual serial port on the host.
6、 一种数据传输装置, 用于串口服务器与主机之间通信, 该数据传输装 置包括: 6. A data transmission device, configured to communicate between a serial port server and a host, the data transmission device comprising:
数据发送模块, 其设置成: 在发送数据时, 对所述数据进行緩存; 釆用 可靠用户数据包协议 RUDP封装所述数据后发送出去; 以及, 在发送所述数 据后的一预设时间范围内如果没有收到与所发送的数据对应的应答, 则重新 发送封装后的数据; 以及  a data sending module, configured to: cache the data when transmitting data; and send the data after the data is encapsulated by a reliable user data packet protocol RUDP; and, a preset time range after the data is sent If the response corresponding to the transmitted data is not received, the encapsulated data is resent;
数据接收应答模块, 其设置成在接收到数据后, 发送与所接收到的数据 对应的应答。  A data receiving response module configured to transmit a response corresponding to the received data after receiving the data.
7、 如权利要求 6所述的装置, 其中, 7. The apparatus according to claim 6, wherein
所述数据发送模块是设置成在釆用 RUDP封装所述数据时, 将该数据封 装为用户数据包协议 UDP包, 所述 UDP包中包括包序号;  The data sending module is configured to encapsulate the data into a user data packet protocol UDP packet when the data is encapsulated by RUDP, where the UDP packet includes a packet sequence number;
所述数据接收应答模块是设置成通过如下方式发送应答: 在接收到 UDP 包后, 从所接收的 UDP包中获取包序号, 并发送包含所述包序号的应答; 以 及  The data receiving response module is configured to send a response by: after receiving the UDP packet, obtaining a packet sequence number from the received UDP packet, and transmitting a response including the packet sequence number; and
所述数据发送模块还设置成: 在接收到应答后, 从所接收的应答中获取 包序号, 如果所获取的包序号与所发送的数据的包序号相同, 则认为收到与 所发送的数据对应的应答。  The data sending module is further configured to: after receiving the response, obtain a packet sequence number from the received response, and if the obtained packet sequence number is the same as the packet sequence number of the sent data, the data is considered to be received and sent. Corresponding response.
8、 如权利要求 7所述的装置, 其中, 8. The apparatus according to claim 7, wherein
所述 UDP包中还包括控制信息;  The UDP packet further includes control information;
所述数据接收应答模块还设置成: 在接收到对端发送来的 UDP包后, 根 据所述 UDP包中的控制信息, 对所述 UDP包中的数据进行验证, 如果验证 通过, 才发送应答。 The data receiving response module is further configured to: after receiving the UDP packet sent by the peer end, verify the data in the UDP packet according to the control information in the UDP packet, and send the response if the verification succeeds .
9、 如权利要求 6所述的装置, 其中, 9. The apparatus according to claim 6, wherein
所述数据是指串口数据;  The data refers to serial port data;
所述数据发送模块还设置成在发送串口数据时, 使用虚拟局域网 VLAN 标识来标识所述串口数据;  The data sending module is further configured to use the virtual local area network VLAN identifier to identify the serial port data when sending serial port data;
所述数据接收应答模块是设置成通过如下方式发送与所接收到的数据对 应的应答: 在接收到串口数据后, 如判断出所接收的串口数据中包含 VLAN 标识, 则发送与该串口数据对应的应答。  The data receiving response module is configured to send a response corresponding to the received data by: after receiving the serial port data, if it is determined that the received serial port data includes a VLAN identifier, sending, corresponding to the serial port data, Answer.
10、 如权利要求 6所述的装置, 其中, 10. The apparatus according to claim 6, wherein
所述数据发送模块还设置成: 通过网口建立所述串口服务器上的物理串 口与所述主机的虚拟串口的对应关系; 以及, 根据所述对应关系建立所述串 口服务器上的物理串口与所述主机上的虚拟串口之间的传输通道。  The data sending module is further configured to: establish a correspondence between a physical serial port on the serial port server and a virtual serial port of the host through a network port; and establish a physical serial port and a serial port on the serial port server according to the corresponding relationship The transmission channel between the virtual serial ports on the host.
PCT/CN2011/082714 2010-12-10 2011-11-23 Data transmission method and device WO2012075885A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010585293.6A CN102571689B (en) 2010-12-10 2010-12-10 Data transmission method and device
CN201010585293.6 2010-12-10

Publications (1)

Publication Number Publication Date
WO2012075885A1 true WO2012075885A1 (en) 2012-06-14

Family

ID=46206609

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/082714 WO2012075885A1 (en) 2010-12-10 2011-11-23 Data transmission method and device

Country Status (2)

Country Link
CN (1) CN102571689B (en)
WO (1) WO2012075885A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109842601A (en) * 2017-11-29 2019-06-04 中国科学院沈阳自动化研究所 Manned underwater vehicle serial port data acquisition and retransmission unit

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007997A (en) * 2013-02-22 2014-08-27 中兴通讯股份有限公司 Virtual machine security group configuration method and device
CN103546368B (en) * 2013-11-08 2017-01-04 浙江钢为网络科技有限公司 Data transmission method, device, instant communication method and system
CN105512063A (en) * 2014-09-24 2016-04-20 中兴通讯股份有限公司 Method and system for data transmission
CN107920064A (en) * 2017-11-02 2018-04-17 河北科技大学 A kind of multiple mobile robot's communication means based on RUDP
CN108377232B (en) * 2018-01-29 2020-11-27 杭州鸿泉物联网技术股份有限公司 Multi-protocol communication method and device, electronic equipment and readable storage medium
CN109274748B (en) * 2018-09-30 2021-06-25 西安科技大学 Reliable data transmission method and power equipment monitoring data transmission method applying same
CN114640724B (en) * 2020-11-30 2023-11-28 腾讯科技(深圳)有限公司 RUDP-based data transmission method, device, equipment and computer storage medium
CN112799988A (en) * 2020-12-28 2021-05-14 杭州涂鸦信息技术有限公司 Binding method, device and medium for virtual serial port and serial port communication board
CN113542685B (en) * 2021-07-13 2024-02-06 安徽睿极智能科技有限公司 Real-time ultra-high definition video transmission method based on reliable UDP
CN114095129A (en) * 2021-11-17 2022-02-25 厦门勇仕网络技术股份有限公司 Communication method and system for mobile terminal game network transmission

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030018793A1 (en) * 2001-07-19 2003-01-23 Oscar Mora Reliable transport layer protocol in low performance 8-bit microcontrollers
CN101184052A (en) * 2007-12-25 2008-05-21 北京广视通达网络技术有限公司 Congestion control method of implementing reliable UDP transmission
KR20090117490A (en) * 2008-05-09 2009-11-12 주식회사 네멕스 System for transmitting packet data, method for transmitting thereof
CN101800652A (en) * 2010-02-04 2010-08-11 深圳市金宏威实业发展有限公司 Mode switching method and system of serial port and Ethernet and industrial Ethernet switch

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030018793A1 (en) * 2001-07-19 2003-01-23 Oscar Mora Reliable transport layer protocol in low performance 8-bit microcontrollers
CN101184052A (en) * 2007-12-25 2008-05-21 北京广视通达网络技术有限公司 Congestion control method of implementing reliable UDP transmission
KR20090117490A (en) * 2008-05-09 2009-11-12 주식회사 네멕스 System for transmitting packet data, method for transmitting thereof
CN101800652A (en) * 2010-02-04 2010-08-11 深圳市金宏威实业发展有限公司 Mode switching method and system of serial port and Ethernet and industrial Ethernet switch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
T. BOVA ET AL.: "IETF Intemet-Draft, Reliable UDP Protocol", 25 February 1999 (1999-02-25), pages 3 - 16, Retrieved from the Internet <URL:http://tools.ietf.org/id/draft-ietf-sigtran-reliable-udp-OO.txt> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109842601A (en) * 2017-11-29 2019-06-04 中国科学院沈阳自动化研究所 Manned underwater vehicle serial port data acquisition and retransmission unit
CN109842601B (en) * 2017-11-29 2023-09-19 中国科学院沈阳自动化研究所 Manned submersible serial port data acquisition and forwarding device

Also Published As

Publication number Publication date
CN102571689B (en) 2014-12-31
CN102571689A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
WO2012075885A1 (en) Data transmission method and device
US11876880B2 (en) TCP processing for devices
KR100943551B1 (en) Security protocols on incompatible transports
US10498831B2 (en) Communication sessions at a CoAP protocol layer
KR101048865B1 (en) Transmission layer control device for improving transmission layer performance and packet transmission method that can guarantee transmission speed and reliability at the same time
CN107104936B (en) Establish the method and system of full-duplex bi-directional communication
US20100183024A1 (en) Simplified rdma over ethernet and fibre channel
US20090103515A1 (en) System and method for preserving socket connections over a wireless network
Culley et al. Marker PDU aligned framing for TCP specification
EP1892887A1 (en) Communication method between communication devices and communication apparatus
WO2005104488A1 (en) Methods and apparatus for using a static key or a dynamic key and for reducing tcp frame transmit latency
WO2014037760A1 (en) Method and system for increasing data flow transmission
KR102046792B1 (en) Method of transporting data from sending node to destination node
WO2005119486A2 (en) An internet protocol for the delivery of complex digital media content
Thornburgh Adobe's Secure Real-Time Media Flow Protocol
CN102055774A (en) Packet processing-based HTTP server and data processing method thereof
US11038994B2 (en) Technique for transport protocol selection and setup of a connection between a client and a server
Seggelmann Sctp: Strategies to secure end-to-end communication
WO2012155703A1 (en) Link parameter autonegotiation method, terminal and system based on hdlc protocol
JP2004187099A (en) Communication control method, communication system and communication equipment
JP5162641B2 (en) Automatic configuration system for media adapter device and router device
Ko et al. Internet Small Computer System Interface (iSCSI) Extensions for Remote Direct Memory Access (RDMA)
CN106385409B (en) A kind of processing method and processing device of TCP message
KR100855347B1 (en) Message transmitting system based on udp control and method for the same
Grunberger et al. Analysis and test results of tunneling IP over NFCIP-1

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: 11846431

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11846431

Country of ref document: EP

Kind code of ref document: A1