CN102299969B - Web accessing method, layer seven switching equipment and service network - Google Patents

Web accessing method, layer seven switching equipment and service network Download PDF

Info

Publication number
CN102299969B
CN102299969B CN201110276132.3A CN201110276132A CN102299969B CN 102299969 B CN102299969 B CN 102299969B CN 201110276132 A CN201110276132 A CN 201110276132A CN 102299969 B CN102299969 B CN 102299969B
Authority
CN
China
Prior art keywords
client
address
isp
server
web
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
CN201110276132.3A
Other languages
Chinese (zh)
Other versions
CN102299969A (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 CN201110276132.3A priority Critical patent/CN102299969B/en
Publication of CN102299969A publication Critical patent/CN102299969A/en
Application granted granted Critical
Publication of CN102299969B publication Critical patent/CN102299969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a Web accessing method, layer seven switching equipment and a service network. The method comprises that: the service network receives a Web accessing request from a client, and judges an Internet service provider (ISP) with the client according to an Internet protocol (IP) address of the client in the Web accessing request of the client, wherein the service network can provide a plurality of ISP lines for accessing; the service network matches a to-be-accessed Web server address specified by the Web accessing request of the client in a judged ISP network; and the service network navigates the Web accessing request of the client according to the matched Web server address. By the technical scheme, cross-ISP Web accessing can be accelerated.

Description

A kind of web access method, seven layer exchange devices and service network
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of web access method, seven layer exchange devices and service network.
Background technology
In actual applications, multiple internet service provider (ISP, Internet ServiceProvider) also deposits, and interface network limited bandwidth between ISP, and while having caused the cross-domain access to netwoks Web server of client, access speed is slower.For example, when user's access of a use telecommunications ADSL is deployed in the Web server in Internet data center of northern Netcom (IDC, Internet DataCenter), be subject to overall interface between two ISP networks and hold quantitative limitation, access speed is slower.Along with a large amount of uses of intelligent mobile terminal equipment, switching frequency between mobile network and fixed network (WIFI) increases, Internet service need to take into account the cross-domain access between mobile Internet and fixed the Internet, has further improved the demand for the speeding scheme across ISP access.
Therefore, the current web access acceleration problem across ISP in the urgent need to address.
Summary of the invention
The invention provides a kind of web access accelerated method across ISP, the method can realize across ISP web access and accelerating.
The present invention also provides a kind of seven layer exchange devices, and these seven layers of exchange energies realize across ISPWeb access and accelerating.
The present invention also provides a kind of service network, and this service network can be realized across ISP web access and accelerating.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention discloses a kind of web access method, the method comprises:
Service network receives client web access request, judges the ISP of ISP at client place according to the client ip address in described client web access request; Described service network can provide multiple ISP circuit accesses;
Service network mates the Web server address that described client web access request will be accessed in the ISP of described judgement network;
Service network navigates to client web access request according to mated Web server address.
The invention also discloses a kind of seven layer exchange devices, described seven layer exchange devices are arranged in service network, and described service network can provide multiple ISP circuit accesses;
Described seven layers of this equipment of exchange comprise: intelligent routing module;
Described intelligent routing module comprises,
Determining unit, for receiving client web access request, judges the ISP at client place according to the client ip address in described client web access request;
Matching unit, mates for the ISP network in described judgement the Web server address that described client web access request will be accessed;
Navigation elements, for navigating to client web access request according to mated Web server address.
The invention also discloses a kind of service network, described service network can provide the access of multiple ISP circuits; This service network comprises: the fourth layer equipment, and above-mentioned seven layer exchange devices;
Wherein the fourth layer equipment adopts the DR pattern that directly forwards of Linux virtual server LVS soft switch, according to polling algorithm, received client web access request is forwarded to seven layer exchange devices.
From above-mentioned, in the present invention, service network receives client web access request, according to the client ip address in described client web access request, judge the ISP at client place, in the ISP of described judgement network, mate the Web server address that described client web access request will be accessed, the technical scheme of client web access request being navigated according to mated Web server address, can realize across ISP web access and accelerating.
Accompanying drawing explanation
Fig. 1-1st, the frame diagram of the service network in the embodiment of the present invention;
Fig. 1-2 is the flow chart of the web access method in the embodiment of the present invention;
Fig. 2 is the course of work flow chart of seven layer exchange devices in the embodiment of the present invention;
Fig. 3 is the structural representation of seven layer exchange devices in the embodiment of the present invention;
Fig. 4 is the composition structural representation of the service network in the embodiment of the present invention.
Embodiment
In enforcement process of the present invention, inventor has carried out system research for the solution of the web access acceleration problem across ISP, aspect ISP web access acceleration, can adopt content distributing network (CDN, Content Delivery Network) technology such as technology and intelligent domain name system (DNS, Domain Name System).
Intelligence DNS is a part of CDN technology, CDN technology is mainly passed through at each carrier network key node deploy server, web content is carried out to buffer memory, according to the local dns service of client place network, point to the Resource Server Gains resources that place network closes on, thereby reduce across ISP access to netwoks, hoisting velocity.CDN is relatively applicable to the access of static resource to accelerate, and for dynamic content, must access the Source Site of Web service and can realize normal service logic, therefore accelerates to be difficult for realizing.
Dynamic content accelerates mainly by intelligent DNS, to be undertaken.Current intelligent DNS technology is conventionally as follows to the speed technology of this scene, take accesses network domain name www.abc.com as example:
1) user of Netcom is to local dns request analysis www.abc.com.
2) local dns sends request to the authoritative DNS (the authoritative DNS here must be intelligent DNS) of abc.com.
3) intelligent DNS according to requestor's's (being above-mentioned local dns here) IP address the Access Control List (ACL) (ACL at oneself, Access Control List) the inside mate, then coupling Web server address return to local dns.
4) local dns is told user result, and result cache is got up.
5) user accesses the Website server on Netcom's circuit.
But use intelligent DNS service may run into following restriction: authoritative DNS must support intelligent DNS technology, or the DNS record of website upwards can be entrusted to intelligent DNS service.For some public authority site for services, in order to prevent DNS, kidnap the information security events causing, DNS can not be served to trustship to third party's intelligence DNS service provider.Under some scene, DNS record in Web service website can not be entrusted in intelligent DNS, provides the operator of ISP service that intelligent DNS service also cannot be provided, and now needs a kind of new web access speeding scheme across ISP.
Provided in the present invention a kind of private network structure, be referred to as service network here, this service network can be realized across the web access of ISP and accelerating.
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the drawings and specific embodiments, describe the present invention.
Service network in the present invention receives client web access request, judges the ISP at client place according to the client ip address in described client web access request; Described service network can provide multiple ISP circuit accesses; Service network mates the Web server address that described client web access request will be accessed in the ISP of described judgement network; Service network navigates to client web access request according to mated Web server address.
Preferably, service network is arranged on the IDC of Internet data center that multiple ISP circuit accesses can be provided.For example, can provide on the IDC of Netcom, telecommunications and China Mobile's circuit access 3 different IP addresses of 3 operator's circuits of application simultaneously.In server disposition structure, in the network topology of Web service, adopt the deployment architecture of the fourth layer equipment+7 layer exchange device+Web server.
4 layer exchange devices adopt direct forwarding (DR) pattern of Linux virtual server (LVS, Linux VirtualServer) soft switch under Linux, and 7 layer exchange devices adopt " the intelligent navigation mode " that in the present invention, provide.Adopting LVS DR pattern is can solve network traffics large time, and all requests all need to forward through 4 layers 7 layers two layer exchange device, the problem of the lowering loss of energy.
Fig. 1-1st, the frame diagram of the service network in the embodiment of the present invention.Referring to Fig. 1-1, this service network can provide the access of multiple ISP circuits, and this service network comprises: fire compartment wall, the fourth layer equipment, seven layer exchange devices and Web server.In one embodiment of the invention, the configuration of service network can be as follows:
1) movement, Netcom, telecommunications three-line be the special line of corresponding three operators access respectively, SEPARATE APPLICATION IP address on 3 circuits, simultaneously 3 corresponding 3 domain names in IP address.For example, application system has three domain names:
Cnc.app.com (the service IP address of corresponding Netcom network)
Ctc.app.com (the service IP address of corresponding communication network)
Cmc.app.com (corresponding mobile network's service IP address)
2) when client web access request sends to network service end from the Internet, first pass through fire compartment wall, fire compartment wall carries out network address translation to client web access request, the virtual ip address (VIP) that is Intranet by three-layer network address transition wherein, domain name in seven layers of request header remains unchanged, the fourth layer equipment then sending.
3) use LVS as the fourth layer equipment here, two LVS servers are installed and are adopted ap modes, wherein one as master scheduling device, and another automatically switches when master scheduling device is delayed machine as back scheduling device.Master scheduling device, according to polling algorithm, is forwarded to request on two 7 layer exchange devices.Owing to adopting DR (directly forward) pattern, two LVS the fourth layer equipment and 2 seven layer exchange devices, in same LAN, and have been bound with 1 VIP address (forbidding ARP service).
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 service IP address that whether ISP of user sources is corresponding with the domain name of request is at same ISP, according to the strategy of judging, carry out jump instruction and issue, or turn round and be dealt into Web server.Address on Web server is not external, by seven layer exchange devices, as reverse proxy, access response stream is directly returned to client.
Fig. 1-2 is the flow chart of the web access method in the embodiment of the present invention.As shown at Fig. 1-2, the method comprises:
101, receive client web access request, according to the client ip address in described client web access request, judge the ISP at client place.
102, in the ISP of described judgement network, mate the Web server address that described client web access request will be accessed.
103, according to mated Web server address, client web access request is navigated.
Describedly in the ISP of described judgement network, mate the Web server address that described client web access request will access and comprise: judge that whether the server ip address that client web access request will access is consistent with the ISP at client place, if consistent, the server ip address that client web access request will be accessed is as the Web server address of coupling, if inconsistent, according to the corresponding relation between preset each ISP network side web server address (here, can to this corresponding relation, upgrade according to the change of the variation of resource and IP address etc.), the web server address of the described client place ISP network side that the server ip address of inquiring client terminal request access is corresponding, using the address inquiring as the Web server address of coupling.
Preferably, the corresponding relation between above-mentioned each ISP network side web server address can be arranged on can provide the IDC of multiple ISP circuit accesses upper, and concrete can be arranged on this service network.
Describedly according to mated Web server address, client web access request is navigated and comprised: the Web server address obtaining according to described coupling, guiding client is forwarded to corresponding Web server by client web access request, and the response data of Web server feedback is returned to client.
If the server ip address that client web access request will be accessed is consistent with the ISP at client place, whether seven layer exchange devices are further: according to preset probabilistic determination active client, need to revise and detect, be according to statistics the data comparison active client in storehouse and and the load time of active client while belonging to particular server IP address described in each client-access of same region between difference, according to this difference, determine whether the ISP at the place, active client IP address in address base needs to revise; Described statistics storehouse is to gather the load time of the server ip address in the client-access assigned I SP to belonging to same region to obtain; Be, the server ip address that will access described client web access request is revised, and revised server ip address place ISP and described client place ISP are inconsistent, using revised address as the Web server address of coupling; Otherwise, carry out the Web server address of the described server ip address that client web access request will be accessed as coupling.
Wherein, the method that obtains adding up storehouse to belonging to the load time statistics of the server ip address in the client-access assigned I SP of same region 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 storehouse.
It should be noted that, each access all needs to obtain the load time, and adds in statistics storehouse; Statistics storehouse is constantly updated.
Concrete, described in obtain the server ip address in the client-access assigned I SP that belongs to same region load time comprise: when returning to the response data of Web server feedback to client, in response data, add and start response time stamp; When client script loads, more described beginning response time stamp and local time, obtain the load time.
That is to say, seven layer exchange devices are aggregated into statistics storehouse by the load time that belongs to the server ip address in the client-access assigned I SP of same region and comprise: seven layer exchange devices, when returning to the response data of Web server feedback to client, add and start response time stamp in response data; When client script loads, more described beginning response time stamp and local time, obtain the load time, and will send to seven layer exchange devices the load time; In the statistics storehouse of the load time record that seven layer exchange devices send client.
Described according to statistics the data comparison active client in storehouse and and the load time of active client while belonging to particular server IP address described in each client-access of same region between difference, according to this difference, determine whether ISP under active client IP address needs to revise and comprise:
Data according to statistics in storehouse are calculated the average load time μ of described particular server IP address while being belonged to each client-access of same region with active client, and the average variances sigma of load time, and calculate the average load time x while being accessed by active client before described particular server IP address;
According to following just too distribution probability formula, calculate the residing distribution probability f of x (x):
f ( x ) = 1 2 π σ e - ( x - μ ) 2 2 σ 2
If f (x) is less than the first predetermined threshold value, do not need to revise, if instead f (x) is more than or equal to the first predetermined threshold value, according to the size of f (x), randomly draw correction.
Concrete, the described 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;
With probability F (x), determine whether the ISP under active client IP address to revise.
It should be noted that, when f (x) is more than or equal to the first predetermined threshold value, not all need it to revise, here need according to f (x), to calculate a new probability F (x) again, the access request that f (x) is more than or equal to the first predetermined threshold value is revised according to this new probability F (x).That is to say, because ISP mistake etc. causes address base wrong, that need to revise is in fact not very common, in order further to improve the access efficiency (and then improving web access efficiency) of address base, herein, the mode of taking extracting part to divide to revise, f (x) is more than or equal in the access request of the first predetermined threshold value, take F (x) as probability, extract part access request and carry out address correction, in this step, when judging that f (x) is more than or equal to the first predetermined threshold value, ISP under active client IP address is determined whether take F (x) as probability need to carry out address correction to it.
Further, for described client, according to revised address, carry out web access, calculate the load time mean value of scheduled visit number of times, if this load time mean value is less than the load time of the ISP address, place of recording in described client-access raw address storehouse, with the ISP under described revised address, replace the ISP at the active client place in address base.
Described judge active client whether need to revise detect before the method further comprise: obtain client ip address, according to client ip address and address base, judge the ISP at client place; Judge that whether the server ip address that client web access request will access is consistent with the ISP at client place, be to carry out the described step that judges whether active client needs correction to detect, otherwise return to guiding to client, it jumps to the instruction on corresponding isp server address.
Described, judge whether active client needs correction to detect the method afterwards and further comprise: if judge active client, do not need to revise detection, 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 to client as cookie; Wherein, result of determination comprises: client ip address, server ip address, result of determination type that client place ISP is corresponding; Wherein, result of determination type is permanent or interim;
At described seven layer exchange devices, obtain client ip address, before the ISP at client ip address and address base judgement client place, the method further comprises: detect this client and whether have the result of determination of preserving with cookie form, to carry out following step a to steps d, otherwise carry out described seven layer exchange devices and obtain client ip address, according to client ip address, judge the step of the ISP at client place;
A, the cookie of described existence is decoded, obtain result of determination information;
B, judging that whether the client ip address in result of determination information is consistent with current client ip address, is to perform step c, otherwise obtains client ip address described in carrying out, and judges the step of the ISP at client place according to client ip address and address base;
C, judge that the server ip address whether server ip address corresponding to client place ISP in result of determination information will access with active client web access request is consistent, to perform step d, otherwise described in carrying out, obtain client ip address, according to the step of the ISP at client ip address and address base judgement client place;
D, judge whether the result of determination type in result of determination information is permanent, client web access request to be forwarded to corresponding Web server, and the response data of Web server feedback is returned to client, otherwise carry out the described step that whether needs to revise detection according to preset probabilistic determination active client.
If determine that the corresponding ISP of this client ip address in address base does not need to revise, using result of determination when cookie writes client, by result of determination class record, be permanent.
Judging the result in address base, if not through revising, be interim by result of determination class record, if passed through correction, is permanent by result of determination class record.
Provide the workflow of seven layer exchange devices below.
Fig. 2 is the course of work flow chart of seven layer exchange devices in the embodiment of the present invention.As shown in Figure 2, comprising:
201, when client web access request is forwarded to seven layer exchange devices, first check whether this client exists the result of determination that cookie form is preserved, when user logins first, there is no the result of determination of preserving, execution step 202, if there is the result of determination of preserving, performs step 209.
202, according to client web access acquisition request client ip address, according to client ip address, judge the ISP at client place.
In this step, from address base, load address information table, in internal memory, and forms binary search tree BST structure, searches the corresponding ISP of this client ip address and regional information according to client ip address on BST.
203, judge that whether the server ip address that client web access request will access is consistent with the ISP at client place, be to perform step 205, otherwise execution step 204.
Here, whether the server ip address that client web access request will be accessed is consistent with the ISP at client place, for example, refer to whether the address of user's access of Netcom is the address of service of network, if it is consistent, if the address of service of telecommunications is inconsistent.
204, to client, return to HTTP 302 jump instructions, guiding client jumps on the corresponding isp server of IP address address, enters step 208.
205, adopt a certain proportion of random number algorithm of extraction to judge whether this client needs to detect, and is to perform step 206, otherwise execution step 207.
In one embodiment of the invention, this ratio gets 10%, randomly draws 10% client and detects.
206, according to preset strategy, judge whether the corresponding ISP of this client ip address in address base needs to revise, and is to provide a random ISP modified address, and to jumping to step 204, otherwise enter step 207.
If do not need to revise, using result of determination when cookie writes client, by result of determination class record, be permanent.
In this step, can determine whether to need to revise according to the irrelevance of whole average load times of the Mean first byte load time of client-access and access services address.
207, client web access request is forwarded to corresponding Web server, as reverse proxy, get the true response data that Web server returns, and return to client.
Can be when getting the true response data that Web server returns in this step, the timestamp that adds response to send on it, for the page of observation, can add and load the Javascript script detecting at head in the page, to server, reports.
Step 208, interception response, at the head of response data, writes client using result of determination as cookie, with the frequent judgement of avoiding client to be repeated.
The cookie that is recorded to client is in order to reduce the unnecessary judgement that repeats, and alleviates the calculated load of server end, and Cookie is one section of information that adopts DES algorithm for encryption, after deciphering, can restore a result of determination object, comprises following information:
Client ip address: the source IP of the client of the access while occurring to judge;
Server ip address corresponding to client place ISP: judge server ip address corresponding to client place ISP;
Result of determination type: permanent or interim; For the result in address base, if do not pass through the correction of correcting module, be interim result, if be corrected, be promoted to permanent result.
209, the cookie existing is decoded, obtain result of determination information.
210, judge that whether the client ip address in result of determination information is consistent with current client ip address, be to perform step 211, otherwise execution step 202.
211, judge that the server ip address whether server ip address corresponding to client place ISP in result of determination information will access with active client web access request is consistent, be to perform step 212, otherwise execution step 202.
212, judge whether the result of determination type in result of determination information is permanent, be to perform step 207, otherwise execution step 205.
Flow process is as shown in Figure 2 visible, and seven layer exchange devices further write client using result of determination as cookie; Before judging the ISP at client place according to client ip address, detect this client and whether have the result of determination of preserving with cookie form, be according to the result of determination information judgement in cookie, this time whether to need to judge according to client ip address the ISP at client place, otherwise carry out the step of judging the ISP at client place according to client ip address.
Fig. 3 is the structural representation of seven layer exchange devices in the embodiment of the present 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 and reverse proxy module 304.Wherein:
Address base collection module 301, for safeguarding address base; Keep specifically synchronizeing with the data of APNIC, by the address base that captures APNIC announcement, safeguard local described address base.APNIC is the official mission that is responsible for Asian-Pacific area IP address end and AS number assignment.
Address base administration module 302, for management address storehouse, provides inquiry service to intelligent routing module 303; Specifically for when receiving the inquiry request of intelligent routing module 303, from address base, load address information table is in internal memory, and form binary search tree BST structure, according to client ip address, on BST, search the corresponding ISP of this client ip address and regional information.
Intelligence routing module 303 comprises, determining unit, for receiving client web access request, is judged the ISP at client place according to the client ip address in described client web access request; Matching unit, mates for the ISP network in described judgement the Web server address that described client web access request will be accessed; Navigation elements, for navigating to client web access request according to mated Web server address.
Specifically, when receiving client web access request, obtain client ip address, the ISP of ISP according to from client ip address to address base administration module 302 inquiring client terminal places, whether matching unit is consistent with the ISP at client place specifically for the server ip address that judges client web access request and will access, if consistent, the server ip address that client web access request will be accessed is as the Web server address of coupling, client web access request is transmitted to reverse proxy module 304, and the response data that reverse proxy module 304 is fed back returns to client, if inconsistent, according to the corresponding relation between preset each ISP network side web server address, the web server address of the described client place ISP network side that the server ip address of inquiring client terminal request access is corresponding, using the address inquiring as the Web server address of coupling, to client, return to HTTP 302 jump instructions,
Reverse proxy module 304, for receiving after the client web access request that intelligent routing module 303 sends, be forwarded to corresponding Web server, and the response data that Web server is returned feeds back to intelligent routing module 303 according to the negative default strategy that carries.
Seven layer exchange devices as shown in Figure 3 further comprise: route correcting module 305;
Route correcting module 305, when judging that when described matching unit the ISP at server ip address that client web access request will access and client place is consistent, according to preset probabilistic determination, whether need client to revise detection, according to preset probabilistic determination active client, whether to need to revise to detect, be according to statistics the data comparison active client in storehouse and and the load time of active client while belonging to particular server IP address described in each client-access of same region between difference, according to this difference, determine whether the ISP at the place, active client IP address in address base needs to revise, described statistics storehouse is to gather the load time of the server ip address in the client-access assigned I SP to belonging to same region to obtain,
Be that the server ip address that will access described client web access request is revised, revised server ip address place ISP and described client place ISP are inconsistent, using revised address as the Web server address of coupling; Otherwise the server ip address that client web access request will be accessed is as the Web server address of coupling.
Concrete, described intelligent routing module 303, when the ISP that judges server ip address that client web access request will access and client place is consistent, and before client web access request is transmitted to reverse proxy module, be further used for whether needing client (for example to revise detection according to preset probabilistic determination, adopt a certain proportion of random number algorithm of extraction to determine whether this client needs to detect), client web access request to be transmitted to route correcting module 305, otherwise client web access request is transmitted to reverse proxy module 304, be further used for when receiving the notice of the needs correction that route correcting module 305 sends, the server ip address that will access described client web access request is revised, revised server ip address place ISP and described client place ISP are inconsistent, using revised address as the Web server address of coupling, to client, return to HTTP 302 jump instructions, revise in not needing of receiving that route correcting module 305 sends notice time, the server ip address that client web access request will be accessed is as the Web server address of coupling, client web access request is transmitted to reverse proxy module 304,
Route correcting module 305, for when receiving client web access request, according to preset strategy, judge whether the corresponding I SP of this client ip address in address base needs to revise, to intelligent routing module 303, to send the notice that needs correction, and provide a random ISP modified address and be synchronized to address base administration module, otherwise send and do not need the notice revised to intelligent routing module 303.
In one embodiment of the invention, described route correcting module 305, for according to the data comparison active client in statistics storehouse and and the load time of active client while belonging to particular server IP address described in each client-access of same region between difference, according to this difference, determine whether the ISP at the place, active client IP address in address base needs to revise; Be to intelligent routing module, to send the notice that needs correction, otherwise send to intelligent routing module the notice that does not need correction.
In the equipment shown in Fig. 3, described intelligent routing module 303, for when the response data that reverse proxy module 304 is fed back returns to client, further writes client using result of determination as cookie; Wherein, result of determination comprises: client ip address, server ip address, result of determination type that client place ISP is corresponding; Wherein, result of determination type is permanent or interim;
Described 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 that cookie form is preserved, be to carry out following step a to steps d, otherwise carry out the step of judging the ISP at client place according to client ip address;
A, the cookie of described existence is decoded, obtain result of determination information;
B, judging that whether the client ip address in result of determination information is consistent with current client ip address, is to perform step c, otherwise carries out the step of judging the ISP at client place according to client ip address;
C, judge that the server ip address whether server ip address corresponding to client place ISP in result of determination information will access with active client web access request is consistent, be to perform step d, otherwise carry out the step of judging the ISP at client place according to client ip address;
D, judge whether result of determination type in result of determination information is permanent, is client web access request to be forwarded to reverse proxy module, otherwise adopt, extract a certain proportion of random number algorithm and determine whether this client needs to detect;
Described intelligent routing module 303, for receiving after the notice that does not need to accomplish that route correcting module sends, using result of determination when cookie writes client, by result of determination class record, be permanent.
Fig. 4 is the composition structural representation of the service network in the embodiment of the present invention.As shown in Figure 4, the embodiment of the present invention also provides a kind of service network, and described service network can provide the access of multiple ISP circuits; This service network comprises: the fourth layer equipment 401, and seven layer exchange devices 402 as described in above-described embodiment;
Wherein the fourth layer equipment adopts the DR pattern that directly forwards of Linux virtual server LVS soft switch, according to polling algorithm, received client web access request is forwarded to seven layer exchange devices.
Further, the service network that the embodiment of the present invention provides also comprises the corresponding relation between each ISP network side web server address, for recording same asset, in each ISP network side web server address, sees corresponding relation.
Preferably, the corresponding relation between above-mentioned each ISP network side web server address can upgrade this corresponding relation according to the change of the variation of resource and IP address etc.
Seven layer exchange devices judge that whether the server ip address that client web access request will access is consistent with the ISP at client place, if consistent, the server ip address that client web access request will be accessed is as the Web server address of coupling, if inconsistent, according to the corresponding relation between preset each ISP network side web server address, the web server address of the described client place ISP network side that the server ip address of inquiring client terminal request access is corresponding, using the address inquiring as the Web server address of coupling.
Then, seven layer exchange devices navigate to client web access request according to mated Web server address.
The technical characterictic of the each functional module of service network that the embodiment of the present invention provides refers to associated description in said method embodiment and apparatus embodiments, repeats no more herein.
In sum, in the embodiment of the present invention, service network receives client web access request, according to the client ip address in described client web access request, judge the ISP at client place, in the ISP of described judgement network, mate the Web server address that described client web access request will be accessed, the technical scheme of client web access request being navigated according to mated Web server address, can realize and accelerating across ISP web access, and can solve Web service website DNS record can not entrust in intelligent DNS, the problem of accelerating across ISPWeb access when the operator that provides ISP to serve also cannot provide intelligent DNS service.
Designed based on seven layers of exchange intelligent navigation technology and provide across the web access of ISP and accelerate, adopted based on searching with intelligent correction technique of client ip data simultaneously and solved the inaccurate problem of data.
The problem that while having solved multi-line access by seven layers of means of exchange, Web client-access accelerates.This taking solves based on seven layer-switching technologies the scheme that multi-line access is accelerated, and compared with intelligent DNS technology, overcome because operator DNS server disposition structure causes the uncontrollable problem of result of determination.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.

Claims (6)

1. a web access method, is characterized in that, the method comprises:
Service network receives client web access request, judges the ISP of ISP at client place according to the client ip address in described client web access request; Described service network can provide multiple ISP circuit accesses;
Service network mates the Web server address that described client web access request will be accessed in the ISP of described judgement network;
Service network navigates to client web access request according to mated Web server address;
Describedly in the ISP of described judgement network, mate the Web server address that described client web access request will access and comprise: judge that whether the server ip address that client web access request will access is consistent with the ISP at client place, if consistent, the server ip address that client web access request will be accessed is as the Web server address of coupling, if inconsistent, according to the corresponding relation between preset each ISP network side web server address, the web server address of the described client place ISP network side that the server ip address of inquiring client terminal request access is corresponding, using the address inquiring as the Web server address of coupling,
If the server ip address that client web access request will be accessed is consistent with the ISP at client place, the method further comprises:
According to preset probabilistic determination active client, whether need to revise and detect, be according to statistics the data comparison active client in storehouse and and the load time of active client while belonging to particular server IP address described in each client-access of same region between difference, according to this difference, determine whether the ISP at the place, active client IP address in address base needs to revise; Described statistics storehouse is to gather the load time of the server ip address in the client-access assigned I SP to belonging to same region to obtain;
Be, the server ip address that will access described client web access request is revised, and revised server ip address place ISP and described client place ISP are inconsistent, using revised address as the Web server address of coupling;
Otherwise, carry out the Web server address of the described server ip address that client web access request will be accessed as coupling.
2. method according to claim 1, is characterized in that, describedly according to mated Web server address, client web access request is navigated and is comprised:
The Web server address obtaining according to described coupling, guiding client is forwarded to corresponding Web server by client web access request, and the response data of Web server feedback is returned to client.
3. according to the method described in any one in claim 1 to 2, it is characterized in that, described service network comprises seven layer exchange devices;
Described seven layer exchange devices are carried out described following steps: receive client web access request, judge the ISP of ISP at client place according to the client ip address in described client web access request; In the ISP of described judgement network, mate the Web server address that described client web access request will be accessed; According to mated Web server address, client web access request is navigated;
Described service network also comprises the fourth layer equipment;
Described the fourth layer equipment adopts the DR pattern that directly forwards of Linux virtual server LVS soft switch, according to polling algorithm, described client web access request is forwarded to seven layer exchange devices.
4. method according to claim 3, is characterized in that, the described response data by Web server feedback returns to client and further comprises: result of determination is write to client as cookie; Wherein, result of determination comprises: client ip address, server ip address, result of determination type that client place ISP is corresponding;
Before judging the ISP at client place according to client ip address, the method further comprises: detect this client and whether have the result of determination of preserving with cookie form, be according to the result of determination information judgement in cookie, this time whether to need to judge according to client ip address the ISP at client place, otherwise carry out the step of judging the ISP at client place according to client ip address.
5. seven layer exchange devices, is characterized in that, described seven layer exchange devices are arranged in service network, and described service network can provide multiple ISP circuit accesses;
Described seven layers of this equipment of exchange comprise: intelligent routing module;
Described intelligent routing module comprises,
Determining unit, for receiving client web access request, judges the ISP at client place according to the client ip address in described client web access request;
Matching unit, mates for the ISP network in described judgement the Web server address that described client web access request will be accessed;
Navigation elements, for navigating to client web access request according to mated Web server address;
Described matching unit, whether consistent with the ISP at client place specifically for judging the server ip address that client web access request will access, if consistent, the server ip address that client web access request will be accessed is as the Web server address of coupling, if inconsistent, according to the corresponding relation between preset each ISP network side web server address, the web server address of the described client place ISP network side that the server ip address of inquiring client terminal request access is corresponding, using the address inquiring as the Web server address of coupling;
This seven layer exchange device further comprises, route correcting module: when judging that when described matching unit the ISP at server ip address that client web access request will access and client place is consistent, according to preset probabilistic determination, whether need client to revise detection, be according to statistics the data comparison active client in storehouse and and the load time of active client while belonging to particular server IP address described in each client-access of same region between difference, according to this difference, determine whether the ISP at the place, active client IP address in address base needs to revise, described statistics storehouse is to gather the load time of the server ip address in the client-access assigned I SP to belonging to same region to obtain,
Be that the server ip address that will access described client web access request is revised, revised server ip address place ISP and described client place ISP are inconsistent, using revised address as the Web server address of coupling; Otherwise the server ip address that client web access request will be accessed is as the Web server address of coupling.
6. a service network, is characterized in that, described service network can provide the access of multiple ISP circuits; This service network comprises: the fourth layer equipment, and seven layer exchange devices as claimed in claim 5;
Wherein the fourth layer equipment adopts the DR pattern that directly forwards of Linux virtual server LVS soft switch, according to polling algorithm, received client web access request is forwarded to seven layer exchange devices.
CN201110276132.3A 2011-09-16 2011-09-16 Web accessing method, layer seven switching equipment and service network Active CN102299969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110276132.3A CN102299969B (en) 2011-09-16 2011-09-16 Web accessing method, layer seven switching equipment and service network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110276132.3A CN102299969B (en) 2011-09-16 2011-09-16 Web accessing method, layer seven switching equipment and service network

Publications (2)

Publication Number Publication Date
CN102299969A CN102299969A (en) 2011-12-28
CN102299969B true CN102299969B (en) 2014-04-16

Family

ID=45360139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110276132.3A Active CN102299969B (en) 2011-09-16 2011-09-16 Web accessing method, layer seven switching equipment and service network

Country Status (1)

Country Link
CN (1) CN102299969B (en)

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188243A (en) * 2011-12-30 2013-07-03 北京神州泰岳软件股份有限公司 Method providing services for users in Internet and system providing services for users in Internet
CN102611756B (en) * 2012-03-28 2015-06-10 北京蓝汛通信技术有限责任公司 Method and system for sending access request
CN103379184B (en) * 2012-04-23 2016-03-16 深圳市腾讯计算机系统有限公司 The method and system of Network access
CN102780791A (en) * 2012-07-18 2012-11-14 广东睿江科技有限公司 Self-adaption IP (Internet Protocol) method, device and system
WO2014075505A1 (en) * 2012-11-13 2014-05-22 北京奇虎科技有限公司 Method of accessing internet content across operator networks, proxy server and communication system thereof
CN102932473B (en) * 2012-11-13 2016-05-11 北京奇虎科技有限公司 The method of cross operator access to netwoks Web content
CN102970384B (en) * 2012-11-13 2016-06-01 北京奇虎科技有限公司 Proxy server and communication system
CN103841159B (en) * 2012-11-26 2017-04-19 北京新媒传信科技有限公司 Offline file transmission system and method
CN103873515B (en) * 2012-12-13 2018-04-27 联想(北京)有限公司 The method and electronic equipment of information processing
CN103581040A (en) * 2013-11-26 2014-02-12 深圳中兴网信科技有限公司 Server distributing device and server distributing method
CN103701948A (en) * 2013-12-25 2014-04-02 乐视网信息技术(北京)股份有限公司 Acquisition method and device for configuration information of domain name resolving system
CN103916489B (en) * 2014-03-31 2017-08-15 浙江宇视科技有限公司 The many IP of a kind of single domain name domain name analytic method and system
CN104753926B (en) * 2015-03-11 2019-04-12 华中科技大学 A kind of gateway admittance control method
CN106899548B (en) * 2015-12-17 2020-11-13 北京奇虎科技有限公司 IP address correction method and device
CN106899703B (en) * 2015-12-17 2021-08-20 北京奇虎科技有限公司 IP address correction method and device
CN106937277B (en) * 2015-12-30 2020-11-17 创新先进技术有限公司 Address updating method and device
CN105847397A (en) * 2016-04-25 2016-08-10 乐视控股(北京)有限公司 Method and device for providing network service for terminal device
CN107733950B (en) * 2016-08-11 2020-12-08 百度在线网络技术(北京)有限公司 Method and device for accessing website
CN106657105B (en) * 2016-12-29 2019-10-11 网宿科技股份有限公司 The sending method and device of target resource
CN107094175B (en) * 2017-04-21 2020-12-29 深圳创维数字技术有限公司 Server deployment system for realizing internetwork intercommunication and intercommunication method
CN107508760B (en) * 2017-09-20 2020-01-03 杭州安恒信息技术股份有限公司 Method for load distribution based on line source IP
CN109286520A (en) * 2018-09-03 2019-01-29 中新网络信息安全股份有限公司 The method that CDN accelerates node is constructed by intelligently parsing and Nginx reverse proxy
CN111464449B (en) * 2019-01-18 2022-07-12 广西民族大学 Inter-domain flow localization exchange method
CN110430289B (en) * 2019-07-01 2022-07-12 北京云端智度科技有限公司 Method for distinguishing same domain name request sources
CN112866116B (en) * 2020-12-31 2023-06-20 平安科技(深圳)有限公司 Network access detection method, device, equipment and storage medium
CN112887410B (en) * 2021-01-28 2022-12-20 郑州市景安网络科技股份有限公司 Running method, device, equipment and storage medium of web service program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6578066B1 (en) * 1999-09-17 2003-06-10 Alteon Websystems Distributed load-balancing internet servers
CN101610222A (en) * 2009-07-20 2009-12-23 中兴通讯股份有限公司 Client-based server selection method and device
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6578066B1 (en) * 1999-09-17 2003-06-10 Alteon Websystems Distributed load-balancing internet servers
CN101610222A (en) * 2009-07-20 2009-12-23 中兴通讯股份有限公司 Client-based server selection method and device
CN102025793A (en) * 2010-01-22 2011-04-20 中国移动通信集团北京有限公司 Domain name resolution method and system and DNS in IP network

Also Published As

Publication number Publication date
CN102299969A (en) 2011-12-28

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
US8892725B2 (en) Method for network anomaly detection in a network architecture based on locator/identifier split
EP2381647B1 (en) Session migration in content-centric networks
US9712422B2 (en) Selection of service nodes for provision of services
CN101656765B (en) Address mapping system and data transmission method of identifier/locator separation network
US11671363B2 (en) Method and apparatus for cross-service-zone communication, and data center network
CN101425969B (en) Scheduling method, apparatus and system
CN100346324C (en) Analysis method for user's request
CN103428302A (en) Domain name resolution method, server and system
US20120221716A1 (en) Tracking Internet Usage In A Household
US8539041B2 (en) Method, apparatus, and network system for acquiring content
CN102158406B (en) Intelligent routing method for computer network links
CN103825919A (en) Method, device and system for data resource caching
CN102664811B (en) Message forwarding method and device
US10225358B2 (en) Page push method, device, server and system
CN101599857A (en) Detect method, device and the network measuring system that inserts number of host of sharing
CN102970387A (en) Domain name resolution method, device and system
CN102437965A (en) Method and device for accessing target site
CN111600929B (en) Transmission line detection method, routing strategy generation method and proxy server
CN102497402B (en) Content injection method and system thereof, and content delivery method and system thereof
CN103188323B (en) The system and method for Web service is provided based on subscriber's main station buffer memory device
CN112866113B (en) Method, system, computer device and storage medium for ARP proxy in routing packet forwarding
CN202103713U (en) Visiting system
CN110868450B (en) Dual-computer room multi-entrance session keeping method, system, device and storage medium

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
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.