CN114513488B - Resource access method, device, computer equipment and storage medium - Google Patents

Resource access method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN114513488B
CN114513488B CN202011185065.XA CN202011185065A CN114513488B CN 114513488 B CN114513488 B CN 114513488B CN 202011185065 A CN202011185065 A CN 202011185065A CN 114513488 B CN114513488 B CN 114513488B
Authority
CN
China
Prior art keywords
access
domain name
resource
candidate
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.)
Active
Application number
CN202011185065.XA
Other languages
Chinese (zh)
Other versions
CN114513488A (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.)
Tencent Technology Shenzhen Co Ltd
Beijing University of Posts and Telecommunications
Original Assignee
Tencent Technology Shenzhen Co Ltd
Beijing University of Posts and Telecommunications
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 Tencent Technology Shenzhen Co Ltd, Beijing University of Posts and Telecommunications filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011185065.XA priority Critical patent/CN114513488B/en
Publication of CN114513488A publication Critical patent/CN114513488A/en
Application granted granted Critical
Publication of CN114513488B publication Critical patent/CN114513488B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • H04L63/1466Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks

Landscapes

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

Abstract

The application relates to a resource access method, a device, a computer device and a storage medium, comprising: intercepting a current resource access request and generating a domain name resolution request corresponding to the current resource access request; the method comprises the steps of sending a domain name resolution request carrying an access domain name to a domain name resolution server, so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request; the set of candidate access addresses includes at least one candidate access address; acquiring the candidate access address set returned by the domain name resolution server, determining the push priority corresponding to each candidate access address based on the current network state and candidate access association information corresponding to at least one candidate access address, and determining a target access address from the candidate access address set according to the push priority; based on the current resource access request, the corresponding resource to be accessed is obtained from the target resource server corresponding to the target access address, so that the access efficiency of resource access can be improved.

Description

Resource access method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a resource access method, apparatus, computer device, and storage medium.
Background
With the development of computer technology, people can obtain various network resources through the internet. For example, a user may access a news website through an access terminal to read newsletters. Specifically, the access terminal can find the access entrance of the required resource through the domain name resolution service provided by the domain name resolution server, and then access the resource.
In the prior art, if a plurality of access entries of the required resources are provided, the resources are accessed according to one access entry at random, the blindness is high, the access speed can not be ensured, and the low access efficiency of the resource access is easily caused.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a resource access method, apparatus, computer device, and storage medium that can improve access efficiency of resource access.
A method of resource access, the method comprising:
intercepting a current resource access request and generating a domain name resolution request corresponding to the current resource access request; the domain name resolution request carries an access domain name;
the domain name resolution request is sent to a domain name resolution server, so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request; the set of candidate access addresses includes at least one candidate access address;
Acquiring a candidate access address set returned by the domain name resolution server, determining push priorities corresponding to the candidate access addresses based on the current network state and candidate access association information corresponding to at least one candidate access address respectively, and determining a target access address from the candidate access address set according to the push priorities;
and acquiring the corresponding resource to be accessed from the target resource server corresponding to the target access address based on the current resource access request.
A resource access device, the device comprising:
the request interception module is used for intercepting a current resource access request and generating a domain name resolution request corresponding to the current resource access request; the domain name resolution request carries an access domain name;
the domain name resolution module is used for sending a domain name resolution request to the domain name resolution server so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request; the set of candidate access addresses includes at least one candidate access address;
the target access address determining module is used for acquiring a candidate access address set returned by the domain name resolution server, determining the push priority corresponding to each candidate access address based on the current network state and candidate access associated information corresponding to at least one candidate access address respectively, and determining the target access address from the candidate access address set according to the push priority;
The resource acquisition module is used for acquiring the corresponding resource to be accessed from the target resource server corresponding to the target access address based on the current resource access request.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
intercepting a current resource access request and generating a domain name resolution request corresponding to the current resource access request; the domain name resolution request carries an access domain name;
the domain name resolution request is sent to a domain name resolution server, so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request; the set of candidate access addresses includes at least one candidate access address;
acquiring a candidate access address set returned by the domain name resolution server, determining push priorities corresponding to the candidate access addresses based on the current network state and candidate access association information corresponding to at least one candidate access address respectively, and determining a target access address from the candidate access address set according to the push priorities;
and acquiring the corresponding resource to be accessed from the target resource server corresponding to the target access address based on the current resource access request.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
intercepting a current resource access request and generating a domain name resolution request corresponding to the current resource access request; the domain name resolution request carries an access domain name;
the domain name resolution request is sent to a domain name resolution server, so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request; the set of candidate access addresses includes at least one candidate access address;
acquiring a candidate access address set returned by the domain name resolution server, determining push priorities corresponding to the candidate access addresses based on the current network state and candidate access association information corresponding to at least one candidate access address respectively, and determining a target access address from the candidate access address set according to the push priorities;
and acquiring the corresponding resource to be accessed from the target resource server corresponding to the target access address based on the current resource access request.
The resource access method, the device, the computer equipment and the storage medium are used for generating a domain name resolution request corresponding to the current resource access request by intercepting the current resource access request; the domain name resolution request carries an access domain name; the domain name resolution request is sent to a domain name resolution server, so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request; acquiring a candidate access address set returned by the domain name resolution server, wherein the candidate access address set comprises at least one candidate access address; determining a push priority corresponding to each candidate access address based on the current network state and candidate access associated information corresponding to at least one candidate access address, and determining a target access address from the candidate access address set according to the push priority; and acquiring the corresponding resource to be accessed from the target resource server corresponding to the target access address based on the current resource access request. Therefore, the current most suitable access address can be screened out from a plurality of access addresses based on the current network state and the access association information, namely the current most suitable resource server is screened out, and resources can be rapidly acquired from the optimal resource server, so that the access efficiency of resource access is improved.
Drawings
FIG. 1 is an application environment diagram of a resource access method in one embodiment;
FIG. 2 is a flow diagram of a method of resource access in one embodiment;
FIG. 3 is a flow diagram of domain name resolution in one embodiment;
FIG. 4 is a flow chart of domain name resolution in another embodiment;
FIG. 5 is a flow diagram of determining a target access address in one embodiment;
FIG. 6 is a flow diagram of determining a target access impact factor in one embodiment;
FIG. 7 is a flow diagram of determining a reference push priority in one embodiment;
FIG. 8 is a flow chart of a method of accessing resources according to another embodiment;
FIG. 9 is an application environment diagram of a resource access method in another embodiment;
FIG. 10 is a flow chart of a method of accessing resources in yet another embodiment;
FIG. 11 is a graph of access results versus resource access in one embodiment;
FIG. 12 is a block diagram of a resource access device in one embodiment;
fig. 13 is an internal structural view of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Cloud technology (Cloud technology) refers to a hosting technology for integrating hardware, software, network and other series resources in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
Cloud storage (cloud storage) is a new concept that extends and develops in the concept of cloud computing, and a distributed cloud storage system (hereinafter referred to as a storage system for short) refers to a storage system that integrates a large number of storage devices (storage devices are also referred to as storage nodes) of various types in a network to work cooperatively through application software or application interfaces through functions such as cluster application, grid technology, and a distributed storage file system, so as to provide data storage and service access functions for the outside.
At present, the storage method of the storage system is as follows: when creating logical volumes, each logical volume is allocated a physical storage space, which may be a disk composition of a certain storage device or of several storage devices. The client stores data on a certain logical volume, that is, the data is stored on a file system, the file system divides the data into a plurality of parts, each part is an object, the object not only contains the data but also contains additional information such as a data Identification (ID) and the like, the file system writes each object into a physical storage space of the logical volume, and the file system records storage position information of each object, so that when the client requests to access the data, the file system can enable the client to access the data according to the storage position information of each object.
The process of allocating physical storage space for the logical volume by the storage system specifically includes: physical storage space is divided into stripes in advance according to the set of capacity measures for objects stored on a logical volume (which measures tend to have a large margin with respect to the capacity of the object actually to be stored) and redundant array of independent disks (RAID, redundant Array of Independent Disk), and a logical volume can be understood as a stripe, whereby physical storage space is allocated for the logical volume.
The resource access method provided by the application can be applied to an application environment shown in figure 1. Wherein the access terminal 102 communicates with the domain name resolution server 104 via a network, and the access terminal 102 communicates with the target resource server 106 via a network. The access terminal 102 may intercept the current resource access request, and generate a domain name resolution request corresponding to the current resource access request, where the domain name resolution request carries an access domain name. The access terminal 102 may send a domain name resolution request to the domain name resolution server 104, and the domain name resolution server 104 may obtain a set of candidate access addresses corresponding to the access domain name according to the domain name resolution request, and send the set of candidate access addresses to the access terminal 102. The access terminal 102 may determine a push priority corresponding to each candidate access address based on the current network state and candidate access association information corresponding to at least one candidate access address, and determine the target access address from the candidate access address set according to the push priority. The access terminal 102 may obtain the corresponding resource to be accessed from the target resource server 106 corresponding to the target access address based on the current resource access request.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the present application is not limited herein.
In one embodiment, as shown in fig. 2, a resource access method is provided, and the method is applied to the access terminal 102 in fig. 1 for illustration, and includes the following steps:
step S202, intercepting a current resource access request, and generating a domain name resolution request corresponding to the current resource access request; the domain name resolution request carries an access domain name.
The resource access request is a request triggered by a user through a client on the access terminal and is used for requesting to access the resource. For example, a user inputs a specific website and clicks an execution control on a browser of the access terminal, so that the access terminal generates a resource access request for requesting access to a website corresponding to the website. The current resource access request refers to the current resource access request of the access terminal, and is a real-time resource access request.
The resource access request carries an access domain name. The access domain name is a location identifier for the resource server at the time of data transmission, and may be a name of the resource server composed of a series of names separated by dots. The access domain name may specifically be a URL (Uniform Resource Locator ) of an access page corresponding to the resource to be accessed, for example www.example.com. The resource to be accessed refers to the resource to be accessed, the resource refers to the information which can be acquired from the network, and the information which is acquired from the resource server comprises at least one of text information, picture information, video information and audio information.
For example, the current resource access request is an http request, which may be expressed as "http:// www.example.com/a.jpg", the access domain name is "www.example.com", and the resource to be accessed is a.jpg, that is, the current resource access request is used to request to access the picture a on the example website.
The current resource access request is an http request, which can be expressed as "http:// www.example.com", the access domain name is "www.example.com", and the resource to be accessed is a default page, i.e. the current resource access request is used for requesting access to the default page of the example website.
The domain name resolution request is a request sent to the domain name resolution server by the access terminal, and is used for requesting to resolve the access domain name and obtaining the access address corresponding to the access domain name. The access address refers to a network address corresponding to a resource server storing the access resource, and may specifically be an IP address (Internet Protocol) of the resource server, which is a protocol for interconnection between networks. It can be understood that compared with the access address, the access domain name is more convenient for the user to memorize, so when the user accesses the resource, the user does not need to memorize the complex access address, only needs to memorize the simple access domain name, obtains the access address corresponding to the access domain name from the domain name resolution server, and can obtain the resource from the resource server corresponding to the access address.
Specifically, the access terminal may acquire a current resource access request generated by triggering operation on the client, intercept the current resource access request, modify the current resource access request, and generate a domain name resolution request corresponding to the current resource access request. Wherein the domain name resolution request carries an access domain name.
Step S204, the domain name resolution request is sent to a domain name resolution server, so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request; the set of candidate access addresses includes at least one candidate access address.
The domain name resolution server stores a plurality of mapping relations between domain names and access addresses, and the access terminal can find an access entry of a required resource through the domain name resolution service provided by the domain name resolution server so as to access the required resource. The candidate access address set may include all access addresses corresponding to the access domain name, or may include a part of access addresses corresponding to the access domain name. The resource server corresponding to the candidate access address may be an edge computing server or a common server.
Specifically, after generating the domain name resolution request, the access terminal may transmit the domain name resolution request to the domain name resolution server. After receiving the domain name resolution request, the domain name resolution server can locally search at least one candidate access address corresponding to the access domain name in the domain name resolution request, and each candidate access address is combined to obtain a candidate access address set. The domain name resolution server may return a set of candidate access addresses to the access terminal.
In one embodiment, the domain name resolution server may be an httpDNS server, and the domain name resolution server may also be a localDNS server. The httpDNS server refers to an independently built DNS server (Domain Name Server ) based on the http protocol (HyperText Transfer Protocol ). The localDNS server refers to a local DNS server, and is mainly a DNS server built by each operator independently. The access terminal may send a domain name resolution request to at least one of an httpDNS server and a localDNS server. The access terminal may also send a domain name resolution request to the httpDNS server first, and if the httpDNS server does not return the set of candidate access addresses, then send a domain name resolution request to the localDNS server. It can be appreciated that the httpDNS server is more secure and stable than the localDNS server, on the one hand because the localDNS server is more popular and hackers are more likely to attack the localDNS server, and on the other hand because once the httpDNS server is built, the enterprise will not substantially modify the httpDNS server, but the operator will frequently modify the localDNS server, affecting access to the localDNS server by the access terminal. Wherein, the httpDNS server and the localDNS server both need to synchronize the latest mapping relationship between the domain name and the IP address to the authoritative domain name resolution server at regular time.
Step S206, a candidate access address set returned by the domain name resolution server is obtained, the push priority corresponding to each candidate access address is determined based on the current network state and the candidate access association information corresponding to at least one candidate access address, and the target access address is determined from the candidate access address set according to the push priority.
The current network state refers to the current network state of the access terminal. The network state refers to the network connection condition of the access terminal, and the network state includes an operator and a network system. For example, the network state is telecommunication 4G, the operator is china telecommunication, and the network system is 4G; the network state is UNICOM 5G, the operator is China UNICOM, and the network system is 5G. The network system may include wifi, 3G, 4G, 5G, and the like. The access related information is information related to access acquired in the process of accessing the resource server corresponding to the access address. The candidate access association information refers to access association information corresponding to the candidate access address.
Specifically, the access terminal may invoke an operating system interface to obtain the current network state, and obtain candidate access association information corresponding to each candidate access address from a local or other computer device. The access terminal may determine a push priority corresponding to each candidate access address based on the current network state and candidate access association information corresponding to each candidate access address, and use, as the target access address, the candidate network address with the highest push priority from the candidate access address set according to the push priority corresponding to each candidate access address. When determining the push priority, specifically, a weighting factor corresponding to various candidate access association information in the current network state is obtained, a push score of a corresponding candidate access address is calculated according to the candidate access association information and the corresponding weighting factor, and the push priority corresponding to each candidate access address is determined according to the ranking of the push scores of the candidate network addresses. It will be appreciated that the higher the push score, the higher the push priority. The weighting factors can be preset or obtained through training of a machine learning model. Under different network states, the weighting factors corresponding to the candidate access association information are different.
It will be appreciated that the access quality of the same resource server is different for different network states. For example, in a telecommunications network, the access terminal may access the origin server at a slower rate. Taking a game server as an example, the current game server mainly takes a telecommunication server as a main part, and when an access terminal accesses the telecommunication server through a communication network, the speed of playing a game on the access terminal by a user is slower and the card is compared. For example, the access speed of the access terminal to the same resource server is different due to the difference of the 4G and 5G base station positions.
In one embodiment, the candidate access association information includes at least one of historical access information and current access information, the historical access information or the current access information including at least one of access success information, access failure information, last access success time, throughput, click-through rate, access speed, and preset push priority.
Wherein, the historical access information refers to the access information generated by the access at the historical time, and the current access information refers to the access information generated by the access at the current time. The access success information refers to an access statistic value of access success, and may be the number of access successes, the access success rate, and the like. The access failure information refers to an access statistic value of access failure, and may be the number of access failures, the access failure rate, or the like. The last access success time refers to the time statistics value of the access time corresponding to the last access success and the current time. Throughput refers to a statistical value of traffic consumed by an access and may be total traffic, average traffic, etc. The jamming rate refers to a statistical value of jamming conditions generated in the access process, and may be a packet loss rate or the like. The access speed refers to a time statistic value of successful connection with the resource server, and may be total time, average time, and the like. The preset push priority refers to a preset push priority, that is, a default push priority. The preset push priority may be set based on the distance between the resource server and the access terminal, and if the distance between the resource server and the access terminal is closer, the preset push priority of the access address corresponding to the resource server is higher.
The historical access information or the current access information includes at least one of access success information, access failure information, last access success time, throughput, a click-through rate, an access speed, and a preset push priority. That is, the history access information includes at least one of history access success information, history access failure information, last access success time, history throughput, history click-through rate, history access speed, and preset push priority. The current access information includes at least one of current access success information, current access failure information, last access success time, current throughput, current click-through rate, current access speed, and preset push priority.
In one embodiment, when the access domain name is the domain name accessed for the first time, the history access information corresponding to the candidate network address is none, and the access terminal may determine the push priority corresponding to the candidate network address based on the current network state and the current access information. The current access information may be obtained by the access terminal sending a test request to the resource server corresponding to each candidate access address and according to the test response returned by each resource server. For example, the access terminal transmits a ping request (Packet Internet Groper, connectivity test program) to a resource server corresponding to the candidate access address, determines current access success information and current access failure information according to a response message corresponding to the ping request, and determines a current access speed according to a transmission time of the ping request and a reception time of a response message corresponding to the ping request. Each time the access terminal accesses a resource server corresponding to one candidate access address, the access association information generated in the access process is stored in association with the candidate access address. When the access domain name is a domain name that is not first accessed, the access terminal may determine a push priority corresponding to the candidate network address based on the current network state, the current access information, and the historical access information.
Step S208, obtaining the corresponding resource to be accessed from the target resource server corresponding to the target access address based on the current resource access request.
The target resource server refers to a resource server corresponding to the target access address.
Specifically, after determining the target access address from the candidate access address set, the access terminal may request to obtain the corresponding resource to be accessed from the target resource server corresponding to the target access address based on the current resource access request. After the access terminal receives the resource to be accessed returned by the target resource server, the resource to be accessed can be displayed on the client.
In one embodiment, obtaining, based on the current resource access request, a corresponding resource to be accessed from a target resource server corresponding to the target access address includes: replacing the access domain name in the current resource access request with a target access address to obtain an updated resource access request; sending the updated resource access request to a target resource server so that the target resource server obtains the resource to be accessed according to the updated resource access request; and acquiring the resource to be accessed returned by the target resource server.
Specifically, after determining the target access address, the access terminal may replace the access domain name in the current resource access request with the target access address, generate a corresponding updated resource access request, and send the updated resource access request to the target resource server corresponding to the target access address. And after receiving the resource updating access request, the target resource server acquires the corresponding resource to be accessed and returns the resource to the access terminal. After the access terminal receives the resource to be accessed, the resource to be accessed can be displayed. Thus, the current resource access request is simply modified based on the target access address, so that the corresponding target resource server can be quickly accessed, and the resource to be accessed can be quickly acquired.
For example, the current resource access request is an http request, denoted "http:// www.example.com/a.jpg", the target access address is "11.22.33.44", and the updated resource access request is also an http request, denoted "http://11.22.33.44/a.jpg". And the target resource server corresponding to the target access address returns a picture a to the access terminal.
In one embodiment, the application code of the client on the access terminal may be modified, and a preset client SDK (Software Development Kit ) is invoked at the network layer, so that the client can access the relevant interface in the client SDK. Then, after the client generates the current resource access request, the access terminal can call the client SDK to intercept the current resource access request at the network layer through the related interface, generate a domain name resolution request corresponding to the current resource access request, send the domain name resolution request to the domain name resolution server, acquire a candidate access address set returned by the domain name resolution server, determine a push priority corresponding to each candidate access address based on the current network state and candidate access association information corresponding to each candidate access address, determine a target access address from the candidate access address set according to the push priority, and acquire a corresponding resource to be accessed from a target resource server corresponding to the target access address based on the current resource access request.
In the resource access method, the domain name resolution request corresponding to the current resource access request is generated by intercepting the current resource access request; the domain name resolution request carries an access domain name; the domain name resolution request is sent to a domain name resolution server, so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request; the set of candidate access addresses includes at least one candidate access address; acquiring a candidate access address set returned by the domain name resolution server, determining push priorities corresponding to the candidate access addresses based on the current network state and candidate access association information corresponding to at least one candidate access address respectively, and determining a target access address from the candidate access address set according to the push priorities; and acquiring the corresponding resource to be accessed from the target resource server corresponding to the target access address based on the current resource access request. Therefore, the current most suitable access address can be screened out from a plurality of access addresses based on the current network state and the access association information, namely the current most suitable resource server is screened out, and resources can be rapidly acquired from the optimal resource server, so that the access efficiency of resource access is improved.
In one embodiment, intercepting a current resource access request, generating a domain name resolution request corresponding to the current resource access request, includes: acquiring an access domain name from a current resource access request; acquiring a network address corresponding to a domain name resolution server; and modifying the current resource access request based on the position and the network address of the access domain name in the current resource access request to obtain a domain name resolution request.
The network address corresponding to the domain name resolution server refers to a network protocol address of the domain name resolution server, and may specifically be an IP address of the domain name resolution server.
Specifically, the access terminal may extract the access domain name from the current resource access request, determine the position of the access domain name in the current resource access request, obtain the network address corresponding to the domain name resolution server, and modify the current resource access request according to the network address and the position of the access domain name in the current resource access request, so as to obtain the domain name resolution request.
In one embodiment, when modifying the current resource access request, the access terminal may add a network address in front of the access domain name to obtain a domain name resolution request. Further, in order to determine the access domain name to be resolved in the domain name resolution request, a domain name tag may be added before or after the access domain name, where the domain name tag is used to tag the location of the access domain name to be resolved. Further, custom information may be added, where the custom information may be a specific constraint condition, where the constraint condition is used to constrain candidate access addresses returned by the domain name resolution server, for example, to constrain three candidate access addresses returned by the domain name resolution server.
For example, the current resource access request is an http request, which may be denoted as "http:// www.example.com", and the access domain name is "www.example.com". The corresponding domain name resolution request is also an http request, which may be expressed as "http:// 1.2.3.4/dhest= www.example.com & info=x". Wherein 1.2.3.4 represents an IP address corresponding to the domain name resolution server, dhest=represents that the latter information is an access domain name to be resolved, & is used for isolating the access domain name and the custom information, and info=x represents the custom information.
In this embodiment, the access domain name is obtained from the current resource access request; acquiring a network address corresponding to a domain name resolution server; and modifying the current resource access request based on the position and the network address of the access domain name in the current resource access request to obtain a domain name resolution request. Therefore, on the basis of the current resource access request, the current resource access request can be quickly modified based on the position of the access domain name in the current resource access request and the network address corresponding to the domain name resolution server, the corresponding domain name resolution request can be quickly generated, and the access efficiency of resource access can be improved.
In one embodiment, the domain name resolution server includes an httpDNS server and a localDNS server, and sends a domain name resolution request to the domain name resolution server, so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request, including: sending a domain name resolution request to an httpDNS server so that the httpDNS server obtains a candidate access address set according to the domain name resolution request; and when the candidate access address set returned by the httpDNS server is not received, sending a domain name resolution request to the localDNS server, so that the localDNS server obtains the candidate access address set according to the domain name resolution request.
Specifically, the access terminal stores network addresses corresponding to the httpDNS server and the localDNS server at the same time, and sets the resolution priorities of the httpDNS server and the localDNS server in advance. The resolution priority of httpDNS server is higher than that of localDNS server, that is, localDNS server is used as disaster recovery policy. Therefore, after generating the domain name resolution request, the access terminal preferentially sends the domain name resolution request to the httpDNS server, and if the httpDNS server does not return the candidate access address set corresponding to the access domain name for a long time, the access terminal sends the domain name resolution request to the localDNS server again, so as to obtain the candidate access address set returned by the localDNS server.
For example, the access domain name is "video.com", referring to fig. 3 (a), the access terminal preferentially sends a domain name resolution request carrying the access domain name to the httpDNS server, and the httpDNS server returns an IP address "4.4.4.4" corresponding to the access domain name, so that the access terminal can acquire resources from a resource server corresponding to the IP address. Referring to fig. 3 (b), if the httpDNS server does not return the IP address corresponding to the access domain name for a long time, the access terminal may send a domain name resolution request to the localDNS server, and the localDNS server returns the IP address "4.4.4.4" corresponding to the access domain name, so that the access terminal may acquire a resource from the resource server corresponding to the IP address.
In one embodiment, httpDNS servers may be multiple, distributed across different regions. The access terminal stores an IP address list of httpDNS servers, the IP address list including locations of httpDNS servers corresponding to respective IP addresses. The access terminal can acquire a local position, select the httpDNS server closest to the IP address list as an optimal httpDNS server according to the local position, and send a domain name resolution request to the optimal httpDNS server.
In this embodiment, the httpDNS server obtains the candidate access address set according to the domain name resolution request by sending the domain name resolution request to the httpDNS server; and when the candidate access address set returned by the httpDNS server is not received, sending a domain name resolution request to the localDNS server, so that the localDNS server obtains the candidate access address set according to the domain name resolution request. In this way, the localDNS server is used as a disaster recovery policy, and under the condition that the httpDNS server fails to return, the access terminal is still guaranteed to acquire the candidate access address set.
In one embodiment, as shown in fig. 4, the sending the domain name resolution request to the domain name resolution server, so that the domain name resolution server obtains the candidate access address set corresponding to the access domain name according to the domain name resolution request, includes:
In step S402, the domain name resolution server obtains a plurality of initial access addresses corresponding to the access domain name according to the domain name resolution request.
Step S404, determining access positions of the resource servers corresponding to the plurality of initial access addresses respectively.
Step S406, taking the initial access address with the distance between the access position and the request side position corresponding to the domain name resolution request smaller than the preset threshold value as a candidate access address, and combining the candidate access addresses to obtain a candidate access address set; the resource server corresponding to the candidate access address is an edge computing server.
Step S408, the candidate access address set is returned to the requester corresponding to the domain name resolution request.
The edge computing server is a server carrying an edge computing function. Edge computing is a technique for optimizing an application or cloud computing system that transfers portions of the data or services of the application from one or more central nodes ("clouds") to another logical endpoint ("edge"). Under a 5G network, a large number of edge computing servers are deployed. Compared with the common server, the edge computing server is closer to the user, can offload tasks to the edge, and bears cloud computing capacity of cloud subsidence. The initial access address includes an access address corresponding to the edge computing server and an access address corresponding to the normal server. The access location refers to the geographic location information of the resource server. The location of the requester refers to geographical location information of the requester corresponding to the domain name resolution request. The preset threshold value can be set according to actual needs.
Specifically, the target resolution server stores not only the mapping relation between the domain name and the access address, but also the access position of the resource server corresponding to the access address. After receiving the domain name resolution request, the domain name resolution server can obtain all access addresses corresponding to the access domain name according to the domain name resolution request, namely, a plurality of initial access addresses corresponding to the access domain name. Based on the characteristics of the edge computing server, the domain name resolution server can screen the edge computing server according to the distance between the resource server and the access terminal. The domain name resolution server may specifically obtain access positions of resource servers corresponding to the initial access addresses, and take, as candidate access addresses, the initial access addresses with a distance between the access positions and a requester position corresponding to the domain name resolution request being smaller than a preset threshold, where the resource servers corresponding to the candidate access addresses are closer to the access terminal and closer to the user, and may consider the resource servers corresponding to the candidate access addresses as edge computing servers. The candidate access addresses are combined to obtain a candidate access address set. After determining the candidate access address set, the target resolution server may return the candidate access address set to the requestor corresponding to the domain name resolution request, i.e., return the candidate access address set to the access terminal.
In this embodiment, the domain name resolution server obtains a plurality of initial access addresses corresponding to the access domain name according to the domain name resolution request, determines access positions of the resource servers corresponding to the plurality of initial access addresses respectively, uses the initial access addresses with the distances between the access positions and the positions of the requesters corresponding to the domain name resolution request being smaller than a preset threshold value as candidate access addresses, combines the candidate access addresses to obtain a candidate access address set, uses the resource server corresponding to the candidate access address as an edge computing server, and returns the candidate access address set to the requester corresponding to the domain name resolution request. Therefore, the network address corresponding to the edge computing server can be screened out from a plurality of access addresses based on the distance between the position of the requesting party corresponding to the domain name resolution request and the access position of the resource server, and the access terminal can quickly access the edge computing server to acquire the resource to be accessed because the edge computing server is closer to the access terminal, so that the access efficiency of resource access is improved.
In one embodiment, as shown in fig. 5, determining a push priority corresponding to each candidate access address based on the current network state and candidate access association information corresponding to at least one candidate access address, and determining a target access address from the candidate access address set according to the push priority includes:
Step S502, obtaining target access influence factors corresponding to the candidate access association information based on the current network state.
Step S504, determining the push scores corresponding to the candidate access addresses according to the candidate access association information and the corresponding target access influence factors.
Step S506, sorting the push scores corresponding to the candidate access addresses from large to small, and determining the push priorities corresponding to the candidate access addresses according to the sorting result.
In step S508, the candidate access address with the highest push priority is taken as the target access address.
Specifically, the access terminal may acquire target access impact factors corresponding to various candidate access association information based on the current network state, that is, acquire weighting factors corresponding to various candidate access association information in the current network state, and perform weighted summation according to the candidate access association information and the corresponding weighting factors, so as to calculate and obtain the push score corresponding to each candidate access address. The access terminal can sort the push scores corresponding to the candidate access addresses from large to small, and determine the push priority corresponding to the candidate access addresses according to the sorting result, namely, determine the push priority according to the sorting order. It can be understood that the higher the push score corresponding to the candidate access address, the higher the access quality of the resource server corresponding to the candidate access address, and the higher the push priority corresponding to the candidate access address. The access terminal can take the candidate access address with the highest push priority as a target access address, and acquire the data to be accessed from a target resource server corresponding to the target access address.
For example, the access association information includes a current access speed, a preset push priority, a historical access success number, a historical access failure number, a last access success time, a historical average throughput, and a historical average click-through rate. Push score = current access speed a + preset push priority b + historical access success times c + historical access failure times d + last access success time e + historical average throughput f + historical average katon rate g, wherein a, b, c, d, e, f, g is a weighting factor. And calculating the push score of each IP address according to the formula, and selecting the IP address with the highest push score as the target IP address.
In one embodiment, obtaining the target access impact factor corresponding to the candidate access association information based on the current network state includes: acquiring a requester position corresponding to a current resource access request; and acquiring a corresponding target access influence factor based on the position of the requesting party and the current network state.
Specifically, in addition to the different weighting factors corresponding to the different network states, further, different geographic locations may also correspond to the different weighting factors. For example, one set of weighting factors corresponds to when the access terminal is located in Beijing, and another set of weighting factors corresponds to when the access terminal is located in Shenzhen. When the access terminal is located in Shenzhen mountain area, one set of weighting factors is corresponding, and when the access terminal is located in Shenzhen dragon Hua Oushi, the other set of weighting factors is corresponding. The access terminal can call the related interface of the operating system to acquire the current position and the current network state of the access terminal, and further acquire target access influence factors corresponding to various candidate access association information, namely weighting factors corresponding to various candidate access association information, according to the current position and the current network state. In this way, the current network state and the current geographic position of the access terminal are comprehensively considered, the more matched weighting factors are selected, and the calculated push score is higher in accuracy, so that the access efficiency of resource access can be improved.
In this embodiment, a target access impact factor corresponding to candidate access association information is obtained based on a current network state, push scores corresponding to each candidate access address are determined according to the candidate access association information and the corresponding target access impact factor, the push scores corresponding to each candidate access address are ordered from large to small, push priorities corresponding to each candidate access address are determined according to an ordering result, and a candidate access address with the highest push priority is used as the target access address. Therefore, the access terminal can screen the optimal access address from the plurality of candidate access addresses, acquire the data to be accessed from the resource server corresponding to the optimal access address, and improve the access efficiency of resource access.
In one embodiment, as shown in fig. 6, obtaining the target access impact factor corresponding to the candidate access association information based on the current network state includes:
step S602, acquiring a reference access address set; the reference access address set includes reference access addresses corresponding to the reference access resources.
Step S604, obtaining current access influence factors corresponding to each network state.
Step S606, according to the current access influence factor and the reference access associated information corresponding to the reference access address, determining the initial push priority corresponding to each reference access address under each network state.
The reference access association information refers to access association information corresponding to the reference access resource. The reference access resource may be a historically accessed resource or a resource that has not been accessed. When the reference access resource is a resource which is accessed in a history way, the history access information can be obtained as corresponding reference access associated information, or at least one access can be immediately performed on a resource server corresponding to the reference access resource, so as to obtain current access information, and the history access information and the current access information are taken as corresponding reference access associated information. When the reference access resource is a resource which is not accessed, the resource server corresponding to the reference access resource can be accessed at least once immediately to obtain current access information, and the current access information is used as corresponding reference access association information. The reference access association information corresponding to the same reference access address in different network states may be the same or different. For example, all access association information corresponding to the same reference access address may be used as reference access association information corresponding to the reference access address in any network state. The access association information obtained by access under the telecommunication 5G network can also be used as the reference access association information corresponding to the reference access address under the telecommunication 5G network, and the access association information obtained by access under the communication 5G network can be used as the reference access association information corresponding to the reference access address under the communication 5G network.
Specifically, initial weighting factors corresponding to various access association information under different network states are preset. The access terminal can randomly select the resource as the reference access resource, and performs weighted summation according to the reference access association information corresponding to the reference access resource and the corresponding weighting factor, so as to obtain the initial push priority corresponding to each reference access address under each network state.
Step S608, obtaining the reference push priorities of the reference access addresses corresponding to the network states.
Step S610, based on the push priority difference between the reference push priority and the initial push priority corresponding to the same reference access address in the same network state, the corresponding current access influence factor is adjusted until the push priority difference meets the convergence condition, and the current access influence factor corresponding to the push priority difference meeting the convergence condition is taken as the corresponding target access influence factor, thereby obtaining the target access influence factor corresponding to each network state.
The reference push priority may be determined according to an access delay time of a resource server corresponding to the reference access address. It can be appreciated that the shorter the access delay time, the faster the access speed, and the higher the reference push priority. If the closer the resource server is to the terminal, the less the load of the resource server is, and the current network states of the operator corresponding to the resource server and the terminal are matched, the shorter the corresponding access delay time is.
Specifically, the access terminal may obtain reference push priorities corresponding to each reference access address in each network state, and adjust the corresponding current access impact factor based on a push priority difference between the reference push priority and the initial push priority corresponding to the same reference access address in the same network state. When the push priority differences of the reference push priority and the initial push priority corresponding to each reference access address in the same network state meet the convergence condition, taking the current access influence factor corresponding to the push priority difference meeting the convergence condition as the corresponding target access influence factor, thereby obtaining the target access influence factor corresponding to each network state. The convergence condition may be set according to actual requirements, and the goal is to make the push priority smaller and better, i.e. the closer the initial push priority and the reference push priority are, the better.
For example, the network state is a telecommunications 5G network, and the reference IP address set includes IP1, IP2, IP3, and IP4. The initial push priorities corresponding to the IP1 to the IP4 under the telecommunication 5G network are {1, 3, 2, 4}, the reference push priorities corresponding to the IP1 to the IP4 under the telecommunication 5G network are {1, 2, 3, 4}, the weighting factors corresponding to the access association information under the telecommunication 5G network are adjusted according to the push priority differences of {1, 3, 2, 4} and {1, 2, 3, 4}, until the push priorities calculated based on the adjusted weighting factors are {1, 2, 3, 4}, and the adjusted weighting factors are taken as target weighting factors.
In one embodiment, the set of reference access addresses includes multiple sets of reference access addresses, one set of reference access addresses corresponding to each reference access resource.
In one embodiment, the target access impact factor may be trained through a machine learning model. The training data of the machine learning model comprises reference access associated information and reference push priority corresponding to each reference access address corresponding to each reference access resource under different network states. When training the machine learning model, the input data of the model is the reference access associated information and the network state corresponding to each reference access address corresponding to the same reference access resource under the same network state, and the expected output data of the model is the reference push priority corresponding to each reference access address under the network state. After the input data is calculated in the model, the initial push priority corresponding to each reference access address corresponding to the same reference access resource in the same network state is output, the similarity of the initial push priority and the corresponding reference push priority is calculated, the model parameters of the machine learning model are adjusted and training is continued through the similarity in a back propagation mode until the updated similarity meets the convergence condition, and training is completed to obtain the trained machine learning model. The trained machine learning model includes target access impact factors corresponding to respective network states. The convergence condition may be that the similarity is greater than a first preset threshold, or that the rate of change of the similarity is less than a second preset threshold. When the method is applied, the access association information and the current network state corresponding to each candidate access address are input into a trained machine learning model, and the machine learning model outputs the push priority corresponding to each candidate access address. The push score calculation and ordering process is done inside the machine learning model.
In one embodiment, at least one test terminal may be set in different regions, the test terminal collects the reference access association information corresponding to the reference access address, and the test terminal determines the reference push priority corresponding to the reference access address, so as to adjust the initial weight factor, and obtain the target weight factor corresponding to each region in each network state. It is to be appreciated that in training the machine learning model, the training data of the model may further include geographic location information. Therefore, the access terminal does not need to calculate itself, only needs to obtain the target weighting factors corresponding to each region in each network state from the test terminal, and stores the target weighting factors in the local, so that the calculation amount and calculation pressure of the access terminal are reduced.
In this embodiment, a reference access address set is acquired, where the reference access address set includes reference access addresses corresponding to reference access resources, current access influence factors corresponding to each network state are acquired, initial push priorities corresponding to each reference access address in each network state are determined according to the current access influence factors and reference access association information corresponding to the reference access addresses, reference push priorities corresponding to each reference access address in each network state are acquired, and based on push priority differences of the reference push priorities and the initial push priorities corresponding to the same reference access address in the same network state, the corresponding current access influence factors are adjusted until the push priority differences meet convergence conditions, and the current access influence factors corresponding to the push priority differences meeting the convergence conditions are used as corresponding target access influence factors, so as to obtain target access influence factors corresponding to each network state. In this way, the target access impact factor can be quickly calculated based on the push priority difference.
In one embodiment, as shown in fig. 7, obtaining the reference push priority corresponding to each reference access address in each network state includes:
step S702, under different network states, sending a resource access test request to the resource server corresponding to each reference access address, and receiving test resources returned by each resource server according to the resource access test request.
Step S704, determining access delay time based on the transmission time corresponding to the resource access test request and the receiving time corresponding to the test resource, so as to obtain the access delay time corresponding to each reference access address in each network state.
Step S706, determining the corresponding reference push priority of each reference access address in the same network state based on the time sequence of the corresponding access delay time of each reference access address in the same network state, and obtaining the corresponding reference push priority of each reference access address in each network state.
The resource access test request is a resource access request with a test function and is used for requesting the resource server to return to test resources. The resource access test request carries a test resource.
Specifically, in different network states, the access terminal may send a resource access test request to the resource server corresponding to each reference access address, and record the sending time of the resource access test request. After each resource server receives the resource access test request, the test resources are searched in the locally stored data, and the test resources are returned to the access terminal. The access terminal can receive the same test resources returned by each resource server and record the receiving time of the test resources. Then, the access terminal determines an access delay time according to the sending time of the resource access test request sent by the same resource server in the same network state and the receiving time of the test resource returned by the resource server, that is, takes the time difference between the sending time and the receiving time as the access delay time. Thus, the access terminal can obtain the corresponding access delay time of each reference access address in each network state. Then, the access terminal can determine the reference push priority corresponding to each reference access address in the same network state based on the time sequence of the access delay time corresponding to each reference access address in the same network state, so as to obtain the reference push priority corresponding to each reference access address in each network state. It will be appreciated that the shorter the access delay time, the higher the corresponding reference push priority.
In one embodiment, at least one test terminal may be set in different regions, the test terminal sends a resource access test request, receives the test resource, and calculates access delay time according to the sending time corresponding to the resource access test request and the receiving time corresponding to the test resource, so as to obtain access delay time corresponding to each reference access address in each region under each network state.
In this embodiment, by sending a resource access test request to a resource server corresponding to each reference access address in different network states, receiving test resources returned by each resource server according to the resource access test request, determining access delay time based on the sending time corresponding to the resource access test request and the receiving time corresponding to the test resources, obtaining access delay time corresponding to each reference access address in each network state, determining a reference push priority corresponding to each reference access address in the same network state based on a time sequence of the access delay time corresponding to each reference access address in the same network state, and obtaining the reference push priority corresponding to each reference access address in each network state. In this way, by sending a simple and uniform resource access test request to the resource server, the corresponding access delay time can be quickly calculated, and the corresponding reference push priority can be quickly determined.
In one embodiment, as shown in fig. 8, after obtaining the corresponding resource to be accessed from the target resource server corresponding to the target access address based on the current resource access request, the method further includes:
step S802, updating the candidate access association information corresponding to the target access address according to the current access result of the current resource access request, and updating the candidate access association information corresponding to other candidate access addresses based on the test access result of the resource server corresponding to other candidate access addresses to obtain the target access association information corresponding to each candidate access address.
The current access result is an access result generated by the access terminal accessing the target server corresponding to the target access address, and specifically may include various data generated in the whole process of accessing the target resource server by the access terminal. The test access result is an access result generated by the access terminal accessing the resource server corresponding to the other candidate access address, and specifically may include various data generated in the whole process of accessing the other resource server by the access terminal.
Specifically, the access terminal may update the candidate access association information corresponding to the target access address according to the current access result of the current resource access request, so as to obtain the target access association information corresponding to the target access address. For example, if the target resource server successfully returns to the resource to be accessed, the access terminal may update the access success information corresponding to the target access address, update the throughput according to the flow consumed in the access process, and update the click-through rate according to the smoothness in the access process. The access terminal can perform test access to the resource server corresponding to the other candidate access addresses, and update the candidate access associated information corresponding to the other candidate access addresses according to the test access result to obtain target access associated information corresponding to the other candidate access addresses. For example, for all candidate access addresses, the access terminal may send ping requests to the resource servers corresponding to the candidate access addresses, respectively, and update the access speed according to the sending time of the ping requests and the receiving time of the response messages corresponding to the ping requests. After obtaining the resource to be accessed returned by the target resource server, the access terminal can also send a resource access request to the resource server corresponding to other candidate access addresses to obtain the resource to be accessed, and update the access association information according to the access result. It will be appreciated that the amount of data in the ping request is smaller, the amount of data handled by the resource server is smaller, and the traffic consumption of the access terminal is smaller, compared to a specific resource access request.
Step S804, the access domain name, each candidate access address and the target access association information corresponding to each candidate access address are stored in association.
Step S806, when a target resource access request carrying an access domain name is intercepted, determining an update access address from each candidate access address based on the current network state and target access association information corresponding to the locally stored candidate access address, and acquiring a resource to be accessed from an update resource server corresponding to the update access address based on the target resource access request.
The update resource server refers to a resource server corresponding to the update access address. The updated access address is an access address corresponding to a resource server most suitable for performing resource access under the current network state of the access terminal, and is determined based on the current network state and the latest access association information of each access address corresponding to the access domain name. It will be appreciated that when the network state of the access terminal changes, the resource server currently most suitable for resource access may also change. Further, the access terminal performs multiple accesses to the resource server corresponding to the same access domain name, and each access may cause the update of the access association information of at least one access address corresponding to the local access domain name, so when the access terminal needs to access the resource server corresponding to the access domain name next time, the resource server most suitable for performing the resource access this time and the resource server most suitable for performing the resource access last time may not be the same resource server, that is, the update access address and the target access address may not be the same access address.
Specifically, after receiving each candidate access address returned by the domain name resolution server, the access terminal may locally store each access address set in association with the corresponding access domain name. After the target access association information corresponding to each candidate access address is obtained, the access terminal can locally store the candidate access addresses, the access domain names corresponding to the candidate access addresses and the target access association information corresponding to the candidate access addresses in an association manner. When the access terminal needs to access the resource server corresponding to the same access domain name again, that is, the access terminal intercepts a target resource access request carrying the access domain name, the access terminal does not need to send a domain name resolution request to the domain name resolution server again, the access terminal can directly obtain each candidate access address corresponding to the access domain name locally, calculate a new push score corresponding to each candidate access address based on the latest network state and target access association information corresponding to the candidate access address, determine a new push priority corresponding to each candidate access address according to the latest push score, and take the candidate access address with the highest push priority as an update access address, thereby updating the resource server corresponding to the update access address. It can be understood that when the network states of the last access and the current access are different, the optimal access address may change, and when the access association information corresponding to the access address changes, the optimal access address may also change.
In one embodiment, when detecting the change of the current network state or the geographic location information, the access terminal may pre-calculate the push priority corresponding to each access address based on the current network state, the current geographic location and the access association information corresponding to each access address of the local cache, even if the current access terminal does not intercept the resource access request. When the access terminal intercepts a resource access request carrying an access domain name corresponding to the access address of the local cache, the target access address can be rapidly determined without calculation, and then resource access is performed to acquire resources.
In this embodiment, the candidate access association information corresponding to the target access address is updated according to the current access result of the current resource access request, and the candidate access association information corresponding to the other candidate access addresses is updated based on the test access result of the resource server corresponding to the other candidate access addresses, so as to obtain the target access association information corresponding to each candidate access address. Thus, the access result of each resource access is fully utilized, and the access association information can be enriched rapidly. And carrying out association storage on the access domain name, each candidate access address and target access association information corresponding to each candidate access address, when a target resource access request carrying the access domain name is intercepted, determining an update access address from each candidate access address based on the current network state and the target access association information corresponding to the locally stored candidate access address, and acquiring a resource to be accessed from an update resource server corresponding to the update access address based on the target resource access request. Thus, each time the terminal acquires the access address corresponding to the new access domain name, the acquired access address and the corresponding access domain name are associated and stored. When the terminal repeatedly accesses the same access domain name, the terminal does not need to request access addresses corresponding to the same access domain name from the domain name resolution server for multiple times, and can directly acquire the corresponding access addresses from the local, so that the access efficiency of resource access is improved, and the terminal can further select the optimal access address according to the current network state, so that the access efficiency of resource access is further improved.
In one embodiment, the candidate access address carries an access validity period, the method further comprising: when the access effective period of at least one candidate access address in the candidate access address set is larger than the current time, sending an access address update request carrying an access domain name to a domain name resolution server, so that the domain name resolution server obtains an updated access address set corresponding to the access domain name according to the access address update request; and acquiring an updating access address set returned by the domain name resolution server, and updating the locally stored candidate access address set based on the updating access address set.
Specifically, the access address of the resource server is changeable, that is, the access address of the resource server is for which there is an access validity period. When the access validity period of one access address expires, the access terminal cannot successfully access the resource server corresponding to the access address even if knowing the access address. Therefore, the access terminal needs to delete the expired access address in time, acquire a new effective access address in time, and ensure that the locally stored access address is always effective. When the domain name resolution server returns the candidate access address set to the access terminal, the access validity period corresponding to each candidate access address is returned together. Therefore, when the access validity period of at least one candidate access address in the candidate access address set is greater than the current time, the fact that the expired candidate access address exists in the candidate access address set is indicated, then the access terminal needs to send an access address update request to the domain name resolution server, the access address update request carries an access domain name corresponding to the expired candidate access address, and the domain name resolution server can locally acquire the latest access address corresponding to the access domain name according to the access address update request, namely, update the access address set, and return the updated access address set to the access terminal. After receiving the updated access address set, the access terminal may update the locally stored candidate access address set based on the updated access address set, and replace the candidate access address set with the updated access address set.
The application also provides an application scene, which applies the resource access method. Specifically, the application of the resource access method in the application scene is as follows:
the resource access method can be applied in a 5G scenario, referring to fig. 9, which includes httpDNS servers, access terminals, and edge computing server clusters. The access terminal can intercept the current resource access request, generate a domain name resolution request corresponding to the current resource access request, send the domain name resolution request to the httpDNS server, and the domain name resolution request carries an access domain name and is used for requesting the httpDNS server to access an access address corresponding to the access domain name. The access terminal may receive an access address set corresponding to the access domain name returned by the httpDNS server, where the access address set includes an access address of at least one edge computing server corresponding to the access domain name. The access terminal can determine the push priority corresponding to each access address in the current network state based on the current network state and the access association information corresponding to each access address, select the access address with the highest push priority as the target access address, and acquire the resource to be accessed from the edge application server corresponding to the target access address.
Therefore, when the domain name is resolved, the method can bypass a localDNS server of an operator, and a domain name resolving request of the edge calculation server can be directly sent to the self-built httpDS server through the Http protocol, so that the domain name resolving request can not suffer from domain name resolving abnormality, domain name hijacking is effectively prevented, and domain name resolving efficiency is improved.
Referring to fig. 10, the specific process of the access terminal for resource access is as follows:
1. a current resource access request is intercepted, the current resource access request including an access domain name.
Specifically, when a user requests a resource to be accessed on an edge computing server through a client on an access terminal, the access terminal can acquire a current resource access request, wherein the current resource access request comprises an access domain name, and the current resource access request is intercepted, specifically, a URL of the current resource access request is intercepted.
2. And generating a domain name resolution request corresponding to the current resource access request, and sending the domain name resolution request to the httpDS server.
Specifically, the access terminal may reorganize the intercepted URL, and add the IP address and the domain name label corresponding to the httpDNS server to the URL, so as to generate a domain name resolution request corresponding to the current resource access request. The access terminal may send a domain name resolution request to the httpDNS server.
In one embodiment, the access terminal intercepts the current resource access request, and can firstly locally inquire whether the IP address corresponding to the access domain name is stored, and when the IP address corresponding to the access domain name is inquired, the domain name analysis request is not required to be sent to the httpDNS server, so that domain name evaluation can be immediately performed, and the push priority corresponding to each IP address is determined. When the IP address corresponding to the visited domain name is not queried, a domain name resolution request needs to be sent to the httpDNS server.
Furthermore, the localNDS server may be used as a disaster recovery policy.
3. And receiving an IP address set returned by the httpDS server, wherein the IP address set comprises the IP addresses of the edge computing servers corresponding to the access domain names.
Specifically, the access terminal may accept the set of IP addresses returned by the httpDNS server, where the set of IP addresses includes the IP addresses of the respective edge computing servers to which the access domain name corresponds.
4. And testing each IP address to obtain access association information corresponding to each IP address.
Specifically, when the access terminal does not locally store the IP address corresponding to the access domain name, the access terminal may test each IP address to obtain access association information corresponding to each IP address. When the access terminal locally stores the IP address corresponding to the access domain name, the access terminal can test each IP address and obtain access association information corresponding to each IP address based on the historical access information and the current test result.
5. And evaluating each IP address according to the current network state and the access association information corresponding to each IP address, and determining the push priority corresponding to each IP address.
Specifically, the access terminal may determine a current network state, acquire weighting factors corresponding to various access association information in the current network state, and perform weighted summation calculation according to the access association information and the corresponding weighting factors to obtain push scores corresponding to the respective IP addresses. The access terminal can sort the push scores corresponding to the IP addresses from large to small, and determine the push priorities corresponding to the IP addresses according to the sorting order. The earlier the ordering, the higher the push priority.
6. And taking the IP address with the highest pushing priority as a target IP address, and acquiring the resource to be accessed from an edge computing server corresponding to the target IP address.
Specifically, the access terminal may use the IP address with the highest push priority as the optimal IP address, as the target IP address, and acquire the resource to be accessed from the edge computing server corresponding to the target IP address.
7. And receiving the resource to be accessed returned by the edge computing server, and displaying the resource to be accessed to the user.
Specifically, the access terminal may receive the resource to be accessed returned by the edge computing server, and display the resource to be accessed to the user.
8. The set of IP addresses is cached.
Specifically, after the access terminal receives the IP address set returned by the httpDNS server, the access terminal may store the IP address set and the corresponding access domain name in association, and cache the IP address set and the corresponding access domain name locally. Furthermore, the access terminal can also store the access association information corresponding to each IP address in an associated manner, and cache the access association information locally.
9. The set of IP addresses is updated.
Specifically, each IP address carries an access validity period, and when the IP address is found to expire, the access terminal timely sends an access address update request to the httpDNS server, acquires the latest and valid IP address set, and updates the locally cached IP address.
10. And updating the evaluation result of the IP address based on the network state and caching the evaluation result in the local area.
Specifically, when detecting that the network state changes, even if there is no resource access request currently, the access terminal may update the evaluation result of the locally cached IP addresses based on the latest network state and the latest access association information, determine the push priority corresponding to each IP address in the latest network state, and cache the push priority locally. When the access terminal intercepts a resource access request carrying an access domain name corresponding to the locally cached IP address, the optimal IP address can be rapidly determined, and then resource access is performed to acquire resources.
Furthermore, each IP address may be evaluated according to the current network state, the current geographic location, and the access association information corresponding to each IP address of the access terminal, so as to determine the push priority corresponding to each IP address.
Thus, by the resource access method, the optimal IP address can be dynamically selected based on the current network state, and the access terminal is ensured to be guided to the edge computing server with optimal access. Under the 5G architecture, only the client on the access terminal needs to be modified, the preset client SDK is called at the network layer, and other network structures do not need to be changed, so that the steps can be realized, and the access efficiency and the accuracy of the access terminal resource access can be improved. More importantly, when the position of the access terminal changes or the network state changes, the IP address can be reevaluated in time to determine the IP address which is most matched with the current environment.
Referring to fig. 11, fig. 11 is a graph comparing time consumption of resource access using the method of the present application and the conventional method. The domain name resolution server adopted by the method is an httpDNS server, and the domain name resolution server adopted by the traditional method is a localDNS server. As shown in fig. 11, compared with the conventional method, the resource access method of the present application can significantly improve the speed of resource access, mainly because the IP address that is most matched with the current environment can be quickly found for resource access.
It should be understood that, although the steps in the flowcharts of fig. 2, 4-8 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps of FIGS. 2, 4-8 may include steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the steps or stages in other steps.
In one embodiment, as shown in fig. 12, a resource access device is provided, where the device may employ a software module or a hardware module, or a combination of both, as part of a computer apparatus, and the device specifically includes: a request intercept module 1202, a domain name resolution module 1204, a target access address determination module 1206, and a resource acquisition module 1208, wherein:
A request interception module 1202, configured to intercept a current resource access request and generate a domain name resolution request corresponding to the current resource access request; the domain name resolution request carries an access domain name.
The domain name resolution module 1204 is configured to send a domain name resolution request to a domain name resolution server, so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request; the set of candidate access addresses includes at least one candidate access address.
The target access address determining module 1206 is configured to obtain a candidate access address set returned by the domain name resolution server, determine a push priority corresponding to each candidate access address based on the current network state and candidate access association information corresponding to at least one candidate access address, and determine a target access address from the candidate access address set according to the push priority.
The resource obtaining module 1208 is configured to obtain, based on the current resource access request, a corresponding resource to be accessed from a target resource server corresponding to the target access address.
In one embodiment, the request interception module is further configured to obtain an access domain name from the current resource access request; acquiring a network address corresponding to a domain name resolution server; and modifying the current resource access request based on the position and the network address of the access domain name in the current resource access request to obtain a domain name resolution request.
In one embodiment, the domain name resolution server includes an httpDNS server and a localDNS server, and the domain name resolution module is further configured to send a domain name resolution request to the httpDNS server, so that the httpDNS server obtains the set of candidate access addresses according to the domain name resolution request; and when the candidate access address set returned by the httpDNS server is not received, sending a domain name resolution request to the localDNS server, so that the localDNS server obtains the candidate access address set according to the domain name resolution request.
In one embodiment, a domain name resolution server obtains a plurality of initial access addresses corresponding to access domain names according to a domain name resolution request; determining access positions of the resource servers corresponding to the initial access addresses respectively; taking an initial access address with the distance between the access position and a requester position corresponding to the domain name resolution request smaller than a preset threshold value as a candidate access address, and combining the candidate access addresses to obtain a candidate access address set; the resource server corresponding to the candidate access address is an edge computing server; and returning the candidate access address set to the requester corresponding to the domain name resolution request.
In one embodiment, the target access address determining module is further configured to obtain a target access impact factor corresponding to the candidate access association information based on the current network state; determining the push scores corresponding to the candidate access addresses according to the candidate access association information and the corresponding target access influence factors; sorting the push scores corresponding to the candidate access addresses from large to small, and determining the push priorities corresponding to the candidate access addresses according to the sorting result; and taking the candidate access address with the highest push priority as the target access address.
In one embodiment, the target access address determination module is further configured to obtain a set of reference access addresses; the reference access address set comprises reference access addresses corresponding to the reference access resources; acquiring current access influence factors corresponding to each network state; determining initial push priorities corresponding to the reference access addresses under each network state according to the current access influence factors and the reference access associated information corresponding to the reference access addresses; acquiring reference push priorities corresponding to each reference access address under each network state respectively; based on the push priority difference of the corresponding reference push priority and the initial push priority of the same reference access address in the same network state, the corresponding current access influence factor is adjusted until the push priority difference meets the convergence condition, and the current access influence factor corresponding to the push priority difference meeting the convergence condition is taken as the corresponding target access influence factor, so that the target access influence factors corresponding to the network states are obtained.
In one embodiment, the target access address determining module is further configured to send a resource access test request to a resource server corresponding to each reference access address in different network states, and receive test resources returned by each resource server according to the resource access test request; determining access delay time based on the sending time corresponding to the resource access test request and the receiving time corresponding to the test resource, and obtaining the corresponding access delay time of each reference access address in each network state; and determining the corresponding reference push priority of each reference access address in the same network state based on the time sequence of the corresponding access delay time of each reference access address in the same network state, and obtaining the corresponding reference push priority of each reference access address in each network state.
In one embodiment, the target access address determining module is further configured to obtain a location of a requester corresponding to the current resource access request; and acquiring a corresponding target access influence factor based on the position of the requesting party and the current network state.
In one embodiment, the resource obtaining module is further configured to replace the access domain name in the current resource access request with a target access address, so as to obtain an updated resource access request; sending the updated resource access request to a target resource server so that the target resource server obtains the resource to be accessed according to the updated resource access request; and acquiring the resource to be accessed returned by the target resource server.
In one embodiment, the resource access device further comprises:
the information updating module is used for updating the candidate access association information corresponding to the target access address according to the current access result of the current resource access request, and updating the candidate access association information corresponding to other candidate access addresses based on the test access result of the resource server corresponding to other candidate access addresses to obtain the target access association information corresponding to each candidate access address; performing association storage on the access domain name, each candidate access address and target access association information corresponding to each candidate access address; when a target resource access request carrying an access domain name is intercepted, determining an update access address from each candidate access address based on the current network state and target access associated information corresponding to the locally stored candidate access address, and acquiring a resource to be accessed from an update resource server corresponding to the update access address based on the target resource access request.
In one embodiment, the candidate access addresses carry access validity periods, and the information updating module is further configured to send an access address updating request carrying an access domain name to the domain name resolution server when the access validity period of at least one candidate access address in the candidate access address set is greater than the current time, so that the domain name resolution server obtains an updated access address set corresponding to the access domain name according to the access address updating request; and acquiring an updating access address set returned by the domain name resolution server, and updating the locally stored candidate access address set based on the updating access address set.
In one embodiment, the candidate access association information includes at least one of historical access information and current access information, the historical access information or the current access information including at least one of access success information, access failure information, last access success time, throughput, click-through rate, access speed, and preset push priority.
The specific limitation of the resource access device can be referred to the limitation of the resource access method hereinabove, and will not be repeated here. The various modules in the resource access device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 13. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external access terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a resource access method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 13 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-described method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (26)

1. A method for accessing a resource, the method being applied to an access terminal, the method comprising:
intercepting a current resource access request and generating a domain name resolution request corresponding to the current resource access request; the domain name resolution request carries an access domain name;
the domain name resolution request is sent to a domain name resolution server, so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request; the set of candidate access addresses includes at least one candidate access address;
acquiring the candidate access address set returned by the domain name resolution server, inputting the current network state and candidate access association information corresponding to each candidate access address into a machine learning model, and outputting the push priority corresponding to each candidate access address by the machine learning model; the current network state refers to a current network connection mode of the access terminal; the machine learning model is used for acquiring target access influence factors corresponding to candidate access association information based on the current network state, determining push scores corresponding to the candidate access addresses according to the candidate access association information and the corresponding target access influence factors, and determining push priorities corresponding to the candidate access addresses based on the push scores corresponding to the candidate access addresses; the current network state refers to a current network connection mode of the access terminal, and the candidate access association information is acquired by the access terminal in the process of accessing a resource server corresponding to a candidate access address; the machine learning model is obtained by training based on reference access association information and reference push priority corresponding to reference access addresses in different network states, model parameters of the machine learning model comprise target access influence factors corresponding to network states respectively, and the reference access addresses are access addresses corresponding to reference access resources;
Determining a target access address from the candidate access address set according to the push priority;
and acquiring the corresponding resource to be accessed from the target resource server corresponding to the target access address based on the current resource access request.
2. The method according to claim 1, wherein the intercepting the current resource access request and generating the domain name resolution request corresponding to the current resource access request include:
acquiring the access domain name from the current resource access request;
acquiring a network address corresponding to the domain name resolution server;
and modifying the current resource access request based on the position of the access domain name in the current resource access request and the network address to obtain the domain name resolution request.
3. The method of claim 1, wherein the domain name resolution server comprises an httpDNS server and a localDNS server, wherein the sending the domain name resolution request to the domain name resolution server to enable the domain name resolution server to obtain the set of candidate access addresses corresponding to the access domain name according to the domain name resolution request comprises:
sending the domain name resolution request to the httpDNS server so that the httpDNS server obtains the candidate access address set according to the domain name resolution request;
And when the candidate access address set returned by the httpDNS server is not received, sending the domain name resolution request to the localDNS server, so that the localDNS server obtains the candidate access address set according to the domain name resolution request.
4. The method according to claim 1, wherein the sending the domain name resolution request to a domain name resolution server, so that the domain name resolution server obtains the candidate access address set corresponding to the access domain name according to the domain name resolution request, includes:
the domain name resolution server obtains a plurality of initial access addresses corresponding to the access domain name according to the domain name resolution request;
determining access positions of the resource servers corresponding to the initial access addresses respectively;
taking an initial access address, of which the distance between the access position and a requester position corresponding to the domain name resolution request is smaller than a preset threshold, as a candidate access address, and combining the candidate access addresses to obtain the candidate access address set; the resource server corresponding to the candidate access address is an edge computing server;
and returning the candidate access address set to a requester corresponding to the domain name resolution request.
5. The method according to claim 1, wherein the push priorities corresponding to the candidate access addresses are determined by sorting push scores corresponding to the candidate access addresses from large to small according to a sorting result;
the determining a target access address from the candidate access address set according to the push priority comprises:
and taking the candidate access address with the highest pushing priority as the target access address.
6. The method according to claim 1, wherein the method further comprises:
acquiring a reference access address set; the reference access address set comprises reference access addresses corresponding to the reference access resources;
acquiring reference push priorities corresponding to each reference access address under each network state respectively;
inputting the reference access association information and the network state corresponding to each reference access address corresponding to the same reference access resource in the same network state into a machine learning model to be trained, and outputting the initial push priority corresponding to each reference access address corresponding to the same reference access resource in the same network state;
and adjusting model parameters of the machine learning model to be trained based on the priority similarity of the corresponding reference push priority and the initial push priority of the same reference access address in the same network state until the model convergence condition is met, so as to obtain the machine learning model which is completed to be trained.
7. The method of claim 6, wherein the obtaining the reference push priority of each reference access address corresponding to each network state comprises:
under different network states, sending a resource access test request to a resource server corresponding to each reference access address, and receiving test resources returned by each resource server according to the resource access test request;
determining access delay time based on the sending time corresponding to the resource access test request and the receiving time corresponding to the test resource, and obtaining the access delay time corresponding to each reference access address in each network state;
and determining the corresponding reference push priority of each reference access address in the same network state based on the time sequence of the corresponding access delay time of each reference access address in the same network state, and obtaining the corresponding reference push priority of each reference access address in each network state.
8. The method according to claim 1, wherein the method further comprises:
acquiring a requester position corresponding to the current resource access request;
and inputting the candidate access association information corresponding to the requester position, the current network state and the candidate access addresses into a machine learning model to obtain the push priority corresponding to the candidate access addresses.
9. The method of claim 1, wherein the obtaining, based on the current resource access request, the corresponding resource to be accessed from the target resource server corresponding to the target access address comprises:
replacing the access domain name in the current resource access request with the target access address to obtain an updated resource access request;
the updated resource access request is sent to the target resource server, so that the target resource server obtains the resource to be accessed according to the updated resource access request;
and acquiring the resource to be accessed returned by the target resource server.
10. The method according to claim 1, wherein after the obtaining, based on the current resource access request, a corresponding resource to be accessed from a target resource server corresponding to the target access address, the method comprises:
updating the candidate access association information corresponding to the target access address according to the current access result of the current resource access request, and updating the candidate access association information corresponding to other candidate access addresses based on the test access result of the resource server corresponding to the other candidate access addresses to obtain the target access association information corresponding to each candidate access address;
Performing association storage on the access domain name, each candidate access address and the target access association information corresponding to each candidate access address;
when a target resource access request carrying the access domain name is intercepted, determining an update access address from the candidate access addresses based on the current network state and target access associated information corresponding to the locally stored candidate access addresses, and acquiring the resource to be accessed from an update resource server corresponding to the update access address based on the target resource access request.
11. The method of claim 10, wherein the candidate access address carries an access expiration date, the method further comprising:
when the access effective period of at least one candidate access address in the candidate access address set is larger than the current time, sending an access address update request carrying the access domain name to the domain name resolution server, so that the domain name resolution server obtains an update access address set corresponding to the access domain name according to the access address update request;
and acquiring the updated access address set returned by the domain name resolution server, and updating the locally stored candidate access address set based on the updated access address set.
12. The method according to any one of claims 1 to 11, wherein the candidate access association information includes at least one of historical access information and current access information, the historical access information or the current access information including at least one of access success information, access failure information, last access success time, throughput, a click-through rate, an access speed, and a preset push priority.
13. A resource access device, the device comprising:
the request interception module is used for intercepting a current resource access request and generating a domain name resolution request corresponding to the current resource access request; the domain name resolution request carries an access domain name;
the domain name resolution module is used for sending the domain name resolution request to a domain name resolution server so that the domain name resolution server obtains a candidate access address set corresponding to the access domain name according to the domain name resolution request; the set of candidate access addresses includes at least one candidate access address;
the target access address determining module is used for acquiring the candidate access address set returned by the domain name resolution server, inputting the current network state and candidate access associated information corresponding to each candidate access address into a machine learning model, and outputting the push priority corresponding to each candidate access address by the machine learning model; the current network state refers to a current network connection mode of the access terminal; the machine learning model is used for acquiring target access influence factors corresponding to candidate access association information based on the current network state, determining push scores corresponding to the candidate access addresses according to the candidate access association information and the corresponding target access influence factors, and determining push priorities corresponding to the candidate access addresses based on the push scores corresponding to the candidate access addresses; the current network state refers to a current network connection mode of the access terminal, and the candidate access association information is acquired by the access terminal in the process of accessing a resource server corresponding to a candidate access address; the machine learning model is obtained by training based on reference access association information and reference push priority corresponding to reference access addresses in different network states, model parameters of the machine learning model comprise target access influence factors corresponding to network states respectively, and the reference access addresses are access addresses corresponding to reference access resources; determining a target access address from the candidate access address set according to the push priority;
And the resource acquisition module is used for acquiring the corresponding resource to be accessed from the target resource server corresponding to the target access address based on the current resource access request.
14. The apparatus of claim 13, wherein the request interception module is further configured to obtain the access domain name from the current resource access request, obtain a network address corresponding to the domain name resolution server, and modify the current resource access request based on a location of the access domain name in the current resource access request and the network address to obtain the domain name resolution request.
15. The apparatus of claim 13, wherein the domain name resolution server comprises an httpDNS server and a localDNS server, the domain name resolution module further to:
sending the domain name resolution request to the httpDNS server so that the httpDNS server obtains the candidate access address set according to the domain name resolution request;
and when the candidate access address set returned by the httpDNS server is not received, sending the domain name resolution request to the localDNS server, so that the localDNS server obtains the candidate access address set according to the domain name resolution request.
16. The apparatus of claim 13, wherein the domain name resolution server is configured to obtain a plurality of initial access addresses corresponding to the access domain name according to the domain name resolution request, determine access locations of resource servers corresponding to the plurality of initial access addresses, and use, as candidate access addresses, initial access addresses having a distance between the access locations and a requester location corresponding to the domain name resolution request that is less than a preset threshold, where each candidate access address is combined to obtain the set of candidate access addresses, and the resource server corresponding to the candidate access address is an edge calculation server, and return the set of candidate access addresses to a requester corresponding to the domain name resolution request.
17. The apparatus of claim 13, wherein the push priorities corresponding to the candidate access addresses are determined by sorting push scores corresponding to the candidate access addresses from large to small, and wherein the target access address determining module is further configured to use a candidate access address with a highest push priority as the target access address.
18. The apparatus of claim 13, wherein the target access address determination module is further configured to:
Acquiring a reference access address set; the reference access address set comprises reference access addresses corresponding to the reference access resources;
acquiring reference push priorities corresponding to each reference access address under each network state respectively;
inputting the reference access association information and the network state corresponding to each reference access address corresponding to the same reference access resource in the same network state into a machine learning model to be trained, and outputting the initial push priority corresponding to each reference access address corresponding to the same reference access resource in the same network state;
and adjusting model parameters of the machine learning model to be trained based on the priority similarity of the corresponding reference push priority and the initial push priority of the same reference access address in the same network state until the model convergence condition is met, so as to obtain the machine learning model which is completed to be trained.
19. The apparatus of claim 18, wherein the target access address determination module is further configured to:
under different network states, sending a resource access test request to a resource server corresponding to each reference access address, and receiving test resources returned by each resource server according to the resource access test request;
Determining access delay time based on the sending time corresponding to the resource access test request and the receiving time corresponding to the test resource, and obtaining the access delay time corresponding to each reference access address in each network state;
and determining the corresponding reference push priority of each reference access address in the same network state based on the time sequence of the corresponding access delay time of each reference access address in the same network state, and obtaining the corresponding reference push priority of each reference access address in each network state.
20. The apparatus of claim 13, wherein the target access address determining module is further configured to obtain a requester location corresponding to the current resource access request, input candidate access association information corresponding to the requester location, the current network state, and the candidate access addresses, respectively, into a machine learning model, and obtain a push priority corresponding to the candidate access addresses.
21. The apparatus of claim 13, wherein the resource obtaining module is further configured to replace the access domain name in the current resource access request with the target access address to obtain an updated resource access request, and send the updated resource access request to the target resource server, so that the target resource server obtains the resource to be accessed according to the updated resource access request, and obtains the resource to be accessed returned by the target resource server.
22. The apparatus of claim 13, wherein the apparatus further comprises:
the information updating module is used for updating the candidate access association information corresponding to the target access address according to the current access result of the current resource access request, and updating the candidate access association information corresponding to other candidate access addresses based on the test access result of the resource server corresponding to the other candidate access addresses to obtain the target access association information corresponding to each candidate access address; performing association storage on the access domain name, each candidate access address and the target access association information corresponding to each candidate access address; when a target resource access request carrying the access domain name is intercepted, determining an update access address from the candidate access addresses based on the current network state and target access associated information corresponding to the locally stored candidate access addresses, and acquiring the resource to be accessed from an update resource server corresponding to the update access address based on the target resource access request.
23. The apparatus of claim 22, wherein the candidate access addresses carry access validity periods, and the information updating module is further configured to send an access address update request carrying the access domain name to the domain name resolution server when the access validity period of at least one candidate access address in the candidate access address sets is greater than a current time, so that the domain name resolution server obtains an updated access address set corresponding to the access domain name according to the access address update request, obtains the updated access address set returned by the domain name resolution server, and updates the locally stored candidate access address set based on the updated access address set.
24. The apparatus of any one of claims 13 to 23, wherein the candidate access association information comprises at least one of historical access information and current access information, the historical access information or the current access information comprising at least one of access success information, access failure information, last access success time, throughput, a click-through rate, an access speed, and a preset push priority.
25. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 12 when the computer program is executed.
26. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 12.
CN202011185065.XA 2020-10-29 2020-10-29 Resource access method, device, computer equipment and storage medium Active CN114513488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011185065.XA CN114513488B (en) 2020-10-29 2020-10-29 Resource access method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011185065.XA CN114513488B (en) 2020-10-29 2020-10-29 Resource access method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114513488A CN114513488A (en) 2022-05-17
CN114513488B true CN114513488B (en) 2023-11-07

Family

ID=81546805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011185065.XA Active CN114513488B (en) 2020-10-29 2020-10-29 Resource access method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114513488B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022278B (en) * 2022-06-02 2024-04-26 上海哔哩哔哩科技有限公司 CDN processing method and system
CN114915504B (en) * 2022-07-18 2022-12-20 广州万协通信息技术有限公司 Security chip initial authentication method and system
CN115277380A (en) * 2022-08-02 2022-11-01 北京有竹居网络技术有限公司 Domain name resolution-based disaster tolerance method, device, system, equipment and storage medium
CN116382809B (en) * 2023-05-26 2023-10-20 荣耀终端有限公司 Application program starting method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051717A (en) * 2012-12-25 2013-04-17 北京小米科技有限责任公司 Method, device and equipment for processing http request
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client
CN106357841A (en) * 2016-11-02 2017-01-25 腾讯科技(深圳)有限公司 Domain name resolution method, device and system
CN109819066A (en) * 2019-01-31 2019-05-28 平安科技(深圳)有限公司 A kind of intelligently parsing field name method and device based on geographical location
WO2019120037A1 (en) * 2017-12-18 2019-06-27 Oppo广东移动通信有限公司 Model construction method, network resource preloading method and apparatus, medium, and terminal
CN111190926A (en) * 2019-11-25 2020-05-22 腾讯云计算(北京)有限责任公司 Resource caching method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051717A (en) * 2012-12-25 2013-04-17 北京小米科技有限责任公司 Method, device and equipment for processing http request
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client
CN106357841A (en) * 2016-11-02 2017-01-25 腾讯科技(深圳)有限公司 Domain name resolution method, device and system
WO2019120037A1 (en) * 2017-12-18 2019-06-27 Oppo广东移动通信有限公司 Model construction method, network resource preloading method and apparatus, medium, and terminal
CN109819066A (en) * 2019-01-31 2019-05-28 平安科技(深圳)有限公司 A kind of intelligently parsing field name method and device based on geographical location
CN111190926A (en) * 2019-11-25 2020-05-22 腾讯云计算(北京)有限责任公司 Resource caching method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114513488A (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN114513488B (en) Resource access method, device, computer equipment and storage medium
Chen et al. End-user mapping: Next generation request routing for content delivery
US10278005B2 (en) Method, apparatus, and system for determining a location of a terminal
CN107395683B (en) Method for selecting return path and server
US10015243B2 (en) Optimized content distribution based on metrics derived from the end user
CN111800458B (en) Dynamic load balancing method and system for Kubernetes container cloud platform
Wang et al. Estimating the performance of hypothetical cloud service deployments: A measurement-based approach
US7428522B1 (en) Real-time search term popularity determination, by search origin geographic location
CN108055302B (en) Picture caching processing method and system and server
CN107786621B (en) User information management method, access processing method, device and system
US10979307B2 (en) Synchronized distributed processing in a communications network
CN103312733B (en) Information processing method and device
AU2016382909A1 (en) Method and device for processing short link, and short link server
CN110162543A (en) A kind of information query method and device
Challenger et al. Efficiently serving dynamic data at highly accessed web sites
CN105337786A (en) Server performance detection method, apparatus and equipment
Heintz et al. Optimizing timeliness and cost in geo-distributed streaming analytics
CN113630329A (en) Load balancing method and system based on user access amount and readable storage medium
AU2020277977A1 (en) Efficient freshness crawl scheduling
CN111556135A (en) Request scheduling method, system and device and electronic equipment
CN103209102A (en) Web quality of service distributed measurement system and method
CN110020129B (en) Click rate correction method, prediction method, device, computing equipment and storage medium
CN112040023A (en) Object access method and device, electronic equipment and machine-readable storage medium
CN113010373A (en) Data monitoring method and device, electronic equipment and storage medium
CN112035559A (en) Thermodynamic diagram display method, server and system

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