CN114500487A - End-to-end hypertext transfer protocol conversion system - Google Patents

End-to-end hypertext transfer protocol conversion system Download PDF

Info

Publication number
CN114500487A
CN114500487A CN202111345927.5A CN202111345927A CN114500487A CN 114500487 A CN114500487 A CN 114500487A CN 202111345927 A CN202111345927 A CN 202111345927A CN 114500487 A CN114500487 A CN 114500487A
Authority
CN
China
Prior art keywords
client
http
remote
local
file
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111345927.5A
Other languages
Chinese (zh)
Inventor
梁铭俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Founder Technology Co ltd
Original Assignee
Guangzhou Founder Technology Co ltd
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 Guangzhou Founder Technology Co ltd filed Critical Guangzhou Founder Technology Co ltd
Priority to CN202111345927.5A priority Critical patent/CN114500487A/en
Publication of CN114500487A publication Critical patent/CN114500487A/en
Pending legal-status Critical Current

Links

Images

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/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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/08Protocols for interworking; Protocol conversion
    • 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/22Parsing or analysis of headers

Landscapes

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

Abstract

The invention discloses an end-to-end hypertext transfer protocol conversion system, wherein a standard Http address is input at a client of a terminal, so that the capability of accessing local or any remote file or streaming media can be realized, and the method is detailed in a specific embodiment of a specification; the method solves the problem that the existing Http protocol has no communication technology for directly completing end-to-end access and transmission by utilizing an end-to-end protocol; the system can realize the capability of accessing, downloading and transmitting the files stored on the client B by accessing the Http Url address of the Host on the browser of the client A.

Description

End-to-end hypertext transfer protocol conversion system
Technical Field
The invention relates to the technical field of text transfer protocols, in particular to an end-to-end hypertext transfer protocol conversion system.
Background
Since 1991 the IETF organization released the 0.9 version of the Http protocol, which became the supporting protocol for the WWW. After release 1.0 in 1996 and release 1.1 in 1997 and 1.1 (still the most popular current release) in 1997, the HTTP/2 protocol was proposed and the performance was greatly improved in 2015. However, referring back to HTTP/2, while HTTP/2 solves a large number of disadvantages in HTTP/1, the main feature is the use of multiplexing (multiplexing) so that it can send multiple logical data streams over the same TCP connection, this technological improvement leads to better congestion control, more efficient bandwidth utilization, longer TCP connections-all better than before, and easier full-speed transmission over the link. Header compression techniques also reduce the amount of bandwidth used. However, the TCP protocol stack is realized by the kernel of the operating system, and the problems of TCP head of queue blocking and data flow congestion cannot be solved by adopting HTTP/2 realized by the TCP protocol. In addition, with the explosive growth and large-scale popularization of mobile communication technology, HTTP/2 is not satisfactory in performance indexes such as weak network environment resistance and network jitter resistance.
The invention fully considers the defect problem of the existing Http protocol and the development direction of the next generation Http protocol, and provides an end-to-end hypertext transfer protocol conversion system. The invention is different from the conventional Http proxy in that a connectionless UDP protocol is adopted in a transmission layer, the end-to-end file breakpoint continuous transmission capability is realized on the basis of UDP, and the invention has the characteristics of mobile network change and jitter resistance and higher network robustness than the traditional Http proxy.
Disclosure of Invention
The invention aims to provide an end-to-end hypertext transfer protocol conversion system, which solves the problem that the existing Http protocol has no way to directly finish the communication technology of end-to-end access and transmission by utilizing the end-to-end protocol; the system can realize the capability of accessing, downloading and transmitting the files stored on the client B by accessing the Http Url address of the Host on the browser of the client A.
In order to solve the technical problems, the technical scheme of the invention is as follows:
an end-to-end hypertext transfer protocol conversion system, which can realize the ability of accessing local or any remote file or stream media by inputting a standard Http address at the client of a terminal, such as a browser, the method comprises the following steps:
A. the client A provides the implementation of a local Http Server, and the Http Server monitors URI access pointing to a Localhost initiated from any Http client of the local Server. Meanwhile, the client A accesses the unique ID of the client A to the Http remote service management platform by using a long connection technology.
B. The client B also provides an implementation of a local Http Server, which listens for URI accesses directed to Localhost initiated from any Http client of the local. Meanwhile, the client A accesses the unique ID of the client A to the Http remote service management platform by using a long connection technology.
C. The local Http Server contains a plurality of processors for Path parts in the URI, and the processors can process specific paths of local or remote, such as/origin represents local resource access and/remote represents remote resource.
D. A certain Http application (such as a browser) of the client a initiates URI access of a Localhost, and if the requested Path contains a local resource Path, the Http Server can analyze an absolute Path or a relative Path of a suffix according to the Path and output the suffix in the Http file stream form.
E. An Http application (such as a browser) of the client a initiates a URI access of a Localhost, and if the requested Path contains a remote resource Path, the Http Server can forward a P2P connection instruction to the target ID by using the Http remote service management platform according to the remote ID parsed from the Path, and initiate a P2P connection. And then the channel of the P2P is used as a transmission source of the Http file stream to provide output for Http applications (such as a browser). For example, Path of URI contains: the client side A calls a P2P connection signaling to a management platform, the management platform sends the signaling to the B, the B starts a P2P communication module to carry out end-to-end encryption communication with the A, the P2P communication module of the A packages the data into a file stream service after receiving the data and provides the file stream service for the Http Server, and the capability of directly accessing the file on the client side B by the client side A through the Http protocol is realized.
The invention has the beneficial effects that:
the method can realize the capability of accessing any remote file and playing the streaming media by any client supporting the Http standard on the user terminal by transmitting a standard Http address without the participation of a central server.
Drawings
FIG. 1 is a networking diagram of an end-to-end HTTP conversion system of the present invention;
fig. 2 is a flowchart illustrating Http protocol conversion apparatus Http service transmission according to the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
As shown in fig. 1 and 2, an end-to-end Http conversion system, which inputs a standard Http address at a client of a terminal, such as a browser, can implement the capability of accessing local or any remote file or streaming media, includes the following steps:
A. the client A provides the implementation of a local Http Server, and the Http Server monitors URI access pointing to Localhost initiated from any Http client of the local machine. Meanwhile, the client A accesses the unique ID of the client A to the Http remote service management platform by using a long connection technology.
B. The client B also provides an implementation of a local Http Server, which listens for URI accesses directed to Localhost initiated from any Http client of the local. Meanwhile, the client A accesses the unique ID of the client A to the Http remote service management platform by using a long connection technology.
C. The local Http Server contains a plurality of processors for Path parts in the URI, and the processors can process specific paths of local or remote, such as/origin represents local resource access and/remote represents remote resource.
D. A certain Http application (such as a browser) of the client a initiates URI access of a Localhost, and if the requested Path contains a local resource Path, the Http Server can analyze an absolute Path or a relative Path of a suffix according to the Path and output the suffix in the Http file stream form.
E. A certain Http application (such as a browser) of the client a initiates a URI access of a Localhost, and if the requested Path contains a remote resource Path, the Http Server can relay a P2P connection instruction to a target ID by using a Http remote service management platform according to a remote ID parsed from the Path, and initiate a P2P connection. And then the channel of the P2P is used as a transmission source of the Http file stream to provide output for Http applications (such as a browser). For example, Path of URI contains: the client side A calls a P2P connection signaling to a management platform, the management platform sends the signaling to the B, the B starts a P2P communication module to carry out end-to-end encryption communication with the A, the P2P communication module of the A packages the data into a file stream service after receiving the data and provides the file stream service for the Http Server, and the capability of directly accessing the file on the client side B by the client side A through the Http protocol is realized.
Since the client a and the client B need to establish peer-to-peer network transmission, an Http remote service management platform needs to be introduced for managing device unique IDs, offline states, and the like of the client a and the client B. But finally the transmission of Http stream does not require the intervention of the service management platform. The service management platform functions similarly to DNS, only to find peers and to pass P2P "handshake" signaling.
The specific embodiment is as follows:
step 401: the client a has an application program supporting the Http protocol, and the program may be a browser, an Http streaming media player, or the like.
Step 402: a Url address is input in an Http application program on a client A, the Host of the address is Localhost or 127.0.0.1, a port is set for an Http Server program, and the Path part of the address comprises an agreed Path for distinguishing a local Path address or a remote Path address.
Step 403: a local Http proxy exists on the client a, and is configured to listen to a specific port, and to process the address transmitted in step 402, filter different paths, and perform processing using different service adapters.
Step 404: the Http Server program determines whether the requested address is a local resource address or a remote resource address.
Step 405: and if the Http Server program judges that the address is the local resource address, starting a local file stream analysis service adapter program, analyzing a local file path from the transmitted parameter part of Url, and reading the file.
Step 406: the local file reading module replies the file reading state and the file stream to the file stream service program in the step 405, the program packages the file stream into an Http protocol by adopting a zero copy technology and replies the Http protocol to the Http Server, and the Http Server replies the Http protocol to the client. If the file does not exist, the step returns an error status code such as Http 404.
Step 407: when the Http Server program judges that the remote resource address is the remote resource address, the client ID where the remote file is located and the remote file path are resolved from the parameter part of the incoming Url. For example, if the parsed ID is the remote ID of the client B, the Http remote service management platform sends a connection instruction of P2P to the client B, where the connection instruction includes the unique ID of the client a and information of the remote file that the client B wants to access.
Step 408: the Http remote service management platform sends an instruction to the client B, and determines whether the connection of the P2P can be successfully established according to the reply of the client B, the failure is directly returned to 404, and if the instruction transmission is successful, the client a starts a remote P2P file stream parsing service adapter program.
Step 409: the remote file stream parsing service adapter starts a P2P end-to-end connection module, completes end-to-end connection with the client B, and obtains a data transmission handle of P2P.
Step 410: since the P2P data transfer handle is a two-way handle, client A can initiate the file stream reception service to receive the P2P file stream.
Step 411: the client B has the same P2P data transmission handle, and starts the file stream transmission service program to transmit 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.
Step 413: together, steps 410, 411, 412 constitute a typical RPC call pattern. The remote file stream parsing service adapter in step 409 is used as a Client to read the file stream from the end-to-end transmission system formed by 413, and the file stream is encapsulated into an Http protocol by adopting a zero copy technology and is replied to the Http Server, and the Http Server replies to the Client.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, and the scope of the invention is to be accorded the full scope of the claims.

Claims (4)

1. An end-to-end hypertext transfer protocol conversion system, comprising: inputting a standard Http address at a client of a terminal to realize the ability of accessing local or any remote file or streaming media, the method comprises the following steps:
A. the client A provides the realization of a local Http Server, and the Http Server monitors URI access which is initiated from any Http client of the local machine and points to Localhost; meanwhile, the client A accesses the unique ID of the client A to the Http remote service management platform by using a long connection technology;
B. the client B also provides the realization of a local Http Server, and the Http Server monitors URI access which is initiated from any Http client of the local machine and points to Localhost; meanwhile, the client A accesses the unique ID of the client A to the Http remote service management platform by using a long connection technology;
C. the local Http Server comprises a plurality of processors aiming at the Path part in the URI, wherein the processors can process specific paths of local or remote ends, wherein/origin represents accessed local resources, and/remote represents remote resources;
D. a certain Http application of the client a initiates URI access of a Localhost, and if the requested Path contains a local resource Path, the Http Server can analyze an absolute Path or a relative Path of a suffix according to the Path and output the suffix outwards in the form of Http file stream;
E. a certain Http application of the client a initiates URI access of a Localhost, and if the requested Path contains a remote resource Path, the Http Server can relay a P2P connection instruction to a target ID by using a Http remote service management platform according to the remote ID parsed from the Path, and initiate P2P connection; and then, the channel of the P2P is used as a transmission source of the Http file stream to provide output for Http application.
2. The end-to-end hypertext transfer protocol conversion apparatus or system of claim 1 wherein: because the client A and the client B need to establish peer-to-peer network transmission, an Http remote service management platform needs to be introduced for managing the device unique IDs of the client A and the client B and the offline state; but finally, the transmission of the Http stream does not need the intervention of the service management platform; the service management platform functions similarly to DNS for finding peers and passing P2P "handshake" signaling.
3. The end-to-end hypertext transfer protocol conversion device or system of claim 2 wherein: the implementation steps are as follows:
step 401: the client A is provided with an application program supporting an Http protocol, and the application program is a browser and Http streaming media player program;
step 402: inputting a Url address in an Http application program on a client A, wherein the Host of the address is Localhost or 127.0.0.1, the port sets a port for an Http Server program, and the Path part of the address comprises an agreed Path for distinguishing a local or remote Path address;
step 403: a local Http proxy exists on the client a, and is used for monitoring the port, processing the address transmitted in the step 402, filtering different paths, and processing the paths by adopting different service adaptation programs;
step 404: the Http Server program judges whether the requested address is a local resource address or a remote resource address;
step 405: if the Http Server program judges that the address is the local resource address, starting a local file stream analysis service adapter program, analyzing a local file path from the transmitted parameter part of Url, and reading the file;
step 406: the local file reading module replies the file reading state and the file stream to the file stream service program in the step 405, the program packages the file stream into an Http protocol by adopting a zero copy technology and replies to the Http Server, and the Http Server replies to the client; if the file does not exist, returning an Http 404 error status code;
step 407: when the Http Server program judges that the remote resource address is the remote resource address, the client ID where the remote file is located and a remote file path are resolved from the parameter part transmitted into Url;
step 408: the Http remote service management platform sends an instruction to the client B, and judges whether the connection of the P2P can be successfully established according to the reply of the client B, if the connection fails, the Http remote service management platform directly returns to 404, and if the instruction is successfully transmitted, the client a starts a remote P2P file stream parsing service adapter;
step 409: the remote file stream analysis service adapter program starts a P2P end-to-end connection module, completes end-to-end connection with the client B and obtains a data transmission handle of P2P;
step 410: since the P2P data transmission handle is a bidirectional handle, the client A can start the file stream receiving service program to receive the P2P file stream;
step 411: the client B has the same P2P data transmission handle, and starts a 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.
4. The end-to-end hypertext transfer protocol conversion device or system of claim 3 wherein: the steps 410, 411, 412 together constitute a typical RPC call pattern; the remote file stream parsing service adapter in step 409 is used as a Client to read the file stream from the end-to-end transmission system formed by 413, and the file stream is encapsulated into an Http protocol by adopting a zero copy technology and is replied to the Http Server, and the Http Server replies to the Client.
CN202111345927.5A 2021-11-15 2021-11-15 End-to-end hypertext transfer protocol conversion system Pending CN114500487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111345927.5A CN114500487A (en) 2021-11-15 2021-11-15 End-to-end hypertext transfer protocol conversion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111345927.5A CN114500487A (en) 2021-11-15 2021-11-15 End-to-end hypertext transfer protocol conversion system

Publications (1)

Publication Number Publication Date
CN114500487A true CN114500487A (en) 2022-05-13

Family

ID=81492185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111345927.5A Pending CN114500487A (en) 2021-11-15 2021-11-15 End-to-end hypertext transfer protocol conversion system

Country Status (1)

Country Link
CN (1) CN114500487A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753606A (en) * 2008-12-03 2010-06-23 北京天融信科技有限公司 Method for realizing WEB reverse proxy
US20130262567A1 (en) * 2012-03-30 2013-10-03 Qualcomm Incorporated Responding to hypertext transfer protocol (http) requests
US20170206122A1 (en) * 2011-08-25 2017-07-20 International Business Machines Corporation Enabling a web application to call at least one native function of a mobile device
CN107637040A (en) * 2015-05-13 2018-01-26 高通股份有限公司 Carry out transmission media data using WEBSOCKET sub-protocols
CN110677693A (en) * 2019-09-05 2020-01-10 广州市蜗牛互动科技有限公司 Android system-based encrypted video offline playing method and device and electronic equipment
CN110858885A (en) * 2018-08-22 2020-03-03 北京航天长峰科技工业集团有限公司 Cross-network real-time transmission method for mobile phone video

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753606A (en) * 2008-12-03 2010-06-23 北京天融信科技有限公司 Method for realizing WEB reverse proxy
US20170206122A1 (en) * 2011-08-25 2017-07-20 International Business Machines Corporation Enabling a web application to call at least one native function of a mobile device
US20130262567A1 (en) * 2012-03-30 2013-10-03 Qualcomm Incorporated Responding to hypertext transfer protocol (http) requests
CN107637040A (en) * 2015-05-13 2018-01-26 高通股份有限公司 Carry out transmission media data using WEBSOCKET sub-protocols
CN110858885A (en) * 2018-08-22 2020-03-03 北京航天长峰科技工业集团有限公司 Cross-network real-time transmission method for mobile phone video
CN110677693A (en) * 2019-09-05 2020-01-10 广州市蜗牛互动科技有限公司 Android system-based encrypted video offline playing method and device and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
QUALCOMM INCORPORATED, VERIZON WIRELESS: "S4-121213 "CR 26.346-0266 rev 2 Partial File Delivery via FLUTE (Release 11)"", 3GPP TSG_SA\\WG4_CODEC, no. 4 *
李青: ""基于HTML5的移动阅读服务技术的研究"", 《信息科技》, no. 4 *

Similar Documents

Publication Publication Date Title
CN109067914B (en) web service proxy method, device, equipment and storage medium
JP5882353B2 (en) Method and system for multi-connection in a file system session
US10681127B2 (en) File upload method and system
JP4198053B2 (en) Method and apparatus for facilitating distribution and delivery of content over a computer network
WO2018133454A1 (en) Method for controlling remote service access path, and relevant apparatus
KR102110421B1 (en) System and method for delivering an audio-visual content to a client device
US10367893B1 (en) Method and apparatus of performing peer-to-peer communication establishment
CN103597471A (en) Methods and systems for caching data communications over computer networks
US20070180079A1 (en) Method and system for peer-to-peer stream
WO2000036497A1 (en) Optimizing bandwidth consumption for document distribution over a multicast enabled wide area network
WO2000036490A2 (en) A method and apparatus for supporting a multicast response to a unicast request for a document
WO2010072081A1 (en) Method and system for realizing massive terminals access of a streaming media server
US20150127837A1 (en) Relay apparatus and data transfer method
US20100235464A1 (en) Handoff and optimization of a network protocol stack
CN107222561A (en) A kind of transport layer reverse proxy method
US20070091872A1 (en) Peer-to-peer connection establishment
Almeida et al. Information centric networks–design issues, principles and approaches
US8443057B1 (en) System, method, and/or apparatus for establishing peer-to-peer communication
US8650313B2 (en) Endpoint discriminator in network transport protocol startup packets
CN116708597B (en) Data processing method and device
MXPA06000315A (en) Communication system, computer comprising a peer-to-peer message filter and method for processing a peer-to-peer message.
CN114500487A (en) End-to-end hypertext transfer protocol conversion system
US8301781B1 (en) Methods and systems for browser file transfer
US8145698B1 (en) Self organizing peer-to-peer system, method, and/or apparatus
CN103181140A (en) Method, media server and terminal device for identifying service request type

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination