WO2015100932A1 - 一种网络数据的传输方法、装置及系统 - Google Patents

一种网络数据的传输方法、装置及系统 Download PDF

Info

Publication number
WO2015100932A1
WO2015100932A1 PCT/CN2014/078716 CN2014078716W WO2015100932A1 WO 2015100932 A1 WO2015100932 A1 WO 2015100932A1 CN 2014078716 W CN2014078716 W CN 2014078716W WO 2015100932 A1 WO2015100932 A1 WO 2015100932A1
Authority
WO
WIPO (PCT)
Prior art keywords
network request
data
network
template
client
Prior art date
Application number
PCT/CN2014/078716
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 WO2015100932A1 publication Critical patent/WO2015100932A1/zh
Priority to US15/187,526 priority Critical patent/US10122803B2/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/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • 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/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor
    • H04L41/048Network management architectures or arrangements comprising network management agents or mobile agents therefor mobile agents
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/44Distributed routing

Definitions

  • TECHNICAL FIELD The present invention relates to the field of network communication technologies, and in particular, to a method, device, and system for transmitting network data.
  • BACKGROUND At present, in a network transmission process, after a connection between a client and a server is established, a client may initiate a network request to a server; if the server receives a network request sent by the client, the server feeds back to the client. The network requests the corresponding information.
  • Each network request sent by the client to the server usually contains some fixed information, such as: User Agent and Accept fields. In different network requests, sometimes these fixed information is exactly the same content.
  • Embodiments of the present invention provide a method, an apparatus, and a system for transmitting network data, so as to avoid wasting data traffic of a client, reducing a time for a client to send a network request to a server, thereby improving the speed of networking of the client.
  • a method for transmitting network data comprising: obtaining a network request; comparing the network request with a network request template pre-stored on the client to obtain difference data and the same data; determining difference data and the same data; The location information in the network request template; the identifier information, the difference data, and the location information of the network request template are sent to the server, where the identifier information is used by the server to search for a network request template corresponding to the identifier information pre-stored on the server, the network request template , difference data, and location information are used by the server to restore network requests.
  • a method for transmitting network data comprising: receiving identification information, difference data, and location information of a network request template sent by a client, where the difference data and the same data are stored by the client through the obtained network request and the self-storage After the network request template is compared, the location information is determined by the client according to the difference data and Determining the location of the same data in the network request template; finding a network request template corresponding to the identification information; and restoring the network request according to the network request template, the difference data, and the location information.
  • a network data transmission apparatus comprising: an acquisition module, configured to acquire a network request; a comparison module, configured to compare a network request with a network request template pre-stored on the client to obtain difference data and the same data; and determine a module, set to Determining the difference data and the location information of the same data in the network request template; the first sending module is configured to send the identifier information, the difference data, and the location information of the network request template to the server, where the identifier information is used for the server search to be pre-stored on the server
  • the network request template corresponding to the identification information, the network request template, the difference data, and the location information are used by the server to restore the network request.
  • a network data transmission device comprising: a first receiving module, configured to receive identification information, difference data, and location information of a network request template sent by a client, where the difference data and the same data are obtained by the client The network request is obtained by comparing with the network request template stored by itself, and the location information is determined by the client according to the location of the difference data and the same data in the network request template; the searching module is configured to search for the network request corresponding to the identification information.
  • a template a restore module, configured to restore network requests based on network request templates, differential data, and location information.
  • a network data transmission system comprising a client and a server; a client, configured to obtain a network request; comparing the network request with a network request template pre-stored on the client to obtain difference data and the same data; determining difference data and the same data Location information in the network request template; sending identification information, difference data, and location information of the network request template to the server; the server is configured to receive identification information, difference data, and location information of the network request template sent by the client; The network request template corresponding to the information; the network request is restored according to the network request template, the difference data, and the location information.
  • the technical solution provided by this embodiment has the following advantages and features:
  • the data sent by the client to the server includes the identifier information, the difference data, and the location information of the network request template, because The data sent by the client to the server does not include the same data of the network request and the network request template, so the repetitive content is reduced, thereby reducing the transmission of the network data; and, after receiving the data sent by the client, the server can utilize the data.
  • the network request template, the difference data and the location information restore the network request, thereby ensuring the correctness of the network data transmission.
  • FIG. 1 is a flowchart of a method for transmitting network data according to an embodiment of the present invention
  • FIG. 10 is another network according to an embodiment of the present invention
  • FIG. 11 is a block diagram of another network data transmission apparatus according to an embodiment of the present invention.
  • FIG. 12 is still another network according to an embodiment of the present invention.
  • FIG. 13 is a block diagram of another network data transmission apparatus according to an embodiment of the present invention.
  • FIG. 14 is a block diagram of another network data transmission apparatus according to an embodiment of the present invention.
  • FIG. 16 is a block diagram of another network data transmission apparatus according to an embodiment of the present invention.
  • FIG. 17 is still another network according to an embodiment of the present invention.
  • FIG. 18 is a block diagram of a network data transmission system according to an embodiment of the present invention.
  • FIG. 1 is a method for transmitting network data.
  • the method is applied to a client.
  • the method provided in this embodiment can avoid wasting data traffic of a client and reducing a client sending a network request to a server.
  • the method includes: Step S101: Acquiring a network request; wherein, the network request refers to a network request between the client and the server, for example, a Hypertext transfer protocol (referred to as a Hypertext transfer protocol) Request headers for HTTP), of course, can be other requests.
  • a Hypertext transfer protocol referred to as a Hypertext transfer protocol
  • Request headers for HTTP can be other requests.
  • each network request contains a large amount of repetitive data
  • the client is always sending a lot of repetitive data to the server.
  • An example of a network request is shown below. In order to save space, only part of the data requested by the network is displayed.
  • the network request sent by the client to the server for the second time is as follows:
  • Step S102 Comparing the network request with the network request template pre-stored on the client to obtain difference data and the same data; wherein, the client stores multiple previously sent network requests, and the pre-stored network requests are used as a network. Request template. After the client newly generates a network request, the network request needs to be compared with the pre-stored network request template to obtain the difference data and the same data.
  • the difference data refers to the portion of the network request that is added relative to the network request template
  • the same data refers to the portion of the network request that is the same as the network request template.
  • Step S103 Determine location information of the difference data and the same data in the network request template.
  • step S102 and step S103 an algorithm may be used to implement, for example, performing a difference operation on the network request and the network request template by a reversible binary diff (command comparison text file) algorithm, and finally Difference data and location information are available.
  • a reversible binary diff command comparison text file
  • Step S104 Send identifier information, difference data, and location information of the network request template to the server, where the identifier information is used by the server to search for a network request template, network request template, difference data, and location information corresponding to the identifier information pre-stored on the server.
  • the identifier information, the difference data, and the location information of the network request template are sent to the server, so that the server restores the network request by using the network request template, the difference data, and the location information.
  • the identification information of the network request template refers to the unique identifier of the network request template, which can be represented by a few characters.
  • the identification information of a certain network request template is specifically BZ1001.
  • the coding information of the network request template is encoded. There are many kinds, and I won't go into details here.
  • the identifier information may be obtained by using a preset algorithm to calculate data in the network request template, for example, using a Message-Digest Algorithm 5 (MD5) algorithm or a hashkey algorithm in the network request template.
  • the data is calculated to get a unique 8-byte id value and use the id value to represent a network request template.
  • the MD5 algorithm or the hashkey algorithm may be used to calculate the data in the network request to obtain the verification code, and the verification code is sent to the server; after the server receives the verification code, the server uses the MD5.
  • the algorithm or hashkey algorithm calculates the data of the restored network request, and obtains the information code.
  • the server compares whether the verification code and the information code are the same. If they are the same, it indicates that the transmitted data has no error. If it is different, the data is incorrect. .
  • the data sent by the client to the server includes the identifier information of the network request template, the difference data, and the location information, because the data sent by the client to the server does not include the same data of the network request and the network request template. Therefore, the repetitive content is reduced, thereby reducing the transmission of network data.
  • the server can use the network request template, the difference data and the location information to restore the network request, thereby ensuring the network data. The correctness of the transmission.
  • the solution provided by the present invention reduces the time for the client to send a network request to the server on the basis of ensuring the correct transmission of the network data, thereby improving the speed of networking of the client.
  • the following is a specific example to illustrate the solution of the embodiment of the present invention: Assume that the network request is as follows:
  • the network request template is as follows:
  • Host: 163.com The following is a reversible binary diff algorithm to perform the difference operation between the network request and the network request template. First, compare the network request with the pre-stored network request template to obtain the difference data and the same data, and then determine the difference. The location information of the data and the same data in the network request template, resulting in the following data:
  • brackets refer to the location information of the same data in the network request and the network request template, and the content between the brackets refers to the difference data, because the position between the brackets is the position information of the difference data.
  • the specific meaning of the data in parentheses is (start position, read length, terminator).
  • start position, read length, terminator For example, the first "0" in (0, 70, 0) represents the starting position, that is, the first line from the network request template One character “A” starts; “70” in (0, 70, 0) represents the read length, starting from the first character "A" of the network request template, reading 70 characters, to the network request template The first line ends; the second "0" in (0, 70, 0) represents the terminator.
  • the difference When comparing the seventh character of the second line of the network request with the seventh character of the second line of the network request template, the difference is found, and the seventh character of the second line of the network request and the second line of the network request template are The characters after the seven characters continue to be compared, and it is determined that there is no data identical thereto, thereby defining the seventh character "a" of the second line of the network request as the difference data.
  • the difference data also includes "idu".
  • the network After determining the difference data, the network requests the eleventh character to the fourteenth character ".com” of the second line and the ninth character to the twelfth character of the second line of the network request template ".com "The same, so get (8, 4, 0).
  • the reversible binary diff algorithm can perform the difference operation on the network request and the network request template to obtain the difference data and the location information
  • the diff algorithm is reversible, and uses the network request template, the difference data, and the location information.
  • the network data can be obtained in the reverse direction, so as to be suitable for the problem to be solved by the embodiment of the present invention, that is, the same part of the network request and the network request template is deleted, and only the identification information, the difference data, and the location information of the network request template are transmitted to reduce The amount of data transferred by the network.
  • FIG. 2 is another method for transmitting network data. The method is applied to a client.
  • the method provided in this embodiment can avoid wasting data traffic of the client and reducing the client direction.
  • the time when the server sends the network request so as to improve the speed of the client networking, the method includes: Step S201: Acquire a network request; wherein, the network request refers to a network request between the client and the server, for example, an HTTP request header, of course It can also be other requests. Because each network request contains a large amount of repetitive data, the client is always sending a lot of repetitive data to the server.
  • Step S202 Determine whether the network request and the network request template are completely the same. If yes, execute step S203. Otherwise, execute step S204.
  • the network request newly generated by the client may be identical to the pre-stored network request template.
  • Step S203 Send identifier information of the network request template to the server;
  • Step S204 Compare the network request with the network request template pre-stored on the client to obtain difference data and the same data; wherein, the client stores multiple previously sent Network requests, and these pre-stored network requests as a network request template. After the client newly generates a network request, the network request needs to be compared with the pre-stored network request template to obtain the difference data and the same data.
  • the difference data refers to the portion of the network request that is added relative to the network request template
  • the same data refers to the portion of the network request that is the same as the network request template.
  • Step S205 Determine location information of the difference data and the same data in the network request template. After obtaining the difference data and the same data, determine the location information of the difference data and the same data in the network request template. The role of the location information is that the location information can be used to find the same data in the network request template, and the location information can also be used to determine where the difference data should be placed in the network request template, so the location information, the difference data, and the network request template are utilized. The network request can be restored.
  • an algorithm may be used to implement, for example, performing a difference operation on the network request and the network request template by using a reversible binary diff algorithm, and finally obtaining the difference data and the location by using the above algorithm. information.
  • a reversible binary diff algorithm For example, the open source xdelta algorithm, google's vcdecoder algorithm, open source diffotils algorithm, etc., can implement different operations on network requests and network request templates.
  • the calculated difference data and location information are used as the real transmission part. Since the difference data has no identical part between the network request and the network request template, the size of the difference data is much smaller than the original network request size. .
  • Step S206 Send identifier information, difference data, and location information of the network request template to the server, where the identifier information is used by the server to search for a network request template, network request template, difference data, and location information corresponding to the identifier information pre-stored on the server. Used by the server to restore network requests.
  • the identifier information, the difference data, and the location information of the network request template are sent to the server, so that the server restores the network request by using the network request template, the difference data, and the location information.
  • the identification information of the network request template refers to the unique identifier of the network request template, which can be represented by a few characters. For example, the identification information of a certain network request template is specifically BZ1001.
  • the coding information of the network request template is encoded.
  • the solution provided by the present invention can not only reduce the time for the client to send a network request to the server, but also improve the speed of the client networking, on the basis of ensuring correct network data transmission;
  • the newly generated network request of the client may be exactly the same as the pre-stored network request template. If they are identical, the client only needs to send the identifier information of the network request template to the server, thereby reducing to a greater extent.
  • the amount of data sent by the client to the server shortens the time the client sends a network request to the server; in addition, the server does not need to do any computational restore operations.
  • FIG. 3 is another method for transmitting network data.
  • the method is applied to a client.
  • the method provided in this embodiment can reduce the amount of data transmitted by the client to the server.
  • the method includes: Step S301: Acquire a network request; wherein, the network request refers to a network request between the client and the server, for example, an HTTP request header, and of course, other requests. Because each network request contains a large amount of repetitive data, the client is always sending a lot of repetitive data to the server.
  • Step S302 Delete a network request template whose storage time exceeds a preset time in the template group.
  • the template group includes multiple network request templates. Since the resources of the client and the server are limited, the data cannot be cached indefinitely.
  • Step S303 Calculate data volume of the difference data between the network request and each network request template in the template group; wherein the difference data is data that the client must transmit to the server, so the smaller the difference data, the data that the client needs to send to the server. The smaller the amount, the more the data amount of the difference data between the network request and each network request template in the template group is calculated, and the network request template with the smallest amount of data is selected, so that the amount of data transmitted by the client to the server can be reduced.
  • Step S304 Select a network request template with the smallest amount of data in the template group.
  • Step S305 Comparing the network request with the network request template pre-stored on the client to obtain difference data and the same data; wherein, the client stores multiple previously sent network requests, and the pre-stored network requests are used as a network. Request template. After the client newly generates a network request, the network request needs to be compared with the pre-stored network request template to obtain the difference data and the same data.
  • the difference data refers to the portion of the network request that is added relative to the network request template
  • the same data refers to the portion of the network request that is the same as the network request template.
  • Step S306 Determine location information of the difference data and the same data in the network request template.
  • step S305 and step S306 an algorithm may be used to implement, for example, performing a difference operation on the network request and the network request template by using a reversible binary diff algorithm, and finally obtaining the difference data and the location by using the above algorithm. information.
  • a reversible binary diff algorithm may be used to implement, for example, performing a difference operation on the network request and the network request template by using a reversible binary diff algorithm, and finally obtaining the difference data and the location by using the above algorithm. information.
  • other methods can be used.
  • Step S307 Send identifier information, difference data, and location information of the network request template to the server, where the identifier information is used by the server to search for a network request template, network request template, difference data, and location information corresponding to the identifier information pre-stored on the server. Used by the server to restore network requests.
  • the identifier information, the difference data, and the location information of the network request template are sent to the server, so that the server restores the network request by using the network request template, the difference data, and the location information.
  • the identification information of the network request template refers to the unique identifier of the network request template, which can be represented by a few characters.
  • the identification information of a certain network request template is specifically BZ1001.
  • the coding information of the network request template is encoded. There are many kinds, and I won't go into details here.
  • the solution provided by the present invention can not only reduce the time for the client to send a network request to the server, but also improve the speed of networking of the client, and can also reduce the speed of the network data transmission.
  • FIG. 4 is another method for transmitting network data.
  • the method is applied to a client.
  • the method provided in this embodiment may be in the case of lost or garbled data.
  • the method includes: Step S401: Acquire a network request; wherein, the network request refers to a network request between the client and the server, for example, an HTTP request header, and of course, other requests. Because each network request contains a large amount of repetitive data, the client is always sending a lot of repetitive data to the server.
  • Step S402 The comparison network request and the network request template pre-stored on the client obtain difference data and the same data; wherein, the client stores multiple previously sent network requests, and the pre-stored network requests are used as a network. Request template. After the client newly generates a network request, the network request needs to be compared with the pre-stored network request template to obtain the difference data and the same data.
  • the difference data refers to the portion of the network request that is added relative to the network request template
  • the same data refers to the portion of the network request that is the same as the network request template.
  • Step S403 Determine location information of the difference data and the same data in the network request template.
  • step S402 and step S403 an algorithm may be used to implement, for example, performing a difference operation on the network request and the network request template by using a reversible binary diff algorithm, and finally obtaining the difference data and the location by using the above algorithm. information.
  • a reversible binary diff algorithm may be used to implement, for example, performing a difference operation on the network request and the network request template by using a reversible binary diff algorithm, and finally obtaining the difference data and the location by using the above algorithm. information.
  • other methods can be used.
  • Step S404 Send identifier information, difference data, and location information of the network request template to the server, where the identifier information is used by the server to search for a network request template, network request template, difference data, and location information corresponding to the identifier information pre-stored on the server. Used by the server to restore network requests.
  • the identifier information, the difference data, and the location information of the network request template are sent to the server, so that the server restores the network request by using the network request template, the difference data, and the location information.
  • the identification information of the network request template refers to the unique identifier of the network request template, which can be represented by a few characters.
  • the identification information of a certain network request template is specifically BZ1001.
  • the coding information of the network request template is encoded. There are many kinds, and I won't go into details here.
  • Step S405 determining whether the retransmission instruction sent by the server is received, and if yes, executing step S406; wherein, in the process of sending data to the server by the client, there are various possibilities for the data sent by the client to the server to appear. Lost, garbled, etc., so in this case, the server usually sends a retransmission instruction to the client, so once the client receives the retransmission command sent by the server, it sends a complete network request generated by the client to the server. .
  • Step S406 Send a network request to the server. In the embodiment shown in FIG.
  • the solution provided by the present invention can not only reduce the time for the client to send a network request to the server, but also improve the speed of networking of the client, on the basis of ensuring correct network data transmission; If the transmitted data is lost, garbled, etc., resend the complete network request.
  • the fifth embodiment is shown in FIG. 5.
  • FIG. 5 shows another method for transmitting network data. The method is applied to a server. The method provided in this embodiment can avoid wasting data traffic of the client and reducing the client to the server.
  • Step S501 Receive identification information, difference data, and location information of the network request template sent by the client; wherein, the difference data and the same data are used by the client By comparing the obtained network request with the stored network request template, the location information is determined by the client according to the difference data and the location of the same data in the network request template.
  • Step S502 Search for a network request template corresponding to the identifier information.
  • the server stores a plurality of previously received network requests, and uses the pre-stored network requests as a network request template.
  • the server side pre-stores the correspondence between the network request template and the identification information, and each The identification information corresponds to a unique network request template.
  • Step S503 Restore the network request according to the network request template, the difference data, and the location information.
  • the network request is returned according to the network request template, the difference data, and the location information by a reversible binary diff algorithm.
  • a reversible binary diff algorithm can be used to implement, for example, the open source xdelta algorithm, google's vcdecoder algorithm, open source diffutils algorithm and so on.
  • the algorithm used by the server must be consistent with the algorithm used by the client to ensure that the server can perform reverse operations. In the embodiment shown in FIG.
  • the data sent by the client to the server includes the identifier information of the network request template, the difference data, and the location information, because the data sent by the client to the server does not include the same data of the network request and the network request template. Therefore, the repetitive content is reduced, thereby reducing the transmission of network data.
  • the server can use the network request template, the difference data and the location information to restore the network request, thereby ensuring the network data. The correctness of the transmission. Therefore, the solution provided by the present invention reduces the time for the client to send a network request to the server on the basis of ensuring correct network data transmission, thereby improving the speed of client networking.
  • the sixth embodiment is shown in FIG. 6.
  • FIG. 6 is another method for transmitting network data.
  • the method is applied to a server.
  • the method provided in this embodiment receives the identifier information that only contains the network request template. Then, only the network request template corresponding to the identifier information is found, and the network request template is used as the network request, thereby greatly shortening the time for the server to receive the data sent by the client, and the method includes: Step S601: And receiving the identifier information of the network request template, if yes, executing step S602;
  • the client has found the same network request template as the network request, so the client only sends the identification information of the network request template, and the server only needs to find the network request template corresponding to the identifier information, and the network request template is As a network request, it can be greatly reduced
  • the server receives the client time data transmission.
  • Step S602 Determine a network request template corresponding to the identifier information, and use the network request template as a network request.
  • Step S603 Receive identifier information, difference data, and location information of the network request template sent by the client.
  • the identification information, the difference data, and the location information of the network request template are sent by the client.
  • the location information is determined by the client according to the difference data and the location information of the same data in the network request template.
  • the difference data and the same data are obtained by the client by comparing the network request with the network request template, and the network request is generated by the client.
  • Step S604 Determine a network request template corresponding to the identifier information.
  • the server stores a plurality of previously received network requests, and uses the pre-stored network requests as a network request template.
  • Step S605 Restore the network request according to the network request template, the difference data, and the location information.
  • the network request is returned according to the network request template, the difference data, and the location information by a reversible binary diff algorithm.
  • a reversible binary diff algorithm can be used to implement, for example, the open source xdelta algorithm, google's vcdecoder algorithm, open source diffutils algorithm and so on.
  • the algorithm used by the server must be consistent with the algorithm used by the client to ensure that the server can perform reverse operations. In the embodiment shown in FIG.
  • the solution provided by the present invention can not only reduce the time for the client to send a network request to the server, but also improve the speed of networking of the client, on the basis of ensuring correct network data transmission; If only the identifier information of the network request template is included, only the network request template corresponding to the identifier information needs to be found, and the network request template is used as a network request, thereby greatly shortening the server receiving the data sent by the client. Time; In addition, the server does not need to do any computational restore operations.
  • FIG. 7 is another method for transmitting network data. The method is applied to a server. The method provided in this embodiment does not find a network request template corresponding to the identifier information in the server.
  • Step S701 Receive identification information, difference data, and location information of the network request template sent by the client;
  • the difference data and the same data are obtained by the client by comparing the obtained network request with the network request template stored by the client, and the location information is a template of the client requesting the network according to the difference data and the same data. The position in the determination.
  • Step S702 determining whether the network request template corresponding to the identification information is found, and if yes, executing step S704, otherwise, performing step S703; wherein, the server does not find the network request template corresponding to the identification information, and the first In this case, the server has not stored the identification information and the network request template; in the second case, in the process of the client transmitting the identification information to the server, a situation in which the identification information is lost is generated, and the like. In either case, you need to send a retransmission command to the client.
  • Step S703 Send a retransmission instruction to the client.
  • the retransmission instruction refers to requesting the client to send the generated complete network request, so as to avoid recurring errors during the transmission.
  • Step S704 Determine a network request template corresponding to the identifier information.
  • the server stores a plurality of previously received network requests, and uses the pre-stored network requests as a network request template.
  • the server side pre-stores the correspondence between the network request template and the identification information, and each of the identification information has a unique network request template. Therefore, after the identification information is obtained, the corresponding network request template can be found through the identification information.
  • Step S705 Restore the network request according to the network request template, the difference data, and the location information.
  • the network request is returned according to the network request template, the difference data, and the location information by a reversible binary diff algorithm.
  • FIG. 8 is another method for transmitting network data.
  • the method is applied to a server.
  • the method provided in this embodiment can verify whether the data sent by the client to the server is correct. If the data is incorrect, the data is sent to the client, and the client is required to resend the complete network request.
  • the method includes: Step S801: Receive identifier information, difference data, and location information of the network request template sent by the client.
  • the identification information, the difference data, and the location information of the network request template are sent by the client.
  • the location information is determined by the client according to the difference data and the location information of the same data in the network request template.
  • the difference data and the same data are obtained by the client by comparing the network request with the network request template, and the network request is generated by the client.
  • Step S802 Determine a network request template corresponding to the identifier information.
  • the server stores a plurality of previously received network requests, and uses the pre-stored network requests as a network request template.
  • the server side pre-stores the correspondence between the network request template and the identification information, and each of the identification information has a unique network request template. Therefore, after the identification information is obtained, the corresponding network request template can be found through the identification information.
  • Step S803 Restore the network request according to the network request template, the difference data, and the location information.
  • the network request is returned according to the network request template, the difference data, and the location information by a reversible binary diff algorithm.
  • Step S804 receiving a verification code sent by the client, where the verification code is calculated by the client using the preset algorithm to calculate data in the network request; wherein, in order to verify whether the data sent by the client to the server is correct, the server receives the client.
  • the MD5 algorithm or the hashkey algorithm is used to calculate the data in the network request to obtain the verification code.
  • the server uses the MD5 algorithm or the hashkey algorithm to calculate the data of the restored network request, and obtains the information code, and the server Compare the verification code and the information code are the same. If they are the same, it means that the transmitted data has no error. If it is different, it indicates that there is an error in the transmitted data, and then the client is required to resend the complete network request.
  • Step S805 Calculate the data in the restored network request by using a preset algorithm to obtain an information code.
  • Step S806, determine whether the verification code and the information code are the same.
  • step S807 If yes, go to step S807; otherwise, go to step S808; Step S807, display restore The outgoing network request is correct; in step S808, a retransmission instruction is sent to the client.
  • the solution provided by the present invention can not only reduce the time for the client to send a network request to the server, but also improve the speed of the client networking, on the basis of ensuring correct network data transmission; Whether the data sent by the client to the server is correct. If it is incorrect, it indicates that there is an error in the transmitted data, and then the client is required to resend the complete network request.
  • FIG. 9 is a network data transmission device.
  • the device provided in this embodiment can avoid wasting data traffic of the client and reduce the time for the client to send a network request to the server.
  • the device includes: an obtaining module 11 configured to obtain a network request; a comparison module 12 configured to compare the network request with the network request template pre-stored on the client to obtain difference data and the same data; 13. Set to determine difference data and location information of the same data in the network request template.
  • the first sending module 14 is configured to send identifier information, difference data, and location information of the network request template to the server, where the identifier information is used by the server to search for the advance
  • the network request template corresponding to the identification information stored on the server, the network request template, the difference data, and the location information are used by the server to restore the network request.
  • the function of the transmission device provided in this embodiment corresponds to the function implemented in the first embodiment. Therefore, the functions of the modules in this embodiment can be referred to in the first embodiment. Repeat them one by one.
  • FIG. 10 is another apparatus for transmitting network data.
  • the apparatus provided in this embodiment can avoid wasting data traffic of the client and reducing the time for the client to send a network request to the server.
  • the device includes: an obtaining module 21, configured to obtain a network request; the first determining module 22 is configured to determine whether the network request and the network request template are identical; the first executing module 23 is configured to be When the network request is exactly the same as the network request template, the identifier information of the network request template is sent to the server; when the network request is not exactly the same as the network request template, the comparison module 24 is executed.
  • the comparing module 24 is configured to compare the network request with the network request template pre-stored on the client to obtain the difference data and the same data; the determining module 25 is configured to determine the difference data and the location information of the same data in the network request template; The sending module 26 is configured to send the identifier information, the difference data, and the location information of the network request template to the server, where the identifier information is used by the server to search for a network request template corresponding to the identifier information pre-stored on the server, the network request template, and the difference data. And location information is used by the server to restore network requests.
  • the function of the transmission device provided in this embodiment corresponds to the function implemented in the second embodiment.
  • FIG. 11 is another transmission device of network data.
  • the device provided in this embodiment can reduce the transmission amount of data sent by a client to a server, and the device includes: an acquiring module. 31. Set to obtain a network request; the deleting module 32 is configured to delete a network request template that is stored in the template group for more than a preset time; the first calculating module 33 is configured to calculate a network request and each network request template in the template group.
  • the determining module 36 is configured to determine the difference data and the location information of the same data in the network request template.
  • the first sending module 37 is configured to send the identifier information, the difference data, and the location information of the network request template to the server, where the identifier information is used. Finding the pre-stored on the server with the server Network identification information corresponding to the request template, the template network request, and location information for the difference data network server a request to restore. In the embodiment shown in FIG.
  • FIG. 12 is another transmission device for network data.
  • the device provided in this embodiment can retransmit a complete network in case of loss of data, garbled, and the like.
  • the request includes: an obtaining module 41, configured to obtain a network request; a comparison module 42, configured to compare the network request with the network request template pre-stored on the client to obtain difference data and the same data; and the determining module 43 is configured to determine The difference data and the location information of the same data in the network request template; the first sending module 44 is configured to send the identifier information, the difference data, and the location information of the network request template to the server, where the identifier information is used for the server search to be pre-stored on the server.
  • the network request template corresponding to the identification information, the network request template, the difference data, and the location information are used by the server to restore the network request.
  • the second determining module 45 is configured to determine whether a retransmission instruction sent by the server is received.
  • the second execution module 46 is configured to send a network request to the server when receiving the retransmission instruction sent by the server.
  • the function of the transmission device provided in this embodiment corresponds to the function implemented in the fourth embodiment. Therefore, the functions of the modules in this embodiment can be referred to in the fourth embodiment. Repeat them one by one.
  • FIG. 13 is a device for transmitting network data. The device provided in this embodiment can avoid wasting data traffic of the client and reducing the time for the client to send a network request to the server.
  • the device includes: an obtaining module 51, configured to obtain a network request; and a comparing module 52, configured to obtain difference data and the same data by comparing the network request with the network request template pre-stored on the client; a determining module 53 configured to determine difference data and location information of the same data in the network request template;
  • the first sending module 54 is configured to send the identifier information, the difference data, and the location information of the network request template to the server, where the identifier information is used by the server to search for a network request template corresponding to the identifier information pre-stored on the server, the network request template, The difference data and location information are used by the server to restore network requests.
  • the second calculating module 55 is configured to calculate the data in the network request by using a preset algorithm to obtain a verification code; and the second sending module 56 is configured to send the verification code to the server.
  • the function of the transmission device provided in this embodiment corresponds to the function implemented in the first embodiment. Therefore, the functions of the modules in this embodiment can be referred to in the first embodiment. Repeat them one by one.
  • FIG. 14 is another transmission device of network data. The device provided in this embodiment can avoid wasting data traffic of the client and reducing the time for the client to send a network request to the server.
  • the device includes: a first receiving module 61, configured to receive identification information, difference data, and location information of the network request template sent by the client, where the difference data and the same data are used by the client
  • the location information is determined by the client according to the location of the difference data and the same data in the network request template by comparing the obtained network request with the network request template stored by the client;
  • the searching module 62 is configured to search and identify The network request template corresponding to the information;
  • the restoration module 63 is configured to restore the network request according to the network request template, the difference data, and the location information.
  • the function of the transmission device provided in this embodiment corresponds to the function implemented in the fifth embodiment.
  • FIG. 15 is a transmission device of another network data.
  • the network request template corresponding to the identifier information, and the network request template is used as a network request, thereby greatly shortening the time for the server to receive the data sent by the client, and the device includes:
  • the first determining module 71 is configured to determine whether the data sent by the received client only contains the identifier information of the network request template.
  • the first executing module 72 is configured to: the data sent by the received client only contains the network request template.
  • the network request template corresponding to the identifier information is determined, and the network request template is used as the network request.
  • the first receiving module continues to be executed.
  • the receiving module 73 is configured to receive the identifier information, the difference data, and the location information of the network request template sent by the client, where the location information is determined by the client according to the difference data and the location information of the same data in the network request template, and the difference data is the same.
  • the data is obtained by the client by comparing the network request with the network request template, and the network request is generated by the client; the searching module 74 is configured to search for a network request template corresponding to the identifier information; and the restoring module 75 is configured to Difference data and bits Restore the network information request.
  • the function of the transmission device provided in this embodiment corresponds to the function implemented in the embodiment 6. Therefore, the function of each module in this embodiment can be referred to the content in the sixth embodiment. Repeat them one by one.
  • FIG. 16 is another transmission device of network data. The device provided in this embodiment is required when the server does not find a network request template corresponding to the identification information.
  • the client resends the complete network data to avoid recurring errors during the transmission.
  • the device includes: a first receiving module 81, configured to receive identification information, difference data, and location information, location information of the network request template sent by the client, For the client, according to the difference data and the location information of the same data in the network request template, the difference data and the same data are obtained by the client by comparing the network request with the network request template, and the network request is generated by the client;
  • the module 82 is configured to determine whether a network request template corresponding to the identifier information is found.
  • the second execution module 83 is configured to continue to execute the determining module 84 when the network request template corresponding to the identifier information is found; When identifying the network request template corresponding to the information, to the client Sending a retransmission instruction; the searching module 84 is configured to search for a network request template corresponding to the identification information; The restore module 85 is configured to restore the network request according to the network request template, the difference data, and the location information.
  • the function of the transmission device provided in this embodiment corresponds to the function implemented in the seventh embodiment. Therefore, the function of each module in this embodiment can be referred to the content in the seventh embodiment. Repeat them one by one.
  • Embodiment 17 Referring to FIG. 17, FIG. 17 shows another network data transmission apparatus.
  • the apparatus can verify whether the data sent by the client to the server is correct. If not, the description is The transmitted data has an error, and the client is required to resend the complete network request.
  • the device includes: a first receiving module 91, configured to receive identification information, difference data, and location information of the network request template sent by the client, where the location information is The client determines, according to the difference data and the location information of the same data in the network request template, the difference data and the same data are obtained by the client by comparing the network request with the network request template, and the network request is generated by the client; the searching module 92, The setting module is configured to: restore the network request according to the network request template, the difference data, and the location information; the second receiving module 94 is configured to receive the verification code sent by the client, and verify The code is the client using the default algorithm The calculation module 95 is configured to calculate the data in the restored network request by using a preset algorithm to obtain an information code; the third determining module 96 is configured to determine whether the verification code and the information code
  • FIG. 18 is a network data transmission system.
  • the device provided in this embodiment can avoid wasting client data traffic and reduce the time for the client to send a network request to the server, thereby improving the client.
  • the speed of networking includes a client 1 and a server 2; wherein, the client 1, is set to obtain a network request generated by the client; and the difference data and the same data are obtained by comparing the network request with the pre-stored network request template; determining the difference data And location information of the same data in the network request template; sending identifier information, difference data, and location information of the network request template to the server; the server 2, configured to receive the identifier information, the difference data, and the location information of the network request template sent by the client Determining a network request template corresponding to the identification information; restoring the network request according to the network request template, the difference data, and the location information.
  • the client 1 is set to obtain a network request generated by the client
  • the difference data and the same data are obtained by comparing the network request with the pre-stored network request template; determining the difference data And location information of the same data in the network request template; sending identifier information, difference data, and location information of the network request template to the server; the server 2, configured to receive the
  • the computing device may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Abstract

本发明实施例公开了一种网络数据的传输方法、装置及系统,该方法包括:获取客户端生成的网络请求;对比所述网络请求与预先存储的网络请求模板得到差异数据和相同数据;确定所述差异数据和所述相同数据在所述网络请求模板中的位置信息;向服务器发送所述网络请求模板的标识信息、所述差异数据和所述位置信息,所述标识信息用于为所述服务器确定所述网络请求模板,所述网络请求模板、所述差异数据和所述位置信息用于为所述服务器还原出所述网络请求。本发明提供的方案在保证网络数据传输正确的基础上,减少客户端向服务器发送网络请求的时间,从而提高客户端联网的速度。

Description

一种网络数据的传输方法、 装置及系统 技术领域 本发明涉及网络通信技术领域, 更具体的说, 涉及网络数据的传输方法、 装置及 系统。 背景技术 目前, 在网络传输过程中, 在客户端与服务器建立传输层的连接后, 客户端可以 向服务器发起网络请求; 如果服务器接收到客户端发送的网络请求, 服务器会向客户 端反馈与该网络请求相对应的信息。 在客户端向服务器发送的每一个网络请求中, 通常都会包含一些固定的信息, 例 如: 用户代理 (User Agent) 和 Accept等字段。 在不同的网络请求中, 有时这些固定 的信息是完全相同的内容。 由于客户端向服务器发送的网络请求中包含了很多重复性 内容, 这样不仅浪费客户端的数据流量, 而且, 延长了客户端向服务器发送网络请求 的时间, 从而降低了客户端联网的速度。 因此, 如何提高客户端联网的速度, 成为目前亟需解决的技术问题。 发明内容 本发明实施例提供一种网络数据的传输方法、 装置及系统, 以避免浪费客户端的 数据流量, 减少客户端向服务器发送网络请求的时间, 从而提高客户端联网的速度。 本发明实施例是这样实现的: 一种网络数据的传输方法, 包括: 获取网络请求; 比较网络请求与预先存储在客 户端上的网络请求模板得到差异数据和相同数据; 确定差异数据和相同数据在网络请 求模板中的位置信息; 向服务器发送网络请求模板的标识信息、差异数据和位置信息, 标识信息用于服务器査找预先存储在该服务器上的与标识信息对应的网络请求模板, 网络请求模板、 差异数据和位置信息用于服务器对网络请求进行还原。 一种网络数据的传输方法, 包括: 接收客户端发送的网络请求模板的标识信息、 差异数据和位置信息, 其中, 差异数据和相同数据是由客户端通过对获取到的网络请 求与自身存储的网络请求模板进行比较后得到的, 位置信息是客户端根据差异数据和 相同数据在网络请求模板中的位置确定的; 査找与标识信息对应的网络请求模板; 根 据网络请求模板、 差异数据和位置信息对网络请求进行还原。 一种网络数据的传输装置, 包括: 获取模块, 设置为获取网络请求; 比较模块, 设置为比较网络请求与预先存储在客户端上的网络请求模板得到差异数据和相同数 据; 确定模块, 设置为确定差异数据和相同数据在网络请求模板中的位置信息; 第一 发送模块, 设置为向服务器发送网络请求模板的标识信息、 差异数据和位置信息, 标 识信息用于服务器査找预先存储在该服务器上的与标识信息对应的网络请求模板, 网 络请求模板、 差异数据和位置信息用于服务器对网络请求进行还原。 一种网络数据的传输装置, 包括: 第一接收模块, 设置为接收客户端发送的网络 请求模板的标识信息、 差异数据和位置信息, 其中, 差异数据和相同数据是由客户端 通过对获取到的网络请求与自身存储的网络请求模板进行比较后得到的, 位置信息是 客户端根据差异数据和相同数据在网络请求模板中的位置确定的; 査找模块, 设置为 査找与标识信息对应的网络请求模板; 还原模块, 设置为根据网络请求模板、 差异数 据和位置信息对网络请求进行还原。 一种网络数据的传输系统, 包括客户端和服务器; 客户端, 设置为获取网络请求; 比较网络请求与预先存储在客户端上的网络请求模板得到差异数据和相同数据; 确定 差异数据和相同数据在网络请求模板中的位置信息; 向服务器发送网络请求模板的标 识信息、 差异数据和位置信息; 服务器, 设置为接收客户端发送的网络请求模板的标 识信息、 差异数据和位置信息; 査找与标识信息对应的网络请求模板; 根据网络请求 模板、 差异数据和位置信息对网络请求进行还原。 与现有技术相比, 本实施例提供的技术方案具有以下优点和特点: 在本发明提供的方案中, 客户端向服务器发送的数据包括网络请求模板的标识信 息、 差异数据和位置信息, 由于客户端向服务器发送的数据不包括网络请求与网络请 求模板的相同数据, 所以减少了很多重复性内容, 从而减少了网络数据的传输; 而且, 服务器在接收到客户端发送的数据后, 能够利用网络请求模板、 差异数据和位置信息 还原出网络请求, 从而保证网络数据传输的正确性。 因此, 本发明提供的方案在保证 网络数据传输正确的基础上, 减少客户端向服务器发送网络请求的时间, 从而提高客 户端联网的速度。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例中所 需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些 实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据 这些附图获得其他的附图。 图 1为本发明实施例提供的一种网络数据的传输方法的流程图; 图 2为本发明实施例提供的另一种网络数据的传输方法的流程图; 图 3为本发明实施例提供的又一种网络数据的传输方法的流程图; 图 4为本发明实施例提供的又一种网络数据的传输方法的流程图; 图 5为本发明实施例提供的又一种网络数据的传输方法的流程图; 图 6为本发明实施例提供的又一种网络数据的传输方法的流程图; 图 7为本发明实施例提供的又一种网络数据的传输方法的流程图; 图 8为本发明实施例提供的又一种网络数据的传输方法的流程图; 图 9为本发明实施例提供的一种网络数据的传输装置的模块示意图; 图 10为本发明实施例提供的另一种网络数据的传输装置的模块示意图 图 11为本发明实施例提供的又一种网络数据的传输装置的模块示意图 图 12为本发明实施例提供的又一种网络数据的传输装置的模块示 图 13为本发明实施例提供的又一种网络数据的传输装置的模块示 图 14为本发明实施例提供的又一种网络数据的传输装置的模块示 图 15为本发明实施例提供的又一种网络数据的传输装置的模块示 图 16为本发明实施例提供的又一种网络数据的传输装置的模块示 图 17为本发明实施例提供的又一种网络数据的传输装置的模块示意图 图 18为本发明实施例提供的一种网络数据的传输系统的模块示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完 整的描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获得的 所有其他实施例, 都属于本发明保护的范围。 本发明实施例提供了一种网络数据的传输方法、 装置及系统, 由于上述网络数据 的传输方法、 装置及系统的具体实现存在多种方式, 下面通过具体实施例进行详细说 明: 实施例一 请参见图 1所示, 图 1所示的为一种网络数据的传输方法,该方法应用于客户端, 本实施例提供的方法可以避免浪费客户端的数据流量, 减少客户端向服务器发送网络 请求的时间, 从而提高客户端联网的速度, 该方法包括: 步骤 S101、 获取网络请求; 其中, 网络请求指的是客户端与服务器之间的网络请求, 例如, 超文本传输协议 (Hypertext transfer protocol, 简称为 HTTP) 请求头, 当然也可以是其他的请求。 由 于每个网络请求中均包含大量的重复性数据, 所以客户端始终在向服务器发送大量重 复性数据。 下面展示一个网络请求实例。 为了节省篇幅, 仅展示该网络请求的部分数据, 例 如, 客户端第一次向服务器发送的网络请求如下: "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.^
Host: baidu.com" 客户端第二次向服务器发送的网络请求如下:
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Host: 163.com" 通过上述两个网络请求的内容可以了解到, Accept字段的内容完全相同, Host字 段的内容不同。 在实际的场景中, 会存在大量的重复性字段, 所以本发明要解决的问 题是如何不传输这些重复性的字段, 还能够表达原有网络请求的含义, 从而减少网络 请求的内容。 步骤 S102、 比较网络请求与预先存储在客户端上的网络请求模板得到差异数据和 相同数据; 其中, 客户端会存储有多个之前发送过的网络请求, 并将这些预先存储的网络请 求作为网络请求模板。 在客户端新产生一个网络请求以后, 需要将该网络请求与预先 存储的网络请求模板进行比较, 从而得到差异数据和相同数据。 差异数据指的是网络 请求相对于网络请求模板增加的部分, 相同数据指的是网络请求与网络请求模板相同 的部分。 步骤 S103、 确定差异数据和相同数据在网络请求模板中的位置信息; 其中, 在得到差异数据和相同数据以后, 还要确定差异数据和相同数据在网络请 求模板中的位置信息。 位置信息的作用是, 利用位置信息可以在网络请求模板中找到 相同数据, 利用位置信息还可以确定差异数据应该放置在网络请求模板中的什么位置 上, 所以利用位置信息、 差异数据和网络请求模板可以还原出网络请求。 在步骤 S102和步骤 S103的过程中, 可以利用一种算法来实现, 例如, 通过可逆 向的二进制 diff (命令比较文本文件) 算法来对网络请求和网络请求模板进行差异性 运算, 通过上述算法最终可以得到差异数据和位置信息。 当然, 还可以采用其他的方 法来实现, 例如, 开源的 xdelta算法, google的 vcdecoder算法, 开源 diffotils算法等 等, 都可以实现对网络请求和网络请求模板进行差异性运算。 最后将计算出来的差异 数据和位置信息作为真正传输的部分, 由于差异数据中已经没有了网络请求与网络请 求模板之间相同的部分, 因此差异数据的大小会远远小于原始的网络请求的大小。 步骤 S104、 向服务器发送网络请求模板的标识信息、 差异数据和位置信息, 标识 信息用于服务器査找预先存储在该服务器上的与标识信息对应的网络请求模板, 网络 请求模板、 差异数据和位置信息用于服务器对网络请求进行还原。 其中, 将网络请求模板的标识信息、 差异数据和位置信息发送给服务器, 以便于 服务器利用网络请求模板、 差异数据和位置信息还原出网络请求。 网络请求模板的标 识信息指的是网络请求模板的唯一标识符, 可以用几位的字符表示, 例如, 某一个网 络请求模板的标识信息具体为 BZ1001 , 当然, 网络请求模板的标识信息的编码方式有 很多种, 在此不再一一赘述。 另外, 标识信息可以为利用预设算法对网络请求模板中的数据进行计算得到的, 例如,利用信息-摘要算法 5 ( Message-Digest Algorithm 5 ,简称为 MD5 )算法或 hashkey 算法对网络请求模板中的数据计算,得到一个唯一的 8字节 id值,并用该 id值来代表 一份网络请求模板。 为了验证客户端向服务器发送的数据是否正确, 可以利用 MD5 算法或 hashkey算法计算网络请求中的数据得到验证码, 并向服务器发送该验证码; 待服务器接收到该验证码以后,服务器会利用 MD5算法或 hashkey算法对还原出来的 网络请求的数据进行计算, 得到信息码, 服务器再比较验证码和信息码是否相同, 如 果相同, 说明传输的数据没有错误, 如果不同, 那么说明传输的数据存在错误。 在图 1所示的实施例中, 客户端向服务器发送的数据包括网络请求模板的标识信 息、 差异数据和位置信息, 由于客户端向服务器发送的数据不包括网络请求与网络请 求模板的相同数据, 所以减少了很多重复性内容, 从而减少了网络数据的传输; 而且, 服务器在接收到客户端发送的数据后, 能够利用网络请求模板、 差异数据和位置信息 还原出网络请求, 从而保证网络数据传输的正确性。 因此, 本发明提供的方案在保证 网络数据传输正确的基础上, 减少客户端向服务器发送网络请求的时间, 从而提高客 户端联网的速度。 下面通过一个具体的例子来说明本发明实施例的方案: 假设网络请求如下:
"Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Host: baidu.com" 网络请求模板如下:
"Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Host: 163.com" 下面通过可逆向的二进制 diff 算法来对网络请求和网络请求模板进行差异性运 算, 首先, 对比网络请求与预先存储的网络请求模板得到差异数据和相同数据, 然后, 确定差异数据和相同数据在网络请求模板中的位置信息, 从而得到如下数据:
( 0, 70, 0)
( 0, 5, b) aidu ( 8, 4, 0) 上述括号内的元素指代的是网络请求和网络请求模板中相同数据的位置信息, 括 号之间的内容指代差异数据, 由于括号之间的位置即为差异数据的位置信息。 关于括 号内数据的具体含义为 (开始位置, 读取长度, 结束符), 例如, (0, 70, 0) 中第一 个 "0"代表开始位置, 即从网络请求模板第一行的第一位字符 "A"开始; (0, 70, 0) 中的 "70"代表读取长度, 即从网络请求模板的第一个字符 "A"开始, 读取 70 个字符, 到网络请求模板的第一行结束; (0, 70, 0) 中第二个 "0"代表结束符, 由 于第一行已经结束, 所以用 "0"代表空。 在 (0, 5, b) 中, 第一位 "0"指代网络请求模板第二行的开始位置为 "H", 在 对比网络请求和网络请求模板的过程中, 发现第二行连续 5个字符完全相同, 从第六 个字符开始不同, 且网络请求的第六个字符为 "b", 所以将网络请求的前六个字符用 (0, 5, b)来表示。在对比网络请求第二行的第七个字符与网络请求模板第二行的第 七个字符时, 发现不同, 并将网络请求第二行的第七个字符与网络请求模板第二行的 第七个字符以后的字符继续比较, 确定没有与其相同的数据, 从而定义网络请求第二 行的第七个字符 "a"为差异数据。 由此方法可知, 差异数据还包括 "idu"。 在确定完 差异数据以后, 发现网络请求第二行的第十一个字符至第十四个字符 " .com"与网络 请求模板第二行的第九个字符至第十二个字符 " .com"相同, 所以得到 (8, 4, 0)。 因此, 通过可逆向的二进制 diff算法可以对网络请求和网络请求模板进行差异性 运算, 从而得到差异数据和位置信息, 而且, 该 diff算法是可逆向的, 利用网络请求 模板、 差异数据和位置信息还能够反向得到网络数据, 从而适合与本发明实施例要解 决的问题, 即将网络请求与网络请求模板中相同的部分删除, 仅传输网络请求模板的 标识信息、 差异数据和位置信息, 以减少传输网络请求的数据的传输量。 实施例二 请参见图 2所示, 图 2所示的为另一种网络数据的传输方法, 该方法应用于客户 端, 本实施例提供的方法可以避免浪费客户端的数据流量, 减少客户端向服务器发送 网络请求的时间, 从而提高客户端联网的速度, 该方法包括: 步骤 S201、 获取网络请求; 其中, 网络请求指的是客户端与服务器之间的网络请求, 例如, HTTP 请求头, 当然也可以是其他的请求。 由于每个网络请求中均包含大量的重复性数据, 所以客户 端始终在向服务器发送大量重复性数据。 步骤 S202、 判断网络请求与网络请求模板是否完全相同, 如果是, 则执行步骤 S203, 否则, 执行步骤 S204; 其中, 由于客户端新生成的网络请求有可能与预先存储的网络请求模板是完全相 同的, 如果完全相同,那么客户端仅需要将该网络请求模板的标识信息发送给服务器, 从而减少了客户端向服务器发送的数据量, 缩短了客户端向服务器发送网络请求的时 间。 步骤 S203、 向服务器发送网络请求模板的标识信息; 步骤 S204、 比较网络请求与预先存储在客户端上的网络请求模板得到差异数据和 相同数据; 其中, 客户端会存储有多个之前发送过的网络请求, 并将这些预先存储的网络请 求作为网络请求模板。 在客户端新产生一个网络请求以后, 需要将该网络请求与预先 存储的网络请求模板进行比较, 从而得到差异数据和相同数据。 差异数据指的是网络 请求相对于网络请求模板增加的部分, 相同数据指的是网络请求与网络请求模板相同 的部分。 步骤 S205、 确定差异数据和相同数据在网络请求模板中的位置信息; 其中, 在得到差异数据和相同数据以后, 还要确定差异数据和相同数据在网络请 求模板中的位置信息。 位置信息的作用是, 利用位置信息可以在网络请求模板中找到 相同数据, 利用位置信息还可以确定差异数据应该放置在网络请求模板中的什么位置 上, 所以利用位置信息、 差异数据和网络请求模板可以还原出网络请求。 在步骤 S204和步骤 S205的过程中, 可以利用一种算法来实现, 例如, 通过可逆 向的二进制 diff算法来对网络请求和网络请求模板进行差异性运算, 通过上述算法最 终可以得到差异数据和位置信息。 当然, 还可以采用其他的方法来实现, 例如, 开源 的 xdelta算法, google的 vcdecoder算法, 开源 diffotils算法等等, 都可以实现对网络 请求和网络请求模板进行差异性运算。 最后将计算出来的差异数据和位置信息作为真 正传输的部分,由于差异数据中已经没有了网络请求与网络请求模板之间相同的部分, 因此差异数据的大小会远远小于原始的网络请求的大小。 步骤 S206、 向服务器发送网络请求模板的标识信息、 差异数据和位置信息, 标识 信息用于服务器査找预先存储在该服务器上的与标识信息对应的网络请求模板, 网络 请求模板、 差异数据和位置信息用于服务器对网络请求进行还原。 其中, 将网络请求模板的标识信息、 差异数据和位置信息发送给服务器, 以便于 服务器利用网络请求模板、 差异数据和位置信息还原出网络请求。 网络请求模板的标 识信息指的是网络请求模板的唯一标识符, 可以用几位的字符表示, 例如, 某一个网 络请求模板的标识信息具体为 BZ1001 , 当然, 网络请求模板的标识信息的编码方式有 很多种, 在此不再一一赘述。 在图 2所示的实施例中, 本发明提供的方案不仅可以在保证网络数据传输正确的 基础上, 减少客户端向服务器发送网络请求的时间, 提高客户端联网的速度; 而且, 还能够判断客户端新生成的网络请求有可能与预先存储的网络请求模板是完全相同 的, 如果完全相同, 那么客户端仅需要将该网络请求模板的标识信息发送给服务器, 从而在更大的程度上减少了客户端向服务器发送的数据量, 缩短了客户端向服务器发 送网络请求的时间; 另外, 服务器也无需做任何的计算还原的操作。 实施例三 请参见图 3所示, 图 3所示的为又一种网络数据的传输方法, 该方法应用于客户 端, 本实施例提供的方法可以减少客户端向服务器发送数据的传输量, 该方法包括: 步骤 S301、 获取网络请求; 其中, 网络请求指的是客户端与服务器之间的网络请求, 例如, HTTP 请求头, 当然也可以是其他的请求。 由于每个网络请求中均包含大量的重复性数据, 所以客户 端始终在向服务器发送大量重复性数据。 步骤 S302、 删除模板组中存储时间超过预设时间的网络请求模板; 其中,模板组中包括多个网络请求模板, 由于客户端和服务器的资源都是有限的, 不能够无限缓存数据, 所以需要定期删除模板组中一定量的网络请求模板。 预设时间 为用户可以自行设定的一个时间段。 步骤 S303、 计算网络请求与模板组中每个网络请求模板的差异数据的数据量; 其中, 差异数据是客户端向服务器必须传输的数据, 所以差异数据越小, 客户端 向服务器需要发送的数据量就越小, 所以计算出网络请求与模板组中每个网络请求模 板的差异数据的数据量, 并选择出数据量最小的网络请求模板, 从而可以减少客户端 向服务器发送数据的传输量。 步骤 S304、 在模板组中选择数据量最小的网络请求模板。 步骤 S305、 比较网络请求与预先存储在客户端上的网络请求模板得到差异数据和 相同数据; 其中, 客户端会存储有多个之前发送过的网络请求, 并将这些预先存储的网络请 求作为网络请求模板。 在客户端新产生一个网络请求以后, 需要将该网络请求与预先 存储的网络请求模板进行比较, 从而得到差异数据和相同数据。 差异数据指的是网络 请求相对于网络请求模板增加的部分, 相同数据指的是网络请求与网络请求模板相同 的部分。 步骤 S306、 确定差异数据和相同数据在网络请求模板中的位置信息; 其中, 在得到差异数据和相同数据以后, 还要确定差异数据和相同数据在网络请 求模板中的位置信息。 位置信息的作用是, 利用位置信息可以在网络请求模板中找到 相同数据, 利用位置信息还可以确定差异数据应该放置在网络请求模板中的什么位置 上, 所以利用位置信息、 差异数据和网络请求模板可以还原出网络请求。 在步骤 S305和步骤 S306的过程中, 可以利用一种算法来实现, 例如, 通过可逆 向的二进制 diff算法来对网络请求和网络请求模板进行差异性运算, 通过上述算法最 终可以得到差异数据和位置信息。 当然, 还可以采用其他的方法来实现, 例如, 开源 的 xdelta算法, google的 vcdecoder算法, 开源 diffotils算法等等, 都可以实现对网络 请求和网络请求模板进行差异性运算。 最后将计算出来的差异数据和位置信息作为真 正传输的部分,由于差异数据中已经没有了网络请求与网络请求模板之间相同的部分, 因此差异数据的大小会远远小于原始的网络请求的大小。 步骤 S307、 向服务器发送网络请求模板的标识信息、 差异数据和位置信息, 标识 信息用于服务器査找预先存储在该服务器上的与标识信息对应的网络请求模板, 网络 请求模板、 差异数据和位置信息用于服务器对网络请求进行还原。 其中, 将网络请求模板的标识信息、 差异数据和位置信息发送给服务器, 以便于 服务器利用网络请求模板、 差异数据和位置信息还原出网络请求。 网络请求模板的标 识信息指的是网络请求模板的唯一标识符, 可以用几位的字符表示, 例如, 某一个网 络请求模板的标识信息具体为 BZ1001 , 当然, 网络请求模板的标识信息的编码方式有 很多种, 在此不再一一赘述。 在图 3所示的实施例中, 本发明提供的方案不仅可以在保证网络数据传输正确的 基础上, 减少客户端向服务器发送网络请求的时间, 提高客户端联网的速度; 而且, 还能够减少客户端向服务器发送数据的传输量。 实施例四 请参见图 4所示, 图 4所示的为又一种网络数据的传输方法, 该方法应用于客户 端, 本实施例提供的方法可以在传输的数据出现丢失、 乱码等情况下, 重新发送完整 的网络请求, 该方法包括: 步骤 S401、 获取网络请求; 其中, 网络请求指的是客户端与服务器之间的网络请求, 例如, HTTP 请求头, 当然也可以是其他的请求。 由于每个网络请求中均包含大量的重复性数据, 所以客户 端始终在向服务器发送大量重复性数据。 步骤 S402、对比网络请求与预先存储在客户端上的网络请求模板得到差异数据和 相同数据; 其中, 客户端会存储有多个之前发送过的网络请求, 并将这些预先存储的网络请 求作为网络请求模板。 在客户端新产生一个网络请求以后, 需要将该网络请求与预先 存储的网络请求模板进行比较, 从而得到差异数据和相同数据。 差异数据指的是网络 请求相对于网络请求模板增加的部分, 相同数据指的是网络请求与网络请求模板相同 的部分。 步骤 S403、 确定差异数据和相同数据在网络请求模板中的位置信息; 其中, 在得到差异数据和相同数据以后, 还要确定差异数据和相同数据在网络请 求模板中的位置信息。 位置信息的作用是, 利用位置信息可以在网络请求模板中找到 相同数据, 利用位置信息还可以确定差异数据应该放置在网络请求模板中的什么位置 上, 所以利用位置信息、 差异数据和网络请求模板可以还原出网络请求。 在步骤 S402和步骤 S403的过程中, 可以利用一种算法来实现, 例如, 通过可逆 向的二进制 diff算法来对网络请求和网络请求模板进行差异性运算, 通过上述算法最 终可以得到差异数据和位置信息。 当然, 还可以采用其他的方法来实现, 例如, 开源 的 xdelta算法, google的 vcdecoder算法, 开源 diffotils算法等等, 都可以实现对网络 请求和网络请求模板进行差异性运算。 最后将计算出来的差异数据和位置信息作为真 正传输的部分,由于差异数据中已经没有了网络请求与网络请求模板之间相同的部分, 因此差异数据的大小会远远小于原始的网络请求的大小。 步骤 S404、 向服务器发送网络请求模板的标识信息、 差异数据和位置信息, 标识 信息用于服务器査找预先存储在该服务器上的与标识信息对应的网络请求模板, 网络 请求模板、 差异数据和位置信息用于服务器对网络请求进行还原。 其中, 将网络请求模板的标识信息、 差异数据和位置信息发送给服务器, 以便于 服务器利用网络请求模板、 差异数据和位置信息还原出网络请求。 网络请求模板的标 识信息指的是网络请求模板的唯一标识符, 可以用几位的字符表示, 例如, 某一个网 络请求模板的标识信息具体为 BZ1001 , 当然, 网络请求模板的标识信息的编码方式有 很多种, 在此不再一一赘述。 步骤 S405、判断是否接收到所述服务器发送的重传指令,若是,则执行步骤 S406; 其中, 在客户端向服务器发送数据的过程中, 有各种可能性导致客户端向服务器 发送的数据出现丢失、 乱码等情况, 所以在这种情况下, 服务器通常会向客户端发送 重传指令, 所以客户端一旦接收到服务器发送的重传指令, 那么就向服务器发送客户 端生成的完整的网络请求。 步骤 S406、 向服务器发送网络请求。 在图 4所示的实施例中, 本发明提供的方案不仅可以在保证网络数据传输正确的 基础上, 减少客户端向服务器发送网络请求的时间, 提高客户端联网的速度; 而且, 还能够在传输的数据出现丢失、 乱码等情况下, 重新发送完整的网络请求。 实施例五 请参见图 5所示, 图 5所示的为又一种网络数据的传输方法, 该方法应用于服务 器, 本实施例提供的方法可以避免浪费客户端的数据流量, 减少客户端向服务器发送 网络请求的时间, 从而提高客户端联网的速度, 该方法包括: 步骤 S501、 接收客户端发送的网络请求模板的标识信息、 差异数据和位置信息; 其中, 差异数据和相同数据是由客户端通过对获取到的网络请求与自身存储的网 络请求模板进行比较后得到的, 位置信息是客户端根据差异数据和相同数据在网络请 求模板中的位置确定的。 步骤 S502、 査找与标识信息对应的网络请求模板; 其中, 服务器会存储有多个之前接收过的网络请求, 并将这些预先存储的网络请 求作为网络请求模板。 服务器端预先存储网络请求模板与标识信息的对应关系, 每个 标识信息均对应有唯一的网络请求模板, 所以在获取到标识信息后, 能够通过标识信 息査找到对应的网络请求模板。 步骤 S503、 根据网络请求模板、 差异数据和位置信息对网络请求进行还原。 其中, 通过可逆向的二进制 diff算法根据网络请求模板、 差异数据和位置信息还 原出网络请求。当然,还可以采用其他的方法来实现,例如,开源的 xdelta算法, google 的 vcdecoder算法, 开源 diffutils算法等等。 但是, 服务器使用的算法必须要与客户端 使用的算法一致, 从而保证服务器可进行逆向运算。 在图 5所示的实施例中, 客户端向服务器发送的数据包括网络请求模板的标识信 息、 差异数据和位置信息, 由于客户端向服务器发送的数据不包括网络请求与网络请 求模板的相同数据, 所以减少了很多重复性内容, 从而减少了网络数据的传输; 而且, 服务器在接收到客户端发送的数据后, 能够利用网络请求模板、 差异数据和位置信息 还原出网络请求, 从而保证网络数据传输的正确性。 因此, 本发明提供的方案在保证 网络数据传输正确的基础上, 减少客户端向服务器发送网络请求的时间, 从而提高客 户端联网的速度。 实施例六 请参见图 6所示, 图 6所示的为又一种网络数据的传输方法, 该方法应用于服务 器, 本实施例提供的方法在接收到只含有网络请求模板的标识信息的情况下, 只需要 找到与该标识信息对应的网络请求模板, 并将该网络请求模板作为网络请求即可, 从 而极大的缩短了服务器接收客户端发送数据的时间, 该方法包括: 步骤 S601、 判断接收到客户端发送的数据是否只含有网络请求模板的标识信息, 若是, 则执行步骤 S602, 否则, 执行步骤 S603; 其中, 如果接收到客户端发送的数据只含有网络请求模板的标识信息, 说明在客 户端已经找到了与网络请求完全相同的网络请求模板, 所以客户端才会只发送网络请 求模板的标识信息, 服务器只需要找到与该标识信息对应的网络请求模板, 并将该网 络请求模板作为网络请求即可,从而极大的缩短了服务器接收客户端发送数据的时间。 步骤 S602、确定标识信息对应的网络请求模板,并将网络请求模板作为网络请求; 步骤 S603、 接收客户端发送的网络请求模板的标识信息、 差异数据和位置信息; 其中, 网络请求模板的标识信息、 差异数据和位置信息是由客户端发送来的。 位 置信息为客户端根据差异数据和相同数据在网络请求模板中的位置信息确定的, 差异 数据和相同数据为客户端通过对比网络请求与网络请求模板得到的, 网络请求为客户 端生成的。 步骤 S604、 确定标识信息对应的网络请求模板; 其中, 服务器会存储有多个之前接收过的网络请求, 并将这些预先存储的网络请 求作为网络请求模板。 服务器端预先存储网络请求模板与标识信息的对应关系, 每个 标识信息均对应有唯一的网络请求模板, 所以在获取到标识信息后, 能够通过标识信 息査找到对应的网络请求模板。 步骤 S605、 根据网络请求模板、 差异数据和位置信息还原出网络请求。 其中, 通过可逆向的二进制 diff算法根据网络请求模板、 差异数据和位置信息还 原出网络请求。当然,还可以采用其他的方法来实现,例如,开源的 xdelta算法, google 的 vcdecoder算法, 开源 diffutils算法等等。 但是, 服务器使用的算法必须要与客户端 使用的算法一致, 从而保证服务器可进行逆向运算。 在图 6所示的实施例中, 本发明提供的方案不仅可以在保证网络数据传输正确的 基础上, 减少客户端向服务器发送网络请求的时间, 提高客户端联网的速度; 而且, 在接收到只含有网络请求模板的标识信息的情况下, 只需要找到与该标识信息对应的 网络请求模板, 并将该网络请求模板作为网络请求即可, 从而极大的缩短了服务器接 收客户端发送数据的时间; 另外, 服务器也无需做任何的计算还原的操作。 实施例七 请参见图 7所示, 图 7所示的为又一种网络数据的传输方法, 该方法应用于服务 器,本实施例提供的方法在服务器未査找到与标识信息对应的网络请求模板的情况下, 要求客户端重新发送完整的网络数据, 以避免传输过程中再次出现错误, 该方法包括: 步骤 S701、 接收客户端发送的网络请求模板的标识信息、 差异数据和位置信息; 其中, 所述差异数据和相同数据是由所述客户端通过对获取到的网络请求与自身 存储的所述网络请求模板进行比较后得到的, 位置信息是客户端根据差异数据和相同 数据在网络请求模板中的位置确定。 步骤 S702、 判断是否査找到与标识信息对应的网络请求模板, 若是, 执行步骤 S704, 否则, 执行步骤 S703; 其中, 服务器在没有査找到与标识信息对应的网络请求模板存在几种情况, 第一 种情况, 服务器尚未存储该标识信息及该网络请求模板; 第二种情况, 在客户端向服 务器发送该标识信息的过程中, 出现了标识信息丢失部分数据的情况等等。 无论属于 哪种情况, 都需要向客户端发送重传指令。 步骤 S703、 向客户端发送重传指令; 其中, 重传指令指的是要求客户端发送生成的完整的网络请求, 避免传输过程中 再次出现错误。 步骤 S704、 确定标识信息对应的网络请求模板; 其中, 服务器会存储有多个之前接收过的网络请求, 并将这些预先存储的网络请 求作为网络请求模板。 服务器端预先存储网络请求模板与标识信息的对应关系, 每个 标识信息均对应有唯一的网络请求模板, 所以在获取到标识信息后, 能够通过标识信 息査找到对应的网络请求模板。 步骤 S705、 根据网络请求模板、 差异数据和位置信息还原出网络请求。 其中, 通过可逆向的二进制 diff算法根据网络请求模板、 差异数据和位置信息还 原出网络请求。当然,还可以采用其他的方法来实现,例如,开源的 xdelta算法, google 的 vcdecoder算法, 开源 diffutils算法等等。 但是, 服务器使用的算法必须要与客户端 使用的算法一致, 从而保证服务器可进行逆向运算。 在图 7所示的实施例中, 本发明提供的方案不仅可以在保证网络数据传输正确的 基础上, 减少客户端向服务器发送网络请求的时间, 提高客户端联网的速度; 而且, 在服务器未査找到与标识信息对应的网络请求模板的情况下, 要求客户端重新发送完 整的网络数据, 以避免传输过程中再次出现错误。 实施例八 请参见图 8所示, 图 8所示的为又一种网络数据的传输方法, 该方法应用于服务 器,本实施例提供的方法可以验证客户端向服务器发送的数据是否正确, 如果不正确, 那么说明传输的数据存在错误,再要求客户端重新发送完整的网络请求, 该方法包括: 步骤 S801、 接收客户端发送的网络请求模板的标识信息、 差异数据和位置信息; 其中, 网络请求模板的标识信息、 差异数据和位置信息是由客户端发送来的。 位 置信息为客户端根据差异数据和相同数据在网络请求模板中的位置信息确定的, 差异 数据和相同数据为客户端通过对比网络请求与网络请求模板得到的, 网络请求为客户 端生成的。 步骤 S802、 确定标识信息对应的网络请求模板; 其中, 服务器会存储有多个之前接收过的网络请求, 并将这些预先存储的网络请 求作为网络请求模板。 服务器端预先存储网络请求模板与标识信息的对应关系, 每个 标识信息均对应有唯一的网络请求模板, 所以在获取到标识信息后, 能够通过标识信 息査找到对应的网络请求模板。 步骤 S803、 根据网络请求模板、 差异数据和位置信息还原出网络请求。 其中, 通过可逆向的二进制 diff算法根据网络请求模板、 差异数据和位置信息还 原出网络请求。当然,还可以采用其他的方法来实现,例如,开源的 xdelta算法, google 的 vcdecoder算法, 开源 diffutils算法等等。 但是, 服务器使用的算法必须要与客户端 使用的算法一致, 从而保证服务器可进行逆向运算。 步骤 S804、 接收客户端发送的验证码, 验证码是客户端利用预设算法对网络请求 中的数据计算得到的; 其中, 为了验证客户端向服务器发送的数据是否正确, 服务器会接收到客户端利 用 MD5算法或 hashkey算法计算网络请求中的数据得到验证码;在服务器接收到该验 证码以后,服务器会利用 MD5算法或 hashkey算法对还原出来的网络请求的数据进行 计算, 得到信息码, 服务器再比较验证码和信息码是否相同, 如果相同, 说明传输的 数据没有错误, 如果不同, 那么说明传输的数据存在错误, 再要求客户端重新发送完 整的网络请求。 步骤 S805、 利用预设算法计算还原出的网络请求中的数据得到信息码; 步骤 S806、 判断验证码与信息码是否相同, 若是, 则执行步骤 S807, 否则, 执 行步骤 S808; 步骤 S807、 显示还原出的网络请求是正确的; 步骤 S808、 向客户端发送重传指令。 在图 8所示的实施例中, 本发明提供的方案不仅可以在保证网络数据传输正确的 基础上, 减少客户端向服务器发送网络请求的时间, 提高客户端联网的速度; 而且, 还可以验证客户端向服务器发送的数据是否正确, 如果不正确, 那么说明传输的数据 存在错误, 再要求客户端重新发送完整的网络请求。 实施例九 请参见图 9所示, 图 9所示的为一种网络数据的传输装置, 本实施例提供的装置 可以避免浪费客户端的数据流量, 减少客户端向服务器发送网络请求的时间, 从而提 高客户端联网的速度, 该装置包括: 获取模块 11, 设置为获取网络请求; 比较模块 12, 设置为比较网络请求与预先存储在客户端上的网络请求模板得到差 异数据和相同数据; 确定模块 13, 设置为确定差异数据和相同数据在网络请求模板中的位置信息; 第一发送模块 14, 设置为向服务器发送网络请求模板的标识信息、 差异数据和位 置信息, 标识信息用于服务器査找预先存储在该服务器上的与标识信息对应的网络请 求模板, 网络请求模板、 差异数据和位置信息用于服务器对网络请求进行还原。 在图 9所示的实施例中, 本实施例提供的传输装置的功能与实施例一实现的功能 相对应, 所以关于本实施例各个模块的功能可参见实施例一中的内容, 在此不再一一 赘述。 实施例十 请参见图 10所示, 图 10所示的为另一种网络数据的传输装置, 本实施例提供的 装置可以避免浪费客户端的数据流量, 减少客户端向服务器发送网络请求的时间, 从 而提高客户端联网的速度, 该装置包括: 获取模块 21, 设置为获取网络请求; 第一判断模块 22, 设置为判断网络请求与网络请求模板是否完全相同; 第一执行模块 23, 设置为在网络请求与网络请求模板完全相同时, 向服务器发送 网络请求模板的标识信息; 在网络请求与网络请求模板不完全相同时, 执行对比模块 24。 比较模块 24, 设置为比较网络请求与预先存储在客户端上的网络请求模板得到差 异数据和相同数据; 确定模块 25, 设置为确定差异数据和相同数据在网络请求模板中的位置信息; 第一发送模块 26, 设置为向服务器发送网络请求模板的标识信息、 差异数据和位 置信息, 标识信息用于服务器査找预先存储在该服务器上的与标识信息对应的网络请 求模板, 网络请求模板、 差异数据和位置信息用于服务器对网络请求进行还原。 在图 10所示的实施例中,本实施例提供的传输装置的功能与实施例二实现的功能 相对应, 所以关于本实施例各个模块的功能可参见实施例二中的内容, 在此不再一一 赘述。 实施例 ^一 请参见图 11所示, 图 11所示的为又一种网络数据的传输装置, 本实施例提供的 装置可以减少客户端向服务器发送数据的传输量, 该装置包括: 获取模块 31, 设置为获取网络请求; 删除模块 32, 设置为删除模板组中存储时间超过预设时间的网络请求模板; 第一计算模块 33, 设置为计算网络请求与模板组中每个网络请求模板的差异数据 的数据量; 选择模块 34, 设置为在模板组中选择数据量最小的网络请求模板; 比较模块 35, 设置为比较网络请求与预先存储在客户端上的网络请求模板得到差 异数据和相同数据; 确定模块 36, 设置为确定差异数据和相同数据在网络请求模板中的位置信息; 第一发送模块 37, 设置为向服务器发送网络请求模板的标识信息、 差异数据和位 置信息, 标识信息用于服务器査找预先存储在该服务器上的与标识信息对应的网络请 求模板, 网络请求模板、 差异数据和位置信息用于服务器对网络请求进行还原。 在图 11所示的实施例中,本实施例提供的传输装置的功能与实施例三实现的功能 相对应, 所以关于本实施例各个模块的功能可参见实施例三中的内容, 在此不再一一 赘述。 实施例十二 请参见图 12所示, 图 12所示的为又一种网络数据的传输装置, 本实施例提供的 装置可以在传输的数据出现丢失、 乱码等情况下, 重新发送完整的网络请求, 该装置 包括: 获取模块 41, 设置为获取网络请求; 比较模块 42, 设置为对比网络请求与预先存储在客户端上的网络请求模板得到差 异数据和相同数据; 确定模块 43, 设置为确定差异数据和相同数据在网络请求模板中的位置信息; 第一发送模块 44, 设置为向服务器发送网络请求模板的标识信息、 差异数据和位 置信息, 标识信息用于服务器査找预先存储在该服务器上的与标识信息对应的网络请 求模板, 网络请求模板、 差异数据和位置信息用于服务器对网络请求进行还原。 第二判断模块 45, 设置为判断是否接收到服务器发送的重传指令; 第二执行模块 46, 设置为在接收到服务器发送的重传指令时, 向服务器发送网络 请求。 在图 12所示的实施例中,本实施例提供的传输装置的功能与实施例四实现的功能 相对应, 所以关于本实施例各个模块的功能可参见实施例四中的内容, 在此不再一一 赘述。 实施例十三 请参见图 13所示, 图 13所示的为又一种网络数据的传输装置, 本实施例提供的 装置可以避免浪费客户端的数据流量, 减少客户端向服务器发送网络请求的时间, 从 而提高客户端联网的速度, 该装置包括: 获取模块 51, 设置为获取网络请求; 比较模块 52, 设置为对比网络请求与预先存储在客户端上的网络请求模板得到差 异数据和相同数据; 确定模块 53, 设置为确定差异数据和相同数据在网络请求模板中的位置信息; 第一发送模块 54, 设置为向服务器发送网络请求模板的标识信息、 差异数据和位 置信息, 标识信息用于服务器査找预先存储在该服务器上的与标识信息对应的网络请 求模板, 网络请求模板、 差异数据和位置信息用于服务器对网络请求进行还原。 第二计算模块 55, 设置为利用预设算法计算网络请求中的数据得到验证码; 第二发送模块 56, 设置为向服务器发送验证码。 在图 13所示的实施例中,本实施例提供的传输装置的功能与实施例一实现的功能 相对应, 所以关于本实施例各个模块的功能可参见实施例一中的内容, 在此不再一一 赘述。 实施例十四 请参见图 14所示, 图 14所示的为又一种网络数据的传输装置, 本实施例提供的 装置可以避免浪费客户端的数据流量, 减少客户端向服务器发送网络请求的时间, 从 而提高客户端联网的速度, 该装置包括: 第一接收模块 61, 设置为接收客户端发送的网络请求模板的标识信息、 差异数据 和位置信息, 其中, 差异数据和相同数据是由客户端通过对获取到的网络请求与自身 存储的网络请求模板进行比较后得到的, 位置信息是客户端根据差异数据和相同数据 在网络请求模板中的位置确定的; 査找模块 62, 设置为査找与标识信息对应的网络请求模板; 还原模块 63, 设置为根据网络请求模板、 差异数据和位置信息对网络请求进行还 原。 在图 14所示的实施例中,本实施例提供的传输装置的功能与实施例五实现的功能 相对应, 所以关于本实施例各个模块的功能可参见实施例五中的内容, 在此不再一一 赘述。 实施例十五 请参见图 15所示, 图 15所示的为又一种网络数据的传输装置, 本实施例提供的 装置在接收到只含有网络请求模板的标识信息的情况下, 只需要找到与该标识信息对 应的网络请求模板, 并将该网络请求模板作为网络请求即可, 从而极大的缩短了服务 器接收客户端发送数据的时间, 该装置包括: 第一判断模块 71, 设置为判断接收到的客户端发送的数据是否只含有网络请求模 板的标识信息; 第一执行模块 72, 设置为在接收到的客户端发送的数据只含有网络请求模板的标 识信息时, 确定标识信息对应的网络请求模板, 并将网络请求模板作为网络请求; 在 接收到的客户端发送的数据不只含有网络请求模板的标识信息时, 继续执行第一接收 模块; 第一接收模块 73, 设置为接收客户端发送的网络请求模板的标识信息、 差异数据 和位置信息, 位置信息为客户端根据差异数据和相同数据在网络请求模板中的位置信 息确定的, 差异数据和相同数据为客户端通过对比网络请求与网络请求模板得到的, 网络请求为客户端生成的; 査找模块 74, 设置为査找与标识信息对应的网络请求模板; 还原模块 75, 设置为根据网络请求模板、 差异数据和位置信息还原出网络请求。 在图 15所示的实施例中,本实施例提供的传输装置的功能与实施例六实现的功能 相对应, 所以关于本实施例各个模块的功能可参见实施例六中的内容, 在此不再一一 赘述。 实施例十六 请参见图 16所示, 图 16所示的为又一种网络数据的传输装置, 本实施例提供的 装置在服务器未査找到与标识信息对应的网络请求模板的情况下, 要求客户端重新发 送完整的网络数据, 以避免传输过程中再次出现错误, 该装置包括: 第一接收模块 81, 设置为接收客户端发送的网络请求模板的标识信息、 差异数据 和位置信息, 位置信息为客户端根据差异数据和相同数据在网络请求模板中的位置信 息确定的, 差异数据和相同数据为客户端通过对比网络请求与网络请求模板得到的, 网络请求为客户端生成的; 第二判断模块 82, 设置为判断是否査找到与标识信息对应的网络请求模板; 第二执行模块 83, 设置为在査找到与标识信息对应的网络请求模板时, 继续执行 确定模块 84; 在没有査找到与标识信息对应的网络请求模板时, 向客户端发送重传指 令; 査找模块 84, 设置为査找与标识信息对应的网络请求模板; 还原模块 85, 设置为根据网络请求模板、 差异数据和位置信息还原出网络请求。 在图 16所示的实施例中,本实施例提供的传输装置的功能与实施例七实现的功能 相对应, 所以关于本实施例各个模块的功能可参见实施例七中的内容, 在此不再一一 赘述。 实施例十七 请参见图 17所示, 图 17所示的为又一种网络数据的传输装置, 本实施例提供的 装置可以验证客户端向服务器发送的数据是否正确, 如果不正确, 那么说明传输的数 据存在错误, 再要求客户端重新发送完整的网络请求, 该装置包括: 第一接收模块 91, 设置为接收客户端发送的网络请求模板的标识信息、 差异数据 和位置信息, 位置信息为客户端根据差异数据和相同数据在网络请求模板中的位置信 息确定的, 差异数据和相同数据为客户端通过对比网络请求与网络请求模板得到的, 网络请求为客户端生成的; 査找模块 92, 设置为査找与标识信息对应的网络请求模板; 还原模块 93, 设置为根据网络请求模板、 差异数据和位置信息还原出网络请求; 第二接收模块 94, 设置为接收客户端发送的验证码, 验证码是客户端利用预设算 法对网络请求中的数据计算得到的; 计算模块 95, 设置为利用预设算法计算还原出的网络请求中的数据得到信息码; 第三判断模块 96, 设置为判断验证码与信息码是否相同; 第三执行模块 97, 设置为在验证码与信息码相同时, 显示还原出的网络请求是正 确的; 在验证码与信息码不同时, 向客户端发送重传指令。 在图 17所示的实施例中,本实施例提供的传输装置的功能与实施例八实现的功能 相对应, 所以关于本实施例各个模块的功能可参见实施例八中的内容, 在此不再一一 赘述。 实施例十八 请参见图 18所示, 图 18所示的为一种网络数据的传输系统, 本实施例提供的装 置可以避免浪费客户端的数据流量, 减少客户端向服务器发送网络请求的时间, 从而 提高客户端联网的速度, 该系统包括客户端 1和服务器 2; 其中, 客户端 1, 设置为获取客户端生成的网络请求; 对比网络请求与预先存储的网络 请求模板得到差异数据和相同数据; 确定差异数据和相同数据在网络请求模板中的位 置信息; 向服务器发送网络请求模板的标识信息、 差异数据和位置信息; 服务器 2, 设置为接收客户端发送的网络请求模板的标识信息、 差异数据和位置 信息; 确定标识信息对应的网络请求模板; 根据网络请求模板、 差异数据和位置信息 还原出网络请求。 在图 18所示的实施例中,本实施例提供的传输系统的功能分别与实施例一和实施 例五实现的功能相对应, 所以关于本实施例各个模块的功能可参见实施例一和实施例 五实现中的内容, 在此不再一一赘述。 需要说明的是, 图 1至图 18所示的实施例只是本发明所介绍的优选实施例,本领 域技术人员在此基础上, 完全可以设计出更多的实施例, 因此不在此处赘述。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书 、 一种网络数据的传输方法, 包括:
获取网络请求;
比较所述网络请求与预先存储在客户端上的网络请求模板, 得到差异数据 和相同数据;
确定所述差异数据和所述相同数据在所述网络请求模板中的位置信息; 向服务器发送所述网络请求模板的标识信息、 所述差异数据和所述位置信 息, 所述标识信息用于所述服务器査找预先存储在该服务器上的与所述标识信 息对应的所述网络请求模板, 所述网络请求模板、 所述差异数据和所述位置信 息用于所述服务器对所述网络请求进行还原。 、 根据权利要求 1所述的网络数据的传输方法, 其中, 获取所述网络请求之后, 比较所述网络请求与所述网络请求模板, 得到所述差异数据和所述相同数据之 前, 还包括: 判断所述网络请求与所述网络请求模板是否相同;
当所述网络请求与所述网络请求模板相同时, 向所述服务器发送所述标识 in息。 、 根据权利要求 1所述的网络数据的传输方法, 其中, 获取所述网络请求之后, 比较所述网络请求与所述网络请求模板得到差异数据和相同数据之前,还包括: 计算所述网络请求与模板组中每个网络请求模板的差异数据的数据量; 在所述模板组中选择所述数据量最小的网络请求模板。 、 根据权利要求 3所述的网络数据的传输方法, 其中, 获取所述网络请求之后, 计算所述网络请求与模板组中每个网络请求模板的差异数据的数据量之前, 还 包括: 删除所述模板组中存储时间超过预设时间的网络请求模板。 、 根据权利要求 1所述的网络数据的传输方法, 其中, 向所述服务器发送所述网 络请求模板的标识信息、 所述差异数据和所述位置信息之后, 还包括:
判断是否接收到所述服务器发送的重传指令; 当接收到所述服务器发送的重传指令时,向所述服务器发送所述网络请求。 、 根据权利要求 1所述的网络数据的传输方法, 其中, 所述标识信息为利用预设 算法对所述网络请求模板中的数据进行计算得到的;
获取所述网络请求之后, 还包括: 利用所述预设算法计算所述网络请求中的数据得到验证码;
向所述服务器发送所述验证码。 、 一种网络数据的传输方法, 包括: 接收客户端发送的网络请求模板的标识信息、差异数据和位置信息,其中, 所述差异数据和相同数据是由所述客户端通过对获取到的网络请求与自身存储 的所述网络请求模板进行比较后得到的, 所述位置信息是所述客户端根据所述 差异数据和所述相同数据在所述网络请求模板中的位置确定的; 査找与所述标识信息对应的所述网络请求模板;
根据所述网络请求模板、 所述差异数据和所述位置信息对所述网络请求进 行还原。 、 根据权利要求 7所述的网络数据的传输方法, 其中, 在接收所述客户端发送的 所述标识信息、 所述差异数据和所述位置信息之前, 还包括:
判断接收到的所述客户端发送的数据是否只含有所述标识信息; 当接收到的所述客户端发送的数据只含有所述标识信息时, 确定所述标识 信息对应的所述网络请求模板, 并将所述网络请求模板作为所述网络请求; 当接收到的所述客户端发送的数据不只含有所述标识信息时, 继续执行所 述接收客户端发送的网络请求模板的标识信息、 差异数据和位置信息的步骤。 、 根据权利要求 7所述的网络数据的传输方法,其中,在根据所述网络请求模板、 所述差异数据和所述位置信息对所述网络请求进行还原之后, 还包括: 接收所述客户端发送的验证码, 其中, 所述验证码是所述客户端利用预设 算法对所述网络请求中的数据进行计算得到的; 利用所述预设算法计算所述还原出的网络请求中的数据得到信息码; 判断所述验证码与所述信息码是否相同;
当所述验证码与所述信息码相同时,显示所述还原出的网络请求是正确的; 当所述验证码与所述信息码不同时, 向所述客户端发送重传指令。 、 一种网络数据的传输装置, 包括: 获取模块, 设置为获取网络请求;
比较模块, 设置为比较所述网络请求与预先存储在客户端上的网络请求模 板得到差异数据和相同数据;
确定模块, 设置为确定所述差异数据和所述相同数据在所述网络请求模板 中的位置信息;
第一发送模块, 设置为向服务器发送所述网络请求模板的标识信息、 所述 差异数据和所述位置信息, 所述标识信息用于所述服务器査找预先存储在该服 务器上的与所述标识信息对应的所述网络请求模板, 所述网络请求模板、 所述 差异数据和所述位置信息用于所述服务器对所述网络请求进行还原。 、 根据权利要求 10所述的网络数据的传输装置, 其中, 还包括: 第一判断模块, 设置为判断所述网络请求与所述网络请求模板是否相同; 第一执行模块, 设置为在所述网络请求与所述网络请求模板相同时, 向所 述服务器发送所述标识信息。 、 根据权利要求 10所述的网络数据的传输装置, 其中, 还包括: 第一计算模块, 设置为计算所述网络请求与模板组中每个网络请求模板的 差异数据的数据量, 所述模板组中包括多个网络请求模板;
选择模块, 设置为在所述模板组中选择所述数据量最小的网络请求模板。 、 根据权利要求 12所述的网络数据的传输装置, 其中, 还包括: 删除模块, 设置为删除所述模板组中存储时间超过预设时间的网络请求模 板。 、 根据权利要求 10所述的网络数据的传输装置, 其中, 还包括: 第二判断模块, 设置为判断是否接收到所述服务器发送的重传指令; 第二执行模块, 设置为在接收到所述服务器发送的重传指令时, 向所述服 务器发送所述网络请求。 、 根据权利要求 10所述的网络数据的传输装置, 其中, 还包括: 第二计算模块, 设置为利用所述预设算法计算所述网络请求中的数据得到 验证码; 第二发送模块, 设置为向所述服务器发送所述验证码。 、 一种网络数据的传输装置, 包括: 第一接收模块, 设置为接收客户端发送的网络请求模板的标识信息、 差异 数据和位置信息, 其中, 所述差异数据和相同数据是由所述客户端通过对获取 到的网络请求与自身存储的所述网络请求模板进行比较后得到的, 所述位置信 息是所述客户端根据所述差异数据和所述相同数据在所述网络请求模板中的位 置确定的;
査找模块, 设置为査找与所述标识信息对应的所述网络请求模板; 还原模块, 设置为根据所述网络请求模板、 所述差异数据和所述位置信息 对所述网络请求进行还原。 、 根据权利要求 16所述的网络数据的传输装置, 其中, 还包括: 第一判断模块, 设置为判断接收到的所述客户端发送的数据是否只含有所 述标识信息;
第一执行模块, 设置为在接收到的所述客户端发送的数据只含有所述标识 信息时, 确定所述标识信息对应的所述网络请求模板, 并将所述网络请求模板 作为所述网络请求; 在接收到的所述客户端发送的数据不只含有所述标识信息 时, 继续执行所述第一接收模块。 、 根据权利要求 16所述的网络数据的传输方法, 其中, 还包括: 第二接收模块, 设置为接收所述客户端发送的验证码, 所述验证码是所述 客户端利用预设算法对所述网络请求中的数据计算得到的;
计算模块, 设置为利用所述预设算法计算所述还原出的网络请求中的数据 得到信息码;
第三判断模块, 设置为判断所述验证码与所述信息码是否相同; 第三执行模块, 设置为在所述验证码与所述信息码相同时, 显示所述还原 出的网络请求是正确的; 在所述验证码与所述信息码不同时, 向所述客户端发 送重传指令。 、 一种网络数据的传输系统, 包括客户端和服务器; 所述客户端, 设置为获取网络请求; 比较所述网络请求与预先存储在客户 端上的网络请求模板得到差异数据和相同数据; 确定所述差异数据和所述相同 数据在所述网络请求模板中的位置信息; 向服务器发送所述网络请求模板的标 识信息、 所述差异数据和所述位置信息; 所述服务器, 设置为接收客户端发送的网络请求模板的标识信息、 差异数 据和位置信息; 査找与所述标识信息对应的所述网络请求模板; 根据所述网络 请求模板、 所述差异数据和所述位置信息对所述网络请求进行还原。 、 一种具有处理器可执行的程序代码的计算机可读介质, 在被执行时, 所述程序 代码使得处理器执行下述步骤:
获取网络请求; 比较所述网络请求与预先存储在客户端上的网络请求模板, 得到差异数据 和相同数据;
确定所述差异数据和所述相同数据在所述网络请求模板中的位置信息; 向服务器发送所述网络请求模板的标识信息、 所述差异数据和所述位置信 息, 所述标识信息用于所述服务器査找预先存储在该服务器上的与所述标识信 息对应的所述网络请求模板, 所述网络请求模板、 所述差异数据和所述位置信 息用于所述服务器对所述网络请求进行还原。 、 一种网络数据的传输装置, 包括: 处理器, 所述处理器, 设置为 获取客户端生成的网络请求; 比较所述网络请求与预先存储的网络请求模 板得到差异数据和相同数据; 确定所述差异数据和所述相同数据在所述网络请 求模板中的位置信息; 向服务器发送所述网络请求模板的标识信息、 所述差异 数据和所述位置信息,所述标识信息用于为所述服务器确定所述网络请求模板, 所述网络请求模板、 所述差异数据和所述位置信息用于为所述服务器还原出所 述网络请求。 、 一种具有处理器可执行的程序代码的计算机可读介质, 在被执行时, 所述程序 代码使得处理器执行下述步骤: 接收客户端发送的网络请求模板的标识信息、差异数据和位置信息,其中, 所述差异数据和相同数据是由所述客户端通过对获取到的网络请求与自身存储 的所述网络请求模板进行比较后得到的, 所述位置信息是所述客户端根据所述 差异数据和所述相同数据在所述网络请求模板中的位置确定的;
査找与所述标识信息对应的所述网络请求模板;
根据所述网络请求模板、 所述差异数据和所述位置信息对所述网络请求进 行还原。 、 一种网络数据的传输装置, 包括: 处理器, 所述处理器, 设置为接收客户端发 送的网络请求模板的标识信息、 差异数据和位置信息, 其中, 所述差异数据和 相同数据是由所述客户端通过对获取到的网络请求与自身存储的所述网络请求 模板进行比较后得到的, 所述位置信息是所述客户端根据所述差异数据和所述 相同数据在所述网络请求模板中的位置确定的; 査找与所述标识信息对应的所 述网络请求模板; 根据所述网络请求模板、 所述差异数据和所述位置信息对所 述网络请求进行还原。 、 一种网络数据的传输系统, 包括: 第一处理器, 设置为获取网络请求; 比较所述网络请求与预先存储在客户 端上的网络请求模板得到差异数据和相同数据; 确定所述差异数据和所述相同 数据在所述网络请求模板中的位置信息; 向服务器发送所述网络请求模板的标 识信息、 所述差异数据和所述位置信息;
第二处理器, 设置为接收客户端发送的网络请求模板的标识信息、 差异数 据和位置信息; 査找与所述标识信息对应的所述网络请求模板; 根据所述网络 请求模板、 所述差异数据和所述位置信息对所述网络请求进行还原。
PCT/CN2014/078716 2013-12-30 2014-05-28 一种网络数据的传输方法、装置及系统 WO2015100932A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/187,526 US10122803B2 (en) 2013-12-30 2016-06-20 Network data transmission method, device and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310744226.8A CN103731424B (zh) 2013-12-30 2013-12-30 一种网络数据的传输方法、装置及系统
CN201310744226.8 2013-12-30

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/187,526 Continuation US10122803B2 (en) 2013-12-30 2016-06-20 Network data transmission method, device and system

Publications (1)

Publication Number Publication Date
WO2015100932A1 true WO2015100932A1 (zh) 2015-07-09

Family

ID=50455351

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/078716 WO2015100932A1 (zh) 2013-12-30 2014-05-28 一种网络数据的传输方法、装置及系统

Country Status (3)

Country Link
US (1) US10122803B2 (zh)
CN (1) CN103731424B (zh)
WO (1) WO2015100932A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731424B (zh) * 2013-12-30 2017-09-15 优视科技有限公司 一种网络数据的传输方法、装置及系统
JP6455541B2 (ja) * 2017-03-30 2019-01-23 日本電気株式会社 通信システム
CN110292775B (zh) * 2019-07-01 2023-03-24 网易(杭州)网络有限公司 获取差异数据的方法及装置
CN114640880B (zh) * 2020-11-30 2023-06-30 腾讯科技(深圳)有限公司 账号登录控制方法、装置及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251517A1 (en) * 2000-02-02 2005-11-10 Hitachi, Ltd. Method of and a system for recovering data in an information processing system
CN102118293A (zh) * 2009-12-30 2011-07-06 上海可鲁系统软件有限公司 一种通讯报文压缩存储方法
CN102739703A (zh) * 2011-04-02 2012-10-17 中兴通讯股份有限公司 一种对等网络中数据迁移的方法及系统
CN102761861A (zh) * 2011-04-27 2012-10-31 中国移动通信集团广东有限公司 信息的更新方法、服务器以及信息的更新系统
CN103731424A (zh) * 2013-12-30 2014-04-16 优视科技有限公司 一种网络数据的传输方法、装置及系统

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7657573B1 (en) * 2003-03-31 2010-02-02 Invensys Method and data structure for exchanging data
US7831968B1 (en) * 2005-12-30 2010-11-09 United Services Automobile Association (Usaa) Method and system for restoring software
US20080046433A1 (en) * 2006-08-16 2008-02-21 Microsoft Corporation Role template objects for network account lifecycle management
CN101237419A (zh) * 2008-03-07 2008-08-06 北京航管科技有限公司 航空电信网空地通信中的报头压缩方法
WO2009147674A1 (en) * 2008-06-03 2009-12-10 Ethos Networks Ltd. Automatic signaling method and device for telecommunication services
CN102118792B (zh) * 2009-12-31 2015-01-21 华为技术有限公司 一种传输数据包的方法及装置
CN102006295A (zh) * 2010-11-26 2011-04-06 重庆金美通信有限责任公司 基于atm承载ip语音的数据压缩方法
CN102946551B (zh) * 2012-10-18 2015-06-10 中兴通讯股份有限公司 一种实现iptv业务的融合设备、系统和方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251517A1 (en) * 2000-02-02 2005-11-10 Hitachi, Ltd. Method of and a system for recovering data in an information processing system
CN102118293A (zh) * 2009-12-30 2011-07-06 上海可鲁系统软件有限公司 一种通讯报文压缩存储方法
CN102739703A (zh) * 2011-04-02 2012-10-17 中兴通讯股份有限公司 一种对等网络中数据迁移的方法及系统
CN102761861A (zh) * 2011-04-27 2012-10-31 中国移动通信集团广东有限公司 信息的更新方法、服务器以及信息的更新系统
CN103731424A (zh) * 2013-12-30 2014-04-16 优视科技有限公司 一种网络数据的传输方法、装置及系统

Also Published As

Publication number Publication date
US20160301763A1 (en) 2016-10-13
CN103731424A (zh) 2014-04-16
CN103731424B (zh) 2017-09-15
US10122803B2 (en) 2018-11-06

Similar Documents

Publication Publication Date Title
JP4160642B2 (ja) ネットワークデータ転送方法
CN109951546B (zh) 基于智能合约的事务请求处理方法、装置、设备和介质
JP2016517551A (ja) ネットワーク・パラメータに基づく、完全性点検および選択的な重複排除を実施する方法、コンピュータ・システムおよびコンピュータ・プログラム
JP2010011296A (ja) 送受信回路、送信回路及び送受信方法
WO2015100932A1 (zh) 一种网络数据的传输方法、装置及系统
CN103841111A (zh) 一种防止数据重复提交的方法和服务器
WO2020147403A1 (zh) 基于云存储的文件处理方法、系统及计算机设备
CN110633168A (zh) 一种分布式存储系统的数据备份方法和系统
US20160337467A1 (en) Method and system for information exchange utilizing an asynchronous persistent store protocol
CN107181774B (zh) 分布式数据中心之间的数据移动
CN104079623A (zh) 多级云存储同步控制方法及系统
US20160359950A1 (en) Systems and methods for improved trivial file transfer protocol
JP5709320B2 (ja) 失われたデータブロックを再送するための方法、コンピューティングデバイス及びプログラム
WO2014085959A1 (zh) 批量文件传输方法及设备
CN113076281A (zh) 一种Ceph内核客户端进行通信的方法、系统、设备及介质
WO2019095388A1 (zh) 一种远程协助处理方法及设备
US20200336432A1 (en) Methods for dynamically controlling transmission control protocol push functionality and devices thereof
CN109660589B (zh) 请求处理方法及装置、电子设备
WO2018000647A1 (zh) 文件下载方法、装置、终端及服务器
US20190236331A1 (en) Method, apparatus, and storage medium for data verification
CN115065694A (zh) 一种云存储数据中转上传系统、方法、设备及介质
CN108011926B (zh) 一种报文发送方法、处理方法、服务器及系统
US9172654B2 (en) Transfer device and transfer method
CN114553375A (zh) 数据传输方法、装置、电子设备及存储介质
US11070615B2 (en) Method, device and computer program product for transaction negotiation

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

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

Country of ref document: EP

Kind code of ref document: A1