CN102394944A - Method and equipment for correcting IP (Internet Protocol) address in Web access - Google Patents

Method and equipment for correcting IP (Internet Protocol) address in Web access Download PDF

Info

Publication number
CN102394944A
CN102394944A CN2011102761200A CN201110276120A CN102394944A CN 102394944 A CN102394944 A CN 102394944A CN 2011102761200 A CN2011102761200 A CN 2011102761200A CN 201110276120 A CN201110276120 A CN 201110276120A CN 102394944 A CN102394944 A CN 102394944A
Authority
CN
China
Prior art keywords
address
client
isp
server
active
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
CN2011102761200A
Other languages
Chinese (zh)
Other versions
CN102394944B (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.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology 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 Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201110276120.0A priority Critical patent/CN102394944B/en
Publication of CN102394944A publication Critical patent/CN102394944A/en
Application granted granted Critical
Publication of CN102394944B publication Critical patent/CN102394944B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and equipment for correcting IP (Internet Protocol) address in a Web access. The method comprises the following steps of: when receiving a Web access request of a client terminal, judging whether the current client terminal is needed to be modified and detected or not according to a preset probability, if SO, according to the data in a statistical library, comparing the differences between the loading time of the current client terminal and the loading time of other client terminals when the current client terminal and the other client terminals which belong to the same region with the current client terminal access the IP address of a special server, and determining whether an ISP (Internet Service Provider) in which the IP address of the current client terminal in the address library is located is needed to be modified according to the difference; if SO, randomly giving out an ISP modification address, wherein the ISP modification address is different from the ISP address in which the IP address of the current client in the address library is located; and returning a command which can guide the current client terminal to jump to a corresponding ISP server address to the current client terminal. The technical scheme of the invention improves the accuracy of an IP address library, so that the efficiency of the acceleration of the Web access across the ISP is improved.

Description

IP address base modification method and equipment in a kind of web access
Technical field
The present invention relates to Internet technical field, particularly relate to IP address base modification method and equipment in a kind of web access.
Background technology
In practical application, multiple internet service provider (ISP, Internet Service Provider) also deposits, and interface network limited bandwidth between the ISP, and access speed is slower when having caused the cross-domain access to netwoks Web server of client.Receive the restriction of overall interface capacity between two ISP networks when for example the user capture of a use telecommunications ADSL is deployed in the Web server in the Internet data center of northern Netcom (IDC, Internet Data Center), access speed is slower.A large amount of uses along with intelligent mobile terminal equipment; Switching frequency between mobile network and the fixed network (WIFI) increases; Internet service need take into account the cross-domain visit between mobile Internet and the fixed internet, has further improved the demand for the speeding scheme of striding the ISP visit.
Present strides in the ISP web access speed technology, generally can judge the ISP under the client ip address according to the IP address base.Obtaining of IP address base can be obtained from the address base of APNIC (the Asia-Pacific network management committee).
Use the subject matter of APNIC address base to be; Because each operator's IP address assignment situation change not necessarily can be synchronized to APNIC effectively and timely; Therefore exist the inaccurate phenomenon of address base; The complicated interconnected situation of bgp network between the carrier ID C simultaneously also is that the conduct interviews judgement of node speed runs into inaccurate phenomenon sometimes according to the IP address base.
It is thus clear that; Because there are inaccurate problem in complicated network environment condition and APNIC IP address base; May cause and judge error, for example user's IP address is judged to be the UNICOM network address, but might be because address base inaccurate; Perhaps because the structure of Access Network, cause the essence user capture telecommunications network service device can be faster.
Summary of the invention
The invention provides the IP address base modification method in a kind of web access, this method can be improved the accuracy of IP address base, promotes to stride the efficient that the ISP web access is quickened.
The present invention also provides the corrective of the IP address base in a kind of web access, and this equipment can improve the accuracy of IP address base, promotes to stride the efficient that the ISP web access is quickened.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention discloses the IP address base modification method in a kind of web access, this method comprises:
When receiving the client web access request of expression active client visit particular server IP address; Whether the needs correction detects according to presetting the probabilistic determination active client; Be then according to statistics in the storehouse data comparison active client and and the difference of active client between the load time when belonging to the said particular server IP of each client-access address of same region, confirm the whether needs correction of ISP at the place, active client IP address in the address base according to this difference; Said statistics storehouse obtains for the load time of the server ip address in the client-access assigned I SP that belongs to same region is gathered;
When confirming to need to revise, provide an ISP modified address at random, this ISP modified address is different with the ISP at place, active client IP address in the address base, and it jumps to the instruction on the corresponding isp server address to return guiding to active client.
The invention also discloses the IP address base corrective in a kind of web access, this equipment is seven layer exchange devices, it is characterized in that, this equipment comprises:
The load time statistical module is used for the load time of the server ip address in the client-access assigned I SP that belongs to same region is recorded the statistics storehouse;
The address base collection module is used to safeguard address base;
The address base administration module is used for the management address storehouse, to intelligent routing module inquiry service is provided;
The intelligence routing module; Be used for when receiving the client web access request of expression active client visit particular server IP address; Obtain client ip address; According to the ISP of client ip address to address base administration module inquiring client terminal place, judge client web access request the server ip address that will visit whether consistent with the ISP that client belongs to; If it is inconsistent then return guiding to client it jumps to the instruction on corresponding isp server address; If unanimity according to preset the probabilistic determination active client whether the needs correction detect, be then just said client web access request to be sent to the route correcting module; When receiving the notice of the needs correction that the route correcting module sends; Provide an ISP modified address at random; This ISP modified address is different with the ISP at place, active client IP address in the address base, and it jumps to the instruction on the corresponding isp server address to return guiding to active client, when receiving the notice that need not revise; Client web access request is transmitted to the reverse proxy module, and the response data of reverse proxy module feedback is returned to client;
The reverse proxy module is used for after the client web access request that receives intelligent routing module transmission, is forwarded to the relevant Web server according to the negative preset strategy that carries, and the response data that Web server returns is fed back to intelligent routing module;
The route correcting module; Be used for according to the data comparison active client in statistics storehouse and and the difference of active client between the load time when belonging to the said particular server IP of each client-access address of same region; Confirm the whether needs correction of ISP under the active client IP address in the address base according to this difference; Be the notice that then needs correction, otherwise send the notice that need not revise to intelligent routing module to intelligent routing module transmission;
By above-mentioned visible; The present invention is this to receive when representing that active client is visited the client web access request of particular server IP address; Whether the needs correction detects according to presetting the probabilistic determination active client; Be then according to statistics in the storehouse data comparison active client and and the difference of active client between the load time when belonging to the said particular server IP of each client-access address of same region, confirm the whether needs correction of ISP at the place, active client IP address in the address base according to this difference; Said statistics storehouse obtains for the load time of the server ip address in the client-access assigned I SP that belongs to same region is gathered; When confirming to need to revise; Provide an ISP modified address at random; This ISP modified address is different with the ISP at place, active client IP address in the address base; And it jumps to the technical scheme of the instruction on the corresponding isp server address to return guiding to active client, can improve the accuracy of IP address base, promotes and strides the efficient that the ISP web access is quickened.
Description of drawings
Fig. 1-the 1st, the flow chart of the IP address base modification method in a kind of web access in the embodiment of the invention;
Fig. 1-2 is the frame diagram of the service network in the embodiment of the invention;
Fig. 2 is the course of work flow chart of seven layer exchange devices in the embodiment of the invention;
Fig. 3 is the structural representation of seven layer exchange devices in the embodiment of the invention.
Embodiment
Fig. 1-the 1st, the flow chart of the IP address base modification method in a kind of web access in the embodiment of the invention.Shown in Fig. 1-1, this method comprises:
101, when receiving the client web access request of expression active client visit particular server IP address, whether the needs correction detects according to presetting the probabilistic determination active client;
102; Revise if desired and detect; Then according to statistics in the storehouse data comparison active client and and the difference of active client between the load time when belonging to the said particular server IP of each client-access address of same region, confirm the whether needs correction of ISP at the place, active client IP address in the address base according to this difference; Said statistics storehouse obtains for the load time of the server ip address in the client-access assigned I SP that belongs to same region is gathered;
103, when confirming to need to revise, provide an ISP modified address at random, this ISP modified address is different with the ISP at place, active client IP address in the address base, and it jumps to the instruction on the corresponding isp server address to return guiding to active client.
Wherein, the method that load time of the server ip address in the client-access assigned I SP that belongs to same region statistics is obtained adding up the storehouse comprises: the load time of obtaining the server ip address in the client-access assigned I SP that belongs to same region; Preserving the above-mentioned load time obtains adding up the storehouse.
Concrete, the said load time of obtaining the server ip address in the client-access assigned I SP that belongs to same region comprises: when returning the response data of Web server feedback to client, the adding beginning response time stabs in response data; When client script loaded, the more said beginning response time stabbed and the local time, obtains the load time.
In one embodiment of the present of invention; Said according to statistics in the storehouse data comparison active client and and the difference of active client between the load time when belonging to the said particular server IP of each client-access address of same region, confirm according to this difference whether the needs correction specifically comprises for ISP under the active client IP address:
Average load time μ during each client-access of belonging to same region according to the said particular server IP of data computation address quilt and the active client of statistics in the storehouse; And the average variances sigma of load time, and calculate before the said particular server IP address the average load time x when being visited by active client;
Just too distribution probability formula according to following calculates the residing distribution probability f of x (x):
f ( x ) = 1 2 π σ e - ( x - μ ) 2 2 σ 2
If f (x) is less than first predetermined threshold value then do not need to revise, if instead f (x) more than or equal to first predetermined threshold value, then randomly draws correction according to the size of f (x).
Above-mentioned size according to f (x) is randomly drawed to revise and is comprised: utilize f (x) to calculate and extract probability F (x): F (x)=(f (x)-first predetermined threshold value)/second predetermined threshold value; Determine whether the ISP under the active client IP address is revised with probability F (x).
Need to prove; As f (x) during more than or equal to first predetermined threshold value; Be not all need revise, need here to calculate a new probability F (x) according to f (x) again, f (x) is revised according to this new probability F (x) more than or equal to the access request of first predetermined threshold value it.That is to say that because ISP mistake etc. cause address base wrong, what need revise is not very common in fact; For the access efficiency (and then improving the web access efficiency) that further improves address base,, take to extract the mode that part is revised here; Promptly in the access request of f (x) more than or equal to first predetermined threshold value; With F (x) is probability, extracts the part access request and carries out the address correction, in this step; When judging f (x), be that probability determines whether that need carry out the address to it revises with F (x) to the ISP under the active client IP address more than or equal to first predetermined threshold value.
Further; Said method also comprises: carry out the web visit to said client according to revised address; Calculate the load time mean value of scheduled visit number of times; If this load time mean value less than the load time of the ISP address, place of writing down in the said client-access raw address storehouse, is then replaced the ISP at the active client place in the address base with the ISP under the said revised address.
Said judge active client whether need revise detect before this method further comprise: obtain client ip address, judge the ISP that client belongs to according to client ip address and address base; Judge client web access request the server ip address that will visit whether consistent with the ISP at client place; Be then to carry out saidly to judge whether active client need revise the step of detection, it jumps to the instruction on corresponding isp server address otherwise return guiding to client.
Said judge active client whether need revise detect after this method further comprise: need not revise detection if judge active client; Client web access request is forwarded to corresponding Web server, and the response data of Web server feedback is returned to client.
The response data of Web server feedback is returned to client further to be comprised: result of determination is write client as cookie; Wherein, result of determination comprises: client ip address, ISP corresponding server IP address, client place, result of determination type; Wherein, the result of determination type is permanent or interim.
Obtain client ip address at said seven layer exchange devices; Before the ISP according to client ip address and address base judgement client place; This method further comprises: detect this client and whether have the result of determination of preserving with the cookie form; Be then to carry out following step a, obtain client ip address, judge the step of the ISP at client place according to client ip address otherwise carry out said seven layer exchange devices to steps d.
A, the cookie of said existence is decoded, obtain result of determination information;
B, judge whether the client ip address in the result of determination information is consistent with current client ip address, be execution in step c then, otherwise carry out the said client ip address that obtains, judge the step of the ISP at client place according to client ip address and address base;
C, judge in the result of determination information ISP corresponding server IP address, client place whether with active client web access request the server ip address that will visit consistent; Be execution in step d then; Otherwise carry out the said client ip address that obtains, judge the step of the ISP at client place according to client ip address and address base;
D, judge whether the result of determination type in the result of determination information is permanent; Be then client web access request to be forwarded to corresponding Web server; And the response data of Web server feedback returned to client, preset the probabilistic determination active client step whether the needs correction detects otherwise carry out said basis.
Not needing to revise if confirm the pairing ISP of this client ip address in the address base, when result of determination is write client as cookie, is permanent with the result of determination class record then.
Judging the result in the address base, if not through revising, is interim with the result of determination class record then, if passed through correction, is permanent with the result of determination class record then.
This shows that the described method of Fig. 1-1 can be improved the accuracy of IP address base, and then promote the efficient of striding ISP web access acceleration.
Such scheme among Fig. 1-1, promptly can use with intelligent DNS in, also can be applied to be referred to as service network here in a kind of private network structure that the present inventor proposes, this service network can realize that the web access of striding ISP quickens.In the practical application, the IP address base modification method in the web access that this programme provides also can be applied in other and judge that according to the IP address base embodiment of the invention does not limit this in the technical scheme of the ISP under the client ip address.
In order to make the object of the invention, technical scheme and advantage clearer, be application background below with the service network, describe the present invention in conjunction with accompanying drawing and specific embodiment.
Service network is arranged on the IDC of Internet data center that a plurality of ISP circuits accesses can be provided.For example, on the IDC that can provide Netcom, telecommunications and China Mobile's circuit to insert simultaneously, 3 different IP addresses of 3 operator's circuits of application.On the server disposition structure, in the network topology of Web service, adopt the deployment architecture of four layer exchange devices+7 layer exchange devices+Web server.
4 layer exchange devices adopt direct forwarding (DR) pattern of Linux virtual server (LVS, Linux Virtual Server) soft switch under the Linux, and 7 layer exchange devices adopt " the intelligent navigation mode " that provides among the present invention.Adopting LVS DR pattern is can solve network traffics big the time, and all requests all need be transmitted through 4 layers of 7 layers of two layer exchange device, reduce the problem of performance loss.
Fig. 1-2 is the frame diagram of the service network in the embodiment of the invention.Referring to Fig. 1-2, this service network can provide the access of a plurality of ISP circuits, and this service network comprises: fire compartment wall, four layer exchange devices, seven layer exchange devices and Web server.In one embodiment of the invention, the configuration of service network can be following:
1) special line that move, Netcom, corresponding respectively three operators of telecommunications three-line inserts, SEPARATE APPLICATION IP address on 3 circuits, 3 corresponding 3 domain names in IP addresses simultaneously.For example, application system has three domain names:
Cnc.app.com (the service IP address of corresponding Netcom network)
Ctc.app.com (corresponding telecommunications network service IP address)
Cmc.app.com (corresponding mobile network's service IP address)
2) when client web access request when the Internet sends to network service end; At first pass through fire compartment wall; Fire compartment wall carries out network address translation to client web access request; With three-layer network address transition wherein is the virtual ip address (VIP) of Intranet, and the domain name in seven layers of request header remains unchanged, four layer exchange devices that send then.
3) use LVS as four layer exchange devices here, two the LVS servers are installed and are adopted ap modes, wherein one as the master scheduling device, and another automaticallyes switch when the master scheduling device is delayed machine as the back scheduling device.The master scheduling device is according to polling algorithm, and request is forwarded on two 7 layer exchange devices.Owing to adopt DR (directly transmitting) pattern, two LVS four layer exchange devices and 2 seven layer exchange devices and have been bound with 1 VIP address (forbidding ARP service) in same LAN.
4) when client web access request is sent to seven layer exchange devices; Seven layer exchange devices judge that according to the IP address of client whether corresponding with the domain name of request the ISP of user sources service IP address at same ISP; Carry out jump instruction according to the strategy of judging and issue, perhaps turning round is dealt into Web server.Address on the Web server is not external,, as reverse proxy access response stream is directly returned to client through seven layer exchange devices.
Fig. 2 is the course of work flow chart of seven layer exchange devices in the embodiment of the invention.As shown in Figure 2, comprising:
201; When client web access request is forwarded to seven layer exchange devices, check at first whether this client exists the result of determination of cookie form preservation, when the user logins first; The result of determination that does not have preservation; Execution in step 202, if there is the result of determination of preserving, then execution in step 209.
202, according to client web access acquisition request client ip address, judge the ISP at client place according to client ip address.
In this step, the load address information table and forms binary search tree BST structure in internal memory from address base, on BST, searches pairing ISP of this client ip address and regional information according to client ip address.
203, judge client web access request the server ip address that will visit whether consistent with the ISP at client place, be execution in step 205 then, otherwise execution in step 204.
Here; Client web access request the server ip address that will visit whether consistent with the ISP at client place, for example be meant whether the address of the user capture of Netcom is the address of service of network, if unanimity then; If the address of service of telecommunications then is inconsistent.
204, it jumps to the instruction on the corresponding isp server address to return guiding to client, for example HTTP 302 jump instructions, and the guiding client jumps on the pairing I SP of the IP address server address, gets into step 208.
205, adopt to extract a certain proportion of random number algorithm and judge whether this client need revise detection, be execution in step 206 then, otherwise execution in step 207.
In one embodiment of the invention, can according to preset the probabilistic determination active client whether the needs correction detect, for example this ratio gets 10%, promptly randomly draws 10% client and revises detection.
206, judge the whether needs correction of the pairing ISP of this client ip address in the address base according to preset strategy, be then to provide an ISP modified address at random, and to jumping to step 204, otherwise get into step 207.
If do not need to revise, when result of determination is write client as cookie, be permanent then with the result of determination class record.
In this step, need to determine whether to revise according to the irrelevances of whole average load times of average first byte load time of client-access and access services address, this is the emphasis of technical scheme of the present invention, and the back is described in detail.
207, client web access request is forwarded to corresponding Web server, get access to the true response data that Web server returns as reverse proxy, and return to client.
Can when getting access to the true response data that Web server returns, on it, add the timestamp that response is sent in this step,, can add at head in the page and load the Javascript script that detects, report to server for the page of observation.
Step 208, the interception response, the head in response data writes client with result of determination as cookie, with the frequent judgement of avoiding client to be repeated.
The cookie that records client judges that in order to reduce unnecessary repeating alleviate the calculated load of server end, Cookie is one section information that adopts the DES algorithm for encryption, through restoring a result of determination object after the deciphering, comprises following information:
Client ip address: the source IP of the client of the visit when taking place to judge;
ISP corresponding server IP address, client place: judge ISP corresponding server IP address, client place;
Result of determination type: permanent or interim; For the result in the address base, if do not pass through the correction of correcting module, be interim result, be permanent result if revised then promoted.
209, the cookie that exists is decoded, obtain result of determination information.
210, judge whether the client ip address in the result of determination information is consistent with current client ip address, be execution in step 211 then, otherwise execution in step 202.
211, judge in the result of determination information ISP corresponding server IP address, client place whether with active client web access request the server ip address that will visit consistent, be execution in step 212 then, otherwise execution in step 202.
212, judge that whether the result of determination type in the result of determination information is permanent, be execution in step 207 then, otherwise execution in step 205.
In flow process shown in Figure 2, in step 205 according to preset probabilistic determination whether the needs correction detect, revise if desired then in step 206 according to preset strategy and judge the whether needs correction of the pairing ISP of this client ip address in the address base.Here this part content is elaborated.
The overall thought of correction algorithm is: according to Principle of Statistics; The time of the server address of the client-access of same region in same ISP should be a more stable value generally; If compare with the client of equal conditions, there is evident difference in the load time, so just has query; Might be to get the wrong sow by the ear; Can attempt using other isp server address to detect, if testing result is to be deployed in other ISP to go up the server address access speed very fast, modified address storehouse then.Comprise specifically following some:
The load time that (1) seven layer exchange device will belong to the server ip address in the client-access assigned I SP of same region records in the statistics storehouse; Each visit all need be obtained the load time, and adds in the statistics storehouse; The statistics storehouse is brought in constant renewal in.
Seven layer exchange devices add beginning response time stamp in response data when returning the response data of Web server feedback to client; When client script loaded, the more said beginning response time stabbed and the local time, obtains the load time, and will send to seven layer exchange devices the load time; In the statistics storehouse of seven layer exchange devices with the load time record of client transmission.
(2) through the mass data statistics; Load time basically with the match of standardized normal distribution situation; When needs were judged a client ip address, at first whether this client ip address of inquiry existed the visit load time in the statistics storehouse in the statistics storehouse, revised (further if do not exist then do not need; Whether the data recorded amount in the storehouse of can also confirming to add up can be used as the basis of statistical computation; If data volume is too little, then statistical value does not have practical significance), if exist then revise:
Seven layer exchange devices according to statistics in the storehouse data comparison active client and and the difference of active client between the load time when belonging to the said particular server IP of each client-access address of same region, confirm the whether needs correction of ISP at the place, active client IP address in the address base according to this difference.Be specially:
Average load time μ during each client-access of belonging to same region according to the said particular server IP of data computation address quilt and the active client of statistics in the storehouse; And the average variances sigma of load time, calculate before the said particular server IP address the average load time x when being visited by active client;
Just too distribution probability formula according to following calculates the residing distribution probability f of x (x):
f ( x ) = 1 2 π σ e - ( x - μ ) 2 2 σ 2
If f (x) less than first predetermined threshold value then do not need to revise, if instead (x) more than or equal to first predetermined threshold value, then randomly draws correction according to the size of f (x).For example, the probability of randomly drawing correction is got: (f (x)-first predetermined threshold value)/second predetermined threshold value.
The computational methods of above-mentioned average load time μ are specially: the load time to repeatedly sues for peace, and then divided by number of times.That is:
μ=(x 1+x 2+…+x N)/N
Wherein, x iRepresent the time of the i time loading, N is access times.
The computational methods of the average variances sigma of above-mentioned load time are specially:
σ = [ ( x 1 - μ ) 2 + ( x 2 - μ ) 2 + . . . ( x N - μ ) 2 ] / N
The computational methods of average load time x when above-mentioned said particular server IP address is visited by active client before are specially: to the repeatedly access time summation of active client, again divided by number of times, that is:
x=(x 1+x 2+…+x M)/M
In one embodiment of the invention, said first predetermined threshold value is 0.7, and said second predetermined threshold value is 0.3.That is, if f (x)<0.7 then do not need to revise confirms that the result has been the permanent result who judges but need return.Otherwise the deviation of f (x) >=0.7 explanation range averaging load time is bigger, randomly draws correction according to the size of f (x), and the probability of correction is (f (x)-0.7)/0.3, promptly randomly draws correction with probability (f (x)-0.7)/0.3.For example, if f (x) is 0.8, then randomly draw correction with the probability of (0.8-0.7)/0.3.That is to say that at f (x) be at 0.8 o'clock, the probability that (0.8-0.7)/0.3 is arranged is that this pairing IP address base of client web access request is revised, and has the probability of 1-(0.8-0.7)/0.3 it not to be revised on the contrary.
(3) load time of the said ISP modified address of this client-access is carried out record; If the load time mean value of scheduled visit number of times (for example 5 times) is littler than the load time of the ISP address, place of writing down in this client-access raw address storehouse; The ISP that then belongs to the active client in the replacement of the ISP under the said modified address address base; And becoming the permanent modifications result, the record result of determination is a permanent type in cookie.
(4) if the load time of the said ISP modified address of this client-access goes back big than the load time of the ISP address, place of writing down in this client-access raw address storehouse; Then do not replace; The former ISP information at this client ip address place in the address base is modified to permanent result of determination; In follow-up judgement,, also no longer revise even if there is more significantly access time deviation.
Experiment showed, in the operational system of reality, use above-mentioned intelligent correction algorithm to compare, show that through all detection data the Whole Response time has improved 18.6%, so this method has practical project value with not using this algorithm.
Fig. 3 is the structural representation of seven layer exchange devices in the embodiment of the invention.As shown in Figure 3, this seven layer exchange device comprises: address base collection module 301, address base administration module 302, intelligent routing module 303, reverse proxy module 304, route correcting module 305 and load time statistical module 306.Wherein:
Load time statistical module 306 is used for the load time of the server ip address in the client-access assigned I SP that belongs to same region is recorded the statistics storehouse;
Address base collection module 301 is used to safeguard address base;
Address base administration module 302 is used for the management address storehouse, to intelligent routing module inquiry service is provided;
Intelligence routing module 303; Be used for when receiving the client web access request of expression active client visit particular server IP address; Obtain client ip address; According to the ISP of client ip address to address base administration module 302 inquiring client terminals places, judge client web access request the server ip address that will visit whether consistent with the ISP that client belongs to; If it is inconsistent then return guiding to client it jumps to the instruction (like the HTTP302 jump instruction) on corresponding isp server address; If unanimity according to preset the probabilistic determination active client whether the needs correction detect, be then just said client web access request to be sent to route correcting module 305; When receiving the notice of the needs correction that route correcting module 305 sends; Provide an ISP modified address at random; This ISP modified address is different with the ISP at place, active client IP address in the address base, and it jumps to the instruction on the corresponding isp server address to return guiding to active client, when receiving the notice that need not revise; Client web access request is transmitted to reverse proxy module 304, and the response data of reverse proxy module 304 feedbacks is returned to client;
Reverse proxy module 304 is used for after the client web access request that receives intelligent routing module 303 transmissions, is forwarded to the relevant Web server according to the negative preset strategy that carries, and the response data that Web server returns is fed back to intelligent routing module 303;
Route correcting module 305; Be used for according to the data comparison active client in statistics storehouse and and the difference of active client between the load time when belonging to the said particular server IP of each client-access address of same region; Confirm the whether needs correction of ISP under the active client IP address in the address base according to this difference; Be the notice that then needs correction, otherwise send the notice that need not revise to intelligent routing module to intelligent routing module transmission.
In equipment shown in Figure 3; Route correcting module 305; Average load time μ when being used for the said particular server IP of data computation address quilt and active client according to the statistics storehouse and belonging to each client-access of same region; And the average variances sigma of load time, calculate before the said particular server IP address the average load time x when being visited by active client; Just too distribution probability formula according to following calculates the residing distribution probability f of x (x):
f ( x ) = 1 2 π σ e - ( x - μ ) 2 2 σ 2
If f (x) is less than first predetermined threshold value then do not need to revise, if instead f (x) more than or equal to first predetermined threshold value, then randomly draws correction according to the size of f (x).
In equipment shown in Figure 3, said intelligent routing module 303 is used for when the response data with reverse proxy module 304 feedbacks returns to client, further result of determination being write client as cookie; Wherein, result of determination comprises: client ip address, ISP corresponding server IP address, client place, result of determination type; Wherein, the result of determination type is permanent or interim;
Said intelligent routing module 303; Before judging the ISP at client place according to client ip address; Further detect this client and whether have the result of determination of cookie form preservation; Be then to carry out following step a, otherwise carry out the step of judging the ISP at client place according to client ip address to steps d;
A, the cookie of said existence is decoded, obtain result of determination information;
B, judge whether the client ip address in the result of determination information is consistent with current client ip address, be execution in step c then, otherwise carry out the step of judging the ISP at client place according to client ip address;
C, judge in the result of determination information ISP corresponding server IP address, client place whether with active client web access request the server ip address that will visit consistent; Be execution in step d then, otherwise carry out the step of judging the ISP at client place according to client ip address;
D, judging that whether the result of determination type in the result of determination information is permanent, is then client web access request to be forwarded to the reverse proxy module, extracts a certain proportion of random number algorithm and confirms whether this client needs to detect otherwise adopt;
Said intelligent routing module 303 is used for after the notice that need not accomplish that receives the transmission of route correcting module, when result of determination is write client as cookie, is permanent with the result of determination class record.
In sum; The present invention is this to receive when representing that active client is visited the client web access request of particular server IP address; Whether the needs correction detects according to presetting the probabilistic determination active client; Be then according to statistics in the storehouse data comparison active client and and the difference of active client between the load time when belonging to the said particular server IP of each client-access address of same region, confirm the whether needs correction of ISP at the place, active client IP address in the address base according to this difference; Said statistics storehouse obtains for the load time of the server ip address in the client-access assigned I SP that belongs to same region is gathered; When confirming to need to revise; Provide an ISP modified address at random; This ISP modified address is different with the ISP at place, active client IP address in the address base; And it jumps to the technical scheme of the instruction on the corresponding isp server address to return guiding to active client, can improve the accuracy of IP address base, promotes and strides the efficient that the ISP web access is quickened
Having designed based on seven layers of exchange intelligent navigation technology provides the web access of striding ISP to quicken, and has adopted simultaneously based on searching with intelligent correction technique of client ip data and has solved the inaccurate problem of data.
The problem that the Web client-access quickens when having solved the multi-line access through seven layers of means of exchange.This taking solves the scheme that multi-line inserts acceleration based on seven layer-switching technologies, with intelligent DNS compared with techniques, overcome because operator DNS server disposition structure causes the uncontrollable problem of result of determination.
Adopt correction algorithm, this algorithm can be revised under the complex network condition, and the situation that APNIC IP address ISP attribute is made mistakes is judged the quality effect of having clear improvement for promoting.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.

Claims (10)

1. the IP address base modification method in the web access is characterized in that this method comprises:
When receiving the client web access request of expression active client visit particular server IP address; Whether the needs correction detects according to presetting the probabilistic determination active client; Be then according to statistics in the storehouse data comparison active client and and the difference of active client between the load time when belonging to the said particular server IP of each client-access address of same region, confirm the whether needs correction of ISP at the place, active client IP address in the address base according to this difference; Said statistics storehouse obtains for the load time of the server ip address in the client-access assigned I SP that belongs to same region is gathered;
When confirming to need to revise, provide an ISP modified address at random, this ISP modified address is different with the ISP at place, active client IP address in the address base, and it jumps to the instruction on the corresponding isp server address to return guiding to active client.
2. method according to claim 1 is characterized in that, the method that load time of the server ip address in the client-access assigned I SP that belongs to same region statistics is obtained adding up the storehouse comprises:
Obtain the load time of the server ip address in the client-access assigned I SP that belongs to same region;
Preserving the above-mentioned load time obtains adding up the storehouse.
3. method according to claim 1; It is characterized in that; Said according to statistics in the storehouse data comparison active client and and the difference of active client between the load time when belonging to the said particular server IP of each client-access address of same region, confirm according to this difference whether the needs correction comprises for ISP under the active client IP address:
Average load time μ during each client-access of belonging to same region according to the said particular server IP of data computation address quilt and the active client of statistics in the storehouse; And the average variances sigma of load time, and calculate before the said particular server IP address the average load time x when being visited by active client;
Just too distribution probability formula according to following calculates the residing distribution probability f of x (x):
f ( x ) = 1 2 π σ e - ( x - μ ) 2 2 σ 2
If f (x) is less than first predetermined threshold value then do not need to revise, if instead f (x) more than or equal to first predetermined threshold value, then randomly draws correction according to the size of f (x).
4. method according to claim 3 is characterized in that, said size according to f (x) is randomly drawed to revise and comprised:
Utilize f (x) to calculate and extract probability F (x): F (x)=(f (x)-first predetermined threshold value)/second predetermined threshold value;
Determine whether the ISP under the active client IP address is revised with probability F (x).
5. according to each described method in the claim 1 to 4, it is characterized in that this method further comprises:
Carry out the web visit to said client according to revised address; Calculate the load time mean value of scheduled visit number of times; If this load time mean value less than the load time of the ISP address, place of writing down in the said client-access raw address storehouse, is then replaced the ISP at the active client place in the address base with the ISP under the said revised address.
6. method according to claim 2 is characterized in that, the said load time of obtaining the server ip address in the client-access assigned I SP that belongs to same region comprises:
When returning the response data of Web server feedback to client, in response data, add beginning response time stamp;
When client script loaded, the more said beginning response time stabbed and the local time, obtains the load time.
7. according to each described method in the claim 1 to 4, it is characterized in that, said judge active client whether need revise detect before this method further comprise:
Obtain client ip address, judge the ISP that client belongs to according to client ip address and address base;
Judge client web access request the server ip address that will visit whether consistent with the ISP at client place; Be then to carry out saidly to judge whether active client need revise the step of detection, it jumps to the instruction on corresponding isp server address otherwise return guiding to client;
Said judge active client whether need revise detect after this method further comprise:
Need not revise detection if judge active client, client web access request is forwarded to corresponding Web server, and the response data of Web server feedback is returned to client.
8. method according to claim 7 is characterized in that,
The response data of Web server feedback is returned to client further to be comprised: result of determination is write client as cookie; Wherein, result of determination comprises: client ip address, ISP corresponding server IP address, client place, result of determination type; Wherein, the result of determination type is permanent or interim;
Obtain client ip address at said seven layer exchange devices; Before the ISP according to client ip address and address base judgement client place; This method further comprises: detect this client and whether have the result of determination of preserving with the cookie form; Be then to carry out following step a, obtain client ip address, judge the step of the ISP at client place according to client ip address otherwise carry out said seven layer exchange devices to steps d;
A, the cookie of said existence is decoded, obtain result of determination information;
B, judge whether the client ip address in the result of determination information is consistent with current client ip address, be execution in step c then, otherwise carry out the said client ip address that obtains, judge the step of the ISP at client place according to client ip address and address base;
C, judge in the result of determination information ISP corresponding server IP address, client place whether with active client web access request the server ip address that will visit consistent; Be execution in step d then; Otherwise carry out the said client ip address that obtains, judge the step of the ISP at client place according to client ip address and address base;
D, judge whether the result of determination type in the result of determination information is permanent; Be then client web access request to be forwarded to corresponding Web server; And the response data of Web server feedback returned to client, preset the probabilistic determination active client step whether the needs correction detects otherwise carry out said basis;
Not needing to revise if confirm the pairing ISP of this client ip address in the address base, when result of determination is write client as cookie, is permanent with the result of determination class record then;
Judging the result in the address base, if not through revising, is interim with the result of determination class record then, if passed through correction, is permanent with the result of determination class record then.
9. the IP address base corrective in the web access is characterized in that this equipment comprises:
The load time statistical module is used for the load time of the server ip address in the client-access assigned I SP that belongs to same region is recorded the statistics storehouse;
The address base collection module is used to safeguard address base;
The address base administration module is used for the management address storehouse, to intelligent routing module inquiry service is provided;
The intelligence routing module; Be used for when receiving the client web access request of expression active client visit particular server IP address; Obtain client ip address; According to the ISP of client ip address to address base administration module inquiring client terminal place, judge client web access request the server ip address that will visit whether consistent with the ISP that client belongs to; If it is inconsistent then return guiding to client it jumps to the instruction on corresponding isp server address; If unanimity according to preset the probabilistic determination active client whether the needs correction detect, be then just said client web access request to be sent to the route correcting module; When receiving the notice of the needs correction that the route correcting module sends; Provide an ISP modified address at random; This ISP modified address is different with the ISP at place, active client IP address in the address base, and it jumps to the instruction on the corresponding isp server address to return guiding to active client, when receiving the notice that need not revise; Client web access request is transmitted to the reverse proxy module, and the response data of reverse proxy module feedback is returned to client;
The reverse proxy module is used for after the client web access request that receives intelligent routing module transmission, is forwarded to the relevant Web server according to the negative preset strategy that carries, and the response data that Web server returns is fed back to intelligent routing module;
The route correcting module; Be used for according to the data comparison active client in statistics storehouse and and the difference of active client between the load time when belonging to the said particular server IP of each client-access address of same region; Confirm the whether needs correction of ISP under the active client IP address in the address base according to this difference; Be the notice that then needs correction, otherwise send the notice that need not revise to intelligent routing module to intelligent routing module transmission.
10. equipment according to claim 9 is characterized in that,
The route correcting module; Average load time μ when being used for the said particular server IP of data computation address quilt and active client according to the statistics storehouse and belonging to each client-access of same region; And the average variances sigma of load time, calculate before the said particular server IP address the average load time x when being visited by active client; Just too distribution probability formula according to following calculates the residing distribution probability f of x (x):
f ( x ) = 1 2 π σ e - ( x - μ ) 2 2 σ 2
If f (x) is less than first predetermined threshold value then do not need to revise, if instead f (x) more than or equal to first predetermined threshold value, then randomly draws correction according to the size of f (x).
CN201110276120.0A 2011-09-16 2011-09-16 Method and equipment for correcting IP (Internet Protocol) address in Web access Expired - Fee Related CN102394944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110276120.0A CN102394944B (en) 2011-09-16 2011-09-16 Method and equipment for correcting IP (Internet Protocol) address in Web access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110276120.0A CN102394944B (en) 2011-09-16 2011-09-16 Method and equipment for correcting IP (Internet Protocol) address in Web access

Publications (2)

Publication Number Publication Date
CN102394944A true CN102394944A (en) 2012-03-28
CN102394944B CN102394944B (en) 2014-01-29

Family

ID=45862147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110276120.0A Expired - Fee Related CN102394944B (en) 2011-09-16 2011-09-16 Method and equipment for correcting IP (Internet Protocol) address in Web access

Country Status (1)

Country Link
CN (1) CN102394944B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716282A (en) * 2012-09-28 2014-04-09 北京新媒传信科技有限公司 Method and system for correcting IP library
CN104333616A (en) * 2014-11-06 2015-02-04 中国科学院计算机网络信息中心 Inferring and filling method of IP address base
CN106899703A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 A kind of IP address modification method and device
CN107147695A (en) * 2017-03-31 2017-09-08 北京奇艺世纪科技有限公司 A kind of information-pushing method and device
WO2018028346A1 (en) * 2016-08-11 2018-02-15 百度在线网络技术(北京)有限公司 Method and device for accessing websites
CN109743745A (en) * 2019-02-19 2019-05-10 北京三快在线科技有限公司 The recognition methods of mobile network's access style, device, electronic equipment and storage medium
CN110300111A (en) * 2019-06-28 2019-10-01 北京金山云网络技术有限公司 Page display method, device, terminal device and server
CN112671951A (en) * 2020-12-31 2021-04-16 广州虎牙科技有限公司 IP library correction method, device, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794683A (en) * 2005-12-23 2006-06-28 深圳市深信服电子科技有限公司 Automatic selection method of line based on web
CN101340312A (en) * 2008-08-12 2009-01-07 腾讯科技(深圳)有限公司 Network quality monitoring method and system of internet data center
CN101808034A (en) * 2010-03-16 2010-08-18 杭州华三通信技术有限公司 Method and device for routing management
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794683A (en) * 2005-12-23 2006-06-28 深圳市深信服电子科技有限公司 Automatic selection method of line based on web
CN101340312A (en) * 2008-08-12 2009-01-07 腾讯科技(深圳)有限公司 Network quality monitoring method and system of internet data center
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network
CN101808034A (en) * 2010-03-16 2010-08-18 杭州华三通信技术有限公司 Method and device for routing management

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716282A (en) * 2012-09-28 2014-04-09 北京新媒传信科技有限公司 Method and system for correcting IP library
CN104333616A (en) * 2014-11-06 2015-02-04 中国科学院计算机网络信息中心 Inferring and filling method of IP address base
WO2016070483A1 (en) * 2014-11-06 2016-05-12 中国科学院计算机网络信息中心 Ip address database inferring and filling method
CN104333616B (en) * 2014-11-06 2018-08-24 中国科学院计算机网络信息中心 A kind of deduction in IP address library and fill method
CN106899703A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 A kind of IP address modification method and device
WO2018028346A1 (en) * 2016-08-11 2018-02-15 百度在线网络技术(北京)有限公司 Method and device for accessing websites
US10404657B2 (en) 2016-08-11 2019-09-03 Baidu Online Network Technology (Beijing) Co., Ltd. Method and device for accessing website
CN107147695A (en) * 2017-03-31 2017-09-08 北京奇艺世纪科技有限公司 A kind of information-pushing method and device
CN109743745A (en) * 2019-02-19 2019-05-10 北京三快在线科技有限公司 The recognition methods of mobile network's access style, device, electronic equipment and storage medium
CN110300111A (en) * 2019-06-28 2019-10-01 北京金山云网络技术有限公司 Page display method, device, terminal device and server
CN112671951A (en) * 2020-12-31 2021-04-16 广州虎牙科技有限公司 IP library correction method, device, server and storage medium
CN112671951B (en) * 2020-12-31 2022-07-05 广州虎牙科技有限公司 IP library correction method, device, server and storage medium

Also Published As

Publication number Publication date
CN102394944B (en) 2014-01-29

Similar Documents

Publication Publication Date Title
CN102299969B (en) Web accessing method, layer seven switching equipment and service network
CN102394944B (en) Method and equipment for correcting IP (Internet Protocol) address in Web access
CN103051740B (en) Domain name analytic method, dns server and domain name analysis system
CN104618243B (en) Method for routing, apparatus and system, Scheduling of Gateway method and device
US9391859B2 (en) Service coordination for a data center
CN102165741B (en) Method for intercepting and searching host in IPV6 network
CN103347068B (en) A kind of based on Agent cluster network-caching accelerated method
CN102318288B (en) Method, equipment and system of node sorting and selection
EP3021537B1 (en) Method, device and system for determining content acquisition path and processing request
KR20140009931A (en) Communication method of contents requester and contents provider for providing contents and real-time streaming contents in a contents centric network based on contents name
CN103825975A (en) Cdn node distribution server and system
CN102726031A (en) Content processing method, device and system
CN103685583A (en) Method and system for resolving domain names
CN102447624A (en) Load balancing method in server cluster, as well as node server and cluster
CN112256495A (en) Data transmission method and device, computer equipment and storage medium
EP3496346A1 (en) Data message forwarding method and apparatus
CN101420337A (en) Method, device and indexing server for resource positioning
CN103780714A (en) Method and apparatus for probing DNS server
CN112087382B (en) Service routing method and device
JP7345645B2 (en) A system that provides accurate communication delay guarantees for request responses to distributed services.
CN105592163A (en) Communication method and system
CN101599857B (en) Method, device and network detection system for detecting number of host computers accessed to sharing
CN106550058A (en) Network address translation penetration method and system using same
CN102158406A (en) Intelligent routing method for computer network links
CN111600929B (en) Transmission line detection method, routing strategy generation method and proxy server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building A block 5 layer

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140129

CF01 Termination of patent right due to non-payment of annual fee