CN105933437A - Server recommending method and device - Google Patents

Server recommending method and device Download PDF

Info

Publication number
CN105933437A
CN105933437A CN201610424436.2A CN201610424436A CN105933437A CN 105933437 A CN105933437 A CN 105933437A CN 201610424436 A CN201610424436 A CN 201610424436A CN 105933437 A CN105933437 A CN 105933437A
Authority
CN
China
Prior art keywords
address
numeric
addresses
server
numeral
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.)
Pending
Application number
CN201610424436.2A
Other languages
Chinese (zh)
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.)
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610424436.2A priority Critical patent/CN105933437A/en
Publication of CN105933437A publication Critical patent/CN105933437A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a server recommending method and device, and relates to the technical field of the Internet. The method comprises the steps of receiving a server recommending request, wherein the server recommending request includes a user IP address; searching a digital IP address matched with the user IP address and a corresponding server identifier in a preset digital IP address database by a dichotomy, wherein the preset digital IP address database comprises the digital IP addresses which are arranged according to a number sequence, and the corresponding server identifiers; and sending the server identifier corresponding to the digital IP address matched with the user IP address. According to the server recommending method and device provided by the embodiment of the invention, the digital IP address matched with the user IP address and the corresponding server identifier are searched in the preset IP address database by the dichotomy, so that a user selects the server corresponding to the server identifier, and the problem that the calculation amount is huge due to traversal of the IP database is avoided.

Description

Server recommends method and device
Technical field
The present embodiments relate to Internet technical field, particularly relate to a kind of server and recommend method and dress Put.
Background technology
Virtual network operator is numerous at present, and each Virtual network operator provides diversified network service, leads Cause current network conditions is complicated.For promoting Consumer's Experience, when user needs by subscriber equipment and network When server sets up communication connection, subscriber equipment sends the request of recommendation server to preset service device, The request of described recommendation server includes that IP address, described preset service device receive user and set The user comprised in the request of the recommendation server that preparation is sent, and the request according to described recommendation server IP address the webserver is screened, the suitable webserver is recommended subscriber equipment To promote message transmission rate.
Existing server recommends method to include: set up IP address database, described IP address database Including the recommendation server mark that IP address and described IP address are corresponding;Obtain IP address;Logical Cross the mode of traversal IP database, find and the IP address and corresponding of IP address coupling Recommendation server identifies;Recommendation server mark is sent to user.
During realizing the present invention, inventor finds that prior art at least exists following defect: existing The server having technology to provide recommends method to need traversal IP database to find and IP address The IP address of coupling and the recommendation server mark of correspondence, amount of calculation is huge, not only wasted resource but also The consuming time.
Summary of the invention
The embodiment of the present invention provides a kind of server to recommend method and device, in order to solve in prior art because of Traversal IP database searches the IP address with IP address coupling and corresponding recommendation server mark Know the problem that the amount of calculation caused is huge.
The embodiment of the present invention provides a kind of server to recommend method, including:
Receiving the request of recommendation server, the request of described recommendation server includes IP address;
Searched in default numeric IP addresses database by dichotomy and mate with described IP address Numeric IP addresses and the server identification of correspondence, described default numeric IP addresses database include by The tactic numeric IP addresses of Digital size and the server identification of correspondence;
Send the server identification corresponding with the numeric IP addresses of described IP address coupling.
The embodiment of the present invention provides a kind of server recommendation apparatus, including:
Receiver module, for receiving the request of recommendation server, the request of described recommendation server includes using IP address, family;
Search module, for being searched in default numeric IP addresses database and described use by dichotomy The numeric IP addresses of IP address, family coupling and the server identification of correspondence, described default numeric IP addresses Database includes by the tactic numeric IP addresses of Digital size and the server identification of correspondence;
Sending module, for sending the service corresponding with the numeric IP addresses of described IP address coupling Device identifies.
The server that the embodiment of the present invention provides recommends method and device, by dichotomy in default numeral IP address is mated with IP address according to lookup in the tactic IP address database of Digital size Numeric IP addresses and the server identification of correspondence, the numeric IP addresses that will mate with described IP address Corresponding server identification is sent to user, makes user select the server corresponding with described server identification, Avoid because of the huge problem of the traversal amount of calculation that causes of IP database, not only saved system resource but also save Lookup time.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under, Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
A kind of server that Fig. 1 provides for the embodiment of the present invention recommends method flow diagram;
The another kind of server that Fig. 2 provides for the embodiment of the present invention recommends method flow diagram;
Fig. 3 a kind of search for what the embodiment of the present invention provided in default numeric IP addresses database and uses The method schematic diagram of the numerical intervals at the numeric IP addresses place of IP address, family coupling;
A kind of server that Fig. 4 provides for the embodiment of the present invention recommends apparatus structure schematic diagram;
The another kind of server that Fig. 5 provides for the embodiment of the present invention recommends apparatus structure schematic diagram.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise The every other embodiment obtained, broadly falls into the scope of protection of the invention.
Embodiment 1
A kind of server that Fig. 1 provides for the embodiment of the present invention recommends method flow diagram, as it is shown in figure 1, Described server recommends method, including:
Step 101: receiving the request of recommendation server, the request of described recommendation server includes User IP Address;
Specifically, user is communicated with server by subscriber equipmenies such as mobile phone, computer, intelligent televisions So that server provide the user user need Internet resources, described Internet resources include download resource, The various resource such as network storage space, online game;
In the present embodiment, when subscriber equipment gets the behaviour that user clicks on or triggers a certain Internet resources of acquisition When making button, sending the request of recommendation server to preset service device, preset service device receives described recommendation The request of server, recommends to be suitably for user with the request according to described recommendation server for subscriber equipment and carries For the server of related network resources, described preset service device includes the request according to described recommendation server Recommend to be adapted to provide for the server of related network resources for subscriber equipment, such as, for carrying out data download The server downloading Resource Server being suitable for recommended by subscriber equipment, for carrying out the subscriber equipment that data are uploaded Recommend the server of the network storage server being suitable for, or be that the user carrying out online game recommends to be suitable for The server of network game server;
Step 102: searched in default numeric IP addresses database and described User IP by dichotomy The numeric IP addresses of address coupling and the server identification of correspondence, described default numeric IP addresses data Storehouse includes by the tactic numeric IP addresses of Digital size and the server identification of correspondence;
Described IP address both can include numeric IP addresses, it is also possible to includes character string IP address, The present invention does not limits;Described server identification can include server address (such as state, province, city) and The information such as server operator;
Embodiments providing the method for building up of a kind of numeric IP addresses database, described method includes: Character string IP address is changed into numeric IP addresses;Set up and store numeric IP addresses, be adapted to provide for phase Close server and the corresponding relation of server identification of Internet resources;
Wherein, described character string IP address is changed into numeric IP addresses, such as, by ip to long Function changes into numeric IP addresses character string IP address, specifically includes:
". " in character string IP address as separator, IP address is divided into 4 sections and is converted into integer, The binary number of each section of correspondence one 8, to each section of weighting, the power of such as first paragraph is 224, The power of second segment be the power of the 216, the 3rd section be 28, the power of final stage be 1;By this value of 4 sections with Respective power adds up after being multiplied again, is numeric IP addresses corresponding to this character string IP address.
Specifically, the embodiment of the present invention can determine by the way of coupling is pre-conditioned and numeral IP ground What location was corresponding is adapted to provide for the server of related network resources, such as, residing for described numeric IP addresses Geographic area and/or for described numeric IP addresses provide network service network operator information, selectively Manage region and/or network operator information and the geographic area of described numeric IP addresses and/or Virtual network operator The server of information matches is as the described server being adapted to provide for related network resources, it is possible to according in advance If recommending weight from currently selecting further as the described server being adapted to provide for related network resources It is adapted to provide for the server of related network resources;Described server identification can include IP address and/or The peculiar mark of the server of related network resources it is adapted to provide for, it is also possible to include fortune described in MAC Address etc. Battalion's mark such as business, area information.
Specifically, the method that dichotomy is i.e. divided into two, in default numeric IP addresses database, each number Word IP address both can be arranged by the order that numeral is descending, it is also possible to by the order that numeral is ascending Arrangement, the present invention does not limits;
As a example by the order arrangement that numeric IP addresses is ascending by numeral, searching numeric IP addresses number During according to the numeric IP addresses mated with IP address in storehouse, first determine whether IP address is numeral IP address, the most directly makes a look up, if it is not, IP address first changes into numeral IP Address, method for transformation can select the method that existing character string IP address turns numeric IP addresses, the present invention Do not limit;Can first choose numeric IP addresses corresponding to the midpoint of numeric IP addresses database as looking into Look for starting point, it is judged that the numeral of the numeric IP addresses that numeral that IP address is corresponding is corresponding with midpoint Magnitude relationship;
As the digital IP that the numeral that IP address is corresponding is corresponding equal to the midpoint of numeric IP addresses database During address digital, determine that numeric IP addresses corresponding to midpoint is the numeral mated with IP address IP address;
As the digital IP that the numeral that IP address is corresponding is corresponding more than the midpoint of numeric IP addresses database During address digital, determine that IP address is positioned at the right side of numeric IP addresses corresponding to midpoint, with number The numeric IP addresses that the midpoint of word IP address database is corresponding is starting point, and numeric IP addresses database is The numeric IP addresses on right side (numeral is maximum) is terminal, redefines binary search starting point, again After determining lookup starting point, continuation dichotomy makes a look up, until finding and IP address pair The numeric IP addresses answered;
When the numeric IP addresses that the numeral of IP address is corresponding less than the midpoint of numeric IP addresses database Digital time, determine that IP address is positioned at the left side of numeric IP addresses corresponding to midpoint, with numeral IP The numeric IP addresses of the leftmost side (numeral is minimum) of address database is starting point, numeric IP addresses data The numeric IP addresses that the midpoint in storehouse is corresponding is terminal, redefines the lookup starting point of dichotomy, the most really After reserving lookup starting point, continuation dichotomy makes a look up, until finding corresponding with IP address Numeric IP addresses;
Step 103: send the server identification corresponding with the numeric IP addresses of described IP address coupling.
The server that the embodiment of the present invention provides recommends method, by dichotomy at default numeric IP addresses According to the tactic IP address database of Digital size is searched the digital IP mated with IP address Address and the server identification of correspondence, by corresponding with the numeric IP addresses that described IP address mates Server identification is sent to user, makes user select the server corresponding with described server identification, it is to avoid The problem that the amount of calculation that causes because of traversal IP database is huge, had not only saved system resource but also had saved and looked into Look for the time.
Embodiment 2
As in figure 2 it is shown, embodiments provide a kind of server to recommend method, including:
Step 201: set up the corresponding relation of character string IP address and numeric IP addresses;
Specifically, character string IP address is changed into numeric IP addresses, such as, by ip to long letter Several character string IP addresses change into numeric IP addresses, specifically include: ". " in character string IP address As separator, IP address being divided into 4 sections and is converted into integer, the two of each section of correspondence one 8 enter Number processed, to each section of weighting, the power of such as first paragraph is 224, the power of second segment is the 216, the 3rd section Power is 28, the power of final stage is 1;Add up again after this value of 4 sections is multiplied with respective power, be The numeric IP addresses that this character string IP address is corresponding;
Set up and store the one-to-one relationship of character string IP address and numeric IP addresses;
Step 202: receiving the request of recommendation server, the request of described recommendation server includes user's word Symbol string IP address;
Specifically, user is communicated with server by subscriber equipmenies such as mobile phone, computer, intelligent televisions So that server provide the user user need Internet resources, described Internet resources include download resource, The various resource such as network storage space, online game;
In the present embodiment, when subscriber equipment gets the behaviour that user clicks on or triggers a certain Internet resources of acquisition When making button, sending the request of recommendation server to preset service device, preset service device receives described recommendation The request of server, recommends to be suitably for user with the request according to described recommendation server for subscriber equipment and carries For the server of related network resources, described preset service device includes the request according to described recommendation server Recommend to be adapted to provide for the server of related network resources for subscriber equipment, such as, for carrying out data download The server downloading Resource Server being suitable for recommended by subscriber equipment, for carrying out the subscriber equipment that data are uploaded Recommend the server of the network storage server being suitable for, or be that the user carrying out online game recommends to be suitable for The server of network game server;
Step 203: determine the numeric IP addresses that described character string IP address is corresponding according to described corresponding relation, In default numeric IP addresses database, the number corresponding with described IP address is searched by dichotomy The server identification of word IP address coupling, described default numeric IP addresses database includes by numeral big Little tactic numeric IP addresses and the server identification of correspondence;
Specifically, the method for building up of described numeric IP addresses database is with reference to above-described embodiment;Described two points Method sees the dichotomy that above-described embodiment provides;
Step 204: send the server identification corresponding with the numeric IP addresses of described IP address coupling.
By setting up the corresponding relation of described character string IP address and numeric IP addresses, it is simple to by character string IP address changes into numeric IP addresses, thus by dichotomy in default numeric IP addresses database Search numeric IP addresses corresponding to character string IP address and the server identification of correspondence, it is to avoid because of traversal The problem that amount of calculation that IP database causes is huge, has not only saved system resource but also save the lookup time.
A kind of form of expression of a kind of IP address database that table 1 provides for prior art;Table 2 is this A kind of form of expression of a kind of numeric IP addresses database that bright embodiment provides;In the embodiment of the present invention, Numeric IP addresses in described numeric IP addresses database includes at least two numerical intervals, same institute State the corresponding identical server identification of the numeric IP addresses in numerical intervals, such as, as shown in table 2, institute State and lay respectively at numerical intervals [0,100] by the tactic numeric IP addresses of Digital size, [150,200], [300,500], [1000,2000], in [5000,8000], the numeral comprised in numeric IP addresses database IP address includes [[0,100], [150,200], [300,500], [1000,2000], [5000,8000]], institute State to be searched in default numeric IP addresses database by dichotomy and mate with described IP address Numeric IP addresses and the server identification of correspondence, including:
Searched in default numeric IP addresses database by dichotomy and mate with described IP address The numerical intervals at numeric IP addresses place and the server identification of correspondence.
Coupling is obtained by searching the numerical intervals at the numeric IP addresses place mated with IP address Server identification corresponding to numeric IP addresses, reduce seeking scope further, improve search efficiency.
A kind of form of expression of a kind of IP address database that table 1 provides for prior art:
A kind of form of expression of a kind of numeric IP addresses database that table 2 provides for the embodiment of the present invention:
Embodiment 3
Fig. 3 a kind of search for what the embodiment of the present invention provided in default numeric IP addresses database and uses The method schematic diagram of the numerical intervals at the numeric IP addresses place of IP address, family coupling, as it is shown on figure 3, Described method includes:
Step 301: by numeral corresponding for described IP address respectively with default numeric IP addresses number The lower limit interval according to the default value in storehouse and higher limit compare;
Specifically, such as, as shown in table 2, in the embodiment of the present invention being positioned at [[0,100], [150,200], [300,500], [1000,2000], [5000,8000]] [300,500] in centre position are that default value is interval, Binary search is started from default value interval;The most described default value interval can root Arranging according to needs, the present invention does not limits;
Step 302: the numeral corresponding when described IP address is interval more than or equal to described default value Lower limit, and during interval less than or equal to described default value higher limit, determine described default value Interval corresponding numeric IP addresses matches with described IP address;
Such as, the numeral that described IP address is corresponding is 400, as shown in table 2, determines described presetting Numeric IP addresses database in the numeric IP addresses mated with described IP address in [300,500] In and server identification corresponding to corresponding [300,500], described server identification include " China, the Inner Mongol, Wuhai City, CHINAUNICOM ";
Step 303: when the upper limit that the numeral that described IP address is corresponding is interval more than described default value During value, continue through dichotomy and search in numeral is more than the numerical intervals in described default value interval, directly To determining that the default value matched with described IP address is interval;
Such as, the numeral that described IP address is corresponding is 1200, as shown in table 2, determines described presetting Numeric IP addresses database in the numeric IP addresses mated with described IP address at numeral ratio [300,500] in big numerical intervals [1000,2000] or [5000,8000] and corresponding [1000,2000] or The server identification that [5000,8000] are corresponding, described server identification include " China, Yunnan Province, Kunming, Great Wall Broadband Network Service Company Limited ", or " U.S. ";
Step 304: when the lower limit that the numeral that described IP address is corresponding is interval less than described default value During value, continue through dichotomy and search in numeral is less than the numerical intervals in described default value interval, directly To determining that the default value matched with described IP address is interval.
Such as, the numeral that described IP address is corresponding is 50, as shown in table 2, determines described default The numeric IP addresses mated with described IP address in numeric IP addresses database is at numeral ratio [300,500] in little numerical intervals [0,100] or [150,200] and corresponding [0,100] or [150,200] is corresponding Server identification, described server identification includes " China, Fujian Province, Fuzhou City, China Telecom ", Or " China, Guangdong Province, Guangzhou, China Telecom ";
By setting up the corresponding relation of numerical intervals and server identification, will be located in the numerical value district in centre position Between as the original position of binary chop, often through once searching, seeking scope just reduces half, this Till process is repeated up to find the numerical intervals containing numeral corresponding to IP address, or until look into Looking for interval i.e. to search failure for sky, lookup time complexity is log2 (N), is greatly saved IP address The lookup time.
Further, when the server that the numeric IP addresses of described and described IP address coupling is corresponding Mark includes two or more, the numeric IP addresses that described transmission is mated with described IP address Corresponding server identification, including: send corresponding with the numeric IP addresses of described IP address coupling The list of server identification.
By sending the list of server identification, the list that client display server identifies can be made, from And make user according to self needing to select suitable server, improve Consumer's Experience.
Embodiment 4
Recommending method for realizing above-mentioned server, the embodiment of the present invention additionally provides a kind of server and recommends dress Putting, a kind of server that Fig. 4 provides for the embodiment of the present invention recommends apparatus structure schematic diagram, such as Fig. 4 institute Showing, described device includes:
Receiver module 10, for receiving the request of recommendation server, the request of described recommendation server includes IP address;
Search module 20, for being searched with described in default numeric IP addresses database by dichotomy The numeric IP addresses of IP address coupling and the server identification of correspondence, described default digital IP ground Location database includes by the tactic numeric IP addresses of Digital size and the server identification of correspondence;
Sending module 30, for sending the clothes corresponding with the numeric IP addresses of described IP address coupling Business device mark.
The server recommendation apparatus that the embodiment of the present invention provides, by dichotomy at default numeric IP addresses According to the tactic IP address database of Digital size is searched the digital IP mated with IP address Address and the server identification of correspondence, by corresponding with the numeric IP addresses that described IP address mates Server identification is sent to user, makes user select the server corresponding with described server identification, it is to avoid The problem that the amount of calculation that causes because of traversal IP database is huge, had not only saved system resource but also had saved and looked into Look for the time.
Embodiment 5
Embodiments provide a kind of server recommendation apparatus, including the receiver module in embodiment 3 10, searching module 20 and sending module 30, further, see Fig. 5, described device also includes:
Conversion module 40, for setting up the corresponding relation of described character string IP address and numeric IP addresses; The numeric IP addresses that described character string IP address is corresponding is determined according to described corresponding relation;
Search module 20, for being searched with described in default numeric IP addresses database by dichotomy The server identification of the numeric IP addresses coupling that IP address is corresponding.
Specifically, the numeric IP addresses in described numeric IP addresses database includes at least two numerical value district Between, the corresponding identical server identification of the numeric IP addresses in same described numerical intervals, search module 20, it is used for:
Searched in default numeric IP addresses database by dichotomy and mate with described IP address The numerical intervals at numeric IP addresses place and the server identification of correspondence.
Further, the lookup module 20 that the embodiment of the present invention provides, it is used for:
Pre-with default numeric IP addresses database respectively by numeral corresponding for described IP address If the lower limit of numerical intervals and higher limit compare;
When the lower limit that the numeral that described IP address is corresponding is interval more than or equal to described default value, And during less than or equal to the higher limit that described default value is interval, determine that described default value interval is corresponding Numeric IP addresses matches with described IP address;
When the numeral that described IP address is corresponding is more than the higher limit in described default value interval, continue Searched in numeral is more than the numerical intervals in described default value interval by dichotomy, until determining and institute State the default value interval that IP address matches;
When the numeral that described IP address is corresponding is less than the lower limit in described default value interval, continue Searched in numeral is less than the numerical intervals in described default value interval by dichotomy, until determining and institute State the default value interval that IP address matches.
Specifically, the server identification that the numeric IP addresses of described and described IP address coupling is corresponding Including two or more, sending module 30, be used for:
Send the list of the server identification corresponding with the numeric IP addresses of described IP address coupling.
The server recommendation apparatus that the embodiment of the present invention provides, by dichotomy at default numeric IP addresses According to the tactic IP address database of Digital size is searched the digital IP mated with IP address Address and the server identification of correspondence, by corresponding with the numeric IP addresses that described IP address mates Server identification is sent to user, makes user select the server corresponding with described server identification, it is to avoid The problem that the amount of calculation that causes because of traversal IP database is huge, had not only saved system resource but also had saved and looked into Look for the time.
Device embodiment described above is only schematically, wherein said illustrates as separating component Unit can be or may not be physically separate, the parts shown as unit can be or Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words Dividing and can embody with the form of software product, this computer software product can be stored in computer can Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a server recommends method, it is characterised in that including:
Receiving the request of recommendation server, the request of described recommendation server includes IP address;
Searched in default numeric IP addresses database by dichotomy and mate with described IP address Numeric IP addresses and the server identification of correspondence, described default numeric IP addresses database include by The tactic numeric IP addresses of Digital size and the server identification of correspondence;
Send the server identification corresponding with the numeric IP addresses of described IP address coupling.
Method the most according to claim 1, it is characterised in that described IP address is character String IP address, described method also includes:
Set up the corresponding relation of described character string IP address and numeric IP addresses;
The numeric IP addresses that described character string IP address is corresponding is determined according to described corresponding relation;
Search corresponding with described IP address in default numeric IP addresses database by dichotomy Numeric IP addresses coupling server identification.
Method the most according to claim 1 and 2, it is characterised in that described numeric IP addresses number At least two numerical intervals, the numeral in same described numerical intervals is included according to the numeric IP addresses in storehouse The corresponding identical server identification in IP address;
Described searched in default numeric IP addresses database by dichotomy with described IP address The numeric IP addresses of coupling and the server identification of correspondence, including:
Searched in default numeric IP addresses database by dichotomy and mate with described IP address The numerical intervals at numeric IP addresses place and the server identification of correspondence.
Method the most according to claim 3, it is characterised in that described by dichotomy default Numeric IP addresses database is searched the numerical value at the numeric IP addresses place mated with described IP address Interval and corresponding server identification, including:
Pre-with default numeric IP addresses database respectively by numeral corresponding for described IP address If the lower limit of numerical intervals and higher limit compare;
When the lower limit that the numeral that described IP address is corresponding is interval more than or equal to described default value, And during less than or equal to the higher limit that described default value is interval, determine that described default value interval is corresponding Numeric IP addresses matches with described IP address;
When the numeral that described IP address is corresponding is more than the higher limit in described default value interval, continue Searched in numeral is more than the numerical intervals in described default value interval by dichotomy, until determining and institute State the default value interval that IP address matches;
When the numeral that described IP address is corresponding is less than the lower limit in described default value interval, continue Searched in numeral is less than the numerical intervals in described default value interval by dichotomy, until determining and institute State the default value interval that IP address matches.
Method the most according to claim 1, it is characterised in that described and described IP address The server identification that the numeric IP addresses of coupling is corresponding includes two or more, and described transmission is with described The server identification corresponding to numeric IP addresses of IP address coupling, including:
Send the list of the server identification corresponding with the numeric IP addresses of described IP address coupling.
6. a server recommendation apparatus, it is characterised in that including:
Receiver module, for receiving the request of recommendation server, the request of described recommendation server includes using IP address, family;
Search module, for being searched in default numeric IP addresses database and described use by dichotomy The numeric IP addresses of IP address, family coupling and the server identification of correspondence, described default numeric IP addresses Database includes by the tactic numeric IP addresses of Digital size and the server identification of correspondence;
Sending module, for sending the service corresponding with the numeric IP addresses of described IP address coupling Device identifies.
Device the most according to claim 6, it is characterised in that also include:
Conversion module, for setting up the corresponding relation of described character string IP address and numeric IP addresses;Root The numeric IP addresses that described character string IP address is corresponding is determined according to described corresponding relation;
Described lookup module, for searching and institute in default numeric IP addresses database by dichotomy State the server identification of numeric IP addresses coupling corresponding to IP address.
8. according to the device described in claim 6 or 7, it is characterised in that described numeric IP addresses number At least two numerical intervals, the numeral in same described numerical intervals is included according to the numeric IP addresses in storehouse The corresponding identical server identification in IP address, described lookup module, it is used for:
Searched in default numeric IP addresses database by dichotomy and mate with described IP address The numerical intervals at numeric IP addresses place and the server identification of correspondence.
Device the most according to claim 8, it is characterised in that described lookup module, is used for:
Pre-with default numeric IP addresses database respectively by numeral corresponding for described IP address If the lower limit of numerical intervals and higher limit compare;
When the lower limit that the numeral that described IP address is corresponding is interval more than or equal to described default value, And during less than or equal to the higher limit that described default value is interval, determine that described default value interval is corresponding Numeric IP addresses matches with described IP address;
When the numeral that described IP address is corresponding is more than the higher limit in described default value interval, continue Searched in numeral is more than the numerical intervals in described default value interval by dichotomy, until determining and institute State the default value interval that IP address matches;
When the numeral that described IP address is corresponding is less than the lower limit in described default value interval, continue Searched in numeral is less than the numerical intervals in described default value interval by dichotomy, until determining and institute State the default value interval that IP address matches.
Device the most according to claim 6, it is characterised in that described and described IP address The server identification that the numeric IP addresses of coupling is corresponding includes two or more, described sending module, For:
Send the list of the server identification corresponding with the numeric IP addresses of described IP address coupling.
CN201610424436.2A 2016-06-15 2016-06-15 Server recommending method and device Pending CN105933437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610424436.2A CN105933437A (en) 2016-06-15 2016-06-15 Server recommending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610424436.2A CN105933437A (en) 2016-06-15 2016-06-15 Server recommending method and device

Publications (1)

Publication Number Publication Date
CN105933437A true CN105933437A (en) 2016-09-07

Family

ID=56830255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610424436.2A Pending CN105933437A (en) 2016-06-15 2016-06-15 Server recommending method and device

Country Status (1)

Country Link
CN (1) CN105933437A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270631A (en) * 2016-12-30 2018-07-10 上海华讯网络系统有限公司 Application system and the associated analysis system of data packet and method in network system
CN109787952A (en) * 2018-11-22 2019-05-21 北京奇艺世纪科技有限公司 A kind of network data access method, device and electronic equipment
CN109802936A (en) * 2018-11-22 2019-05-24 北京奇艺世纪科技有限公司 A kind of network data access method, device and electronic equipment
CN110519009A (en) * 2019-08-05 2019-11-29 视联动力信息技术股份有限公司 A kind of data pack transmission method and device
CN110958302A (en) * 2019-11-04 2020-04-03 广东小天才科技有限公司 File uploading method, user terminal, uploading management server and system
CN112291383A (en) * 2020-10-15 2021-01-29 科大国创云网科技有限公司 IP address allocation method and system
CN112364214A (en) * 2020-12-17 2021-02-12 深圳市芯天下技术有限公司 Numerical value grade-based character string sorting method and device, storage medium and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338155A (en) * 2013-07-01 2013-10-02 安徽中新软件有限公司 High-efficiency filtering method for data packets
CN104539750A (en) * 2014-12-30 2015-04-22 深圳市兰丁科技有限公司 IP locating method and device
CN105635343A (en) * 2016-02-02 2016-06-01 中国互联网络信息中心 IP address list storage and query method applied to DNS query

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338155A (en) * 2013-07-01 2013-10-02 安徽中新软件有限公司 High-efficiency filtering method for data packets
CN104539750A (en) * 2014-12-30 2015-04-22 深圳市兰丁科技有限公司 IP locating method and device
CN105635343A (en) * 2016-02-02 2016-06-01 中国互联网络信息中心 IP address list storage and query method applied to DNS query

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108270631A (en) * 2016-12-30 2018-07-10 上海华讯网络系统有限公司 Application system and the associated analysis system of data packet and method in network system
CN109787952A (en) * 2018-11-22 2019-05-21 北京奇艺世纪科技有限公司 A kind of network data access method, device and electronic equipment
CN109802936A (en) * 2018-11-22 2019-05-24 北京奇艺世纪科技有限公司 A kind of network data access method, device and electronic equipment
CN110519009A (en) * 2019-08-05 2019-11-29 视联动力信息技术股份有限公司 A kind of data pack transmission method and device
CN110958302A (en) * 2019-11-04 2020-04-03 广东小天才科技有限公司 File uploading method, user terminal, uploading management server and system
CN110958302B (en) * 2019-11-04 2022-06-14 广东小天才科技有限公司 File uploading method, user terminal, uploading management server and system
CN112291383A (en) * 2020-10-15 2021-01-29 科大国创云网科技有限公司 IP address allocation method and system
CN112364214A (en) * 2020-12-17 2021-02-12 深圳市芯天下技术有限公司 Numerical value grade-based character string sorting method and device, storage medium and terminal

Similar Documents

Publication Publication Date Title
CN105933437A (en) Server recommending method and device
CN101257670B (en) Method, equipment and system for searching and downloading phone file
CN101764807B (en) Multisource internet resource device and method based on meta search engine
CN109756584B (en) Domain name resolution method, domain name resolution device and computer readable storage medium
CN112512100B (en) Slice priority-based AMF (advanced metering framework) redirection method and newly-added management network element
CN103636263A (en) The obtaining, by a terminal, of information relating to access to a service
CN104408182A (en) Method and device for processing web crawler data on distributed system
CN103945000A (en) Load balance method and load balancer
CN103888792A (en) Method and system for quickly establishing groups or discussion groups
CN110381107B (en) File downloading method and device, computer equipment and storage medium
CN104219162A (en) Grouping load balancing method, equipment and system based on DNS
JP6865763B2 (en) Data processing method and equipment
CN110737663A (en) data storage method, device, equipment and storage medium
CN106790552A (en) A kind of content providing system based on content distributing network
CN111614760A (en) Method and device for balanced distribution access of Internet of things equipment
CN105357334B (en) A kind of storage of the address IPV6 and method for quickly querying based on the division of the address IPV6
CN111314394A (en) Resource publishing method, device, equipment and storage medium of Internet of things
CN108512765A (en) A kind of Web content method of diffusion based on network node distribution Pagerank
CN103780760A (en) Method and device for speed-dial contact grouping management
CN102055776A (en) Special line-connected document transmission system and method
CN105634999A (en) Aging method and device for medium access control address
CN107172129A (en) A kind of server collocation method and device
CN111355653B (en) Instant messaging relationship establishing method and device, storage medium and electronic equipment
CN104537078B (en) A kind of directory index optimization method based on sliding block
CN109525867B (en) Load balancing method and device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160907