CN109302498A - A kind of network resource access method and device - Google Patents

A kind of network resource access method and device Download PDF

Info

Publication number
CN109302498A
CN109302498A CN201811445868.7A CN201811445868A CN109302498A CN 109302498 A CN109302498 A CN 109302498A CN 201811445868 A CN201811445868 A CN 201811445868A CN 109302498 A CN109302498 A CN 109302498A
Authority
CN
China
Prior art keywords
address
service server
client
web server
cluster
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
CN201811445868.7A
Other languages
Chinese (zh)
Other versions
CN109302498B (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.)
Hangzhou DPtech Information Technology Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201811445868.7A priority Critical patent/CN109302498B/en
Publication of CN109302498A publication Critical patent/CN109302498A/en
Application granted granted Critical
Publication of CN109302498B publication Critical patent/CN109302498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The application provides a kind of network resource access method and device, comprising: receives the DNS request that client is sent;The DNS request carries client target domain name to be visited;Determine the corresponding IP address of the target domain name;If it is determined that IP address be the destination Web server cluster virtual ip address, then detect the state of each service server in the destination Web server cluster;If each service server is in abnormality, the virtual ip address of the backup Web server cluster is returned into client, so that client accesses Internet resources based on the virtual ip address of the backup Web server cluster.Using method provided by the present application, can prevent because destination Web server cluster in service server exception caused by client network access interrupt the problem of.

Description

A kind of network resource access method and device
Technical field
This application involves computer communication field more particularly to a kind of network resource access methods and device.
Background technique
Web server cluster generally includes load-balancing device and at least one service server.Wherein, load is equal Weighing apparatus equipment can be used for doing load balance process to the network access request that client is sent.Service server is mainly used for load The network access request of equalizing equipment forwarding is handled.
Web server cluster is configured for a virtual ip address.Client can be based on the virtual of the Web server cluster IP address accesses the Internet resources in Web server cluster.
For example, client can based on the virtual IP address when client accesses the Internet resources of the Web server cluster Location, to Web server collection pocket transmission network access request.Load-balancing device in the Web server cluster receives client After holding the network access request sent, the network access request can be sent to selected business service based on load-balancing algorithm Device is handled.
But when all service servers in the Web server cluster are abnormal, then client transmission can not be handled Network access request, so as to cause client network access interrupt.
Summary of the invention
In view of this, the application provides a kind of network resource access method and device, to prevent because of Goal Web Services Caused by service server exception in device cluster the problem of client network access interrupt.
Specifically, the application is achieved by the following technical solution:
According to a first aspect of the present application, a kind of network resource access method is provided, the method takes applied to target Web The load-balancing device being engaged in device cluster, the destination Web server cluster is configured for backup Web server cluster, described Method includes:
Receive the DNS request that client is sent;The DNS request carries client target domain name to be visited;
Determine the corresponding IP address of the target domain name;
If it is determined that IP address be the destination Web server cluster virtual ip address, then detect the target Web The state of each service server in server cluster;
If each service server is in abnormality, by the virtual IP address of the backup Web server cluster Location returns to client, so that client accesses Internet resources based on the virtual ip address of the backup Web server cluster.
Optionally, the method also includes:
If at least one service server in each service server is in normal condition, by the target Web The virtual ip address of server cluster returns to the client, to be based on the destination Web server cluster by the client Virtual ip address access Internet resources.
Optionally, the method also includes:
If it is determined that IP address be not the destination Web server cluster virtual ip address, then the IP that will be determined Address returns to client, so that client accesses Internet resources based on the IP address of the return.
Optionally, each service server in the destination Web server cluster is divided into multiple business services Device group, one of service server group are main service server group, other service server groups are the main business server group Backup traffic server group;
The method also includes:
Receive the network access request that the client is sent;
If each service server in the main business server group is abnormal, it is based on preset load-balancing algorithm, First object service server is selected in the backup traffic server group;
The network access request is sent to the first object service server, by first object service server Manage the network access request.
Optionally, the method also includes:
If there are normal service servers in the main business server group, it is based on preset load-balancing algorithm, The second target service server is selected in the normal service server, by the second target service server process net Network access request.
According to a second aspect of the present application, a kind of network resource accession device is provided, described device takes applied to target Web The load-balancing device being engaged in device cluster, the destination Web server cluster is configured for backup Web server cluster, described Device includes:
Receiving unit, for receiving the DNS request of client transmission;The DNS request carries the client and waits visiting The target domain name asked;
Determination unit, for determining the corresponding IP address of the target domain name;
Detection unit, for if it is determined that IP address be the destination Web server cluster virtual ip address, then examine Survey the state of each service server in the destination Web server cluster;
Return unit, if being in abnormality for each service server, by the backup Web server collection The virtual ip address of group returns to client, so that client is accessed based on the virtual ip address of the backup Web server cluster Internet resources.
Optionally, the return unit, if at least one service server being also used in each service server In normal condition, then the virtual ip address of the destination Web server cluster is returned into the client, by the client End group accesses Internet resources in the virtual ip address of the destination Web server cluster.
Optionally, the return unit, be also used to if it is determined that IP address be not the destination Web server cluster The IP address determined then is returned to client by virtual ip address, so that client accesses net based on the IP address of the return Network resource.
Optionally, each service server in the destination Web server cluster is divided into multiple business services Device group, one of service server group are main service server group, other service server groups are the main business server group Backup traffic server group;
Described device further include:
Network access process unit, the network access request sent specifically for receiving the client;If the main business Each service server in server group of being engaged in is abnormal, then preset load-balancing algorithm is based on, in the backup traffic service First object service server is selected in device group;The network access request is sent to the first object service server, with The network access request is handled by first object service server.
Optionally, the network access process unit, if normal also particularly useful for existing in the main business server group Service server, then be based on preset load-balancing algorithm, the second target industry is selected in the normal service server It is engaged in server, by the second target service server process network access request.
Seen from the above description, on the one hand, since load-balancing device is returning to the destination Web server collection to client When the virtual ip address of group is as network resource accession address, the service server in the destination Web server cluster is just detected Whether Internet resources can be provided for the client, when detecting that each service server is abnormal in the destination Web server cluster When, to client return backup Web server cluster IP address as network resource accession address so that backup Web service Device cluster replaces the Web server cluster to provide Internet resources for client, so as to prevent the interruption of client traffic.
On the other hand, the application additionally uses main business server group and backup traffic in destination Web server cluster The mechanism of server group handles the network access request received.After receiving network access request, if Web server collection Each service server is abnormal in main business server group in group, then can will be sent to from the network access request of client Backup traffic service group is handled, and the interruption of client traffic has been further prevented.
Detailed description of the invention
Fig. 1 is the networking schematic diagram of existing network resource accession;
Fig. 2 is a kind of networking schematic diagram of network resource accession shown in one exemplary embodiment of the application;
Fig. 3 is a kind of flow chart of network access resource allocation method shown in one exemplary embodiment of the application;
Fig. 4 is a kind of block diagram of network access resource devices shown in one exemplary embodiment of the application;
Fig. 5 is a kind of hardware structure diagram of load-balancing device shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
It is the networking schematic diagram of existing network resource accession referring to Fig. 1, Fig. 1.
In the networking of existing network resource accession, including user terminal and Web server cluster.The Web server It include: load-balancing device, at least one service server in cluster.
After the load-balancing device in Web server cluster receives the network access request of client transmission, load Equalizing equipment can be based on preset load-balancing algorithm, and a service server is selected at least one service server, by The service server handles the network access request.
However, the Web server cluster can not when all service servers in the Web server cluster are abnormal The network access request is handled, so as to cause the interruption of client network access.
Referring to fig. 2, Fig. 2 is a kind of networking schematic diagram of network resource accession shown in one exemplary embodiment of the application.
It include: client, destination Web server cluster, backup Web clothes in network resource accession networking shown in the application Business device cluster.
Destination Web server cluster described herein is any one Web server cluster, and the application is the target Web server cluster configuration backup Web server cluster.Destination Web server cluster and backup Web server cluster are visitor The Internet resources that family end provides are identical.
Destination Web server cluster includes load-balancing device and at least one service server group, each business clothes Device group of being engaged in includes at least one service server.One of service server group is main service server group, other business clothes Business device group is backup traffic server group.
For example, as shown in Fig. 2, including two service server groups, respectively business service in destination Web server cluster Device group 1 and service server group 2.
Service server group 1 is main service server group, and service server group 2 is backup traffic server group.
It also include load-balancing device and at least one service server group, Mei Geye in backup Web server cluster Server group of being engaged in includes at least one service server.One of service server group is main service server group, other industry Business server group is backup traffic server group.
For example, as shown in Fig. 2, including two service server groups, respectively business service in destination Web server cluster Device group 3 and service server group 4.
Service server group 3 is main service server group, and service server group 4 is backup traffic server group.
In the embodiment of the present application, the load-balancing device in destination Web server cluster is receiving client transmission DNS request when, if the corresponding IP address of domain name that DNS request carries is virtual ip address in destination Web server cluster, Then load-balancing device detects the state of each service server.If each service server state is abnormality, to visitor Family end returns to the virtual ip address of the backup Web server cluster of the destination Web server cluster, so that backup Web server Cluster replaces the destination Web server cluster to provide Internet resources for client.
Since load-balancing device is returning to the virtual ip address of the destination Web server cluster to client as network When resource access address, just detect whether the service server in the destination Web server cluster can provide net for the client Network resource returns to backup Web to client when detecting that each service server is abnormal in the destination Web server cluster The IP address of server cluster, so that backup Web server cluster replaces the Web server cluster to provide network money for client Source, so as to prevent the interruption of client traffic.
It should be noted that the virtual ip address of destination Web server cluster is referred to as the following for narration is facilitated The virtual ip address of backup Web server cluster is referred to as the second virtual ip address by one virtual ip address.Target Web is taken Service server in business device cluster is referred to as the first service server, and the load balancing in destination Web server cluster is set Standby referred to as the first load-balancing device.Service server in backup Web server cluster is referred to as the second business service Load-balancing device in backup Web server cluster is referred to as the second load-balancing device by device.
Here first, second there is no physical meaning, also refers not to quantity etc., is intended merely to facilitate a kind of theory of narration Method.
It is a kind of flow chart of network access resource allocation method shown in one exemplary embodiment of the application referring to Fig. 3, Fig. 3, This method can be applicable to the load-balancing device (i.e. the first load-balancing device) in destination Web server cluster, the target Web server cluster is configured for backup Web server cluster, and this method may include step as follows.
Step 301: the first load-balancing device can receive the DNS request that client is sent;The DNS request carries State client target domain name to be visited;
Step 302: the first load-balancing device can determine the corresponding IP address of the target domain name.
When realizing, after the first load-balancing device receives the DNS request of client transmission, the available DNS The client carried in request target domain name to be visited.
Then, the first load-balancing device can be searched and be somebody's turn to do in the corresponding relationship of preset multiple domain names and IP address The corresponding IP address of target domain name.
Step 303: if the IP address that the first load-balancing device is determined is the virtual of the destination Web server cluster IP address then detects the state of each service server in the destination Web server cluster.
When realizing, whether the detectable corresponding IP address of target domain name determined of the first load-balancing device is the One virtual ip address.
If the corresponding IP address of target domain name is not the first virtual ip address, by the corresponding IP address of target domain name Client is returned to, the corresponding IP address of the target domain name is based on by client and accesses Internet resources.
If the corresponding IP address of target domain name is the first virtual ip address, check in the destination Web server cluster Each service server state.
For example, it is assumed that the first virtual ip address is IP2.
When the corresponding IP address of target domain name determined is IP1, then IP1 is returned into client, so that client The corresponding Internet resources of end access IP1.
When the corresponding IP address of target domain name determined is IP2, each industry in target Web virtual server is detected The state of business server.
When detecting, for each service server, the business clothes recorded are can be read in the first load-balancing device The state of business device, the state of the service server includes normal condition and abnormality.First load-balancing device can pass through The state of the service server read is in abnormality to determine that the service server is in normal condition.
It should be noted that the state of each service server in above-mentioned destination Web server cluster recorded is It can constantly update, update mode is as follows.
First load-balancing device periodically can send probe messages to each service server;
For each service server, if received in preset duration service server return for the detection The corresponding state of the service server is then updated to normal condition by the response message of message;If not received in preset duration The response message for the probe messages returned to the server, then be updated to abnormal shape for the corresponding state of the server State.
Step 304: if each service server is in abnormality, the first load-balancing device will back up Web The virtual ip address of server cluster returns to client, so that virtual IP address of the client based on the backup Web server cluster Address accesses the Internet resources in the backup Web server cluster.
If 1) each service server state in the destination Web server cluster is abnormality.
If each service server state in the destination Web server cluster is abnormality, the first load balancing is set It is standby then can be by the virtual ip address of the backup Web server cluster in the destination Web server cluster (i.e. the second virtual IP address Location) return to client.
Client, can be with tectonic network access request message, network access after receiving second virtual ip address The purpose IP address of request message is exactly second virtual ip address, and then client can send out the network access request message Backup Web server cluster is given to access Internet resources.
If 2) there is the service server in normal condition in the destination Web server cluster
If there is the service server in normal condition, the first load-balancing device in the destination Web server cluster Then the first virtual ip address can be returned to the client.
Client, can be with tectonic network access request message, network access after receiving first virtual ip address The purpose IP address of request message is exactly first virtual ip address, and then client can send out the network access request message Destination Web server cluster is given to access Internet resources.
It should be noted that destination Web server cluster is identical with the Internet resources that backup Web server cluster provides, So the first load-balancing device can return standby to client in destination Web server cluster when each service server exception Second virtual ip address of part Web server cluster, so that client can access backup Web based on second virtual ip address The Internet resources that server cluster provides, so that backup Web server cluster can replace destination Web server cluster is Client provides Internet resources.
In addition, present invention also provides the mechanism how Web server cluster handles network access request, institute specific as follows Show.
Specifically, each service server in the destination Web server cluster is divided into multiple service server groups, In service server group be main service server group, other service server groups are the backup industry of the main business server group Business server group.
After the first load-balancing device receives the network access request of client transmission, it may be determined that target Web clothes The state for each service server being engaged in the main business server group in device cluster.
If each service server of the main business server group is abnormal, it is based on preset load-balancing algorithm, In the backup traffic server group select first object service server, and by the network access request be sent to this first Target service server, to handle the network access request by first object service server.
If there are normal service servers in the main business server group, it is based on preset load-balancing algorithm, The second target service server is selected in the normal service server, by the second target service server process net Network access request.
Certainly, above-mentioned machine can also be used when handling the network access request from client in backup Web server cluster System, which is not described herein again.
Seen from the above description, on the one hand, since load-balancing device is returning to network resource accession address to client When, it just detects whether the service server in the destination Web server cluster can provide Internet resources for the client, works as detection When each service server is abnormal into the destination Web server cluster, the IP of backup Web server cluster is returned to client Address is as network resource accession address, so that backup Web server cluster replaces the Web server cluster to provide for client Internet resources, so as to prevent the interruption of client traffic.
On the other hand, the application additionally uses main business server group and backup traffic in destination Web server cluster The mechanism of server group handles the network access request received.After receiving network access request, if Web server collection Each service server is abnormal in main business server group in group, then can will be sent to from the network access request of client Backup traffic service group is handled, and the interruption of client traffic has been further prevented.
Below by specifically example, and it is detailed to combine Fig. 2 to carry out the network resource access method that the application is supplied to Ground explanation.
It is assumed that the virtual ip address of destination Web server cluster is IP2, the virtual ip address of backup Web server cluster For IP22.
Service server group 1 in destination Web server cluster is main service server group, and service server group 2 is standby Part service server group.
Service server group 3 in backup Web server cluster is main service server group, and service server group 4 is standby Part service server group.
It is assumed that client has sent two DNS requests to the first load-balancing device, respectively DNS request 1 and DNS is asked Ask 2.Wherein, the domain name carried in DNS request 1 is domain name 1.The domain name carried in DNS request 2 is domain name 2.
Assuming that the corresponding IP address of domain name 1 is IP1, the corresponding IP address of domain name 2 is IP2.
1) for DNS request 1
When the first load-balancing device DNS request 1, it may be determined that the corresponding IP address of domain name 1 that the DNS request 1 carries (i.e. IP1).
Then, the first load equipment determines the virtual ip address of 1 corresponding IP address and destination Web server cluster of domain name It is whether identical.
In this example, the first load equipment determines 1 corresponding IP address (i.e. IP1) of domain name and destination Web server cluster Virtual ip address (i.e. IP2) it is not identical, IP1 can be returned to client by the first load-balancing device at this time, by client Access the corresponding Internet resources of IP1.
2) for DNS request 2
When the first load-balancing device DNS request 2, it may be determined that the corresponding IP address of domain name 2 that the DNS request 2 carries (i.e. IP2).
Then, the first load equipment determines the virtual ip address of 2 corresponding IP address and destination Web server cluster of domain name It is whether identical.
In this example, the first load equipment determines 2 corresponding IP address (i.e. IP2) of domain name and destination Web server cluster Virtual ip address (i.e. IP2) it is identical, then can check the state of each service server in target Web cluster.
If the state of each service server in target Web cluster is abnormality, IP22 is returned to client, So that client is based on IP22 to backup Web server collection pocket transmission network access request.
If in target Web cluster there are normal service server, IP2 is returned to client, so that client Based on IP2 to destination Web server collection pocket transmission network access request.
For the first load-balancing device:
After the first load-balancing device receives the network access request of client transmission, the first load equipment is detectable The state of each service server in the service server group 1.
If there are normal service server in the service server group 1, the first load-balancing device is based on preset Load-balancing algorithm selects a service server in the normal service server, and the network access request is sent Give the service server selected processing.
If each service server is abnormal in the service server group 1, the second load-balancing device is based on preset negative Equalization algorithm is carried, a service server is selected in service server group 2, and the network access request is sent to the selection Service server processing out.
For the second load-balancing device:
After the second load-balancing device receives the network access request of client transmission, the second load equipment is detectable The state of each service server in the service server group 3.
If there are normal service server in the service server group 3, the second load-balancing device is based on preset Load-balancing algorithm selects a service server in the normal service server, and the network access request is sent Give the service server selected processing.
If each moon server is abnormal in the service server group 3, the second load-balancing device is based on preset load Equalization algorithm selects a service server in service server group 4, and the network access request is sent to this and is selected Service server processing.
It is the description to network resource access method above.
Correspondingly, present invention also provides network resource accession devices corresponding with above-mentioned network resource access method.
Referring to fig. 4, Fig. 4 is a kind of block diagram of network access resource devices shown in one exemplary embodiment of the application.It should Device can be applicable on the load-balancing device in destination Web server cluster, it may include unit as follows.
Receiving unit 401, for receiving the DNS request of client transmission;The DNS request carries the client and waits for The target domain name of access;
Determination unit 402, for determining the corresponding IP address of the target domain name;
Detection unit 403, for if it is determined that IP address be the destination Web server cluster virtual ip address, Then detect the state of each service server in the destination Web server cluster;
Return unit 404, if being in abnormality for each service server, by the backup Web service The virtual ip address of device cluster returns to client, so that virtual ip address of the client based on the backup Web server cluster Access Internet resources.
Optionally, the return unit 404, if being also used at least one service server in each service server In normal condition, then the virtual ip address of the destination Web server cluster is returned into the client, by the visitor Family end group accesses Internet resources in the virtual ip address of the destination Web server cluster.
Optionally, the return unit 404, be also used to if it is determined that IP address be not the destination Web server collection The virtual ip address of group, then return to client for the IP address determined, so that client is visited based on the IP address of the return Ask Internet resources.
Optionally, each service server in the destination Web server cluster is divided into multiple business services Device group, one of service server group are main service server group, other service server groups are the main business server group Backup traffic server group;
Described device further include:
Network access process unit 405 (being not shown in Fig. 4) is accessed specifically for receiving the network that the client is sent Request;If each service server in the main business server group is abnormal, it is based on preset load-balancing algorithm, in institute State selection first object service server in backup traffic server group;The network access request is sent to the first object Service server, to handle the network access request by first object service server.
Optionally, the network access process unit 405, if existing just also particularly useful in the main business server group Normal service server is then based on preset load-balancing algorithm, selects the second target in the normal service server Service server, by the second target service server process network access request.
Correspondingly, present invention also provides the hardware structure diagrams for corresponding to Fig. 4 shown device.
It is a kind of hardware structure diagram of load-balancing device shown in one exemplary embodiment of the application referring to Fig. 5, Fig. 5.
The load-balancing device includes: communication interface 501, processor 502, machine readable storage medium 503 and bus 504;Wherein, communication interface 501, processor 502 and machine readable storage medium 503 complete mutual lead to by bus 404 Letter.Processor 502 is by reading and executing machine corresponding with network resource accession control logic in machine readable storage medium 503 Network described above resource access method can be performed in device executable instruction.
Machine readable storage medium 503 referred to herein can be any electronics, magnetism, optics or other physical stores Device may include or store information, such as executable instruction, data, etc..For example, machine readable storage medium may is that easily Lose memory, nonvolatile memory or similar storage medium.Specifically, machine readable storage medium 503 can be RAM (Radom Access Memory, random access memory), flash memory, memory driver (such as hard disk drive), solid state hard disk, Any kind of storage dish (such as CD, DVD) perhaps similar storage medium or their combination.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (10)

1. a kind of network resource access method, which is characterized in that the method is applied to the load in destination Web server cluster Equalizing equipment, the destination Web server cluster are configured for backup Web server cluster, which comprises
Receive the DNS request that client is sent;The DNS request carries client target domain name to be visited;
Determine the corresponding IP address of the target domain name;
If it is determined that IP address be the destination Web server cluster virtual ip address, then detect the Goal Web Services The state of each service server in device cluster;
If each service server is in abnormality, the virtual ip address of the backup Web server cluster is returned Back to client, so that client accesses Internet resources based on the virtual ip address of the backup Web server cluster.
2. the method according to claim 1, wherein the method also includes:
If at least one service server in each service server is in normal condition, by the Goal Web Services The virtual ip address of device cluster returns to the client, with the void by the client based on the destination Web server cluster Quasi- IP address accesses Internet resources.
3. the method according to claim 1, wherein the method also includes:
If it is determined that IP address be not the destination Web server cluster virtual ip address, then the IP address that will be determined Client is returned to, so that client accesses Internet resources based on the IP address of the return.
4. the method according to claim 1, wherein each business service in the destination Web server cluster Device is divided into multiple service server groups, and one of service server group is main service server group, other business Server group is the backup traffic server group of the main business server group;
The method also includes:
Receive the network access request that the client is sent;
If each service server in the main business server group is abnormal, it is based on preset load-balancing algorithm, in institute State selection first object service server in backup traffic server group;
The network access request is sent to the first object service server, is somebody's turn to do with being handled by first object service server Network access request.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
If there are normal service servers in the main business server group, it is based on preset load-balancing algorithm, in institute It states and selects the second target service server in normal service server, to be visited by second target service server process network Ask request.
6. a kind of network resource accession device, which is characterized in that described device is applied to the load in destination Web server cluster Equalizing equipment, the destination Web server cluster are configured for backup Web server cluster, and described device includes:
Receiving unit, for receiving the DNS request of client transmission;It is to be visited that the DNS request carries the client Target domain name;
Determination unit, for determining the corresponding IP address of the target domain name;
Detection unit, for if it is determined that IP address be the destination Web server cluster virtual ip address, then detect institute State the state of each service server in destination Web server cluster;
Return unit, if being in abnormality for each service server, by the backup Web server cluster Virtual ip address returns to client, so that client accesses network based on the virtual ip address of the backup Web server cluster Resource.
7. device according to claim 6, which is characterized in that the return unit, if being also used to each business service At least one service server in device is in normal condition, then returns the virtual ip address of the destination Web server cluster Back to the client, to access Internet resources based on the virtual ip address of the destination Web server cluster by the client.
8. device according to claim 6, which is characterized in that the return unit, be also used to if it is determined that IP address It is not the virtual ip address of the destination Web server cluster, then the IP address determined is returned into client, so that client End group accesses Internet resources in the IP address of the return.
9. device according to claim 6, which is characterized in that each business service in the destination Web server cluster Device is divided into multiple service server groups, and one of service server group is main service server group, other business Server group is the backup traffic server group of the main business server group;
Described device further include:
Network access process unit, the network access request sent specifically for receiving the client;If the main business clothes Each service server in device group of being engaged in is abnormal, then preset load-balancing algorithm is based on, in the backup traffic server group Middle selection first object service server;The network access request is sent to the first object service server, by The one target service server process network access request.
10. device according to claim 9, which is characterized in that the network access process unit, if also particularly useful for institute It states in main business server group that there are normal service servers, is then based on preset load-balancing algorithm, described normal The second target service server is selected in service server, by the second target service server process network access request.
CN201811445868.7A 2018-11-29 2018-11-29 Network resource access method and device Active CN109302498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811445868.7A CN109302498B (en) 2018-11-29 2018-11-29 Network resource access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811445868.7A CN109302498B (en) 2018-11-29 2018-11-29 Network resource access method and device

Publications (2)

Publication Number Publication Date
CN109302498A true CN109302498A (en) 2019-02-01
CN109302498B CN109302498B (en) 2021-03-23

Family

ID=65141986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811445868.7A Active CN109302498B (en) 2018-11-29 2018-11-29 Network resource access method and device

Country Status (1)

Country Link
CN (1) CN109302498B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933432A (en) * 2019-03-19 2019-06-25 北京百度网讯科技有限公司 Method and apparatus for sending data
CN110012111A (en) * 2019-04-16 2019-07-12 昆山丘钛微电子科技有限公司 A kind of data service group system and data processing method
CN111010454A (en) * 2019-12-31 2020-04-14 杭州天宽科技有限公司 Load balancing method realized by dynamic routing architecture
CN111131333A (en) * 2020-02-24 2020-05-08 广州虎牙科技有限公司 Business data pushing method and server cluster
CN111131264A (en) * 2019-12-26 2020-05-08 视联动力信息技术股份有限公司 Video networking communication method and first video networking client
CN111526038A (en) * 2020-03-26 2020-08-11 口碑(上海)信息技术有限公司 Service request distribution method and device, computer equipment and readable storage medium
CN111628958A (en) * 2019-07-12 2020-09-04 国铁吉讯科技有限公司 Network access method, device and system based on linear networking
CN112394960A (en) * 2020-11-23 2021-02-23 中国农业银行股份有限公司 Service flow control method and device, electronic equipment and computer storage medium
CN113242299A (en) * 2021-05-11 2021-08-10 鸬鹚科技(深圳)有限公司 Disaster recovery system, method, computer device and medium for multiple data centers
CN113347037A (en) * 2021-06-07 2021-09-03 中国建设银行股份有限公司 Data center access method and device
CN113489691A (en) * 2021-06-22 2021-10-08 腾讯科技(深圳)有限公司 Network access method, device, computer readable medium and electronic equipment
CN115150410A (en) * 2022-07-19 2022-10-04 京东科技信息技术有限公司 Multi-cluster access method and system
CN116708459A (en) * 2023-07-20 2023-09-05 广州东瑞科技有限公司 Service access automatic switching method, system, computer equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090222583A1 (en) * 2008-03-03 2009-09-03 Microsoft Corporation Client-side load balancing
CN101815033A (en) * 2010-03-12 2010-08-25 成都市华为赛门铁克科技有限公司 Method, device and system for load balancing
CN102325192A (en) * 2011-09-30 2012-01-18 上海宝信软件股份有限公司 Cloud computing implementation method and system
US8315165B2 (en) * 2010-06-07 2012-11-20 Microsoft Corporation Survivable and resilient real time communication architecture
CN103379184A (en) * 2012-04-23 2013-10-30 深圳市腾讯计算机系统有限公司 Network service access method and system
CN103905531A (en) * 2014-03-14 2014-07-02 浪潮电子信息产业股份有限公司 Method for converting load balancing among nodes in cluster storage system
CN104202409A (en) * 2014-09-12 2014-12-10 成都卫士通信息产业股份有限公司 Balanced load SSL VPN (security socket layer, virtual private network) device cluster system and operating method thereof
CN105743993A (en) * 2016-03-31 2016-07-06 杭州数梦工场科技有限公司 Message processing method and system
CN106330610A (en) * 2016-08-29 2017-01-11 浪潮(北京)电子信息产业有限公司 Load balance processing system and method
CN108011929A (en) * 2017-11-14 2018-05-08 平安科技(深圳)有限公司 Data request processing method, apparatus, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090222583A1 (en) * 2008-03-03 2009-09-03 Microsoft Corporation Client-side load balancing
CN101815033A (en) * 2010-03-12 2010-08-25 成都市华为赛门铁克科技有限公司 Method, device and system for load balancing
US8315165B2 (en) * 2010-06-07 2012-11-20 Microsoft Corporation Survivable and resilient real time communication architecture
CN102325192A (en) * 2011-09-30 2012-01-18 上海宝信软件股份有限公司 Cloud computing implementation method and system
CN103379184A (en) * 2012-04-23 2013-10-30 深圳市腾讯计算机系统有限公司 Network service access method and system
CN103905531A (en) * 2014-03-14 2014-07-02 浪潮电子信息产业股份有限公司 Method for converting load balancing among nodes in cluster storage system
CN104202409A (en) * 2014-09-12 2014-12-10 成都卫士通信息产业股份有限公司 Balanced load SSL VPN (security socket layer, virtual private network) device cluster system and operating method thereof
CN105743993A (en) * 2016-03-31 2016-07-06 杭州数梦工场科技有限公司 Message processing method and system
CN106330610A (en) * 2016-08-29 2017-01-11 浪潮(北京)电子信息产业有限公司 Load balance processing system and method
CN108011929A (en) * 2017-11-14 2018-05-08 平安科技(深圳)有限公司 Data request processing method, apparatus, computer equipment and storage medium

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933432A (en) * 2019-03-19 2019-06-25 北京百度网讯科技有限公司 Method and apparatus for sending data
CN110012111A (en) * 2019-04-16 2019-07-12 昆山丘钛微电子科技有限公司 A kind of data service group system and data processing method
CN110012111B (en) * 2019-04-16 2022-04-15 昆山丘钛微电子科技股份有限公司 Data service cluster system and data processing method
CN111628958B (en) * 2019-07-12 2022-08-05 国铁吉讯科技有限公司 Network access method, device and system based on linear networking
CN111628958A (en) * 2019-07-12 2020-09-04 国铁吉讯科技有限公司 Network access method, device and system based on linear networking
CN111131264A (en) * 2019-12-26 2020-05-08 视联动力信息技术股份有限公司 Video networking communication method and first video networking client
CN111131264B (en) * 2019-12-26 2022-12-23 视联动力信息技术股份有限公司 Video networking communication method and first video networking client
CN111010454A (en) * 2019-12-31 2020-04-14 杭州天宽科技有限公司 Load balancing method realized by dynamic routing architecture
CN111131333A (en) * 2020-02-24 2020-05-08 广州虎牙科技有限公司 Business data pushing method and server cluster
CN111131333B (en) * 2020-02-24 2022-10-28 广州虎牙科技有限公司 Business data pushing method and server cluster
CN111526038A (en) * 2020-03-26 2020-08-11 口碑(上海)信息技术有限公司 Service request distribution method and device, computer equipment and readable storage medium
CN112394960A (en) * 2020-11-23 2021-02-23 中国农业银行股份有限公司 Service flow control method and device, electronic equipment and computer storage medium
CN113242299A (en) * 2021-05-11 2021-08-10 鸬鹚科技(深圳)有限公司 Disaster recovery system, method, computer device and medium for multiple data centers
CN113347037B (en) * 2021-06-07 2022-07-12 中国建设银行股份有限公司 Data center access method and device
CN113347037A (en) * 2021-06-07 2021-09-03 中国建设银行股份有限公司 Data center access method and device
CN113489691A (en) * 2021-06-22 2021-10-08 腾讯科技(深圳)有限公司 Network access method, device, computer readable medium and electronic equipment
CN115150410A (en) * 2022-07-19 2022-10-04 京东科技信息技术有限公司 Multi-cluster access method and system
CN116708459A (en) * 2023-07-20 2023-09-05 广州东瑞科技有限公司 Service access automatic switching method, system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109302498B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN109302498A (en) A kind of network resource access method and device
US11171969B2 (en) Systems and methods for real-time configurable load determination
US7543069B2 (en) Dynamically updating session state affinity
CN102857438B (en) The state of synchronized loading balancer inter-module
US9158460B2 (en) Selecting data nodes using multiple storage policies in cloud storage system
US7562145B2 (en) Application instance level workload distribution affinities
US8856585B2 (en) Hardware failure mitigation
US20180375758A1 (en) Distributed affinity tracking for network connections
JP2002269062A (en) Device and method for routing transaction according to requested service level
CN108933829A (en) A kind of load-balancing method and device
CN101815033A (en) Method, device and system for load balancing
CN108769242A (en) A kind of method for dispatching message and device
CN106790692A (en) A kind of load-balancing method and device of many clusters
CN107087031A (en) A kind of storage resource load-balancing method and device
CN108696581A (en) Caching method, device, computer equipment and the storage medium of distributed information
CN109309603A (en) A kind of dynamic load balanced sharing method and device
CN109510878A (en) A kind of long connection session keeping method and device
CN107566466A (en) Load-balancing method and device
CN106888268A (en) A kind of analysis method and device of domain name
CN110213128A (en) Serve port detection method, electronic equipment and computer storage medium
EP3977707B1 (en) Hardware load balancer gateway on commodity switch hardware
CN113806086A (en) Openstack storage method, device and medium using iSCSI multipath balance docking
CN107864209A (en) The method, apparatus and server of data write-in
US9954971B1 (en) Cache eviction in a distributed computing system
CN106789142B (en) The method and apparatus of resource distribution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210615

Address after: 310051 05, room A, 11 floor, Chung Cai mansion, 68 Tong Xing Road, Binjiang District, Hangzhou, Zhejiang.

Patentee after: Hangzhou Dip Information Technology Co.,Ltd.

Address before: 6 / F, Zhongcai building, 68 Tonghe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou DPtech Technologies Co.,Ltd.