A data transmission method, device and system

The transfer server determines whether the target server supports the QUIC protocol and performs protocol conversion, which solves the problem of insufficient data transmission protocol conversion in the existing technology and improves data transmission efficiency and user experience.

CN113382062BActive Publication Date: 2024-08-27北京天空卫士网络安全技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110636421.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-08
Publication Date
2024-08-27
Estimated Expiration
2041-06-08

AI Technical Summary

Technical Problem

Existing data transmission protocols lack protocol conversion steps, resulting in low flexibility of the QUIC protocol and affecting data transmission efficiency.

Method used

Receive the data to be transmitted carrying the first protocol sent by the client through the relay server, obtain the identification information of the target server, determine whether it supports the QUIC protocol, and establish a QUIC data connection if it supports it, otherwise establish a TCP data connection, and implement protocol conversion to improve transmission efficiency.

Benefits of technology

It improves the efficiency of data transmission and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113382062B
    Figure CN113382062B
Patent Text Reader

Abstract

The present invention discloses a data transmission method, device and system, and relates to the field of computer technology. A specific implementation of the method includes: being able to use a relay server to receive data to be transmitted carrying a first protocol sent by a client, and obtaining a target server contained in the data to be transmitted; judging whether the target server supports a second protocol (QUIC protocol); if supported, using the relay server to establish a data connection based on the second protocol with the target server to transmit data; otherwise, establishing a data connection based on the first protocol with the target server to transmit data; by using the relay server to determine and convert the protocol (the second protocol, i.e., the QUIC protocol) used to transmit data to transmit data, the efficiency of data transmission is improved, thereby improving the user experience of users transmitting data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data transmission method, device and system. Background Art

[0002] At present, products based on Internet technology have become indispensable tools for people's work and life; network protocols are the foundation of Internet technology, among which transport layer protocols include TCP (Transmission Control Protocol) and UDP (User Datagram Protocol); TCP and UDP have their own characteristics; and the QUIC (Quick UDP Internet Connection) protocol is deployed by some servers because it combines the security of TCP and the low latency of UDP.

[0003] However, the protocol currently used for data transmission is usually determined by the client that initiates the data request, and there is a lack of protocol conversion steps, such as the lack of steps to convert the first protocol (for example, TCP) to the QUIC protocol, which results in low flexibility in applying the QUIC protocol, thereby affecting the transmission efficiency of data transmission. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a data transmission method, device and system, which can use a relay server to receive data to be transmitted carrying a first protocol sent by a client, and obtain a target server contained in the data to be transmitted; determine whether the target server supports a second protocol (QUIC protocol); if so, use the relay server to establish a data connection based on the second protocol with the target server to transmit data; otherwise, establish a data connection based on the first protocol with the target server to transmit data; by using the relay server to determine and convert the protocol used to transmit data (the second protocol, i.e., the QUIC protocol) to transmit data, the efficiency of data transmission is improved, thereby improving the user experience of users transmitting data.

[0005] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a data transmission method is provided, which is characterized in that it includes: receiving data to be transmitted carrying a first protocol, and obtaining identification information of a target server contained in the data to be transmitted; judging, based on the identification information, whether the target server corresponding to the identification information supports a second protocol; if so, establishing a first type of data connection based on the second protocol with the target server, and transmitting the data to be transmitted to the target server through the first type of data connection; otherwise, establishing a second type of data connection based on the first protocol with the target server, and transmitting the data to be transmitted to the target server through the second type of data connection.

[0006] Optionally, the data transmission method is characterized in that:

[0007] Obtaining identification information of the target server contained in the data to be transmitted includes: determining whether the data to be transmitted is encrypted data; if so, performing a decryption operation on the data to be transmitted, and obtaining the identification information of the target server from the decrypted data to be transmitted.

[0008] Optionally, the data transmission method is characterized in that determining whether the target server corresponding to the identification information supports the second protocol includes:

[0009] Obtain a preset server set that supports the second protocol; search for the identification information in the server set; if found, determine that the target server corresponding to the identification information supports the second protocol.

[0010] Optionally, the data transmission method is characterized by further comprising:

[0011] Receive feedback data transmitted by at least one of the target servers through multiple first-type data connections; parse static data with cache characteristics from the feedback data; download and cache the static data with cache characteristics; when a request associated with the static data is received, obtain the static data from the cache and send the static data to the client that sent the request.

[0012] Optionally, the data transmission method is characterized in that, after receiving the data to be transmitted carrying the first protocol, it further includes: establishing a third type of data connection based on the second protocol between the client and the client that sends the data to be transmitted; and sending the feedback data sent by the target server to the client to the client through the third type of data connection.

[0013] Optionally, the data transmission method is characterized in that the second protocol is the QUIC protocol.

[0014] To achieve the above object, according to a second aspect of an embodiment of the present invention, a data transmission device is provided, characterized in that it includes: a request receiving module, a protocol determination module and a data transmission execution module; wherein,

[0015] The request receiving module is configured to receive data to be transmitted that carries the first protocol and obtain identification information of a target server included in the data to be transmitted;

[0016] The protocol determination module is configured to determine, based on the identification information, whether the target server corresponding to the identification information supports the second protocol;

[0017] The execution data transmission module is used to, if yes, establish a first type of data connection based on the second protocol with the target server, and transmit the data to be transmitted to the target server through the first type of data connection; otherwise, establish a second type of data connection based on the first protocol with the target server, and transmit the data to be transmitted to the target server through the second type of data connection.

[0018] To achieve the above-mentioned object, according to a third aspect of an embodiment of the present invention, there is provided a data transmission system, characterized in that it comprises: a transit server and a target server of the data transmission device according to the second aspect; wherein:

[0019] Using the transit server, receiving data to be transmitted carrying the first protocol, obtaining identification information of a target server contained in the data to be transmitted; and determining, based on the identification information, whether the target server corresponding to the identification information supports the second protocol;

[0020] If so, establishing a first type of data connection based on the second protocol between the transit server and the target server, and transmitting the data to be transmitted to the target server through the first type of data connection;

[0021] Otherwise, a second type of data connection based on the first protocol is established between the transit server and the target server, and the data to be transmitted is transmitted to the target server through the second type of data connection.

[0022] To achieve the above-mentioned purpose, according to the fourth aspect of an embodiment of the present invention, an electronic device for data transmission is provided, characterized in that it includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement any method as described in the above-mentioned data transmission method.

[0023] To achieve the above-mentioned purpose, according to a fifth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, a method as described in any one of the above-mentioned data transmission methods is implemented.

[0024] One embodiment of the above invention has the following advantages or beneficial effects: it can use the relay server to receive the data to be transmitted carrying the first protocol sent by the client, and obtain the target server contained in the data to be transmitted; determine whether the target server supports the second protocol (QUIC protocol); if it does, use the relay server to establish a data connection based on the second protocol with the target server to transmit data; otherwise, establish a data connection based on the first protocol with the target server to transmit data; by using the relay server to determine and convert the protocol used to transmit data (the second protocol, i.e., the QUIC protocol) to transmit data, the efficiency of data transmission is improved, thereby improving the user experience of users transmitting data.

[0025] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are provided for a better understanding of the present invention and are not intended to limit the present invention.

[0027] Figure 1 is a flowchart of a data transmission method provided by the first embodiment of the present invention;

[0028] Figure 2 is a flow chart of a data transmission method provided by the second embodiment of the present invention;

[0029] Figure 3 This is a flow chart of a data transmission method provided by one embodiment of the present invention;

[0030] Figure 4 This is a structural diagram of a data transmission device provided by one embodiment of the present invention;

[0031] Figure 5 This is a structural diagram of a data transmission system provided by one embodiment of the present invention;

[0032] Figure 6 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;

[0033] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following description of exemplary embodiments of the present invention is made in conjunction with the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding. These details should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0035] like Figure 1 As shown, an embodiment of the present invention provides a data transmission method, which may include the following steps:

[0036] Step S101: receiving data to be transmitted that carries a first protocol, and obtaining identification information of a target server included in the data to be transmitted.

[0037] Specifically, the first protocol can be an Internet communication protocol such as TCP (Transmission Control Protocol) or UDP (User Datagram Protocol); the data to be transmitted includes: for example, a data request or data packet sent by a client, and the detailed information of the data request and the data packet can be obtained through a packet capture tool to determine the first protocol (for example: TCP) used in association with the data request or data packet, that is, the data to be transmitted carrying the first protocol is received; for example: the data to be transmitted carrying the first protocol is: HTTP: / / www.aaa.com / main.html; it can be understood that HTTP (HyperText Transfer Protocol) is an application layer protocol established based on TCP. Furthermore, the detailed information of the data to be transmitted carrying the first protocol can be obtained through a packet capture tool, and it can be parsed from the detailed information that the first protocol carried by the data is TCP.

[0038] Furthermore, the identification information of the target server contained in the data to be transmitted is obtained; wherein the identification information of the target server can be the domain name information of the target server (for example: www.aaa.com) or the IP address and port number of the target server, for example: the IP address corresponding to www.aaa.com is 101.101.102.102 and the port number is 443.

[0039] Furthermore, if the data to be transmitted is encrypted data, such as the encrypted request https: / / www.bbb.com / abc.htm, the identification information of the target server cannot be directly obtained through the encrypted request. Instead, a decryption operation must be performed on the encrypted data according to the encryption algorithm to obtain the identification information of the target server contained in the data to be transmitted. The present invention does not limit the tools or devices used for decryption. Furthermore, the identification information of the corresponding target server is obtained from the decrypted data to be transmitted; that is, obtaining the identification information of the target server contained in the data to be transmitted includes: determining whether the data to be transmitted is encrypted data, and if so, performing a decryption operation on the data to be transmitted, and obtaining the identification information of the target server from the decrypted data to be transmitted.

[0040] Step S102: judging, based on the identification information, whether the target server corresponding to the identification information supports the second protocol.

[0041] Specifically, the second protocol is the QUIC protocol. QUIC (Quick UDP Internet Connection) is a low-latency Internet transport layer protocol that has the characteristics of handling more connections, high security, and low latency, which can improve the efficiency of data transmission and enhance the user experience.

[0042] Furthermore, the identification information of the target server is obtained. Since the target server can support the first protocol (for example, TCP) and / or the second protocol (QUIC protocol), it is further determined whether the target server corresponding to the identification information supports the second protocol (QUIC protocol). Specifically, the judgment method is, for example: establishing and maintaining a data table or file of server identification information that supports the second protocol (that is, a pre-set set of servers that support the second protocol). After obtaining the identification information of the target server from the data to be transmitted of the client, searching the data table or file for the obtained identification information. If so, it is determined that the target server supports the second protocol (QUIC protocol); otherwise, it is determined that the target server supports the first protocol (for example, TCP); that is, the judgment of whether the target server corresponding to the identification information supports the second protocol includes: obtaining a pre-set set of servers that support the second protocol; searching for the identification information in the server set; if found, it is determined that the target server corresponding to the identification information supports the second protocol.

[0043] Step S103: If yes, establish a first type of data connection based on the second protocol with the target server, and transmit the data to be transmitted to the target server through the first type of data connection.

[0044] Specifically, when it is determined that the target server supports the second protocol (QUIC protocol), a first type of data connection based on the second protocol (QUIC protocol) is established with the target server; and the data to be transmitted is transmitted to the target server through the first type of data connection; it can be understood that feedback information of the target server in response to the data to be transmitted is also received through the first type of data connection; it can be seen that by establishing a data connection based on the second protocol (QUIC protocol), the original data connection based on the first protocol (TCP) is changed; thereby, data transmission can be performed with the target server that supports the second protocol (QUIC protocol) using the first type of data connection of the second protocol (QUIC protocol), thereby improving the efficiency of data transmission. That is, if so, a first type of data connection based on the second protocol is established with the target server, and the data to be transmitted is transmitted to the target server through the first type of data connection.

[0045] Furthermore, during data transmission, feedback data transmitted by at least one of the target servers through multiple first-type data connections is received; static data with cache characteristics is parsed from the feedback data; the static data with cache characteristics is downloaded and cached; when a request associated with the static data is received, the static data is obtained from the cache, and the static data is sent to the client that sent the request. Among them, the feedback data, for example, in response to the various page data (images, texts, components, etc.) contained in the page request, further parses out static data with cache characteristics; wherein, the static data with cache characteristics can be set according to the scenario, for example: the media files such as images with relative paths contained in the static page are used as static data with cache characteristics; when it is determined that the feedback data contains static data with cache characteristics, the static data with cache characteristics is downloaded and cached; when a request associated with the static data is received (a request associated with static data, for example: the cache contains the static data corresponding to the sent request), the static data is obtained from the cache and sent to the client that sent the request; it can be seen that data is transmitted through the characteristics of multiple data connections supported by the first type of data connection, which improves the efficiency of data transmission. Furthermore, the data returned by the server is cached and returned directly to the client, which improves the efficiency of the client in obtaining the returned data and improves the user experience.

[0046] Furthermore, the method of the present application can be applied to a transit server (for example, a proxy server) to establish a data connection with the target server and a data connection between clients; preferably, a proxy server supporting the second protocol (QUIC protocol) is set up to establish a data connection based on the second protocol (QUIC protocol) with the client based on the proxy server (i.e., a third type of data connection) to improve data transmission efficiency; that is, after receiving the data to be transmitted carrying the first protocol, it further includes: establishing a third type of data connection based on the second protocol (QUIC protocol) with the client sending the data to be transmitted; and sending the feedback data sent by the target server to the client to the client through the third type of data connection.

[0047] like Figure 2 As shown, an embodiment of the present invention provides a data transmission method, which may include the following steps:

[0048] Step S201: receiving data to be transmitted that carries a first protocol, and obtaining identification information of a target server included in the data to be transmitted.

[0049] Specifically, the description of receiving the data to be transmitted carrying the first protocol and obtaining the identification information of the target server contained in the data to be transmitted is consistent with step S101 and will not be repeated here.

[0050] Step S202: judging, based on the identification information, whether the target server corresponding to the identification information supports the second protocol.

[0051] Specifically, the description of determining whether the target server corresponding to the identification information supports the second protocol based on the identification information is consistent with step S102 and will not be repeated here.

[0052] Step S203: Otherwise, a second type of data connection based on the first protocol is established with the target server, and the data to be transmitted is transmitted to the target server through the second type of data connection.

[0053] Specifically, if it is determined that the target server does not support the second protocol (QUIC protocol), a second type of data connection based on the first protocol (e.g., TCP) is established with the target server, and the to-be-transmitted data is transmitted to the target server via the second type of data connection. It is understandable that the target server supports at least one protocol, such as the first protocol (e.g., TCP), by default.

[0054] It can be seen that by judging whether the target server supports the QUIC protocol, if the result is yes, a first type of data connection based on the second protocol (QUIC protocol) is established, which improves the efficiency of data transmission compared to establishing a second type of data connection based on the first protocol (for example: TCP) by default.

[0055] like Figure 3 As shown, an embodiment of the present invention provides a process of a data transmission method, which may include the following steps:

[0056] Step S301: Send data to be transmitted carrying TCP.

[0057] Step S302: Obtain identification information of the target server contained in the data to be transmitted; based on the identification information, determine whether the target server corresponding to the identification information supports the QUIC protocol.

[0058] Step S303: If the QUIC protocol is supported, establish a first type of data connection based on the QUIC protocol with the target server, and transmit the data to be transmitted to the target server through the first type of data connection.

[0059] Specifically, the description of steps S301 to S303 is: receiving data to be transmitted carrying the first protocol, and obtaining identification information of the target server contained in the data to be transmitted; based on the identification information, determining whether the target server corresponding to the identification information supports the second protocol; if so, establishing a first type of data connection based on the second protocol with the target server, and transmitting the data to be transmitted to the target server through the first type of data connection; otherwise, establishing a second type of data connection based on the first protocol with the target server, and transmitting the data to be transmitted to the target server through the second type of data connection.

[0060] like Figure 4 As shown, the embodiment of the present invention provides a data transmission device 400, including: a request receiving module 401, a protocol determination module 402 and a data transmission execution module 403; wherein,

[0061] The request receiving module 401 is configured to receive data to be transmitted that carries a first protocol and obtain identification information of a target server included in the data to be transmitted;

[0062] The protocol determination module 402 is configured to determine, based on the identification information, whether the target server corresponding to the identification information supports the second protocol;

[0063] The execution data transmission module 403 is used to, if yes, establish a first type of data connection based on the second protocol with the target server, and transmit the data to be transmitted to the target server through the first type of data connection; otherwise, establish a second type of data connection based on the first protocol with the target server, and transmit the data to be transmitted to the target server through the second type of data connection.

[0064] like Figure 5 As shown, an embodiment of the present invention provides a data transmission system 500, including: Figure 4 The data transmission device shown has a transit server 400 and one or more target servers; wherein,

[0065] Using the transit server 400, receiving data to be transmitted carrying the first protocol, obtaining identification information of a target server contained in the data to be transmitted; and determining, based on the identification information, whether the target server corresponding to the identification information supports the second protocol;

[0066] If so, using the transit server 400 to establish a first type of data connection based on the second protocol with the target server, and transmitting the data to be transmitted to the target server through the first type of data connection;

[0067] Otherwise, the transit server 400 is used to establish a second type of data connection based on the first protocol with the target server, and the data to be transmitted is transmitted to the target server through the second type of data connection.

[0068] An embodiment of the present invention also provides an electronic device for data transmission, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in any of the above embodiments.

[0069] An embodiment of the present invention further provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, the method provided in any of the above embodiments is implemented.

[0070] Figure 6 An exemplary system architecture 600 is shown to which the data transmission method or data transmission apparatus according to the embodiment of the present invention may be applied.

[0071] like Figure 6As shown, system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0072] Users can use terminal devices 601, 602, and 603 to interact with server 605 via network 604 to receive or send messages, etc. Various client applications can be installed on terminal devices 601, 602, and 603, such as e-commerce client applications, web browser applications, search applications, instant messaging tools, and email clients.

[0073] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting various client applications, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0074] Server 605 may be a server that provides various services, such as a background management server that supports client applications used by users on terminal devices 601, 602, and 603. The background management server may determine the protocol supported by the target server for the received transmission data sent by the client, establish a data connection to transmit the data, and provide feedback to the terminal device.

[0075] It should be noted that the data transmission method provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the data transmission device is generally provided in the server 605 .

[0076] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0077] Reference below Figure 7 , which shows a schematic structural diagram of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0078] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage unit 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the system 700 are also stored in the RAM 703. The CPU 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0079] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output section 707 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 708 including a hard disk; and a communication section 709 including a network interface card such as a LAN card or a modem. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 710 as needed, so that computer programs read therefrom can be installed into the storage section 708 as needed.

[0080] In particular, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 709, and / or installed from a removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0081] It should be noted that the computer-readable medium described in the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.

[0082] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0083] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be provided in a processor. For example, they may be described as follows: a processor including a request receiving module, a protocol determination module, and a data transmission execution module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the protocol determination module may also be described as a module that determines, based on the identification information, whether the target server corresponding to the identification information supports the second protocol.

[0084] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: receiving data to be transmitted carrying a first protocol, obtaining identification information of a target server contained in the data to be transmitted; judging whether the target server corresponding to the identification information supports a second protocol based on the identification information; if so, establishing a first type of data connection based on the second protocol with the target server, and transmitting the data to be transmitted to the target server through the first type of data connection; otherwise, establishing a second type of data connection based on the first protocol with the target server, and transmitting the data to be transmitted to the target server through the second type of data connection.

[0085] An embodiment of the present invention can utilize a relay server to receive data to be transmitted that carries a first protocol and is sent by a client, and obtain a target server contained in the data to be transmitted; determine whether the target server supports a second protocol (QUIC protocol); if so, utilize the relay server to establish a data connection based on the second protocol with the target server to transmit data; otherwise, establish a data connection based on the first protocol with the target server to transmit data; by utilizing the relay server to determine and convert the protocol (the second protocol, i.e., the QUIC protocol) used to transmit data to transmit data, the efficiency of data transmission is improved, thereby improving the user experience of users transmitting data.

[0086] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A data transmission method, characterized in that: Applicable to transit servers, including: Receiving data to be transmitted that carries a first protocol, and acquiring identification information of a target server included in the data to be transmitted; According to the identification information, determining whether the target server corresponding to the identification information supports the second protocol; If so, establish a first type of data connection based on the second protocol with the target server, and transmit the data to be transmitted to the target server through the first type of data connection; if the transit server and the client sending the data to be transmitted support the second protocol, establish a third type of data connection based on the second protocol with the client; send the feedback data sent by the target server to the client to the client through the third type of data connection; Otherwise, a second type of data connection based on the first protocol is established with the target server, and the data to be transmitted is transmitted to the target server through the second type of data connection.

2. The method according to claim 1, characterized in that Obtaining identification information of a target server included in the data to be transmitted, including: Determine whether the data to be transmitted is encrypted data; if so, perform a decryption operation on the data to be transmitted, and obtain identification information of the target server from the decrypted data to be transmitted.

3. The method according to claim 1, characterized in that The determining whether the target server corresponding to the identification information supports the second protocol includes: Obtaining a preset server set supporting the second protocol; The identification information is searched in the server set; if found, it is determined that the target server corresponding to the identification information supports the second protocol.

4. The method according to claim 1, characterized in that: Further including: receiving feedback data transmitted by at least one of the target servers through a plurality of the first-type data connections; Parsing static data with cache characteristics from the feedback data; Downloading and caching the static data with caching characteristics; When a request associated with the static data is received, the static data is obtained from the cache and sent to the client that sent the request.

5. The method according to claim 1, characterized in that The second protocol is the QUIC protocol.

6. A data transmission device, characterized in that: Applied to the transfer server, including: a request receiving module, a protocol judgment module and a data transmission execution module; wherein, The request receiving module is used to receive the data to be transmitted carrying the first protocol, and obtain the identification information of the target server contained in the data to be transmitted; The protocol determination module is used to determine whether the target server corresponding to the identification information supports the second protocol according to the identification information; The execution data transmission module is used to, if yes, establish a first type of data connection based on the second protocol with the target server, and transmit the data to be transmitted to the target server through the first type of data connection; otherwise, establish a second type of data connection based on the first protocol with the target server, and transmit the data to be transmitted to the target server through the second type of data connection; When the relay server and the client sending the data to be transmitted support the second protocol, a third type of data connection based on the second protocol is established between the client and the relay server; and feedback data sent by the target server to the client is sent to the client through the third type of data connection.

7. A data transmission system, characterized in that: include: A transit server and a target server having the data transmission device according to claim 6; wherein: Using the transfer server, receiving the data to be transmitted carrying the first protocol, obtaining the identification information of the target server contained in the data to be transmitted; judging whether the target server corresponding to the identification information supports the second protocol according to the identification information; If yes, using the transit server to establish a first type of data connection based on the second protocol with the target server, and transmitting the data to be transmitted to the target server through the first type of data connection; otherwise, using the transit server to establish a second type of data connection based on the first protocol with the target server, and transmitting the data to be transmitted to the target server through the second type of data connection; When the relay server and the client sending the data to be transmitted support the second protocol, a third type of data connection based on the second protocol is established between the client and the relay server; and feedback data sent by the target server to the client is sent to the client through the third type of data connection.

8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.