End-to-end hypertext transfer protocol conversion method

By adopting UDP protocol and P2P connection in HTTP/2 protocol, end-to-end hypertext transfer protocol conversion is realized, solving the performance problems of HTTP/2 in weak network environment and network jitter, and providing higher network robustness. performance and transmission efficiency, allowing users to access remote files and streaming media without a central server.

CN114500487BActive Publication Date: 2024-09-24GUANGZHOU FANGZHEN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111345927.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-15
Publication Date
2024-09-24
Estimated Expiration
2041-11-15

AI Technical Summary

Technical Problem

The existing HTTP/2 protocol has poor performance in resisting weak network environments and network jitter, cannot effectively solve the problems of TCP queue head blocking and data flow congestion, and lacks the ability of end-to-end protocols to directly complete access and transmission.

Method used

It uses the connectionless UDP protocol to implement end-to-end hypertext transfer protocol conversion method, monitors URI access through the local HTTP Server, uses long connections and P2P connections to realize file breakpoint resuming, and provides higher network robustness based on UDP. sex.

Benefits of technology

It realizes end-to-end hypertext transfer protocol conversion for users in any network environment, allowing users to access local or remote files and streaming media through standard HTTP addresses without the participation of a central server, which improves the anti-interference ability and transmission efficiency of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114500487B
    Figure CN114500487B
Patent Text Reader

Abstract

The present invention discloses an end-to-end hypertext transfer protocol conversion method. By inputting a standard Http address on the client of a terminal, the ability to access local or any remote file or streaming media can be realized. The method is detailed in the specific embodiments of the specification. The method solves the problem that the existing Http protocol cannot use the end-to-end protocol to directly complete the end-to-end access and transmission communication technology. The system can realize the ability to access, download and transmit the files stored on the B client by accessing the Http Url address of the local host on the browser of the A client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of text transfer protocols, and in particular to an end-to-end hypertext transfer protocol conversion method. Background Art

[0002] Since the IETF organization released version 0.9 of the HTTP protocol in 1991, the protocol has become the supporting protocol of the WWW. After the release of version 1.0 in May 1996 and version 1.1 in January 1997 (still the most popular version), the HTTP / 2 protocol was proposed in 2015, and its performance has been greatly improved. However, looking back at HTTP / 2, although HTTP / 2 solves a lot of shortcomings in HTTP / 1, its main feature is the use of multiplexing, so it can send multiple logical data streams through the same TCP connection. This technical improvement brings better congestion control, more adequate bandwidth utilization, and longer TCP connections - all of which are better than before, and the link can more easily achieve full-speed transmission. Header compression technology also reduces the amount of bandwidth used. However, the TCP protocol stack is implemented by the operating system kernel, and HTTP / 2 implemented using the TCP protocol cannot solve the problems of TCP head-of-line blocking and data flow congestion. In addition, with the explosive growth and large-scale popularization of mobile communication technology, HTTP / 2 is not satisfactory in terms of performance indicators such as resistance to weak network environments and network jitter.

[0003] The present invention fully considers the defects of the existing Http protocol and the development direction of the next generation Http protocol, and proposes an end-to-end hypertext transfer protocol conversion method. This conversion device or system can enable users to provide end-to-end hypertext transfer protocol conversion functions to users at the other end in any network environment. The file stream data is converted into hypertext transfer protocol data and provided to the application side for use. The difference between the present invention and the conventional Http proxy is that the transport layer of the present invention adopts the connectionless UDP protocol, and realizes the end-to-end file breakpoint resume capability based on UDP, and has the characteristics of resisting mobile network changes and jitters, and has higher network robustness than the traditional Http proxy. Summary of the invention

[0004] The purpose of the present invention is to provide an end-to-end hypertext transfer protocol conversion method, which solves the problem that the existing Http protocol has no way to use the end-to-end protocol to directly complete the end-to-end access and transmission communication technology; the system can realize the ability to access, download and transmit files stored on the B client by accessing the Http Url address of the local host on the browser of the A client.

[0005] In order to solve the above technical problems, the technical solution of the present invention is:

[0006] An end-to-end hypertext transfer protocol conversion method, in which a standard HTTP address is inputted on a terminal client such as a browser to achieve the ability to access a local or any remote file or streaming media, the method comprising the following steps:

[0007] A. Client A provides a local Http Server implementation, which listens to URI access to Localhost initiated by any Http client on the local machine. At the same time, Client A uses the persistent connection technology to connect its unique ID to the Http remote service management platform.

[0008] B. Client B also provides a local Http Server implementation, which listens to URI access to Localhost initiated by any Http client on the local machine. At the same time, Client B uses the persistent connection technology to connect its unique ID to the Http remote service management platform.

[0009] C. The local Http Server contains multiple processors for the Path part of the URI. The processor can process specific local or remote paths. For example, / origin represents access to local resources, and / remote represents remote resources.

[0010] D. An Http application (such as a browser) of client A initiates a URI access to Localhost. If the requested Path contains a local resource path, the Http Server can resolve the absolute path or relative path of the suffix based on the Path and output it to the outside in the form of an Http file stream.

[0011] E. An Http application (such as a browser) of client A initiates a URI access to Localhost. If the requested Path contains a remote resource path, the Http Server can use the Http remote service management platform to transfer the P2P connection instruction to the target ID based on the remote ID parsed from the Path, and initiate a P2P connection. Then use the P2P channel as the transmission source of the Http file stream to provide output to the Http application (such as a browser). For example, if the URI Path contains: / remote / B / file_identity, the Http Server will call the P2P connection signaling to the management platform, and the management platform will send the signaling to B. B will start the P2P communication module to communicate with A in end-to-end encryption. After receiving the data, A's P2P communication module will encapsulate it as a file stream service and provide it to the Http Server, enabling client A to directly access files on client B using the Http protocol.

[0012] Beneficial effects of the present invention:

[0013] It can achieve the ability to access any remote file and perform streaming media playback by any client that supports the HTTP standard on the user terminal by passing in a standard HTTP address without the involvement of a central server. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A network diagram of an end-to-end hypertext transfer protocol conversion method of the present invention;

[0015] Figure 2 It is a flow chart of HTTP service transmission of the hypertext transfer protocol conversion device of the present invention. DETAILED DESCRIPTION

[0016] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0017] like Figure 1 , 2 As shown, an end-to-end hypertext transfer protocol conversion method, in which a standard HTTP address is input on a terminal client such as a browser to achieve the ability to access local or any remote file or streaming media, the method comprises the following steps:

[0018] A. Client A provides a local Http Server implementation, which listens to URI access to Localhost initiated by any Http client on the local machine. At the same time, Client A uses the persistent connection technology to connect its unique ID to the Http remote service management platform.

[0019] B. Client B also provides a local Http Server implementation, which listens to URI access to Localhost initiated by any Http client on the local machine. At the same time, Client B uses the persistent connection technology to connect its unique ID to the Http remote service management platform.

[0020] C. The local Http Server contains multiple processors for the Path part of the URI. The processor can process specific local or remote paths. For example, / origin represents access to local resources, and / remote represents remote resources.

[0021] D. An Http application (such as a browser) of client A initiates a URI access to Localhost. If the requested Path contains a local resource path, the Http Server can resolve the absolute path or relative path of the suffix based on the Path and output it to the outside in the form of an Http file stream.

[0022] E. An Http application (such as a browser) of client A initiates a URI access to Localhost. If the requested Path contains a remote resource path, the Http Server can use the Http remote service management platform to transfer the P2P connection instruction to the target ID based on the remote ID parsed from the Path, and initiate a P2P connection. Then use the P2P channel as the transmission source of the Http file stream to provide output to the Http application (such as a browser). For example, if the URI Path contains: / remote / B / file_identity, the Http Server will call the P2P connection signaling to the management platform, and the management platform will send the signaling to B. B will start the P2P communication module to communicate with A in end-to-end encryption. After receiving the data, A's P2P communication module will encapsulate it as a file stream service and provide it to the Http Server, enabling client A to directly access files on client B using the Http protocol.

[0023] Since client A and client B need to establish peer-to-peer network transmission, it is necessary to introduce an Http remote service management platform to manage the unique device IDs of client A and client B, their offline status, etc. However, the final transmission of the Http stream does not require the intervention of the Http remote service management platform. The role of the Http remote service management platform is similar to that of DNS, which is only used to find the peer and transmit P2P "handshake" signaling.

[0024] The specific implementation plan is as follows:

[0025] Step 401: Client A has an application program supporting the HTTP protocol, which may be a browser, an HTTP streaming media player, or the like.

[0026] Step 402: Enter a URL address in the Http application on client A, where the Host of the address is LocalHost or 127.0.0.1, the port is the port set by the Http Server program, and the Path part of the address contains the agreed path for distinguishing between local and remote path addresses.

[0027] Step 403: There is a local Http proxy on client A, which is used to listen to a specific port and can process the address passed in step 402, filter different paths and use different service adapters for processing.

[0028] Step 404: The Http Server program determines whether the requested address is a local resource address or a remote resource address.

[0029] Step 405: If the Http Server program determines that it is a local resource address, it starts the local file stream parsing service adapter program, parses the local file path from the parameter part of the incoming Url, and reads the file.

[0030] Step 406: The local file reading module replies the file reading status and file stream to the file stream service program of step 405. The program uses the "zero copy" technology to encapsulate the file stream into the Http protocol and replies to the Http Server, which replies to the client. If the file does not exist in this step, an error status code such as Http 404 is returned.

[0031] Step 407: The Http Server program determines that it is a remote resource address, and first parses the parameter part of the incoming Url to obtain the client ID where the remote file is located and the remote file path. For example, if the parsed ID is the remote ID of client B, the Http remote service management platform sends a P2P connection instruction to client B, which contains the unique ID of client A and the remote file information to be accessed.

[0032] Step 408: The Http remote service management platform sends a command to client B, and determines whether the P2P connection can be established successfully based on the response of client B. If it fails, the Http 404 error status code is directly returned. If the command transmission is successful, client A will start the remote P2P file stream parsing service adapter.

[0033] Step 409: The remote file stream parsing service adapter starts the P2P end-to-end connection module, completes the end-to-end connection with the client B, and obtains the P2P data transmission handle.

[0034] Step 410: Since the P2P data transmission handle is a bidirectional handle, client A can start the file stream receiving service program to receive the P2P file stream.

[0035] Step 411: Client B has the same P2P data transmission handle and starts the file stream sending service program to send the P2P file stream.

[0036] Step 412: The real remote file on client B will be encapsulated into a file stream in the P2P protocol format required in step 411.

[0037] Step 413: Steps 410, 411, and 412 together constitute a typical RPC call mode. The remote file stream parsing service adapter in step 409 reads the file stream as the client to the end-to-end transmission system constituted by 413, and uses the "zero copy" technology to encapsulate the file stream into the Http protocol and reply to the Http Server, which then replies to the client.

[0038] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments are made without departing from the principles and spirit of the present invention, and still fall within the protection scope of the present invention.

Claims

1. An end-to-end hypertext transfer protocol conversion method, characterized in that: Enter a standard HTTP address on the terminal client to access local or any remote file or streaming media. The steps are as follows: A. Client A provides a local Http Server implementation, which listens to URI access to Localhost initiated by any Http client on the local machine; at the same time, Client A uses the persistent connection technology to connect its unique ID to the Http remote service management platform; B. Client B also provides a local Http Server implementation, which listens to URI access to Localhost initiated by any Http client on the local machine. At the same time, Client B uses the persistent connection technology to connect its unique ID to the Http remote service management platform. C. The local Http Server contains multiple processors for the Path part of the URI. The processor can process specific local or remote paths. / origin represents access to local resources, and / remote represents remote resources. D. An Http application of client A initiates a URI access of Localhost. If the requested Path contains the local resource path, Http Server can parse the suffixed absolute path or relative path according to the Path and output it in the form of Http file stream. E. An Http application of client A initiates a URI access to Localhost. If the requested Path contains the remote resource path, the Http Server can use the Http remote service management platform to transfer the P2P connection instruction to the target ID based on the remote ID resolved by the Path, and initiate a P2P connection. Then, the P2P channel is used as the transmission source of the Http file stream to provide output to the Http application. The specific steps are as follows: Step 407: The Http Server program determines that it is a remote resource address, and first parses the parameter part of the incoming Url to obtain the client ID where the remote file is located and the remote file path; Step 408: The Http remote service management platform sends a command to client B, and determines whether the P2P connection can be successfully established based on the response of client B. If it fails, the Http 404 error status code is directly returned. If the command transmission is successful, client A will start the remote P2P file stream parsing service adapter program; Step 409: the remote file stream parsing service adapter starts the P2P end-to-end connection module, completes the end-to-end connection with the client B, and obtains the P2P data transmission handle; Step 410: Since the P2P data transmission handle is a bidirectional handle, client A can start the file stream receiving service program to receive the P2P file stream; Step 411: Client B has the same P2P data transmission handle and starts the file stream sending service program to send the P2P file stream; Step 412: The real remote file on client B will be encapsulated into a file stream in the P2P protocol format required in step 411.

2. The end-to-end hypertext transfer protocol conversion method according to claim 1, characterized in that: Since client A and client B need to establish peer-to-peer network transmission, it is necessary to introduce an Http remote service management platform to manage the unique device IDs of client A and client B and their offline status; however, the final transmission of the Http stream does not require the intervention of the Http remote service management platform; The Http remote service management platform is also used to find the peer and transmit P2P "handshake" signaling.