CN103873515B - The method and electronic equipment of information processing - Google Patents

The method and electronic equipment of information processing Download PDF

Info

Publication number
CN103873515B
CN103873515B CN201210541391.9A CN201210541391A CN103873515B CN 103873515 B CN103873515 B CN 103873515B CN 201210541391 A CN201210541391 A CN 201210541391A CN 103873515 B CN103873515 B CN 103873515B
Authority
CN
China
Prior art keywords
web
proxy module
electronic equipment
web server
access requests
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.)
Active
Application number
CN201210541391.9A
Other languages
Chinese (zh)
Other versions
CN103873515A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210541391.9A priority Critical patent/CN103873515B/en
Publication of CN103873515A publication Critical patent/CN103873515A/en
Application granted granted Critical
Publication of CN103873515B publication Critical patent/CN103873515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses the method and electronic equipment of a kind of information processing, the electronic equipment has the first WEB server proxy module, obtains the first WEB access requests of the first browser in first electronic equipment;When receiving the first WEB access requests, the first server IP address information of the first WEB server corresponding with the first WEB access requests is obtained;Based on the first server IP address information, the first WEB client side proxy module the first WEB access requests being sent in first WEB server;Receive the first data obtained from the first WEB client side proxy module based on the first WEB access requests;First data sending is given to first browser, so that first data are shown by first browser on the display unit of first electronic equipment.

Description

The method and electronic equipment of information processing
Technical field
The present invention relates to the method and electronic equipment of field of computer technology, more particularly to a kind of information processing.
Background technology
With the continuous development of scientific technology, electronic technology has also obtained development at full speed, and the species of electronic product is also got over Come more, people have also enjoyed the various facilities that scientific development is brought.Present people can be set by various types of electronics It is standby, enjoy the comfortable life brought with scientific development.For example, people can by the electronic equipment of such as computer, mobile phone etc. come Webpage is browsed, the various information provided on webpage are provided, such as word, image or other information on webpage etc., from And it is recognized that news both domestic and external, study to more knowledge etc..
Existing electronic equipment browses webpage by browser, and the content in the webpage that browser browses takes for WEB Business device owns, and browser and the WEB server are realized by the http protocol based on Transmission Control Protocol, and http protocol is Based on Transmission Control Protocol, http protocol is the short connection based on Transmission Control Protocol, so-called short connection, after being exactly transmitted just at once Connection is closed, the purpose being achieved in that is more people can be supported to access at the same time;Since HTTP is short connection, then we It is required for NAT to pass through during transmission file every time(Take time and effort), and http protocol transmission html file is mostly all less big, this Sample passes through seriously affected transmission performance every time so that when the electronic equipment transmits data with the WEB server by P2P Transmission performance is worse.
Present inventor at least exists in the prior art during the embodiment of the present application technical solution is realized Following technical problem:
For existing electronic equipment when browsing the web data of WEB server by browser, there are data transmission bauds Slowly the technical problem that, transmission efficiency is low, this is because due to existing electronic equipment(Client)It is provided in WEB server In different LANs, then again by the server that is arranged on public network at the same time with the client and the WEB service Device establishes connection so that the data between the WEB server and the client pass through the transit server on the public network After reach other side, due to transmission data by just reaching other side after transfer so that the efficiency of transmission is apparently without P2P transmission performances Height, and since transmission file is to be based on http protocol, and the transmission speed of http protocol will be less than the transmission speed of UDP, from And cause the electronic equipment when browsing the web data of WEB server by browser, there are data transmission bauds it is slow, pass The low technical problem of defeated efficiency, and then cause user inconvenient to use, experience is poor.
The content of the invention
The embodiment of the present application provides the method and electronic equipment of a kind of information processing, to solve existing electronic equipment When browsing the web data of WEB server by browser, there are the technology that data transmission bauds is slow, transmission efficiency is low to ask Topic.
The embodiment of the present application provides a kind of method of information processing, and the method is applied to the in the first electronic equipment In one WEB server proxy module, the described method includes:Obtain the of the first browser in first electronic equipment One WEB access requests;When receiving the first WEB access requests, corresponding with the first WEB access requests the is obtained The first server IP address information of one WEB server;Based on the first server IP address information, by the first WEB Access request is sent to the first WEB client side proxy module in first WEB server;Reception comes from the first WEB The first data that Client Agent module is obtained based on the first WEB access requests;By first data sending to institute State the first browser so that first data by first browser first electronic equipment display unit On shown.
Optionally, it is described when receiving the first WEB access requests, obtain and the first WEB access requests pair The first server IP address information for the first WEB server answered, specifically includes:When receiving the first WEB access requests, Extract the first URL information of the first network address in the first WEB access requests;Based on first URL information, obtain with it is described The first server IP address information of corresponding first WEB server of first WEB access requests.
Optionally, it is described to be based on first URL information, obtain first WEB corresponding with the first WEB access requests The first server IP address information of server, specifically includes:Based on first URL information, receive and taken from the first STUN Second outer net IP address of first WEB server for being engaged in device to obtain and the second outer net port;Based on second outer net IP address and the second outer net port, obtain the first server IP address information of first WEB server.
Optionally, it is described to be based on the first server IP address information, the first WEB access requests are sent to institute The first WEB client side proxy module in the first WEB server is stated, is specifically included:The is sent to the first STUN servers One connection request, receives the first outer net IP address and first for first electronic equipment that the first STUN servers return Outer net port;Based on the first outer net IP address and the first outer net port, with obtaining the IP of first electronic equipment Location information;Based on the first server IP address information, by the first WEB access requests and first electronic equipment IP address information is sent to the first WEB client side proxy module in first WEB server.
Optionally, the first WEB access requests are based on from the first WEB client side proxy module in the reception And after the first data obtained, the method further includes:Obtain what is communicated with the first WEB client side proxy module First passage;Detect whether that data pass through the first passage in one first preset time;In first preset time When inside there are not the data by the first passage, the first passage is closed.
Another embodiment of the application also provides a kind of method of information processing, and the method is applied in WEB server In first WEB client side proxy module, the described method includes:The first browser received in the first electronic equipment passes through The first WEB access requests that the first WEB server proxy module in first electronic equipment is sent;Receive the WEB clothes The first data that business device is obtained based on the first WEB access requests;Based on the first WEB access requests, described in acquisition The IP address information of first electronic equipment;Based on the first electronic equipment IP address information, first data sending is given The first WEB server proxy module, so that first data can be by first browser described first Shown on the display unit of electronic equipment.
Optionally, the IP address information for being based on the first WEB access requests, obtaining first electronic equipment, Specifically include:Based on the first WEB access requests, first electronic equipment is extracted from the first WEB access requests The first outer net IP address and the first outer net port;Based on the first outer net IP address and the first outer net port, obtain The IP address information of first electronic equipment.
Optionally, it is described to be based on the first electronic equipment IP address information, by first data sending to described the One WEB server proxy module, specifically includes:The second connection request is sent to the first STUN servers, receives described first Second outer net IP address of the WEB server that STUN servers return and the second outer net port;Based on second outer net IP address and the second outer net port, obtain the IP address information of the WEB server;Based on the first electronic equipment IP Address information, is sent to first WEB server by the IP address information of first data and the WEB server and acts on behalf of Module, so that IP address information of first electronic equipment based on the WEB server is acted on behalf of with first WEB client side Module realizes that P2P communicates.
Optionally, it is described to be based on the first electronic equipment IP address information, by first data and the WEB service The IP address information of device is sent to the first WEB server proxy module, specifically includes:Based on the first electronic equipment IP Address information, the first RUDP data packets including first data and the IP address information of the WEB server are sent to The first WEB server proxy module.
Optionally, the first electronic equipment IP address information is based on described, by first data sending to described After first WEB server proxy module, the method further includes:Obtain and carried out with the first WEB server proxy module The second channel of communication;Detect whether that data pass through the second channel in one second preset time;It is pre- described second If there are not data by the second channel in the time, the second channel is closed.
One embodiment of the application provides a kind of electronic equipment, including display unit;First WEB server proxy module, It is connected with the display unit;First browser, is connected with the first WEB server proxy module;Wherein, described first WEB server proxy module is first in the first WEB access requests for obtaining the first browser in the electronic equipment First, the first server IP address information of the first WEB server corresponding with the first WEB access requests is obtained;Then, base In the first server IP address information, the first WEB access requests are sent in first WEB server One WEB client side proxy module;Then, receive and accessed from the first WEB client side proxy module based on the first WEB The first data asked and obtained;Finally, first data sending is given to first browser, so that first number Shown according to by first browser on the display unit.
Another embodiment of the application additionally provides a kind of electronic equipment, and the electronic equipment is WEB server, the WEB The first WEB client side proxy module is provided with server, the electronic equipment includes:Second circuit board;First WEB client side Proxy module, is electrically connected the second circuit board, and the first browser for receiving in the first electronic equipment passes through The first WEB access requests that the first WEB server proxy module in first electronic equipment is sent, and for receiving The first data that WEB server is obtained based on the first WEB access requests are stated, based on the first WEB access requests, are used In the IP address information for obtaining first electronic equipment, based on the first electronic equipment IP address information, for by described in First data sending gives the first WEB server proxy module, so that first data can be clear by described first Device of looking at is shown on the display unit of first electronic equipment.
The one or more technical solutions provided in the embodiment of the present application, have at least the following technical effects or advantages:
One, the first WEB server due to the embodiment of the present application in first electronic equipment is arranged on act on behalf of mould When block receives the first WEB access requests of first browser, based on the first WEB access requests, described the is obtained The IP address of one WEB server so that first in the first WEB server proxy module and first WEB server WEB client side proxy module realizes communication, due to the first WEB server proxy module and the first WEB client side generation Reason module can select the agreements such as UDP, RUDP to transmit data so that the first WEB server proxy module and described the One WEB client side proxy module can realize that P2P is transmitted, and in the first WEB server proxy module and described first Data transmitted between WEB client side proxy module 2 times by transfer, but this 2 times all perform in the machine, belong into Communicate between journey, efficiency is very high, and delay can almost be ignored;And the prior art by the period of service transfer when, although only transfer 1 It is secondary, but belong to across host progress, and be the host progress of across a network, so degraded performance, so as to solve existing electricity For sub- equipment when browsing the web data of WEB server by browser, there are the skill that data transmission bauds is slow, transmission efficiency is low Art problem, and then electronic equipment is realized when browsing the web data of WEB server by browser, data transmission bauds increases It hurry up, the high technique effect of efficiency of transmission so that more convenient user uses, and user experience is more preferable.
Secondly, since the embodiment of the present application is in the first WEB server proxy module and the first WEB client side generation Realize that NAT is passed through by the first STUN servers between reason module, and carried out data transmission by the RUDP agreements, made P2P transmission and energy can be realized by obtaining between the first WEB server proxy module and the first WEB client side proxy module Enough ensure the transmitting of data, so that the data transmission bauds between 2 proxy modules is fast, realize reliable number According to transmission, so that more convenient user uses, user experience is more preferable.
Thirdly, since the embodiment of the present application is in the first WEB server proxy module and the first WEB client side generation After managing module progress P2P communications, the first passage that 2 proxy modules communicate is obtained, when described first is default In when having detected data by the first passage, keep the first passage so that the first WEB server agency Module and the first WEB client side proxy module are passed through without progress NAT every time can be realized as P2P communications, further make The data transmission bauds obtained between 2 proxy modules is fast, so that more convenient user uses, user experience is more preferable.
Brief description of the drawings
Fig. 1 is the flow chart of the method for information processing in the application first embodiment;
Fig. 2 is the first web service agent module and the first WEB client side proxy module process communication in the embodiment of the present application Structure chart;
Fig. 3 is the flow chart of the method for information processing in the application second embodiment;
Fig. 4 is the structure diagram of electronic equipment in the application first embodiment;
Fig. 5 is the structure diagram of electronic equipment in the application second embodiment.
Embodiment
The embodiment of the present application provides the method and electronic equipment of a kind of information processing, to solve existing electronic equipment When browsing the web data of WEB server by browser, there are the technology that data transmission bauds is slow, transmission efficiency is low to ask Topic.
For the technical solution of the embodiment of the present application to solve the problems, such as above-mentioned technology, general thought is as follows:
Since first WEB server proxy module of the embodiment of the present application in first electronic equipment is arranged on receives To first browser the first WEB access requests when, based on the first WEB access requests, obtain the first WEB clothes The IP address of business device so that the first WEB client in the first WEB server proxy module and first WEB server Proxy module is held to realize communication, since the first WEB server proxy module and the first WEB client side proxy module can To select the agreements such as UDP, RUDP to transmit data so that the first WEB server proxy module and the first WEB client End proxy module can realize that P2P is transmitted, and in the first WEB server proxy module and first WEB client side The data transmitted between proxy module 2 times by transfer, but this 2 times all perform in the machine, belong to interprocess communication, Efficiency is very high, and delay can almost be ignored;And the prior art by the period of service transfer when, although only transfer 1 time, belongs to Across host progress, and be the host progress of across a network, so degraded performance, so as to solve existing electronic equipment logical When crossing browser and browsing the web data of WEB server, there are the technical problem that data transmission bauds is slow, transmission efficiency is low, into And electronic equipment is realized when browsing the web data of WEB server by browser, data transmission bauds is speeded, transmission effect The high technique effect of rate so that more convenient user uses, and user experience is more preferable.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
One embodiment of the application provides a kind of method of information processing, and the method is applied in the first electronic equipment In first WEB server proxy module, the electronic equipment is, for example, tablet computer, laptop, desktop computer, mobile phone etc. Electronic equipment.
Wherein, the first WEB server proxy module is, for example, the electronic equipments such as cache memory.
Please refer to Fig.1, the described method includes:
Step 101:Obtain the first WEB access requests of the first browser in first electronic equipment;
Step 102:When receiving the first WEB access requests, obtain corresponding with the first WEB access requests The first server IP address information of first WEB server;
Step 103:Based on the first server IP address information, the first WEB access requests are sent to described The first WEB client side proxy module in first WEB server;
Step 104:Receive and be based on the first WEB access requests from the first WEB client side proxy module and obtain The first data obtained;
Step 105:Give first data sending to first browser so that first data pass through it is described First browser is shown on the display unit of first electronic equipment.
Wherein, the display unit is, for example, the electronic equipments such as liquid crystal display, LED touch screen, LCD touch screen.
Wherein, in a step 101, the first WEB for obtaining the first browser in first electronic equipment is accessed Request.In specific implementation process, whether the first browser have sent the first WEB access and asks in detection first electronic equipment Ask, when described first browses it and send the first WEB request, the first WEB server proxy module receives described the One WEB access requests.
Wherein, first browser is, for example, the browsers such as Google's browser, 360 browsers, browser of roaming.
Specifically, by taking laptop as an example, inputted in 360 browsers of the laptop Www.163.com, and when pressing enter key, the first WEB server being arranged in the laptop, which acts on behalf of mould, to be received The first WEB access requests arrived are the access request for the homepage for accessing www.163.com.
Next perform step 102, in this step, when receiving the first WEB access requests, obtain with it is described The first server IP address information of corresponding first WEB server of first WEB access requests.In specific implementation process, When receiving the first WEB access requests, the first URL information of the first network address in the first WEB access requests is extracted;It is based on First URL information, with obtaining the first server IP of the first WEB server corresponding with the first WEB access requests Location information.
Specifically, due to universal resource locator(URL)It is to be used to be fully described by Internet webpage and other A kind of identification method of the address of resource, each webpage on Internet have a unique name identification, usually Referred to as URL addresses, therefore, by the title of the first network address in the first WEB access requests, based on first network address Title, the URL information of first network address can be obtained, then based on first URL information, pass through router and/or friendship Addressing of changing planes can obtain the first server IP address letter of the first WEB server corresponding with the first WEB access requests Breath.
In actual application, when receiving the access request of homepage of the access www.163.com, institute is obtained The first URL information for stating www.163.com is http://www.163.com/, by being connected with first electronic equipment Router and/or interchanger be addressed, determine the of the first WEB server corresponding with the first WEB access requests One server ip address information.
Specifically, it is described to be based on first URL information, obtain and the first WEB access requests corresponding first The first server IP address information of WEB server, specifically includes:Based on first URL information, reception comes from the first STUN Server is come the second outer net IP address of first WEB server obtained and the second outer net port;Outside described second Net IP address and the second outer net port, obtain the first server IP address information of first WEB server.
In specific implementation process, since first electronic equipment and first WEB server are generally all disposed within , it is necessary to the Intranet IP for first electronic equipment being arranged in first LAN is converted into outer in respective LAN Net IP and the Intranet IP for first WEB server being arranged in second LAN is converted into outer net IP and led to Letter, in order to improve the data transmission bauds of first electronic equipment and first WEB server, can be passed through using NAT To carry out data transmission, in this way, the second outer net IP of first WEB server can be obtained by the first STUN servers The the first outer net IP address and the first outer net port of address and the second outer net port and first electronic equipment, then pass through XMPP Server realizes that the address of first electronic equipment and first WEB server exchanges so that first electronic equipment Realize that P2P is connected with first WEB server.
It is http in first URL information in actual application://www.163.com/, it may be determined that The outer net IP address of 163WEB servers is 218.6.20.11, corresponding port numbers for acquiescence port numbers 80, in this way, can be with One the 3rd connection request is sent to the 163WEB servers by the first STUN servers, is returned in the 163WEB servers When writing in reply breath to the first STUN servers, the first STUN servers can obtain the second of the 163WEB servers Outer net IP address is 218.6.20.11 and the second outer net port numbers 80, so, it may be determined that the of the 163WEB servers One server ip address information is that the second outer net IP address is 218.6.20.11 and the second outer net port numbers 80, described first The first server IP address information is sent to the XMPP server by STUN servers, real by the XMPP server The address of existing first electronic equipment and first WEB server exchanges so that first electronic equipment and described the One WEB server establishes a duplex channel, so as to fulfill P2P connections.
Next step 103 is performed, in this step, based on the first server IP address information, by described first WEB access requests are sent to the first WEB client side proxy module in first WEB server.In specific implementation process, The first connection request is sent to the first STUN servers, receives first electronics that the first STUN servers return First outer net IP address of equipment and the first outer net port;Based on the first outer net IP address and the first outer net port, Obtain the IP address information of first electronic equipment;Based on the first server IP address information, the first WEB is visited Ask the first WEB client side for asking to be sent to the IP address information of first electronic equipment in first WEB server Proxy module.Certainly, based on the first server IP address information, the first WEB clothes can also be obtained by IP addressing The routed path being engaged in device, first WEB server is sent to by the routed path by the first WEB access requests In the first WEB client side proxy module, this is because data are seldom in the first WEB access requests, therefore passed by P2P It is defeated and be transmitted by IP addressing and do not have large effect to data transmission bauds.
In actual application, referring to Fig. 2, internal address of the client 20 in the first LAN is 192.168.1.108, when accessing 163WEB servers 23, by the first gateway for being connected with client 20 by client 20 The IP address that IP is converted into the first gateway B is 202.96.23.11, and the first gateway B distributes one untapped the to client 20 One outer net port 445 is connected with outer net, but client 20 can not be got outside the IP address and described first of the first gateway B Net port so that the first WEB server proxy module 22 in client 20 receives the access from the first browser 21 During the access request of the homepage of www.163.com, the first WEB server proxy module 22 to the first STUN servers 25 by sending out Send the first connection request so that the IP address that the first STUN servers 25 can obtain the first gateway B of client 20 is 202.96.23.11 with the first outer net port 445, and 202.96.23.11 and 445 is returned into the first WEB server and act on behalf of mould Block 22 so that the first WEB server proxy module 22 obtain client 20 IP address information be:Second outer net IP is 202.96.23.11 it is 445 with second port, by the access request of the homepage of the access www.163.com and client 20 IP address information is sent to the XMPP server 26, since XMPP server 26 has obtained the of 163WEB servers 23 One server ip address information is that the second outer net IP address is 218.6.20.11 and the second outer net port numbers 80 so that XMPP Server 26 establishes one according to the IP address of the client 20 and the first server IP address information of 163WEB servers 23 A communication port so that realize that P2P is passed between the first WEB server proxy module 22 and the first WEB client side proxy module 24 It is defeated.
In specific implementation process, believe by the IP address of the first WEB access requests and first electronic equipment Breath is when being sent to the first WEB client side proxy module in first WEB server, can by UDP and RUDP agreements come The first WEB access requests and the IP address information of first electronic equipment are sent, due to the number in UDP and RUDP agreements It is greater than data transmission efficiency in TCP according to efficiency of transmission, and during using UDP and RUDP agreements to carry out mass data transmission It is better than using Transmission Control Protocol to carry out mass data transmission.
Further, since udp protocol and RUDP agreements retain its respective data transfer using port numbers for different applications Passage, therefore so that carry out P2P between the first WEB server proxy module and the first WEB client side proxy module During communication, passed through without carrying out NAT by the first STUN servers every time, it is only necessary to when first time establishing connection, NAT is carried out by the first STUN servers to pass through, and a communication port is established to realize by the XMPP server P2P communications are carried out between the first WEB server proxy module and the first WEB client side proxy module, since P2P is passed Defeated performance is high so that first electronic equipment can obtain WEB data from first WEB server faster.
Next step 104 is performed, in this step, receives and is based on institute from the first WEB client side proxy module The first data stated the first WEB access requests and obtained.In specific implementation process, mould is acted on behalf of in first WEB client side When block receives the first WEB access requests, the first WEB access requests are transmitted to first WEB server, institute The first WEB server is stated by first data sending corresponding with the first WEB access requests to the first WEB client Hold proxy module, the first WEB client side proxy module is by the communication port that the XMPP server is established by described the One data sending gives the first WEB server proxy module, so that the first WEB server proxy module receives institute State the first data.
In actual application, the first WEB client side proxy module in the 163WEB servers receives institute When stating the access request for the homepage for accessing www.163.com, the first WEB client side proxy module is by the access The access request of the homepage of www.163.com is sent to the 163WEB servers, the master based on the access www.163.com The access request of page, the 163WEB servers can be from homepage data of the database lookup to 163, and by described 163 homepage Data sending gives the first WEB client side proxy module, and the first WEB client side proxy module is serviced by the XMPP The communication port that device is established gives described 163 homepage data sending to the first WEB server proxy module.Due to described 163 homepage data are that transfer 1 time is carried out in the 163WEB servers, belong to interprocess communication, efficiency meeting higher, delay It can almost ignore, so as to improve the performance of data transfer.
Next step 105 is performed, in this step, gives first data sending to first browser, so that First data are obtained to be shown on the display unit of first electronic equipment by first browser.Specific In implementation process, the first WEB server proxy module sends out first data after first data are received Give first browser so that first data by first browser in the aobvious of first electronic equipment Show and shown on unit.
In actual application, referring to Fig. 2, the first WEB server proxy module 22 in client 20 receives During described 163 homepage data, by described 163 homepage data sending to the first browser in client 20, and by described in 163 homepage data are loaded in a window in first browser, and cause the window in the aobvious of client 20 Shown in display screen..Since described 163 homepage data are that transfer 1 time is carried out in client 20, belong between process and lead to Letter, efficiency meeting higher, delay can almost be ignored, so as to improve the performance of data transfer.
In specific implementation process, although described 163 homepage data, 2 times by transfer, this 2 times be all in the machine Perform, belong to interprocess communication, efficiency is very high, and delay can almost be ignored;And period of service transfer, although only transfer 1 time, But belong to across host progress, and be the host progress of across a network, so degraded performance, in this way, the embodiment that the application provides Transmission data speed can be improved.
In another embodiment, in the reception the first WEB is based on from the first WEB client side proxy module Access request and after the first data for obtaining, the method further includes:Obtain with the first WEB client side proxy module into The first passage of row communication;Detect whether that data pass through the first passage in one first preset time;Described first When there are not the data by the first passage in preset time, the first passage is closed.
In specific implementation process, in order to ensure the utilization rate of the bandwidth in the WEB server, one can be set One preset time, passes through the XMPP in the first WEB server proxy module and the first WEB client side proxy module After server establishes first passage, retain the first passage due to the use of udp protocol and RUDP consultations, and described the One passage can take certain bandwidth, objective not with the first WEB in a long time in the first WEB server proxy module During the proxy module communication of family end, the first passage still can be kept, so so that the first passage occupies described first The bandwidth of WEB server cannot be utilized, so as to influence the efficiency of transmission of first WEB server.In this way, by described XMPP server is established after the first passage, does not have the data to lead to by described first in first preset time During road, the first passage is closed, wherein, first preset time can be configured according to actual conditions, and described first Preset time such as can be for 30 seconds, 1 minute, 2 minutes the time, do not had the data logical by described first in 30 seconds During road, the first passage is closed.
In actual application, referring to Fig. 2, first WEB server proxy module 22 is 11 in client 20:35: 40 moment established first passage 27, first passage 27 with the first WEB client side proxy module 24 in 163WEB servers 23 11:40:There are not data to be transmitted during 00 moment, if first preset time is 30 seconds, 11:40:00 moment is to 11: 40:During 30 moment, detect in first passage 27 when there are not the data to be transmitted, then close first passage 27;11:40:00 Moment is to 11:40:During 30 moment, detect when there are the data to be transmitted in first passage 27, then retain first passage 27, the One passage 27 does not have data transfer next time when, whether detection first passage 27 had data to be transmitted in 30 seconds, sometimes, Then continue to retain first passage 27;Sometimes, then first passage 27 is not being closed.
The one or more technical solutions provided in the embodiment of the present application, have at least the following technical effects or advantages:
One, the first WEB server due to the embodiment of the present application in first electronic equipment is arranged on act on behalf of mould When block receives the first WEB access requests of first browser, based on the first WEB access requests, described the is obtained The IP address of one WEB server so that first in the first WEB server proxy module and first WEB server WEB client side proxy module realizes communication, due to the first WEB server proxy module and the first WEB client side generation Reason module can select the agreements such as UDP, RUDP to transmit data so that the first WEB server proxy module and described the One WEB client side proxy module can realize that P2P is transmitted, and in the first WEB server proxy module and described first Data transmitted between WEB client side proxy module 2 times by transfer, but this 2 times all perform in the machine, belong into Communicate between journey, efficiency is very high, and delay can almost be ignored;And the prior art by the period of service transfer when, although only transfer 1 It is secondary, but belong to across host progress, and be the host progress of across a network, so degraded performance, so as to solve existing electricity For sub- equipment when browsing the web data of WEB server by browser, there are the skill that data transmission bauds is slow, transmission efficiency is low Art problem, and then electronic equipment is realized when browsing the web data of WEB server by browser, data transmission bauds increases It hurry up, the high technique effect of efficiency of transmission so that more convenient user uses, and user experience is more preferable.
Secondly, since the embodiment of the present application is in the first WEB server proxy module and the first WEB client side generation Realize that NAT is passed through by the first STUN servers between reason module, and carried out data transmission by the RUDP agreements, made P2P transmission and energy can be realized by obtaining between the first WEB server proxy module and the first WEB client side proxy module Enough ensure the transmitting of data, so that the data transmission bauds between 2 proxy modules is fast, realize reliable number According to transmission, so that more convenient user uses, user experience is more preferable.
Thirdly, since the embodiment of the present application is in the first WEB server proxy module and the first WEB client side generation After managing module progress P2P communications, the first passage that 2 proxy modules communicate is obtained, when described first is default In when having detected data by the first passage, keep the first passage so that the first WEB server agency Module and the first WEB client side proxy module are passed through without progress NAT every time can be realized as P2P communications, further make The data transmission bauds obtained between 2 proxy modules is fast, so that more convenient user uses, user experience is more preferable.
Another embodiment of the application provides a kind of method of information processing, and the method is applied in WEB server In first WEB client side proxy module, the electronic equipment is, for example, tablet computer, laptop, desktop computer, mobile phone etc. Electronic equipment.
Wherein, the first WEB client side proxy module is, for example, the electronic equipments such as cache memory.
Please refer to Fig.3, the described method includes:
Step 301:The first browser received in the first electronic equipment passes through in first electronic equipment The first WEB access requests that first WEB server proxy module is sent;
Step 302:Receive the first data that the WEB server is obtained based on the first WEB access requests;
Step 303:Based on the first WEB access requests, the IP address information of acquisition first electronic equipment;
Step 304:Based on the first electronic equipment IP address information, described first is given by first data sending WEB server proxy module, so that first data can be by first browser in first electronic equipment Display unit on shown.
Wherein, the display unit is, for example, the electronic equipments such as liquid crystal display, LED touch screen, LCD touch screen.
Wherein, in step 301, the first browser received in the first electronic equipment passes through first electronics The first WEB access requests that the first WEB server proxy module in equipment is sent.In specific implementation process, described first The first browser in electronic equipment sends the first WEB access requests to the first WEB server in first electronic equipment The first WEB access requests are being sent to the first WEB visitors by proxy module, the first WEB server proxy module Family end proxy module.
Wherein, first browser is, for example, the browsers such as Google's browser, 360 browsers, browser of roaming.
Specifically, by taking laptop as an example, inputted in 360 browsers of the laptop Www.163.com, and when pressing enter key, the first WEB server proxy module being arranged in the laptop can connect The received first WEB access requests is access the access request of the homepage of www.163.com, and then the first WEB takes The access request of the homepage of the access www.163.com can be sent to described first by business device proxy module by IP addressing WEB client side proxy module so that the first WEB client side proxy module can receive the access www.163.com's The access request of homepage.
Next step 302 is performed, in this step, the WEB server is received and is based on the first WEB access requests And the first data obtained.In specific implementation process, described first is received in the first WEB client side proxy module During WEB access requests, the first WEB access requests are transmitted to first WEB server, first WEB server Give first data sending corresponding with the first WEB access requests to the first WEB client side proxy module, so that First data can be received by obtaining the first WEB client side proxy module.
In actual application, the first WEB client side proxy module in the 163WEB servers receives institute When stating the access request for the homepage for accessing www.163.com, the first WEB client side proxy module is by the access The access request of the homepage of www.163.com is sent to the 163WEB servers, the master based on the access www.163.com The access request of page, the 163WEB servers can be from homepage data of the database lookup to 163, and by described 163 homepage Data sending gives the first WEB client side proxy module, so that the first WEB client side proxy module can receive To first data.
Next step 303 is performed, in this step, based on the first WEB access requests, obtains first electronics The IP address information of equipment.In specific implementation process, based on the first WEB access requests, being accessed from the first WEB please Ask the first outer net IP address and the first outer net port of middle extraction first electronic equipment;Based on the first outer net IP address With the first outer net port, the IP address information of acquisition first electronic equipment.
Specifically, since the first WEB server proxy module is when sending the first WEB access requests, meeting First outer net IP address of first electronic equipment and the first outer net port are attached in the first WEB access requests, Therefore, outside the first outer net IP address and first that first electronic equipment can be obtained from the first WEB access requests Port is netted, so that the first WEB client side proxy module obtains the first electronic equipment IP address information.
In actual application, referring to Fig. 2, client 20 is connected by sending first to the first STUN servers 25 The the first outer net IP address for connecing acquisition request client 20 is 202.96.23.11 and the first outer net port is 445, client 20 The first outer net IP address and the first port are attached to the access request hair of the homepage of the access www.163.com Give the first WEB client side proxy module 24 so that the first WEB client side proxy module 24 passes through the access The IP address information that the access request of the homepage of www.163.com obtains client 20 is that the first outer net IP address is 202.96.23.11 it is 445 with the first outer net port.
Next step 304 is performed, in this step, based on the first electronic equipment IP address information, by described the One data sending gives the first WEB server proxy module, so that first data can be browsed by described first Device is shown on the display unit of first electronic equipment.In specific implementation process, sent out to the first STUN servers Send the second connection request, receive the second outer net IP address and for the WEB server that the first STUN servers return Two outer net ports;Based on the second outer net IP address and the second outer net port, the IP address of the WEB server is obtained Information;Based on the first electronic equipment IP address information, by first data and the IP address information of the WEB server The first WEB server proxy module is sent to, so that the IP address of first electronic equipment based on the WEB server Information realizes that P2P communicates with the first WEB client side proxy module.
Specifically, when giving first data sending to the first WEB server proxy module, it is necessary to pass through P2P carries out data transmission, with improve the first WEB server proxy module and the first WEB client side proxy module it Between WEB data transmission bauds.
In actual application, referring to Fig. 2, it is in the IP address of 163WEB servers 23 in a local network 192.168.0.112, the first WEB client side proxy module 24 in 163WEB servers 23 is connected to described 163 homepage number According to when, to the first STUN servers 25 send the second connection request so that the first STUN servers 25 can obtain Second outer net IP address of 163WEB servers 23 is 218.6.20.11 and the second outer net port numbers 80, then passes through the visit Ask the IP address information of the client 20 in the access request of the homepage of www.163.com so that XMPP server 26 is according to visitor The IP address at family end 20 and the first server IP address information of 163WEB servers 23 establish a second channel so that described Realize that P2P is passed by the second channel between first WEB server proxy module 22 and the first WEB client side proxy module 24 It is defeated, wherein, the first passage is identical with the second channel.
It is described to be based on the first electronic equipment IP address information in specific implementation process, by first data and The IP address information of the WEB server is sent to the first WEB server proxy module, specifically includes:Based on described One electronic equipment IP address information, by the first RUDP including first data and the IP address information of the WEB server Data packet is sent to the first WEB server proxy module.
Specifically, the IP address information of first data and the WEB server is being sent to first electricity During the first WEB server proxy module in sub- equipment, first data and institute can be sent by UDP and RUDP agreements The IP address information of WEB server is stated, the IP address information of the WEB server is write in the header of the UDP or RUDP, Then then the UDP or RUDP messages are sent to by first data storage into the UDP or RUDP data packet The first WEB server proxy module, passes since the data transmission efficiency in UDP and RUDP agreements is greater than data in TCP Defeated efficiency, and using UDP and RUDP agreements to carry out mass data transmission when be also better than using Transmission Control Protocol it is a large amount of to carry out Data transfer.
Further, since udp protocol and RUDP agreements retain its respective data transfer using port numbers for different applications Passage, therefore so that carry out P2P between the first WEB server proxy module and the first WEB client side proxy module During communication, passed through without carrying out NAT by the first STUN servers every time, it is only necessary to when first time establishing connection, NAT is carried out by the first STUN servers to pass through, and a communication port is established come real by the XMPP server 26 It is existing that P2P communications are carried out between the first WEB server proxy module and the first WEB client side proxy module, due to P2P Transmission performance is high so that first electronic equipment can obtain WEB data from first WEB server faster.
In another embodiment, the first electronic equipment IP address information is based on described, first data is sent out After giving the first WEB server proxy module, the method further includes:Obtain and acted on behalf of with first WEB server The second channel that module communicates;Detect whether that data pass through the second channel in one second preset time range; When there are not data by the second channel in second preset time range, the second channel is closed.
Wherein, second preset time can be configured according to actual conditions, and second preset time for example may be used To be for 30 seconds, 1 minute, the time such as 2 minutes, when not having the data by the second channel in 30 seconds, described in closing Second channel, second preset time are identical with first preset time.
In specific implementation process, in order to ensure the utilization rate of the bandwidth in the WEB server, one can be set Two preset times, pass through the XMPP in the first WEB server proxy module and the first WEB client side proxy module After server establishes second channel, retain such as figure passage due to the use of udp protocol and RUDP consultations, and it is described Second channel can take certain bandwidth, the first WEB server proxy module in a long time not with the first WEB When Client Agent module communicates, the second channel still can be kept, so so that the second channel occupies described first The bandwidth of WEB server cannot be utilized, so as to influence the efficiency of transmission of first WEB server.In this way, by described XMPP server is established after the second channel, does not have the data to lead to by described second in second preset time During road, the second channel is closed.
In actual application, referring to Fig. 2, first WEB server proxy module 22 is 11 in client 20:45: 30 moment established second channel with the first WEB client side proxy module 24 in 163WEB servers 23, the first passage 11:50:There are not data to be transmitted during 30 moment, if first preset time is 60 seconds, 11:50:30 moment are to 11: 51:During 30 moment, detect in the second channel when there are not the data to be transmitted, then close the second channel;11: 50:30 moment are to 11:51:During 30 moment, detect when there are the data to be transmitted in the second channel, then retain described second Passage, when the second channel does not have data transfer next time, detect the second channel whether had in 60 seconds data into Row transmission, sometimes, then continues to retain the second channel;Sometimes, then the second channel is not being closed.
The one or more technical solutions provided in the embodiment of the present application, have at least the following technical effects or advantages:
One, the first WEB server due to the embodiment of the present application in first electronic equipment is arranged on act on behalf of mould When block receives the first WEB access requests of first browser, based on the first WEB access requests, described the is obtained The IP address of one WEB server so that first in the first WEB server proxy module and first WEB server WEB client side proxy module realizes communication, due to the first WEB server proxy module and the first WEB client side generation Reason module can select the agreements such as UDP, RUDP to transmit data so that the first WEB server proxy module and described the One WEB client side proxy module can realize that P2P is transmitted, and in the first WEB server proxy module and described first Data transmitted between WEB client side proxy module 2 times by transfer, but this 2 times all perform in the machine, belong into Communicate between journey, efficiency is very high, and delay can almost be ignored;And the prior art by the period of service transfer when, although only transfer 1 It is secondary, but belong to across host progress, and be the host progress of across a network, so degraded performance, so as to solve existing electricity For sub- equipment when browsing the web data of WEB server by browser, there are the skill that data transmission bauds is slow, transmission efficiency is low Art problem, and then electronic equipment is realized when browsing the web data of WEB server by browser, data transmission bauds increases It hurry up, the high technique effect of efficiency of transmission so that more convenient user uses, and user experience is more preferable.
Secondly, since the embodiment of the present application is in the first WEB server proxy module and the first WEB client side generation Realize that NAT is passed through by the first STUN servers between reason module, and carried out data transmission by the RUDP agreements, made P2P transmission and energy can be realized by obtaining between the first WEB server proxy module and the first WEB client side proxy module Enough ensure the transmitting of data, so that the data transmission bauds between 2 proxy modules is fast, realize reliable number According to transmission, so that more convenient user uses, user experience is more preferable.
Thirdly, since the embodiment of the present application is in the first WEB server proxy module and the first WEB client side generation After managing module progress P2P communications, the first passage that 2 proxy modules communicate is obtained, when described first is default In when having detected data by the first passage, keep the first passage so that the first WEB server agency Module and the first WEB client side proxy module are passed through without progress NAT every time can be realized as P2P communications, further make The data transmission bauds obtained between 2 proxy modules is fast, so that more convenient user uses, user experience is more preferable.
One embodiment of the invention additionally provides a kind of electronic equipment, and the first WEB server is provided with the electronic equipment Proxy module, the electronic equipment are, for example, the electronic equipments such as tablet computer, laptop, desktop computer.
Wherein, the first WEB server proxy module is, for example, the electronic equipments such as cache memory.
Referring to Fig. 4, which includes:Display unit 401;First WEB server proxy module 402, it is single with display Member 401 connects;First browser 403, is connected with the first WEB server proxy module 402;Wherein, the first WEB server is acted on behalf of Module 402 is when obtaining the first WEB access requests of the first browser 403 in the electronic equipment, first, obtain with The first server IP address information of corresponding first WEB server of the first WEB access requests;Then, based on described One server ip address information, the first WEB visitors the first WEB access requests being sent in first WEB server Family end proxy module;Then, receive from the first WEB client side proxy module be based on the first WEB access requests and The first data obtained;Finally, first data sending is given to the first browser 403, so that first data pass through First browser 403 is shown on display unit 401.
Wherein, the first browser 403 is, for example, the browsers such as Google's browser, 360 browsers, browser of roaming, into one Step, display unit 401 is, for example, the electronic equipments such as LED display, liquid crystal display, LED touch screen, capacitive touch screen.
Further, the first WEB server proxy module 402 includes the first address information obtaining unit, described in reception During the first WEB access requests, for extracting the first URL information of the first network address in the first WEB access requests, based on described First URL information, for obtaining the first server IP of corresponding with the first WEB access requests the first WEB server Location information.
Further, the first address information obtaining unit includes the first address information acquisition subelement, based on described first URL information, for receiving from the first STUN servers the second outer net IP address of first WEB server for obtaining and Second outer net port, based on the second outer net IP address and the second outer net port, for obtaining first WEB service The first server IP address information of device.
Further, the first WEB server proxy module 402 includes the first transmitting element, for the first STUN Server sends the first connection request, receives the first outer net of first electronic equipment that the first STUN servers return IP address and the first outer net port, based on the first outer net IP address and the first outer net port, for obtaining described The IP address information of one electronic equipment, based on the first server IP address information, for by the first WEB access requests The first WEB client side being sent to the IP address information of first electronic equipment in first WEB server acts on behalf of mould Block.
In another embodiment, the first WEB server proxy module 402 includes the first closing unit, comes in the reception After the first data obtained from the first WEB client side proxy module based on the first WEB access requests, for obtaining The first passage to communicate with the first WEB client side proxy module is taken, and in one first preset time range Inside detect whether that data by the first passage, there are not the data by described first in first preset time During passage, for closing the first passage.
The one or more technical solutions provided in the embodiment of the present application, have at least the following technical effects or advantages:
One, the first WEB server due to the embodiment of the present application in first electronic equipment is arranged on act on behalf of mould When block receives the first WEB access requests of first browser, based on the first WEB access requests, described the is obtained The IP address of one WEB server so that first in the first WEB server proxy module and first WEB server WEB client side proxy module realizes communication, due to the first WEB server proxy module and the first WEB client side generation Reason module can select the agreements such as UDP, RUDP to transmit data so that the first WEB server proxy module and described the One WEB client side proxy module can realize that P2P is transmitted, and in the first WEB server proxy module and described first Data transmitted between WEB client side proxy module 2 times by transfer, but this 2 times all perform in the machine, belong into Communicate between journey, efficiency is very high, and delay can almost be ignored;And the prior art by the period of service transfer when, although only transfer 1 It is secondary, but belong to across host progress, and be the host progress of across a network, so degraded performance, so as to solve existing electricity For sub- equipment when browsing the web data of WEB server by browser, there are the skill that data transmission bauds is slow, transmission efficiency is low Art problem, and then electronic equipment is realized when browsing the web data of WEB server by browser, data transmission bauds increases It hurry up, the high technique effect of efficiency of transmission so that more convenient user uses, and user experience is more preferable.
Secondly, since the embodiment of the present application is in the first WEB server proxy module and the first WEB client side generation Realize that NAT is passed through by the first STUN servers between reason module, and carried out data transmission by the RUDP agreements, made P2P transmission and energy can be realized by obtaining between the first WEB server proxy module and the first WEB client side proxy module Enough ensure the transmitting of data, so that the data transmission bauds between 2 proxy modules is fast, realize reliable number According to transmission, so that more convenient user uses, user experience is more preferable.
Thirdly, since the embodiment of the present application is in the first WEB server proxy module and the first WEB client side generation After managing module progress P2P communications, the first passage that 2 proxy modules communicate is obtained, when described first is default In when having detected data by the first passage, keep the first passage so that the first WEB server agency Module and the first WEB client side proxy module are passed through without progress NAT every time can be realized as P2P communications, further make The data transmission bauds obtained between 2 proxy modules is fast, so that more convenient user uses, user experience is more preferable.
Another embodiment of the present invention additionally provides a kind of electronic equipment, and the electronic equipment is WEB server, the WEB The first WEB client side proxy module is provided with server, the electronic equipment is, for example, tablet computer, laptop, platform The electronic equipments such as formula computer.
Wherein, the first WEB client side proxy module is, for example, the electronic equipments such as cache memory.
Referring to Fig. 5, which includes second circuit board 501;First WEB client side proxy module 502, is electrically connected Second circuit board 501, passes through in first electronic equipment for receiving the first browser in the first electronic equipment The first WEB access requests that send of the first WEB server proxy module, and be based on institute for receiving the WEB server The first data stated the first WEB access requests and obtained, based on the first WEB access requests, for obtaining first electricity The IP address information of sub- equipment, based on the first electronic equipment IP address information, for by first data sending to institute The first WEB server proxy module is stated, so that first data can be by first browser in the described first electricity Shown on the display unit of sub- equipment.
Wherein, circuit board 401 can be the mainboard of electronic equipment, and further, first browser is, for example, Google The browsers such as browser, 360 browsers, browser of roaming, further, the display unit are, for example, LED display, liquid crystal The electronic equipments such as display screen, LED touch screen, capacitive touch screen.
Further, the first WEB client side proxy module 502 includes the second address information obtaining unit, based on described One WEB access requests, for extracting the first outer net IP address of first electronic equipment from the first WEB access requests With the first outer net port, based on the first outer net IP address and the first outer net port, for obtaining first electronics The IP address information of equipment.
Further, the first WEB client side proxy module 502 includes the second transmitting element, for being serviced to the first STUN Device sends the second connection request, receives the second outer net IP address of the WEB server that the first STUN servers return With the second outer net port, based on the second outer net IP address and the second outer net port, for obtaining the WEB server IP address information, based on the first electronic equipment IP address information, for by first data and the WEB server IP address information be sent to the first WEB server proxy module so that first electronic equipment based on the WEB take The IP address information of business device realizes that P2P communicates with the first WEB client side proxy module.
Further, second transmitting element includes the second transmission sub-unit, based on the first electronic equipment IP Location information, for the first UDP message bag including first data and the IP address information of the WEB server to be sent to The first WEB server proxy module.
In another embodiment, the first WEB client side proxy module 502 further includes the second closing unit, is based on described The first electronic equipment IP address information, after giving first data sending to the first WEB server proxy module, For obtaining the second channel to communicate with the first WEB server proxy module, and for when one second is default Between in the range of detected whether that data by the second channel, do not have data to pass through institute in second preset time range When stating second channel, for closing the second channel.
The one or more technical solutions provided in the embodiment of the present application, have at least the following technical effects or advantages:
One, the first WEB server due to the embodiment of the present application in first electronic equipment is arranged on act on behalf of mould When block receives the first WEB access requests of first browser, based on the first WEB access requests, described the is obtained The IP address of one WEB server so that first in the first WEB server proxy module and first WEB server WEB client side proxy module realizes communication, due to the first WEB server proxy module and the first WEB client side generation Reason module can select the agreements such as UDP, RUDP to transmit data so that the first WEB server proxy module and described the One WEB client side proxy module can realize that P2P is transmitted, and in the first WEB server proxy module and described first Data transmitted between WEB client side proxy module 2 times by transfer, but this 2 times all perform in the machine, belong into Communicate between journey, efficiency is very high, and delay can almost be ignored;And the prior art by the period of service transfer when, although only transfer 1 It is secondary, but belong to across host progress, and be the host progress of across a network, so degraded performance, so as to solve existing electricity For sub- equipment when browsing the web data of WEB server by browser, there are the skill that data transmission bauds is slow, transmission efficiency is low Art problem, and then electronic equipment is realized when browsing the web data of WEB server by browser, data transmission bauds increases It hurry up, the high technique effect of efficiency of transmission so that more convenient user uses, and user experience is more preferable.
Secondly, since the embodiment of the present application is in the first WEB server proxy module and the first WEB client side generation Realize that NAT is passed through by the first STUN servers between reason module, and carried out data transmission by the RUDP agreements, made P2P transmission and energy can be realized by obtaining between the first WEB server proxy module and the first WEB client side proxy module Enough ensure the transmitting of data, so that the data transmission bauds between 2 proxy modules is fast, realize reliable number According to transmission, so that more convenient user uses, user experience is more preferable.
Thirdly, since the embodiment of the present application is in the first WEB server proxy module and the first WEB client side generation After managing module progress P2P communications, the first passage that 2 proxy modules communicate is obtained, when described first is default In when having detected data by the first passage, keep the first passage so that the first WEB server agency Module and the first WEB client side proxy module are passed through without progress NAT every time can be realized as P2P communications, further make The data transmission bauds obtained between 2 proxy modules is fast, so that more convenient user uses, user experience is more preferable.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these modification and variations.

Claims (6)

  1. A kind of 1. method of information processing, it is characterised in that the method is applied to the first WEB service in the first electronic equipment In device proxy module, the described method includes:
    Obtain the first WEB access requests of the first browser in first electronic equipment;
    When receiving the first WEB access requests, the first WEB service corresponding with the first WEB access requests is obtained The first server IP address information of device;
    Based on the first server IP address information, the first WEB access requests are sent to first WEB server In the first WEB client side proxy module;
    Receive the first data obtained from the first WEB client side proxy module based on the first WEB access requests; Wherein, first data are that the first WEB client side proxy module is based on described first by first WEB server What WEB access requests obtained;
    First data sending is given to first browser, so that first data are existed by first browser Shown on the display unit of first electronic equipment;
    Wherein, when receiving the first WEB access requests, first WEB corresponding with the first WEB access requests is obtained The first server IP address information of server, specifically includes:
    When receiving the first WEB access requests, the first URL letters of the first network address in the first WEB access requests are extracted Breath;
    Based on first URL information, obtain the first WEB server corresponding with the first WEB access requests first takes Business device IP address information;
    Wherein, it is described to be based on the first server IP address information, the first WEB access requests are sent to described first The first WEB client side proxy module in WEB server, specifically includes:
    The first connection request is sent to the first STUN servers, receives first electronics that the first STUN servers return First outer net IP address of equipment and the first outer net port;
    Based on the first outer net IP address and the first outer net port, the IP address for obtaining first electronic equipment is believed Breath;
    Based on the first server IP address information, by the first WEB access requests and the IP of first electronic equipment Address information is sent to the first WEB client side proxy module in first WEB server.
  2. 2. the method as described in claim 1, it is characterised in that act on behalf of mould from first WEB client side in the reception After the first data that block is obtained based on the first WEB access requests, the method further includes:
    Obtain the first passage to communicate with the first WEB client side proxy module;
    Detect whether that data pass through the first passage in one first preset time;
    When there are not the data by the first passage in first preset time, the first passage is closed.
  3. A kind of 3. method of information processing, it is characterised in that the method is applied to the first WEB client side in WEB server In proxy module, the described method includes:
    The first browser received in the first electronic equipment passes through the first WEB server in first electronic equipment The first WEB access requests that proxy module is sent;
    Receive the first data that the WEB server is obtained based on the first WEB access requests;
    Based on the first WEB access requests, the IP address information of acquisition first electronic equipment;
    Based on the first electronic equipment IP address information, first data sending is acted on behalf of to first WEB server Module, so that first data can be enterprising in the display unit of first electronic equipment by first browser Row display;
    Wherein, the IP address information for being based on the first WEB access requests, obtaining first electronic equipment, specific bag Include:
    Based on the first WEB access requests, the first of first electronic equipment is extracted from the first WEB access requests Outer net IP address and the first outer net port;
    Based on the first outer net IP address and the first outer net port, the IP address for obtaining first electronic equipment is believed Breath;
    It is described to be based on the first electronic equipment IP address information, give first data sending to first WEB server Proxy module, specifically includes:
    The second connection request is sent to the first STUN servers, receives the WEB service that the first STUN servers return Second outer net IP address of device and the second outer net port;
    Based on the second outer net IP address and the second outer net port, the IP address information of the WEB server is obtained;
    Based on the first electronic equipment IP address information, by first data and the IP address information of the WEB server The first WEB server proxy module is sent to, so that the IP address of first electronic equipment based on the WEB server Information realizes that P2P communicates with the first WEB client side proxy module.
  4. 4. method as claimed in claim 3, it is characterised in that the first electronic equipment IP address information is based on described, After giving first data sending to the first WEB server proxy module, the method further includes:
    Obtain the second channel to communicate with the first WEB server proxy module;
    Detect whether that data pass through the second channel in one second preset time;
    When there are not data by the second channel in second preset time, the second channel is closed.
  5. 5. a kind of electronic equipment, it is characterised in that including:
    Display unit;
    First WEB server proxy module, is connected with the display unit;
    First browser, is connected with the first WEB server proxy module;
    Wherein, the first WEB server proxy module is obtaining first of the first browser in the electronic equipment During WEB access requests, first, the first server IP of the first WEB server corresponding with the first WEB access requests is obtained Address information;Then, based on the first server IP address information, the first WEB access requests are sent to described The first WEB client side proxy module in one WEB server;Then, receive and come from the first WEB client side proxy module base In the first data that the first WEB access requests obtain;Finally, first data sending is browsed to described first Device, so that first data are shown by first browser on the display unit;
    Wherein, that to be the first WEB client side proxy module be based on first data by first WEB server is described What the first WEB access requests obtained;
    Wherein, the first WEB server proxy module is when receiving the first WEB access requests, obtains and described the The first server IP address information of corresponding first WEB server of one WEB access requests, specifically includes:
    When receiving the first WEB access requests, the first URL letters of the first network address in the first WEB access requests are extracted Breath;
    Based on first URL information, receive from the first STUN servers come obtain the second of first WEB server Outer net IP address and the second outer net port;
    Based on the second outer net IP address and the second outer net port, the first service of acquisition first WEB server Device IP address information;
    Wherein, the first WEB server proxy module is based on the first server IP address information, by the first WEB Access request is sent to the first WEB client side proxy module in first WEB server, specifically includes:
    The first connection request is sent to the first STUN servers, receives the electronics that the first STUN servers return First outer net IP address of equipment and the first outer net port;
    Based on the first outer net IP address and the first outer net port, the IP address information of the electronic equipment is obtained;
    Based on the first server IP address information, by the first WEB access requests and the IP address of the electronic equipment Information is sent to the first WEB client side proxy module in first WEB server.
  6. 6. a kind of electronic equipment, the electronic equipment is WEB server, it is characterised in that is provided with the WEB server One WEB client side proxy module, the electronic equipment include:
    Second circuit board;
    First WEB client side proxy module, is electrically connected the second circuit board, is come from for receiving in the first electronic equipment The first WEB that is sent by the first WEB server proxy module in first electronic equipment of the first browser access please Ask, and the first data obtained for receiving the WEB server based on the first WEB access requests, based on described First WEB access requests, for obtaining the IP address information of first electronic equipment, based on the first electronic equipment IP Location information, for giving first data sending to the first WEB server proxy module, so that the first data energy Enough shown by first browser on the display unit of first electronic equipment;
    Wherein, the first WEB client side proxy module is based on the first WEB access requests, obtains first electronics and sets Standby IP address information, specifically includes:
    Based on the first WEB access requests, the first of first electronic equipment is extracted from the first WEB access requests Outer net IP address and the first outer net port;
    Based on the first outer net IP address and the first outer net port, the IP address for obtaining first electronic equipment is believed Breath;
    Wherein, the first WEB client side proxy module is based on the first electronic equipment IP address information, and described first is counted According to the first WEB server proxy module is sent to, specifically include:
    The second connection request is sent to the first STUN servers, receives the WEB service that the first STUN servers return Second outer net IP address of device and the second outer net port;
    Based on the second outer net IP address and the second outer net port, the IP address information of the WEB server is obtained;
    Based on the first electronic equipment IP address information, the IP address of first data and the WEB server will be included First RUDP data packets of information are sent to the first WEB server proxy module, so that first electronic equipment is based on The IP address information of the WEB server realizes that P2P communicates with the first WEB client side proxy module.
CN201210541391.9A 2012-12-13 2012-12-13 The method and electronic equipment of information processing Active CN103873515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210541391.9A CN103873515B (en) 2012-12-13 2012-12-13 The method and electronic equipment of information processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210541391.9A CN103873515B (en) 2012-12-13 2012-12-13 The method and electronic equipment of information processing

Publications (2)

Publication Number Publication Date
CN103873515A CN103873515A (en) 2014-06-18
CN103873515B true CN103873515B (en) 2018-04-27

Family

ID=50911636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210541391.9A Active CN103873515B (en) 2012-12-13 2012-12-13 The method and electronic equipment of information processing

Country Status (1)

Country Link
CN (1) CN103873515B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618400B (en) * 2015-03-09 2018-10-12 深圳市茁壮网络股份有限公司 A kind of access method and device of LAN
CN105227659B (en) * 2015-09-30 2018-12-28 深圳市先河系统技术有限公司 A kind of network communication method and equipment
CN108418884A (en) * 2018-03-09 2018-08-17 北京奇艺世纪科技有限公司 A kind of method, apparatus and electronic equipment of transmission services data
CN110247926B (en) * 2019-06-28 2022-04-22 北京奇艺世纪科技有限公司 Interaction method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728628A (en) * 2004-07-30 2006-02-01 迈普(四川)通信技术有限公司 Multiplexing method of security proxy channel, and multiplexing server of security proxy channel
CN101572727A (en) * 2009-06-11 2009-11-04 杭州华三通信技术有限公司 Method for controlling Web page menu and device thereof
CN101668032A (en) * 2008-09-05 2010-03-10 华为技术有限公司 Method, system and equipment for WEB service communication
CN102299969A (en) * 2011-09-16 2011-12-28 北京新媒传信科技有限公司 Web accessing method, layer seven switching equipment and service network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728628A (en) * 2004-07-30 2006-02-01 迈普(四川)通信技术有限公司 Multiplexing method of security proxy channel, and multiplexing server of security proxy channel
CN101668032A (en) * 2008-09-05 2010-03-10 华为技术有限公司 Method, system and equipment for WEB service communication
CN101572727A (en) * 2009-06-11 2009-11-04 杭州华三通信技术有限公司 Method for controlling Web page menu and device thereof
CN102299969A (en) * 2011-09-16 2011-12-28 北京新媒传信科技有限公司 Web accessing method, layer seven switching equipment and service network

Also Published As

Publication number Publication date
CN103873515A (en) 2014-06-18

Similar Documents

Publication Publication Date Title
CN101946493B (en) Method and system for providing connectivity between clients connected to the internet
JP6054484B2 (en) System and method using a client local proxy server to access a device having an assigned network address
CN104580192B (en) The treating method and apparatus of the network access request of application program
CN101931635B (en) Network resource access method and proxy device
US8190773B2 (en) System and method for accessing a web server on a device with a dynamic IP-address residing behind a firewall
CN103220371B (en) Content adaptation method and system
CN104994079B (en) The treating method and apparatus of access request accelerates server
CN102143243B (en) Dynamic routing processing method and dynamic routing processing device and home gateway thereof
WO2006032993A3 (en) System and method for communication with universal integrated circuit cards in mobile devices using internet protocols.
EP2156647B1 (en) Method of managing communication between an electronic token and a remote web server
CN103873515B (en) The method and electronic equipment of information processing
WO2007038002A2 (en) System and method for lowering proxy bandwidth utilization
CN103001860A (en) Achieving system for converged communication Web instant messages
US9065526B2 (en) Relay device, relay method, and relay device control program
CN102143187A (en) Method and system for terminal equipment to access network as well as network access proxy device
CN102624918A (en) Proxy access method based on URL (Uniform Resource Locator) rewriting technique
CN104243506A (en) Browser redirection method and device
CN107222561A (en) A kind of transport layer reverse proxy method
CN102035869A (en) Method, device and system for sharing files by using mobile terminal
CN101123578A (en) A method and system for improving access speed of network resource
EP2827258A1 (en) Embedded network proxy system, terminal device and proxy method
CN107872548A (en) Web page interlinkage method, apparatus and readable storage medium storing program for executing
CN106528563A (en) Content access method and apparatus
CN114900496B (en) Communication method and related equipment
CN104541491B (en) Method for pushing, device and the terminal of Webpage

Legal Events

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