WO2017107795A1 - Method and device for accelerating access to website - Google Patents

Method and device for accelerating access to website Download PDF

Info

Publication number
WO2017107795A1
WO2017107795A1 PCT/CN2016/109428 CN2016109428W WO2017107795A1 WO 2017107795 A1 WO2017107795 A1 WO 2017107795A1 CN 2016109428 W CN2016109428 W CN 2016109428W WO 2017107795 A1 WO2017107795 A1 WO 2017107795A1
Authority
WO
WIPO (PCT)
Prior art keywords
website
resource
proxy server
server
access request
Prior art date
Application number
PCT/CN2016/109428
Other languages
French (fr)
Chinese (zh)
Inventor
贺三元
Original Assignee
阿里巴巴集团控股有限公司
贺三元
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司, 贺三元 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2017107795A1 publication Critical patent/WO2017107795A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to a website access acceleration method and apparatus.
  • the interconnection bottleneck between different logical networks is an important factor affecting the network connection rate.
  • logical networks such as Telecom, China Unicom, China Railcom, and Education Network, which are affected by objective conditions.
  • the internal communication is very smooth, but when it comes to the interconnection between the networks, there will be various situations such as excessive delay, packet loss and even failure to connect.
  • the solution of the existing technology is to build a proxy server with multi-line bandwidth.
  • the user equipment and the website server are located in different logical networks A and B. If the user directly accesses the website, the rate is affected. The impact of A and B network interconnection bottlenecks.
  • the proxy server After the proxy server is set up, the interaction between the user equipment and the web server can be forwarded through the proxy server. Since the proxy server has the dual-line bandwidth of the network A and the network B at the same time, the user can access the website to accelerate the process.
  • the problem with the above solution is that the versatility is poor, and the scenario where the network interconnection bottleneck exists in the user equipment and the website server has an acceleration effect.
  • the connection bottleneck does not lie in the case of the network interconnection, and may not accelerate, and may even cause additional The forwarding delay, the hardware resources of the proxy server are not fully utilized.
  • the present application provides a website access acceleration method and apparatus, and the technical solution is as follows:
  • a website access acceleration method is provided, which is applied to a proxy server, wherein the proxy server is in communication with a user equipment and a website server, and the method includes:
  • the obtained target website resource is fed back to the user equipment in response to the access request.
  • a website access acceleration apparatus which is applied to a proxy server, wherein the proxy server is in communication with a user equipment and a website server, and the apparatus includes:
  • An access request obtaining module configured to obtain an access request issued by the user equipment for the target website resource
  • connection confirmation module configured to confirm that a Socket connection is established between the user equipment and the proxy server
  • a resource obtaining module configured to acquire the target website resource according to the access request
  • the access request response module is configured to use the Socket connection to feed back the obtained target website resource to the user equipment in response to the access request.
  • the website access acceleration scheme provided by the present application can realize the multiple transmission of resources after establishing a connection by establishing a Socket connection between the proxy server and the user equipment, thereby avoiding the need to establish an HTTP connection every time the resource is transmitted. Connection delay.
  • the application further provides an improved solution for pre-storing website resources, pre-stored website domain name resolution results, and compressing and transmitting website resources in the proxy server to improve the acceleration effect.
  • the solution of the present application can obtain more obvious acceleration effects in more application scenarios, and also enables the proxy server to be more effectively applied to website access acceleration.
  • FIG. 1 is a schematic diagram of a prior art website access acceleration principle
  • FIG. 2 is a schematic diagram of a system architecture of website access acceleration according to the present application.
  • FIG. 3 is a schematic diagram of a first process of the website access acceleration method of the present application.
  • FIG. 4 is a second schematic flowchart of a website access acceleration method of the present application.
  • FIG. 5 is a schematic diagram of a third process of the website access acceleration method of the present application.
  • FIG. 6 is a first schematic structural diagram of a website access acceleration device of the present application.
  • FIG. 7 is a second schematic structural diagram of a website access acceleration apparatus of the present application.
  • the existing proxy server acceleration technology realizes the Internet acceleration effect from the perspective of improving the network connection bandwidth or the connection quality. If the Internet access rate bottleneck is not in the network connection, for example, the user equipment and the website server are located in the same logical network, or are at The speed at which different logical networks are connected smoothly, or the user equipment and the website accelerator itself access the network are limited. Under these circumstances, the prior art cannot effectively accelerate the effect.
  • the present application achieves an Internet acceleration effect from the perspective of improving communication efficiency.
  • the delay cost of this process is mainly reflected in the following aspects: from the user's request to the website to the website to return the content resources to the user:
  • the website server 30 is the owner of the resource
  • the user equipment 10 is a demand side of the resource, and initiates a resource access request to the website server 30 by using the website domain name;
  • the proxy server 20 is logically located between the user device 10 and the website server 30.
  • the proxy server 20 and the user device 10, the proxy server 20 and the website server 30 can implement a communication connection through various forms of networks, and the proxy server 20 can Communicate with multiple different user devices and multiple different web servers.
  • the proxy server 20 can intercept the resource access request initiated by any user equipment 10 to any of the website servers 30, and accelerate the subsequent access process based on the request.
  • the connection modes of the communication parties can be divided into two types: a long connection and a short connection.
  • the so-called long connection means that multiple data packets can be continuously transmitted on one TCP connection.
  • a short connection means that when there is data interaction between the two parties, a TCP connection is established. After the data is sent, the TCP connection is disconnected.
  • the HTTP protocol is a typical application of the TCP protocol and one of the most widely used protocols on the Internet.
  • Many websites use HTTP connections when providing services to users.
  • the HTTP connection is a short connection.
  • Each request sent by the user equipment requires a response from the server. After the request ends, the connection is actively released. The purpose of this is to avoid a large number of concurrent connections caused by a large number of users accessing the website, thereby reducing the server server resource consumption.
  • various resources on the website page such as pictures, audio, video, etc., are provided in the form of HTTP links
  • each time the user equipment requests to acquire a resource an HTTP connection needs to be established with the website server.
  • the server needs to wait until the connection is successfully established before the resource can be Feedback to the user equipment, this way of establishing an HTTP connection frequently will inevitably increase the interaction delay between the user equipment and the website server.
  • connection policy of the website itself From the perspective of third-party acceleration, it is impossible to change the connection policy of the website itself.
  • the user equipment Under the proxy server acceleration mechanism, the user equipment actually establishes a connection with the proxy server and acquires resources from the proxy server, so the user equipment and the proxy can be changed. Connection between servers to reduce connection overhead.
  • FIG. 3 is a flowchart of a website access acceleration method provided by the present application. The method is based on a proxy server and may include the following steps:
  • the obtained target website resource is fed back to the user equipment by using a Socket connection.
  • the present application replaces the default HTTP connection mode between the user equipment and the proxy server with the Socket connection mode.
  • the Socket connection is a long connection, that is, unless both parties take the initiative. Required, otherwise it will not be automatically disconnected after the connection is established.
  • the proxy server can complete the content that needs to be transmitted using multiple HTTP connections through a Socket connection, thus avoiding the extra delay caused by frequent HTTP connection establishment.
  • the application premise of the application scheme is that the proxy server needs to be able to intercept the resource access request initiated by the user equipment to the website server.
  • many products have such conditions, such as a browser, a search engine, a website navigation, a public platform,
  • these application products can provide users with convenient website access portals on the one hand, and bring more users to the website on the other hand.
  • Further providing website access acceleration is of great significance to both users and websites.
  • this application does not need to limit the specific implementation of the application level.
  • the proxy server can be used as the bearer device of the application, and directly obtain the resource access request initiated by the user equipment to the website server, and can also be forwarded by other application servers. User access request.
  • the proxy server needs to confirm that the user equipment has established a Socket connection with itself, and there may be two cases here:
  • the Socket connection is currently established.
  • a Socket connection between the user device and the proxy server may be established in advance in order to implement other functions.
  • the established Socket connection can be maintained and the connection can be further utilized to implement subsequent website access acceleration functions;
  • the Socket connection between the user equipment and the proxy server has not been established yet.
  • the proxy server needs to perform the establishment operation of the Socket connection.
  • the proxy server obtains the corresponding target website resource according to the access request of the user side; the application provides two ways for the proxy server to obtain the target website resource:
  • the proxy server can obtain resource caches from other websites in advance and localize them in a specific manner.
  • the corresponding resource is retrieved from the local cache and fed back to the user side according to the content of the required access. Since there is no need for the proxy server to interact with the website side in real time, this method can significantly reduce the response time to the user side.
  • the website resources corresponding to these fixed entries may be pre-stored in advance, and for products such as browsers, Define information such as configuration or user usage habits to select several websites and pre-store their resources.
  • the website resources stored in the proxy server may be updated according to a certain policy. For example, periodically update, or actively monitor the website side, and find that the website resource content changes after updating. If there is a close cooperation relationship with the website side, it can also be based on the reminder sent by the website side. Update.
  • this application does not need to limit the specific update mechanism.
  • the proxy server after obtaining the access request of the user side for the target website, the proxy server establishes a connection with the target website server in real time, and acquires resources from the target website server;
  • this resource acquisition method takes longer to respond to the user side's request, but can better guarantee the timeliness of resources.
  • the manner in which the proxy server prestores the domain name resolution result may be adopted to further reduce the time overhead caused by the real-time interaction between the proxy server and the website server.
  • the website domain name is used to access the website resources. Even if the third-party application provides the user with a website shortcut access portal, the URL corresponding to the background is mostly based on the information stored in the website domain name. Therefore, in the process of establishing a connection between the proxy server and the target web server according to the user's request, the operation of resolving the website domain name into an IP address takes a certain time.
  • the solution provided by the present application is: pre-store the domain name resolution result of the website (ie, the website IP address) in the proxy server local, and directly use the website IP address and website when the proxy server needs to establish a connection with the web server. The server establishes a connection to avoid the interaction delay caused by domain name resolution.
  • the proxy server may obtain the domain name resolution result of the website from the dedicated domain name resolution server, or implement the domain name resolution operation locally on the proxy server.
  • the URL corresponding to the website shortcut access portal provided for the user can be directly saved as an IP address.
  • the proxy server can selectively save some IP addresses corresponding to website URLs according to actual application requirements.
  • the domain name resolution result stored locally on the proxy server may be updated according to a certain policy.
  • the above provides two ways for the proxy server to obtain the target website resources, which is 1) It is more suitable for obtaining relatively static resources such as pictures, audio and video files, and mode 2) is more suitable for scenarios such as verification, authorization, etc. that require dynamic interaction.
  • the two methods can be used in combination, that is, for one user's access request, according to actual needs, some of the resources are obtained by the proxy server locally, and another part of the resources are obtained by the real-time web server. .
  • resources such as pictures, audio and video files need to occupy most of the transmission bandwidth. Therefore, this combination of resource acquisition methods cannot completely avoid the delay caused by the interaction between the proxy server and the web server.
  • the amount of data transmitted between the proxy server and the web server can still be effectively reduced, thereby increasing the response rate of the proxy server to the user side.
  • the proxy server uses the established Socket connection to feed back the obtained target website resource to the user equipment in response to the user side access request.
  • the proxy server may compress the resources obtained from the website server and then provide the resources to the user side.
  • the resources provided by many websites can be compressed without affecting the actual use of the user to reduce the amount of data transmission between the proxy server and the user equipment, thereby further reducing the transmission delay.
  • This method has great significance for accessing user equipment with limited bandwidth (for example, a mobile phone that uses the wireless mobile mode to access the Internet), and can also reduce the data traffic of the user equipment.
  • the compression processing operation may be pre-completed for the resources pre-stored by the proxy server. If the benefit of the compression processing operation is greater than the consumed time, it may also be completed before being fed back to the user equipment.
  • the specific compression object and compression algorithm need not be limited in this application, and those skilled in the art can flexibly select according to actual needs.
  • the website access acceleration scheme provided by the application improves the speed of the user accessing the website by establishing a Socket connection, pre-storing the website resources in the proxy server, pre-storing the website domain name resolution result, and compressing and transmitting the website resources.
  • the proxy server in this application does not simply play the role of resource forwarding and network interconnection, so it can obtain more obvious acceleration effects in more application scenarios.
  • the acceleration scheme of the present application does not conflict with the existing acceleration scheme itself. Those skilled in the art can combine the scheme of the present application with the prior art scheme according to actual needs.
  • the application further provides a website access acceleration device.
  • the device may include:
  • the access request obtaining module 110 is configured to obtain an access request issued by the user equipment for the target website resource
  • the connection confirmation module 120 is configured to confirm that a Socket connection has been established between the user equipment and the proxy server;
  • the resource obtaining module 130 is configured to obtain a target website resource according to the access request
  • the access request response module 140 is configured to use the Socket connection to feed back the obtained target website resource to the user equipment in response to the access request.
  • the website access acceleration apparatus may further include a resource management module 150, configured to acquire a website resource from a website server in advance and store it locally in the proxy server; correspondingly, the resource The obtaining module 130 is specifically configured to acquire, according to the access request, a target website resource that is pre-stored locally in the proxy server.
  • a resource management module 150 configured to acquire a website resource from a website server in advance and store it locally in the proxy server; correspondingly, the resource The obtaining module 130 is specifically configured to acquire, according to the access request, a target website resource that is pre-stored locally in the proxy server.
  • the resource management module 150 can also be used to update website resources stored locally on the proxy server.
  • the resource obtaining module 130 may be specifically configured to establish a connection with a server of the target website according to the access request, and obtain the target website resource from the server of the target website.
  • the website access acceleration device may further include a domain name resolution management module 160, configured to obtain a domain name resolution result of the website in advance and store it locally in the proxy server; correspondingly, the resource obtaining module 130 is specifically configured to be pre-stored according to The local domain name resolution result of the proxy server establishes a connection with the server of the target website.
  • a domain name resolution management module 160 configured to obtain a domain name resolution result of the website in advance and store it locally in the proxy server; correspondingly, the resource obtaining module 130 is specifically configured to be pre-stored according to The local domain name resolution result of the proxy server establishes a connection with the server of the target website.
  • the domain name resolution management module can also be used to update the domain name resolution result stored locally on the proxy server.
  • the access request response module 140 may be specifically configured to feed back the compressed target website resource to the user equipment.
  • resource management module 150 and the domain name resolution management module 160 are two independent modules, which can be configured in the device as shown in FIG. 7 or separately.
  • the configuration shown in FIG. 7 is not to be construed as limiting the scope of the present application.
  • the present application can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present application or portions of the embodiments.
  • a computer device which may be a personal computer, server, or network device, etc.
  • the various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the device embodiments described above are merely illustrative, and the modules described as separate components may or may not be physically separated. In the implementation of the present application, the functions of the modules may be the same or more. Implemented in software and / or hardware. It is also possible to select some or all of the modules according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.

Landscapes

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

Abstract

The present application discloses a method and device for accelerating access to a website. The method for accelerating access to a website comprises: acquiring an access request sent from a user device for a target website resource; determining that a socket connection has been established between the user device and a proxy server; acquiring, according to the access request, the target website resource; and sending, in response to the access request and by using the socket connection, the acquired target website resource back to the user device. By establishing a socket connection between a proxy server and a user device, the solution for accelerating access to a website provided in the present application enables multiple instances of resource transmission after establishing the connection for one single time, thus preventing a connection latency due to the need to establish an HTTP connection each time a resource is to be transmitted.

Description

一种网站访问加速方法及装置Website access acceleration method and device 技术领域Technical field
本申请涉及互联网技术领域,尤其涉及一种网站访问加速方法及装置。The present application relates to the field of Internet technologies, and in particular, to a website access acceleration method and apparatus.
背景技术Background technique
在互联网时代,如何提升网站访问速率是改进用户上网体验的首要问题。从用户发出访问请求到网站将内容资源返回给用户,这一过程受到多方面因素的影响,其中既包括用户侧和网站侧自身的因素,也包括两侧之间通信环节的因素,针对这些不同方面,也产生了各式各样的网站访问加速技术。In the Internet age, how to improve the website access rate is the primary problem to improve the user's online experience. From the user's request for access to the website to return the content resources to the user, this process is affected by many factors, including the user-side and website-side factors, as well as the communication links between the two sides. In addition, a variety of website access acceleration technologies have also been produced.
不同逻辑网络之间的互连瓶颈,是影响网络连接速率的重要因素,以国内网络环境为例,存在电信、联通、铁通、教育网等多个逻辑网络,受到客观条件的影响,在这些网络内部的通信都很流畅,但一旦涉及到网络之间的互连,就会出现延迟过高、丢包甚至无法连接等各种情况。针对该问题,现有的技术的解决方案是搭建具有多线带宽的代理服务器,参见图1所示,用户设备和网站服务器位于不同的逻辑网络A和B,如果用户直接访问网站,速率会受到A和B网络互连瓶颈的影响。搭建代理服务器后,用户设备与网站服务器之间的交互可以通过代理服务器进行转发,由于代理服务器同时具有网络A和网络B的双线带宽,因此能够对用户访问网站的过程起到加速效果。The interconnection bottleneck between different logical networks is an important factor affecting the network connection rate. Taking the domestic network environment as an example, there are multiple logical networks such as Telecom, China Unicom, China Railcom, and Education Network, which are affected by objective conditions. The internal communication is very smooth, but when it comes to the interconnection between the networks, there will be various situations such as excessive delay, packet loss and even failure to connect. To solve this problem, the solution of the existing technology is to build a proxy server with multi-line bandwidth. As shown in FIG. 1, the user equipment and the website server are located in different logical networks A and B. If the user directly accesses the website, the rate is affected. The impact of A and B network interconnection bottlenecks. After the proxy server is set up, the interaction between the user equipment and the web server can be forwarded through the proxy server. Since the proxy server has the dual-line bandwidth of the network A and the network B at the same time, the user can access the website to accelerate the process.
上述方案问题在于通用性较差,仅针对用户设备和网站服务器存在网络互连瓶颈的场景具有加速效果,对于连接瓶颈并不在于网络互连的情况则并不能起到加速作用,甚至可能导致额外的转发延迟,代理服务器的硬件资源也没有得到充分的利用。The problem with the above solution is that the versatility is poor, and the scenario where the network interconnection bottleneck exists in the user equipment and the website server has an acceleration effect. The connection bottleneck does not lie in the case of the network interconnection, and may not accelerate, and may even cause additional The forwarding delay, the hardware resources of the proxy server are not fully utilized.
发明内容Summary of the invention
针对上述技术问题,本申请提供一种网站访问加速方法及装置,技术方案如下: In response to the above technical problem, the present application provides a website access acceleration method and apparatus, and the technical solution is as follows:
根据本申请的第一方面,提供一种网站访问加速方法,应用于代理服务器,所述代理服务器分别与用户设备及网站服务器通信连接,所述方法包括:According to a first aspect of the present application, a website access acceleration method is provided, which is applied to a proxy server, wherein the proxy server is in communication with a user equipment and a website server, and the method includes:
获得用户设备发出的针对目标网站资源的访问请求;Obtaining an access request from the user equipment for the target website resource;
确认所述用户设备与所述代理服务器之间已建立Socket连接;Confirming that a Socket connection has been established between the user equipment and the proxy server;
根据所述访问请求,获取所述目标网站资源;Obtaining the target website resource according to the access request;
利用所述Socket连接,将所获取的目标网站资源反馈至所述用户设备,以响应所述访问请求。Using the Socket connection, the obtained target website resource is fed back to the user equipment in response to the access request.
根据本申请的第二方面,提供一种网站访问加速装置,应用于代理服务器,所述代理服务器分别与用户设备及网站服务器通信连接,所述装置包括:According to a second aspect of the present application, a website access acceleration apparatus is provided, which is applied to a proxy server, wherein the proxy server is in communication with a user equipment and a website server, and the apparatus includes:
访问请求获得模块,用于获得用户设备发出的针对目标网站资源的访问请求;An access request obtaining module, configured to obtain an access request issued by the user equipment for the target website resource;
连接确认模块,用于确认所述用户设备与所述代理服务器之间已建立Socket连接;a connection confirmation module, configured to confirm that a Socket connection is established between the user equipment and the proxy server;
资源获取模块,用于根据所述访问请求,获取所述目标网站资源;a resource obtaining module, configured to acquire the target website resource according to the access request;
访问请求响应模块,用于利用所述Socket连接,将所获取的目标网站资源反馈至所述用户设备,以响应所述访问请求。The access request response module is configured to use the Socket connection to feed back the obtained target website resource to the user equipment in response to the access request.
本申请提所提供的网站访问加速方案,通过在代理服务器和用户设备之间建立Socket连接的方式,可以实现建立一次连接后多次传输资源,避免每次传输资源都需要建立HTTP连接而导致的连接延迟。在上述方案的基础上,本申请还进一步提供在代理服务器中预存网站资源、预存网站域名解析结果、对网站资源进行压缩传输等改进方案以提升加速效果。与现有技术相比,本申请方案能够在更多的应用场景下获得更为明显的加速效果,也使得代理服务器能够被更高效地应用于网站访问加速。The website access acceleration scheme provided by the present application can realize the multiple transmission of resources after establishing a connection by establishing a Socket connection between the proxy server and the user equipment, thereby avoiding the need to establish an HTTP connection every time the resource is transmitted. Connection delay. Based on the foregoing solution, the application further provides an improved solution for pre-storing website resources, pre-stored website domain name resolution results, and compressing and transmitting website resources in the proxy server to improve the acceleration effect. Compared with the prior art, the solution of the present application can obtain more obvious acceleration effects in more application scenarios, and also enables the proxy server to be more effectively applied to website access acceleration.
应当理解的是,实施本申请方案的任一产品或方法并不一定需要同时具有以上所述的所有优点。以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。 It should be understood that any of the products or methods that implement the aspects of the present application do not necessarily need to have all of the advantages described above. The above general description and the following detailed description are merely exemplary and explanatory and are not intended to be limiting.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only These are some of the embodiments described in this application, and other figures can be obtained from those of ordinary skill in the art in view of these drawings.
图1是现有技术的网站访问加速原理示意图;1 is a schematic diagram of a prior art website access acceleration principle;
图2是本申请的网站访问加速的系统架构示意图;2 is a schematic diagram of a system architecture of website access acceleration according to the present application;
图3是本申请的网站访问加速方法的第一种流程示意图;3 is a schematic diagram of a first process of the website access acceleration method of the present application;
图4是本申请的网站访问加速方法的第二种流程示意图;4 is a second schematic flowchart of a website access acceleration method of the present application;
图5是本申请的网站访问加速方法的第三种流程示意图;5 is a schematic diagram of a third process of the website access acceleration method of the present application;
图6是本申请的网站访问加速装置的第一种结构示意图;6 is a first schematic structural diagram of a website access acceleration device of the present application;
图7是本申请的网站访问加速装置的第二种结构示意图。FIG. 7 is a second schematic structural diagram of a website access acceleration apparatus of the present application.
具体实施方式detailed description
为了使本领域技术人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行详细地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be described in detail below with reference to the accompanying drawings in the embodiments of the present application, it is obvious that the described embodiments are only It is a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments in the present application should fall within the scope of the present application.
现有的代理服务器加速技术,是从改善网络连接带宽或连接质量的角度来实现上网加速效果,如果上网速率瓶颈并不在于网络连接,例如:用户设备和网站服务器位于相同的逻辑网络、或者处于连接比较顺畅的不同逻辑网络、或者用户设备及网站加速器自身接入网络的速率受限,在这些情况下,现有技术均无法有效起到加速效果。The existing proxy server acceleration technology realizes the Internet acceleration effect from the perspective of improving the network connection bandwidth or the connection quality. If the Internet access rate bottleneck is not in the network connection, for example, the user equipment and the website server are located in the same logical network, or are at The speed at which different logical networks are connected smoothly, or the user equipment and the website accelerator itself access the network are limited. Under these circumstances, the prior art cannot effectively accelerate the effect.
针对现有技术存在的问题,本申请从改善通信效率的角度来实现上网加速效果。通过研究发现,从用户发出访问请求到网站将内容资源返回给用户,这一过程的延时开销主要体现在以下几个方面:In view of the problems existing in the prior art, the present application achieves an Internet acceleration effect from the perspective of improving communication efficiency. Through research, it is found that the delay cost of this process is mainly reflected in the following aspects: from the user's request to the website to the website to return the content resources to the user:
1)用户设备与网站服务器需要多次建立HTTP连接,以获取不同的 HTTP资源;1) User equipment and website server need to establish HTTP connection multiple times to get different HTTP resources;
2)用户侧基于域名访问网站时,域名解析所带来的延迟;2) The delay caused by domain name resolution when the user side accesses the website based on the domain name;
3)网站资源的下行传输;3) downlink transmission of website resources;
本申请则针对以上几个方面给出相应的上网加速方案,对应的系统架构如图2所示:This application gives the corresponding Internet acceleration solution for the above aspects, and the corresponding system architecture is shown in Figure 2:
网站服务器30是资源的拥有方;The website server 30 is the owner of the resource;
用户设备10是资源的需求方,利用网站域名向网站服务器30发起资源访问请求;The user equipment 10 is a demand side of the resource, and initiates a resource access request to the website server 30 by using the website domain name;
代理服务器20在逻辑上位于用户设备10和网站服务器30之间,代理服务器20与用户设备10、代理服务器20与网站服务器30之间可通过各种形式的网络实现通信连接,并且代理服务器20可以分别与多台不同的用户设备及多个不同的网站服务器进行通信。The proxy server 20 is logically located between the user device 10 and the website server 30. The proxy server 20 and the user device 10, the proxy server 20 and the website server 30 can implement a communication connection through various forms of networks, and the proxy server 20 can Communicate with multiple different user devices and multiple different web servers.
根据本申请方案,代理服务器20可以截获任一用户设备10向任一网站服务器30发起的资源访问请求,并基于该请求对后续的访问过程进行加速。According to the solution of the present application, the proxy server 20 can intercept the resource access request initiated by any user equipment 10 to any of the website servers 30, and accelerate the subsequent access process based on the request.
当网络通信采用TCP协议时,通信双方的连接方式可分为长连接和短连接两种。所谓长连接是指在一个TCP连接上可以连续发送多个数据包,在TCP连接保持期间,如果没有数据包发送,需要双方发检测包以维持此连接。短连接则是指通信双方有数据交互时,就建立一个TCP连接,数据发送完成后,则断开此TCP连接。When the network communication adopts the TCP protocol, the connection modes of the communication parties can be divided into two types: a long connection and a short connection. The so-called long connection means that multiple data packets can be continuously transmitted on one TCP connection. During the TCP connection hold period, if no data packet is sent, both parties need to send a detection packet to maintain the connection. A short connection means that when there is data interaction between the two parties, a TCP connection is established. After the data is sent, the TCP connection is disconnected.
HTTP协议是TCP协议的一种典型应用,也是互联网的上应用最为广泛的一种协议,很多网站在向用户提供服务时都使用HTTP连接。HTTP连接属于短连接,用户设备发送的每次请求都需要服务器回送响应,在请求结束后,会主动释放连接。这样做的目的是为了避免大量用户访问网站而导致的大量并发连接,从而降低网站服务器资源消耗。但是从另一个方面看,由于网站页面上各种资源,例如图片、音频、视频等都是以HTTP链接的形式提供,因此用户设备每次请求获取一个资源,就需要与网站服务器建立一次HTTP连接,服务器则需要等到连接建立成功后才能将资源 反馈给用户设备,这种频繁建立HTTP连接的方式必然会增加用户设备与网站服务器之间的交互延迟。The HTTP protocol is a typical application of the TCP protocol and one of the most widely used protocols on the Internet. Many websites use HTTP connections when providing services to users. The HTTP connection is a short connection. Each request sent by the user equipment requires a response from the server. After the request ends, the connection is actively released. The purpose of this is to avoid a large number of concurrent connections caused by a large number of users accessing the website, thereby reducing the server server resource consumption. However, from another perspective, since various resources on the website page, such as pictures, audio, video, etc., are provided in the form of HTTP links, each time the user equipment requests to acquire a resource, an HTTP connection needs to be established with the website server. , the server needs to wait until the connection is successfully established before the resource can be Feedback to the user equipment, this way of establishing an HTTP connection frequently will inevitably increase the interaction delay between the user equipment and the website server.
从第三方加速的角度,无法去改变网站自身的连接策略,但是在代理服务器加速机制下,用户设备实际上是与代理服务器建立连接,并且从代理服务器获取资源,因此可以通过改变用户设备与代理服务器之间的连接方式来降低连接开销。From the perspective of third-party acceleration, it is impossible to change the connection policy of the website itself. However, under the proxy server acceleration mechanism, the user equipment actually establishes a connection with the proxy server and acquires resources from the proxy server, so the user equipment and the proxy can be changed. Connection between servers to reduce connection overhead.
图3所示,为本申请提供的网站访问加速方法的流程图,该方法基于代理服务器,可以包括以下步骤:FIG. 3 is a flowchart of a website access acceleration method provided by the present application. The method is based on a proxy server and may include the following steps:
S101,获得用户设备发出的针对目标网站资源的访问请求;S101. Obtain an access request for a target website resource sent by the user equipment.
S102,确认所述用户设备与所述代理服务器之间已建立Socket连接;S102. Confirm that a Socket connection is established between the user equipment and the proxy server.
S103,根据所述访问请求,获取所述目标网站资源;S103. Acquire, according to the access request, the target website resource.
S104,利用Socket连接,将所获取的目标网站资源反馈至所述用户设备。S104. The obtained target website resource is fed back to the user equipment by using a Socket connection.
与现有的代理加速方案相比,本申请将用户设备与代理服务器之间默认的HTTP连接方式替换为Socket连接方式,与HTTP连接相比,Socket连接属于长连接,也就是说,除非双方主动要求,否则在连接建立之后不会自动断开。利用这个特性,代理服务器可以将原本需要使用多次HTTP连接进行传输的内容,通过一次Socket连接完成,从而避免频繁建立HTTP连接而导致的额外时延。Compared with the existing proxy acceleration scheme, the present application replaces the default HTTP connection mode between the user equipment and the proxy server with the Socket connection mode. Compared with the HTTP connection, the Socket connection is a long connection, that is, unless both parties take the initiative. Required, otherwise it will not be automatically disconnected after the connection is established. With this feature, the proxy server can complete the content that needs to be transmitted using multiple HTTP connections through a Socket connection, thus avoiding the extra delay caused by frequent HTTP connection establishment.
本申请方案的应用前提是:代理服务器需要能够截获用户设备向网站服务器发起的资源访问请求,在实际应用层面,很多产品都具备这样的条件,例如浏览器、搜索引擎、网站导航、公众平台、综合业务服务窗等,作为综合性的网络服务提供方,这些应用产品一方面能够为用户提供方便的网站访问入口,另一方面能够为网站带来更多的用户,在此基础上,如果能够进一步提供网站访问加速功能,对于用户和网站双方都具有很大意义。当然,本申请并不需要对应用层面的具体实现方式进行限定。The application premise of the application scheme is that the proxy server needs to be able to intercept the resource access request initiated by the user equipment to the website server. At the practical application level, many products have such conditions, such as a browser, a search engine, a website navigation, a public platform, As a comprehensive network service provider, these application products can provide users with convenient website access portals on the one hand, and bring more users to the website on the other hand. On this basis, if Further providing website access acceleration is of great significance to both users and websites. Of course, this application does not need to limit the specific implementation of the application level.
根据S101,代理服务器可以作为应用的承载设备,直接获得用户设备向网站服务器发起的资源访问请求,也可以获得其他应用服务器转发来的 用户访问请求。According to S101, the proxy server can be used as the bearer device of the application, and directly obtain the resource access request initiated by the user equipment to the website server, and can also be forwarded by other application servers. User access request.
根据S102,代理服务器需要确认用户设备已经与自身建立起了Socket连接,这里可能存在两种情况:According to S102, the proxy server needs to confirm that the user equipment has established a Socket connection with itself, and there may be two cases here:
一种情况是Socket连接当前已经建立完成,例如,当代理服务器本身作为应用承载设备时,即使没有访问网站的需求,也可能为了实现其他功能而预先建立了用户设备与代理服务器之间的Socket连接,这种情况下,可以维持已建立的Socket连接并进一步利用该连接实现后续的网站访问加速功能;In one case, the Socket connection is currently established. For example, when the proxy server itself is used as an application bearer device, even if there is no need to access the website, a Socket connection between the user device and the proxy server may be established in advance in order to implement other functions. In this case, the established Socket connection can be maintained and the connection can be further utilized to implement subsequent website access acceleration functions;
另一种情况是当前尚未建立用户设备与代理服务器之间的Socket连接,这种情况下,代理服务器下需要执行Socket连接的建立操作。In another case, the Socket connection between the user equipment and the proxy server has not been established yet. In this case, the proxy server needs to perform the establishment operation of the Socket connection.
建立Socket连接的具体方式可参见现有技术的说明,在本申请中不再详细介绍。For a specific manner of establishing a Socket connection, refer to the description of the prior art, which is not described in detail in this application.
根据S103,代理服务器根据用户侧的访问请求,获取相应的目标网站资源;本申请提供两种代理服务器获取目标网站资源的方式:According to S103, the proxy server obtains the corresponding target website resource according to the access request of the user side; the application provides two ways for the proxy server to obtain the target website resource:
1)代理服务器本地获取。1) The proxy server is obtained locally.
参见图4所示,代理服务器可以预先从其他网站获取资源缓存到本地,并且按照特定的方式进行标识。根据S103a,获得用户侧的资源访问请求后,根据所需访问的内容,从本地的缓存取出相应的资源反馈至用户侧。由于不需要代理服务器实时与网站侧进行交互,这种方式可以显著降低对用户侧的响应时间。Referring to FIG. 4, the proxy server can obtain resource caches from other websites in advance and localize them in a specific manner. According to S103a, after obtaining the resource access request of the user side, the corresponding resource is retrieved from the local cache and fed back to the user side according to the content of the required access. Since there is no need for the proxy server to interact with the website side in real time, this method can significantly reduce the response time to the user side.
在实际应用中,对于公众平台、综合业务服务窗等提供网站入口相对固定的产品,可以直接预先对这些固定入口所对应的网站资源进行预存,而对于浏览器等产品,也可以根据用户的自定义配置或者用户的使用习惯等信息选取若干网站并对其资源进行预存。In practical applications, for websites that provide relatively fixed website portals for public platforms and integrated business service windows, the website resources corresponding to these fixed entries may be pre-stored in advance, and for products such as browsers, Define information such as configuration or user usage habits to select several websites and pre-store their resources.
另外,为了保证代理服务器本地预存资源的时效性,可以按照一定的策略,对存储在代理服务器本地的网站资源进行更新。例如周期性进行更新,或者主动对网站侧进行监测、发现网站资源内容发生变化后进行更新,如果和网站方具有较为密切的合作关系,也可以根据网站侧发送的提醒来 进行更新。当然,本申请并不需要对具体的更新机制进行限定。In addition, in order to ensure the timeliness of the pre-stored resources of the proxy server, the website resources stored in the proxy server may be updated according to a certain policy. For example, periodically update, or actively monitor the website side, and find that the website resource content changes after updating. If there is a close cooperation relationship with the website side, it can also be based on the reminder sent by the website side. Update. Of course, this application does not need to limit the specific update mechanism.
2)实时从网站服务器获取。2) Get it from the web server in real time.
参见图5的S103b所示,代理服务器在获得用户侧针对目标网站的访问请求后,实时与目标网站服务器建立连接,并从目标网站服务器获取资源;Referring to S103b in FIG. 5, after obtaining the access request of the user side for the target website, the proxy server establishes a connection with the target website server in real time, and acquires resources from the target website server;
与方式1)相比,这种资源获取方式需要更长的时间来响应用户侧的请求,但是能够更好地保证资源的时效性。而且,对于一些实时交互需求,例如验证、授权等,也必须采用实时获取资源的方式。Compared with mode 1), this resource acquisition method takes longer to respond to the user side's request, but can better guarantee the timeliness of resources. Moreover, for some real-time interaction needs, such as verification, authorization, etc., it is also necessary to adopt a way of acquiring resources in real time.
在本申请所提供的一种具体实施方式中,可以采用在代理服务器预存域名解析结果的方式,以进一步降低代理服务器与网站服务器实时交互所带来的时间开销。In a specific implementation provided by the application, the manner in which the proxy server prestores the domain name resolution result may be adopted to further reduce the time overhead caused by the real-time interaction between the proxy server and the website server.
根据一般用户的使用习惯,都是使用网站域名来对网站资源进行访问,即便是第三方应用为用户提供的网站快捷访问入口,其后台所对应的URL也多是基于网站域名所保存的信息。因此,在代理服务器根据用户的请求与目标网站服务器建立连接的过程中,将网站域名解析为IP地址的操作将会占用一定的时间。针对该问题,本申请提供的解决方案是:预先将网站的域名解析结果(即网站IP地址)存储在代理服务器本地,当代理服务器需要与网站服务器建立连接时,直接利用网站的IP地址与网站服务器建立连接,从而避免域名解析所带来的交互时延。According to the usage habits of the general users, the website domain name is used to access the website resources. Even if the third-party application provides the user with a website shortcut access portal, the URL corresponding to the background is mostly based on the information stored in the website domain name. Therefore, in the process of establishing a connection between the proxy server and the target web server according to the user's request, the operation of resolving the website domain name into an IP address takes a certain time. To solve this problem, the solution provided by the present application is: pre-store the domain name resolution result of the website (ie, the website IP address) in the proxy server local, and directly use the website IP address and website when the proxy server needs to establish a connection with the web server. The server establishes a connection to avoid the interaction delay caused by domain name resolution.
实际应用中,代理服务器可以从专用的域名解析服务器中获取网站的域名解析结果,也可以在代理服务器本地实现域名解析操作。在入口应用中,可以直接将为用户提供的网站快捷访问入口所对应的URL保存为IP地址的形式。In a practical application, the proxy server may obtain the domain name resolution result of the website from the dedicated domain name resolution server, or implement the domain name resolution operation locally on the proxy server. In the portal application, the URL corresponding to the website shortcut access portal provided for the user can be directly saved as an IP address.
与预存网站资源类似的是,代理服务器可以根据实际应用需求选择性地保存一些网站URL对应的IP地址。同时为了保证域名解析结果的正确,也可以按照一定的策略,对存储在代理服务器本地的域名解析结果进行更新。Similar to pre-stored website resources, the proxy server can selectively save some IP addresses corresponding to website URLs according to actual application requirements. At the same time, in order to ensure the correctness of the domain name resolution result, the domain name resolution result stored locally on the proxy server may be updated according to a certain policy.
以上提供了两种代理服务器获取目标网站资源的方式,其中方式1) 更适合于例如图片、音视频文件等相对静态资源的获取,方式2)则更适合例如验证、授权等需要动态交互的场景。在实际应用中,两种方式往往可以结合使用,即:针对一次用户的访问请求,可以按照实际需求,对一部分资源采用代理服务器本地获取的方式、对另一部分资源采用实时从网站服务器获取的方式。事实上,在数据传输过程中,图片、音视频文件等资源需要占用大部分的传输带宽,因此,这种相结合的资源获取方式,尽管无法完全避免代理服务器与网站服务器交互所带来的延时,仍然可以有效降低代理服务器与网站服务器之间的传输数据量,从而提高代理服务器对用户侧的响应速率。The above provides two ways for the proxy server to obtain the target website resources, which is 1) It is more suitable for obtaining relatively static resources such as pictures, audio and video files, and mode 2) is more suitable for scenarios such as verification, authorization, etc. that require dynamic interaction. In practical applications, the two methods can be used in combination, that is, for one user's access request, according to actual needs, some of the resources are obtained by the proxy server locally, and another part of the resources are obtained by the real-time web server. . In fact, in the process of data transmission, resources such as pictures, audio and video files need to occupy most of the transmission bandwidth. Therefore, this combination of resource acquisition methods cannot completely avoid the delay caused by the interaction between the proxy server and the web server. At the same time, the amount of data transmitted between the proxy server and the web server can still be effectively reduced, thereby increasing the response rate of the proxy server to the user side.
在S104,代理服务器利用已建立的Socket连接,将所获取的目标网站资源反馈至用户设备,以响应用户侧的访问请求。At S104, the proxy server uses the established Socket connection to feed back the obtained target website resource to the user equipment in response to the user side access request.
在本申请的一种优选实施方式中,对于从网站服务器获取到的资源,代理服务器可以对其进行压缩处理后再提供给用户侧。实际应用中,对于很多网站所提供的资源,可以在不影响用户实际使用的前提下做压缩处理以降低代理服务器与用户设备之间的数据传输量,从而进一步降低传输时延。这种方式对于接入带宽受限的用户设备(例如利用无线移动方式上网的手机)具有较大意义,而且还可以降低用户设备的数据流量。压缩处理操作可以针对代理服务器本地预存的资源预先完成,如果压缩处理操作所带来的收益大于所消耗的时间,也可以在向用户设备反馈之前完成。本申请对具体的压缩对象、压缩算法并不需要进行限定,本领域技术人员可以根据实际需求灵活选取。In a preferred embodiment of the present application, the proxy server may compress the resources obtained from the website server and then provide the resources to the user side. In practical applications, the resources provided by many websites can be compressed without affecting the actual use of the user to reduce the amount of data transmission between the proxy server and the user equipment, thereby further reducing the transmission delay. This method has great significance for accessing user equipment with limited bandwidth (for example, a mobile phone that uses the wireless mobile mode to access the Internet), and can also reduce the data traffic of the user equipment. The compression processing operation may be pre-completed for the resources pre-stored by the proxy server. If the benefit of the compression processing operation is greater than the consumed time, it may also be completed before being fed back to the user equipment. The specific compression object and compression algorithm need not be limited in this application, and those skilled in the art can flexibly select according to actual needs.
可见,本申请提所提供的网站访问加速方案,通过建立Socket连接、在代理服务器中预存网站资源、预存网站域名解析结果、对网站资源进行压缩传输等多个环节来提升用户访问网站的速度。与现有的加速方案相比,本申请中的代理服务器并不只是简单起到资源转发和网络互连的作用,因此能够在更多的应用场景下获得更为明显的加速效果。当然,本申请的加速方案与现有的加速方案本身也并不存在冲突,本领域技术人员可以根据实际需求将本申请方案与现有技术方案进行结合。 It can be seen that the website access acceleration scheme provided by the application improves the speed of the user accessing the website by establishing a Socket connection, pre-storing the website resources in the proxy server, pre-storing the website domain name resolution result, and compressing and transmitting the website resources. Compared with the existing acceleration scheme, the proxy server in this application does not simply play the role of resource forwarding and network interconnection, so it can obtain more obvious acceleration effects in more application scenarios. Of course, the acceleration scheme of the present application does not conflict with the existing acceleration scheme itself. Those skilled in the art can combine the scheme of the present application with the prior art scheme according to actual needs.
相应于上述方法实施例,本申请还提供一种网站访问加速装置,参见图6所示,该装置可以包括:Corresponding to the foregoing method embodiment, the application further provides a website access acceleration device. As shown in FIG. 6, the device may include:
访问请求获得模块110,用于获得用户设备发出的针对目标网站资源的访问请求;The access request obtaining module 110 is configured to obtain an access request issued by the user equipment for the target website resource;
连接确认模块120,用于确认用户设备与代理服务器之间已建立Socket连接;The connection confirmation module 120 is configured to confirm that a Socket connection has been established between the user equipment and the proxy server;
资源获取模块130,用于根据访问请求,获取目标网站资源;The resource obtaining module 130 is configured to obtain a target website resource according to the access request;
访问请求响应模块140,用于利用所述Socket连接,将所获取的目标网站资源反馈至用户设备,以响应访问请求。The access request response module 140 is configured to use the Socket connection to feed back the obtained target website resource to the user equipment in response to the access request.
参见图7所示,在本申请的一种具体实施方式中,上述网站访问加速装置还可以包括资源管理模块150,用于预先从网站服务器获取网站资源并存储在代理服务器本地;相应地,资源获取模块130具体用于根据访问请求,获取预先存储在代理服务器本地的目标网站资源。As shown in FIG. 7, in a specific implementation manner of the present application, the website access acceleration apparatus may further include a resource management module 150, configured to acquire a website resource from a website server in advance and store it locally in the proxy server; correspondingly, the resource The obtaining module 130 is specifically configured to acquire, according to the access request, a target website resource that is pre-stored locally in the proxy server.
此外,资源管理模块150还可以用于对存储在代理服务器本地的网站资源进行更新。In addition, the resource management module 150 can also be used to update website resources stored locally on the proxy server.
在本申请的一种具体实施方式中,资源获取模块130可以具体用于根据访问请求,与目标网站的服务器建立连接,从目标网站的服务器获取目标网站资源。In a specific implementation manner of the present application, the resource obtaining module 130 may be specifically configured to establish a connection with a server of the target website according to the access request, and obtain the target website resource from the server of the target website.
参见图7所示,上述网站访问加速装置还可以进一步包括域名解析管理模块160,用于预先获得网站的域名解析结果并存储在代理服务器本地;相应地资源获取模块130具体用于根据预先存储在代理服务器本地的域名解析结果,与目标网站的服务器建立连接。As shown in FIG. 7 , the website access acceleration device may further include a domain name resolution management module 160, configured to obtain a domain name resolution result of the website in advance and store it locally in the proxy server; correspondingly, the resource obtaining module 130 is specifically configured to be pre-stored according to The local domain name resolution result of the proxy server establishes a connection with the server of the target website.
此外,域名解析管理模块,还可以用于对存储在代理服务器本地的域名解析结果进行更新。In addition, the domain name resolution management module can also be used to update the domain name resolution result stored locally on the proxy server.
在本申请的一种具体实施方式中,访问请求响应模块140可以具体用于将经过压缩处理的目标网站资源反馈至用户设备。In a specific implementation manner of the present application, the access request response module 140 may be specifically configured to feed back the compressed target website resource to the user equipment.
可以理解的是,资源管理模块150与域名解析管理模块160作为两种功能独立的模块,既可以如图7所示同时配置在装置中,也可以分别单独 配置在装置中,因此图7所示的结构不应理解为对本申请方案的限定。It can be understood that the resource management module 150 and the domain name resolution management module 160 are two independent modules, which can be configured in the device as shown in FIG. 7 or separately. The configuration shown in FIG. 7 is not to be construed as limiting the scope of the present application.
上述装置中各个模块的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For details of the implementation process of the functions and functions of the modules in the foregoing devices, refer to the implementation process of the corresponding steps in the foregoing methods, and details are not described herein again.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。It will be apparent to those skilled in the art from the above description of the embodiments that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present application or portions of the embodiments.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,在实施本申请方案时可以把各模块的功能在同一个或多个软件和/或硬件中实现。也可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment. The device embodiments described above are merely illustrative, and the modules described as separate components may or may not be physically separated. In the implementation of the present application, the functions of the modules may be the same or more. Implemented in software and / or hardware. It is also possible to select some or all of the modules according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
以上所述仅是本申请的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。 The above description is only a specific embodiment of the present application, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present application. It should be considered as the scope of protection of this application.

Claims (14)

  1. 一种网站访问加速方法,应用于代理服务器,所述代理服务器分别与用户设备及网站服务器通信连接,其特征在于,所述方法包括:A website access acceleration method is applied to a proxy server, wherein the proxy server is in communication with a user equipment and a website server, respectively, wherein the method comprises:
    获得用户设备发出的针对目标网站资源的访问请求;Obtaining an access request from the user equipment for the target website resource;
    确认所述用户设备与所述代理服务器之间已建立Socket连接;Confirming that a Socket connection has been established between the user equipment and the proxy server;
    根据所述访问请求,获取所述目标网站资源;Obtaining the target website resource according to the access request;
    利用所述Socket连接,将所获取的目标网站资源反馈至所述用户设备,以响应所述访问请求。Using the Socket connection, the obtained target website resource is fed back to the user equipment in response to the access request.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:预先从网站服务器获取网站资源并存储在代理服务器本地;The method according to claim 1, wherein the method further comprises: acquiring the website resource from the website server in advance and storing it locally at the proxy server;
    所述根据所述访问请求,获取所述目标网站资源,包括:根据所述访问请求,获取预先存储在代理服务器本地的目标网站资源。The obtaining the target website resource according to the access request includes: acquiring, according to the access request, a target website resource that is pre-stored locally in the proxy server.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:对存储在代理服务器本地的网站资源进行更新。The method of claim 2, wherein the method further comprises: updating a website resource stored locally at the proxy server.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述访问请求,获取所述目标网站资源,包括:The method according to claim 1, wherein the obtaining the target website resource according to the access request comprises:
    根据所述访问请求,与目标网站的服务器建立连接,从目标网站的服务器获取目标网站资源。According to the access request, a connection is established with the server of the target website, and the target website resource is obtained from the server of the target website.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:预先获得网站的域名解析结果并存储在代理服务器本地;The method according to claim 4, wherein the method further comprises: obtaining a domain name resolution result of the website in advance and storing the result in the proxy server;
    所述与目标网站的服务器建立连接,包括:根据预先存储在代理服务器本地的域名解析结果,与目标网站的服务器建立连接。The establishing a connection with the server of the target website includes: establishing a connection with the server of the target website according to the domain name resolution result stored in advance on the proxy server.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:对存储在代理服务器本地的域名解析结果进行更新。The method according to claim 5, wherein the method further comprises: updating the domain name resolution result stored locally at the proxy server.
  7. 根据权利要求1所述的方法,其特征在于,所述将所获取的目标网站资源反馈至所述用户设备,包括:The method according to claim 1, wherein the feeding back the obtained target website resource to the user equipment comprises:
    将经过压缩处理的目标网站资源反馈至所述用户设备。 The compressed target website resource is fed back to the user equipment.
  8. 一种网站访问加速装置,应用于代理服务器,所述代理服务器分别与用户设备及网站服务器通信连接,其特征在于,所述装置包括:A website access acceleration device is applied to a proxy server, wherein the proxy server is in communication with a user equipment and a website server, respectively, wherein the device comprises:
    访问请求获得模块,用于获得用户设备发出的针对目标网站资源的访问请求;An access request obtaining module, configured to obtain an access request issued by the user equipment for the target website resource;
    连接确认模块,用于确认所述用户设备与所述代理服务器之间已建立Socket连接;a connection confirmation module, configured to confirm that a Socket connection is established between the user equipment and the proxy server;
    资源获取模块,用于根据所述访问请求,获取所述目标网站资源;a resource obtaining module, configured to acquire the target website resource according to the access request;
    访问请求响应模块,用于利用所述Socket连接,将所获取的目标网站资源反馈至所述用户设备,以响应所述访问请求。The access request response module is configured to use the Socket connection to feed back the obtained target website resource to the user equipment in response to the access request.
  9. 根据权利要求8所述的装置,其特征在于,所述装置还包括资源管理模块,用于预先从网站服务器获取网站资源并存储在代理服务器本地;The device according to claim 8, wherein the device further comprises a resource management module, configured to acquire a website resource from a website server in advance and store it locally at the proxy server;
    所述资源获取模块,具体用于根据所述访问请求,获取预先存储在代理服务器本地的目标网站资源。The resource obtaining module is specifically configured to acquire, according to the access request, a target website resource that is pre-stored locally in the proxy server.
  10. 根据权利要求9所述的装置,其特征在于,所述资源管理模块,还用于:The device according to claim 9, wherein the resource management module is further configured to:
    对存储在代理服务器本地的网站资源进行更新。Update the website resources stored locally on the proxy server.
  11. 根据权利要求8所述的装置,其特征在于,所述资源获取模块,具体用于根据所述访问请求,与目标网站的服务器建立连接,从目标网站的服务器获取目标网站资源。The device according to claim 8, wherein the resource obtaining module is configured to establish a connection with a server of the target website according to the access request, and obtain a target website resource from a server of the target website.
  12. 根据权利要求11所述的装置,其特征在于,所述装置还包括域名解析管理模块,用于预先获得网站的域名解析结果并存储在代理服务器本地;The device according to claim 11, wherein the device further comprises a domain name resolution management module, configured to obtain a domain name resolution result of the website in advance and store it locally at the proxy server;
    所述资源获取模块,具体用于根据预先存储在代理服务器本地的域名解析结果,与目标网站的服务器建立连接。The resource obtaining module is specifically configured to establish a connection with a server of the target website according to a domain name parsing result stored in advance on the proxy server.
  13. 根据权利要求12所述的装置,其特征在于,所述域名解析管理模块,还用于:The apparatus according to claim 12, wherein the domain name resolution management module is further configured to:
    对存储在代理服务器本地的域名解析结果进行更新。 Update the domain name resolution results stored locally on the proxy server.
  14. 根据权利要求8所述的装置,其特征在于,所述访问请求响应模块,具体用于:The device according to claim 8, wherein the access request response module is specifically configured to:
    将经过压缩处理的目标网站资源反馈至所述用户设备。 The compressed target website resource is fed back to the user equipment.
PCT/CN2016/109428 2015-12-22 2016-12-12 Method and device for accelerating access to website WO2017107795A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510974013.3A CN106911732A (en) 2015-12-22 2015-12-22 A kind of website visiting accelerating method and device
CN201510974013.3 2015-12-22

Publications (1)

Publication Number Publication Date
WO2017107795A1 true WO2017107795A1 (en) 2017-06-29

Family

ID=59089061

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/109428 WO2017107795A1 (en) 2015-12-22 2016-12-12 Method and device for accelerating access to website

Country Status (2)

Country Link
CN (1) CN106911732A (en)
WO (1) WO2017107795A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311835A (en) * 2019-08-02 2021-02-02 杭州海康威视数字技术股份有限公司 Security check analysis data transmission method and system, security check analyzer and client device
CN113079220A (en) * 2021-04-15 2021-07-06 深圳市万为物联科技有限公司 Method for remotely controlling control machine in power exchange cabinet

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286684B (en) * 2018-11-21 2021-06-15 广州市百果园信息技术有限公司 Communication connection processing method and device, proxy server and storage medium
CN110413676B (en) * 2019-07-25 2022-03-11 中国工商银行股份有限公司 Database access method and device, electronic equipment and medium
CN111786809A (en) * 2020-05-11 2020-10-16 北京奇艺世纪科技有限公司 Client software network optimization method, system, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924771A (en) * 2010-08-26 2010-12-22 北京天融信科技有限公司 Core-level TCP adhering junction method for accelerating application proxy
CN102271123A (en) * 2010-06-01 2011-12-07 阿里巴巴集团控股有限公司 Communication method, system and equipment
CN102420805A (en) * 2010-09-27 2012-04-18 阿里巴巴集团控股有限公司 Method, system and device for communication by virtue of socket connection
CN104580097A (en) * 2013-10-22 2015-04-29 腾讯科技(深圳)有限公司 Data processing method, device and system
CN104717249A (en) * 2013-12-12 2015-06-17 北京神州泰岳软件股份有限公司 Method for issuing remote operation application, proxy server and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917490B (en) * 2010-09-16 2014-01-01 北京开心人信息技术有限公司 Method and system for reading cache data
CN105100174A (en) * 2014-05-22 2015-11-25 中国移动通信集团公司 Method, device and system for scheduling Internet resource

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271123A (en) * 2010-06-01 2011-12-07 阿里巴巴集团控股有限公司 Communication method, system and equipment
CN101924771A (en) * 2010-08-26 2010-12-22 北京天融信科技有限公司 Core-level TCP adhering junction method for accelerating application proxy
CN102420805A (en) * 2010-09-27 2012-04-18 阿里巴巴集团控股有限公司 Method, system and device for communication by virtue of socket connection
CN104580097A (en) * 2013-10-22 2015-04-29 腾讯科技(深圳)有限公司 Data processing method, device and system
CN104717249A (en) * 2013-12-12 2015-06-17 北京神州泰岳软件股份有限公司 Method for issuing remote operation application, proxy server and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311835A (en) * 2019-08-02 2021-02-02 杭州海康威视数字技术股份有限公司 Security check analysis data transmission method and system, security check analyzer and client device
CN113079220A (en) * 2021-04-15 2021-07-06 深圳市万为物联科技有限公司 Method for remotely controlling control machine in power exchange cabinet

Also Published As

Publication number Publication date
CN106911732A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
WO2017107795A1 (en) Method and device for accelerating access to website
US9781215B2 (en) Migration of network connection under mobility
US7826487B1 (en) Coalescing acknowledgement responses to improve network communications
US9021128B2 (en) Request routing using network computing components
CN104580192B (en) The treating method and apparatus of the network access request of application program
US8620999B1 (en) Network resource modification for higher network connection concurrence
CN104994079B (en) The treating method and apparatus of access request accelerates server
US10230811B2 (en) System and method for providing an adjunct device in a content distribution network
US11496403B2 (en) Modifying the congestion control algorithm applied to a connection based on request characteristics
CN102710748A (en) Data acquisition method, system and equipment
US11290487B2 (en) Method and apparatus for reducing latency of network protocols
CN104967613B (en) The system and method that data are transmitted under a kind of mobile network environment
US20100235464A1 (en) Handoff and optimization of a network protocol stack
CN107645543B (en) Method and system applied to cache server HTTP non-80 cache port service
WO2017113816A1 (en) Method and device for peer-to-peer network connection
US20150113101A1 (en) Method and apparatus for providing streaming content
CN105610945A (en) Search traffic access localization processing method and device
WO2019052299A1 (en) Sdn switch, and application and management method for sdn switch
CN103686852B (en) A kind of method, equipment and Wireless acceleration system that interaction data is processed
EP3079328B1 (en) Media resource sharing method, shared server and shared system
US20160285946A1 (en) Qos improvement method, apparatus, and system
US8832281B2 (en) Utilizing resources of a peer-to-peer computer environment
CN106714164B (en) Acquisition method of resource file in Portal page, wireless AP and Portal server
US9288153B2 (en) Processing encoded content
CN115118593B (en) Method and system for optimizing flow rate during network sharing of multiple devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16877606

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16877606

Country of ref document: EP

Kind code of ref document: A1