CN113037878B - CDN data access method, system and electronic equipment - Google Patents

CDN data access method, system and electronic equipment Download PDF

Info

Publication number
CN113037878B
CN113037878B CN202110577606.1A CN202110577606A CN113037878B CN 113037878 B CN113037878 B CN 113037878B CN 202110577606 A CN202110577606 A CN 202110577606A CN 113037878 B CN113037878 B CN 113037878B
Authority
CN
China
Prior art keywords
domain name
cdn
address
server
terminal equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110577606.1A
Other languages
Chinese (zh)
Other versions
CN113037878A (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 Tuoke Network Technology Co ltd
Original Assignee
Beijing Tuoke 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 Tuoke Network Technology Co ltd filed Critical Beijing Tuoke Network Technology Co ltd
Priority to CN202110577606.1A priority Critical patent/CN113037878B/en
Publication of CN113037878A publication Critical patent/CN113037878A/en
Application granted granted Critical
Publication of CN113037878B publication Critical patent/CN113037878B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • 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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a CDN data access method, a system, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: the overseas terminal equipment inquires the IP address of the content URL access domain name from a local DNS server; resolving the obtained canonical name CNAME domain name to obtain an IP address of the CDN global load balancing equipment; the overseas terminal equipment initiates a content URL access request to the CDN global load balancing equipment according to the IP address; selecting CDN regional load balancing equipment of the region to which the overseas terminal equipment belongs; and the CDN edge server of the region to which the overseas terminal equipment belongs accesses a domestic intermediate source server through a configured IEPL special line. The embodiment of the invention provides the CDN edge node based on global multi-place deployment, and when facing the access request of overseas users, the IEPL special line technology is used for calling the service resources in the domestic intermediate source server, thereby reducing the transmission delay of overseas user resource access.

Description

CDN data access method, system and electronic equipment
Technical Field
The invention relates to the technical field of data transmission, in particular to a CDN data access method, a system, electronic equipment and a computer readable storage medium.
Background
CDN (Content Delivery Network) is a common technology in the current internet. The CDN can distribute the content of the source station to the node closest to the user, so that the user can obtain the required content nearby, and the response speed and success rate of user access are improved. Therefore, the problem of access delay caused by factors such as distribution, bandwidth and server performance can be solved.
In the technical field of online education, overseas terminal users have the problems of low access speed, network delay and the like when accessing the Internet.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a CDN data access method, an apparatus, an electronic device, and a computer-readable storage medium.
In a first aspect, an embodiment of the present invention provides a CDN data access method, including:
receiving a content Uniform Resource Locator (URL) access request of a overseas terminal user by overseas terminal equipment, and inquiring an IP address of a content URL access domain name from a local DNS (domain name server);
if the cache server does not have the IP address record of the content URL access domain name, the operating system obtains the IP address of the CDN global load balancing equipment according to the obtained canonical name CNAME domain name resolution and sends the IP address to the overseas terminal equipment;
the overseas terminal equipment initiates a content URL access request to the CDN global load balancing equipment according to the IP address;
the CDN global load balancing equipment selects CDN regional load balancing equipment of the region to which the overseas terminal equipment belongs according to the IP address and the content URL of the overseas terminal equipment, and informs the overseas terminal equipment to initiate an access request to the CDN regional load balancing equipment;
the CDN regional load balancing equipment selects a proper cache server for overseas terminal equipment to respond to the URL access request;
if the cache server does not have the content required by the URL access request, the CDN edge server of the region to which the overseas terminal equipment belongs accesses a domestic intermediate source server through a configured IEPL special line;
and the domestic intermediate source server obtains the content required by the URL access request through an access object storage source station and transmits the content to the overseas terminal equipment through the IEPL special line.
In a second aspect, an embodiment of the present invention provides a CDN data access system, which is characterized by including overseas terminal devices, domain name resolution devices, a CDN global load balancing device, a CDN regional load balancing device, a CDN edge server, and a domestic intermediate origin server:
the overseas terminal equipment is used for receiving a content Uniform Resource Locator (URL) access request of an overseas terminal user and inquiring an IP address of a content URL access domain name from a local DNS (domain name server); initiating a content URL access request to the CDN global load balancing equipment according to the IP address;
the domain name resolution equipment with a built-in operating system is used for obtaining the IP address of the CDN global load balancing equipment according to the obtained canonical name CNAME domain name resolution and sending the IP address to the overseas terminal equipment if the cache server does not have the IP address record of the content URL access domain name;
the CDN global load balancing device is used for selecting CDN regional load balancing devices of the region to which the overseas terminal equipment belongs according to the IP address and the content URL of the overseas terminal equipment, and informing the overseas terminal equipment to send an access request to the CDN regional load balancing devices;
the CDN regional load balancing equipment is used for selecting a proper cache server for the overseas terminal equipment to respond to the URL access request;
the CDN edge server is used for accessing a domestic intermediate source server through a configured IEPL special line if the cache server does not have the content required by the URL access request;
and the domestic intermediate source server is used for obtaining the content required by the URL access request through an access object storage source station and transmitting the content to the overseas terminal equipment through the IEPL special line.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a bus, a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor, where the transceiver, the memory, and the processor are connected via the bus, and when the computer program is executed by the processor, the steps in the CDN data access method are implemented.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps in the CDN data access method described above.
The CDN data access method, the system, the electronic equipment and the computer readable storage medium of the embodiment of the invention are based on CDN edge nodes which are deployed in multiple places around the world, when facing to the access request of overseas users, the business resources in the domestic intermediate source server are called by an IEPL special line technology, the transmission delay of overseas user resource access is reduced, the courseware resources such as PPT, mp3 and mp4 can be timely and effectively downloaded when the overseas users receive online education service, the source return request in the resource transmission process is reduced, and the transmission pressure of an object storage source station is saved.
The method, the system, the electronic equipment and the computer readable storage medium provided by the embodiment of the invention call the service resources in the domestic intermediate source server through the IEPL special line technology, can keep the website content online when encountering hardware faults and network congestion, and carry out load balancing on Internet traffic, thereby realizing effective transfer of network faults, avoiding the network congestion caused by the network faults and resisting the risk brought by data service interruption.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present invention, the drawings required to be used in the embodiments or the background art of the present invention will be described below.
Fig. 1 is a schematic network structure diagram illustrating a CDN data access method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a CDN data access method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a CDN data access system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a CDN data access electronic device according to an embodiment of the present invention.
Detailed Description
For clarity and conciseness of description of embodiments of the present invention, a brief introduction to the relevant concepts or technologies is first given:
referring to fig. 1, a technical background of an embodiment of the present invention is described.
A CDN (Content Delivery Network), also known as a Content Delivery Network or Content Delivery Network, refers to a set of geographically dispersed servers that work together to provide rapid Delivery of internet Content. CDNs allow for rapid migration of assets needed to load internet content, including HTML pages, javascript files, style sheets, images, and videos, etc. At the heart of a CDN is a network of servers connected together with the goal of delivering content as quickly, inexpensively, reliably, and securely as possible. To improve speed and connectivity, CDNs place servers at switching points between different networks.
The IEPL (International Ethernet Private Line) is constructed on an MSTP (Multi-Service Transport Platform) device Platform, and based on an SDH (synchronous digital hierarchy) transmission technology, GFP (generic framing protocol) is adopted for encapsulation, so that transparent transmission protocol can be realized under the condition of ensuring bandwidth and physical layer isolation, and a layer of point-to-point data Private Line Service is provided. The IEPL is an enhanced IPLC (International Private Circuit) product of an ethernet interface, is an end-to-end dedicated management bandwidth service, has high flexibility and the highest physical layer network security function, and allows a client to easily manage a wide area network and an application with high bandwidth requirements.
The DNS (Domain Name System) is a System for solving machine naming on the Internet. The domain name and the IP address are mapped to each other to form a distributed database, so that people can access the Internet more conveniently.
Load balancing is a computer technique used to distribute load among multiple computers (computer clusters), network connections, CPUs, disk drives, or other resources to optimize resource usage, maximize throughput, minimize response time, and avoid overloading. Using multiple server components with load balancing, instead of a single component, may increase reliability through redundancy. The load balancing service is usually completed by dedicated software and hardware, and the main function is to reasonably distribute a large amount of jobs to a plurality of operation units for execution, so as to solve the problems of high concurrency and high availability in the internet architecture.
The role of LB (Load Balancer) is to distribute network traffic evenly among many servers. Load balancing may be hardware based or software based. CDNs use load balancing in data centers to spread incoming requests into the pool of available servers, ensuring that traffic peaks are handled in the most efficient manner. Load balancing can increase processing speed and make efficient use of server capacity by making efficient use of available resources. Properly balancing the load of incoming traffic is a key component of mitigating traffic spikes during atypical Internet activities (e.g., when a web site encounters unusually many visitors, or when a distributed denial of service attack occurs).
Cloud Technology refers to a hosting Technology for unifying resources of hardware, software, network and the like in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
Cloud Computing (Cloud Computing) is a kind of distributed Computing, which distributes Computing tasks in resource pools formed by a large number of computers, so that various application systems can acquire Computing power, storage space and information services as required, and can acquire, use as required, expand as required and pay as used. The basic capability provider of the cloud computing establishes a cloud computing resource pool, and deploys various types of virtual resources in the resource pool for external users to select and use. The cloud computing resource pool mainly comprises: computing devices (virtualized machines, including operating systems), storage devices, and network devices.
The distributed Cloud Storage system is a new concept extended and developed on the Cloud computing concept, and refers to a Storage device (also referred to as a Storage node) of a large number of different types in a network is integrated and cooperated through application software or an application interface by functions of cluster application, grid technology, distributed Storage file system and the like, and one Storage device or a plurality of Storage devices form a Storage cluster to provide data Storage and service access functions to the outside. At present, a storage method of a distributed cloud storage system is as follows: a block device is created. When creating block devices, each block device is allocated a physical storage space, which consists of the disks of a certain storage device or of several storage devices.
Cloud Security (Cloud Security) refers to a generic term for Security software, hardware, users, organizations, and secure Cloud platforms that are applied based on a Cloud computing model. The cloud security integrates emerging technologies and concepts such as parallel processing, grid computing and unknown virus behavior judgment, abnormal monitoring of software behaviors in the network is achieved through a large number of meshed clients, the latest information of trojans and malicious programs in the internet is obtained and sent to the server for automatic analysis and processing, and then the virus and trojan solution is distributed to each client.
Private Cloud (Private Cloud) is a method for creating Cloud infrastructure and software and hardware resources in a firewall so that each department in an organization or enterprise can share the resources in a data center. A private cloud is created, typically with cloud equipment IaaS (Infrastructure as a Service) software in addition to hardware resources.
In the embodiment of the invention, the online education solution is provided based on SaaS or PaaS, and the terminal users are distributed in various regions around the world. When using a network classroom, the end user needs a service system to synchronize the playback of PPT, mp3, mp4 and other courseware or completed courseware into the network classroom. The service system needs to distribute the resources to the edge node closest to the end user, so that the end user can obtain the required content nearby, the access response speed and success rate of the end user are provided, and the source station can be protected.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be appreciated by those skilled in the art, "client," "terminal," and "terminal device" as used herein include both devices having only a wireless signal receiver without transmit capability and devices having receive and transmit hardware capable of two-way communication over a two-way communication link. Such a device may include: cellular or other communication devices such as personal computers, tablets, etc. having single or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "client," "terminal device" can be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. The "client", "terminal Device" used herein may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, and may also be a smart tv, a set-top box, and the like.
The hardware referred to by the names "server", "client", "service node", etc. in the embodiments of the present invention is essentially an electronic device having the performance of a personal computer, and is a hardware device having necessary components disclosed by von neumann principles such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device, in which a computer program is stored in the memory, and the central processing unit calls a program stored in an external memory into the internal memory to run, executes instructions in the program, and interacts with the input and output devices, thereby completing a specific function.
Those skilled in the art will appreciate that the concept of "server" in the embodiments of the present invention may also be extended to be applicable to a server cluster. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided, and in physical space, the servers may be independent from each other but can be called through interfaces, or may be integrated into a physical computer or a set of computer clusters.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as methods, apparatus, electronic devices, and computer-readable storage media. Thus, embodiments of the invention may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), a combination of hardware and software. Furthermore, in some embodiments, embodiments of the invention may also be embodied in the form of a computer program product in one or more computer-readable storage media having computer program code embodied in the medium.
The computer-readable storage media described above may take any combination of one or more computer-readable storage media. The computer-readable storage medium includes: an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium include: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only Memory (ROM), an erasable programmable read-only Memory (EPROM), a Flash Memory, an optical fiber, a compact disc read-only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any combination thereof. In embodiments of the invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, device, or apparatus.
The computer program code embodied on the computer readable storage medium may be transmitted using any appropriate medium, including: wireless, wire, fiber optic cable, Radio Frequency (RF), or any suitable combination thereof.
Computer program code for carrying out operations for embodiments of the present invention may be written in one or more programming languages, including an object oriented programming language such as: java, Smalltalk, C + +, and also include conventional procedural programming languages, such as: c or a similar programming language. The computer program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be over any of a variety of networks, including: a Local Area Network (LAN) or a Wide Area Network (WAN), which may be connected to the user's computer, may be connected to an external computer.
Embodiments of the present invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus, electronic devices, and computer-readable storage media according to embodiments of the invention.
It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions. These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing apparatus to function in a particular manner. Thus, the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
In order to facilitate understanding of embodiments of the present invention, a few terms involved will be further described below.
1. CDN: a novel network content service system is constructed based on an IP network and provides content distribution and service based on the efficiency requirement, quality requirement and content order of content access and application. In a broad sense, the CDN represents a network application service model with high quality, high efficiency and clear network order built based on the network.
In brief, the CDN is an overall system deployed strategically, and includes four requirements, namely distributed storage, load balancing, network request redirection and content management, where the content management and global network traffic management are the core of the CDN. By determining the proximity of the end user and the server load, the CDN ensures that the content serves the end user's request in an extremely efficient manner.
In general, content services are based on cache servers, also called proxy caches, located at the edge of the network. Also, the proxy cache is a transparent mirror of the content provider origin server. The architecture described above enables CDN service providers to provide the best possible experience on behalf of customers, i.e., content providers, to end users who cannot tolerate any delay in request response time.
2. Loading: is an average number of passes. The reason for the increase of the server load is generally that processes in an operable state are increased, and processes in an uninterruptible state are increased. The increase of the running state generally means that resources of a Central Processing Unit (CPU) are insufficient, and as a result of the increase of the uninterruptible state, Input Output (IO) of a disk becomes a bottleneck.
Those skilled in the art will appreciate that in some cases, the traffic system may be loaded with servers due to server load problems, for example, in the case of a large number of end users simultaneously making requests to the traffic system in a short period of time.
Illustratively, the procedure of the service system responding to the terminal device sending the access request by using the CDN platform is as follows:
the terminal user provides the domain name of the service system to be accessed to the browser of the terminal equipment, the operating system inquires the IP address of the domain name to a local Domain Name Server (DNS), when the local DNS receives a request, a local cache is inquired first, and if the record item exists, the local DNS directly returns the inquired result to the terminal equipment. If the local cache does not have the record, the local DNS sends the request to the root DNS, then the root DNS returns the authorized record of the domain name to the local DNS, and the local DNS continues to inquire the IP address of the domain name from the domain name authorized DNS after obtaining the authorized DNS of the domain name.
Since the CDN adjusts the domain name resolution process, the resolution function library generally obtains a CNAME (canonical name) record corresponding to the domain name. In order to obtain an actual IP address, the operating system needs to resolve the obtained CNAME domain name again to obtain the actual IP address; in the process, the used global load balancing domain name server carries out resolution, for example, a corresponding IP address is resolved according to the geographic position information, so that the terminal equipment can access nearby; the IP address of the CDN cache server is obtained through the analysis, and the browser sends an access request to the cache server after obtaining the actual IP address; according to the domain name to be accessed provided by the browser, the cache server obtains the actual IP address of the domain name through the special DNS analysis in a cache memory (cache), and then the cache server submits an access request to the actual IP address; after obtaining the content from the actual IP address, the cache server stores the content locally for later use, and returns the obtained data to the terminal equipment to complete the data service process.
As can be seen from the above description, in the CDN, it is better to add a Cache layer between the terminal device and the server, and route the access request of the terminal device to the Cache layer by taking over the DNS to obtain data on the server of the source station of the system, thereby accelerating the access speed of the terminal device.
As can be seen from the above description, domain name resolution can be understood as the conversion of a domain name to an IP address. The IP address is a numeric address on the network that identifies the site, and in most cases, for simplicity, a domain name may be used in place of the IP address to identify the site address. The resolution of the domain name can be done by the DNS.
The embodiments of the present invention will be described below with reference to the drawings.
Fig. 2 is a flowchart illustrating a CDN data access method according to an embodiment of the present invention. As shown in fig. 2, the method includes:
step S201: when a overseas terminal user clicks a content URL (Uniform Resource Locator) on a website page of overseas terminal equipment, an operating system queries a local DNS (domain name server) for an IP address of a domain name accessed by the content URL;
step S203: after receiving the query request, the local DNS server queries a local cache server, and if the cache server has the IP address record of the domain name, the local DNS server directly returns the IP address record of the domain name to the overseas terminal equipment;
step S205: the overseas terminal equipment accesses to obtain the content required by the overseas terminal user according to the IP address record, and the URL access of the content is finished;
step S207: if the local cache server does not have the IP address record of the content URL access domain name, the local DNS server queries a superior DNS server step by step and recurses to a root DNS server, and then the root DNS server returns the authorization record of the content URL access domain name to the local DNS server;
step S209: after obtaining the authorization record of the content URL access domain name, the local DNS server continues to inquire the IP address of the domain name from the content URL access domain name authorization DNS corresponding to the authorization record according to the authorization record;
step S211: the method comprises the steps that a domain name authorization DNS is accessed through a content URL pointing to a CDN to adjust a domain name resolution process, and a CNAME domain name corresponding to the domain name is obtained;
step S213: the operating system analyzes the obtained CNAME domain name to obtain an IP address of the CDN global load balancing equipment and sends the IP address to overseas terminal equipment;
it should be noted that the operating system in step S213 is a generic term, and includes both the operating system of the overseas terminal device and the server operating system of the server to which the cache server belongs.
Step S215: the overseas terminal equipment initiates a content URL access request to the CDN global load balancing equipment according to the IP address of the CDN global load balancing equipment;
step S217: the CDN global load balancing equipment selects CDN regional load balancing equipment of a region to which the terminal equipment belongs according to the IP address of the overseas terminal equipment and the content URL requested by the overseas terminal equipment, and informs the terminal equipment to initiate an access request to the CDN regional load balancing equipment;
step S219: the CDN regional load balancing equipment selects a proper cache server for providing service for overseas terminal equipment; selected strategies include, but are not limited to:
(1) judging which cache server is closest to the overseas terminal equipment according to the IP address of the overseas terminal equipment;
(2) judging which cache server has the content required by the overseas terminal equipment according to the content name carried in the content URL requested by the overseas terminal equipment;
(3) and inquiring the current load condition of each cache server, and judging which cache server has service capacity.
After the comprehensive analysis based on the above conditions, the CDN regional load balancing device returns the IP address of one cache server to the CDN global load balancing device, where the IP address is the optimal IP address for domain name resolution.
Step S221: the CDN global load balancing equipment sends the domain name resolution optimal IP address of the cache server to a lower level DNS server, the lower level DNS server caches the IP address, and the IP address is recursively transmitted to the lower level DNS server again until a local DNS server of a user;
step S223: the user local DNS server sends the domain name resolution optimal IP address of the cache server to overseas terminal equipment;
step S225: the overseas terminal equipment initiates an access request to a cache server according to the domain name resolution optimal IP address, and the cache server responds to the access request and transmits the content required by the overseas terminal equipment to the overseas terminal equipment;
step S227: if the cache server does not have the content required by the overseas terminal equipment, a CDN edge server (point of presence (Web service provider)) can access an internal intermediate source (data center) server through a configured IEPL special line;
step S229: the intermediate source server judges the public cloud information of the source station, accesses the object storage source station of the public cloud through the intranet, and then transmits the required content obtained from the object storage source station to the overseas terminal equipment through an IEPL (Internet of things) special line;
step S231: meanwhile, the CDN edge server to which the overseas terminal equipment belongs stores the content returned from the domestic intermediate source server into the cache server to which the overseas terminal equipment belongs, and when other users in the peripheral area of the overseas terminal equipment access the same resource, the CDN access point to which the overseas terminal equipment belongs directly returns the resource to the user.
The embodiment takes an end user in frankfurt in overseas germany as an example, and discloses another embodiment of a CDN data access method, which includes:
step S301: a Frankfurt terminal user clicks a content URL on a website page of terminal equipment, and an operating system inquires a Local DNS (Local DNS) server about an IP address of a domain name;
step S303: after receiving the query request, the Local DNS server queries a Local cache server, and if the Local cache server has an IP address record item of the domain name, the Local DNS server directly returns the IP address record item of the domain name to the terminal equipment;
step S305: the terminal equipment accesses to obtain the content required by the Frankfurt terminal user according to the IP address record, and the URL access of the content is finished;
step S307: if the Local cache server does not have the IP address record of the content URL access domain name, the Local DNS server queries a superior DNS server step by step and recurses to a root DNS server, and then the root DNS server returns the authorization record of the content URL access domain name to the Local DNS server;
step S309: after obtaining the authorization record of the content URL access domain name, the Local DNS server continues to inquire the IP address of the domain name from the content URL access domain name authorization DNS corresponding to the authorization record according to the authorization record;
step S311: the method comprises the steps that a domain name authorization DNS is accessed through a content URL pointing to a CDN to adjust a domain name resolution process, and a CNAME domain name corresponding to the domain name is obtained;
step S313: the operating system analyzes the obtained CNAME domain name to obtain an IP address of the CDN global load balancing equipment and sends the IP address to the terminal equipment;
step S315: the terminal equipment initiates a content URL access request to the CDN global load balancing equipment according to the IP address of the CDN global load balancing equipment;
step S317: the CDN global load balancing equipment selects CDN regional load balancing equipment of a region to which the terminal equipment belongs according to the IP address of the terminal equipment and the content URL requested by the terminal equipment, and informs the terminal equipment to initiate an access request to the CDN regional load balancing equipment;
step S319: the CDN regional load balancing equipment selects a proper cache server for the terminal equipment to provide service; selected strategies include, but are not limited to:
(1) judging which cache server is closest to the terminal equipment according to the IP address of the terminal equipment;
(2) judging which cache server has the content required by the terminal equipment according to the content name carried in the content URL requested by the terminal equipment;
(3) and inquiring the current load condition of each cache server, and judging which cache server has service capacity.
After the comprehensive analysis based on the above conditions, the CDN regional load balancing device returns the IP address of one cache server to the CDN global load balancing device, where the IP address is the optimal IP address for domain name resolution.
Step S321: the CDN global load balancing equipment sends the domain name resolution optimal IP address of the cache server to a lower level DNS server, the lower level DNS server caches the IP address, and the IP address is recursively transmitted to the lower level DNS server again until the domain name resolution optimal IP address reaches a user Local DNS server;
step S323: the user Local DNS server sends the domain name resolution optimal IP address of the cache server to the terminal equipment of a Frankfurt terminal user;
step S325: the method comprises the steps that terminal equipment of a Frankfurt terminal user initiates an access request to a cache server according to a domain name resolution optimal IP address, and the cache server responds to the access request and transmits content required by the terminal equipment to the terminal equipment;
step S327: if the cache server does not have the content required by the terminal equipment, a CDN edge server (edge POP) can access a national Guangzhou data center through a configured IEPL special line;
step S329: the Guangzhou data center judges the public cloud information of the source station, accesses the object storage source station of the public cloud through the intranet, and the object storage source station returns the required content to the Guangzhou data center and transmits the content to the terminal equipment of a Frankfurt terminal user through an IEPL special line;
step S331: meanwhile, the CDN edge server to which Frankfurt belongs stores the content transmitted back from the Guangzhou data center into the cache server to which the CDN edge server to which Frankfurt belongs, and when other users in the surrounding area of Frankfurt access the same resource, the CDN edge server to which Frankfurt belongs directly returns the resource to the user.
Therefore, the CDN data access method of the embodiment of the invention is based on CDN edge nodes which are deployed in multiple places around the world, when facing the access request of overseas users, the business resources in the domestic intermediate source server are called through the IEPL special line technology, the transmission delay of overseas user resource access is reduced, the courseware resources such as PPT, mp3, mp4 and the like can be timely and effectively downloaded when the overseas users receive online education service, the source return request in the resource transmission process is reduced, and the transmission pressure of the object storage source station is saved.
In addition, the CDN data access method of the embodiment of the invention calls the service resources in the domestic intermediate source server through the IEPL special line technology, can keep the website content online when encountering hardware faults and network congestion, performs load balancing on Internet traffic, realizes effective transfer of network faults, avoids network congestion caused by network faults, and resists risks caused by data service interruption.
The CDN data access method according to the embodiment of the present invention is described in detail above with reference to fig. 1 to 2, and the CDN data access system according to the embodiment of the present invention is described in detail below with reference to fig. 3.
Fig. 3 is a schematic structural diagram of a CDN data access system according to an embodiment of the present invention. As shown in fig. 3, the CDN data access system includes: overseas terminal equipment 301, domain name resolution equipment 302, CDN global load balancing equipment 303, CDN regional load balancing equipment 304, CDN edge server 305, and domestic intermediate origin server 306:
the overseas terminal device 301 is configured to receive a content uniform resource locator URL access request of an overseas terminal user, and query the local DNS server 307 for an IP address of the content URL access domain name; initiating a content URL access request to the CDN global load balancing device 303 according to the IP address;
the domain name resolution device 302 with an operating system built in is configured to, if the cache server does not have an IP address record of the content URL access domain name, obtain an IP address of the CDN global load balancing device 303 according to the obtained canonical name CNAME domain name resolution, and send the IP address to the overseas terminal device 301;
the CDN global load balancing device 303 is configured to select, according to the IP address and the content URL of the oversea terminal device 301, a CDN regional load balancing device 304 in a region to which the oversea terminal device 301 belongs, and notify the oversea terminal device 301 of initiating an access request to the CDN regional load balancing device 304;
the CDN regional load balancing device 304 is configured to select a suitable cache server for the overseas terminal device to respond to the URL access request;
the CDN edge server 305 is configured to access an intermediate domestic origin server 306 through a configured IEPL private line if the cache server does not have the content required by the URL access request;
the domestic intermediate source server 306 is configured to obtain content required by the URL access request through an access object storage source station, and transmit the content to the overseas terminal device 301 through the IEPL private line.
In the CDN regional load balancing device 304, the selection policy for selecting a cache server for the overseas terminal device 301 includes:
(1) judging the cache server closest to the overseas terminal equipment 301 according to the IP address of the overseas terminal equipment 301;
(2) judging whether the cache server has the content required by the overseas terminal equipment 301 according to the content name carried by the content URL requested by the overseas terminal equipment 301;
(3) inquiring the current load condition of the cache server, and judging the service capacity of the cache server;
and the CDN regional load balancing equipment returns the domain name resolution optimal IP address of the cache server to the CDN global load balancing equipment according to the selection strategy.
In the embodiment of the present invention, optionally, the system specifically includes a lower level DNS server 308 and a local DNS server 307:
the CDN global load balancing device 303 is configured to send the domain name resolution optimal IP address to the lower level DNS server 308;
the lower level DNS server 308 is configured to cache the domain name resolution optimal IP address, and recursively transfer the domain name resolution optimal IP address to the lower level DNS server again until the local DNS server 307;
the local DNS server 307 is configured to send the domain name resolution optimal IP address of the cache server to the overseas terminal device 301.
In the embodiment of the present invention, optionally, the system specifically includes a local DNS server 307 and a root DNS server 309:
the local DNS server 307 is configured to, if the cache server does not have the IP address record of the content URL access domain name, query the upper level DNS server step by step, and recurse to the root DNS server 309; obtaining an authorization record of the content URL access domain name, and inquiring an IP address of the domain name from the content URL access domain name authorization DNS server according to the authorization record;
the root DNS server 309 is configured to return the authorization record of the content URL access domain name to the local DNS server 307;
the domain name resolution device 302 is configured to access a domain name authority DNS server through the content URL pointing to the CDN to adjust a domain name resolution process, so as to obtain a CNAME domain name corresponding to the domain name; and resolving the obtained CNAME domain name to obtain the IP address of the CDN global load balancing equipment 303.
Therefore, the CDN data access system of the embodiment of the invention calls the service resources in the domestic intermediate source server through the IEPL special line technology when facing the access request of the overseas user based on the CDN edge nodes deployed in multiple places around the world, reduces the transmission delay of overseas user resource access, improves the capacity of timely and effectively downloading courseware resources such as PPT, mp3, mp4 and the like when the overseas user receives the online education service, reduces the source return request in the resource transmission process, and saves the transmission pressure of the object storage source station.
In addition, the CDN data access system of the embodiment of the invention calls the service resources in the domestic intermediate source server through the IEPL special line technology, can keep the website content online when encountering hardware faults and network congestion, performs load balancing on Internet traffic, realizes effective transfer of network faults, avoids network congestion caused by network faults, and resists risks caused by data service interruption.
In addition, an embodiment of the present invention further provides an electronic device, which includes a bus, a transceiver, a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, where the transceiver, the memory, and the processor are connected via the bus, respectively, and when the computer program is executed by the processor, the processes of the CDN data access method embodiment are implemented, and the same technical effect can be achieved, and details are not described here to avoid repetition.
Specifically, referring to fig. 4, an embodiment of the present invention further provides an electronic device, which includes a bus 41, a processor 42, a transceiver 43, a bus interface 44, a memory 45, and a user interface 46.
In an embodiment of the present invention, the electronic device further includes: a computer program stored on the memory 45 and executable on the processor 42, the computer program when executed by the processor 42 performing the steps of:
receiving a content Uniform Resource Locator (URL) access request of a overseas terminal user by overseas terminal equipment, and inquiring an IP address of a content URL access domain name from a local DNS (domain name server);
if the cache server does not have the IP address record of the content URL access domain name, the operating system obtains the IP address of the CDN global load balancing equipment according to the obtained canonical name CNAME domain name resolution and sends the IP address to the overseas terminal equipment;
the overseas terminal equipment initiates a content URL access request to the CDN global load balancing equipment according to the IP address;
the CDN global load balancing equipment selects CDN regional load balancing equipment of the region to which the overseas terminal equipment belongs according to the IP address and the content URL of the overseas terminal equipment, and informs the overseas terminal equipment to initiate an access request to the CDN regional load balancing equipment;
the CDN regional load balancing equipment selects a proper cache server for overseas terminal equipment to respond to the URL access request;
if the cache server does not have the content required by the URL access request, the CDN edge server of the region to which the overseas terminal equipment belongs accesses a domestic intermediate source server through a configured IEPL special line;
and the domestic intermediate source server obtains the content required by the URL access request through an access object storage source station and transmits the content to the overseas terminal equipment through the IEPL special line.
Optionally, the computer program when executed by the processor 42 may further implement the steps of:
the selection strategy for selecting the cache server for the overseas terminal equipment by the CDN regional load balancing equipment comprises the following steps:
(1) judging the cache server closest to the overseas terminal equipment according to the IP address of the overseas terminal equipment;
(2) judging whether the cache server has the content required by the overseas terminal equipment or not according to the content name carried by the content URL requested by the overseas terminal equipment;
(3) inquiring the current load condition of the cache server, and judging the service capacity of the cache server;
and the CDN regional load balancing equipment returns the domain name resolution optimal IP address of the cache server to the CDN global load balancing equipment according to the selection strategy.
A transceiver 43 for receiving and transmitting data under the control of the processor 42.
Optionally, the computer program when executed by the processor 42 may further implement the steps of:
the step of returning the domain name resolution optimal IP address of the cache server by the CDN regional load balancing device further includes:
the CDN global load balancing equipment sends the domain name resolution optimal IP address to a lower level DNS server;
the lower level DNS server caches the domain name resolution optimal IP address, and recursively transmits the domain name resolution optimal IP address to the lower level DNS server again until the domain name resolution optimal IP address reaches the local DNS server;
and the local DNS server sends the domain name resolution optimal IP address of the cache server to overseas terminal equipment.
Optionally, the computer program when executed by the processor 42 may further implement the steps of:
if the cache server does not have the IP address record of the content URL access domain name, the step that the operating system obtains the IP address of the CDN global load balancing equipment according to the obtained standard name CNAME domain name resolution comprises the following steps:
if the cache server does not have the IP address record of the content URL access domain name, the local DNS server queries a superior DNS server step by step and recurses to a root DNS server, and the root DNS server returns the authorization record of the content URL access domain name to the local DNS server;
the local DNS server obtains an authorization record of the content URL access domain name, and inquires an IP address of the domain name from the content URL access domain name authorization DNS server according to the authorization record;
accessing the domain name authorization DNS server through the content URL pointing to the CDN to adjust the domain name resolution process to obtain a CNAME domain name corresponding to the domain name;
and the operating system analyzes the obtained CNAME domain name to obtain the IP address of the CDN global load balancing equipment.
In FIG. 4, a bus architecture (represented by bus 41), bus 41 may include any number of interconnected buses and bridges, with bus 41 connecting various circuits including one or more processors, represented by processor 42, and memory, represented by memory 45.
Bus 41 represents one or more of any of several types of bus structures, including a memory bus, and memory controller, a peripheral bus, an Accelerated Graphics Port (AGP), a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include: an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA), a Peripheral Component Interconnect (PCI) bus.
The processor 42 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits in hardware or instructions in software in a processor. The processor described above includes: general purpose processors, Central Processing Units (CPUs), Network Processors (NPs), Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), Complex Programmable Logic Devices (CPLDs), Programmable Logic Arrays (PLAs), Micro Control Units (MCUs) or other Programmable Logic devices, discrete gates, transistor Logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in embodiments of the present invention may be implemented or performed. For example, the processor may be a single core processor or a multi-core processor, which may be integrated on a single chip or located on multiple different chips.
The processor 42 may be a microprocessor or any conventional processor. The steps of the method disclosed in connection with the embodiments of the present invention may be directly performed by a hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), a register, and other readable storage media known in the art. The readable storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The bus 41 may also connect various other circuits such as peripherals, voltage regulators, or power management circuits to provide an interface between the bus 41 and the transceiver 43, as is well known in the art. Therefore, the embodiments of the present invention will not be further described.
The transceiver 43 may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other devices over a transmission medium. For example: the transceiver 43 receives external data from other devices, and the transceiver 43 is used to transmit data processed by the processor 42 to other devices. Depending on the nature of the computer system, a user interface 46 may also be provided, such as: touch screen, physical keyboard, display, mouse, speaker, microphone, trackball, joystick, stylus.
It should be appreciated that in embodiments of the present invention, memory 45 may further include memory located remotely from processor 42, which may be connected to a server via a network. One or more portions of the above-described networks may be an ad hoc network (ad hoc network), an intranet (intranet), an extranet (extranet), a Virtual Private Network (VPN), a Local Area Network (LAN), a Wireless Local Area Network (WLAN), a Wide Area Network (WAN), a Wireless Wide Area Network (WWAN), a Metropolitan Area Network (MAN), the Internet (Internet), a Public Switched Telephone Network (PSTN), a plain old telephone service network (POTS), a cellular telephone network, a wireless fidelity (Wi-Fi) network, and combinations of two or more of the above. For example, the cellular telephone network and the wireless network may be a global system for Mobile Communications (GSM) system, a Code Division Multiple Access (CDMA) system, a Worldwide Interoperability for Microwave Access (WiMAX) system, a General Packet Radio Service (GPRS) system, a Wideband Code Division Multiple Access (WCDMA) system, a Long Term Evolution (LTE) system, an LTE Frequency Division Duplex (FDD) system, an LTE Time Division Duplex (TDD) system, a long term evolution-advanced (LTE-a) system, a Universal Mobile Telecommunications (UMTS) system, an enhanced Mobile Broadband (eMBB) system, a mass Machine Type Communication (mtc) system, an Ultra Reliable Low Latency Communication (urrllc) system, or the like.
It will be appreciated that memory 45 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Wherein the nonvolatile memory includes: Read-Only Memory (ROM), Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or Flash Memory.
The volatile memory includes: random Access Memory (RAM), which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as: static random access memory (Static RAM, SRAM), Dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct memory bus RAM (DRRAM). The memory 45 of the electronic device described in the embodiments of the present invention includes, but is not limited to, the above and any other suitable types of memory.
In an embodiment of the present invention, memory 45 stores the following elements of operating system 451 and application programs 452: an executable module, a data structure, or a subset thereof, or an expanded set thereof.
Specifically, the operating system 451 includes various system programs such as: a framework layer, a core library layer, a driver layer, etc. for implementing various basic services and processing hardware-based tasks. The applications 452 include various applications such as: media Player (Media Player), Browser (Browser), for implementing various application services. Programs that implement methods in accordance with embodiments of the invention can be included in application programs 452. The application programs 452 include: applets, objects, components, logic, data structures, and other computer system executable instructions that perform particular tasks or implement particular abstract data types.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements each process of the CDN data access method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
In particular, the computer program may, when executed by a processor, implement the steps of:
receiving a content Uniform Resource Locator (URL) access request of a overseas terminal user by overseas terminal equipment, and inquiring an IP address of a content URL access domain name from a local DNS (domain name server);
if the cache server does not have the IP address record of the content URL access domain name, the operating system obtains the IP address of the CDN global load balancing equipment according to the obtained canonical name CNAME domain name resolution and sends the IP address to the overseas terminal equipment;
the overseas terminal equipment initiates a content URL access request to the CDN global load balancing equipment according to the IP address;
the CDN global load balancing equipment selects CDN regional load balancing equipment of the region to which the overseas terminal equipment belongs according to the IP address and the content URL of the overseas terminal equipment, and informs the overseas terminal equipment to initiate an access request to the CDN regional load balancing equipment;
the CDN regional load balancing equipment selects a proper cache server for overseas terminal equipment to respond to the URL access request;
if the cache server does not have the content required by the URL access request, the CDN edge server of the region to which the overseas terminal equipment belongs accesses a domestic intermediate source server through a configured IEPL special line;
and the domestic intermediate source server obtains the content required by the URL access request through an access object storage source station and transmits the content to the overseas terminal equipment through the IEPL special line.
Optionally, the computer program when executed by the processor may further implement the steps of:
the selection strategy for selecting the cache server for the overseas terminal equipment by the CDN regional load balancing equipment comprises the following steps:
(1) judging the cache server closest to the overseas terminal equipment according to the IP address of the overseas terminal equipment;
(2) judging whether the cache server has the content required by the overseas terminal equipment or not according to the content name carried by the content URL requested by the overseas terminal equipment;
(3) inquiring the current load condition of the cache server, and judging the service capacity of the cache server;
and the CDN regional load balancing equipment returns the domain name resolution optimal IP address of the cache server to the CDN global load balancing equipment according to the selection strategy.
Optionally, the computer program when executed by the processor may further implement the steps of:
the step of returning the domain name resolution optimal IP address of the cache server by the CDN regional load balancing device further includes:
the CDN global load balancing equipment sends the domain name resolution optimal IP address to a lower level DNS server;
the lower level DNS server caches the domain name resolution optimal IP address, and recursively transmits the domain name resolution optimal IP address to the lower level DNS server again until the domain name resolution optimal IP address reaches the local DNS server;
and the local DNS server sends the domain name resolution optimal IP address of the cache server to overseas terminal equipment.
Optionally, the computer program when executed by the processor may further implement the steps of:
if the cache server does not have the IP address record of the content URL access domain name, the step that the operating system obtains the IP address of the CDN global load balancing equipment according to the obtained standard name CNAME domain name resolution comprises the following steps:
if the cache server does not have the IP address record of the content URL access domain name, the local DNS server queries a superior DNS server step by step and recurses to a root DNS server, and the root DNS server returns the authorization record of the content URL access domain name to the local DNS server;
the local DNS server obtains an authorization record of the content URL access domain name, and inquires an IP address of the domain name from the content URL access domain name authorization DNS server according to the authorization record;
accessing the domain name authorization DNS server through the content URL pointing to the CDN to adjust the domain name resolution process to obtain a CNAME domain name corresponding to the domain name;
and the operating system analyzes the obtained CNAME domain name to obtain the IP address of the CDN global load balancing equipment.
The computer-readable storage medium includes: permanent and non-permanent, removable and non-removable media may be tangible devices that retain and store instructions for use by an instruction execution apparatus. The computer-readable storage medium includes: electronic memory devices, magnetic memory devices, optical memory devices, electromagnetic memory devices, semiconductor memory devices, and any suitable combination of the foregoing. The computer-readable storage medium includes: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), non-volatile random access memory (NVRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape cartridge storage, magnetic tape disk storage or other magnetic storage devices, memory sticks, mechanically encoded devices (e.g., punched cards or raised structures in a groove having instructions recorded thereon), or any other non-transmission medium useful for storing information that may be accessed by a computing device. As defined in embodiments of the present invention, the computer-readable storage medium does not include transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses traveling through a fiber optic cable), or electrical signals transmitted through a wire.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed in the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating the interchangeability of hardware and software. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. The computer program instructions comprise: assembly instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as: smalltalk, C + + and procedural programming languages, such as: c or a similar programming language.
When the computer program instructions are loaded and executed on a computer, which may be a computer, a special purpose computer, a network of computers, or other editable apparatus, all or a portion of the procedures or functions described herein may be performed, in accordance with the embodiments of the invention. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, such as: the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, twisted pair, fiber optic, Digital Subscriber Line (DSL)), or wirelessly (e.g., infrared, wireless, microwave). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy disk, magnetic tape), an optical medium (e.g., optical disk), or a semiconductor medium (e.g., Solid State Drive (SSD)), among others. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing embodiments of the method of the present invention, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, electronic device and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is merely a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electrical, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to solve the problem to be solved by the embodiment of the invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be substantially or partially contributed by the prior art, or all or part of the technical solutions may be embodied in a software product stored in a storage medium and including instructions for causing a computer device (including a personal computer, a server, a data center, or other network devices) to execute all or part of the steps of the methods of the embodiments of the present invention. And the storage medium includes various media that can store the program code as listed in the foregoing.
The above description is only a specific implementation of the embodiments of the present invention, but the scope of the embodiments of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present invention, and all such changes or substitutions should be covered by the scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A CDN data access method is characterized by comprising the following steps:
receiving a content Uniform Resource Locator (URL) access request of a overseas terminal user by overseas terminal equipment, and inquiring an IP address of a content URL access domain name from a local DNS (domain name server);
if the cache server does not have the IP address record of the content URL access domain name, the local DNS server queries a superior DNS server step by step and recurses to a root DNS server, and the root DNS server returns the authorization record of the content URL access domain name to the local DNS server;
the local DNS server obtains an authorization record of the content URL access domain name, and inquires an IP address of the domain name from the content URL access domain name authorization DNS server according to the authorization record;
accessing the domain name authorization DNS server through the content URL pointing to the CDN to adjust the domain name resolution process to obtain a CNAME domain name corresponding to the domain name;
the operating system analyzes the obtained CNAME domain name to obtain an IP address of CDN global load balancing equipment and sends the IP address to the overseas terminal equipment;
the overseas terminal equipment initiates a content URL access request to the CDN global load balancing equipment according to the IP address;
the CDN global load balancing equipment selects CDN regional load balancing equipment of the region to which the overseas terminal equipment belongs according to the IP address and the content URL of the overseas terminal equipment, and informs the overseas terminal equipment to initiate an access request to the CDN regional load balancing equipment;
the CDN regional load balancing equipment selects a proper cache server for overseas terminal equipment to respond to the URL access request;
if the cache server does not have the content required by the URL access request, the CDN edge server of the region to which the overseas terminal equipment belongs accesses a domestic intermediate source server through a configured IEPL special line;
and the domestic intermediate source server obtains the content required by the URL access request through an access object storage source station and transmits the content to the overseas terminal equipment through the IEPL special line.
2. The method of claim 1, wherein the selection policy of the CDN regional load balancing device for selecting a cache server for the overseas terminal device comprises:
(1) judging the cache server closest to the overseas terminal equipment according to the IP address of the overseas terminal equipment;
(2) judging whether the cache server has the content required by the overseas terminal equipment or not according to the content name carried by the content URL requested by the overseas terminal equipment;
(3) inquiring the current load condition of the cache server, and judging the service capacity of the cache server;
and the CDN regional load balancing equipment returns the domain name resolution optimal IP address of the cache server to the CDN global load balancing equipment according to the selection strategy.
3. The method of claim 2, wherein the step of the CDN regional load balancing device returning the domain name resolution optimal IP address for the cache server further comprises:
the CDN global load balancing equipment sends the domain name resolution optimal IP address to a lower level DNS server;
the lower level DNS server caches the domain name resolution optimal IP address, and recursively transmits the domain name resolution optimal IP address to the lower level DNS server again until the domain name resolution optimal IP address reaches the local DNS server;
and the local DNS server sends the domain name resolution optimal IP address of the cache server to overseas terminal equipment.
4. A CDN data access system is characterized by comprising overseas terminal equipment, domain name resolution equipment, CDN global load balancing equipment, CDN regional load balancing equipment, a CDN edge server and an internal intermediate source server:
the overseas terminal equipment is used for receiving a content Uniform Resource Locator (URL) access request of an overseas terminal user and inquiring an IP address of a content URL access domain name from a local DNS (domain name server); initiating a content URL access request to the CDN global load balancing equipment according to the IP address;
the domain name resolution equipment with a built-in operating system is used for obtaining the IP address of the CDN global load balancing equipment according to the obtained canonical name CNAME domain name resolution and sending the IP address to the overseas terminal equipment if the cache server does not have the IP address record of the content URL access domain name;
the CDN global load balancing device is used for selecting CDN regional load balancing devices of the region to which the overseas terminal equipment belongs according to the IP address and the content URL of the overseas terminal equipment, and informing the overseas terminal equipment to send an access request to the CDN regional load balancing devices;
the CDN regional load balancing equipment is used for selecting a proper cache server for the overseas terminal equipment to respond to the URL access request;
the CDN edge server is used for accessing a domestic intermediate source server through a configured IEPL special line if the cache server does not have the content required by the URL access request;
the domestic intermediate source server is used for obtaining the content required by the URL access request through an access object storage source station and transmitting the content to the overseas terminal equipment through the IEPL special line;
the domain name resolution equipment comprises a local DNS server and a root DNS server:
the local DNS server is used for inquiring the upper level DNS server step by step and recursing to the root DNS server if the cache server does not have the IP address record of the content URL access domain name; obtaining an authorization record of the content URL access domain name, and inquiring an IP address of the domain name from the content URL access domain name authorization DNS server according to the authorization record;
the root DNS server is used for returning the authorization record of the content URL access domain name to the local DNS server;
the domain name resolution equipment is used for accessing a domain name authorization DNS server through the content URL pointing to the CDN to adjust the domain name resolution process so as to obtain a CNAME domain name corresponding to the domain name; and resolving the obtained CNAME domain name to obtain the IP address of the CDN global load balancing equipment.
5. The system of claim 4, wherein in the CDN regional load balancing device, the selection policy for selecting a cache server for overseas terminal devices comprises:
(1) judging the cache server closest to the overseas terminal equipment according to the IP address of the overseas terminal equipment;
(2) judging whether the cache server has the content required by the overseas terminal equipment or not according to the content name carried by the content URL requested by the overseas terminal equipment;
(3) inquiring the current load condition of the cache server, and judging the service capacity of the cache server;
and the CDN regional load balancing equipment returns the domain name resolution optimal IP address of the cache server to the CDN global load balancing equipment according to the selection strategy.
6. The system according to claim 5, further comprising a subordinate DNS server and a local DNS server:
the CDN global load balancing device is used for sending the domain name resolution optimal IP address to the lower level DNS server;
the lower level DNS server is used for caching the domain name resolution optimal IP address and transmitting the domain name resolution optimal IP address to the lower level DNS server again in a recursion mode until the domain name resolution optimal IP address reaches the local DNS server;
and the local DNS server is used for sending the domain name resolution optimal IP address of the cache server to the overseas terminal equipment.
7. An electronic device comprising a bus, a transceiver, a memory, a processor and a computer program stored on the memory and executable on the processor, the transceiver, the memory and the processor being connected via the bus, characterized in that the computer program, when executed by the processor, implements the steps in the CDN data access method of any one of claims 1 to 3.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps in the CDN data access method of any one of claims 1 to 3.
CN202110577606.1A 2021-05-26 2021-05-26 CDN data access method, system and electronic equipment Active CN113037878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110577606.1A CN113037878B (en) 2021-05-26 2021-05-26 CDN data access method, system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110577606.1A CN113037878B (en) 2021-05-26 2021-05-26 CDN data access method, system and electronic equipment

Publications (2)

Publication Number Publication Date
CN113037878A CN113037878A (en) 2021-06-25
CN113037878B true CN113037878B (en) 2021-08-17

Family

ID=76455761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110577606.1A Active CN113037878B (en) 2021-05-26 2021-05-26 CDN data access method, system and electronic equipment

Country Status (1)

Country Link
CN (1) CN113037878B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596512B (en) * 2021-07-28 2023-10-17 珠海迈科智能科技股份有限公司 Efficient and economical video stream distribution method and system
CN113821461B (en) * 2021-09-24 2023-10-27 牙木科技股份有限公司 Domain name resolution caching method, DNS server and computer readable storage medium
CN114189376B (en) * 2021-12-07 2023-05-16 中国电子科技集团公司第三十研究所 Cloud host state information security monitoring method based on CDN service platform
CN114268631B (en) * 2021-12-13 2024-05-10 湖北云务通网络科技有限公司 Low-delay network system, communication connection method thereof and readable storage medium
CN114448990B (en) * 2021-12-23 2023-06-23 天翼云科技有限公司 Fusion CDN-based resource scheduling method, device and equipment
CN114598701B (en) * 2022-02-16 2023-08-22 阿里巴巴(中国)有限公司 CDN scheduling method, CDN scheduling system, computing device and storage medium
CN114650295B (en) * 2022-03-29 2023-12-05 北京有竹居网络技术有限公司 CDN quality scheduling method and device, medium and electronic equipment
CN115277566B (en) * 2022-05-20 2024-03-22 鸬鹚科技(深圳)有限公司 Load balancing method and device for data access, computer equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108076142A (en) * 2017-11-28 2018-05-25 郑州云海信息技术有限公司 A kind of method and system for accelerating user's request based on CDN technologies
CN112671836A (en) * 2020-12-07 2021-04-16 深圳市高德信通信股份有限公司 Method for accelerating user request based on CDN technology

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030079027A1 (en) * 2001-10-18 2003-04-24 Michael Slocombe Content request routing and load balancing for content distribution networks
CN104427005B (en) * 2013-08-20 2018-01-02 阿里巴巴集团控股有限公司 The method and system that request is accurately dispatched are realized on CDN
CN112202906B (en) * 2020-10-09 2022-11-01 安徽极玩云科技有限公司 CDN access optimization method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108076142A (en) * 2017-11-28 2018-05-25 郑州云海信息技术有限公司 A kind of method and system for accelerating user's request based on CDN technologies
CN112671836A (en) * 2020-12-07 2021-04-16 深圳市高德信通信股份有限公司 Method for accelerating user request based on CDN technology

Also Published As

Publication number Publication date
CN113037878A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN113037878B (en) CDN data access method, system and electronic equipment
US11233827B2 (en) Methods and systems for securing VPN cloud servers
CN112839111B (en) System, method, and medium for customizable event-triggered computation at edge locations
CN102292961B (en) Systems and methods for applying transformations to IP addresses obtained by domain name service (DNS)
US11943297B2 (en) Distributed network security system providing isolation of customer data
CN110049022B (en) Domain name access control method and device and computer readable storage medium
US10356153B2 (en) Transferring session data between network applications accessible via different DNS domains
US10812442B1 (en) Intelligent redirector based on resolver transparency
EP2633667A2 (en) System and method for on the fly protocol conversion in obtaining policy enforcement information
CN108737471B (en) Network access method and device
US11637914B2 (en) Multiple geography service routing
CN108737343B (en) Method and device for realizing secure access to network
US20200402115A1 (en) Serving an Online Advertisement Asynchronously
US10098174B2 (en) Maintaining continuous sessions in cellular data networks
CN115348235A (en) Domain name resolution method and device, electronic equipment and storage medium
CN117692324A (en) Information transmission method, apparatus, device, computer readable medium, and program product

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