CN107395683B - Method for selecting return path and server - Google Patents

Method for selecting return path and server Download PDF

Info

Publication number
CN107395683B
CN107395683B CN201710492681.1A CN201710492681A CN107395683B CN 107395683 B CN107395683 B CN 107395683B CN 201710492681 A CN201710492681 A CN 201710492681A CN 107395683 B CN107395683 B CN 107395683B
Authority
CN
China
Prior art keywords
operator
address
domain name
network access
city
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.)
Expired - Fee Related
Application number
CN201710492681.1A
Other languages
Chinese (zh)
Other versions
CN107395683A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201710492681.1A priority Critical patent/CN107395683B/en
Publication of CN107395683A publication Critical patent/CN107395683A/en
Application granted granted Critical
Publication of CN107395683B publication Critical patent/CN107395683B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements

Landscapes

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

Abstract

The embodiment of the invention discloses a method for selecting a back source path and a server. The method comprises the following steps: after at least one IP address corresponding to the domain name to be accessed is determined according to the domain name to be accessed, the network access quality of an operator and a city to which each IP address belongs is determined, and the IP address corresponding to the operator and the city with the highest network access quality is used as a back-source IP, so that when a plurality of operator lines exist, the back-source IP is selected according to the network access quality of the operator and the city instead of simply and randomly selecting one line, a user is ensured to access resources at the fastest speed, and the access efficiency is effectively improved.

Description

Method for selecting return path and server
Technical Field
The invention relates to the technical field of computers, in particular to a method for selecting a back source path and a server.
Background
In order to improve the access experience of users, content providers use CDN (content delivery network) technology to build nodes in a place close to the users for serving the users nearby. Due to cost considerations, the content provider will typically selectively deploy CDN nodes in partial regions.
For example, for a user in Sichuan, content provider A may use a node in Sichuan telecommunication to cover users in Sichuan telecommunication, and a node in Chongqing Union to cover users in Sichuan Union; content provider B may use the nodes of the Chongqing telecommunication to cover users of Sichuan telecommunication and the nodes of Sichuan Union to cover users of Sichuan Union.
For the above situation, if a user is covered by two lines of telecommunications and communications at the same time, one implementation manner in the prior art is to default to one of the telecommunications line and the communications line, however, because the CDN node coverage conditions of each content provider are different, only one line is simply selected, and the respective advantages of the two lines of telecommunications and communications cannot be utilized.
Another way to implement this is to distribute the user request to both the telecommunication line and the unicom line in a balanced manner according to the usage of the telecommunication line and the bandwidth of the unicom line, however, if the user requests to access the content of the content provider B and the proxy server distributes the content to the telecommunication line, the efficiency of returning the source by using the telecommunication network is significantly less than that of returning the source by using the unicom network, so that this way also cannot accurately select the best line to access the network.
In summary, in the prior art, when a plurality of operator lines are provided, the optimal line cannot be selected accurately to maximize the user access efficiency.
Disclosure of Invention
The embodiment of the invention provides a method for selecting a back source path and a server, which are used for solving the technical problem that the optimal line cannot be accurately selected from a plurality of operator lines to improve the access efficiency of a user to the maximum extent in the prior art.
The method for selecting the back source path provided by the embodiment of the invention comprises the following steps: receiving an access request sent by a client, and analyzing a domain name to be accessed in the access request; obtaining at least one IP address corresponding to the domain name to be accessed through domain name resolution; matching each IP address with records in an IP library to obtain an operator and a city to which each IP address belongs; and acquiring the network access quality of the operator and the city to which each IP address belongs, acquiring the operator and the city with the highest network access quality, and taking the IP address corresponding to the operator and the city as a source-returning IP.
Optionally, the obtaining of the network access quality of the operator and the city to which each IP address belongs includes: and inquiring a network access quality statistical table according to the operator and the city to which each IP address belongs to obtain the network access quality of the operator and the city to which each IP address belongs.
Optionally, the step of obtaining information in the network access quality statistics table includes: acquiring at least one IP address on a content server of a home operator and a city; detecting network access quality to an IP address on each of the content servers; and calculating and recording the network access quality of the operator and the city according to the network access quality of the IP address reaching each content server.
Optionally, the obtaining at least one IP address on the content server of the home operator and the city includes obtaining an IP address on the content server whose access heat is greater than or equal to a heat threshold.
Optionally, the detecting the network access quality of the IP address arriving at each content server includes detecting a performance value of the IP address locally arriving at each content server, and calculating the network access quality according to the performance value, where the performance value includes a network delay, a packet loss rate, a connection success rate, and a http head request delay.
Optionally, said probing of the quality of network access to the IP address on each of said content servers comprises periodically performed probing.
Optionally, the method for calculating the network access quality of the operator and the city is an average value method.
Optionally, the domain name resolution includes: and analyzing the domain name to be accessed by using a domain name analysis server of at least one operator to obtain at least one IP address corresponding to the domain name to be accessed.
Optionally, before the resolving the domain name to be accessed by using the domain name server of the at least one operator, the method further includes: and determining that the effective domain name resolution result of the domain name to be accessed does not exist in the local cache. Optionally, the IP library is a database preset locally.
An embodiment of the present invention provides a server, where the server includes: the request analysis module is used for receiving an access request sent by a client and analyzing a domain name to be accessed in the access request; the domain name resolution module is used for obtaining at least one IP address corresponding to the domain name to be accessed according to the domain name to be accessed which is resolved by the request resolution module; the matching module is used for matching each IP address with records in an IP library to obtain an operator and a city to which each IP address belongs; and the path selection module is used for acquiring the network access quality of the operators and the cities according to the operators and the cities to which the IP addresses belong, which are acquired by the matching module, obtaining the operators and the cities with the highest network access quality, and taking the IP addresses corresponding to the operators and the cities as the source-returning IP.
And the detection module is used for detecting and calculating the network access quality of each operator and each city, and providing the network access quality information to the path selection module.
Optionally, the method for the path selection module to know the network access quality of the operator and the city to which each IP address belongs includes: and inquiring a network access quality statistical table according to the operator and the city to which each IP address belongs to obtain the network access quality of the operator and the city to which each IP address belongs.
Optionally, the information in the network access quality statistical table comes from the detection module, and the detection module detects the network access quality of the IP address reaching each content server by acquiring at least one IP address on the content servers of the home operator and the city, and then calculates and records the network access quality of the operator and the city according to the network access quality of the IP address reaching each content server.
Optionally, the detecting module obtains at least one IP address on a content server of a home operator and a city, including obtaining an IP address on the content server whose access heat is greater than or equal to a heat threshold.
Optionally, the detecting module detects the network access quality of the IP address arriving at each content server, including detecting a performance value of the IP address locally arriving at each content server, and calculating the network access quality according to the performance value, where the performance value includes a network delay, a packet loss rate, a connection success rate, and a http head request delay.
Optionally, the probing module probes the quality of network access to the IP address on each of the content servers comprises periodically performed probing.
Optionally, the domain name resolution module resolves the domain name to be accessed by using a domain name resolution server of at least one operator, so as to obtain at least one IP address corresponding to the domain name to be accessed.
Optionally, before the domain name resolution module uses a domain name server of at least one operator to resolve the domain name to be accessed, the method further includes: and determining that the effective domain name resolution result of the domain name to be accessed does not exist in the local cache.
Optionally, the IP library is a database preset locally.
In the embodiment of the invention, after at least one IP address corresponding to the domain name to be accessed is determined according to the domain name to be accessed, the IP address corresponding to the operator and the city with the highest network access quality is used as the source-returning IP according to the network access quality of the operator and the city to which each IP address belongs, so that the source-returning IP is selected according to the network access quality of the operator and the city instead of simply and randomly selecting one line when a plurality of operator lines exist, a user can access resources at the highest speed, and the access efficiency is effectively improved.
Drawings
Fig. 1 is a diagram of a network architecture according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for selecting a back source path according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a diagram of a network architecture according to an embodiment of the present invention, as shown in fig. 1, the network architecture includes a server 101, a first client 1021, a second client 1022, and a third client 1023. The first client 1021, the second client 1022, and the third client 1023 may communicate with the server 101 through a wired or wireless network.
The client in the embodiment of the invention can be a mobile phone, a computer, a tablet computer and other devices. The server can be a proxy server, and the proxy server acquires corresponding request resources from the content server according to the request of the client and transmits the corresponding request resources back to the server of the client.
Based on the network architecture shown in fig. 1, fig. 2 is a schematic flow chart corresponding to a method for selecting a back source path according to the embodiment of the present invention, and as shown in fig. 2, the method includes:
step 201, receiving an access request sent by a client, and analyzing a domain name to be accessed in the access request.
Step 202, obtaining at least one IP address corresponding to the domain name to be accessed through domain name resolution.
And step 203, matching each IP address with records in an IP library to obtain an operator and a city to which each IP address belongs.
Step 204, obtaining the network access quality of the operator and the city to which each IP address belongs, obtaining the operator and the city with the highest network access quality, and using the IP addresses corresponding to the operator and the city as the source-returning IP.
In the embodiment of the invention, after at least one IP address corresponding to the domain name to be accessed is determined according to the domain name to be accessed, the IP address corresponding to the operator and the city with the highest network access quality is used as the source-returning IP according to the network access quality of the operator and the city to which each IP address belongs, so that the source-returning IP is selected according to the network access quality of the operator and the city instead of simply and randomly selecting one line when a plurality of operator lines exist, a user can access resources at the highest speed, and the access efficiency is effectively improved.
In the present application, the above-described steps 201 to 204 may be performed by the server 101 shown in fig. 1.
In step 201, the access request message may be an http request message, such as http:// www.demo.com/. After receiving the http request message, the server resolves the domain name www.demo.com.
In step 202, the server may use a DNS (Domain Name System) of at least one operator to resolve the Domain Name to be accessed, so as to obtain at least one IP address corresponding to the Domain Name to be accessed. In particular, the server may communicate with a DNS server of at least one operator, thereby obtaining at least one IP address corresponding to the domain name to be accessed. For example, the operator includes operator 1, operator 2, and operator 3, the server may send the domain name to be accessed to the DNS server of operator 1, and the DNS server of operator 1 obtains the IP address (e.g., IP1, IP2) corresponding to the domain name to be accessed according to the domain name to be accessed and sends the obtained IP address to the server, and similarly, the server receives the IP address (e.g., IP3) corresponding to the domain name to be accessed returned by the DNS server of operator 2 and the IP address (e.g., IP4) corresponding to the domain name to be accessed returned by the DNS server of operator 3, so that at least one IP address (e.g., IP1, IP2, IP3, and IP4) corresponding to the domain name to be accessed may be obtained.
After the server performs DNS analysis, the DNS analysis result of the domain name can be cached, and in order to further save processing resources, in the embodiment of the invention, after the server obtains the domain name to be accessed, whether the DNS analysis result of the domain name to be accessed is stored in the server can be judged firstly, if so, at least one IP address corresponding to the domain name to be accessed can be obtained directly according to the DNS analysis result, and under the condition, the server does not need to perform DNS analysis on the domain name to be accessed, so that the processing efficiency is effectively improved; if not, the domain name to be accessed can be analyzed by using a domain name system DNS of at least one operator, so as to obtain at least one IP address corresponding to the domain name to be accessed.
Further, in order to ensure the accuracy of the DNS resolution result of the domain name cached in the server, in the embodiment of the present invention, it may be further determined whether the cached DNS resolution result is expired, specifically, if the caching duration of the DNS resolution result does not exceed the set duration, the DNS resolution result is set as an effective DNS resolution result. The set time length can be set by a DNS server, and different domain names can correspond to different set time lengths. After the server determines that the DNS analysis result of the domain name to be accessed is stored in the server and the DNS analysis result is an effective DNS analysis result, the server can directly obtain at least one IP address corresponding to the domain name to be accessed according to the DNS analysis result; otherwise, the domain name system DNS of at least one operator can be used for analyzing the domain name to be accessed to obtain at least one IP address corresponding to the domain name to be accessed.
In the embodiment of the invention, the IP library is a database preset in the local server, and the IP library can comprise IP addresses, and operators and cities to which the IP addresses belong. The IP library may be stored in various manners, for example, in a manner of data table, wherein the information in the IP library may be from the public network IP library and/or the IP information library provided by the operator and the information obtained by the server itself. As shown in table 1, the contents included in the IP library are illustrated.
Table 1: content profiling included in IP libraries
IP address Operator of IP address attribution Cities to which IP addresses belong
IP 1 Operator 1 City 1
IP 2 Operator 1 City 1
IP 3 Operator 2 City 2
…… …… ……
It should be noted that the contents included in table 1 are only partially schematic, and those skilled in the art may add related contents to table 1 according to actual needs.
In step 203, the server matches each IP address with records in an IP library, and obtains an operator and a city to which the IP address belongs, for example, the operator and the city to which IP1 belongs are operator 1 and city 1; the operator and the city to which the IP2 belongs are operator 1 and city 1; the operator and the city to which the IP3 belongs are operator 2 and city 2; the operator and city to which IP4 belongs are operator 3, city 1. It should be noted that, if the matching between the IP address and the record in the IP library fails, the source return may be performed according to a default rule, and meanwhile, matching failure information is returned for the IP library to be completed in time, where the default rule is preset.
In the embodiment of the present invention, the server may store the network access quality statistics tables of the operator and the city, and the network access quality statistics tables of the operator and the city may include the network access quality of the operator and the city, as shown in table 2, which is indicated by the network access quality statistics tables of the operator and the city.
Table 2: statistical representation of network access quality for operators and cities
Figure BDA0001331863050000071
Figure BDA0001331863050000081
The network access quality of the operator in the city is stored in the table, so that the network access quality can be directly inquired and obtained without instant detection, and the processing efficiency is high.
In the embodiment of the present invention, the network access quality statistical table is periodically updated, and includes two specific implementation manners: the method has the advantages that the data volume is complete; in the second mode, the records in the network access quality statistics table used in the current period are obtained based on the data generated in the current period, which has the advantage that the recorded data are more immediate. The method for the network access quality of the IP address on the content server can be that the weight is set for each performance value, then the network access quality of a certain IP address is calculated according to the sum of the weight and the specific numerical value of each performance value, and the weight can be set according to the actual requirement.
The server can obtain the network access quality of the operators and cities belonging to the IP1, the IP2, the IP3 and the IP4 according to the operators and cities belonging to the IP1, the IP2, the IP3 and the IP4 and the table 2, and takes the IP address corresponding to the operator and the city with the highest network access quality as a source-back IP. Since the network access quality of operator 3 and city 1 is the highest, the IP addresses corresponding to home operator 3 and city 1 can be used as the source-back IP.
By adopting the mode, the preferred back-source IP can be comprehensively and quickly selected according to the network access quality of the city of the operator to which the IP address obtained by domain name resolution belongs, and if the city of the operator with the highest network quality does not exist, the back-source can be carried out according to the default rule.
In the embodiment of the invention, the network access quality of operators and cities can be obtained by the following modes: the server acquires at least one IP address on the content servers of the home operator and the city, detects the network access quality of the IP address reaching each content server, and calculates and records the network access quality of the operator and the city according to the network access quality of the IP address reaching each content server.
Detecting the network access quality of the IP address arriving at each content server, wherein the detecting the network access quality of the IP address arriving at each content server comprises detecting a performance value of the IP address locally arriving at each content server, and calculating the network access quality according to the performance value, wherein the performance value comprises network delay, packet loss rate, connection success rate and http head request delay; the specific parameters can be selected according to actual requirements. Probing the quality of network access to an IP address on each of the content servers comprises periodically performed probing.
Specifically, for example, to determine the network access quality of operator 1 and city 1, it is assumed that the IP addresses on the content servers of home operator 1 and city 1 include M addresses, such as IP1, IP2, IP5, IP6, … …, and IPm. The server can adopt the line of the operator 1 to respectively send the detection request message to the M addresses, detect the performance value of the IP address locally arriving at each content server, and adopt an average value method to obtain the network access quality of the operator 1 and the city 1 according to the performance value.
In consideration of the fact that the server respectively sends the detection request message to the M addresses by adopting the line of the operator 1, which consumes more transmission resources and increases processing load, in the embodiment of the invention, the server can count the access heat of the multiple IP addresses of the home operator 1 and the city 1 according to the set period, sort the multiple IP addresses of the home operator 1 and the city 1 according to the sequence of the access heat from large to small, take the K IP addresses which are sorted at the top as target IP addresses, or take the IP addresses with the access heat greater than or equal to the heat threshold as the target IP addresses, adopt the line of the operator 1 to detect the target IP addresses, and obtain the network access quality of the operator 1 and the city 1 according to the detection result. The value of K may be set by a person skilled in the art according to experience and practical circumstances, for example, K may be set to 10.
The access heat of the IP address can be determined according to the number of times the IP address is requested to be accessed, and specifically, after the server analyzes the IP1, the IP2, the IP3 and the IP4 corresponding to the domain name to be accessed, the server can respectively add 1 to the access heat of the IP1, the IP2, the IP3 and the IP 4.
In the embodiment of the present invention, the access heat of the IP address may be periodically updated, and there are two specific implementation manners: in the first mode, the heat value of the current cycle is used as a reference for the next cycle, and in the second mode, the heat value of the current cycle is used for the current cycle.
Compared with the mode that the server detects all IP addresses of the home operator and the city, the method has the advantages that the detection pressure can be greatly reduced by selecting the IP addresses with higher access heat for detection and calculating the network access quality of the operator and the city according to the network access quality of the IP addresses with the heat.
And then the server can send a resource request message of the domain name to be accessed to the source station according to the back source IP, receive a response message returned by the source station, wherein the response message comprises the resource of the domain name to be accessed, and further return the resource of the domain name to be accessed to the client.
For the above method flow, an embodiment of the present invention further provides a server, and specific contents of the server may be implemented with reference to the above method.
Fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention, and as shown in fig. 3, the server includes: a request resolution module 301, a domain name resolution module 302, a matching module 303, a path selection module 304 and a detection module 305.
The request analysis module 301 receives an access request sent by a client, analyzes a domain name to be accessed in the access request, and sends the domain name to be accessed to the domain name analysis module 302; the domain name resolution module 302 obtains at least one IP address corresponding to the domain name to be accessed according to the domain name to be accessed resolved by the request resolution module 301, and sends the IP address to the matching module 303. And the matching module 303 is used for matching each IP address with records in an IP library to acquire an operator and a city to which each IP address belongs. The path selection module 304 obtains the network access quality of the operators and cities according to the operator and city to which each IP address belongs, which are obtained by the matching module 303, obtains the operator and city with the highest network access quality, and uses the IP address corresponding to the operator and city as a source-returning IP. The detection module 305 detects and calculates the network access quality of each operator and city, and provides the network access quality information to the path selection module 304.
Specifically, the method for the path selection module 304 to obtain the network access quality of the operator and the city to which each IP address belongs includes: and inquiring a network access quality statistical table according to the operator and the city to which each IP address belongs to obtain the network access quality of the operator and the city to which each IP address belongs.
The information in the network access quality statistics table comes from the detection module 305, and the detection module 305 detects the network access quality of the IP address reaching each content server by acquiring at least one IP address on the content servers of the home operator and the city, and then calculates and records the network access quality of the operator and the city according to the network access quality of the IP address reaching each content server.
The detection module 305 obtains at least one IP address on the content server of the home operator and the city, including obtaining IP addresses on the content server with access heat greater than or equal to a heat threshold.
The detecting module 305 detects the network access quality of the IP address arriving at each content server, including detecting a performance value of the IP address locally arriving at each content server, and calculating the network access quality according to the performance value, where the performance value includes network delay, packet loss rate, connection success rate, and http head request delay.
The detection module 305 detects the quality of network access to the IP address on each of the content servers comprises periodically performed detection.
The domain name resolution module 302 resolves the domain name to be accessed by using a domain name resolution server of at least one operator, so as to obtain at least one IP address corresponding to the domain name to be accessed.
Before the domain name resolution module 302 uses the domain name server of at least one operator to resolve the domain name to be accessed, the method further includes: and determining that the effective domain name resolution result of the domain name to be accessed does not exist in the local cache. The IP library is a preset local IP information library, and the information in the IP library can be from a public network IP library and/or an IP information library provided by an operator and information acquired by the server
From the above, it can be seen that:
in the embodiment of the invention, after at least one IP address corresponding to the domain name to be accessed is determined according to the domain name to be accessed, the IP address corresponding to the operator and the city with the highest network access quality is used as the source-returning IP according to the network access quality of the operator and the city to which each IP address belongs, so that the source-returning IP is selected according to the network access quality of the operator and the city instead of simply and randomly selecting one line when a plurality of operator lines exist, a user can access resources at the highest speed, and the access efficiency is effectively improved.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (19)

1. A method for selecting a return path, the method comprising:
receiving an access request sent by a client, and analyzing a domain name to be accessed in the access request;
obtaining at least one IP address corresponding to the domain name to be accessed through domain name resolution;
matching each IP address with records in an IP library to obtain an operator and a city to which each IP address belongs;
obtaining the network access quality of the operator and the city to which each IP address belongs, obtaining the operator and the city with the highest network access quality, and taking the IP address corresponding to the operator and the city as a source-returning IP address;
and sending a resource request message aiming at the domain name to be accessed in the access request to a source station according to the back source IP address, receiving a response message returned by the source station, and returning the request resource in the response message to the client.
2. The method of claim 1, wherein the obtaining the network access quality of the operator and city to which each of the IP addresses belongs comprises:
and inquiring a network access quality statistical table according to the operator and the city to which each IP address belongs to obtain the network access quality of the operator and the city to which each IP address belongs.
3. The method of claim 2, wherein the step of obtaining information in the net access quality statistics table comprises:
acquiring at least one IP address on a content server of a home operator and a city;
detecting network access quality to an IP address on each of the content servers;
and calculating and recording the network access quality of the operator and the city according to the network access quality of the IP address reaching each content server.
4. The method of claim 3, wherein obtaining at least one IP address on a content server of a home operator and a city comprises obtaining IP addresses on the content server with a visit rate greater than or equal to a rate threshold.
5. The method of claim 3, wherein the detecting the network access quality to the IP address on each of the content servers comprises detecting a performance value of the IP address locally arriving on each of the content servers, and calculating the network access quality according to the performance value, wherein the performance value comprises a network latency, a packet loss rate, a connection success rate, and a latency of an http head request.
6. The method of claim 3, wherein the probing the quality of network access to the IP address on each of the content servers comprises periodically performed probing.
7. The method of claim 3, wherein the method for calculating the network access quality of the operator and the city is an average method.
8. The method of claim 1, wherein the domain name resolution comprises:
and analyzing the domain name to be accessed by using a domain name analysis server of at least one operator to obtain at least one IP address corresponding to the domain name to be accessed.
9. The method according to claim 8, further comprising, before the resolving the domain name to be accessed using the domain name server of the at least one operator:
and determining that the effective domain name resolution result of the domain name to be accessed does not exist in the local cache.
10. The method of claim 1, wherein the IP library is a database that is pre-set locally.
11. A server, characterized in that the server comprises:
the request analysis module is used for receiving an access request sent by a client and analyzing a domain name to be accessed in the access request;
the domain name resolution module is used for obtaining at least one IP address corresponding to the domain name to be accessed according to the domain name to be accessed which is resolved by the request resolution module;
the matching module is used for matching each IP address with records in an IP library to obtain an operator and a city to which each IP address belongs;
the path selection module is used for acquiring the network access quality of the operators and cities according to the operators and cities to which the IP addresses belong, which are acquired by the matching module, obtaining the operators and cities with the highest network access quality, taking the IP addresses corresponding to the operators and cities as source return IP, sending a resource request message aiming at the domain name to be accessed in the access request to a source station according to the source return IP addresses, receiving a response message returned by the source station, and returning the request resource in the response message to the client;
and the detection module is used for detecting and calculating the network access quality of each operator and each city, and providing the network access quality information to the path selection module.
12. The server according to claim 11, wherein the method for the path selection module to know the network access quality of the operator and city to which each IP address belongs comprises:
and inquiring a network access quality statistical table according to the operator and the city to which each IP address belongs to obtain the network access quality of the operator and the city to which each IP address belongs.
13. The server according to claim 12, wherein the information in the network access quality statistics table is from the detection module, and the detection module calculates and records the network access quality of the operator and the city according to the network access quality of the IP address arriving at each content server by acquiring at least one IP address of the content server of the home operator and the city and detecting the network access quality of the IP address arriving at each content server.
14. The server according to claim 13, wherein the probing module obtains at least one IP address on a content server of a home operator and a city, including obtaining IP addresses on the content server with a visit rate greater than or equal to a rate threshold.
15. The server of claim 13, wherein the detecting module detects the network access quality of the IP address arriving at each of the content servers, and comprises detecting a performance value of the IP address locally arriving at each of the content servers, and calculating the network access quality according to the performance value, wherein the performance value includes a network latency, a packet loss rate, a connection success rate, and a latency of an http head request.
16. The server according to claim 13, wherein the probing module probes network access quality to an IP address on each of the content servers comprises periodically performed probing.
17. The server according to claim 11, wherein the domain name resolution module obtains the at least one IP address corresponding to the domain name to be accessed by using a domain name resolution server of at least one operator to resolve the domain name to be accessed.
18. The server according to claim 17, wherein before the domain name resolution module uses a domain name server of at least one operator to resolve the domain name to be accessed, the server further comprises:
and determining that the effective domain name resolution result of the domain name to be accessed does not exist in the local cache.
19. The server according to claim 11, wherein the IP library is a database preset locally.
CN201710492681.1A 2017-06-26 2017-06-26 Method for selecting return path and server Expired - Fee Related CN107395683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710492681.1A CN107395683B (en) 2017-06-26 2017-06-26 Method for selecting return path and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710492681.1A CN107395683B (en) 2017-06-26 2017-06-26 Method for selecting return path and server

Publications (2)

Publication Number Publication Date
CN107395683A CN107395683A (en) 2017-11-24
CN107395683B true CN107395683B (en) 2021-06-04

Family

ID=60332559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710492681.1A Expired - Fee Related CN107395683B (en) 2017-06-26 2017-06-26 Method for selecting return path and server

Country Status (1)

Country Link
CN (1) CN107395683B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108306971B (en) * 2018-02-02 2020-06-23 网宿科技股份有限公司 Method and system for sending acquisition request of data resource
CN108390955B (en) * 2018-05-09 2021-06-04 网宿科技股份有限公司 Domain name acquisition method, website access method and server
CN108933733A (en) * 2018-07-10 2018-12-04 中国联合网络通信集团有限公司 Determination method, apparatus, equipment and the readable storage medium storing program for executing of communication path between gateway
CN108900547B (en) * 2018-08-14 2021-06-08 北京知道创宇信息技术股份有限公司 Source returning control method and device
CN110875941A (en) * 2018-09-03 2020-03-10 阿里巴巴集团控股有限公司 Source station access flow adjusting method and device, electronic device and storage device
CN109842693A (en) * 2019-03-19 2019-06-04 广州品唯软件有限公司 The direct-connected method, apparatus of IP, computer readable storage medium and system
CN110099131A (en) * 2019-05-17 2019-08-06 网宿科技股份有限公司 A kind of domain name analytic method and device
CN112019644B (en) * 2019-05-29 2022-08-02 贵州白山云科技股份有限公司 Method, system, medium and equipment for determining attribution information of IP address
CN110138660B (en) * 2019-06-06 2020-03-03 杭州商湾网络科技有限公司 Multi-outlet routing method
CN112311829B (en) * 2019-07-31 2022-05-17 贵州白山云科技股份有限公司 Method, device, medium and equipment for scheduling access request
CN110896365B (en) * 2019-12-20 2022-09-02 网宿科技股份有限公司 Traffic scheduling method in network node, server and storage medium
CN111181782B (en) * 2019-12-24 2022-09-16 新浪网技术(中国)有限公司 Return source processing method and device
CN111314500A (en) * 2020-02-19 2020-06-19 深圳前海微众银行股份有限公司 Method and device for determining access address
CN111371914A (en) * 2020-02-25 2020-07-03 网宿科技股份有限公司 IP library generation method, domain name resolution method, electronic device and readable storage medium
CN111447282B (en) * 2020-03-31 2022-06-07 北京百度网讯科技有限公司 Method and device for determining transmission path
CN112822088B (en) * 2020-12-31 2022-08-26 山石网科通信技术股份有限公司 Network connection method and device, electronic equipment, processor and storage medium
CN112883072B (en) * 2021-03-10 2022-11-25 哈尔滨工业大学(威海) Domain name country controllability assessment method based on network service provider country label
CN112804555B (en) * 2021-04-08 2021-07-09 北京新唐思创教育科技有限公司 Line scheduling method, system, electronic device and computer storage medium
CN113037869B (en) * 2021-04-14 2022-09-30 北京百度网讯科技有限公司 Method and apparatus for back-sourcing of content distribution network system
CN113301628B (en) * 2021-04-19 2022-08-16 深圳哇哇鱼网络科技有限公司 Multi-line dynamic optimization method and system for terminal mobile network
CN114650295B (en) * 2022-03-29 2023-12-05 北京有竹居网络技术有限公司 CDN quality scheduling method and device, medium and electronic equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
CN102130820A (en) * 2010-01-14 2011-07-20 深圳市深信服电子科技有限公司 Network service access method and access gateway equipment
CN101808034B (en) * 2010-03-16 2012-07-04 杭州华三通信技术有限公司 Method and device for routing management
CN102196060A (en) * 2011-06-15 2011-09-21 北京蓝汛通信技术有限责任公司 Method and system for selecting source station by Cache server
CN102572014B (en) * 2012-03-07 2015-12-02 华为终端有限公司 Message treatment method, device and system
CN103037025B (en) * 2012-11-21 2016-03-30 哈尔滨理工大学 Multilink self adaptation dns resolution equipment
CN103825975B (en) * 2014-02-26 2018-03-13 北京六间房科技有限公司 Cdn node distribution server and system
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client
CN105162900B (en) * 2015-09-25 2019-02-15 中国互联网络信息中心 A kind of domain name mapping of multi-node collaboration and caching method and system
CN106230782A (en) * 2016-07-20 2016-12-14 腾讯科技(深圳)有限公司 A kind of information processing method based on content distributing network and device

Also Published As

Publication number Publication date
CN107395683A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN107395683B (en) Method for selecting return path and server
US11461402B2 (en) Routing based request correlation
US11811657B2 (en) Updating routing information based on client location
US20230254363A1 (en) Point of presence management in request routing
KR101379864B1 (en) Request routing using network computing components
US8065417B1 (en) Service provider registration by a content broker
US8468247B1 (en) Point of presence management in request routing
US10097398B1 (en) Point of presence management in request routing
EP3567881B1 (en) Request routing and updating routing information utilizing client location information
CN108234207B (en) Fault positioning method and device based on Content Delivery Network (CDN)
WO2021057369A1 (en) Httpdns scheduling method and apparatus, medium, and device
CN108964822B (en) Method and system for acquiring network time in parallel by multiple schemes
CN107888714B (en) Method and device for selecting local cache DNS
CN109347766A (en) A kind of method and device of scheduling of resource
CN114520784A (en) Dynamic content accelerated access method and device
CN111262945A (en) Method and device for searching node
CN116389597A (en) Server access method, device, storage medium and electronic equipment
CN118354126A (en) Video file scheduling method, device, storage medium and electronic equipment
Söderlund A multi-CDN request routing strategy

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210604