CN112583952A - Redirection scheduling processing method, device and system, related equipment and storage medium - Google Patents

Redirection scheduling processing method, device and system, related equipment and storage medium Download PDF

Info

Publication number
CN112583952A
CN112583952A CN202011448229.3A CN202011448229A CN112583952A CN 112583952 A CN112583952 A CN 112583952A CN 202011448229 A CN202011448229 A CN 202011448229A CN 112583952 A CN112583952 A CN 112583952A
Authority
CN
China
Prior art keywords
domain name
redirection
target
address
request
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
CN202011448229.3A
Other languages
Chinese (zh)
Other versions
CN112583952B (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 Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202011448229.3A priority Critical patent/CN112583952B/en
Publication of CN112583952A publication Critical patent/CN112583952A/en
Application granted granted Critical
Publication of CN112583952B publication Critical patent/CN112583952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • 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
    • H04L67/1023Server selection for load balancing based on a hash applied to IP addresses or costs
    • 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/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/686Types of network addresses using dual-stack hosts, e.g. in Internet protocol version 4 [IPv4]/Internet protocol version 6 [IPv6] networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The redirection scheduling processing method, device, system, related device and storage medium related to the present application, aiming at the resource request of the requester, under the condition that the resource request is at least a first version type IP request, the scheduler realizes the redirection of the resource request of the user by acquiring a target redirection domain name at least capable of supporting the resolution of a double version type IP address (i.e. at least capable of resolving the redirection domain name into a first version type IP address and a second version type IP address), and correspondingly can support the requester such as a client to access the resource by using a double-protocol stack mode, so that when the network environment of the first version type IP (such as IPv6) is poor, the resource acquisition can be switched to the network environment based on the second version type IP (such as IPv4), and when the redirection scheduling technology of the present application is applied to the support of networks such as IPv6, the flexibility of the support of IPv6 can be obviously improved, and the service capability of resource service parties such as the CDN is further improved.

Description

Redirection scheduling processing method, device and system, related equipment and storage medium
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a method, an apparatus, a system, related devices, and a storage medium for redirection scheduling processing.
Background
A CDN (Content Delivery Network) is a Content Delivery Network constructed on a Network, and by means of edge servers deployed in various places and through functions of load balancing, Content Delivery, scheduling, and the like of a central platform, a user can obtain required Content nearby, Network congestion is reduced, and the access response speed of the user is increased.
The CDN scheduling system is configured to schedule an access request of a user to a CDN edge node according to a certain scheduling rule, and generally includes two scheduling manners: domain Name system (dns) scheduling and hypertext Transfer protocol (http) scheduling.
The HTTP scheduling is also called as HTTP302 scheduling or HTTP302 redirection scheduling, has the advantages of high accuracy, good flexibility, quick effect taking, difficult hijacking and the like, and is more suitable for resource scheduling of large files, video files and the like. The HTTP scheduling is mature in an IPv4(Internet Protocol version 4, fourth edition of Internet communication Protocol) environment, and can well support an IPv4 network, and with the continuous development of IPv6(Internet Protocol version 6, sixth edition of Internet communication Protocol), the IPv6 network is increasingly mature, and it is necessary to use the HTTP scheduling in the IPv6 environment, and the HTTP scheduling system correspondingly needs to support an IPv6 environment, however, the support of the existing HTTP scheduling technology to the IPv6 is not flexible, and the service capability of resource service parties such as the CDN to the user is affected.
Disclosure of Invention
In view of this, the present application provides a redirection scheduling processing method, device, system, related device, and storage medium, which improves the flexibility of the redirection scheduling technology in supporting IPv6, and improves the service capability of resource servers such as a CDN.
The specific technical scheme is as follows:
a redirection scheduling processing method is applied to a scheduling party;
the method comprises the following steps:
acquiring a resource request of a requester;
determining a target IP address of a target device for providing resource service for the resource request;
under the condition that the resource request is at least a first version type IP request, acquiring a target redirection domain name corresponding to the target IP address;
feeding back response information including the target redirection domain name to a requester;
wherein, the redirection domain name corresponds to: a resolution rule usable at least to resolve the redirected domain name into a first version type IP address and a second version type IP address.
Optionally, the obtaining a target redirection domain name corresponding to the target IP address under the condition that the resource request is at least a first version type IP request includes:
under the condition that the resource request is an IPv6 request, acquiring a target redirection domain name corresponding to the IPv6 address of the target device;
or,
and under the condition that the resource request is an IPv6 request and is a hypertext transfer security protocol (https) request, acquiring a target redirection domain name corresponding to the IPv6 address of the target device.
Optionally, the target redirection domain name is obtained by processing the target IP address and a pre-applied redirection domain name;
the processing procedure for obtaining the target redirection domain name based on the processing of the target IP address and the pre-applied redirection generic domain name comprises the following steps:
converting the IPv6 address of the target device into a domain name prefix;
and assembling the domain name prefix and the redirection domain name to obtain the target redirection domain name corresponding to the IPv6 address of the target equipment.
Optionally, redirecting the resolution rule of the domain name corresponding to the domain name service side includes:
resolving the redirection domain name into a corresponding IPv6 address according to a first resolution record which is added for pre-association of the redirection domain name and comprises an IPv6 address;
and resolving the redirection domain name into a corresponding IPv4 address according to a second resolution record which is added for the redirection domain name pre-association and comprises an IPv4 address.
Optionally, before the obtaining the target redirection domain name corresponding to the target IP address, the method further includes:
and if the currently used redirection domain name of the dispatcher is unavailable, selecting an available redirection domain name from a plurality of redirection domain names which are applied by the dispatcher in advance, and triggering the step of acquiring the target redirection domain name corresponding to the target IP address, so that the acquired target redirection domain name is obtained by processing the target IP address and the selected redirection domain name.
A redirection scheduling processing method is applied to a domain name service side;
the method comprises the following steps:
acquiring a first analysis request carrying a target redirection domain name of a requester;
analyzing the target redirection domain name according to an analysis rule to obtain a target version type IP address consistent with the request type of the first analysis request; the analysis rule can be at least used for analyzing the redirection domain name into a first version type IP address and a second version type IP address;
and feeding back response information comprising the target version type IP address to a requester.
Optionally, the domain name service party pre-stores, for each redirected domain name in the set of redirected domain names, a first resolution record including an IPv6 address and a second resolution record including an IPv4 address, which are added in association with the redirected domain name.
Optionally, the request type of the first resolution request is a type for requesting an IPv6 address;
the analyzing the target redirection domain name according to the analysis rule to obtain a target version type IP address consistent with the request type of the first analysis request comprises the following steps:
and resolving the target redirection domain name into a corresponding IPv6 address according to a first resolution record added for the target redirection domain name in a pre-association manner.
Optionally, after feeding back the response information including the target version type IP address to the requester, the method further includes:
acquiring a second resolution request carrying the target redirection domain name from a requester; and analyzing the target redirection domain name according to the analysis rule to obtain a target version type IP address consistent with the request type of the second analysis request, and feeding back response information including the target version type IP address consistent with the request type of the second analysis request to a requester.
Optionally, the request type of the second resolution request is a type for requesting an IPv4 address;
the analyzing the target redirection domain name according to the analysis rule to obtain a target version type IP address consistent with the request type of the second analysis request comprises:
and resolving the target redirection domain name into a corresponding IPv4 address according to a second resolution record added for the target redirection domain name in a pre-association manner.
A redirection scheduling processing device is applied to a scheduling party;
the device comprises:
a first obtaining unit, configured to obtain a resource request of a requester;
a determining unit, configured to determine a target IP address of a target device for providing a resource service for the resource request;
a second obtaining unit, configured to obtain a target redirection domain name corresponding to the target IP address when the resource request is at least a first version type IP request;
a first feedback unit, configured to feed back response information including the target redirection domain name to a requester;
wherein, the redirection domain name corresponds to: a resolution rule usable at least to resolve the redirected domain name into a first version type IP address and a second version type IP address.
A redirection scheduling processing device is applied to a domain name service side;
the device comprises:
a third obtaining unit, configured to obtain a first resolution request carrying a target redirection domain name from a requester;
the resolving unit is used for resolving the target redirection domain name according to a resolving rule to obtain a target version type IP address consistent with the request type of the first resolving request; the analysis rule can be at least used for analyzing the redirection domain name into a first version type IP address and a second version type IP address;
and the second feedback unit is used for feeding back response information comprising the target version type IP address to the requester.
A scheduling apparatus, comprising:
a first memory for storing a first set of computer instructions;
the first processor is used for realizing the redirection scheduling processing method applied to the scheduling party by executing the instruction set stored on the first memory.
A domain name service apparatus, comprising:
a second memory for storing a second set of computer instructions;
and the second processor is used for implementing the redirection scheduling processing method applied to the domain name service party by executing the instruction set stored on the second memory.
A computer readable storage medium having stored therein a first set of computer instructions which, when executed by a processor, implement a redirection scheduling processing method as applied to a scheduler as described in any of the above.
A computer readable storage medium having stored therein a second set of computer instructions which, when executed by a processor, implement a redirection scheduling processing method as applied to a domain name service as claimed in any one of the preceding claims.
A redirection scheduling processing system comprises a request party, a domain name service party and a scheduling party;
wherein:
the requester can be used for initiating a resource request to the dispatcher through the domain name service party;
the dispatcher is used for realizing the redirection of the resource request of the requester by executing the redirection dispatching processing method applied to the dispatcher;
the domain name service side is configured to implement provision of the domain name service for the requesting side by executing the redirection scheduling processing method applied to the domain name service side as described in any one of the above.
The redirection scheduling processing method, apparatus, system, related device and storage medium disclosed in the embodiments of the present application, for a resource request of a requester, in a case that the resource request is at least a first version type IP request, a scheduler implements redirection of the resource request of a user by acquiring a target redirection domain name for which at least resolution of a dual version type IP address is supported (i.e., at least the redirection domain name is resolved into the first version type IP address and a second version type IP address), and accordingly, the requester, such as a client, can be supported to access a resource in a dual-protocol stack manner, so that, when a network environment of the first version type IP (e.g., IPv6) is poor, the resource request can be switched to a network environment based on the second version type IP (e.g., IPv4) for resource acquisition, and when the redirection scheduling technology of the present application is applied to support of networks such as IPv6 and the like, obviously, the flexibility of supporting the IPv6 can be improved, and the service capability of resource servers such as the CDN is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram of HTTP redirection scheduling;
fig. 2 is a schematic flowchart of a redirection scheduling processing method applied to a scheduler according to an embodiment of the present application;
fig. 3 is a system framework diagram of a CDN scheduling system provided in an embodiment of the present application;
fig. 4 is another schematic flowchart of a redirection scheduling processing method applied to a scheduler according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a redirection scheduling processing method applied to a domain name service provider according to an embodiment of the present application;
fig. 6 is a schematic diagram of different domain name information systems corresponding to different domain names according to an embodiment of the present application;
fig. 7 is another schematic flowchart of a redirection scheduling processing method applied to a domain name service provider according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a redirection scheduling processing apparatus applied to a scheduler according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a redirection scheduling processing apparatus applied to a scheduler according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a redirection scheduling processing apparatus applied to a domain name service provider according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a scheduling apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a domain name service device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
A CDN scheduling system, that is, a Global Server Load Balance (GSLB) scheduling system of the CDN, is configured to schedule an access request of a client to a CDN edge node according to a certain scheduling rule, and there are two scheduling manners: domain name system DNS scheduling and HTTP scheduling. The HTTP schedule is also referred to as HTTP302 schedule or HTTP302 redirect schedule, and the present application focuses on making further improvements to existing HTTP scheduled redirect scheduling techniques.
Referring to fig. 1, the principle of HTTP scheduling is that a client first accesses to an HTTP scheduling system through a DNS system, the HTTP scheduling system preferentially selects an edge server in the CDN according to a policy to provide resource services to the client, assembles an HTTP response header according to an IP address of the selected edge server, such as assembling Location of the HTTP response header according to an IPv4 address of the selected server (the client request is based on an IPv4 environment) or an IPv6 address (the client request is based on an IPv6 environment), and returns response information to the client by using a state code of 302, thereby implementing redirection of the client request. Then, the client may initiate a link to a corresponding server (i.e., an edge server selected by the scheduling system) for resource acquisition based on the received response information.
The inventor finds that the support of the existing HTTP scheduling technology to IPv6 is not flexible enough, and the service capability of resource service parties such as CDN and the like to users is influenced. For example, the rule for converting IPv6 address into domain name in the prior art is not flexible enough; only the IPv6 is supported, and how to quickly switch to the IPv4 environment to acquire resources when the IPv6 network environment is poor is not considered; no quick solutions are considered if a single domain name is unavailable due to extreme conditions such as resolution failure or being blocked, etc.
In order to at least partially solve the technical defects, the application discloses a redirection scheduling processing method, a redirection scheduling processing device, a redirection scheduling processing system, related equipment and a storage medium, and the service capability of a resource server such as a CDN is further improved by improving the flexibility of the redirection scheduling technology in supporting IPv 6.
Referring to fig. 2, a schematic flow chart of a redirection scheduling processing method applied to a scheduling party according to an embodiment of the present disclosure is provided, where optionally, the scheduling party may be a scheduling system of a content service provider such as a CDN, and includes at least one server for executing redirection scheduling service, and the method is specifically applicable to one or more servers included in the CDN scheduling system.
As shown in fig. 2, the redirection scheduling processing method applied to the scheduler in this embodiment may include:
step 201, obtaining a resource request of a requester.
The requesting party may be a client on a smart phone, a tablet Computer, a Personal Computer (PC), etc., such as a web browser, a mail client, various installed applications, etc., on the above-mentioned devices.
When a requester needs to acquire resources from a network, the requester firstly accesses a scheduling system of a scheduler through a DNS system, and the scheduler correspondingly acquires a resource request of the requester. Optionally, the resource request of the requester may specifically be a content request facing the CDN, and carries information such as an IP address of the requester, a request type (such as http, https), and a resource identifier of the requested resource, in implementation, the resource request of the requester may carry the request type and the resource identifier of the requested resource based on a URL (uniform resource locator) address of the requested resource, and the scheduler obtains the information by performing an analysis operation on the resource request.
Referring to the architecture diagram of the scheduling system shown in fig. 3, the scheduling system of the scheduler may be implemented in an architecture form of a central controller (central Master) and multiple edge nodes (edge servers), where the central controller is used to configure, update, and store scheduling rules, and provide an API (Application Programming Interface) facing each edge node/edge server, and each edge node/edge server performs rule synchronization from the central controller based on the API Interface, and responds to a resource request of a requester according to the rules, so as to implement redirection of a resource request of the requester.
It should be noted that, an edge node (edge server) in the scheduling system is different from an edge node (edge server) in the CDN network, the former is used to provide a redirection scheduling service for a resource request of a requester in the scheduling system, so as to redirect the resource request to a corresponding edge server in the CDN, and the latter is used to provide a content service for the resource request of the requester, and the scheduling edge node/edge server and the CDN edge node/edge server are used to distinguish between them.
The scheduling rules may include, but are not limited to:
determining which CDN edge server should be employed to provide content services based on a scheduling policy;
which domain name should be used for the determination of the redirect domain name (as to the domain name, it will be set forth below).
Further, the scheduling policy may include, but is not limited to, scheduling the resource request of the requester to the corresponding CDN edge server based on any one or more of a nearby scheduling principle, a quality-first principle (preferably using CDN edge nodes/edge servers with high quality of service), a cost-first principle (preferably using CDN edge nodes/edge servers with low cost of service), and the like.
The method comprises the steps that a requester accesses a certain scheduling edge server in a scheduling system through a DNS (domain name system), optionally, the DNS can also access the requester to a certain scheduling edge server in the scheduling system based on any one or more of a nearby scheduling principle, a quality priority principle (a scheduling edge node/edge server with high service quality is preferentially adopted), a cost priority principle (a scheduling edge node/edge server with low service cost is preferentially adopted), and the like, on the basis, the requester directly interacts with the accessed scheduling edge server, the scheduling edge server correspondingly receives a resource request of the requester and analyzes the resource request to obtain information such as an IP (such as an IPv4 or IPv6 address), a request type (such as http and https) of the requester, and a resource identifier of a requested resource.
Step 202, determining a target IP address of a target device for providing resource service for the resource request.
Thereafter, the scheduler further determines a target IP address of a target device for providing resource services for the resource request of the requester based on the scheduling rule.
For the system architecture of the scheduling party shown in fig. 3, specifically, the scheduling edge server that receives the resource request of the requesting party further selects, based on the scheduling rule synchronized with the central control, a corresponding CDN edge server from the CDN network as a target device for providing resource service to the requesting party, and correspondingly obtains a corresponding IP address as a target IP address, where the target IP address is consistent with the version type of the internet communication protocol IP on which the resource request of the requesting party is based.
In the embodiment of the present disclosure, for each unit (e.g., one CDN edge server or a plurality of CDN edge servers sharing an IP address) corresponding to one IP address in the CDN edge node, at least two version-type IP addresses are configured in advance for the unit (e.g., one CDN edge server or a plurality of CDN edge servers sharing an IP) corresponding to one IP address in the CDN network, illustratively, at least one IPv4 address and one IPv6 address are configured for the unit.
On this basis, if the IP address of the requester is an IPv6 protocol version type, the scheduler determines a target device (such as a CDN edge server) for providing resource service for the resource request, and then correspondingly obtains an IPv6 address of the target device as a target IP address; similarly, if the IP address of the requester is the IPv4 protocol version type, the dispatcher correspondingly obtains the IPv4 address of the target device as the target IP address.
Step 203, obtaining a target redirection domain name corresponding to the target IP address under the condition that the resource request is at least a first version type IP request.
The present application focuses on further improvements in the support of IPv6 with respect to existing HTTP redirection scheduling techniques. By designing a conversion rule between the IPv6 address and the domain name, and adding a first analysis record comprising an IPv6 address and a second analysis record comprising an IPv4 address for domain name association, a requester is supported to access resources in a dual-protocol stack mode, and the resource can be flexibly switched to an IPv4 environment for resource acquisition when the IPv6 network environment is poor.
In view of this, in this embodiment, preferably, the first version type IP is IPv 6.
In the case that the resource request of the requester is at least an IPv6 request (i.e., a request initiated based on an IPv6 network environment), the dispatcher acquires a target redirection domain name corresponding to the determined target IP address, and replies (302 replies) to the requester in the form of a domain name for redirection of the requester resource request.
In an optional implementation manner, when the resource request of the requester is an IPv6 request, the scheduler acquires a domain name corresponding to an IPv6 address of a target device for providing a resource service to the requester, and uses the domain name as a target redirection domain name.
Typically, the HTTPs request relates to a problem of a domain name certificate (a requestor needs to verify whether a domain name of a dispatcher is legal according to the domain name certificate of the dispatcher), therefore, the HTTP302 redirection dispatch must return a response in a domain name form when responding to a requestor initiating the HTTPs request, and in view of this, in implementation, the HTTP302 redirection dispatch may specifically respond in a domain name form only to the HTTPs request in an IPv6 environment (302 response), and therefore, in an alternative implementation, the dispatcher acquires, as a target redirection domain name, a domain name corresponding to an IPv6 address of a target device for providing resource service to the requestor in a case that a resource request of the requestor is an IPv6 request and is an HTTPs request.
Aiming at the domain name form response requirement of an https request under an IPv6 request or an IPv6 environment, in the embodiment of the present application, a conversion rule between an IPv6 address and a domain name is pre-formulated, so that domain name form response information can be successfully assembled according to a determined IPv6 address of a target device (such as a certain CDN edge server).
The core idea of the conversion rule is that an IP address is converted into a unique domain name prefix according to the uniqueness of an IPv6 address, and the mapping from the IPv6 address to a domain name (redirection domain name) is realized by performing domain name assembly according to the domain name prefix obtained by conversion.
Under the core idea, the process of converting the IPv6 address into the domain name based on the conversion rule is as follows:
1) converting the IPv6 address into a domain name prefix;
the IPv6 address is 128 bits (bit) in length, and the standard format is that the 128 bit is divided into one segment by 16 bits, each segment is converted into hexadecimal numbers, and the hexadecimal numbers are used for separating the segments by colons. Double colon compression, a formal compression format, may be employed for consecutive digital 0 s between different colons.
For example, the compressed format IPv6 address 1234:5678:90ab:: cdef, and the standard format IPv6 address 1234:5678:90ab:0:0:0:0: cdef.
Wherein, for the IPv6 address with standard format, the address can be directly converted into the domain name prefix. For the IPv6 address in the compressed format, for convenience of management, the IPv6 address may be first expanded into the standard format and then converted into the domain name prefix according to the standard format, but the IPv6 address is not limited thereto, and may also be directly converted into the domain name prefix according to the compressed format.
For IPv6 in standard or compressed format, the present embodiment provides the following two alternatives for implementing the translation between IP addresses and domain name prefixes:
a. replacing a colon in an IPv6 address with characters supported by the domain name but excluding characters supported by the IPv6 address generates a domain name prefix:
considering that the domain name specification requires that no colon exists in the domain name, in this embodiment, a character supported by the domain name is used to replace a colon in the IPv6 address, in order to avoid confusion between a new character after the colon is replaced and an original character in the IPv6 address, which results in that the IPv6 address is not recognizable or the recognition degree is low, when a character supported by the domain name is used to replace a colon in the IPv6 address, a character set obtained after a character supported by the IPv6 address is removed from characters supported by the domain name is specifically used as a selection space for replacing a character of a colon in the IPv6, the character supported by the IPv6 address includes numbers 0 to 9 and letters a to f, and therefore, the selection space may specifically be: the set of characters resulting from removing the numbers 0 to 9 and the letters a to f from the characters supported by the domain name, such as the characters g to z, and the character "-", may be included.
For example, the following steps are carried out:
for IPv6 addresses 1234:5678:90ab:: cdef, firstly, the addresses are expanded to standard formats 1234:5678:90ab:0:0:0: cdef, and then, the colons in the addresses are replaced by characters g, so that domain name prefixes 1234g5678g90abg0g0g0gcdef are obtained. In implementation, character replacement can be directly performed on the IPv6 address 1234:5678:90ab: cdef in the compressed format to obtain a domain name prefix 1234g5678g90 abggcdef.
For another example, if the middle horizontal line is used to replace the colon therein, the domain name prefix 1234-. The middle transverse line is used for replacing the information more intuitively, and the information hiding effect can be achieved to a certain degree by replacing the middle transverse line with other letters.
b. Converting the IPv6 address by adopting a Hash algorithm to obtain a domain name prefix;
specifically, a hash Algorithm, such as MD5(Message Digest Algorithm 5), may be used to convert the IPv6 address expanded into the standard format to generate the domain name prefix, and the prefix 55ec44c73c13d7b5345b34bb 736452 is specifically generated after MD5 operation, taking 1234:5678:90ab:0:0:0:0: cdef as an example above. In the implementation, the IPv6 address in the compressed format may be directly hashed, which is not limited in this embodiment.
2) And assembling the domain name prefix and the pre-generated redirected extensive domain name to obtain the domain name.
In this embodiment, a CDN content provider applies for a redirection generic domain name (e.g., xxx.com) in advance, and may also apply for a generic domain name https certificate in advance, so as to support domain name verification in https services.
The domain name prefix in the xxx.com can be replaced by a domain name prefix obtained by converting any IPv6 address in the CDN, the domain name prefix is replaced by the domain name prefix in the domain name, the assembly of the domain name prefix and the redirection domain name is realized, and the domain name (domain name prefix + redirection domain name) corresponding to the IPv6 address is obtained and is used as the redirection domain name in the redirection scheduling.
For example, the domain name prefix 1234g5678g90abg0g0g0g0gcdef is assembled with the generic domain name xxx.com to obtain the domain name 1234g5678g90abg0g0g0g0 gcdef.xxx.com.
Using the above-mentioned conversion rule, the IPv6 address can be quickly converted into a unique domain name, and the redirection scheduling technology can correspondingly uniquely locate the requester to the IPv6 address of the corresponding edge server through the domain name (redirection domain name) based on the conversion rule.
In order to improve the flexibility of the redirection scheduling technology in supporting IPv6, in addition to the above-mentioned conversion rule, in the embodiment of the present application, on the basis of obtaining a domain name corresponding to each IPv6 address in the CDN based on the conversion rule, a first resolution record carrying an IPv6 address and a second resolution record carrying an IPv4 address are further added in association for a domain name corresponding to each IPv6 address in the CDN, and a matching domain name resolution rule is designed for the above-mentioned domain name information structure.
The IPv6 address carried in the first analysis record added for a certain domain name association is an IPv6 address used when the domain name is generated based on the conversion rule, and the IPv4 address carried in the second analysis record added for the domain name association is an IPv4 address actually corresponding to a device (such as an edge server) to which the IPv6 address used when the domain name is generated points.
In practical application, an AAAA record and an a record may be added to each domain name, where the AAAA record carries an IPv6 address corresponding to the domain name, the a record carries an IPv4 address corresponding to the domain name, and the IPv6 address carried in the AAAA record may be in a standard format or a compressed format.
For example, assuming that a CDN edge server N1 has an IPv4 address of 1.1.1.1, an IPv6 address of 1234:5678:90ab:: cdef, and a redirection domain name of 1234g5678g90abg0g cd ef. xxx. com, the added record may be: 1234g5678g90abg0g cd ef. xxx. com AAAA1234:5678:90ab:0:0:0:0cd ef;
the added a records may be: 1234g5678g90abg0g cd ef, xxx.com A1.1.1.1.
In the implementation, the domain name generated based on the IPv6 address and the first and second resolution records added for each domain name may be stored in a DNS system, such as a DNS system of a CDN provider, and a domain name resolution rule for the stored information is configured in the DNS system, so that based on the stored information, a redirection domain name fed back to a requester by a dispatcher may be resolved into an IPv6 address and an IPv4 address, a client is supported to access resources in a dual protocol (IPv4, IPv6) stack manner, and the client is supported to flexibly switch between different protocol stacks according to requirements, accordingly, the flexibility of supporting IPv6 by the redirection scheduling technology may be improved, and when the quality of the IPv6 environment is poor, the client may be flexibly switched to the IPv4 environment to perform resource acquisition.
The above processing correspondingly enables the redirection domain name to correspond to a resolution rule at the domain name service side, wherein the resolution rule can be at least used for resolving the redirection domain name into a first version type IP address (such as an IPv6 address) and a second version type IP address (such as an IPv4 address). The parsing rule may specifically include:
resolving the redirection domain name into a corresponding IPv6 address according to a first resolution record which is added for pre-association of the redirection domain name and comprises an IPv6 address;
and resolving the redirection domain name into a corresponding IPv4 address according to a second resolution record which is added for the redirection domain name pre-association and comprises an IPv4 address.
It should be noted that the above two kinds of resolution records added for the domain name association corresponding to each IPv6 address in the CDN and the design of the domain name resolution rule based on this are only exemplary but not limiting illustrations of the embodiments of the present application, and other variant implementations may also be used in practical applications, for example, for the domain name corresponding to each IPv6 address in the CDN, only one resolution record (e.g., a record) carrying an IPv4 address is added for each domain name association, and when a domain name is resolved, the domain name can be resolved into the corresponding IPv4 address according to the record added in association, and in addition, since the domain name is obtained by converting the IPv6 address by using the conversion rule, when domain name resolution is performed, the IPv6 address corresponding to the domain name can also be obtained based on the matching inverse conversion process, and similarly, the domain name can be resolved into IP addresses of different versions, therefore, the aim of improving the flexibility of the redirection scheduling technology for supporting the IPv6 is also fulfilled.
In this step 203, when acquiring the target redirection domain name corresponding to the target IP address (i.e., the IP address of the target device for providing the content service to the requester), optionally, a conversion operation may be temporarily performed based on the above-mentioned conversion rule to convert the target IP address (IPv6 address) into the domain name. Or, optionally, each IPv6 address in the CDN network may be converted into a domain name form in advance, and on this basis, after the scheduler determines, based on the scheduling rule, an IPv6 address of a target device for providing a content service to the requester, the domain name corresponding to the IPv6 address may be obtained directly by a query means and used as the target redirection domain name.
And step 204, feeding back response information comprising the target redirection domain name to the requester.
Then, the dispatcher further assembles the Location of the HTTP response head according to the target redirection domain name to obtain response information carrying the target redirection domain name, such as HTTPs://1234g5678g 90abg0g0g0g0gcdef.yy.com/abc.user.com/aa.jpg, and returns the response information to the requester, and then the requester can realize redirection of the resource request according to the redirection domain name in the obtained response information, initiate connection to the redirected CDN edge server, and obtain the resource.
Because the DNS system stores a first analysis record carrying an IPv6 address and a second analysis record carrying an IPv4 address in a domain name association manner, and supports dual-protocol stack domain name analysis, when the conditions of an IPv6 network are poor and the service quality is poor, a requester can flexibly switch to the IPv4 network to initiate connection to a corresponding CDN edge server based on the IPv4 address obtained by DNS analysis, so that resources are obtained.
It is easily understood that the IPv6 address and the IPv4 address are only exemplary illustrations of at least two version types of IP addresses in the embodiments of the present application, and as the internet communication protocol evolves, other version types of IP addresses are not excluded, and the present application is also applicable to the technical idea of the solution of the present application to achieve similar purposes, which is within the protection scope of the present application. In addition, in practical application, the purpose of flexibly switching between IPv4 and IPv6 networks can also be achieved by designing a conversion rule between the IPv4 address and the domain name, and adding two resolution records carrying the IPv4 address and the IPv6 address for the domain name, which is not limited in this embodiment.
The redirection scheduling processing method, apparatus, system, related device and storage medium disclosed in the embodiments of the present application, for a resource request of a requester, in a case that the resource request is at least a first version type IP request, a scheduler implements redirection of the resource request of a user by acquiring a target redirection domain name for which at least resolution of a dual version type IP address is supported (i.e., at least the redirection domain name is resolved into the first version type IP address and a second version type IP address), and accordingly, the requester, such as a client, can be supported to access a resource in a dual-protocol stack manner, so that, when a network environment of the first version type IP (e.g., IPv6) is poor, the resource request can be switched to a network environment based on the second version type IP (e.g., IPv4) for resource acquisition, and when the redirection scheduling technology of the present application is applied to support of networks such as IPv6 and the like, obviously, the flexibility of supporting the IPv6 can be improved, and the service capability of resource servers such as the CDN is further improved.
In practical application, there may be an extreme case where a domain name is blocked (for example, there are violations and illegal contents in the domain name), or a global resolution fault occurs, which may result in that the domain name is not available, and for this case, in order to avoid that a domain name resolution failure has an influence on a content service of a user, see a flowchart of the redirection scheduling processing method provided in fig. 4, the redirection scheduling processing method applied to the scheduling party may further include, before step 203:
step 203', if the currently used redirection domain name of the dispatcher is unavailable, selecting an available redirection domain name from a plurality of redirection domain names previously applied by the dispatcher, and triggering the step of acquiring the target redirection domain name corresponding to the target IP address, so that the acquired target redirection domain name is obtained by processing the target IP address and the selected redirection domain name.
In view of the above situation, in order to provide a fast and effective solution, in this embodiment, N (N > ═ 2) redirected domain names, such as xxx.com, yy.com, zz.com, etc., are applied to the CDN network in advance, and a corresponding https domain name certificate is applied to each domain name, respectively, so as to support domain name verification in the https service.
On this basis, a prefix domain name obtained by converting each IPv6 address in the CDN network is assembled with different domain names in advance to obtain different domain names in which each IPv6 address corresponds to different domain names, and the prefix domain name and the different domain names are combined into a first analysis record (AAAA record) and a second analysis record (a record) added to a domain name under each domain name, so as to form different domain name information systems in which an IPv6 address set of the CDN network corresponds to different domain names, respectively.
In each specific moment, only one generic domain is enabled, the domain information system corresponding to the generic domain is correspondingly enabled, and other generic domains and the domain information systems corresponding to the generic domains are used as spares.
The method and the device effectively solve the problem of rapid recovery of CDN service when extreme conditions such as domain name is forbidden (e.g. violation, illegal content and the like exist in the domain name) or global resolution failure and the like occur, and can avoid influence on the service capability of the CDN caused by unavailability of the currently used domain name.
Matching with the redirection scheduling processing method applied to the scheduler, the embodiment of the present application further discloses a redirection scheduling processing method applied to a domain name service, where the domain name service scheduler may be a DNS system, specifically, a DNS system of a CDN provider.
Referring to the flowchart of the redirection scheduling processing method provided in fig. 5, the redirection scheduling processing method applied to the domain name service provider may include:
step 501, a first resolution request carrying a target redirection domain name of a requester is obtained.
After receiving the response information fed back by the scheduling party, the requesting party generates a first resolution request based on the target redirection domain name and the self resolution requirement (if the IPv6 address or the IPv4 address needs to be resolved) carried in the response information, and sends the first resolution request to a domain name service party, such as a DNS system.
After obtaining the first resolution request, the domain name server parses the first resolution request to obtain the target redirection domain name and request type information corresponding to the resolution requirement of the requestor, where the request type information may be AAAA, which indicates that an IPv6 address corresponding to the target redirection domain name needs to be obtained through resolution, or may also be a, which indicates that an IPv4 address corresponding to the target redirection domain name needs to be obtained through resolution.
In the case that the requesting terminal supports IPv4 and IPv6 dual stack, it usually defaults to prefer IPv6 environment for network communication and resource acquisition, and in view of this, the request type information carried in the first parsing request is preferably AAAA.
Step 502, resolving the target redirection domain name according to the resolution rule to obtain a target version type IP address consistent with the request type of the first resolution request; wherein the resolution rules are at least operable to resolve the redirected domain name into a first version type IP address and a second version type IP address.
Optionally, the domain name server stores a series of domain names, and a first resolution record including an IPv6 address and a second resolution record including an IPv4 address, which are respectively added to each domain name. More specifically, as shown in fig. 6, in order to support rapid recovery of CDN services under the condition that a domain name is blocked or a global resolution failure is unavailable, a domain name server may store different domain name information systems respectively corresponding to a plurality of general domain names, where the different domain name information systems respectively maintain a set of domain name sets corresponding to different general domain names, and a first resolution record and a second resolution record respectively added to each domain name in the set.
Meanwhile, the domain name service side maintains a domain name resolution rule based on the information structure, and the resolution rule comprises the following steps:
resolving the redirection domain name into a corresponding IPv6 address according to a first resolution record which is added for pre-association of the redirection domain name and comprises an IPv6 address;
and resolving the redirection domain name into a corresponding IPv4 address according to a second resolution record which is added for the redirection domain name pre-association and comprises an IPv4 address.
At each specific moment, the domain name service side performs domain name resolution based on the enabled generic domain name and its domain name information system.
After a first resolution request carrying a target redirection domain name of a requester is obtained, a domain name server extracts an IP address from a corresponding resolution record corresponding to the target redirection domain name according to a request type, for example, according to a request type AAAA, extracts a corresponding IPv6 address from an AAAA record corresponding to the target redirection domain name, and the like.
In addition, optionally, in the domain name information system of the domain name service side, each domain name may be associated with only one resolution record (e.g., a record) carrying the IPv4 address. After a first analysis request carrying a target redirection domain name of a requester is obtained, if the request type is a type for indicating obtaining of an IPv4 address, if the request type is a, the corresponding IPv4 address is directly extracted from an a record corresponding to the target redirection domain name, if the request type is a type for indicating obtaining of an IPv6 address, such as AAAA, an inverse conversion process matching the conversion rule of the above is performed on the target redirection domain name, the target redirection domain name is converted into an IPv6 address, for example, for a domain name 1234g5678g90abg0g0g cdef.xxx.com, the general domain name xxx.com in the target redirection domain name is removed, 1234g5678g90abg0g0g0g cdef is obtained, and then g in the target redirection domain name is further replaced with an colon number, and an IPv6 address in the standard format of 1234:5678: 90: 0:0:0: cdef is obtained.
Step 503, feeding back response information including the target version type IP address to the requester.
And then, the domain name server assembles the analysis result into response information and returns the response information to the requester, wherein the response information comprises an IP address corresponding to the request type of the requester, and the IP address specifically corresponds to the target redirection domain name fed back by the dispatcher.
For the case of supporting IPv4 and IPv6 dual protocol stacks, the requesting party will preferably send an IPv6 type resolution request to the DNS system, and accordingly, the domain name service party returns a response message including an IPv6 address.
Subsequently, the requester locates a target device for providing resource service, such as a certain CDN edge server in the CDN network, according to the IPv6 address in the response information, and initiates a link to the target device to obtain a resource.
In this embodiment, the resource server stores the first analysis record including an IPv6 address and the second analysis record including an IPv4 address for each domain name, so that it is possible to support dual-protocol IP address analysis on the redirection domain name, and accordingly, the flexibility of the redirection scheduling technology in supporting IPv6 is improved, and the service capabilities of the resource server such as the CDN are improved.
When the IPv6 network environment is not good and the service quality is not good, based on the redirection scheduling technique of the embodiment of the present application, it can support the requester to quickly switch to use the IPv4 network environment for network information access, and thus, referring to fig. 7, the redirection scheduling processing method applied to the domain name server of the present application may further include, after step 503:
step 504, a second resolution request carrying the target redirection domain name of the requester is obtained.
When a requester acquires resources through an IPv6 network according to an IPv6 address fed back by a DNS system, if the IPv6 network environment is not good, the situation of response timeout or response failure is easily caused, at this time, the requester terminal can continuously initiate a second resolution request to the DNS system according to a pre-established network switching policy, wherein the second resolution request carries a target redirection domain name and an IPv4 request type (for example, specific portable request type information: A).
And 505, analyzing the target redirection domain name according to the analysis rule to obtain a target version type IP address consistent with the request type of the second analysis request.
The DNS system receives the second resolution request from the requester, and extracts the corresponding IPv4 address from the second resolution record (e.g., record a) corresponding to the target redirection domain name according to the resolution rule, thereby implementing the domain name resolution of the type required by the second resolution request.
Step 506, returning response information including the target version type IP address consistent with the request type of the second resolution request to the requester.
And then, the DNS system assembles the IPv4 address obtained by analysis into response information and feeds the response information back to the requester.
The requester locates a certain CDN edge server in the CDN network based on the IPv4 network according to the obtained IPv4 address, and obtains resources for the CDN edge server, so that the resource is easy to understand, after network switching is carried out, the CDN edge server located based on the IPv4 address is consistent with the CDN edge server located by the IPv6 address before switching, and the difference is that the resource service based on location and location is realized based on different IP protocol stacks and different networks.
Based on the domain name information structure of the domain name service side, the IP address resolution of the required protocol version is carried out on the same redirection domain name according to the requirement, the purposes of resource acquisition and information access can be flexibly switched to another network when one network environment is poor are achieved, for IPv6, the flexibility of the redirection scheduling technology for supporting IPv6 is improved, the service capability of the CDN network is improved, and meanwhile the capability of a requester terminal for accessing resources is also improved.
Corresponding to the redirection scheduling processing method applied to the scheduler, an embodiment of the present application further provides a redirection scheduling processing apparatus applied to the scheduler, and as shown in fig. 8, the structural schematic diagram of the apparatus may include:
a first obtaining unit 801, configured to obtain a resource request of a requester;
a determining unit 802, configured to determine a target IP address of a target device for providing a resource service for the resource request;
a second obtaining unit 803, configured to obtain a target redirection domain name corresponding to the target IP address when the resource request is at least a first version type IP request;
a first feedback unit 804, configured to feed back response information including the target redirection domain name to the requester;
wherein, the redirection domain name corresponds to: a resolution rule usable at least to resolve the redirected domain name into a first version type IP address and a second version type IP address.
In an optional implementation manner of the embodiment of the present application, the second obtaining unit 803 is specifically configured to:
under the condition that the resource request is an IPv6 request, acquiring a target redirection domain name corresponding to the IPv6 address of the target device;
or,
and under the condition that the resource request is an IPv6 request and is a hypertext transfer security protocol (https) request, acquiring a target redirection domain name corresponding to the IPv6 address of the target device.
In an optional implementation manner of the embodiment of the present application, the target redirection domain name is obtained by processing the target IP address and a pre-applied redirection domain name;
the processing procedure for obtaining the target redirection domain name based on the processing of the target IP address and the pre-applied redirection generic domain name comprises the following steps:
converting the IPv6 address of the target device into a domain name prefix;
and assembling the domain name prefix and the redirection domain name to obtain the target redirection domain name corresponding to the IPv6 address of the target equipment.
In an optional implementation manner of the embodiment of the present application, redirecting the resolution rule of the domain name corresponding to the domain name service side includes:
resolving the redirection domain name into a corresponding IPv6 address according to a first resolution record which is added for pre-association of the redirection domain name and comprises an IPv6 address;
and resolving the redirection domain name into a corresponding IPv4 address according to a second resolution record which is added for the redirection domain name pre-association and comprises an IPv4 address.
In an alternative implementation manner of the embodiment of the present application, referring to fig. 9, the apparatus may further include:
a selecting unit 805 configured to: if the currently used redirection domain name of the dispatcher is unavailable, selecting an available redirection domain name from a plurality of redirection domain names previously applied by the dispatcher, and triggering the second obtaining unit 803 to obtain a target redirection domain name corresponding to the target IP address, so that the obtained target redirection domain name is obtained by processing the target IP address and the selected redirection domain name.
As for the redirection scheduling processing apparatus applied to the scheduler disclosed in the embodiment of the present application, since it corresponds to the redirection scheduling processing method applied to the scheduler disclosed in each of the above method embodiments, the description is relatively simple, and for the relevant similar points, please refer to the description of the above corresponding method embodiments, and details are not described here.
Corresponding to the above redirection scheduling processing method applied to the domain name service provider, an embodiment of the present application further provides a redirection scheduling processing apparatus applied to the domain name service provider, and as shown in fig. 10, the structural schematic diagram of the apparatus may include:
a third obtaining unit 1001, configured to obtain a first resolution request carrying a target redirection domain name from a requestor;
an analyzing unit 1002, configured to analyze the target redirection domain name according to an analysis rule, to obtain a target version type IP address consistent with the request type of the first analysis request; the analysis rule can be at least used for analyzing the redirection domain name into a first version type IP address and a second version type IP address;
a second feedback unit 1003, configured to feed back response information including the target version type IP address to the requester.
In an optional implementation manner of the embodiment of the present application, the domain name service side pre-stores, for each redirected domain name in the redirected domain name set, a first resolution record including an IPv6 address and a second resolution record including an IPv4 address, which are added in association with the redirected domain name.
In an optional implementation manner of the embodiment of the present application, the request type of the first resolution request is a type for requesting an IPv6 address;
the parsing unit 1002, when parsing the target redirection domain name according to the parsing rule to obtain a target version type IP address consistent with the request type of the first parsing request, is specifically configured to: and resolving the target redirection domain name into a corresponding IPv6 address according to a first resolution record added for the target redirection domain name in a pre-association manner.
In an optional implementation manner of the embodiment of the present application, the third obtaining unit 1001 is further configured to: acquiring a second resolution request carrying the target redirection domain name from a requester; the analyzing unit 1002 is further configured to analyze the target redirection domain name according to the analysis rule, so as to obtain a target version type IP address consistent with the request type of the second analysis request; the second feedback unit 1003 is further configured to: and feeding back response information including a target version type IP address consistent with the request type of the second resolution request to a requester.
In an optional implementation manner of the embodiment of the present application, the request type of the second resolution request is a type for requesting an IPv4 address;
the parsing unit 1002, when parsing the target redirection domain name according to the parsing rule to obtain a target version type IP address consistent with the request type of the second parsing request, is specifically configured to: and resolving the target redirection domain name into a corresponding IPv4 address according to a second resolution record added for the target redirection domain name in a pre-association manner.
As for the redirection scheduling processing apparatus applied to the domain name service side disclosed in the embodiment of the present application, since it corresponds to the redirection scheduling processing method applied to the domain name service side disclosed in the above method embodiments, the description is relatively simple, and for the relevant similar points, please refer to the description of the above corresponding method embodiments, and detailed description is omitted here.
The embodiment of the present application further discloses a scheduling device, where the scheduling device may be but is not limited to a certain scheduling server in a CDN scheduling system, and the structural diagram of the scheduling device shown in fig. 11 at least includes:
a first memory 1101 for storing a first set of computer instructions;
the set of computer instructions may be embodied in the form of a computer program.
The first memory 1101 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The first processor 1102 is configured to implement the redirection scheduling processing method applied to the scheduler according to any of the above method embodiments by executing the instruction set stored in the first memory.
The first processor 1102 may be a Central Processing Unit (CPU), an application-specific integrated circuit (ASIC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices.
Besides, the scheduling device may further include a communication interface, a communication bus, and the like. The memory, the processor and the communication interface communicate with each other via a communication bus.
The communication interface is used for communication between the scheduling device and other devices (such as a central control device in the CDN scheduling system). The communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like, and may be divided into an address bus, a data bus, a control bus, and the like.
In this embodiment, the first processor in the scheduler implements redirection of the resource request of the user by acquiring, for the resource request of the requester, a target redirection domain name that can be used at least to support resolution of the dual-version type IP address (i.e. the redirection domain name can be resolved into at least a first version type IP address and a second version type IP address) for the scheduler in the case that the resource request is at least the first version type IP request, and accordingly, the scheduler can support, for example, a client to access the resource in a dual-protocol stack manner, so that, when the network environment of the first version type IP (e.g. IPv6) is poor, the scheduler can switch to the network environment based on the second version type IP (e.g. IPv4) for resource acquisition, and when the redirection scheduling technique of the present application is applied to support of networks such as IPv6, obviously, the flexibility of supporting the IPv6 can be improved, and the service capability of resource servers such as the CDN is further improved.
The embodiment of the present application further discloses a domain name service device, which may specifically be a DNS server in a DNS system, and as shown in a schematic structural diagram of the domain name service device shown in fig. 12, the domain name service device at least includes:
a second memory 1201 for storing a second set of computer instructions;
the second processor 1202 is configured to implement the redirection scheduling processing method applied to the domain name service device according to any of the above method embodiments by executing the instruction set stored in the second memory.
The second memory 1201 and the second processor 1202 are similar to the first memory 1101 and the second processor 1102 of the scheduling apparatus, and thus, it can be understood that the detailed description is omitted.
The second processor in the domain name service device implements the matching processing with the scheduling device by executing the second computer instruction set stored in the second memory, and performs the IP address resolution of the required protocol version on the same redirection domain name according to the requirement based on the stored domain name information structure, thereby achieving the purpose of flexibly switching to another network for resource acquisition and information access when one network environment is poor, and in terms of IPv6, the flexibility of the redirection scheduling technology for supporting IPv6 is improved, the service capability of the CDN network is improved, and the capability of the requesting terminal for accessing resources is also improved.
In addition, the embodiment of the present application also discloses a computer readable storage medium, in which a first computer instruction set is stored, and when being executed by a processor, the first computer instruction set implements the redirection scheduling processing method applied to the scheduler as disclosed in any method embodiment above.
Specifically, when the first computer instruction set in the computer-readable storage medium of the embodiment is executed by the processor, for a resource request of a requester, in the case that the resource request is at least a first version type IP request, the dispatcher redirects the resource request of the user by obtaining a target redirection domain name for which at least the redirection domain name can be used to support resolution of a dual version type IP address (i.e. at least the redirection domain name can be resolved into the first version type IP address and the second version type IP address), and accordingly can support the requester, such as a client, to access the resource by using a dual-protocol stack manner, so that, when the network environment of the first version type IP (e.g. IPv6) is poor, the dispatcher can switch to the network environment based on the second version type IP (e.g. IPv4) for resource acquisition, and when the redirection scheduling technology of the present application is applied to support of networks, such as IPv6, obviously, the flexibility of supporting the IPv6 can be improved, and the service capability of resource servers such as the CDN is further improved.
The embodiment of the present application further discloses another computer-readable storage medium, which stores a second set of computer instructions, and the second set of computer instructions, when executed by a processor, implement the redirection scheduling processing method applied to the domain name service party as disclosed in any of the above method embodiments.
When the second computer instruction set stored in the other computer readable storage medium is executed by the processor, based on the domain name information structure stored by the domain name service side, the purpose of flexibly switching to another network for resource acquisition and information access when one network environment is poor is achieved by performing IP address resolution of a required protocol version on the same redirection domain name according to requirements, and for IPv6, the flexibility of support of the redirection scheduling technology to IPv6 is improved, the service capability of the CDN network is improved, and the capability of a requester terminal for accessing resources is also improved.
In addition, the embodiment of the application also discloses a redirection scheduling processing system, which comprises a request party, a domain name service party and a scheduling party;
wherein:
the requestor can be configured to initiate a resource request to the dispatcher via the domain name service;
the dispatcher is used for realizing the redirection of the resource request of the requester by executing the redirection dispatching processing method applied to the dispatcher disclosed by any method embodiment;
the domain name service side is used for providing the domain name service for the requesting side by executing the redirection scheduling processing method applied to the domain name service side as disclosed by any method embodiment.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
For convenience of description, the above system or apparatus is described as being divided into various modules or units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
Finally, it is further noted that, herein, relational terms such as first, second, third, fourth, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (17)

1. A redirection scheduling processing method is characterized in that the method is applied to a scheduling party;
the method comprises the following steps:
acquiring a resource request of a requester;
determining a target IP address of a target device for providing resource service for the resource request;
under the condition that the resource request is at least a first version type IP request, acquiring a target redirection domain name corresponding to the target IP address;
feeding back response information including the target redirection domain name to a requester;
wherein, the redirection domain name corresponds to: a resolution rule usable at least to resolve the redirected domain name into a first version type IP address and a second version type IP address.
2. The method according to claim 1, wherein the obtaining a target redirection domain name corresponding to the target IP address in the case that the resource request is at least a first version type IP request comprises:
under the condition that the resource request is an IPv6 request, acquiring a target redirection domain name corresponding to the IPv6 address of the target device;
or,
and under the condition that the resource request is an IPv6 request and is a hypertext transfer security protocol (https) request, acquiring a target redirection domain name corresponding to the IPv6 address of the target device.
3. The method according to claim 2, wherein the target redirection domain name is obtained based on processing the target IP address and a pre-applied redirection domain name;
the processing procedure for obtaining the target redirection domain name based on the processing of the target IP address and the pre-applied redirection generic domain name comprises the following steps:
converting the IPv6 address of the target device into a domain name prefix;
and assembling the domain name prefix and the redirection domain name to obtain the target redirection domain name corresponding to the IPv6 address of the target equipment.
4. The method of claim 1, wherein redirecting the resolution rule for the domain name at the domain name server comprises:
resolving the redirection domain name into a corresponding IPv6 address according to a first resolution record which is added for pre-association of the redirection domain name and comprises an IPv6 address;
and resolving the redirection domain name into a corresponding IPv4 address according to a second resolution record which is added for the redirection domain name pre-association and comprises an IPv4 address.
5. The method according to claim 1, further comprising, before said obtaining a target redirect domain name corresponding to the target IP address:
and if the currently used redirection domain name of the dispatcher is unavailable, selecting an available redirection domain name from a plurality of redirection domain names which are applied by the dispatcher in advance, and triggering the step of acquiring the target redirection domain name corresponding to the target IP address, so that the acquired target redirection domain name is obtained by processing the target IP address and the selected redirection domain name.
6. A redirection scheduling processing method is characterized in that the method is applied to a domain name service side;
the method comprises the following steps:
acquiring a first analysis request carrying a target redirection domain name of a requester;
analyzing the target redirection domain name according to an analysis rule to obtain a target version type IP address consistent with the request type of the first analysis request; the analysis rule can be at least used for analyzing the redirection domain name into a first version type IP address and a second version type IP address;
and feeding back response information comprising the target version type IP address to a requester.
7. The method of claim 6, wherein the domain name service pre-stores a first resolution record comprising an IPv6 address and a second resolution record comprising an IPv4 address for each redirected domain name in the set of redirected domain names added for association with the redirected domain name.
8. The method of claim 7, wherein the request type of the first resolution request is a type for requesting an IPv6 address;
the analyzing the target redirection domain name according to the analysis rule to obtain a target version type IP address consistent with the request type of the first analysis request comprises the following steps:
and resolving the target redirection domain name into a corresponding IPv6 address according to a first resolution record added for the target redirection domain name in a pre-association manner.
9. The method of claim 8, wherein after the feeding back response information including the target version type IP address to the requestor, further comprising:
acquiring a second resolution request carrying the target redirection domain name from a requester; and analyzing the target redirection domain name according to the analysis rule to obtain a target version type IP address consistent with the request type of the second analysis request, and feeding back response information including the target version type IP address consistent with the request type of the second analysis request to a requester.
10. The method of claim 9, wherein the request type of the second resolution request is a type for requesting an IPv4 address;
the analyzing the target redirection domain name according to the analysis rule to obtain a target version type IP address consistent with the request type of the second analysis request comprises:
and resolving the target redirection domain name into a corresponding IPv4 address according to a second resolution record added for the target redirection domain name in a pre-association manner.
11. A redirection scheduling processing device is applied to a scheduling party;
the device comprises:
a first obtaining unit, configured to obtain a resource request of a requester;
a determining unit, configured to determine a target IP address of a target device for providing a resource service for the resource request;
a second obtaining unit, configured to obtain a target redirection domain name corresponding to the target IP address when the resource request is at least a first version type IP request;
a first feedback unit, configured to feed back response information including the target redirection domain name to a requester;
wherein, the redirection domain name corresponds to: a resolution rule usable at least to resolve the redirected domain name into a first version type IP address and a second version type IP address.
12. A redirection scheduling processing device is characterized by being applied to a domain name service side;
the device comprises:
a third obtaining unit, configured to obtain a first resolution request carrying a target redirection domain name from a requester;
the resolving unit is used for resolving the target redirection domain name according to a resolving rule to obtain a target version type IP address consistent with the request type of the first resolving request; the analysis rule can be at least used for analyzing the redirection domain name into a first version type IP address and a second version type IP address;
and the second feedback unit is used for feeding back response information comprising the target version type IP address to the requester.
13. A scheduling apparatus, comprising:
a first memory for storing a first set of computer instructions;
a first processor for implementing the redirection scheduling processing method according to any of claims 1 to 5 by executing a set of instructions stored on the first memory.
14. A domain name service apparatus, comprising:
a second memory for storing a second set of computer instructions;
a second processor for implementing the redirection scheduling processing method according to any of claims 6-10 by executing a set of instructions stored on the second memory.
15. A computer-readable storage medium having stored therein a first set of computer instructions which, when executed by a processor, implement the redirection scheduling processing method of any of claims 1-5.
16. A computer-readable storage medium having stored therein a second set of computer instructions which, when executed by a processor, implement the redirection scheduling processing method of any of claims 6-10.
17. A redirection scheduling processing system is characterized by comprising a request party, a domain name service party and a scheduling party;
wherein:
the requester can be used for initiating a resource request to the dispatcher through the domain name service party;
the dispatcher, configured to implement redirection of the resource request of the requester by performing the method according to any one of claims 1 to 5;
the domain name service party, configured to provide the domain name service for the requesting party by performing the method according to any one of claims 6 to 10.
CN202011448229.3A 2020-12-09 2020-12-09 Redirection scheduling processing method, device and system, related equipment and storage medium Active CN112583952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011448229.3A CN112583952B (en) 2020-12-09 2020-12-09 Redirection scheduling processing method, device and system, related equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011448229.3A CN112583952B (en) 2020-12-09 2020-12-09 Redirection scheduling processing method, device and system, related equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112583952A true CN112583952A (en) 2021-03-30
CN112583952B CN112583952B (en) 2023-01-24

Family

ID=75131813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011448229.3A Active CN112583952B (en) 2020-12-09 2020-12-09 Redirection scheduling processing method, device and system, related equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112583952B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448990A (en) * 2021-12-23 2022-05-06 天翼云科技有限公司 Resource scheduling method, device and equipment based on fusion CDN
CN114745353A (en) * 2022-04-11 2022-07-12 北京英迪瑞讯网络科技有限公司 Traffic scheduling method for IPv4 end to access IPv4/IPv6 network
WO2022247750A1 (en) * 2021-05-28 2022-12-01 上海云盾信息技术有限公司 Access request processing method, electronic device, electronic equipment, and medium
CN116074386A (en) * 2023-02-27 2023-05-05 阿里巴巴(中国)有限公司 Service calling method and device, service registration method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2015236A1 (en) * 2007-07-10 2009-01-14 Ubs Ag Redirection technique in a communication network
CN102821171A (en) * 2012-08-29 2012-12-12 网宿科技股份有限公司 Method and device for redirecting DNS (domain name server) via namespace service providers
US20130103805A1 (en) * 2011-07-29 2013-04-25 3Crowd Technologies, Inc. Facilitating content accessibility via different communication formats
CN103856408A (en) * 2014-02-17 2014-06-11 中国科学院计算机网络信息中心 IPv6 and IPv4 intercommunication method based on DNS
CN111988441A (en) * 2020-07-24 2020-11-24 下一代互联网关键技术和评测北京市工程研究中心有限公司 Networking access method and system based on IPv6

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2015236A1 (en) * 2007-07-10 2009-01-14 Ubs Ag Redirection technique in a communication network
US20130103805A1 (en) * 2011-07-29 2013-04-25 3Crowd Technologies, Inc. Facilitating content accessibility via different communication formats
CN102821171A (en) * 2012-08-29 2012-12-12 网宿科技股份有限公司 Method and device for redirecting DNS (domain name server) via namespace service providers
CN103856408A (en) * 2014-02-17 2014-06-11 中国科学院计算机网络信息中心 IPv6 and IPv4 intercommunication method based on DNS
CN111988441A (en) * 2020-07-24 2020-11-24 下一代互联网关键技术和评测北京市工程研究中心有限公司 Networking access method and system based on IPv6

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
PHILIP J. NESSER II等: "Survey of IPv4 Addresses in Currently Deployed IETF Standards", 《IETF 》 *
SEIL JEON ET AL: ""Load-Balancing Proxy Mobile IPv6 Networks with Mobility Session Redirection"", 《IEEE》 *
何伟 等: ""IP城域网HTTP Cache技术部署策略研究"", 《数据通信》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022247750A1 (en) * 2021-05-28 2022-12-01 上海云盾信息技术有限公司 Access request processing method, electronic device, electronic equipment, and medium
CN114448990A (en) * 2021-12-23 2022-05-06 天翼云科技有限公司 Resource scheduling method, device and equipment based on fusion CDN
CN114448990B (en) * 2021-12-23 2023-06-23 天翼云科技有限公司 Fusion CDN-based resource scheduling method, device and equipment
CN114745353A (en) * 2022-04-11 2022-07-12 北京英迪瑞讯网络科技有限公司 Traffic scheduling method for IPv4 end to access IPv4/IPv6 network
CN116074386A (en) * 2023-02-27 2023-05-05 阿里巴巴(中国)有限公司 Service calling method and device, service registration method and device
CN116074386B (en) * 2023-02-27 2023-09-26 阿里巴巴(中国)有限公司 Service calling method and device, service registration method and device

Also Published As

Publication number Publication date
CN112583952B (en) 2023-01-24

Similar Documents

Publication Publication Date Title
CN112583952B (en) Redirection scheduling processing method, device and system, related equipment and storage medium
US10523783B2 (en) Request routing utilizing client location information
CN111756815B (en) 302 skipping method, skipping domain name generation method, domain name resolution method and system
JP5404766B2 (en) Method and system for requesting routing
JP5150769B2 (en) Updating routing information using request routing and client location information
JP6146950B2 (en) Method and system for requesting routing using a network computing component
EP2695358B1 (en) Selection of service nodes for provision of services
CN107613037B (en) Domain name redirection method and system
CN113067909B (en) Edge node addressing method, device, equipment and storage medium
WO2015160934A1 (en) Geolocation via internet protocol
WO2017161965A1 (en) Method, device, and system for dynamic domain name system (dns) redirection
CN112825524B (en) Method, device and system for determining network service node
US8996607B1 (en) Identity-based casting of network addresses
CN115118700B (en) Communication method and communication system
JP6001512B2 (en) Communication control system and communication control method
CN112543191B (en) Load balancing method and device
JP6487870B2 (en) Name resolution device, name resolution method, and name resolution program
CN115701067A (en) Method, device and system for switching edge nodes of user side
CN114268605A (en) Intelligent DNS realization method and device and computer storage medium
CN112351109A (en) Accessory processing method and device

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