Unlock instant, AI-driven research and patent intelligence for your innovation.

A caching method and device for network connection

A network connection and caching technology, applied in the field of communication, can solve problems such as low cache hit rate, cache hit failure, and re-establishment of the connection to the Web server 3, so as to improve the cache hit rate and avoid cache hit failure.

Active Publication Date: 2019-03-08
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Assume that cache area 1, cache area 2, and cache area 3 are used to cache the TCP connections of Web server 1, Web server 2, Web server 3, and Web server 4. In the current state, cache area 1, cache area 2, and cache area 3 respectively cache If the TCP connection between Web server 1, Web server 2 and Web server 3 is established, then, when the existing solution performs cache replacement in combination with the above polling method, after accessing Web server 1 using the content in cache area 1, the buffer area will be updated. 2, the cache hit fails when accessing Web server 2, and the connection to Web server 2 needs to be re-established; and, after accessing Web server 2, the content in cache area 3 is replaced, resulting in a cache hit failure when accessing Web server 2. At 3 o'clock, the cache hit failed, and the connection to the web server 3 needs to be re-established
It can be seen that the existing scheme has the problem of low cache hit rate

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A caching method and device for network connection
  • A caching method and device for network connection
  • A caching method and device for network connection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0037] refer to figure 2 , which shows a schematic flowchart of steps of a network connection caching method according to an embodiment of the present invention, which may specifically include the following steps:

[0038] Step 201, after completing a server access, determine the latest selection probability of each network connection in the cache according to the characteristics of the server load balancing method; wherein, the l...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present invention provide a network connection caching method and device, wherein the method specifically includes: after completing a server access, determining the latest selection probability of each network connection in the cache according to the characteristics of the server load balancing mode; wherein, the The latest selection probability is used to represent the probability that the server corresponding to the network connection will be selected next time according to the load balancing method; according to the latest selection probability, sort the network connections in the cache; and replace the latest selection probability in the cache with the smallest network connections, and retain the latest network connection with the highest probability of selection in the cache. The embodiments of the present invention can avoid the problem of cache hit failure caused by the replacement of the network connection with the highest probability of latest selection in the cache, thereby improving the cache hit rate of the network connection.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to a method and device for caching network connections. Background technique [0002] The normal web access process is a typical client and server model, such as figure 1 As shown, the user uses a program on the client 101 such as a browser to send a request, and the Web server 103 responds to the request and provides corresponding data. The proxy server 102 is between the client 101 and the Web server 103 to forward the request and data, and also Evenly distributing the requests among the Web servers 103 can be realized through the load balancing of the Web servers 103 . Assuming that the polling method is used to achieve load balancing for four Web servers, then each client request can be assigned to different Web servers in the order of Web server 1, Web server 2, Web server 3, and Web server 4. [0003] When the number of concurrent visits is large, the proxy ser...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/02H04L69/16H04L67/1001H04L65/40
Inventor 任勇全赵安安陈磊
Owner BEIJING QIHOO TECH CO LTD