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

Method and device for connection sharing of browsers

A browser and file sharing technology, applied in the field of Internet communication, can solve problems such as slow access speed, reduced server service efficiency, and inability to realize browser data sharing, etc.

Active Publication Date: 2013-09-11
ALIBABA GRP HLDG LTD
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Web push technology has become popular, and now some large Internet companies have begun to apply this technology on a large scale. Representative technologies include WebSocket, Flash Socket and other technologies. Using Web push technology can break through the TCP (Transmission Control Protocol, transmission control protocol) long connection, but it also introduces a new problem. This problem is that when a user opens multiple browsers, multiple browsers will each initiate a long connection to the server. , and in many cases, it is very likely that multiple browsers view different pages of the same website, so the server needs to maintain the number of Sockets several times the number of clients
Therefore, there is a problem of the number of long connections: when the number of connections is too large, the receiving buffer of the server TCP will grow geometrically, and when the memory is exhausted, the server will have no way to receive new connections, then The phenomenon of server denial of service will occur, and the number of clients provided by the server will only be limited to a small range
[0003] Yet, for the problem of the connection number of above-mentioned long connection, prior art can be solved by the long connection sharing of Socket, and its basic principle is to find a data cache area that can be shared among multiple browsers, and then, through data cache Area transfer to achieve the purpose of sharing the number of connections. The above-mentioned shared cache areas include HTML5 Web Storage, Cookie, Flash Share Object, etc. However, since the above-mentioned shared cache areas are basically formed based on the file system, most of them do not It can be recognized by different browsers. For example, if the buffer uses Cookie or Web Storage technology, these storages are strongly constrained by the same-origin policy of the browser, and the implementation solutions are all inside each browser, so it cannot Realize the sharing of browser data between multiple different brands; at the same time, because the buffer is a file-based data buffer, the access speed will be very slow; in addition, the size of the buffer is also limited. In order to protect the client's local The security of storage has restrictions on the capacity of local storage, generally no more than a few megabytes
[0004] Therefore, it can be seen from the above scenario that in the existing solution for realizing long-term connection sharing between multiple browsers, since the data cache area is based on the form of the file system, there is a problem that servers of different brands cannot be identified, and only Some servers cannot realize connection sharing between multiple browsers in the true sense. At the same time, there are problems such as slow cache access speed and limited buffer size, which will affect the number of browsers connected to the server and reduce the service efficiency of the server.

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
  • Method and device for connection sharing of browsers
  • Method and device for connection sharing of browsers
  • Method and device for connection sharing of browsers

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] This application provides a connection sharing method between browsers, specifically, such as figure 2 As shown, the method includes:

[0044] S102: The entity used to execute the script program in the current browser that has been opened preempts the same resource identifier, where the entity that preempts the resource identifier is the master entity, and other entities that have not preempted the resource identifier are the slave entities ; Preferably, the above entity may be a plug-in, functional module or hardware device that executes the Flash script program, or a plug-in, functional module or hardware device that executes other programs with the same function. Preferably, the above-mentioned plug-in and functional module may be Developed by a third party, and the hardware device may be a component in the terminal device running the browser, or a combination of several components.

[0045] S104, the main entity connects to the server;

[0046] S106: The slave entity sha...

Embodiment 2

[0055] On the basis of Embodiment 1, this application also provides a connection sharing device between browsers, specifically, such as image 3 , The device includes: a first judging unit 302 for judging whether the entity used to execute the script program in the currently opened browser is the main entity, wherein the entities in the opened current browser have the same resource identifier Perform preemption, the entity that preempts the resource identifier is the master entity, and other entities that have not preempted the resource identifier are slave entities; preferably, the above-mentioned entities can be plug-ins, functional modules or hardware devices that execute Flash script programs, or they can be Plug-ins, functional modules or hardware devices that execute other programs with the same function. Preferably, the aforementioned plug-ins and functional modules can be developed by a third party, and the hardware device can be a component of the terminal device running...

Embodiment 3

[0065] On the basis of the above-mentioned Embodiment 2, this application also provides a connection sharing device between browsers. Specifically, Picture 10 Shows the specific working mode of the device, in Picture 10 It can be seen that when the user opens multiple browsers, the entity used to execute the script program in each browser will compete for the resource identifier. There will always be only one entity that can successfully preempt, and this entity becomes the sending and receiving The main body of the message, and other entities communicate with this entity. This way all entities will share this connection to send and receive messages. Specifically, it includes the following steps:

[0066] The first step: preempt the resource identifier

[0067] Such as Picture 11 As shown in the normal process, the entity used to execute the script program in each browser will start a task. This task is used to try to preempt the resource identifier, using LocalConnection.conne...

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

The invention discloses a method and device for connection sharing of browsers. The method includes the steps that entities, for executing script programs, in each opened browser take over the same resource identifier, wherein entities which take over resource identifiers are main entities, and entities which can not take over resource identifiers are auxiliary entities, the main entities are connected with a server, and information transmission between the auxiliary entities and the server is achieved through sharing of connection between the main entities and the server. The method and device for connection sharing of the browsers solves the problems that in the prior art, due to limit of the size of a buffering zone, the number of browsers connected with the server is small, and service efficiency of the server is lowered, and the effect of connection sharing of long connection among browsers is achieved.

Description

Technical field [0001] This application relates to the field of Internet communications, and in particular, to a method and device for connection sharing between browsers. Background technique [0002] Web push technology has become popular. Now some large Internet companies have begun to apply this technology on a large scale. Representative technologies include WebSocket, Flash Socket and other technologies. Using Web push technology can break through the TCP (Transmission) that cannot be achieved by traditional HTTP. Control Protocol (Transmission Control Protocol) long connection, but it also introduces a new problem. This problem is that when a user opens multiple browsers, multiple browsers will initiate a long connection to the server. , And in many cases, it is very likely that multiple browsers are viewing different web pages of the same website, so the server needs to maintain the number of sockets several times the number of clients. Therefore, there is a problem of t...

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
IPC IPC(8): H04L29/08H04L12/18
Inventor 禹扬帆王鹏程
Owner ALIBABA GRP HLDG LTD