WO2011079743A1 - 一种数据发送方法和相关设备 - Google Patents

一种数据发送方法和相关设备 Download PDF

Info

Publication number
WO2011079743A1
WO2011079743A1 PCT/CN2010/080158 CN2010080158W WO2011079743A1 WO 2011079743 A1 WO2011079743 A1 WO 2011079743A1 CN 2010080158 W CN2010080158 W CN 2010080158W WO 2011079743 A1 WO2011079743 A1 WO 2011079743A1
Authority
WO
WIPO (PCT)
Prior art keywords
tcp
data
server
client
tcp packet
Prior art date
Application number
PCT/CN2010/080158
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 深圳市同洲电子股份有限公司
Publication of WO2011079743A1 publication Critical patent/WO2011079743A1/zh

Links

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/19Flow control; Congestion control at layers above the network layer
    • H04L47/193Flow control; Congestion control at layers above the network layer at the transport layer, e.g. TCP related
    • 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/163In-band adaptation of TCP data exchange; In-band control procedures

Definitions

  • the present invention relates to the field of communications, and in particular, to a data sending method and related equipment.
  • TCP Transport Control Protocol
  • Connection-oriented means that a normal TCP transmission needs to be done by establishing a specific virtual circuit connection between the TCP client and the TCP server. This TCP connection can be implemented using the "three-way handshake" process.
  • the client sends a TCP message with the synchronization signal character (SYN, SYNchronize) to the server. This is the message 1 during the three-way handshake.
  • the server responds to the client with an acknowledgment (ACK) flag and a SYN flag message, which is the second message in the three-way handshake.
  • ACK acknowledgment
  • SYN flag message which is the second message in the three-way handshake.
  • the message indicates a response to the client's SYN message.
  • the flag SYN is sent to the client to ask if the client is ready for data communication.
  • the TCP three-way handshake packet capture result is shown in Figure 1.
  • the first handshake packet capture is 42:
  • the top connection initiator is the client ( 10.10.99.124 )
  • the second handshake 43 The monthly server (192.168.99.254) accepts the connection and sends a SYN+ACK packet to the client.
  • the third handshake 44 After receiving the packet No. 43, the client responds with an ACK to the server, and the three-way handshake is completed, and the TCP connection is established.
  • the next 46 is the data interaction after the connection is established. As can be seen from Figure 1, the payload length in the third hand grip 44 is zero.
  • an embodiment of the present invention provides a data sending method, which may include: a client sends a first TCP packet with a SYN flag to a server; and the server receives the first TCP packet.
  • a second TCP packet with an ACK flag and a SYN flag After receiving the second TCP packet, the client sends a third TCP with an ACK flag to the server.
  • the packet is used to establish a TCP connection, and the third TCP packet further includes a payload of the data.
  • the method further includes: if the payload of the data in the third TCP packet is a part of the data payload, Then, the client continues to send the TCP packet carrying the other payload of the data to the server on the TCP connection.
  • the method can be used in a browser application, where the server is a web server, and when the client accesses the web server, the client establishes at least two TCP connections.
  • the embodiment of the present invention further provides a client, including: a first sending unit, configured to send a first TCP packet with a SYN flag to a server; and a second receiving unit, configured to receive the server After receiving the first TCP packet, returning a second TCP packet with an ACK flag and a SYN flag, and sending, by the third sending unit, the second TCP packet to the server after receiving the second TCP packet
  • the third TCP packet with the ACK flag is used to establish a TCP connection, wherein the third TCP packet further includes a payload of the data.
  • the client may further include a data sending unit, configured to determine whether the payload of the data in the third TCP packet is the entire payload of the data, and when the determination result is no, establish the TCP connection. After completion, the TCP packet carrying the other payload of the data is continuously sent to the server through the TCP connection.
  • a data sending unit configured to determine whether the payload of the data in the third TCP packet is the entire payload of the data, and when the determination result is no, establish the TCP connection. After completion, the TCP packet carrying the other payload of the data is continuously sent to the server through the TCP connection.
  • the embodiment of the present invention further provides a server, including: a first receiving unit, configured to receive a first TCP packet with a SYN flag sent by a client, and a second sending unit, configured to receive the first TCP After the message, the second TCP packet with the ACK flag and the SYN flag is returned to the client, and the third receiving unit is configured to receive the band sent by the client after receiving the second TCP packet.
  • a server including: a first receiving unit, configured to receive a first TCP packet with a SYN flag sent by a client, and a second sending unit, configured to receive the first TCP After the message, the second TCP packet with the ACK flag and the SYN flag is returned to the client, and the third receiving unit is configured to receive the band sent by the client after receiving the second TCP packet.
  • a third TCP packet having an ACK flag, and establishing a TCP connection, wherein the third TCP packet further includes a payload of the data.
  • the server may further include a data receiving unit, configured to: when the payload of the data in the third TCP packet is a partial payload of the data, receive, on the TCP connection, the carrying that the client continues to send. A TCP packet with other payloads of the data.
  • the server may be a web server in a browser application, and when the client accesses the web server, the client establishes at least two TCP connections.
  • the third handshake packet in the "three-way handshake" carries the data payload at the same time, which improves the efficiency of data transmission, saves the time of data transmission, and improves the user experience.
  • FIG. 1 is a schematic diagram of a TCP three-way handshake packet capture result in the prior art
  • FIG. 2 is a schematic flowchart of a data sending method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a process of a client actively initiating a TCP connection according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a client according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a server according to an embodiment of the present invention. detailed description
  • the third handshake packet when the TCP connection is established has a payload length of 0. Therefore, the embodiment of the present invention carries data in the third handshake packet, which can confirm the handshake information and send data by the way, save download time, improve download speed, and improve user experience.
  • Step 101 The client sends a first TCP packet with a SYN flag to the server.
  • Step 102 After receiving the first TCP packet, the server returns a second TCP packet with an ACK flag and a SYN flag to the client.
  • Step 103 After receiving the second TCP packet, the client sends a third TCP packet with an ACK flag to the server to establish a TCP connection, where the third TCP packet is further included. The load of the data.
  • the payload of the data refers to part or all of the data payload sent on the TCP connection established this time, and the payload of the data to be sent may be sent in this step, the flow may not include Step 104:
  • the data to be sent includes the other payloads in addition to the payload sent in this step, and the process further includes step 104, so that the client continues to send subsequent data payloads on the established TCP connection.
  • the payload of the above data may be placed after the TCP header of the third TCP packet.
  • Step 104 If the payload of the data in the third TCP packet is a part of the payload of the data, the client continues to send the TCP carrying the other payload of the data to the server on the TCP connection. Message.
  • the other loads described herein refer to other loads in the data to be transmitted than the ones sent in step 103.
  • the third TCP message is equivalent to both confirming the connection and carrying the data that needs to be transmitted.
  • the above method can be used in a browser application, and the server is a corresponding web server.
  • the client accesses a webpage at most, and at least a dozen TCP connections are established.
  • the webpage opening speed can be greatly accelerated, and the user experience is very good. That is, the more the number of connections that need to be established at one time and the poor network conditions, the more obvious the advantages of this method.
  • socket descriptor Name a pointer to the address structure to be connected
  • a buffer is added compared to the prior art, and the buffer is empty when it is the same as the original flow. Otherwise, in the last handshake, the data of the Bufferlen length in the bufffer is sent out in the handshake packet.
  • the embodiment of the present invention further provides a client 4 and a server 5.
  • the client 4 includes: a first sending unit 41, configured to send a first TCP packet with a SYN flag to the server 5, and a second receiving unit 42, configured to receive, by the server 5, the first TCP.
  • the packet is returned to the second TCP packet with the ACK flag and the SYN flag.
  • the third sending unit 43 is configured to send the ACK flag to the server 5 after receiving the second TCP packet.
  • the third TCP packet is used to establish a TCP connection, and the payload of the data is further included in the third TCP packet.
  • the data sending unit 44 is configured to determine whether the payload of the data in the third TCP packet is the entire payload of the data, and when the determination result is no, after the TCP connection is established, the TCP connection is used. Server 5 continues to send TCP messages carrying other payloads of the data.
  • the data payload to be sent can be sent once, then the client 4 may not include the data sending unit 44; if the data payload to be sent needs to be sent in batches, the client 4 includes a data sending unit 44 for the client. 4 Continue to send data on the established TCP connection.
  • the server 5 includes: a first receiving unit 51, configured to receive a first TCP packet with a SYN flag sent by the client 4, and a second sending unit 52, configured to receive the first TCP packet.
  • the second TCP message with the ACK flag and the SYN flag is returned to the client 4, and the third receiving unit 53 is configured to receive the band sent by the client 4 after receiving the second TCP packet.
  • a third TCP packet having an ACK flag, and establishing a TCP connection wherein the third TCP packet
  • the payload of the data is also included herein. In some embodiments, the above payload may be placed after the TCP header of the third TCP message.
  • the data receiving unit 54 is configured to: when the payload of the data in the third TCP packet is a partial payload of the data, receive, on the TCP connection, another identifier that is continuously sent by the client 4 and carries the data. Loaded TCP packets.
  • the data payload to be sent may be sent once in the third TCP packet, and the server 5 may not include the data receiving unit 54; if the data payload to be sent is not sent once in the third TCP packet, The server 5 includes a data receiving unit 54 for the client 4 to continue transmitting data over the established TCP connection.
  • the server may be a web server in a browser application, and when the client accesses the web server, the client establishes at least two TCP connections.
  • the third handshake packet in the "three-way handshake" carries the data payload at the same time, which improves the efficiency of data transmission, saves the data transmission time, and improves the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Description

一种数据发送方法和相关设备
技术领域
本发明涉及通讯领域, 尤其涉及一种数据发送方法和相关设备。
背景技术
传输控制协议(Transport Control Protocol, TCP )是一种面向连接的, 可 靠的传输层协议。 面向连接是指一次正常的 TCP传输需要通过在 TCP客户端 和 TCP服务器端建立特定的虚电路连接来完成, 这种 TCP连接可釆用 "三次 握手" 过程来实现。
"三次握手" 过程分别为:
( 1 )客户端发送一个带同步信号字符(SYN, SYNchronize )标志的 TCP 报文到服务器, 这是三次握手过程中的报文 1。
( 2 )服务器端回应客户端同时带确认符 ( ACK )标志和 SYN标志报文, 这是三次握手中的第 2个报文。 该报文表示对刚才客户端 SYN报文的回应; 同时又将标志 SYN发送给客户端, 以询问客户端是否准备好进行数据通讯。
( 3 )客户端必须再次回应服务器端一个 ACK报文, 这是报文段 3。
这样, 在 "三次握手"之后就可以建立起相应的 TCP连接, 客户端再通过 该 TCP连接向服务器发送数据。 而上述的报文段 3 (或成为第三个握手报文) 是没有载荷的, 即其载荷长度为 0。
TCP三次握手抓包结果如图 1所示。
其中, 第一次握手抓包为 42: top连接发起端即客户端( 10.10.99.124 ) 向
192.168.99.254 发送了一个 SYN 包, 等待回应。 第二次握手 43 : 月良务端 ( 192.168.99.254 )接受连接, 发送 SYN+ACK包给客户端。 第三次握手 44: 客户端收到 43号包以后, 回应 ACK给服务端, 至此三次握手完成, TCP连 接建立。 之后的 46是连接建立以后的数据交互。 从图 1可以看出, 第三次握 手包 44中的有效载荷长度为 0。
但是现有技术中的这种通过 "三次握手"来实现数据发送的方式, 会使得 TCP连接的数据传输效率较为低下。 发明内容 本发明实施例所要解决的技术问题在于,提供一种数据发送方法和相关设 备, 可以提高 TCP连接的数据传输效率。
为了解决上述技术问题, 本发明实施例提供了一种数据发送方法, 具体可 以包括: 客户端向服务器发送带有 SYN标志的第一 TCP报文; 所述服务器收 到所述第一 TCP报文后, 向所述客户端返回带有 ACK标志和 SYN标志的第 二 TCP报文; 所述客户端收到所述第二 TCP报文后, 向所述服务器发送带有 ACK标志的第三 TCP报文以建立 TCP连接, 所述第三 TCP报文中还包括所 述数据的载荷。
其中, 在向所述服务器发送带有 ACK标志的第三 TCP报文以建立 TCP 连接之后, 所述方法还包括: 若所述第三 TCP报文中的数据的载荷是该数据 的一部分载荷, 则所述客户端在所述 TCP连接上向服务器继续发送所述携带 有所述数据的其他载荷的 TCP报文。
所述方法可用于浏览器应用中, 所述服务器为网页服务器, 当所述客户端 访问所述网页服务器时, 所述客户端建立至少两条 TCP连接。
相应地, 本发明实施例还提供了一种客户端, 包括: 第一发送单元, 用于 向服务器发送带有 SYN标志的第一 TCP报文; 第二接收单元, 用于接收所述 服务器在收到所述第一 TCP报文后向返回带有 ACK标志和 SYN标志的第二 TCP报文; 第三发送单元, 用于在收到所述第二 TCP报文后, 向所述服务器 发送带有 ACK标志的第三 TCP报文以建立 TCP连接, 其中, 所述第三 TCP 报文中还包括所述数据的载荷。 其中, 所述客户端还可包括数据发送单元, 用 于判断所述第三 TCP报文中的数据的载荷是否是该数据的全部载荷, 并当判 断结果为否时, 在所述 TCP连接建立完成后通过所述 TCP连接向服务器继续 发送携带有所述数据的其他载荷的 TCP报文。
本发明实施例还提供了一种服务器, 包括: 第一接收单元, 用于接收客户 端发送的带有 SYN标志的第一 TCP报文; 第二发送单元, 用于收到所述第一 TCP报文后,向所述客户端返回带有 ACK标志和 SYN标志的第二 TCP报文; 第三接收单元, 用于接收所述客户端在收到所述第二 TCP报文后发送的带有 ACK标志的第三 TCP报文, 并建立 TCP连接, 其中, 所述第三 TCP报文中 还包括所述数据的载荷。 其中, 所述服务器还可包括数据接收单元, 用于当所述第三 TCP报文中 的数据的载荷是该数据的部分载荷时, 在所述 TCP连接上接收所述客户端继 续发送的携带有所述数据的其他载荷的 TCP报文。
所述服务器可为浏览器应用中的网页服务器,当所述客户端访问所述网页 服务器时, 所述客户端建立至少两条 TCP连接。
在本发明实施例中, 在 "三次握手" 中的第三个握手包中同时携带了数据 载荷, 提高了数据传输的效率, 节省了数据传输的时间, 提升了用户体验。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为现有技术中 TCP三次握手抓包结果的示意图;
图 2为本发明实施例中数据发送方法的具体流程示意图;
图 3为本发明实施例中的客户端主动发起建立 TCP连接的过程示意图; 图 4为本发明实施例提供的客户端的结构示意图;
图 5为本发明实施例提供的服务器的结构示意图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
在现有技术中: 建立 TCP连接时的第三个握手报文的载荷长度为 0。 因 此, 本发明实施例在第三个握手包中携带数据, 既可以对握手信息进行确认又 可以顺便发送数据, 节约下载时间, 提高下载速度, 提升用户体验。
如图 2所示, 为本发明实施例中的数据发送方法的一个具体流程示意图。 该流程包括: 步骤 101、 客户端向服务器发送带有 SYN标志的第一 TCP报文。
步骤 102、 所述服务器收到所述第一 TCP报文后, 向所述客户端返回带有 ACK标志和 SYN标志第二 TCP报文。
步骤 103、 所述客户端收到所述第二 TCP报文后, 向所述服务器发送带有 ACK标志的第三 TCP报文以建立 TCP连接, 其中, 所述第三 TCP报文中还 包括所述数据的载荷。
其中, 所述数据的载荷是指在本次建立的 TCP连接上发送的部分或全部 的数据载荷, 并且, 若要发送的数据的载荷可在本次步骤中发送完毕, 则该流 程可不包括下述的步骤 104; 若要发送的数据除了包括本次步骤中发送的载 荷, 还包括其他的载荷, 则该流程还包括步骤 104, 以便客户端在已经建立的 TCP连接上继续发送后续数据载荷。
并且, 上述的数据的载荷可以放在第三 TCP报文的 TCP头之后。
步骤 104、 若所述第三 TCP报文中的数据的载荷是该数据的一部分载荷, 则所述客户端在所述 TCP连接上向服务器继续发送所述携带有所述数据的其 他载荷的 TCP报文。 此处描述的其他载荷, 是指要发送的数据中除步骤 103 已发送的载荷外的其他载荷。
这样, 第三 TCP报文相当于既对连接做了确认, 同时又携带了需要传送 的数据。
上述方法可用于浏览器应用中, 则服务器为相应的网页服务器。 此时, 多 数时候客户端访问一个网页至少会建立十几条 TCP连接, 运用本发明实施例 中的上述方案后, 可以大大加快网页打开的速度, 用户体验非常好。 即对于需 要一次建立的连接数越多, 网络状况不太好的情况, 此方法的优点越明显。
以下结合程序实现来描述上述步骤:
在现有技术中, TCP连接的函数原型为:
int connect( int s, const struct sockaddr *name, int namelen);
函数功能: 用来将参数 sockfd 的 socket连至参数 serv— addr指定的网络 地址。
参数说明:
s: 套接字描述符 name: 指向待连接地址结构体的指针
namelen: 结构体 sockaddr的长度
而在本发明实施例中的 TCP连接的函数原型为:
int connect( int s, const struct sockaddr *name, int namelen,char* buffer,int bufferlen);
即, 相比于现有技术增加一个 buffer, buffer为空时与原流程相同, 否则, 在最后一次握手中, 将 bufffer中的 Bufferlen长度的数据放在握手包中发送出 去。
Bufferlen: 实际数据长度
相应的, 本发明实施例中的客户端主动发起建立 TCP连接的过程可参见 图 3。
相应的, 如图 4和图 5所示, 本发明实施例还提供了一种客户端 4和服务 器 5。 该客户端 4包括: 第一发送单元 41 , 用于向服务器 5发送带有 SYN标 志的第一 TCP报文; 第二接收单元 42, 用于接收所述服务器 5在收到所述第 一 TCP报文后向返回带有 ACK标志和 SYN标志第二 TCP报文; 第三发送单 元 43 , 用于在收到所述第二 TCP报文后, 向所述服务器 5发送带有 ACK标 志的第三 TCP报文以建立 TCP连接, 其中, 所述在第三 TCP报文中后还包括 所述数据的载荷。 数据发送单元 44, 用于判断所述第三 TCP报文中的数据的 载荷是否是该数据的全部载荷, 并当判断结果为否时, 在所述 TCP连接建立 完成后通过所述 TCP连接向服务器 5继续发送携带有所述数据的其他载荷的 TCP报文。
其中, 若要发送的数据载荷可以一次发送完毕, 则该客户端 4可不包括数 据发送单元 44; 若要发送的数据载荷需要分批发送, 则该客户端 4包括数据 发送单元 44, 以便客户端 4在已经建立的 TCP连接上继续发送数据。
相应的, 该服务器 5包括: 第一接收单元 51 , 用于接收客户端 4发送的 带有 SYN标志的第一 TCP报文; 第二发送单元 52, 用于收到所述第一 TCP 报文后, 向所述客户端 4返回带有 ACK标志和 SYN标志第二 TCP报文; 第 三接收单元 53 , 用于接收所述客户端 4在收到所述第二 TCP报文后发送的带 有 ACK标志的第三 TCP报文, 并建立 TCP连接, 其中, 所述在第三 TCP报 文中还包括所述数据的载荷。 在一些实施例中, 上述的载荷可以放在第三 TCP 报文的 TCP头之后。
数据接收单元 54, 用于当所述第三 TCP报文中的数据的载荷是该数据的 部分载荷时, 在所述 TCP连接上接收所述客户端 4继续发送的携带有所述数 据的其他载荷的 TCP报文。
其中, 若要发送的数据载荷可在第三 TCP报文中一次发送完毕, 则该服 务器 5可不包括数据接收单元 54; 若要发送的数据载荷在第三 TCP报文中一 次发送不完, 则该服务器 5包括数据接收单元 54, 以便客户端 4在已经建立 的 TCP连接上继续发送数据。
其中, 该服务器可以是浏览器应用中的网页服务器, 当所述客户端访问所 述网页服务器时, 所述客户端建立至少两条 TCP连接。
通过上述对各实施例的描述可知,在 "三次握手" 中的第三个握手包中同 时携带了数据载荷, 提高了数据传输的效率, 节省了数据传输的时间, 提升了 用户体验。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到各实施 方式可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件。 基于这样的理解, 上述技术方案本质上或者说对现有技术做出贡献的部分可以 以软件产品的形式体现出来, 该计算机软件产品可以存储在计算机可读存储介 质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等)执行各个实施例或者实施例 的某些部分所述的方法。
以上所述的实施方式, 并不构成对该技术方案保护范围的限定。 任何在上 述实施方式的精神和原则之内所作的修改、 等同替换和改进等, 均应包含在该 技术方案的保护范围之内。

Claims

权 利 要 求
1. 一种数据发送方法, 其特征在于, 所述方法包括:
客户端向服务器发送带有 SYN标志的第一 TCP报文;
所述服务器收到所述第一 TCP报文后,向所述客户端返回带有 ACK标志和 SYN标志的第二 TCP报文;
所述客户端收到所述第二 TCP报文后,向所述服务器发送带有 ACK标志的 第三 TCP报文以建立 TCP连接, 其中, 所述第三 TCP报文中还包括所述数据的 载荷。
2、如权利要求 1所述的方法, 其特征在于, 在向所述服务器发送带有 ACK 标志的第三 TCP报文以建立 TCP连接之后, 所述方法还包括:
若所述第三 TCP报文中的数据的载荷是该数据的一部分载荷,则所述客户 端在所述 TCP连接上向服务器继续发送携带有所述数据的其他载荷的 TCP报 文。
3. 如权利要求 1或 2所述的方法, 其特征在于, 所述方法用于浏览器应用 中, 所述服务器为网页服务器, 当所述客户端访问所述网页服务器时, 所述客 户端建立至少两条 TCP连接。
4、 如权利要求 1或 2所述的方法, 其特征在于, 所述数据的载荷位于所述 第三 TCP报文的 TCP头之后。
5. 一种客户端, 其特征在于, 所述客户端包括:
第一发送单元, 用于向服务器发送带有 SYN标志的第一 TCP报文; 第二接收单元,用于接收所述服务器在收到所述第一 TCP报文后向返回带 有 ACK标志和 SYN标志的第二 TCP报文;
第三发送单元, 用于在收到所述第二 TCP报文后, 向所述服务器发送带有 ACK标志的第三 TCP报文以建立 TCP连接, 其中, 所述第三 TCP报文中还包括 所述数据的载荷。
6、 如权利要求 5所述的客户端, 其特征在于, 所述客户端还包括: 数据发送单元,用于判断所述第三 TCP报文中的数据的载荷是否是该数据 的全部载荷, 并当判断结果为否时, 在所述 TCP连接建立完成后通过所述 TCP 连接向服务器继续发送携带有所述数据的其他载荷的 TCP报文。
7、 如权利要求 5或 6所述的客户端, 其特征在于, 所述数据的载荷位于所 述第三 TCP报文的 TCP头之后。
8、 一种服务器, 其特征在于, 所述服务器包括:
第一接收单元, 用于接收客户端发送的带有 SYN标志的第一 TCP报文; 第二发送单元, 用于收到所述第一 TCP报文后, 向所述客户端返回带有 ACK标志和 S YN标志的第二 TCP报文;
第三接收单元,用于接收所述客户端在收到所述第二 TCP报文后发送的带 有 ACK标志的第三 TCP报文, 并建立 TCP连接, 其中, 所述第三 TCP报文中还 包括所述数据的载荷。
9、 如权利要求 8所述的服务器, 其特征在于, 所述服务器还包括: 数据接收单元,用于当所述第三 TCP报文中的数据的载荷是该数据的部分 载荷时,在所述 TCP连接上接收所述客户端继续发送的携带有所述数据的其他 载荷的 TCP报文。
10. 如权利要求 8或 9所述的服务器, 其特征在于, 所述服务器为浏览器应 用中的网页服务器, 当所述客户端访问所述网页服务器时, 所述客户端建立至 少两条 TCP连接。
11、 如权利要求 8或 9所述的服务器, 其特征在于, 所述数据的载荷位于所 述第三 TCP报文的 TCP头之后。
PCT/CN2010/080158 2009-12-30 2010-12-23 一种数据发送方法和相关设备 WO2011079743A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910238933.3A CN101808080A (zh) 2009-12-30 2009-12-30 一种数据发送方法和相关设备
CN200910238933.3 2009-12-30

Publications (1)

Publication Number Publication Date
WO2011079743A1 true WO2011079743A1 (zh) 2011-07-07

Family

ID=42609700

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/080158 WO2011079743A1 (zh) 2009-12-30 2010-12-23 一种数据发送方法和相关设备

Country Status (2)

Country Link
CN (1) CN101808080A (zh)
WO (1) WO2011079743A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079571A (zh) * 2014-06-27 2014-10-01 广州华多网络科技有限公司 一种识别Android模拟器的方法及装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808080A (zh) * 2009-12-30 2010-08-18 深圳市同洲电子股份有限公司 一种数据发送方法和相关设备
CN109462591B (zh) * 2018-11-19 2020-07-03 中国科学院信息工程研究所 一种数据传输方法、接收方法、装置及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018176A (zh) * 2007-03-09 2007-08-15 中国科学院软件研究所 自组织网络中的短报文可靠传输方法
CN101114999A (zh) * 2007-08-26 2008-01-30 上海华为技术有限公司 数据发送控制方法及数据传输设备
CN101547210A (zh) * 2009-05-14 2009-09-30 福建星网锐捷网络有限公司 一种tcp连接的处理方法和装置
CN101808080A (zh) * 2009-12-30 2010-08-18 深圳市同洲电子股份有限公司 一种数据发送方法和相关设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018176A (zh) * 2007-03-09 2007-08-15 中国科学院软件研究所 自组织网络中的短报文可靠传输方法
CN101114999A (zh) * 2007-08-26 2008-01-30 上海华为技术有限公司 数据发送控制方法及数据传输设备
CN101547210A (zh) * 2009-05-14 2009-09-30 福建星网锐捷网络有限公司 一种tcp连接的处理方法和装置
CN101808080A (zh) * 2009-12-30 2010-08-18 深圳市同洲电子股份有限公司 一种数据发送方法和相关设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079571A (zh) * 2014-06-27 2014-10-01 广州华多网络科技有限公司 一种识别Android模拟器的方法及装置

Also Published As

Publication number Publication date
CN101808080A (zh) 2010-08-18

Similar Documents

Publication Publication Date Title
CN107104936B (zh) 建立全双工双向通信的方法和系统
JP3967548B2 (ja) リンク構成方法および装置
JP4164365B2 (ja) デュアル・プロキシ装置を設けることによる無線インタフェースを介するtcp性能の改良技術
WO2014037760A1 (zh) 增加数据流传输的方法和系统
WO2006133651A1 (en) Communication method between communication devices and communication apparatus
JP2002509392A (ja) 移動体ネットワークのパケット・データ・サービス伝送内の伝送制御プロトコル・プロキシの使用
CN108243211A (zh) 一种数据传输方法及装置
JP5135421B2 (ja) ページモードメッセージング
WO2013170794A1 (zh) 一种最大传输单元协商方法及数据终端
WO2018076580A1 (zh) 无线网络双边加速传输方法和系统
CN111865940B (zh) 一种传输优化的方法及装置
WO2011015020A1 (zh) 文件传输方法、系统及客户端
US7564848B2 (en) Method for the establishing of connections in a communication system
WO2006002579A1 (fr) Procede de transmission de donnees entre des appareils de reseau
US11700321B2 (en) Transparent proxy conversion of transmission control protocol (TCP) fast open connection
WO2011079743A1 (zh) 一种数据发送方法和相关设备
US11349934B2 (en) Opportunistic transmission control protocol (TCP) connection establishment
WO2013152614A1 (zh) 一种基于应用层数据的网络接入系统和方法
CN113542395B (zh) 报文处理方法和报文处理系统
JP2004254039A (ja) メール通信中継システム、メール通信中継装置、メール通信中継方法及びメール通信中継用プログラム
JP4686875B2 (ja) データ通信装置
JP2004187099A (ja) 通信制御方法、通信システム及び通信装置
JP2003008611A (ja) データ中継装置およびデータ中継方法
JP2002281104A (ja) 通信プロトコル変換方法及びその装置、並びにデータ通信システム
CN100423513C (zh) 一种tcp连接的合并方法

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) OF 191012

122 Ep: pct application non-entry in european phase

Ref document number: 10840532

Country of ref document: EP

Kind code of ref document: A1