CN107395683A - The system of selection of a kind of time source path and server - Google Patents

The system of selection of a kind of time source path and server Download PDF

Info

Publication number
CN107395683A
CN107395683A CN201710492681.1A CN201710492681A CN107395683A CN 107395683 A CN107395683 A CN 107395683A CN 201710492681 A CN201710492681 A CN 201710492681A CN 107395683 A CN107395683 A CN 107395683A
Authority
CN
China
Prior art keywords
address
operator
city
network access
domain name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710492681.1A
Other languages
Chinese (zh)
Other versions
CN107395683B (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

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 the system of selection of a kind of time source path and server.This method includes:According to domain name to be visited, after determining at least one IP address corresponding to domain name to be visited, the operator belonged to according to each IP address and the network access quality in city, and using IP address corresponding to network access quality highest operator and city as time source IP, it is achieved thereby that when having a plurality of operator's circuit, by the network access quality in operator and city selection Hui Yuan IP, rather than simply randomly choose a circuit, ensure that user can have access to resource with most fast speed, effectively increase access efficiency.

Description

The system of selection of a kind of time source path and server
Technical field
The present invention relates to field of computer technology, more particularly to system of selection and the server of a kind of time source path.
Background technology
In order to improve the access of user experience, content providers can all use CDN (content distributing network) technology, from The nearer local construction node in family, for servicing this certain customers nearby.Due to the consideration of each side factor such as cost, content carries Supplier selectively would generally dispose CDN node in subregion.
For example, for the user in Sichuan, content providers A may cover Sichuan electricity using the node of Sichuan telecommunications The user of letter, the user of Sichuan UNICOM is covered using the node of Chongqing UNICOM;Content providers B may use Chongqing telecommunications Node covers the user of Sichuan telecommunications, covers the user of Sichuan UNICOM using the node of Sichuan UNICOM.
The above situation is directed to, it is of the prior art a kind of real if user is covered by telecommunications and UNICOM's two lines road simultaneously Existing mode is that acquiescence uses one kind in telecommunication line and UNICOM's circuit, however, the CDN node due to each content providers Coverage condition is different, only selects a circuit merely, can not utilize the respective advantage of telecommunications and UNICOM's two lines road.
Another implementation is, according to the service condition of telecommunication line and UNICOM's line bandwidth, balancedly to ask user Ask and be distributed in telecommunications, UNICOM's two lines road, if but user ask access be content providers B content, and act on behalf of clothes Business device is assigned it in telecommunication line, then the efficiency that can cause to be carried out Hui Yuan using communication network is significantly less than using UNICOM's net Network carries out Hui Yuan efficiency, so that this mode also can not select optimal circuit exactly to access network.
To sum up, in the prior art, when possessing multiple operator's circuits, optimal circuit can not be selected exactly and is come most Limits improve user's access efficiency.
The content of the invention
The embodiment of the present invention provides system of selection and the server of a kind of time source path, for solving in the prior art can not Go out optimal circuit from multiple operator's route choosings exactly to improve the technical problem of user's access efficiency to greatest extent.
The system of selection of a kind of time source path provided in an embodiment of the present invention, including:The access that client is sent is received to ask Ask, parse the domain name to be visited in the access request;By domain name mapping, obtain corresponding to the domain name to be visited at least One IP address;Each IP address is matched with the record in IP storehouses, knows the fortune of each IP address ownership Seek business and city;The operator of each IP address ownership and the network access quality in city are obtained, obtains the net Network accesses operator and city described in quality highest, and by the IP address corresponding to the operator and city, as Return source IP.
Alternatively, the network access quality of the operator and city for obtaining each IP address ownership, bag Include:The operator belonged to according to each IP address and city, inquire about network access statistic of attribute table, obtain each IP The operator of address attribution and the network access quality in city.
Alternatively, the information acquisition step in the network access statistic of attribute table includes:Obtain home-operator and city At least one IP address on the content server in city;The network detected up to the IP address on each content server is visited Ask quality;According to the network access quality for reaching the IP address on each content server, calculate and record the operation Business and the network access quality in city.
Alternatively, at least one IP address on the content server for obtaining home-operator and city, including obtain Take and the IP address that temperature is more than or equal to heat degree threshold is accessed on the content server.
Alternatively, it is described to detect the network access quality up to the IP address on each content server, including visit The performance number for the IP address surveyed on each content server of local arrival, and the net is calculated according to the performance number Network accesses quality, wherein the performance number includes network delay, packet loss, connects into power, the delay of http head requests.
Alternatively, the network access quality pack detected up to the IP address on each content server contains the cycle Property perform detection.
Alternatively, the method for the network access quality for calculating the operator and city is mean value method.
Alternatively, domain name parsing includes:Wait to visit to described using the domain name resolution server of at least one operator Ask that domain name is parsed, obtain at least one IP address corresponding to the domain name to be visited.
Alternatively, the domain name to be visited is carried out parsing it in the name server using at least one operator Before, in addition to:Determine in local cache in the absence of the effective domain name analysis result of the domain name to be visited.Alternatively, the IP Storehouse is to be preset in local database.
The embodiment of the present invention provides a kind of server, and the server includes:Request analysis module, for receiving client The access request of transmission, and parse the domain name to be visited in the access request;Domain name mapping module, for being asked according to described The domain name to be visited that parsing module parses is sought, obtains at least one IP address corresponding to the domain name to be visited;Matching Module, for each IP address to be matched with the record in IP storehouses, know the operation of each IP address ownership Business and city;Path selection module, operator that each IP address for being known according to the matching module belongs to and City, the network access quality in those described operators and city is obtained, obtain fortune described in the network access quality highest Business and city are sought, and by the IP address corresponding to the operator and city, as returning source IP.
Detecting module, detect and calculate each operator and the network access quality in city, and the network access is provided Quality information gives the path selection module.
Alternatively, the path selection module knows the operator of each IP address ownership and the network in city The method for accessing quality, including:The operator belonged to according to each IP address and city, inquire about network access statistic of attribute Table, obtain the operator of each IP address ownership and the network access quality in city.
Alternatively, the information in the network access statistic of attribute table comes from the detecting module, and the detecting module leads to At least one IP address crossed on the content server for obtaining home-operator and city, and detect up to each content clothes The network access quality for the IP address being engaged on device, further according to the network access for reaching the IP address on each content server Quality, calculate and record the operator and the network access quality in city.
Alternatively, the detecting module is with obtaining at least one IP on the content server in home-operator and city Location, including obtain and the IP address that temperature is more than or equal to heat degree threshold is accessed on the content server.
Alternatively, the detecting module detects the network access matter up to the IP address on each content server Amount, including the local performance number for reaching the IP address on each content server of detection, and calculated according to the performance number Obtain the network access quality, wherein the performance number include network delay, packet loss, connect into power, http head please The delay asked.
Alternatively, the detecting module detects the network access quality up to the IP address on each content server The detection performed comprising periodicity.
Alternatively, domain name parsing module is treated by using the domain name resolution server of at least one operator to described Access domain name to be parsed, obtain at least one IP address corresponding to the domain name to be visited.
Alternatively, the name server of at least one operator is used to the domain to be visited in domain name parsing module Before name is parsed, in addition to:Determine in local cache in the absence of the effective domain name analysis result of the domain name to be visited.
Alternatively, IP storehouses are to be preset in local database.
In the embodiment of the present invention, according to domain name to be visited, after determining at least one IP address corresponding to domain name to be visited, The operator belonged to according to each IP address and the network access quality in city, and by network access quality highest operator and IP address is used as back source IP corresponding to city, it is achieved thereby that when having a plurality of operator's circuit, by operator and the network in city Access quality selection Hui Yuan IP, rather than simply one circuit of random selection, it is ensured that user can be accessed with most fast speed To resource, access efficiency is effectively increased.
Brief description of the drawings
Fig. 1 is a kind of network architecture diagram provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet corresponding to the system of selection for a kind of time source path that the present invention implements offer;
Fig. 3 is a kind of structural representation for server that the present invention implements offer.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into One step it is described in detail, it is clear that the described embodiment only a part of embodiment of the present invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
Fig. 1 is a kind of network architecture diagram provided in an embodiment of the present invention, as shown in figure 1, the network architecture includes service Device 101, the first client 1021, the second client 1022 and the 3rd client 1023.First client 1021, the second client 1022 and the 3rd client 1023 can be communicated by wired or wireless network with the server 101.
Client in the embodiment of the present invention can be the equipment such as mobile phone, computer, tablet personal computer.Server can be with For proxy server, proxy server gets respective request resource from content server and returned to according to client request The server of client.
Based on the network architecture shown in Fig. 1, Fig. 2 is right for the system of selection for a kind of time source path that the present invention implements to provide The schematic flow sheet answered, as shown in Fig. 2 this method includes:
Step 201, the access request that client is sent is received, parses the domain name to be visited in the access request.
Step 202, by domain name mapping, at least one IP address corresponding to the domain name to be visited is obtained.
Step 203, each IP address is matched with the record in IP storehouses, knows each IP address ownership Operator and city.
Step 204, the operator of each IP address ownership and the network access quality in city are obtained, obtains institute State operator and city described in network access quality highest, and by the IP address corresponding to the operator and city, As time source IP.
In the embodiment of the present invention, according to domain name to be visited, after determining at least one IP address corresponding to domain name to be visited, The operator belonged to according to each IP address and the network access quality in city, and by network access quality highest operator and IP address is used as back source IP corresponding to city, it is achieved thereby that when having a plurality of operator's circuit, by operator and the network in city Access quality selection Hui Yuan IP, rather than simply one circuit of random selection, it is ensured that user can be accessed with most fast speed To resource, access efficiency is effectively increased.
In the application, above-mentioned steps 201 can be performed to step 204 by the server 101 shown in Fig. 1.
In step 201, access request message can be http request message, such as http://www.demo.com/.Clothes After business device receives http request message, domain name www.demo.com is parsed.
In step 202, DNS (Domain Name System, the domain name system of at least one operator can be used in server System) domain name to be visited is parsed, obtain at least one IP address corresponding to the domain name to be visited.Specifically, Server can be communicated with the dns server of at least one operator, at least one corresponding to domain name to be visited so as to obtain IP address.For example, operator includes operator 1, operator 2 and operator 3, server can be sent out to the dns server of operator 1 Domain name to be visited is sent, the dns server of operator 1 obtains IP address corresponding to domain name to be visited (such as according to domain name to be visited IP1, IP2) and server is sent to, similarly, the domain name to be visited that the dns server that server receives operator 2 returns is corresponding IP address (such as IP3) and operator 3 dns server return domain name to be visited corresponding to IP address (such as IP4), so as to It can obtain at least one IP address, i.e. IP1, IP2, IP3, IP4 corresponding to domain name to be visited.
After server is to carrying out dns resolution, the dns resolution result of domain name can be cached, in order to further save process resource, In the embodiment of the present invention, after server obtains domain name to be visited, it can first judge domain name to be visited whether is stored with server Dns resolution result, if so, then can be directly according to dns resolution result, with obtaining at least one IP corresponding to domain name to be visited Location, in such cases, server effectively increase treatment effeciency without carrying out dns resolution for domain name to be visited again;If nothing, It then the domain name system DNS of at least one operator can be used to parse the domain name to be visited, obtain the domain to be visited At least one IP address corresponding to name.
Further, in order to ensure the accuracy of the dns resolution result of domain name cached in server, the embodiment of the present invention In can also determine whether caching dns resolution result it is whether expired, specifically, if the caching duration of dns resolution result Not less than setting duration, then it is effective dns resolution result to set dns resolution result.Wherein, setting duration can be by DNS service Device is set, and different domain names can correspond to different setting durations.Server determines to be stored with the DNS of domain name to be visited in server Analysis result, and the dns resolution result be effective dns resolution result after, can be treated directly according to dns resolution result Access at least one IP address corresponding to domain name;Otherwise, the domain name system DNS of at least one operator can be used to wait to visit to described Ask that domain name is parsed, obtain at least one IP address corresponding to the domain name to be visited.
In the embodiment of the present invention, IP storehouses are the database for being preset in server local, may include to have in IP storehouses IP address with And operator and the city of the IP address ownership.IP storehouses can use various ways to store, for example, being entered by the way of tables of data Row storage, the wherein information in IP storehouses may be from the IP information banks in public network IP storehouse and/or operator's offer and server itself obtains Information.As shown in table 1, the content signal included for IP storehouses.
Table 1:The content signal that IP storehouses include
IP address The operator of IP address ownership The city of IP address ownership
IP 1 Operator 1 City 1
IP 2 Operator 1 City 1
IP 3 Operator 2 City 2
…… …… ……
Illustrate it should be noted that content included in table 1 is only part, those skilled in the art can be according to actual need To increase related content on the basis of table 1.
In step 203, server is matched each individual IP address with the record in IP storehouses, can obtain the IP The operator of address attribution and city, for example, the operator of IP1 ownership and city are operator 1, city 1;The fortune of IP2 ownership It is operator 1, city 1 to seek business and city;The operator of IP3 ownership and city are operator 2, city 2;The operation of IP4 ownership Business and city are operator 3, city 1., can be according to it should be noted that if the record matching in IP address and IP storehouses fails Default rule carries out Hui Yuan, and returns to it fails to match information simultaneously, and so that IP storehouses carry out perfect in time, default rule is sets in advance Put.
In the embodiment of the present invention, server can be stored with the network access statistic of attribute table in operator and city, operator It may include the network access quality in operator and city with the network access statistic of attribute table in city, be operator as shown in table 2 Meaning is represented with the network access statistic of attribute in city.
Table 2:The network access statistic of attribute in operator and city represents meaning
By the way that network access quality of the operator in city is stored in table, acquisition can be directly inquired about, without instant Detected so that treatment effeciency is high.
In the embodiment of the present invention, network access statistic of attribute table is periodically to be updated, specific real comprising two kinds Existing mode:Mode one, the record in the network access statistic of attribute table used in current period were the data according to a upper cycle It is calculated, is that data volume is more complete the advantages of this mode;Mode two, the network access quality system used in current period Record in meter table is namely based on what data caused by current period obtained, is that the data of record are more the advantages of this mode Immediately.The method of IP address network access quality on content server can set weight for each performance number, further according to each The network access quality of some IP address is calculated in the weight * concrete numerical value sums of performance number, and weight can be according to the actual requirements Set.
Server can according to IP1, IP2, IP3, IP4 belong to operator and city and table 2, obtain IP1, IP2, IP3, The operator of IP4 ownership and the network access quality in city, and by corresponding to network access quality highest operator and city IP address is used as back source IP.Due to operator 3, the network access quality highest in city 1, therefore can be by home-operator 3 and city IP address corresponding to city 1 is used as back source IP.
Using aforesaid way, operator that the IP address that is gone out according to domain name mapping belongs to city network access quality, Quick select can be integrated and preferably return source IP, if without the city of network quality highest operator, can be advised by acquiescence Then carry out Hui Yuan.
In the embodiment of the present invention, the network access quality in operator and city can obtain in the following manner:Server At least one IP address on the content server in home-operator and city is obtained, is detected up to each content server On IP address network access quality, and according to the network access matter for reaching the IP address on each content server Amount, calculate and record the operator and the network access quality in city.
Wherein, it is described to detect the network access quality up to the IP address on each content server, including detection It is local to reach the performance number of the IP address on each content server, and the network is calculated according to the performance number Quality is accessed, wherein the performance number includes network delay, packet loss, connects into power, the delay of http head requests;This A little design parameters can be chosen according to the actual requirements.The network detected up to the IP address on each content server is visited Ask the detection that quality pack performs containing periodicity.
Specifically, exemplified by determining the network access quality in operator 1 and city 1, if home-operator 1 and city 1 Content server on IP address include IP1, IP2, IP5, IP6 ..., the M address such as IPm.Server can use operation The circuit of business 1 sends probe request message respectively to M address, with detecting the local IP reached on each content server The performance number of location, and according to performance number, the network access quality in operator 1 and city 1 is obtained using mean value method.
In view of server using operator 1 circuit to M address send respectively probe request message can consume it is more Transfer resource, and increase processing load, in the embodiment of the present invention, server can be according to setting cycle statistics home-operator 1 With the access temperature of multiple IP address in city 1, and according to accessing the descending order of temperature to home-operator 1 and city 1 multiple IP address are ranked up, in other words, big by temperature is accessed using K IP address for sorting forward as target ip address In the IP address equal to heat degree threshold as target ip address, using target ip address described in the line sniffing of operator 1, according to Result of detection obtains the network access quality in operator 1 and city 1.Wherein, K value can be by those skilled in the art according to warp Test with actual conditions to set, for example, settable K=10.
The access temperature of IP address can determine according to the requested number accessed of the IP address, specifically, server After parsing IP1, IP2, IP3, IP4 corresponding to domain name to be visited, IP1, IP2, IP3, IP4 access temperature can be added 1 respectively.
In the embodiment of the present invention, the access temperature of IP address can periodically update, and concrete implementation mode has two Kind:Mode one, the hot value of current period refer to for next cycle, mode two, and the hot value of current period is used for currently Cycle.
Using aforesaid way, the side that all IP address of home-operator and city are all detected compared to server For formula, detected by choosing the higher several IP address of access temperature, and visited according to the network of these temperature IP address Ask that Mass Calculation goes out the network access quality in operator and city, detection pressure can be greatly reduced.
Subsequent server can send the resource request message of domain name to be visited according to time source IP to source station, and receive source station and return The response message returned, response message include the resource of domain name to be visited, and then described in the resource of domain name to be visited returned to Client.
Above method flow is directed to, the embodiment of the present invention also provides a kind of server, and the particular content of the server can Implement with reference to the above method.
Fig. 3 is a kind of structural representation of server provided in an embodiment of the present invention, as shown in figure 3, the server bag Include:Request analysis module 301, domain name mapping module 302, matching module 303, path selection module 304 and detecting module 305.
Wherein, request analysis module 301, the access request that client is sent is received, and parsed in the access request Domain name to be visited, and domain name to be visited is sent to domain name mapping module 302;Domain name mapping module 302, according to request analysis The domain name to be visited that module 301 parses, obtains at least one IP address corresponding to domain name to be visited, and be sent to matching Module 303.Matching module 303, each IP address is matched with the record in IP storehouses, know each IP address The operator of ownership and city.Path selection module 304, each IP address known according to the matching module 303 are returned The operator of category and city, the network access quality in those described operators and city is obtained, obtain the network access quality Operator described in highest and city, and by the IP address corresponding to the operator and city, as returning source IP.Detection Module 305, detect and calculate each operator and the network access quality in city, and provide network access quality information to path Selecting module 304.
Specifically, path selection module 304 knows the operator of each IP address ownership and the network in city The method for accessing quality, including:The operator belonged to according to each IP address and city, inquire about network access statistic of attribute Table, obtain the operator of each IP address ownership and the network access quality in city.
Information in network access statistic of attribute table comes from the detecting module 305, and detecting module 305 is belonged to by obtaining At least one IP address on the content server in operator and city, and detect up to the IP on each content server The network access quality of address, further according to the network access quality for reaching the IP address on each content server, calculate And record the network access quality in the operator and city.
Detecting module 305 obtains at least one IP address on the content server in home-operator and city, including obtains Take and the IP address that temperature is more than or equal to heat degree threshold is accessed on the content server.
Detecting module 305 detects the network access quality up to the IP address on each content server, including visits The performance number for the IP address surveyed on each content server of local arrival, and the net is calculated according to the performance number Network accesses quality, wherein the performance number includes network delay, packet loss, connects into power, the delay of http head requests.
The network access quality pack that detecting module 305 is detected up to the IP address on each content server contains the cycle Property perform detection.
Domain name mapping module 302 is by using the domain name resolution server of at least one operator to the domain name to be visited Parsed, obtain at least one IP address corresponding to the domain name to be visited.
The domain name to be visited is solved using the name server of at least one operator in domain name mapping module 302 Before analysis, in addition to:Determine in local cache in the absence of the effective domain name analysis result of the domain name to be visited.IP storehouses are default IP information banks in local, the IP information banks and server that the information in IP storehouses may be from public network IP storehouse and/or operator provides from The information that body obtains
It can be seen from the above:
In the embodiment of the present invention, according to domain name to be visited, after determining at least one IP address corresponding to domain name to be visited, The operator belonged to according to each IP address and the network access quality in city, and by network access quality highest operator and IP address is used as back source IP corresponding to city, it is achieved thereby that when having a plurality of operator's circuit, by operator and the network in city Access quality selection Hui Yuan IP, rather than simply one circuit of random selection, it is ensured that user can be accessed with most fast speed To resource, access efficiency is effectively increased.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method or computer program product. Therefore, the present invention can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Form.Deposited moreover, the present invention can use to can use in one or more computers for wherein including computer usable program code The shape for the computer program product that storage media is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (19)

1. the system of selection of a kind of time source path, it is characterised in that methods described includes:
The access request that client is sent is received, parses the domain name to be visited in the access request;
By domain name mapping, at least one IP address corresponding to the domain name to be visited is obtained;
Each IP address is matched with the record in IP storehouses, knows operator and the city of each IP address ownership City;
The operator of each IP address ownership and the network access quality in city are obtained, obtains the network access matter Operator and city described in highest are measured, and by the IP address corresponding to the operator and city, as with returning source IP Location.
2. according to the method for claim 1, it is characterised in that the operation for obtaining each IP address ownership Business and the network access quality in city, including:
The operator belonged to according to each IP address and city, inquire about network access statistic of attribute table, obtain each described The operator of IP address ownership and the network access quality in city.
3. according to the method for claim 2, it is characterised in that the information acquisition step in the network access statistic of attribute table Suddenly include:
Obtain at least one IP address on the content server in home-operator and city;
Detect the network access quality up to the IP address on each content server;
According to the network access quality for reaching the IP address on each content server, calculate and record the operator and The network access quality in city.
4. according to the method for claim 3, it is characterised in that the content server for obtaining home-operator and city On at least one IP address, including obtain and the IP address that temperature is more than or equal to heat degree threshold accessed on the content server.
5. according to the method for claim 3, it is characterised in that described to detect up to the IP on each content server The network access quality of address, including the local performance number for reaching the IP address on each content server of detection, and root The network access quality is calculated according to the performance number, wherein the performance number includes network delay, packet loss, connected into Power, the delay of http head requests.
6. according to the method for claim 3, it is characterised in that described to detect up to the IP on each content server The detection that the network access quality pack of address performs containing periodicity.
7. according to the method for claim 3, it is characterised in that the network access matter for calculating the operator and city The method of amount is mean value method.
8. according to the method for claim 1, it is characterised in that domain name parsing includes:
The domain name to be visited is parsed using the domain name resolution server of at least one operator, obtained described to be visited At least one IP address corresponding to domain name.
9. according to the method for claim 8, it is characterised in that in the name server using at least one operator Before being parsed to the domain name to be visited, in addition to:
Determine in local cache in the absence of the effective domain name analysis result of the domain name to be visited.
10. according to the method for claim 1, it is characterised in that the IP storehouses are to be preset in local database.
11. a kind of server, it is characterised in that the server includes:
Request analysis module, for receiving the access request of client transmission, and parse to be visited in the access request Domain name;
Domain name mapping module, for the domain name to be visited parsed according to the request analysis module, obtain described waiting to visit Ask at least one IP address corresponding to domain name;
Matching module, for each IP address to be matched with the record in IP storehouses, know that each IP address is returned The operator of category and city;
Path selection module, the operator and city that each IP address for being known according to the matching module belongs to, Obtain the network access quality in those described operators and city, obtain operator described in the network access quality highest and City, and by the IP address corresponding to the operator and city, as returning source IP.
Detecting module, detect and calculate each operator and the network access quality in city, and the network access quality is provided Information gives the path selection module.
12. server according to claim 11, it is characterised in that the path selection module is with knowing each IP The operator of location ownership and the method for the network access quality in city, including:
The operator belonged to according to each IP address and city, inquire about network access statistic of attribute table, obtain each described The operator of IP address ownership and the network access quality in city.
13. server according to claim 12, it is characterised in that the information in the network access statistic of attribute table is come From the detecting module, at least one IP on content server of the detecting module by obtaining home-operator and city Address, and the network access quality up to the IP address on each content server is detected, it is each described further according to reaching The network access quality of IP address on content server, calculate and record the operator and the network access quality in city.
14. server according to claim 13, it is characterised in that the detecting module obtains home-operator and city Content server at least one IP address, including obtain and temperature is accessed on the content server be more than or equal to temperature threshold The IP address of value.
15. server according to claim 13, it is characterised in that the detecting module is detected up to each content The network access quality of IP address on server, including detection locally reach the IP address on each content server Performance number, and the network access quality is calculated according to the performance number, wherein the performance number includes network delay, lost Bag rate, connect into power, the delay of http head requests.
16. server according to claim 13, it is characterised in that the detecting module is detected up to each content The detection that the network access quality pack of IP address on server performs containing periodicity.
17. server according to claim 11, it is characterised in that domain name parsing module is by using at least one The domain name resolution server of operator parses to the domain name to be visited, obtains at least one corresponding to the domain name to be visited Individual IP address.
18. server according to claim 17, it is characterised in that use at least one fortune in domain name parsing module Before the name server of battalion business parses to the domain name to be visited, in addition to:
Determine in local cache in the absence of the effective domain name analysis result of the domain name to be visited.
19. server according to claim 11, it is characterised in that IP storehouses are to be preset in local database.
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 true CN107395683A (en) 2017-11-24
CN107395683B 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)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108306971A (en) * 2018-02-02 2018-07-20 网宿科技股份有限公司 A kind of method and system of the acquisition request of transmission data resource
CN108390955A (en) * 2018-05-09 2018-08-10 网宿科技股份有限公司 Domain Name acquisition method, Website access method and server
CN108900547A (en) * 2018-08-14 2018-11-27 北京知道创宇信息技术有限公司 Return operated control method and device
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
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
CN110138660A (en) * 2019-06-06 2019-08-16 杭州商湾网络科技有限公司 A kind of multiple exit route selection method
CN110875941A (en) * 2018-09-03 2020-03-10 阿里巴巴集团控股有限公司 Source station access flow adjusting method and device, electronic device and storage device
CN110896365A (en) * 2019-12-20 2020-03-20 网宿科技股份有限公司 Traffic scheduling method in network node, server and storage medium
CN111181782A (en) * 2019-12-24 2020-05-19 新浪网技术(中国)有限公司 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
CN111447282A (en) * 2020-03-31 2020-07-24 北京百度网讯科技有限公司 Method and apparatus for determining transmission path
CN112019644A (en) * 2019-05-29 2020-12-01 贵州白山云科技股份有限公司 Method, system, medium and equipment for determining attribution information of IP address
CN112311829A (en) * 2019-07-31 2021-02-02 贵州白山云科技股份有限公司 Method, device, medium and equipment for scheduling access request
CN112804555A (en) * 2021-04-08 2021-05-14 北京新唐思创教育科技有限公司 Line scheduling method, system, electronic device and computer storage medium
CN112822088A (en) * 2020-12-31 2021-05-18 山石网科通信技术股份有限公司 Network connection method and device, electronic equipment, processor and storage medium
CN112883072A (en) * 2021-03-10 2021-06-01 哈尔滨工业大学(威海) Domain name country controllability assessment method based on network service provider country label
CN113037869A (en) * 2021-04-14 2021-06-25 北京百度网讯科技有限公司 Method and apparatus for back-sourcing of content distribution network system
CN113301628A (en) * 2021-04-19 2021-08-24 深圳哇哇鱼网络科技有限公司 Multi-line dynamic optimization method and system for terminal mobile network
CN114650295A (en) * 2022-03-29 2022-06-21 北京有竹居网络技术有限公司 Quality scheduling method, quality scheduling device, quality scheduling medium and electronic equipment

Citations (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
CN101808034A (en) * 2010-03-16 2010-08-18 杭州华三通信技术有限公司 Method and device for routing management
CN102130820A (en) * 2010-01-14 2011-07-20 深圳市深信服电子科技有限公司 Network service access method and access gateway equipment
CN102196060A (en) * 2011-06-15 2011-09-21 北京蓝汛通信技术有限责任公司 Method and system for selecting source station by Cache server
CN103825975A (en) * 2014-02-26 2014-05-28 北京太阳庄科技有限公司 Cdn node distribution server and system
EP2800343A1 (en) * 2012-03-07 2014-11-05 Huawei Device Co., Ltd. Message processing method, device and system
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client
CN105162900A (en) * 2015-09-25 2015-12-16 中国互联网络信息中心 Multi-node collaborative domain name resolution and caching method and system
CN103037025B (en) * 2012-11-21 2016-03-30 哈尔滨理工大学 Multilink self adaptation dns resolution equipment
CN106230782A (en) * 2016-07-20 2016-12-14 腾讯科技(深圳)有限公司 A kind of information processing method based on content distributing network and device

Patent Citations (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
CN101808034A (en) * 2010-03-16 2010-08-18 杭州华三通信技术有限公司 Method and device for routing management
CN102196060A (en) * 2011-06-15 2011-09-21 北京蓝汛通信技术有限责任公司 Method and system for selecting source station by Cache server
EP2800343A1 (en) * 2012-03-07 2014-11-05 Huawei Device Co., Ltd. Message processing method, device and system
CN103037025B (en) * 2012-11-21 2016-03-30 哈尔滨理工大学 Multilink self adaptation dns resolution equipment
CN103825975A (en) * 2014-02-26 2014-05-28 北京太阳庄科技有限公司 Cdn node distribution server and system
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client
CN105162900A (en) * 2015-09-25 2015-12-16 中国互联网络信息中心 Multi-node collaborative domain name resolution 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

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108306971A (en) * 2018-02-02 2018-07-20 网宿科技股份有限公司 A kind of method and system of the acquisition request of transmission data resource
CN108390955A (en) * 2018-05-09 2018-08-10 网宿科技股份有限公司 Domain Name acquisition method, Website access method and server
WO2019214054A1 (en) * 2018-05-09 2019-11-14 网宿科技股份有限公司 Domain name acquisition method, website access method and server
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
CN108900547A (en) * 2018-08-14 2018-11-27 北京知道创宇信息技术有限公司 Return operated control method and device
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
CN112019644A (en) * 2019-05-29 2020-12-01 贵州白山云科技股份有限公司 Method, system, medium and equipment for determining attribution information of IP address
CN112019644B (en) * 2019-05-29 2022-08-02 贵州白山云科技股份有限公司 Method, system, medium and equipment for determining attribution information of IP address
CN110138660A (en) * 2019-06-06 2019-08-16 杭州商湾网络科技有限公司 A kind of multiple exit route selection method
US20220294759A1 (en) * 2019-07-31 2022-09-15 Guizhou Baishancloud Technology Co., Ltd. Method, apparatus, medium, and device for scheduling access request
CN112311829A (en) * 2019-07-31 2021-02-02 贵州白山云科技股份有限公司 Method, device, medium and equipment for scheduling access request
US11706186B2 (en) * 2019-07-31 2023-07-18 Guizhou Baishancloud Technology Co., Ltd. Method, apparatus, medium, and device for scheduling access request
CN112311829B (en) * 2019-07-31 2022-05-17 贵州白山云科技股份有限公司 Method, device, medium and equipment for scheduling access request
CN114172961A (en) * 2019-07-31 2022-03-11 贵州白山云科技股份有限公司 Method, device, medium and equipment for scheduling access request
CN110896365A (en) * 2019-12-20 2020-03-20 网宿科技股份有限公司 Traffic scheduling method in network node, server and storage medium
CN111181782B (en) * 2019-12-24 2022-09-16 新浪网技术(中国)有限公司 Return source processing method and device
CN111181782A (en) * 2019-12-24 2020-05-19 新浪网技术(中国)有限公司 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
CN111447282A (en) * 2020-03-31 2020-07-24 北京百度网讯科技有限公司 Method and apparatus for determining transmission path
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
CN112822088A (en) * 2020-12-31 2021-05-18 山石网科通信技术股份有限公司 Network connection method and device, electronic equipment, processor and storage medium
CN112883072A (en) * 2021-03-10 2021-06-01 哈尔滨工业大学(威海) 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
CN112804555A (en) * 2021-04-08 2021-05-14 北京新唐思创教育科技有限公司 Line scheduling method, system, electronic device and computer storage medium
CN113037869A (en) * 2021-04-14 2021-06-25 北京百度网讯科技有限公司 Method and apparatus for back-sourcing of content distribution network system
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
CN113301628A (en) * 2021-04-19 2021-08-24 深圳哇哇鱼网络科技有限公司 Multi-line dynamic optimization method and system for terminal mobile network
CN114650295A (en) * 2022-03-29 2022-06-21 北京有竹居网络技术有限公司 Quality scheduling method, quality scheduling device, quality scheduling medium and electronic equipment
CN114650295B (en) * 2022-03-29 2023-12-05 北京有竹居网络技术有限公司 CDN quality scheduling method and device, medium and electronic equipment

Also Published As

Publication number Publication date
CN107395683B (en) 2021-06-04

Similar Documents

Publication Publication Date Title
CN107395683A (en) The system of selection of a kind of time source path and server
CN101616079B (en) NAT outlet link load balancing method and device of DNS request message
CN103716251B (en) For the load-balancing method and equipment of content distributing network
CN104954401B (en) traffic scheduling method and device
CN106067890B (en) A kind of domain name analytic method, apparatus and system
CN104980478B (en) Sharing method, equipment and system are cached in content distributing network
CN105337786B (en) A kind of server performance detection method, device and equipment
CN103167044B (en) The method of the intelligently parsing of domain name system DNS, testing device and system
CN108494891A (en) A kind of domain name analytic method, server and system
CN108292243A (en) State aware load balance
US20120054266A1 (en) Optimized Content Distribution Based on Metrics Derived from the End User
CN103036977B (en) Business pushing method and pushing system based on content distribution network
CN101764855A (en) Method, device and system for providing domain name resolution services
CN100563214C (en) A kind of method and system that improve accesses network resource speed
CN101501669A (en) Domain name resolution resource allocation
CN103825919B (en) A kind of method, the apparatus and system of data cached resource
CN103312716B (en) A kind of method and system accessing internet information
CN106534392A (en) Positioning information acquiring method, positioning method and apparatus
CN103678311B (en) Web access method and system, crawl Routing Service device based on transfer mode
CN107342913B (en) Detection method and device for CDN node
CN109040243A (en) A kind of message processing method and device
CN108881516A (en) A kind of method and apparatus for dispatching more CDN service systems
CN105959358A (en) CDN server and method of CDN server of caching data
CN104933069A (en) Method and system for analyzing web browsing statistics of desktop terminal
US20180288612A1 (en) User equipment and method for protection of user privacy in communication networks

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