WO2017080363A1 - 一种数据传输的方法及wap设备 - Google Patents

一种数据传输的方法及wap设备 Download PDF

Info

Publication number
WO2017080363A1
WO2017080363A1 PCT/CN2016/103531 CN2016103531W WO2017080363A1 WO 2017080363 A1 WO2017080363 A1 WO 2017080363A1 CN 2016103531 W CN2016103531 W CN 2016103531W WO 2017080363 A1 WO2017080363 A1 WO 2017080363A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
congestion window
window value
sent
terminal
Prior art date
Application number
PCT/CN2016/103531
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 WO2017080363A1 publication Critical patent/WO2017080363A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0289Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/08Upper layer protocols
    • H04W80/12Application layer protocols, e.g. WAP [Wireless Application Protocol]

Definitions

  • the present application relates to the field of data transmission, for example, to a method for data transmission and a WAP device.
  • the traditional WAP device generally runs on the Linux operating system, develops based on Socket programming, and uses the proxy mode to provide Internet access services.
  • the WAP device forwards the request to the Internet service provider (Service Provider, after receiving the request from the mobile phone. SP), waiting for the complete response of the SP to be forwarded to the mobile phone, the wireless user accesses the Internet through the WAP gateway, the average delay between the user terminal and the WAP gateway is 30 ms, and the average delay between the WAP gateway and the Internet SP is 20 ms.
  • This processing mode will bring a large delay in the 4G network, which seriously affects the user's Internet access rate.
  • the embodiment of the invention provides a data transmission method and a WAP device, which solves the problem that the data transmission between the terminal, the WAP device and the SP has a large delay and affects the user's Internet access rate during the user's Internet access.
  • the embodiment of the present invention uses the following technical solutions:
  • a method of information transmission, applying a WAP device including:
  • Second data other than the first data.
  • the method further includes:
  • the method before the obtaining the data request message sent by the terminal, the method further includes:
  • the method further includes:
  • the priority to-be-sent data is sent to the terminal.
  • the updating the second congestion window value according to the current second congestion window value is a third congestion window value, including:
  • the method further includes:
  • the first congestion window value is updated by subtracting the size of the third data from the first congestion window value.
  • a WAP device including:
  • a first acquiring module configured to acquire a data request message sent by the terminal
  • a first sending module configured to send a content delivery request to a server of a service provider according to the data request message
  • a second acquiring module configured to acquire first data in a response data stream delivered by the server of the service provider according to the content delivery request
  • a generating module configured to generate a pseudo acknowledgment message according to the first data, and send the pseudo acknowledgment message to a server of the service provider, so that the server of the service provider delivers the message according to the pseudo acknowledgment message
  • the second data in the response data stream except the first data
  • the device further includes:
  • a conversion module configured to convert the first data to third data identifiable by the terminal
  • a first comparison module comparing a size of the third data with a current first congestion window value
  • the second sending module is configured to send the third data to the terminal when the first congestion window value is greater than the size of the third data
  • a storage module configured to store the third data to the buffer area to form data to be sent when the first congestion window value is smaller than the size of the third data.
  • the device further includes:
  • a chain building module configured to establish an information transmission link with the terminal
  • a first calculation module configured to acquire a first information round-trip delay between the terminal and the WAP device during the establishing an information transmission link
  • the second calculating module is configured to calculate the first congestion window value according to the first information round-trip delay.
  • the device further includes:
  • the first update module is configured to update the second congestion window value to a third congestion window value according to the current second congestion window value
  • the determining module is configured to determine whether the data to be sent exists in the buffer area
  • the second comparison module is configured to compare the size of the priority to-be-sent data in the to-be-sent data with the third congestion window value when the data to be sent exists in the buffer area, the priority The data to be transmitted is the second data that is stored for the longest time in the buffer area;
  • the third sending module is configured to send the priority to-be-sent data to the terminal when the third congestion window value is greater than the size of the priority to-be-sent data.
  • the first update module includes:
  • Obtaining a submodule configured to obtain an acknowledgement message sent by the terminal according to the received second data
  • Obtaining a sub-module configured to acquire a current second information round-trip delay in the process of acquiring the acknowledgement message sent by the terminal according to the received second data, and recording the second information round-trip delay
  • the value is C, and the size of the confirmation message is Y;
  • a first calculation submodule configured to calculate the second congestion window value according to the second information round trip delay
  • the second calculation submodule is configured to calculate, according to the second congestion window value, a difference value between the second congestion window value and the first congestion window value, and the difference value is ⁇ X;
  • the device further includes:
  • the second update module is configured to update the first congestion window value by subtracting the size of the third data from the first congestion window value.
  • a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the above method.
  • An electronic device comprising:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method described above.
  • the WAP device responds to the response data of the SP server by using a forged confirmation message, so that the server of the service provider is based on
  • the pseudo acknowledgment message is sent to the second data in the response data stream except the first data, which reduces the delay of the response to the mobile phone, thereby improving the speed at which the user browses the webpage and downloads the file, improves the user's surf rate, and improves the user's online experience.
  • 1 is a schematic diagram of a delay of network transmission in the related art
  • FIG. 2 is a flowchart of a method of data transmission in a first embodiment of the present invention
  • FIG. 3 is a first flowchart of a method for data transmission in a second embodiment of the present invention.
  • FIG. 4 is a timing chart of a data transmission process in a second embodiment of the present invention.
  • FIG. 5 is a second flowchart of a method for data transmission in a second embodiment of the present invention.
  • FIG. 6 is a flowchart 1 of a method for data transmission in a third embodiment of the present invention.
  • FIG. 7 is a second flowchart of a method for data transmission in a third embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a transmission process of a data transmission method according to a fourth embodiment of the present invention.
  • FIG. 9 is a block diagram of a module of a WAP device in a fifth embodiment of the present invention.
  • Figure 10 is a block diagram of a module of a WAP device in a sixth embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • an embodiment of the present invention discloses a data transmission method, which is applied to a WAP device.
  • the method includes:
  • Step S101 Acquire a data request message sent by the terminal.
  • Step S102 Send a content delivery request to the server of the service provider according to the data request message.
  • the user When the user accesses the Internet, the user first sends a data request to the device corresponding to the WAP gateway, and the WAP device transmits the data request to the server of the service provider, and the SP server obtains a response to the data request, so that the data is sent to the server.
  • the user terminal wherein the WAP device converts the data request into request information that can be recognized by the SP server, that is, the content delivery request described above.
  • Step S103 Acquire the first data in the response data stream delivered by the server of the service provider according to the content delivery request.
  • the first data is a data in the response data stream.
  • the SP server can respond to the request, and deliver the corresponding data content to the WAP device, and then send the data to the user terminal.
  • the WAP device receives the first data in the response data stream.
  • Step S104 Generate a pseudo confirmation message according to the first data and send the pseudo confirmation message to the server of the service provider.
  • Sending the pseudo acknowledgment message to the SP server may cause the SP server to deliver the second data in the response data stream other than the first data according to the pseudo acknowledgment message.
  • the WAP device may generate a pseudo confirmation message instead of the user terminal forgery according to the received first data, and send the pseudo confirmation message to the SP server.
  • the SP server After receiving the pseudo acknowledgment message, the SP server considers that the first data has been received by the user terminal, and then transmits other data in the response data stream, that is, the second data described above.
  • the response data of the SP server is responded to the falsification confirmation message to speed up the delivery data of the SP server.
  • the rate reduces the delay of data transmission, improves the user's Internet access rate, and improves the user's online experience.
  • the first data is further sent to the user terminal, and the process of sending the first data to the terminal may be generated in step S104.
  • a pseudo acknowledgment message is sent and sent to the server of the service provider simultaneously.
  • Step S201 Convert the first data to the third data identifiable by the terminal.
  • the first data in the response data stream sent by the SP server is processed by the WAP device to form a third data to be recognized and displayed by the terminal.
  • Step S202 Comparing the size of the third data with the current first congestion window value.
  • the congestion window value since the congestion window value may change according to the network condition, after the first data conversion, the size of the converted third data is compared with the current first congestion window value to determine the current time. Whether the congestion window value under the network condition can pass the third data.
  • Step S203 When the first congestion window value is greater than the size of the third data, the third data is sent to the terminal.
  • the congestion window value in the network state at this time allows the third data to pass, and the third data can be sent to the user terminal.
  • Step S204 When the first congestion window value is smaller than the size of the third data, storing the third data to the buffer area to form data to be transmitted.
  • the congestion window value in the network state at this time cannot pass the third data larger than the window value, and the third data is buffered to the buffer area. Forming data to be sent.
  • the WAP device after receiving the response data of the SP server, the WAP device performs service processing on the response data, and when the current congestion window value is suitable for the transmission of the response data, it is directly forwarded to the mobile phone, and the mobile phone waits.
  • Delay if the current congestion window value is not suitable for the transmission of response data, buffering the data for a suitable time for transmission, it is possible to improve the data response and transmission rate as much as possible while adapting to the network condition.
  • the WAP device After converting the first data, the WAP device compares the size of the converted third data with the current first congestion window value to determine whether the congestion window value in the network condition at this time can pass the third data.
  • the first data is the first data in the response data stream delivered by the SP server
  • the current process of obtaining the first congestion window value is described.
  • the method for data transmission before acquiring the data request message sent by the terminal (step S101), the method for data transmission further includes:
  • Step S301 Establish an information transmission link with the terminal.
  • Step S302 Acquire the first between the terminal and the WAP device in the process of establishing the information transmission link a round trip delay of information
  • Step S303 Calculate a first congestion window value according to the first information round-trip delay.
  • the data transmission link is first established with the WAP device to implement the transmission of the data request message, and during the request and response process of the two parties, the data transmission process between the terminal and the WAP device is measured.
  • the first information round-trip delay, and the first congestion window value is estimated according to the first information round-trip delay.
  • the value of the first congestion window estimated during the link-building process is the current first congestion window value when the first data is transmitted from the WAP device to the terminal, to determine whether the first one can be implemented under the current congestion window value.
  • the transmission of data is the current first congestion window value when the first data is transmitted from the WAP device to the terminal, to determine whether the first one can be implemented under the current congestion window value.
  • the method further includes: updating the first congestion window value by subtracting the size of the third data from the first congestion window value.
  • step S203 in the second embodiment when the first congestion window value is greater than the size of the third data, after the third data is sent to the terminal, the current congestion window value may have occurred.
  • the change is also performed, and the current second congestion window value that has changed has been adjusted in real time, so that the data to be sent existing in the buffer area can be sent in time.
  • the method for transmitting data includes the following steps after step S203:
  • Step S401 Update the second congestion window value to a third congestion window value according to the current second congestion window value.
  • Step S402 Determine whether there is data to be sent in the buffer area.
  • Step S403 When there is data to be transmitted in the buffer area, compare the size of the priority to-be-sent data in the to-be-sent data with the third congestion window value.
  • the priority to be sent data is the second data that is stored for the longest time in the buffer area.
  • Step S404 When the third congestion window value is greater than the priority of the data to be sent, the priority to be sent data is sent to the terminal.
  • the third congestion window value is compared with the size of the data to be sent in the data to be sent. If the value of the third congestion window is greater than the size of the data to be sent, it indicates that the priority data to be transmitted can be transmitted to a user terminal, wherein the priority to be sent data is in a buffer area
  • the second data that is stored for the longest time.
  • the process realizes the fast transmission of data on the established information transmission link by real-time forwarding of the response data and real-time adjustment of the changed current congestion window value, speeding up the response forwarding rate, and reducing the waiting for the mobile phone to wait for response.
  • the delay thereby increasing the speed of mobile Internet access.
  • the method includes:
  • Step S4011 Acquire an acknowledgement message sent by the terminal according to the received second data.
  • Step S4012 Acquire a current second information round-trip delay in the process of acquiring the confirmation message sent by the terminal according to the received second data.
  • the second information has a round-trip delay value of C, and the size of the confirmation message is Y.
  • Step S4013 Calculate the second congestion window value according to the second information round-trip delay.
  • Step S4014 Calculate a difference value between the second congestion window value and the first congestion window value according to the second congestion window value.
  • the difference value is ⁇ X.
  • the terminal sends the confirmation message to the WAP device after receiving the second data, and the WAP device obtains the confirmation message and obtains the current status in the process of obtaining.
  • a second information round-trip delay and the second congestion window value is calculated according to the second information round-trip delay, where the second congestion window value is a current congestion window value, according to the second congestion window value and the first congestion
  • the window value is obtained as a difference value between the previous time and the current time of the congestion window value, that is, the difference between the second congestion window value and the first congestion window value.
  • updating the second congestion window value to a third congestion window value according to the difference value between the confirmation message, the second information round-trip delay, the second congestion window value, and the first congestion window value.
  • the mobile phone In the process of accessing the user terminal, such as a mobile phone, the mobile phone sends a request for establishing a transmission link to the WAP before transmitting the request to the WAP device, and the transmission link is configured to transmit data, information, etc. between the two.
  • the WAP device calculates the round-trip delay RTT according to the link-building process between the mobile phone and the WAP device, and calculates and adjusts the congestion window value A according to the RTT in real time.
  • the data request packet received by the mobile phone on the road will process the request packet and then request the content from the SP server; after processing the content request, the SP server responds to the request and sends a response data stream to the mobile phone, and the response packet in the data stream is used by the WAP device.
  • the WAP device After receiving the response data of the SP server, the WAP device first performs its own service processing, and converts the response data, and may also add unique content; the WAP device forges the confirmation packet to the SP server to prompt the SP server to promptly respond to the subsequent content.
  • the WAP compares the size of the response packet data content with the current congestion window value. If the congestion window value is greater than the response content, the WAP directly sends the response content to the mobile phone side and updates the congestion window value.
  • the congestion window value is greater than the response content.
  • the congestion window value should be reduced. If the congestion window value is smaller than the size of the response content, the response packet is buffered; when the WAP device successfully sends the response content to the mobile phone side, After the mobile phone receives the response packet forwarded by the WAP device, the mobile phone sends an acknowledgement packet to the WAP device, and confirms that the number of bytes of the packet is Y.
  • the RTT time may change, and the mobile terminal dynamically adjusts according to the RTT time at this time.
  • Congestion window value that is, the congestion window value B is first calculated according to the current RTT, and then the difference ⁇ X is obtained according to the congestion window value A obtained last time.
  • the buffered packet size is D. If there is, the chain in the link buffer is taken out.
  • an embodiment of the present invention further discloses a WAP device, where the WAP device includes a first obtaining module 601, a first sending module 602, a second obtaining module 603, and a generating module 604.
  • the first obtaining module 601 is configured to generate a first obtaining instruction to obtain a data request message sent by the terminal.
  • the first sending module 602 is configured to generate a first sending command to send the content according to the data request message.
  • the second obtaining module 603 is configured to generate a second obtaining instruction to obtain the first data in the response data stream delivered by the server of the service provider according to the content delivery request;
  • the generating module 604 And configured to generate a generation instruction to generate a pseudo confirmation message according to the first data, and send the pseudo confirmation message to the server of the service provider, so that the server of the service provider sends the response data stream according to the pseudo confirmation message.
  • Second data other than the first data.
  • the WAP device may generate a pseudo confirmation message according to the received first data instead of the user terminal, and send the pseudo confirmation message to the SP server, and the SP server receives the pseudo data.
  • the first data is considered to have been received by the user terminal, and then the other data in the response data stream is sent.
  • the response data of the WAP server responds to the falsification confirmation message to speed up the data rate of the SP server and reduce the data. The delay of transmission, improve the user's Internet access rate, and improve the user's online experience.
  • the WAP device further includes: a conversion module 701, a first comparison module 702, a second sending module 703, and a storage module 704.
  • the conversion module 701 is configured to generate a conversion instruction to convert the first data into third data identifiable by the terminal; the first comparison module 702 is configured to generate a first comparison instruction to compare the size of the third data with the current The first congestion window value is compared; the second sending module 703 is configured to generate a second sending instruction to send the third data to the terminal when the first congestion window value is greater than the size of the third data; the storage module 704 is The method is configured to generate a store instruction to store the third data to the buffer area to form the data to be transmitted when the first congestion window value is smaller than the size of the third data.
  • the generating module 604 After the generating module 604 generates a pseudo-confirmation message according to the first data and sends the pseudo-confirmation message to the server of the service provider, the first data is also sent to the user terminal, and in the case of adapting to the network condition, Improve data response and transfer rate as much as possible.
  • the device further includes a chain building module 801, a first computing module 802, and a second computing module 803.
  • the chain building module 801 is configured to generate a chain building instruction to establish an information transmission link with the terminal.
  • the first computing module 802 is configured to generate a first computing instruction to acquire the information transmission link during the establishment.
  • the second calculation module 803 is configured to generate a second calculation instruction to calculate the first congestion window value according to the first information round-trip delay.
  • the data transmission link is first established with the WAP device to implement the transmission of the data request message, and during the request and response process of the two parties, the data transmission process between the terminal and the WAP device is measured.
  • the first information has a round-trip delay, and the first congestion window value is estimated according to the first information round-trip delay.
  • the device further includes: a first update module 901, a determination module 902, a second comparison module 903, and a third sending module 904.
  • the first update module 901 is configured to generate a first update instruction to update the second congestion window value according to the current second congestion window value to a third congestion window value;
  • the determining module 902 is configured to generate a determination The instruction is used to determine whether there is data to be sent in the buffer area;
  • the second comparison module 903 is configured to generate a second comparison instruction to: when there is data to be sent in the buffer area, the size of the data to be sent in the data to be sent is The third congestion window value is compared, the priority to be sent data is the second data stored in the buffer area for the longest time;
  • the third sending module 904 is configured to generate a third sending instruction when the third congestion window value is greater than the priority When the size of the data to be sent is sent, the data to be sent is sent to the terminal. Real-time adjustment of the current second congestion window value that has changed has been implemented, so that the data to be sent existing in the buffer area can be sent in time.
  • the first update module 901 includes: a first acquisition submodule 911, a second acquisition submodule 912, a first calculation submodule 913, a second calculation submodule 914, and an update submodule 915.
  • the first obtaining sub-module 911 is configured to acquire an acknowledgement message sent by the terminal according to the received second data
  • the second obtaining sub-module 912 is configured to be configured by the acquiring terminal according to the received second data.
  • the current second information round-trip delay is obtained, the second information round-trip delay value is C, and the size of the confirmation message is Y; the first calculation sub-module 913 is configured to perform a round-trip delay according to the second information.
  • the second calculation sub-module 914 is configured to calculate, according to the second congestion window value, a difference value between the second congestion window value and the first congestion window value, and the difference value is ⁇ X
  • the device further includes: a second update module 705 configured to: subtract the size of the third data by the first congestion window value, and update the first congestion window value.
  • a second update module 705 configured to: subtract the size of the third data by the first congestion window value, and update the first congestion window value.
  • the embodiment of the present invention further provides a non-transitory computer readable storage medium storing computer executable instructions, the computer executable instructions being configured to perform the method in any of the above embodiments.
  • the embodiment of the invention further provides a schematic structural diagram of an electronic device.
  • the electronic device includes:
  • At least one processor 110 which is exemplified by a processor 110 in FIG. 11; and a memory 111, may further include a communication interface 112 and a bus 113.
  • the processor 110, the communication interface 112, and the memory 111 can complete each other through the bus 113.
  • Communication interface 112 can be used for information transfer.
  • the processor 110 can invoke logic instructions in the memory 111 to perform the methods of the above-described embodiments.
  • logic instructions in the memory 111 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the memory 111 is a computer readable storage medium, and can be used to store a software program, a computer executable program, and a program instruction/module corresponding to the method in the embodiment of the present invention.
  • the processor 110 executes the function application and the data processing by executing software programs, instructions, and modules stored in the memory 111, that is, implementing the data transmission method in the above method embodiments.
  • the memory 111 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the terminal device, and the like. Further, the memory 111 may include a high speed random access memory, and may also include a nonvolatile memory.
  • the technical solution of the embodiment of the present invention may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network) The device or the like) performs all or part of the steps of the method described in the embodiments of the present invention.
  • the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
  • the solution in the foregoing embodiment of the present invention not only improves the delivery rate of the response data of the SP server for the content delivery request, but also real-time adjustment of the congestion window value in different network states, thereby effectively improving data transmission and
  • the response rate increases the user's online experience.
  • the invention reduces the delay of the response to the mobile phone, thereby improving the speed at which the user browses the webpage and downloads the file, improves the user's internet access rate, and improves the user's online experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供了一种数据传输方法及无线应用协议(WAP)设备,涉及数据传输领域。所述数据传输方法应用于WAP设备。所述方法包括:获取终端发送的数据请求消息(S101);根据所述数据请求消息,发送内容下发请求至服务提供商的服务器(S102);获取所述服务提供商的服务器根据所述内容下发请求下发的响应数据流中的第一数据(S103);根据所述第一数据,生成一伪确认消息至所述服务提供商的服务器(S104),使得所述服务提供商的服务器根据所述伪确认消息下发所述响应数据流中除所述第一数据之外第二数据。通过应用本发明,用户上网速率得以提高,用户上网体验得以改善。

Description

一种数据传输的方法及WAP设备 技术领域
本申请涉及数据传输领域,例如涉及一种数据传输的方法及WAP设备。
背景技术
随着4G技术的逐步普及,用户上网带宽增大,WAP设备处理及转发效率对用户上网体验的影响越来越明显。
传统的WAP设备一般运行于Linux操作***之上,基于Socket编程开发,并使用代理模式提供上网服务,如图1所示,WAP设备收到手机的请求后转发给互联网服务提供商(Service Provider,SP),等待收到SP的完整响应后再转发给手机,无线用户通过WAP网关接入互联网,用户终端跟WAP网关之间平均时延是30ms,WAP网关跟互联网SP之间平均时延是20ms,这种处理模式在4G网络下会带来较大时延,严重影响用户上网速率。
发明内容
本发明实施例提供一种数据传输的方法及WAP设备,解决在用户上网过程中,终端、WAP设备及SP之间的数据传输存在时延较大、影响用户上网速率的问题。
为了解决上述技术问题,本发明实施例用如下技术方案:
一种信息传输的方法,应用WAP设备,包括:
获取终端发送的数据请求消息;
根据所述数据请求消息,发送内容下发请求至服务提供商的服务器;
获取所述服务提供商的服务器根据所述内容下发请求下发的响应数据流中的第一数据;
根据所述第一数据,生成一伪确认消息并发送所述伪确认消息至所述服务提供商的服务器,使得所述服务提供商的服务器根据所述伪确认消息下发所述响应数据流中除所述第一数据以外的第二数据。
可选地,所述获取所述服务提供商根据所述内容下发请求下发的响应数据流中的第一数据之后,所述方法还包括:
转换所述第一数据为所述终端可识别的第三数据;
将所述第三数据的大小与当前的第一拥塞窗口值进行比较;
当所述第一拥塞窗口值大于所述第三数据的大小时,发送所述第三数据至所述终端;
当所述第一拥塞窗口值小于所述第三数据的大小时,存储所述第三数据至缓存区形成待发送数据。
可选地,在所述获取终端发送的数据请求消息之前,所述方法还包括:
与所述终端建立信息传输链路;
在所述建立信息传输链路过程中,获取所述终端与所述WAP设备之间的第一信息往返时延;
根据所述第一信息往返时延计算所述第一拥塞窗口值。
可选地,所述当所述第一拥塞窗口值大于所述第三数据的大小时,发送所述第三数据至所述终端之后,所述方法还包括:
根据当前的第二拥塞窗口值,更新所述第二拥塞窗口值为一第三拥塞窗口值;
判断所述缓存区内是否存在所述待发送数据;
当所述缓存区内存在所述待发送数据时,将所述待发送数据中的优先待发送数据的大小与所述第三拥塞窗口值进行比较,所述优先待发送数据为在所述缓存区中存储时间最久的所述第二数据;
当所述第三拥塞窗口值大于所述优先待发送数据的大小时,发送所述优先待发送数据至所述终端。
可选地,所述根据当前第二拥塞窗口值,更新所述第二拥塞窗口值为一第三拥塞窗口值,包括:
获取所述终端根据接收到的所述第二数据发送的确认消息;
在所述获取所述终端根据接收到的所述第二数据发送的确认消息的过程中,获取当前的第二信息往返时延,记所述第二信息往返时延值为C,记所述确认消息的大小为Y;
根据所述第二信息往返时延计算得到所述第二拥塞窗口值;
根据所述第二拥塞窗口值,计算得到所述第二拥塞窗口值与所述第一拥塞窗口值的差量值,记所述差量值为ΔX;
记所述第三拥塞窗口值为Cnew,根据Cnew=C+/-|ΔX|+Y更新所述第三拥塞窗口值。
可选地,所述当所述第一拥塞窗口值大于所述第三数据的大小时,发送所述第三数据至所述终端之后,所述方法还包括:
由所述第一拥塞窗口值减去所述第三数据的大小,更新所述第一拥塞窗口值。
一种WAP设备,包括:
第一获取模块,被配置为获取终端发送的数据请求消息;
第一发送模块,被配置为根据所述数据请求消息,发送内容下发请求至服务提供商的服务器;
第二获取模块,被配置为获取所述服务提供商的服务器根据所述内容下发请求下发的响应数据流中的第一数据;
生成模块,被配置为根据所述第一数据,生成一伪确认消息并发送所述伪确认消息至所述服务提供商的服务器,使得所述服务提供商的服务器根据所述伪确认消息下发所述响应数据流中除所述第一数据以外的第二数据。
可选地,所述设备还包括:
转换模块,被配置为转换所述第一数据为所述终端可识别的第三数据;
第一比较模块,将所述第三数据的大小与当前的第一拥塞窗口值进行比较;
第二发送模块,被配置为当所述第一拥塞窗口值大于所述第三数据的大小时,发送所述第三数据至所述终端;
存储模块,被配置为当所述第一拥塞窗口值小于所述第三数据的大小时,存储所述第三数据至缓存区形成待发送数据。
可选地,所述设备还包括:
建链模块,被配置为与所述终端建立信息传输链路;
第一计算模块,被配置为在所述建立信息传输链路过程中,获取所述终端与所述WAP设备之间的第一信息往返时延;
第二计算模块,被配置为根据所述第一信息往返时延计算所述第一拥塞窗口值。
可选地,所述设备还包括:
第一更新模块,被配置为根据当前的第二拥塞窗口值,更新所述第二拥塞窗口值为一第三拥塞窗口值;
判断模块,被配置为判断所述缓存区内是否存在所述待发送数据;
第二比较模块,被配置为当所述缓存区内存在所述待发送数据时,将所述待发送数据中的优先待发送数据的大小与所述第三拥塞窗口值进行比较,所述优先待发送数据为在所述缓存区中存储时间最久的所述第二数据;
第三发送模块,被配置为当所述第三拥塞窗口值大于所述优先待发送数据的大小时,发送所述优先待发送数据至所述终端。
可选地,所述第一更新模块包括:
获取子模块,被配置为获取所述终端根据接收到的所述第二数据发送的确认消息;
获取子模块,被配置为在所述获取所述终端根据接收到的所述第二数据发送的确认消息的过程中,获取当前的第二信息往返时延,记所述第二信息往返时延值为C,记所述确认消息的大小为Y;
第一计算子模块,被配置为根据所述第二信息往返时延计算得到所述第二拥塞窗口值;
第二计算子模块,被配置为根据所述第二拥塞窗口值,计算得到所述第二拥塞窗口值与所述第一拥塞窗口值的差量值,记所述差量值为ΔX;
更新子模块,被配置为记所述第三拥塞窗口值为Cnew,根据Cnew=C+/-|ΔX|+Y更新所述第三拥塞窗口值。
可选地,所述设备还包括:
第二更新模块,被配置为由所述第一拥塞窗口值减去所述第三数据的大小,更新所述第一拥塞窗口值。
一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述方法。
一种电子设备,包括:
至少一个处理器;以及
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述的方法。
本发明实施例的有益效果是:
上述方案,在用户终端、WAP设备、SP服务器之间进行数据请求与下发的传输过程中,通过WAP设备以伪造的确认消息对SP服务器的响应数据进行回应,来使得服务提供商的服务器根据该伪确认消息下发在响应数据流中除第一数据以外的第二数据,降低响应到达手机的时延,从而提高用户浏览网页和下载文件的速度,提高用户上网速率,改善用户上网体验。
附图概述
图1为相关技术中网络传输的时延示意图;
图2为本发明的第一实施例中数据传输的方法的流程图;
图3为本发明的第二实施例中数据传输的方法的流程图一;
图4为本发明的第二实施例中数据传输过程的时序图;
图5为本发明的第二实施例中数据传输的方法的流程图二;
图6为本发明的第三实施例中数据传输的方法的流程图一;
图7为本发明的第三实施例中数据传输的方法的流程图二;
图8为本发明的第四实施例中数据传输方法的传输过程示意图;
图9为本发明的第五实施例中WAP设备的模块框图;
图10为本发明的第六实施例中WAP设备的模块框图;以及
图11为本发明实施例提供的电子设备的结构示意图。
本发明的实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
第一实施例
如图2所示,本发明实施例公开了一种数据传输的方法,应用于WAP设备, 该方法包括:
步骤S101:获取终端发送的数据请求消息。
步骤S102:根据该数据请求消息,发送内容下发请求至服务提供商的服务器。
当用户使用终端上网时,先向WAP网关对应的设备发送数据请求,通过WAP设备将该数据请求传达至服务提供商的服务器,及SP服务器来得到对该数据请求的响应,促使数据下发至用户终端,其中WAP设备将该数据请求转换成SP服务器能识别的请求信息,即上述的内容下发请求。
步骤S103:获取服务提供商的服务器根据内容下发请求下发的响应数据流中的第一数据。
其中,该第一数据为响应数据流中的一个数据,当SP服务器接收到内容下发请求时,即可响应该请求,下发相对应的数据内容至WAP设备,进而下发至用户终端,在SP服务器下发响应数据流时,WAP设备接收该响应数据流中的第一数据。
步骤S104:根据第一数据,生成一伪确认消息并发送该伪确认消息至服务提供商的服务器。
发送伪确认消息至SP服务器可以使得SP服务器根据该伪确认消息下发响应数据流中除第一数据以外的第二数据。
当在步骤S103中,WAP设备接收到响应数据流中的第一数据之后,可以根据接收到的该第一数据,代替用户终端伪造生成一伪确认消息,将该伪确认消息发送至SP服务器,SP服务器收到该伪确认消息之后,认为该第一数据已被用户终端接收,继而接着发送响应数据流中的其他数据,即上述的第二数据。
上述方法中,在用户终端、WAP设备、SP服务器之间进行数据请求与下发的传输过程中,通过在WAP设备对SP服务器的响应数据回应伪造的确认消息,来加快SP服务器的下发数据速率,减少数据传输的时延、提高用户上网速率,改善用户上网体验。
第二实施例
如图3、图4所示,在第一实施例的基础上,在步骤S103之后,还将该第一数据向用户终端进行发送,该向终端发送第一数据的过程可以是与步骤S104生成一伪确认消息并发送该伪确认消息至服务提供商的服务器同时进行。本发 明实施例所提供的数据传输的方法,在步骤S103之后还包括:
步骤S201:转换第一数据为终端可识别的第三数据。
其中,SP服务器下发的响应数据流中的第一数据经WAP设备做业务处理之后形成第三数据来被终端识别显示。
步骤S202:将第三数据的大小与当前的第一拥塞窗口值进行比较。
其中,由于拥塞窗口值可能随着网络状况而发生改变,在对第一数据转换之后,将转换得到的第三数据的大小与当前的该第一拥塞窗口值进行比较,来判断在此时的网络状况下的拥塞窗口值是否能通过该第三数据。
步骤S203:当第一拥塞窗口值大于第三数据的大小时,发送第三数据至终端。
当比较结果为第一拥塞窗口值大于第三数据的大小时,此时的网络状态下的拥塞窗口值允许该第三数据通过,便可将该第三数据发送至用户终端。
步骤S204:当第一拥塞窗口值小于第三数据的大小时,存储第三数据至缓存区形成待发送数据。
当比较结果为第一拥塞窗口值小于第三数据的大小时,此时的网络状态下的拥塞窗口值不能使大于该窗口值大小的第三数据通过,此时缓存该第三数据至缓存区,形成待发送数据。
在上述的步骤S201-S204中,WAP设备收到SP服务器的响应数据后,对该响应数据做业务处理,当当前的拥塞窗口值适合响应数据的传输时,便直接转发给手机,降低手机等待时延,若当前拥塞窗口值不适合响应数据的传输时,缓存该数据等待合适时机进行传输,可以实现在适应网络状况的情况下,尽可能的提高数据响应及传输速率。
WAP设备在对第一数据转换之后,将转换得到的第三数据的大小与当前的第一拥塞窗口值进行比较,来判断在此时的网络状况下的拥塞窗口值是否能通过该第三数据,在本实施例中,对当该第一数据为SP服务器下发的响应数据流中的首个数据时,当前的该第一拥塞窗口值的获取得到的过程做出说明。
其中,如图5所示,在获取终端发送的数据请求消息(步骤S101)之前,该数据传输的方法还包括:
步骤S301:与终端建立信息传输链路;
步骤S302:在该建立信息传输链路过程中,获取终端与WAP设备之间的第 一信息往返时延;
步骤S303:根据第一信息往返时延计算第一拥塞窗口值。
当用户终端要发送数据请求消息时,先与WAP设备建立数据传输链路来实现对数据请求消息的传输,在建链双方的请求与响应过程中,测算该终端与WAP设备间数据传输过程中的第一信息往返时延,根据该第一信息往返时延估算得出该第一拥塞窗口值,在链路建立成功之后,通过该链路传输数据请求信息及对请求信息的响应数据,在建链过程中估算得到的该第一拥塞窗口值即为当该首个数据从WAP设备传输至终端时的当前第一拥塞窗口值,以判断在当前拥塞窗口值下能否实现对该首个数据的传输。
当第一拥塞窗口值大于第三数据的大小时,发送第三数据至终端之后,该方法还包括:由第一拥塞窗口值减去第三数据的大小,更新第一拥塞窗口值。
第三实施例
本实施例中,如图6所示,在第二实施例中的步骤S203当第一拥塞窗口值大于第三数据的大小时,发送第三数据至终端之后,当前的拥塞窗口值可能已经发生了变化,还对当前的已经发生了变化的第二拥塞窗口值进行实时的调整,以使缓存区中存在的待发送数据能及时的进行发送。其中该数据传输的方法在步骤S203之后,还包括以下步骤:
步骤S401:根据当前的第二拥塞窗口值,更新第二拥塞窗口值为一第三拥塞窗口值。
步骤S402:判断缓存区内是否存在待发送数据。
步骤S403:当该缓存区内存在待发送数据时,将该待发送数据中的优先待发送数据的大小与第三拥塞窗口值进行比较。
其中,该优先待发送数据为在该缓存区中存储时间最久的第二数据。
步骤S404:当第三拥塞窗口值大于优先待发送数据的大小时,发送该优先待发送数据至终端。
首先获取当前的第二拥塞窗口值,调整更新该第二拥塞窗口值,得到一个新的第三拥塞窗口值,再判断此时的缓存区内是否存在待发送数据,如果存在有待发送数据,则用第三拥塞窗口值与待发送数据中的优先待发送数据的大小进行比较,如果该第三拥塞窗口值大于优先待发送数据的大小时,即表明此时可以将该优先待发送数据传输至用户终端,其中该优先待发送数据为缓存区中 被存储的时间为最久的第二数据。该过程通过对响应数据的实时转发,及对发生了变化的当前拥塞窗口值进行实时的调整,实现了在建立的信息传输链路上对数据的快速传输,加快响应转发速率,降低手机等待响应的时延,从而提高手机上网速率。
这里对上述步骤S401根据当前第二拥塞窗口值,更新第二拥塞窗口值为一第三拥塞窗口值的过程展开描述,如图7所示,包括:
步骤S4011:获取终端根据接收到的第二数据发送的确认消息。
步骤S4012:在获取终端根据接收到的第二数据发送的确认消息的过程中,获取当前的第二信息往返时延。其中,记第二信息往返时延值为C,记该确认消息的大小为Y。
步骤S4013:根据第二信息往返时延计算得到第二拥塞窗口值。
步骤S4014:根据第二拥塞窗口值,计算得到第二拥塞窗口值与第一拥塞窗口值的差量值。其中,记该差量值为ΔX。
步骤S4015:记第三拥塞窗口值为Cnew,根据Cnew=C+/-|ΔX|+Y得到第三拥塞窗口值。
上述步骤中,通过在WAP设备向终端传输第二数据的过程中,终端接收到该第二数据后发送确认消息到WAP设备,WAP设备获取该确认消息并在获取的过程中获取得到当前的第二信息往返时延,并根据该第二信息往返时延计算得到该第二拥塞窗口值,此时的第二拥塞窗口值为当前的拥塞窗口值,根据该第二拥塞窗口值及第一拥塞窗口值,得出拥塞窗口值在之前时刻与当前时刻的改变值,即第二拥塞窗口值与第一拥塞窗口值间的差量值。根据该确认消息、第二信息往返时延、第二拥塞窗口值与第一拥塞窗口值间的差量值更新第二拥塞窗口值为一第三拥塞窗口值。
第四实施例
本实施例中,如图8所示,在第一实施例至第三实施例基础上,对终端、WAP设备、SP服务器三者之间的数据交互传输过程进行全面性描述。
在用户终端例如是手机的上网过程中,手机在向WAP设备发送请求之前向WAP发送建立传输链路建链请求,该传输链路被配置为两者之间进行数据、信息等的传输,在建链过程中,WAP设备根据手机与WAP设备之间的建链过程测算往返时延RTT,根据RTT实时计算并调整拥塞窗口值A。WAP设备在此链 路上接收到手机的数据请求包则会将此请求包进行处理后向SP服务器请求内容;SP服务器处理该内容请求后响应该请求并向手机发送响应数据流,数据流中的响应包被WAP设备接收到,WAP设备接收到SP服务器的响应数据后,首先进行自己的业务处理,对该响应数据进行转换,还可以增加特有内容;WAP设备伪造确认包给SP服务器促使SP服务器加快响应后续内容。WAP将响应包数据内容的大小与当前拥塞窗口值进行比较,如果拥塞窗口值大于响应内容则直接将响应内容发送到手机侧并更新拥塞窗口值的大小,此时的拥塞窗口值为大于响应内容,更新拥塞窗口值的大小时,应减小该拥塞窗口值,如果拥塞窗口值小于响应内容的大小,则对响应的数据包进行缓存;当WAP设备成功地将响应内容发送到手机侧,即手机接收到WAP设备转发的响应数据包之后,手机发送确认包给WAP设备,确认包的字节数为Y,这时RTT时间有可能发生了变化,这里就会根据此时的RTT时间动态调整拥塞窗口值,即首先根据当前RTT计算出拥塞窗口值B,然后根据上次计算得到的拥塞窗口值A得出差量ΔX,假设此时窗口值为C,则更新当前窗口值C=C+/-|ΔX|+Y;再查看此链路上是否有缓存数据包,计缓存数据包大小为D,如果有则取出此链路缓存区内的链表上或队列上存放时间最久的一个缓存数据包,将其大小与当前拥塞窗口值C进行比较,如果满足C>D,则将这个数据包发送给手机,并且删除关于该数据包的缓存,之后由C=C-D更新该当前拥塞窗口值,实现SP服务器对数据请求的快速响应下发,及通过对拥塞窗口值的实时调整实现将响应数据快速地传输至用户终端,大大改善用户终端的上网速率。
第五实施例
如图9所示,本发明实施例还公开了一种WAP设备,该WAP设备包括第一获取模块601、第一发送模块602、第二获取模块603、生成模块604。
其中,第一获取模块601,被配置为生成第一获取指令来获取终端发送的数据请求消息;第一发送模块602,被配置为生成第一发送指令来根据该数据请求消息,发送内容下发请求至服务提供商的服务器;第二获取模块603,被配置为生成第二获取指令来获取服务提供商的服务器根据该内容下发请求下发的响应数据流中的第一数据;生成模块604,被配置为生成一生成指令来根据第一数据,生成一伪确认消息并发送该伪确认消息至服务提供商的服务器,使得服务提供商的服务器根据该伪确认消息下发响应数据流中除第一数据以外的第二数据。
WAP设备接收到响应数据流中的第一数据之后,可以根据接收到的该第一数据,代替用户终端伪造生成一伪确认消息,将该伪确认消息发送至SP服务器,SP服务器收到该伪确认消息之后,认为该第一数据已被用户终端接收,继而接着发送响应数据流中的其他数据。在用户终端、WAP设备、SP服务器之间进行数据请求与下发的传输过程中,通过在WAP设备对SP服务器的响应数据回应伪造的确认消息,来加快SP服务器的下发数据速率,减少数据传输的时延、提高用户上网速率,改善用户上网体验。
第六实施例
在第五实施例的基础上,如图10所示,该WAP设备还包括:转换模块701、第一比较模块702、第二发送模块703、存储模块704。
其中,转换模块701,被配置为生成一转换指令来转换第一数据为终端可识别的第三数据;第一比较模块702,被配置为生成第一比较指令来将第三数据的大小与当前的第一拥塞窗口值进行比较;第二发送模块703,被配置为生成第二发送指令来当第一拥塞窗口值大于第三数据的大小时,发送第三数据至终端;存储模块704,被配置为生成一存储指令来当第一拥塞窗口值小于第三数据的大小时,存储第三数据至缓存区形成待发送数据。
实现了在生成模块604根据第一数据生成一伪确认消息并发送该伪确认消息至服务提供商的服务器的同时,还将该第一数据向用户终端进行发送,在适应网络状况的情况下,尽可能的提高数据响应及传输速率。
该设备还包括:建链模块801、第一计算模块802、第二计算模块803。
其中,建链模块801,被配置为生成一建链指令来与终端建立信息传输链路;第一计算模块802,被配置为生成第一计算指令来在该建立信息传输链路过程中,获取终端与WAP设备之间的第一信息往返时延;第二计算模块803,被配置为生成第二计算指令来根据第一信息往返时延计算第一拥塞窗口值。
当用户终端要发送数据请求消息时,先与WAP设备建立数据传输链路来实现对数据请求消息的传输,在建链双方的请求与响应过程中,测算该终端与WAP设备间数据传输过程中的第一信息往返时延,根据该第一信息往返时延估算得出该第一拥塞窗口值。
相应地,该设备还包括:第一更新模块901、判断模块902、第二比较模块903、第三发送模块904。
其中,第一更新模块901,被配置为生成第一更新指令来根据当前的第二拥塞窗口值,更新第二拥塞窗口值为一第三拥塞窗口值;判断模块902,被配置为生成一判断指令来判断缓存区内是否存在待发送数据;第二比较模块903,被配置为生成第二比较指令来当缓存区内存在待发送数据时,将待发送数据中的优先待发送数据的大小与第三拥塞窗口值进行比较,该优先待发送数据为在缓存区中存储时间最久的第二数据;第三发送模块904,被配置为生成第三发送指令来当第三拥塞窗口值大于优先待发送数据的大小时,发送优先待发送数据至终端。实现了对当前的已经发生了变化的第二拥塞窗口值进行实时的调整,以使缓存区中存在的待发送数据能及时的进行发送。
可选地,第一更新模块901包括:第一获取子模块911、第二获取子模块912、第一计算子模块913、第二计算子模块914、更新子模块915。
第一获取子模块911,被配置为获取终端根据接收到的第二数据发送的确认消息;第二获取子模块912,被配置为在该获取终端根据接收到的第二数据发送的确认消息的过程中,获取当前的第二信息往返时延,记第二信息往返时延值为C,记该确认消息的大小为Y;第一计算子模块913,被配置为根据第二信息往返时延计算得到第二拥塞窗口值;第二计算子模块914,被配置为根据第二拥塞窗口值,计算得到第二拥塞窗口值与第一拥塞窗口值的差量值,记该差量值为ΔX;更新子模块915,被配置为记第三拥塞窗口值为Cnew,根据Cnew=C+/-|ΔX|+Y得到该第三拥塞窗口值。
可选地,该设备还包括:第二更新模块705,被配置为由第一拥塞窗口值减去第三数据的大小,更新第一拥塞窗口值。
本发明实施例还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一实施例中的方法。
本发明实施例还提供了一种电子设备的结构示意图。参见图11,该电子设备包括:
至少一个处理器(processor)110,图11中以一个处理器110为例;和存储器(memory)111,还可以包括通信接口(Communications Interface)112和总线113。其中,处理器110、通信接口112、存储器111可以通过总线113完成相互间的 通信。通信接口112可以用于信息传输。处理器110可以调用存储器111中的逻辑指令,以执行上述实施例的方法。
此外,上述的存储器111中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
存储器111作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本发明实施例中的方法对应的程序指令/模块。处理器110通过运行存储在存储器111中的软件程序、指令以及模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的数据传输方法。
存储器111可包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器111可以包括高速随机存取存储器,还可以包括非易失性存储器。
本发明实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。
本发明中的上述实施例中的方案既提高了SP服务器对内容下发请求的响应数据的下发速率,同时实现对不同网络状态下的拥塞窗口值进行实时调整,有效地提高数据的传输及响应速率,提高用户的上网体验度。
以上所述,仅为本发明的实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。
工业实用性
本发明降低响应到达手机的时延,从而提高用户浏览网页和下载文件的速度,提高用户上网速率,改善用户上网体验。

Claims (13)

  1. 一种数据传输的方法,应用于WAP设备,所述方法包括:
    获取终端发送的数据请求消息;
    根据所述数据请求消息,发送内容下发请求至服务提供商的服务器;
    获取所述服务提供商的服务器根据所述内容下发请求下发的响应数据流中的第一数据;
    根据所述第一数据,生成一伪确认消息并发送所述伪确认消息至所述服务提供商的服务器,使得所述服务提供商的服务器根据所述伪确认消息下发所述响应数据流中除所述第一数据以外的第二数据。
  2. 根据权利要求1所述的方法,其中,所述获取所述服务提供商根据所述内容下发请求下发的响应数据流中的第一数据之后,所述方法还包括:
    转换所述第一数据为所述终端可识别的第三数据;
    将所述第三数据的大小与当前的第一拥塞窗口值进行比较;
    当所述第一拥塞窗口值大于所述第三数据的大小时,发送所述第三数据至所述终端;
    当所述第一拥塞窗口值小于所述第三数据的大小时,存储所述第三数据至缓存区形成待发送数据。
  3. 根据权利要求2所述的方法,其中,在所述获取终端发送的数据请求消息之前,所述方法还包括:
    与所述终端建立信息传输链路;
    在所述建立信息传输链路过程中,获取所述终端与所述WAP设备之间的第一信息往返时延;
    根据所述第一信息往返时延计算所述第一拥塞窗口值。
  4. 根据权利要求2所述的方法,其中,所述当所述第一拥塞窗口值大于所述第三数据的大小时,发送所述第三数据至所述终端之后,所述方法还包括:
    根据当前的第二拥塞窗口值,更新所述第二拥塞窗口值为一第三拥塞窗口值;
    判断所述缓存区内是否存在所述待发送数据;
    当所述缓存区内存在所述待发送数据时,将所述待发送数据中的优先待发送数据的大小与所述第三拥塞窗口值进行比较,所述优先待发送数据为在所述 缓存区中存储时间最久的所述第二数据;
    当所述第三拥塞窗口值大于所述优先待发送数据的大小时,发送所述优先待发送数据至所述终端。
  5. 根据权利要求4所述的方法,其中,所述根据当前第二拥塞窗口值,更新所述第二拥塞窗口值为一第三拥塞窗口值,包括:
    获取所述终端根据接收到的所述第二数据发送的确认消息;
    在所述获取所述终端根据接收到的所述第二数据发送的确认消息的过程中,获取当前的第二信息往返时延,记所述第二信息往返时延值为C,记所述确认消息的大小为Y;
    根据所述第二信息往返时延计算得到所述第二拥塞窗口值;
    根据所述第二拥塞窗口值,计算得到所述第二拥塞窗口值与所述第一拥塞窗口值的差量值,记所述差量值为ΔX;
    记所述第三拥塞窗口值为Cnew,根据Cnew=C+/-|ΔX|+Y得到所述第三拥塞窗口值。
  6. 根据权利要求2所述的方法,其中,所述当所述第一拥塞窗口值大于所述第三数据的大小时,发送所述第三数据至所述终端之后,所述方法还包括:
    由所述第一拥塞窗口值减去所述第三数据的大小,更新所述第一拥塞窗口值。
  7. 一种WAP设备,包括:
    第一获取模块,被配置为获取终端发送的数据请求消息;
    第一发送模块,被配置为根据所述数据请求消息,发送内容下发请求至服务提供商的服务器;
    第二获取模块,被配置为获取所述服务提供商的服务器根据所述内容下发请求下发的响应数据流中的第一数据;
    生成模块,被配置为根据所述第一数据,生成一伪确认消息并发送所述伪确认消息至所述服务提供商的服务器,使得所述服务提供商的服务器根据所述伪确认消息下发所述响应数据流中除所述第一数据以外的第二数据。
  8. 根据权利要求7所述的WAP设备,还包括:
    转换模块,被配置为转换所述第一数据为所述终端可识别的第三数据;
    第一比较模块,被配置为将所述第三数据的大小与当前的第一拥塞窗口值 进行比较;
    第二发送模块,被配置为当所述第一拥塞窗口值大于所述第三数据的大小时,发送所述第三数据至所述终端;
    存储模块,被配置为当所述第一拥塞窗口值小于所述第三数据的大小时,存储所述第三数据至缓存区形成待发送数据。
  9. 根据权利要求8所述的WAP设备,还包括:
    建链模块,被配置为与所述终端建立信息传输链路;
    第一计算模块,被配置为在所述建立信息传输链路过程中,获取所述终端与所述WAP设备之间的第一信息往返时延;
    第二计算模块,被配置为根据所述第一信息往返时延计算所述第一拥塞窗口值。
  10. 根据权利要求8所述的WAP设备,还包括:
    第一更新模块,被配置为根据当前的第二拥塞窗口值,更新所述第二拥塞窗口值为一第三拥塞窗口值;
    判断模块,被配置为判断所述缓存区内是否存在所述待发送数据;
    第二比较模块,被配置为当所述缓存区内存在所述待发送数据时,将所述待发送数据中的优先待发送数据的大小与所述第三拥塞窗口值进行比较,所述优先待发送数据为在所述缓存区中存储时间最久的所述第二数据;
    第三发送模块,被配置为当所述第三拥塞窗口值大于所述优先待发送数据的大小时,发送所述优先待发送数据至所述终端。
  11. 根据权利要求10所述的WAP设备,其中,所述第一更新模块包括:
    第一获取子模块,被配置为获取所述终端根据接收到的所述第二数据发送的确认消息;
    第二获取子模块,被配置为在所述获取所述终端根据接收到的所述第二数据发送的确认消息的过程中,获取当前的第二信息往返时延,记所述第二信息往返时延值为C,记所述确认消息的大小为Y;
    第一计算子模块,被配置为根据所述第二信息往返时延计算得到所述第二拥塞窗口值;
    第二计算子模块,被配置为根据所述第二拥塞窗口值,计算得到所述第二拥塞窗口值与所述第一拥塞窗口值的差量值,记所述差量值为ΔX;
    更新子模块,被配置为记所述第三拥塞窗口值为Cnew,根据Cnew=C+/-|ΔX|+Y得到所述第三拥塞窗口值。
  12. 根据权利要求8所述的WAP设备,还包括:
    第二更新模块,被配置为由所述第一拥塞窗口值减去所述第三数据的大小,更新所述第一拥塞窗口值。
  13. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-6中任一项的方法。
PCT/CN2016/103531 2015-11-09 2016-10-27 一种数据传输的方法及wap设备 WO2017080363A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510755731.1A CN106686621A (zh) 2015-11-09 2015-11-09 一种数据传输的方法及wap设备
CN201510755731.1 2015-11-09

Publications (1)

Publication Number Publication Date
WO2017080363A1 true WO2017080363A1 (zh) 2017-05-18

Family

ID=58694711

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103531 WO2017080363A1 (zh) 2015-11-09 2016-10-27 一种数据传输的方法及wap设备

Country Status (2)

Country Link
CN (1) CN106686621A (zh)
WO (1) WO2017080363A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804323A (zh) * 2021-01-11 2021-05-14 上海智能交通有限公司 一种远程车载终端桌面控制***及方法

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112787942A (zh) * 2019-11-05 2021-05-11 中兴通讯股份有限公司 一种tcp拥塞控制方法、装置、终端及可读存储介质
CN113037596B (zh) * 2021-05-18 2021-08-10 南京长凯电力自动化设备有限公司 针对环网柜的测试装置与方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6956677B1 (en) * 2000-08-31 2005-10-18 International Business Machines Corporation Facsimile transmission over packet networks with delivery notification
CN101114999A (zh) * 2007-08-26 2008-01-30 上海华为技术有限公司 数据发送控制方法及数据传输设备
CN102006675A (zh) * 2009-08-31 2011-04-06 华为技术有限公司 一种数据传输方法、传输设备及移动终端
CN102790749A (zh) * 2011-05-16 2012-11-21 ***通信集团广东有限公司 数据业务的处理方法及***、wap网关、用户终端
CN103888993A (zh) * 2012-12-19 2014-06-25 ***通信集团广东有限公司 拥塞窗口的调整方法、wap网关和网络资源监测服务器
CN105208689A (zh) * 2014-06-11 2015-12-30 中兴通讯股份有限公司 一种***工具条的方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6415329B1 (en) * 1998-03-06 2002-07-02 Massachusetts Institute Of Technology Method and apparatus for improving efficiency of TCP/IP protocol over high delay-bandwidth network
US9380125B2 (en) * 2012-09-11 2016-06-28 Qualcomm Incorporated Apparatus and method for delivery control of application data to a mobile device in a communication network
CN105187175B (zh) * 2015-09-25 2018-04-20 京信通信***(中国)有限公司 基站下行传输控制方法和***

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6956677B1 (en) * 2000-08-31 2005-10-18 International Business Machines Corporation Facsimile transmission over packet networks with delivery notification
CN101114999A (zh) * 2007-08-26 2008-01-30 上海华为技术有限公司 数据发送控制方法及数据传输设备
CN102006675A (zh) * 2009-08-31 2011-04-06 华为技术有限公司 一种数据传输方法、传输设备及移动终端
CN102790749A (zh) * 2011-05-16 2012-11-21 ***通信集团广东有限公司 数据业务的处理方法及***、wap网关、用户终端
CN103888993A (zh) * 2012-12-19 2014-06-25 ***通信集团广东有限公司 拥塞窗口的调整方法、wap网关和网络资源监测服务器
CN105208689A (zh) * 2014-06-11 2015-12-30 中兴通讯股份有限公司 一种***工具条的方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804323A (zh) * 2021-01-11 2021-05-14 上海智能交通有限公司 一种远程车载终端桌面控制***及方法
CN112804323B (zh) * 2021-01-11 2022-11-18 上海智能交通有限公司 一种远程车载终端桌面控制***及方法

Also Published As

Publication number Publication date
CN106686621A (zh) 2017-05-17

Similar Documents

Publication Publication Date Title
US10623332B2 (en) Accessing a cloud-based service using a communication device linked to another communication device via a peer-to-peer ad hoc communication link
US20190364067A1 (en) Methods for detecting and mitigating malicious network behavior and devices thereof
WO2017050015A1 (zh) 数据传输方法、装置以及终端
JP2017529793A5 (zh)
WO2018098820A1 (zh) 数据发送、接收的方法、装置、服务器及计算机程序产品
KR20130093813A (ko) 컨텐츠 중심 네트워크에서 컨텐츠의 세그먼트를 프리패칭하는 대상 노드의 통신 방법 및 그 대상 노드
CN104040990A (zh) 使用快速路径tcp加快服务处理
CN109660467B (zh) 用于控制流量的方法和装置
WO2017080363A1 (zh) 一种数据传输的方法及wap设备
US20210266265A1 (en) Modifying the congestion control algorithm applied to a connection based on request characteristics
EP3142306B1 (en) Openflow communication method, system, controller, and service gateway
WO2022121469A1 (zh) 一种流量控制方法、装置、设备及可读存储介质
WO2014078989A1 (zh) 消息处理方法及服务器
CN103401946A (zh) Http上传加速方法和***
US11700321B2 (en) Transparent proxy conversion of transmission control protocol (TCP) fast open connection
WO2018036415A1 (zh) 一种认证代理方法、装置和设备
CN106911732A (zh) 一种网站访问加速方法及装置
US20210203728A1 (en) Opportunistic Transmission Control Protocol (TCP) Connection Establishment
US8595477B1 (en) Systems and methods for reducing handshake delay in streaming protocol web requests
US11044350B1 (en) Methods for dynamically managing utilization of Nagle's algorithm in transmission control protocol (TCP) connections and devices thereof
TW201644249A (zh) 用以執行傳輸控制協定交握之裝置及方法
CN102420764B (zh) 一种链路建立方法及设备
CN115941678A (zh) 云边缘协同服务链部署方法及装置
JP6412529B2 (ja) 送信制御装置、送信制御方法及び送信制御プログラム
CN106487890A (zh) 一种基于xmpp协议的跨节点通讯网络请求方法

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

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

Country of ref document: EP

Kind code of ref document: A1