CN104462223A - Web browsing method and device based on peer-to-peer network model - Google Patents

Web browsing method and device based on peer-to-peer network model Download PDF

Info

Publication number
CN104462223A
CN104462223A CN201410633373.2A CN201410633373A CN104462223A CN 104462223 A CN104462223 A CN 104462223A CN 201410633373 A CN201410633373 A CN 201410633373A CN 104462223 A CN104462223 A CN 104462223A
Authority
CN
China
Prior art keywords
terminal device
management server
resource management
terminal
terminal equipment
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.)
Granted
Application number
CN201410633373.2A
Other languages
Chinese (zh)
Other versions
CN104462223B (en
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.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung Electronics 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 Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN201410633373.2A priority Critical patent/CN104462223B/en
Publication of CN104462223A publication Critical patent/CN104462223A/en
Application granted granted Critical
Publication of CN104462223B publication Critical patent/CN104462223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a web browsing method and device based on a peer-to-peer network model. The method comprises the steps that first terminal equipment receives a URL input through a browser, when a P2P model browsing instruction is selected, a service request is sent to a resource management server, and the resource management server is made to select second terminal equipment which provides service for the first terminal equipment; the first terminal equipment downloads webpage resource data according to the input URL, the webpage resource data are set to the second terminal equipment, and the second terminal equipment processes the webpage resource data to generate browser engine intermediate data which are returned to the first terminal equipment; when the first terminal equipment receives the browser engine intermediate data returned by the second terminal equipment, webpage rendering and displaying are conducted according to the browser engine intermediate data and the webpage resources. The internet surfing speed of low configuration terminal equipment is increased.

Description

A kind of Web browser method based on peer-to-peer network pattern and device
Technical field
The present invention relates to communication and browser engine technical field, particularly a kind of Web browser method based on peer-to-peer network pattern and device.
Background technology
Along with popularizing of network, the life of present network with people is closely bound up, and people, frequently by terminal device, comprise mobile phone, panel computer, computer and televisor etc. and surf the Net.
Present hardware advances is rapid, has emerged in large numbers large quantities of high configurating terminal devices, and these high-end devices have powerful computing power and sufficient storage space, can well meet the needs that user browses complicated webpage; But still there is a lot of low configurating terminal device still extensively exist and be frequently used.Low configurating terminal device online is experienced poor, if but the browser of low configurating terminal device connects high configurating terminal device with peer-to-peer network (P2P) pattern, utilize the powerful calculating ability of high configurating terminal device, just can improve the networking speed of low configurating terminal device.
In the prior art, terminal device browser is traditional desktop browsers structure, and terminal device is downloaded web page resources, then carries out DOM Tree parsing by core engine, and plays up to user.The configuration requirement of terminal device browser kernel engine to terminal device is high, and it is a lot of soon that the page display speed configuring high terminal device matches well the terminal device set low.
Summary of the invention
In view of this, the application provides a kind of Web browser method based on peer-to-peer network pattern and device, browses the slow-footed problem of webpage to solve low configurating terminal device.
For solving the problems of the technologies described above, the technical scheme of the application is achieved in that
Based on a Web browser method for Peer-to-Peer Network P2P pattern, the method comprises:
When first terminal equipment is moved in a LAN (Local Area Network), sends broadcast and find resource management server, if receive the response of resource management server in the first Preset Time, then register to described resource management server; Otherwise, establishing resource management server;
Described first terminal equipment receives the URL inputted by browser, and during the instruction selecting P2P pattern to browse, services request is sent to resource management server, make resource management server according to the benchmark ability of terminal device each in this LAN (Local Area Network) and load for described first terminal equipment choice provides the second terminal device of service, and response is to described first terminal equipment;
When described first terminal equipment receives the second terminal device of resource management server response, according to the URL downloading web pages resource data of input, and send to described second terminal device, described second terminal device is processed described web page resources data, generate browser engine intermediate data, and return to described first terminal equipment;
When described first terminal equipment receives the browser engine intermediate data that described second terminal device returns, carry out page rendering according to browser engine intermediate data and described web page resources and show.
Based on a web page browsing device for Peer-to-Peer Network P2P pattern, be applied on first terminal equipment, this device comprises: receiving element, transmitting element, processing unit;
Described receiving element, for receiving the response of resource management server; Receive instruction; Receive response; Receive browser engine intermediate data;
Described transmitting element, when the device for unit place is moved in a LAN (Local Area Network), sends broadcast and finds resource management server; When described receiving element receives the response of resource management server in the first Preset Time, register to described resource management server; When described receiving element receives the URL inputted by browser, and during the instruction selecting P2P pattern to browse, services request is sent to resource management server, make resource management server according to the benchmark ability of terminal device each in this LAN (Local Area Network) and load for this device selects to provide the second terminal device of service, and response is to this device;
Described processing unit, for working as described receiving element at the first Preset Time then, does not receive the response of resource management server, then establishing resource management server; When described receiving element receives the second terminal device of resource management server response, according to the URL downloading web pages resource data of input, and trigger described transmitting element and send to described second terminal device, described second terminal device is processed described web page resources data, generate browser engine intermediate data, and return to this device; When described receiving element receives the browser engine intermediate data that described second terminal device returns, carry out page rendering according to browser engine intermediate data and described web page resources and show.
From technical scheme above, in the application, low configurating terminal device browser is by the high configurating terminal device of the long-range connection of P2P pattern, utilize the powerful calculating ability of high configurating terminal, for low configurating terminal device provides service, to improve the networking speed of low configurating terminal device.
Accompanying drawing explanation
Fig. 1 is the Web browser method schematic flow sheet based on P2P pattern in the embodiment of the present application;
Fig. 2 is the apparatus structure schematic diagram being applied to above-mentioned technology in the embodiment of the present application.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with accompanying drawing and according to embodiment, technical scheme of the present invention is described in detail.
A kind of Web browser method based on P2P pattern is provided in the embodiment of the present application, low configurating terminal device browser is by the high configurating terminal device of the long-range connection of P2P pattern, utilize the powerful calculating ability of high configurating terminal, for low configurating terminal device provides service, to improve the networking speed of low configurating terminal device.
The application is when the web page browsing of specific implementation based on P2P pattern, for in a LAN (Local Area Network) when there being terminal device to move into, a resource management server need be created, which determined by high configurating terminal device for low configurating terminal device provides service by the resource management server created, during specific implementation, can be high configurating terminal device or low configurating terminal device by benchmark ability label terminal device.
Resource management server in the embodiment of the present application is a software service, if any one terminal device creates resource management server on this equipment, then while serving as the role of terminal device, also serves as the role of resource management server.
The process determined by which terminal device establishing resource management server is described below in detail:
When first terminal equipment is moved in a LAN (Local Area Network), sends broadcast and find resource management server, if receive the response of resource management server, then register to described resource management server; Otherwise, establishing resource management server.
If first terminal equipment is first when entering this LAN (Local Area Network), after sending broadcast, the response of resource management server can not be obtained, so first terminal equipment establishing resource management server on this equipment, wait for that other-end equipment moves in this LAN (Local Area Network).Wherein, the benchmark ability of this terminal device is carried in the broadcast of transmission.
If when first terminal equipment is not the terminal device of first this LAN (Local Area Network) of immigration, the response of the terminal device of establishing resource management server can be obtained, and registers to resource management server.
Each terminal in LAN (Local Area Network) also needs periodically the load of self to be sent to resource management server, resource management server upgrades the load of each terminal device of local record, so that the high and terminal device that load is light of resource management server option and installment provides service for the terminal device of low configuration.
The terminal device of establishing resource management server, is assumed to be first terminal equipment, and when receiving the discovery message of the new terminal device transmission moved into, the terminal device to this new immigration responds.
First terminal equipment also records the benchmark ability finding to send the terminal device of this discovery message in message, and determine whether the terminal device that the benchmark ability of registered terminal equipment is the highest is this terminal device (first terminal equipment), whether the benchmark ability namely determining newly to move into the terminal device of described LAN (Local Area Network) is less than the benchmark ability of this mobile terminal device; If so, remain unchanged; Otherwise, notify the terminal device establishing resource management server of described new immigration, and notify that other-end equipment resource management server changes.
First terminal equipment notifies the terminal device establishing resource management server of described new immigration, and notifies that other-end equipment resource management server changes, specifically comprises:
First terminal equipment notifies the terminal device establishing resource management server of described new immigration, after the terminal device establishing resource management server of described new immigration completes, the other-end equipment resource management server that the terminal device of first terminal equipment and described new immigration all sends in broadcast notice LAN (Local Area Network) changes, must rediscover resource management server and register.
First terminal equipment now using self as backup resource managing server, also can not be re-used as the role of resource management server, deletes the resource management server created.
If after a period of time, the terminal device of described new immigration shifts out this LAN (Local Area Network), and each terminal device needs to rediscover resource management server.
If the terminal device of non-establishing resource management server shifts out this LAN (Local Area Network), the relevant information shifting out the terminal device of this LAN (Local Area Network) deleted by the terminal device of establishing resource management server.
If mobile terminal device is as the role of backup resource managing server, as its role again as resource management server, directly activate the local resource management server created.
Concrete example describes establishment and the change of resource management server in detail below:
Suppose that terminal device A, terminal device B, terminal device C and terminal device B move into LAN (Local Area Network) 1 successively, wherein, the benchmark ability of terminal device B is greater than terminal device A, terminal device C and terminal device D.
Terminal device A is moved in LAN (Local Area Network) 1, sends broadcast, find resource management server, but the first Preset Time does not receive any response.So it oneself is first terminal device entering into LAN (Local Area Network) that terminal device A thinks, establishing resource management server Ra, waits for the arrival of other terminal device.
Terminal device B is moved into this LAN (Local Area Network), and send broadcast, resource management server Ra has responded broadcast, and terminal device B registers to Ra.Ra finds that the benchmark ability of terminal device B is greater than terminal device A, so notification terminal equipment B establishing resource management server Rb.After Rb creates, Ra and Rb sends broadcast notice resource management server simultaneously and changes, and terminal device A and B re-registers self to resource management server Rb.Ra on terminal device A, as backup resource managing server, suspends messaging, also directly can delete this resource management server Ra.
Terminal device C is moved into this LAN (Local Area Network), and send broadcast, resource management server Rb has responded broadcast, and terminal device C registers to Rb.Rb finds that the benchmark ability of terminal device C is less than the benchmark ability of terminal device B, then do not need to change resource management server.
Terminal device D is moved into this LAN (Local Area Network), and send broadcast, resource management server Rb has responded broadcast, and terminal device D registers to Rb.Rb finds that the benchmark ability of terminal device D is less than terminal device B, then do not need to change resource management server.
Terminal device A, B, C, D periodically upgrade self loading condition to resource management server Rb.
If terminal device B has shifted out this LAN (Local Area Network), the disconnecting of resource management server Rb and terminal device A, C, D.Terminal device A, C, D send broadcast respectively and find resource management server.Owing to comprising the benchmark ability of terminal device self in broadcast, through after a period of time, all terminal devices can both understand the benchmark ability of other terminal device.Now, suppose that the benchmark ability determining terminal device A is maximum, if terminal device A exists backup resource managing server, then reactivate resource management server; Terminal device A, C, D register self to Ra.If terminal device A does not exist backup resource managing server, then direct establishing resource management server, terminal device A, C, D register self to Ra.
Suppose that terminal device C has shifted out this LAN (Local Area Network).Resource management server Ra finds to lose with the connection of terminal device C, the relevant information of terminal device C is deleted.
See the Web browser method schematic flow sheet that Fig. 1, Fig. 1 are based on P2P pattern in the embodiment of the present application.Concrete steps are:
Step 101, first terminal equipment receives URL(uniform resource locator) (the UniformResource Locator inputted by browser, URL), and during the instruction selecting P2P pattern to browse, services request is sent to resource management server, make resource management server according to the benchmark ability of terminal device each in this LAN (Local Area Network) and load for described first terminal equipment choice provides the second terminal device of service, and response is to described first terminal equipment.
In this step, resource management server provides the second terminal device of service according to the benchmark ability of terminal device each in this LAN (Local Area Network) and load for described first terminal equipment choice, specifically comprises:
Resource management server selects the terminal device that in this LAN (Local Area Network), benchmark ability is the highest, if the load of this terminal device is less than Second Threshold, then responds to described third terminal equipment by terminal device the highest for benchmark ability; Otherwise, select the terminal device of secondary high benchmark ability, and determine whether its load is less than Second Threshold, repeat until select terminal device and respond to described third terminal equipment; Or until the load of the minimum terminal device of benchmark ability is not less than Second Threshold, and there is not to described third terminal device responds the terminal device that service is provided.
Therefore, in the application's specific embodiment, resource management server is selected to provide the principle of the terminal device of service to be that selection reference computing power is high, and load is not carried out service higher than the terminal device of Second Threshold and provided.
Step 102, when first terminal equipment receives the second terminal device of resource management server response, according to the URL downloading web pages resource data of input, and send to described second terminal device, make described second terminal device carry out process to described web page resources data and generate browser engine intermediate data, and return to described first terminal equipment.
When in this step, first terminal equipment receives the second terminal device of resource management server response, before the described URL downloading web pages resource data according to input, described method comprises further:
First terminal equipment sends the request providing the mode of operation of service to the second terminal device, make described second terminal device when determining that the benchmark ability of described first terminal equipment is greater than first threshold, to the mode of operation of described first terminal device responds collaborative work; Otherwise, to the mode of operation of described second terminal device response Full Proxy; Wherein, when first terminal equipment provides the request of the mode of operation of service to the second terminal device transmission, the benchmark ability of this terminal device is carried.
When first terminal equipment receives the mode of operation of described second terminal device response, determine whether the mode of operation responded is cooperative work mode, if so, perform the described URL downloading web pages resource data according to input and subsequent step; Otherwise, use Full Proxy mode of operation to carry out web page browsing.
In the specific embodiment that the application provides, the threshold value that the benchmark ability of the terminal device providing the terminal device of service to be served by comparison of request and resource management server are configured, determine the mode of operation that service is provided, the mode of operation of service can certainly be pre-configuredly provided, just determine to provide this mode of the mode of operation of service more flexible by the threshold value of configuration, also can make full use of the computing power of the terminal device needing to provide service, and alleviate the load of the terminal device that service is provided.
Step 103, when first terminal equipment receives the browser engine intermediate data that described second terminal device returns, carries out page rendering according to browser engine intermediate data and described web page resources and shows.
First terminal equipment is when receiving user operation instruction, after being converted to corresponding order, determine that whether this order is relevant to browser engine, if, send to described second terminal device, described second terminal device is processed according to the order sent and the front web page resources data once sent, generates browser engine intermediate data, and return to described first terminal equipment; Otherwise, in this locality, this order is processed.
During specific implementation,
When first terminal equipment receives the browser engine intermediate data that described second terminal device returns, carry out page rendering according to browser engine intermediate data and the local web page resources downloaded and show.
The web page browsing how the application to realize based on P2P pattern is described in detail below in conjunction with specific embodiment.
Suppose to there is terminal device A, terminal device B, terminal device C and terminal device D in a LAN (Local Area Network).The benchmark ability of terminal device A is greater than terminal device C, the benchmark ability of terminal device C is greater than terminal device D, the benchmark ability of terminal device D is greater than terminal device B, and the load of terminal device A is greater than Second Threshold, the load of terminal device C and terminal device D is less than Second Threshold; Terminal device A, as the host of resource management server, namely terminal device A creates resource management server, and terminal device B needs other-end equipment to provide service.
Terminal device B sends services request to terminal device A.
When terminal device A receives the services request of terminal device A transmission, determine that the terminal device that benchmark ability is the highest is terminal device A, but the load of terminal device A is greater than Second Threshold; Selection reference computing power time high terminal device is terminal device C, and the load of terminal device C is less than Second Threshold, therefore, provides service to terminal device B response terminal equipment C for it.
When terminal device B receives the terminal device C of terminal device A response, send the request that the mode of operation of service is provided to terminal device C.
When what terminal device C received that terminal device B sends provides the request of the mode of operation of service, determine whether the benchmark ability of terminal device B is less than the first threshold of local configuration, if so, the mode of operation responded to terminal device B is the mode of operation of Full Proxy; Otherwise the mode of operation responded to terminal device B is the mode of operation of collaborative work.
When terminal device B receives the mode of operation of terminal device C reception response, if determine, this mode of operation is the mode of operation of collaborative work, performs the first step; If determine, this mode of operation is the mode of operation of Full Proxy, performs second step.
The first step specifically comprises as follows:
Terminal device B according to the URL downloading web pages resource data of input, and sends to terminal device C.
In the process sent, in order to safety, send again after can also being encrypted the web page resources data of starting, make terminal device C after decryption, then carry out the process of data.
Terminal device C, when receiving the web page resources data that terminal device B sends, carries out process to described web page resources data and generates browser engine intermediate data, and return to terminal device B.
Terminal device C specifically comprises the process that the web page resources data received are carried out: resolve web page resources data, calculate hierarchical relationship and the typesetting location of each DOM element, and perform the process such as Javescript script, generate the browse engine intermediate data such as dom tree, RenderLayer tree, the instruction loading new resources, internal state and synchronizing information.
When browser engine intermediate data is returned to terminal device B by terminal device C, return after also can encrypting.
After terminal device B receives the browse engine intermediate data that terminal device C returns, carry out page rendering according to described browse engine intermediate data and the local web page resources data downloaded and show.
If terminal device B receives user operation instruction, then, after being converted to corresponding order, send to terminal device C.
After terminal device C receives the order of terminal device B transmission, carry out process according to this order and the front web page resources data once sent and generate browser engine intermediate data, and return to terminal device B;
When terminal device B receives the browser engine intermediate data that terminal device C returns, carry out page rendering according to browser engine intermediate data and the local web page resources downloaded and show.
When the user operation received instruction is converted to the corresponding command by terminal device B, can determines that whether this order is relevant to browser engine, if so, terminal device C can be sent to; Otherwise, at processing locality.
As, user operation is designated as, the blank space of webpage clicking, then this operation instruction is converted to the corresponding command by terminal device B, determines that it is uncorrelated with browser engine, then can not send to terminal device C, process in this locality.If user operation is designated as clickthrough A, when terminal device A is converted to corresponding order " open link A ", determines relevant to browser engine, then send to terminal device C.
When terminal device B execution login browser account number (instead of account of Website login) operates, username and password directly sends to server and can not send to terminal device C.
Terminal device B edits and removes historical record, and this operation can not send to terminal device C.
Second step specifically comprises as follows:
URL is directly sent to terminal device C by terminal device B.
Terminal device C, when receiving the URL that terminal device B sends, according to this URL downloading web pages resource data, completes the typesetting of webpage according to these web page resources data and the Web page image data after playing up send to terminal device B.
The Web page image data that terminal device B receives terminal device C transmission directly carry out showing.
By the realization of technique scheme, a terminal device may provide service for plural terminal device, and when there being configuration higher, and load lighter terminal device is when moving into this LAN (Local Area Network), load balancing can be carried out, in order to realize load balancing, which terminal device which terminal device resource management server just need to record for provides service, and concrete load balancing realizes as follows:
First terminal equipment is as when providing the terminal device of service, and the terminal device that described in notice resource management server, first terminal equipment is request service provides service;
When not receiving the request of the terminal device of request service in Preset Time, release browser engine resource, and notify that resource management server upgrades described first terminal equipment not for the terminal device of described request service provides service.
If first terminal equipment establishing resource server, and have recorded the 4th terminal device for two or more terminal device service is provided time, add when there being new terminal device in described LAN (Local Area Network), the benchmark ability of the described terminal device newly added is greater than the 3rd threshold value, and load is when being less than the 4th threshold value, in the terminal device of service the terminal device that provides making the described terminal device newly added be described 4th terminal device provides service.
Below in conjunction with specific embodiment, describe the application in detail and how to realize load balancing:
Suppose have local terminal L1 and L2 to be connected to RTU (remote terminal unit) H1.A new terminal device H2 is now had to be moved into LAN (Local Area Network).The benchmark ability of terminal device H2 is greater than the 3rd threshold value, and load is less than the 4th threshold value.
Resource management server place terminal device finds the heavier and service not only local terminal of H1 present load, and H2 load is comparatively light and when not having corresponding local terminal, resource management server sends transfer service device advice message to local terminal L1 and L2 be connected on H1 simultaneously.
Suppose that first local terminal L1 receives transfer service device advice message, send new request to RTU (remote terminal unit) before, again send services request to resource management server request.
Resource management server sends the message of recommending RTU (remote terminal unit) H2 to local terminal L1.
The service that local terminal L1 brings into use RTU (remote terminal unit) H2 to provide.Now, local terminal L1 can't cut off the existing connection with RTU (remote terminal unit) H1, but the data of all new sessions can be issued H2.Local terminal L1 just can cut off the connection with H1 after will by the time utilizing the session of RTU (remote terminal unit) H1 process all to stop.
Suppose that local terminal L2 is also have received transfer service device advice message after a while, also can send services request to resource management server again.
Resource management server, according in the same time period, only can be agreed to the principle of the request of the transfer service device of a local terminal, can not dispatch local terminal L2 and also use RTU (remote terminal unit) H2.So resource management server is again to terminal device L2 response terminal equipment H1.
Local terminal L2 finds that the RTU (remote terminal unit) that resource management server provides is exactly the current RTU (remote terminal unit) H1 used, and continues the service using terminal device H1 to provide.
Based on same inventive concept, the application also proposes a kind of web page browsing device based on P2P pattern, is applied on first terminal equipment.It is the apparatus structure schematic diagram being applied to above-mentioned technology in the embodiment of the present application see Fig. 2, Fig. 2.This device comprises: receiving element 201, transmitting element 202, processing unit 203;
Receiving element 201, for receiving the response of resource management server; Receive instruction; Receive response; Receive browser engine intermediate data;
Transmitting element 202, when the device for unit place is moved in a LAN (Local Area Network), sends broadcast and finds resource management server; When receiving element 201 receives the response of resource management server in the first Preset Time, register to described resource management server; When receiving element 201 receives the URL inputted by browser, and during the instruction selecting P2P pattern to browse, services request is sent to resource management server, make resource management server according to the benchmark ability of terminal device each in this LAN (Local Area Network) and load for this device selects to provide the second terminal device of service, and response is to this device;
Described processing unit, for working as receiving element 201 at the first Preset Time then, does not receive the response of resource management server, then establishing resource management server; When receiving element 201 receives the second terminal device of resource management server response, according to the URL downloading web pages resource data of input, and trigger transmitting element 202 and send to described second terminal device, described second terminal device is processed described web page resources data, generate browser engine intermediate data, and return to this device; When receiving element 201 receives the browser engine intermediate data that described second terminal device returns, carry out page rendering according to browser engine intermediate data and described web page resources and show.
Preferably,
Transmitting element 202, be further used for receiving element 201 receive resource management server response the second terminal device time, the request that the mode of operation of service is provided is sent to described second terminal device, make described second terminal device when determining that the benchmark ability of described first terminal equipment is greater than first threshold, to the mode of operation of described first terminal device responds collaborative work; Otherwise, to the mode of operation of described second terminal device response Full Proxy;
Receiving element 201, is further used for the mode of operation receiving described second terminal device response;
Processing unit 203, be further used for when receiving element 201 receives the mode of operation of described second terminal device response, determine whether the mode of operation responded is cooperative work mode, if so, perform the described URL downloading web pages resource data according to input and subsequent operation; Otherwise, use Full Proxy mode of operation to carry out web page browsing.
Preferably,
Receiving element 201, is further used for receiving user operation instruction;
Processing unit 203, be further used for when receiving element 201 receives user operation instruction, after being converted to corresponding order, determine that whether this order is relevant to browser engine, if so, trigger transmitting element 202 and this instruction is sent to described second terminal device, described second terminal device is processed according to the order sent and the front web page resources data once sent, generate browser engine intermediate data, and return to this device; Otherwise, in this locality, this order is processed.
Preferably,
Receiving element 201, if be further used for this unit place device establishing resource management server, then receives services request;
Processing unit 203, be further used for when receiving the services request that third terminal equipment sends, select the terminal device that in this LAN (Local Area Network), benchmark ability is the highest, if the load of this terminal device is less than Second Threshold, then triggers transmitting element 202 and terminal device the highest for benchmark ability is responded to described third terminal equipment; Otherwise, select the terminal device of time high benchmark ability, and determine whether its load is less than the first preset value, repeat until select terminal device and trigger transmitting element 202 and respond to described third terminal equipment; Or until the load of the minimum terminal device of benchmark ability is not less than Second Threshold, and triggers transmitting element 202 and there is not to described third terminal device responds the terminal device that service is provided.
Preferably,
Transmitting element 202, be further used for this device as when providing the terminal device of service, the terminal device that this device of notice resource management server is request service provides service;
Processing unit 203, when being further used for the request of the terminal device not receiving request service in the second Preset Time, release browser engine resource, and trigger transmitting element 202 and notify that resource management server upgrades this device not for the terminal device of described request service provides service.
Preferably,
Processing unit 203, if be further used for this device establishing resource server, and have recorded the 4th terminal device for two or more terminal device service is provided time, add when there being new terminal device in described LAN (Local Area Network), the benchmark ability of the described terminal device newly added is greater than the 3rd threshold value, and load is when being less than the 4th threshold value, in the terminal device of service the terminal device that provides making the described terminal device newly added be described 4th terminal device provides service.
Preferably,
Receiving element 201, if be further used for this device establishing resource management server, receives broadcast; Receive the load that each terminal device sends; Receive registration message;
Transmitting element 202, if be further used for this device establishing resource management server, when receiving element 201 receives the broadcast of other-end equipment transmission, sends response message to this terminal;
Processing unit 203, is further used for, when receiving element 201 receives the load of transmission of each terminal device cycle, upgrading the load of each terminal device of local record; When receiving element 201 receives registration message, the benchmark ability of the terminal device of this registration message is sent in record registration message, the terminal device that in registered terminal equipment, computing power is the highest if determine is not described first terminal equipment, then trigger transmitting element 202 and notify the terminal device establishing resource management server that computing power is the highest, and notify that other-end equipment resource management server changes.
Preferably,
Processing unit 203, if be further used for this device establishing resource management server, finds that there is terminal when shifting out described LAN (Local Area Network), deletes the relevant information shifting out the terminal device of this LAN (Local Area Network); If the non-establishing resource management server of this device, when the terminal device of establishing resource management server shifts out described LAN (Local Area Network), re-starts the discovery of resource management server.
The unit of above-described embodiment can be integrated in one, and also can be separated deployment; A unit can be merged into, also can split into multiple subelement further.
In sum, the application by the high configurating terminal device of the long-range connection of P2P pattern, utilizes the powerful calculating ability of high configurating terminal, for low configurating terminal device provides service, to improve the networking speed of low configurating terminal device by low configurating terminal device browser.
During the application's specific implementation, be also defined as low mode of operation of joining Terminal for service according to the benchmark ability of low configurating terminal, service can be provided for low configurating terminal, not waste again the resource of low configurating terminal.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (16)

1. based on a Web browser method for Peer-to-Peer Network P2P pattern, it is characterized in that, the method comprises:
When first terminal equipment is moved in a LAN (Local Area Network), sends broadcast and find resource management server, if receive the response of resource management server in the first Preset Time, then register to described resource management server; Otherwise, establishing resource management server;
Described first terminal equipment receives the uniform resource position mark URL inputted by browser, and during the instruction selecting P2P pattern to browse, services request is sent to resource management server, make resource management server according to the benchmark ability of terminal device each in this LAN (Local Area Network) and load for described first terminal equipment choice provides the second terminal device of service, and response is to described first terminal equipment;
When described first terminal equipment receives the second terminal device of resource management server response, according to the URL downloading web pages resource data of input, and send to described second terminal device, described second terminal device is processed described web page resources data, generate browser engine intermediate data, and return to described first terminal equipment;
When described first terminal equipment receives the browser engine intermediate data that described second terminal device returns, carry out page rendering according to browser engine intermediate data and described web page resources and show.
2. method according to claim 1, is characterized in that,
When described first terminal equipment receives the second terminal device of resource management server response, before the described URL downloading web pages resource data according to input, described method comprises further:
Described first terminal equipment sends to described second terminal device the request providing the mode of operation of service, make described second terminal device when determining that the benchmark ability of described first terminal equipment is greater than first threshold, to the mode of operation of described first terminal device responds collaborative work; Otherwise, to the mode of operation of described second terminal device response Full Proxy;
When described first terminal equipment receives the mode of operation of described second terminal device response, determine whether the mode of operation responded is cooperative work mode, if so, perform the described URL downloading web pages resource data according to input and subsequent step; Otherwise, use Full Proxy mode of operation to carry out web page browsing.
3. method according to claim 1, is characterized in that, described method comprises further:
Described first terminal equipment is when receiving user operation instruction, after being converted to corresponding order, determine that whether this order is relevant to browser engine, if, send to described second terminal device, described second terminal device is processed according to the order sent and the front web page resources data once sent, generates browser engine intermediate data, and return to described first terminal equipment; Otherwise, in this locality, this order is processed.
4. method according to claim 1, is characterized in that, described method comprises further:
If described first terminal equipment establishing resource management server, then when receiving the services request that third terminal equipment sends, select the terminal device that in this LAN (Local Area Network), benchmark ability is the highest, if the load of this terminal device is less than Second Threshold, then terminal device the highest for benchmark ability is responded to described third terminal equipment; Otherwise, select the terminal device of secondary high benchmark ability, and determine whether its load is less than the first preset value, repeat until select terminal device and respond to described third terminal equipment; Or until the load of the minimum terminal device of benchmark ability is not less than Second Threshold, and there is not to described third terminal device responds the terminal device that service is provided.
5. method according to claim 1, is characterized in that,
Described first terminal equipment is as when providing the terminal device of service, and the terminal device that described in notice resource management server, first terminal equipment is request service provides service;
When not receiving the request of the terminal device of request service in the second Preset Time, release browser engine resource, and notify that resource management server upgrades described first terminal equipment not for the terminal device of described request service provides service.
6. method according to claim 5, is characterized in that, described method comprises further:
If described first terminal equipment establishing resource server, and have recorded the 4th terminal device for two or more terminal device service is provided time, add when there being new terminal device in described LAN (Local Area Network), the benchmark ability of the described terminal device newly added is greater than the 3rd threshold value, and load is when being less than the 4th threshold value, in the terminal device of service the terminal device that provides making the described terminal device newly added be described 4th terminal device provides service.
7. the method according to claim 1-6 any one, is characterized in that,
If described first terminal equipment establishing resource management server, when receiving the broadcast that other-end equipment sends, send response message to this terminal; When receiving the load of transmission of each terminal device cycle, upgrade the load of each terminal device of local record;
When receiving registration message, the benchmark ability of the terminal device of this registration message is sent in record registration message, the terminal device that in registered terminal equipment, computing power is the highest if determine is not described first terminal equipment, then notify the terminal device establishing resource management server that computing power is the highest, and notify that other-end equipment resource management server changes.
8. method according to claim 7, is characterized in that,
If first terminal equipment establishing resource management server, find that there is terminal when shifting out described LAN (Local Area Network), delete the relevant information shifting out the terminal device of this LAN (Local Area Network);
If the non-establishing resource management server of described first terminal equipment, when the terminal device of establishing resource management server shifts out described LAN (Local Area Network), re-starts the discovery of resource management server.
9. based on a web page browsing device for Peer-to-Peer Network P2P pattern, be applied on first terminal equipment, it is characterized in that, this device comprises: receiving element, transmitting element, processing unit;
Described receiving element, for receiving the response of resource management server; Receive instruction; Receive response; Receive browser engine intermediate data;
Described transmitting element, when the device for unit place is moved in a LAN (Local Area Network), sends broadcast and finds resource management server; When described receiving element receives the response of resource management server in the first Preset Time, register to described resource management server; When described receiving element receives the uniform resource position mark URL inputted by browser, and during the instruction selecting P2P pattern to browse, services request is sent to resource management server, make resource management server according to the benchmark ability of terminal device each in this LAN (Local Area Network) and load for this device selects to provide the second terminal device of service, and response is to this device;
Described processing unit, for working as described receiving element at the first Preset Time then, does not receive the response of resource management server, then establishing resource management server; When described receiving element receives the second terminal device of resource management server response, according to the URL downloading web pages resource data of input, and trigger described transmitting element and send to described second terminal device, described second terminal device is processed described web page resources data, generate browser engine intermediate data, and return to this device; When described receiving element receives the browser engine intermediate data that described second terminal device returns, carry out page rendering according to browser engine intermediate data and described web page resources and show.
10. device according to claim 9, is characterized in that,
Described transmitting element, be further used for described receiving element receive resource management server response the second terminal device time, the request that the mode of operation of service is provided is sent to described second terminal device, make described second terminal device when determining that the benchmark ability of described first terminal equipment is greater than first threshold, to the mode of operation of described first terminal device responds collaborative work; Otherwise, to the mode of operation of described second terminal device response Full Proxy;
Described receiving element, is further used for the mode of operation receiving described second terminal device response;
Described processing unit, be further used for when described receiving element receives the mode of operation of described second terminal device response, determine whether the mode of operation responded is cooperative work mode, if so, perform the described URL downloading web pages resource data according to input and subsequent operation; Otherwise, use Full Proxy mode of operation to carry out web page browsing.
11. devices according to claim 9, is characterized in that,
Described receiving element, is further used for receiving user operation instruction;
Described processing unit, be further used for when described receiving element receives user operation instruction, after being converted to corresponding order, determine that whether this order is relevant to browser engine, if so, trigger described transmitting element and this instruction is sent to described second terminal device, described second terminal device is processed according to the order sent and the front web page resources data once sent, generate browser engine intermediate data, and return to this device; Otherwise, in this locality, this order is processed.
12. devices according to claim 9, is characterized in that,
Described receiving element, if be further used for this unit place device establishing resource management server, then receives services request;
Described processing unit, be further used for when receiving the services request that third terminal equipment sends, select the terminal device that in this LAN (Local Area Network), benchmark ability is the highest, if the load of this terminal device is less than Second Threshold, then triggers described transmitting element and terminal device the highest for benchmark ability is responded to described third terminal equipment; Otherwise, select the terminal device of time high benchmark ability, and determine whether its load is less than the first preset value, repeat until select terminal device and trigger described transmitting element and respond to described third terminal equipment; Or until the load of the minimum terminal device of benchmark ability is not less than Second Threshold, and triggers described transmitting element and there is not to described third terminal device responds the terminal device that service is provided.
13. devices according to claim 9, is characterized in that,
Described transmitting element, be further used for this device as when providing the terminal device of service, the terminal device that this device of notice resource management server is request service provides service;
Described processing unit, when being further used for the request of the terminal device not receiving request service in the second Preset Time, release browser engine resource, and trigger described transmitting element notice resource management server and upgrade this device not for the terminal device of described request service provides service.
14. devices according to claim 13, is characterized in that,
Described processing unit, if be further used for this device establishing resource server, and have recorded the 4th terminal device for two or more terminal device service is provided time, add when there being new terminal device in described LAN (Local Area Network), the benchmark ability of the described terminal device newly added is greater than the 3rd threshold value, and load is when being less than the 4th threshold value, in the terminal device of service the terminal device that provides making the described terminal device newly added be described 4th terminal device provides service.
15. devices according to claim 9-14 any one, is characterized in that,
Described receiving element, if be further used for this device establishing resource management server, receives broadcast; Receive the load that each terminal device sends; Receive registration message;
Described transmitting element, if be further used for this device establishing resource management server, when described receiving element receives the broadcast of other-end equipment transmission, sends response message to this terminal;
Described processing unit, is further used for, when described receiving element receives the load of transmission of each terminal device cycle, upgrading the load of each terminal device of local record; When described receiving element receives registration message, the benchmark ability of the terminal device of this registration message is sent in record registration message, the terminal device that in registered terminal equipment, computing power is the highest if determine is not described first terminal equipment, then trigger the terminal device establishing resource management server that described transmitting element notice computing power is the highest, and notify that other-end equipment resource management server changes.
16. devices according to claim 15, is characterized in that,
Described processing unit, if be further used for this device establishing resource management server, finds that there is terminal when shifting out described LAN (Local Area Network), deletes the relevant information shifting out the terminal device of this LAN (Local Area Network); If the non-establishing resource management server of this device, when the terminal device of establishing resource management server shifts out described LAN (Local Area Network), re-starts the discovery of resource management server.
CN201410633373.2A 2014-11-11 2014-11-11 A kind of Web browser method and device based on peer-to-peer network pattern Active CN104462223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410633373.2A CN104462223B (en) 2014-11-11 2014-11-11 A kind of Web browser method and device based on peer-to-peer network pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410633373.2A CN104462223B (en) 2014-11-11 2014-11-11 A kind of Web browser method and device based on peer-to-peer network pattern

Publications (2)

Publication Number Publication Date
CN104462223A true CN104462223A (en) 2015-03-25
CN104462223B CN104462223B (en) 2018-10-16

Family

ID=52908259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410633373.2A Active CN104462223B (en) 2014-11-11 2014-11-11 A kind of Web browser method and device based on peer-to-peer network pattern

Country Status (1)

Country Link
CN (1) CN104462223B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115576516A (en) * 2022-12-12 2023-01-06 深圳开鸿数字产业发展有限公司 Image synthesis method, image synthesis system, electronic device, and storage medium
CN115828007A (en) * 2022-11-21 2023-03-21 上海秉匠信息科技有限公司 Page display method, device, system, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1568047A (en) * 2003-07-10 2005-01-19 华为技术有限公司 A method for implementing network side and terminal side service adaptation
US6975613B1 (en) * 1999-12-06 2005-12-13 Telefonaktiebolaget L M Ericsson (Publ) System and method for scheduling communication sessions in an ad-hoc network
CN101146356A (en) * 2007-10-12 2008-03-19 华为技术有限公司 A message processing method and device
CN102594883A (en) * 2012-02-09 2012-07-18 中兴通讯股份有限公司 Method and system for determining business operation mode

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6975613B1 (en) * 1999-12-06 2005-12-13 Telefonaktiebolaget L M Ericsson (Publ) System and method for scheduling communication sessions in an ad-hoc network
CN1568047A (en) * 2003-07-10 2005-01-19 华为技术有限公司 A method for implementing network side and terminal side service adaptation
CN101146356A (en) * 2007-10-12 2008-03-19 华为技术有限公司 A message processing method and device
CN102594883A (en) * 2012-02-09 2012-07-18 中兴通讯股份有限公司 Method and system for determining business operation mode

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115828007A (en) * 2022-11-21 2023-03-21 上海秉匠信息科技有限公司 Page display method, device, system, electronic equipment and medium
CN115828007B (en) * 2022-11-21 2023-08-04 上海秉匠信息科技有限公司 Page display method, device and system, electronic equipment and medium
CN115576516A (en) * 2022-12-12 2023-01-06 深圳开鸿数字产业发展有限公司 Image synthesis method, image synthesis system, electronic device, and storage medium

Also Published As

Publication number Publication date
CN104462223B (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN104102537B (en) A kind of application call method and user terminal
CN104202360B (en) The method of accessed web page, device and router
CN102129378B (en) A kind of software menu updating method and device
CN102654885B (en) Mobile terminal webpage adaptation system and method
JP5489807B2 (en) Information processing apparatus, form data creation method, and computer program
CN103729425B (en) Operate response method, client, browser and system
CN101039309B (en) Link sharing service apparatus and communication method thereof
CN104572843B (en) The loading method and device of a kind of page
CN102752369B (en) The supplying method of TV applications service and virtual content service platform
CN105897888B (en) Client connection method and system
CN104468852A (en) Method, device and system for client to select IP link address
KR20030065406A (en) Information providing method, server, program, and storage medium
WO2015116863A1 (en) Private cloud connected device cluster architecture
CN102917061A (en) Resource synchronization method and system
CN103902616A (en) Method, device and system for pushing webpage application messages
US9876776B2 (en) Methods for generating and publishing a web site based on selected items and devices thereof
CN102904960A (en) Information synchronizing system and method based on really simple syndication (RSS)
CN102510410A (en) On-line advertisement delivering method and system as well as advertisement control equipment
CN103312489A (en) Method and device for synchronizing terminal and server
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN103716230A (en) Message sending method, device and server
CN104615597A (en) Method, device and system for clearing cache file in browser
CN106302641B (en) A kind of methods, devices and systems of upper transmitting file
CN102004729A (en) Method and system for showing website webpage and website server
CN104462223A (en) Web browsing method and device based on peer-to-peer network model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant