IP Library Granted Patent US 11,394,683
Granted Patent B2
US 11,394,683 · App. 17/111,091 · Granted Jul 19, 2022

Domain name resolution method and apparatus based on a plurality of availability zones AZ

Inventor: Pingchang Bai (Chengdu, CN)
Assignee: Huawei Cloud Computing Technologies Co., Ltd.
H04L61/1511H04L43/10H04L47/125H04L61/2007H04L61/609H04L63/0209
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,394,683
App. No.
17/111,091
Granted
Jul 19, 2022
Kind
B2
Abstract

The present disclosure provides a domain name resolution method and apparatus based on a plurality of availability zones (AZ). After receiving, from a client, a domain name resolution request including a domain name of a to-be-accessed resource, a domain name system (DNS) determines, from a plurality of AZs corresponding to the domain name, a first AZ in a service available state, where each of the plurality of AZs is capable of providing the to-be-accessed resource, and then sends an internet protocol (IP) address of the first AZ to the client. In this way, the DNS processes the domain name resolution request sent by the client. After receiving the domain name resolution request sent by the client, the DNS feeds back, to the client, an IP address that is of an AZ in the service available state and that corresponds to the domain name resolution request.

Claims (36)

1. A domain name resolution method based on a plurality of availability zones (AZ), comprising:

receiving, by a domain name system (DNS), a domain name resolution request from a client, wherein the domain name resolution request comprises a domain name of a to-be-accessed resource, the domain name corresponds to a plurality of AZs, and each of the plurality of AZs is capable of providing the to-be-accessed resource;

determining, by the DNS, a status of each of the plurality of AZs, wherein the status comprises a service available state or a service unavailable state;

determining, by the DNS from the plurality of AZs, a first AZ in the service available state, wherein the first AZ is determined based on a weighted sum of multiple factors including at least two of: distances between the client and each of the plurality of AZs in the service available state, a priority of the client, or loads of each of the plurality of AZs in the service available state; and

sending, by the DNS, an internet protocol (IP) address of the first AZ to the client.

2. The method according to claim 1 , wherein the determining, by the DNS, the status of each of the plurality of AZs comprises:

obtaining, by the DNS, at least one of a heartbeat packet/frame and the load of each AZ of the plurality of AZs in the service available state; and

determining, by the DNS, that a second AZ of the plurality of AZs is in the service unavailable state responsive to determining that the heartbeat packet/frame of the second AZ is not received within a preset duration and/or the load of the second AZ exceeds a preset load.

3. The method according to claim 1 , wherein the determining, by the DNS, the first AZ in the service available state comprises:

obtaining, by the DNS, an IP address of the client; and

calculating, by the DNS based on the IP address of the client and IP addresses of the plurality of AZs in the service available state, the distance between the client and each of the plurality of AZs in the service available state.

4. The method according to claim 1 , wherein the determining, by the DNS, the first AZ in the service available state comprises:

selecting, by the DNS, an AZ that matches the priority of the client as the first AZ.

5. The method according to claim 1 , wherein the determining, by the DNS, the first AZ in the service available state comprises:

determining, by the DNS, the load of each of the plurality of AZs in the service available state; and

determining, by the DNS, an AZ whose load is less than a threshold as the first AZ.

6. A domain name resolution apparatus based on a plurality of availability zones (AZ), comprising:

a communications interface configured to receive a domain name resolution request from a client, wherein the domain name resolution request comprises a domain name of a to-be-accessed resource, the domain name corresponds to the plurality of AZs, and each of the plurality of AZs is capable of providing the to-be-accessed resource; and

a processor coupled to the communication interface and configured to:

determine a status of each of the plurality of AZs, wherein the status comprises a service available state or a service unavailable state, and

determine, from the plurality of AZs, a first AZ in a service available state, wherein the first AZ is determined based on a weighted sum of multiple factors including at least two of: distances between the client and each of the plurality of AZs in the service available state, a priority of the client, or loads of each of the plurality of AZs in the service available state;

wherein:

the communications interface is further configured to send an internet protocol (IP) address of the first AZ to the client.

7. The apparatus according to claim 6 , wherein the processor is specifically configured to:

obtain at least one of a heartbeat packet/frame and the load of each of the plurality of AZs in the service available state; and

determine that a second AZ of the plurality of AZs is in the service unavailable state responsive to determining that the heartbeat packet/frame of the second AZ is not received within a preset duration and/or the load of the second AZ exceeds a preset load.

8. The apparatus according to claim 6 , wherein the processor is specifically configured to:

obtain an IP address of the client; and

calculate, based on the IP address of the client and IP addresses of each of the plurality of AZs in the service available state, the distance between the client and each of the plurality of AZs in the service available state.

9. The apparatus according to claim 6 , wherein the processor is specifically configured to:

select an AZ that matches the priority of the client as the first AZ.

10. The apparatus according to claim 6 , wherein the processor is specifically configured to:

determine the load of each of the plurality of AZs in the service available state; and

determine an AZ whose load is less than a threshold as the first AZ.

11. The method according to claim 1 , wherein an AZ corresponding with a maximum value of the weighted sum is determined as the first AZ.

12. The apparatus according to claim 6 , wherein an AZ corresponding with a maximum value of the weighted sum is determined as the first AZ.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 6, 2022
From: BAI, PINGCHANG
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 060113/0570 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 059267/0088 →
Priority Claims (1)
CN 201810565417.0 · Jun 4, 2018 · national
Continuity (2)
Continuation PCTCN2019083614 · Apr 22, 2019
Related Publication 20210092090A1 · Mar 25, 2021