CN103581299B - Service scheduling method, apparatus and system - Google Patents

Service scheduling method, apparatus and system Download PDF

Info

Publication number
CN103581299B
CN103581299B CN201310464505.9A CN201310464505A CN103581299B CN 103581299 B CN103581299 B CN 103581299B CN 201310464505 A CN201310464505 A CN 201310464505A CN 103581299 B CN103581299 B CN 103581299B
Authority
CN
China
Prior art keywords
terminal
server
geographical position
dns
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310464505.9A
Other languages
Chinese (zh)
Other versions
CN103581299A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310464505.9A priority Critical patent/CN103581299B/en
Publication of CN103581299A publication Critical patent/CN103581299A/en
Application granted granted Critical
Publication of CN103581299B publication Critical patent/CN103581299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of service scheduling method, apparatus and system, belong to Internet technical field.Methods described includes:The service request that receiving terminal is sent;The geographical position of terminal is obtained according to service request;The distributed server matched with the geographical position of terminal is inquired about according to the geographical position of each distributed server prestored;Service response is sent to terminal, service response carries the link information of the distributed server matched with the geographical position of terminal.The method that the present invention is scheduled it on the distributed server matched by the geographical position of terminal;Distant server can be configured to by some or some IP address by solving artificial default scheduling strategy, if occurring above-mentioned error, it is impossible to be adjusted in time, increase network transmission cost, the problem of causing network delay;Reach and improved access speed and accuracy, reduced network transmission cost, reduced the effect of network delay.

Description

Service scheduling method, apparatus and system
Technical field
The present invention relates to Internet technical field, more particularly to a kind of service scheduling method, apparatus and system.
Background technology
With developing rapidly for Internet technology, higher requirement is proposed to the network planning and management.One content clothes Business is often provided by multiple distributed servers, in order to be able to utilize the resource of distributed server nearby, it is necessary to by terminal scheduling Arrive on distributed server nearby.
In the prior art, the mode dispatched based on IP (Internet Protocol, Internet protocol) address, is needed Will in network system artificial preset schedule strategy, different IP address is configured to different servers by operator, in terminal During request service, according to artificial default scheduling strategy, by the server of terminal scheduling to light load.
During the present invention is realized, inventor has found that prior art at least has problems with:Based on IP address , may be by some or some IP, it is necessary to which artificial preset schedule strategy, has artificial planning error in the mode of scheduling To distant server above-mentioned error once occurs for address configuration, can not be adjusted in time again, increases network biography Defeated cost, the problems such as causing network delay.
The content of the invention
There is a situation where artificial planning error to solve artificial default scheduling strategy, may be by some or some IP To distant server above-mentioned error once occurs for address configuration, can not be adjusted in time again, increases network biography Defeated cost, the problem of causing network delay, the embodiments of the invention provide a kind of service scheduling method, apparatus and system.It is described Technical scheme is as follows:
First aspect is there is provided a kind of service scheduling method, and for dispatch server, methods described includes:
The service request that receiving terminal is sent;
The geographical position of the terminal is obtained according to the service request, the geographical position of the terminal is latitude and longitude information Or geodetic coordinates information;
According to the geographical position of each distributed server prestored, by calculating each distributed server and institute State the mode of distance between terminal, the distributed server that the geographical position of inquiry and the terminal matches, wherein, it is described to adjust Degree server is connected with each distributed server, and when there is newly-increased distributed server, the dispatch server root The newly-increased distributed server is scheduled according to the geographical position of the terminal;
Service response is sent to the terminal, the service response carries what is matched with the geographical position of the terminal The link information of the distributed server;
Wherein, recently, and the distributed server is negative in the geographical position of the distributed server and the terminal At least one of load, channel quality and interference conform to a predetermined condition.
It is described that the terminal is obtained according to the service request in the first possible embodiment of first aspect Geographical position, including:
The geographical position of the terminal is obtained from the service request, the geographical position of the terminal is that the terminal is determined Position carries what is sent in the service request behind the geographical position of itself.
It is described that the terminal is obtained according to the service request in second of possible embodiment of first aspect Geographical position, including:
The IP address of the terminal is obtained from the service request;Closed according to the IP address of the terminal in predetermined correspondence Inquire about the geographical position of the terminal in system, the predetermined corresponding relation be IP address section belonging to different IP addresses with differently Manage the corresponding relation between position.
Second with reference to the first possible embodiment or first aspect of first aspect, first aspect is possible Embodiment, in the third possible embodiment, if the service request is DNS request, what the receiving terminal was sent Service request, including:
The DNS request of dns server forwarding is received, the DNS request is that the terminal is sent to the dns server 's;
Service response is sent to the terminal, including:
DNS responses are sent to the dns server, DNS responses are transmitted to the end by the dns server End.
Second aspect includes there is provided a kind of service scheduling method, methods described:
Send service request;
The service response for the service request is received, the service response carries the geographical position phase with terminal The link information for the distributed server matched somebody with somebody;
Wherein, the distributed server is after dispatch server receives the service request, according to the service The geographical position of acquisition request terminal, according to the geographical position of each distributed server prestored, by calculating each The mode of distance between distributed server and the terminal, the distribution matched with the geographical position of the terminal inquired Formula server, the dispatch server is connected with each distributed server, and when there is newly-increased distributed server, institute Dispatch server is stated to be scheduled the newly-increased distributed server according to the geographical position of the terminal, the terminal Geographical position is latitude and longitude information or geodetic coordinates information;
The distributed server and the geographical position of the terminal are nearest, and load, the letter of the distributed server At least one of road quality and interference conform to a predetermined condition.
In the first possible embodiment of second aspect, if the service request carries the geography of the terminal Position, then before the transmission service request, in addition to:
Position the terminal geographical position of itself.
With reference to the first possible embodiment of second aspect or second aspect, in second of possible embodiment In, if the service request is DNS request, the transmission service request, including:
DNS request is sent to dns server, the DNS request is transmitted to the dispatch service by the dns server Device;
The service response received for the service request, including:
The DNS responses that the dns server is sent are received, the DNS responses are described in the dispatch server is sent to Being responded the DNS by the dns server of dns server is transmitted to the terminal.
The third aspect is there is provided a kind of service dispatch device, and applied to dispatch server, described device includes:
Request receiving module, the service request sent for receiving terminal;
Position acquisition module, the geographical position for obtaining the terminal according to the service request, the ground of the terminal It is latitude and longitude information or geodetic coordinates information to manage position;
Server lookup module, for the geographical position according to each distributed server prestored, by calculating The distribution that the geographical position of the mode of distance between each distributed server and the terminal, inquiry and the terminal matches Formula server, wherein, the dispatch server is connected with each distributed server, and when in the presence of newly-increased distributed server When, the dispatch server is scheduled according to the geographical position of the terminal to the newly-increased distributed server;
Sending module is responded, for sending service response to the terminal, the service response is carried and the terminal The link information of the distributed server that matches of geographical position;
Wherein, recently, and the distributed server is negative in the geographical position of the distributed server and the terminal At least one of load, channel quality and interference conform to a predetermined condition.
In the first possible embodiment of the third aspect, the position acquisition module, including:Position acquisition list Member;
The position acquisition unit, the geographical position for obtaining the terminal from the service request, the terminal Geographical position be to carry behind the terminal positioning geographical position of itself to send in the service request.
In second of possible embodiment of the third aspect, the position acquisition module, including:Position enquiring list Member;
The position enquiring unit, the IP address for obtaining the terminal from the service request;According to the end The IP address at end inquires about the geographical position of the terminal in predetermined corresponding relation, and the predetermined corresponding relation is different IP addresses Corresponding relation between affiliated IP address section and diverse geographic location.
Second with reference to the first possible embodiment or the third aspect of the third aspect, the third aspect is possible Embodiment, in the third possible embodiment, if the service request is DNS request,
The request receiving module, the DNS request for receiving dns server forwarding, the DNS request is the terminal It is sent to the dns server;
The response sending module, will be described by the dns server for sending DNS responses to the dns server DNS responses are transmitted to the terminal.
Fourth aspect includes there is provided a kind of service dispatch device, described device:
Request sending module, for sending service request;
Respond receiving module, for receive for the service request service response, the service response carry with The link information for the distributed server that the geographical position of terminal matches;
Wherein, the distributed server is after dispatch server receives the service request, according to the service The geographical position of acquisition request terminal, according to the geographical position of each distributed server prestored, by calculating each The mode of distance between distributed server and the terminal, the distribution matched with the geographical position of the terminal inquired Formula server, the dispatch server is connected with each distributed server, and when there is newly-increased distributed server, institute Dispatch server is stated to be scheduled the newly-increased distributed server according to the geographical position of the terminal, the terminal Geographical position is latitude and longitude information or geodetic coordinates information;
The distributed server and the geographical position of the terminal are nearest, and load, the letter of the distributed server At least one of road quality and interference conform to a predetermined condition.
In the first possible embodiment of fourth aspect, if the service request carries the geography of the terminal Position, then the service dispatch device, in addition to:
Position locating module, for positioning the terminal geographical position of itself.
With reference to the first possible embodiment of fourth aspect or fourth aspect, in second of possible embodiment In, if the service request is DNS request,
The request sending module, for sending DNS request to dns server, by the dns server by the DNS Request is transmitted to the dispatch server;
The response receiving module, for receiving the DNS responses that the dns server is sent, the DNS responses are described Dispatch server is sent to being responded the DNS by the dns server of the dns server and is transmitted to the terminal.
5th aspect is there is provided a kind of server, and the server includes each of the above-mentioned third aspect and the third aspect Plant the device provided in possible embodiment.
6th aspect is there is provided a kind of terminal, and the terminal includes above-mentioned fourth aspect and the various of fourth aspect can Device provided in the embodiment of energy.
7th aspect is there is provided a kind of service dispatch system, and the service dispatch system includes:5th aspect institute as described above The server stated and the as described above terminal described in the 6th aspect.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
The service request sent by receiving terminal;The geographical position of terminal is obtained according to service request;According to depositing in advance The distributed server that the geographical position inquiry of each distributed server of storage and the geographical position of terminal match;To terminal Service response is sent, service response carries the link information of the distributed server matched with the geographical position of terminal.Solution There is artificial planning error in artificial default scheduling strategy of having determined, some or some IP address may be configured to away from From server farther out, and once occur above-mentioned error, can not adaptively be adjusted in time again, increase network transmission into This, the problem of causing network delay;The distributed server matched can be searched according to the geographical position of terminal by having reached, be carried High access speed and accuracy, reduce network transmission cost, reduce the effect of network delay.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of structural representation of implementation environment involved by service scheduling method provided in an embodiment of the present invention;
Fig. 2 is the method flow diagram for the service scheduling method that one embodiment of the invention is provided;
Fig. 3 is the method flow diagram for the service scheduling method that another embodiment of the present invention is provided;
Fig. 4 A are the method flow diagrams for the service scheduling method that another embodiment of the present invention is provided;
Fig. 4 B are the schematic diagrames for the geographical coordinate that another embodiment of the present invention is provided;
Fig. 4 C are the schematic diagrames for the instantiation that another embodiment of the present invention is provided;
Fig. 5 A are the method flow diagrams for the service scheduling method that another embodiment of the present invention is provided;
Fig. 5 B are the schematic diagrames for another instantiation that another embodiment of the present invention is provided;
Fig. 6 is the structural representation for the service dispatch device that one embodiment of the invention is provided;
Fig. 7 is the structural representation for the service dispatch device that another embodiment of the present invention is provided;
Fig. 8 is the structural representation for the service dispatch device that another embodiment of the present invention is provided;
Fig. 9 is the structural representation for the dispatch server that one embodiment of the invention is provided;
Figure 10 is the structural representation for the dispatch server that another embodiment of the present invention is provided;
Figure 11 is the structural representation for the terminal that one embodiment of the invention is provided;
Figure 12 is the structural representation for the terminal that another embodiment of the present invention is provided.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is refer to, a kind of implementation involved by the service scheduling method provided it illustrates each embodiment of the invention The structural representation of environment.The implementation environment include at least one terminal 120, at least one dns server 140, at least one Dispatch server 160 and at least one distributed server 180.
Terminal 120, can be smart mobile phone, tablet personal computer, intelligent television, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio aspect 4) player, pocket computer on knee and desktop computer etc..
Terminal 120 is connected by wireless or cable network with dns server 140.
Dns server 140, can be a server, either by some server groups into server cluster or It is a cloud computing service center.The dns server 140 is made up of Domain Name Resolver and name server, name server Preserve the dns server All hosts in a network the corresponding IP address of domain name and domain name.
Dns server 140 is connected by wireless or cable network with dispatch server 160.
Dispatch server 160, refers to that can be dispatched to terminal 120 can provide when terminal 120 sends request service On the distributed server of service.Dispatch server 160 can be a server, or by some server groups into clothes Business device cluster, or a cloud computing service center.
Dispatch server 160 is connected by wireless or cable network with distributed server 180.
Distributed server 180, can provide the service of such as media services etc for terminal 120.Distributed server 180 are connected by wireless or cable network with terminal 120.
Above-mentioned implementation environment can also be CDN (Content Delivery Network, content distributing network) network, It can be the network using IPv6 (Internet Protocol Version 6, internet protocol version 6) agreement.
Fig. 2 is refer to, the method flow diagram of the service scheduling method provided it illustrates one embodiment of the invention.This reality Apply example and be mainly applied to illustrate in dispatch server as shown in Figure 1 with the service scheduling method.The service dispatch side Method, including:
Step 202, the service request that receiving terminal is sent;
Step 204, the geographical position of terminal is obtained according to service request;
Step 206, the geographical position with terminal is inquired about according to the geographical position of each distributed server prestored The distributed server matched;
Step 208, service response is sent to terminal, service response carries the distribution matched with the geographical position of terminal The link information of formula server.
In summary, the service scheduling method that embodiments of the invention are provided, the service request sent by receiving terminal; The geographical position of terminal is obtained according to service request;According to the geographical position of each distributed server prestored inquiry with The distributed server that the geographical position of terminal matches;Service response is sent to terminal, service response is carried and terminal The link information for the distributed server that geographical position matches.Solve artificial default scheduling strategy and there is artificial planning mistake Situation, may be configured to distant server by mistake by some or some IP address, and once occur above-mentioned error, again It can not in time be adjusted, increase network transmission cost, the problem of causing network delay;Having reached can be according to the ground of terminal The distributed server that reason location lookup matches, improves access speed and accuracy, reduces network transmission cost, reduces The effect of network delay.
Fig. 3 is refer to, the method flow diagram of the service scheduling method provided it illustrates another embodiment of the present invention.This Embodiment is main to be applied to illustrate in terminal as shown in Figure 1 with the service scheduling method.The service scheduling method, bag Include:
Step 302, service request is sent;
Step 304, the service response for service request is received, service response carries the geographical position phase with terminal The link information for the distributed server matched somebody with somebody;
Wherein, distributed server is that after dispatch server receives service request, terminal is obtained according to service request Geographical position, it is being inquired according to the geographical position of each distributed server prestored with terminal geographical position phase The distributed server of matching.
In summary, the service scheduling method that embodiments of the invention are provided, by sending service request;Receive for clothes The service response of business request, service response carries the connection letter of the distributed server matched with the geographical position of terminal Breath;Wherein, distributed server is the geography for obtaining terminal after dispatch server receives service request according to service request Position inquiring to match with terminal geographical position according to the geographical position of each distributed server prestored Distributed server.Solve artificial default scheduling strategy and there is a situation where that artificial planning is slipped up, may be by some or certain A little IP address are configured to distant server, and once occur above-mentioned error, can not in time be adjusted again, increase net Network transmission cost, the problem of causing network delay;The distribution matched can be searched according to the geographical position of terminal by having reached Server, improves access speed and accuracy, reduces network transmission cost, reduces the effect of network delay.
Because the mode that dispatch server obtains the geographical position of terminal has two kinds:The first, terminal obtains the ground of itself Position is managed, and is carried in service request, dispatch server obtains the geographical position of terminal from service request;Second Kind, the IP address of terminal is obtained in the service request that dispatch server is sent from terminal, according to the IP address of terminal at predetermined pair The geographical position of middle lookup terminal should be related to.Therefore, it is described in detail below with two different embodiments.
Fig. 4 A are refer to, the method flow diagram of the service scheduling method provided it illustrates another embodiment of the present invention. The present embodiment is main to be applied to implementation environment as shown in Figure 1 with the service scheduling method, and please from service with dispatch server The mode in the middle geographical position for obtaining terminal is asked to illustrate.The service scheduling method, including:
Step 401, the geographical position of positioning terminal itself.
Terminal positions the geographical position of itself before service request is sent to dispatch server, and the geographical position can be with It is the latitude and longitude information of terminal or the geodetic coordinates information of terminal.Such as, longitude and latitude (39 ° of 15 ' N, 73 ° of 33 ' E), warp Latitude (50 ° of 15 ' S, 80 ° of 33 ' W), or coordinate (x, y).
Step 402, service request is sent;
Terminal sends the geographical position that terminal itself is carried in service request, service request to dispatch server.Scheduling Server is can be by the server on terminal scheduling to the distributed server that can provide service.Require supplementation with explanation It is that, if service request is DNS request, terminal sends service request, including following sub-step:
1st, terminal sends DNS request to dns server;
2nd, DNS request is transmitted to dispatch server by dns server.
Dns server is made up of name server and Domain Name Resolver, and name server preserves the dns server institute The corresponding IP address of domain name and domain name of All hosts in a network, Domain Name Resolver be used to translating domain names into for the domain name pair The IP address answered.
Dns server is after the IP address of dispatch server is inquired, according to the IP address of dispatch server to scheduling Server sends DNS request.
Step 403, the service request that receiving terminal is sent;
The geographical position of terminal is carried in the service request that dispatch server receiving terminal is sent, the service request.
It should be added that, if service request in step 402 is DNS request, dispatched in this step 403 Server receives the DNS request of dns server forwarding, and DNS request is that terminal is sent to dns server.
Step 404, the geographical position of terminal is obtained according to service request;
Dispatch server obtains the geographical position of terminal, namely the clothes that dispatch server is sent from terminal according to service request Obtain the geographical position of terminal in business request, the geographical position of terminal is carried in service behind the geographical position of terminal positioning itself Sent in request.
Such as, if carried in the service request that terminal is sent to dispatch server terminal longitude and latitude (39 ° of 15 ' N, 73 ° 33 ' E), then dispatch server can get the longitude and latitude (39 ° of 15 ' N, 73 ° of 33 ' E) of terminal from the service request.
Step 405, the geographical position with terminal is inquired about according to the geographical position of each distributed server prestored The distributed server matched;
Because the server for providing the terminal with service is distributed, the geographical position terminal thing where distributed server First it is not aware that, therefore, when terminal initiates service request, dispatch server is needed terminal scheduling to the clothes matched with it It is engaged on device, so that terminal receives the service of the distributed server matched with it.
The geographical position of each distributed server is stored in advance on dispatch server, so that dispatch server being capable of root The distributed server matched according to the geographical position inquiry of each distributed server and the geographical position of terminal.
Dispatch server can be only according to the geographical position of terminal and the inquiry of the geographical position of distributed server and terminal The distributed server matched, can be combined with other conditions to inquire about the distributed server matched with terminal.When full During sufficient following condition, distributed server matches with terminal:The geographical position of distributed server and terminal is nearest and accords with Close predetermined condition.
Predetermined condition includes:The load of the distributed server reaches certain pre- less than predetermined threshold, the quality of channel Threshold value and interference are determined less than at least one of certain threshold value.
Such as, such as Fig. 4 B, it is assumed that in rectangular coordinate system, if the geographical position of server and terminal is recently in a distributed manner Example, the coordinate for being distributed formula server P is P (1,1), and distributed server Q coordinate is Q (3,5), distributed server U's Coordinate is U (6,1), and terminal V coordinate is V (3,1), then the distance according to distributed server P and terminal V is calculated is 2 units, distributed server Q and terminal V distance is 4 units, and distributed server U and terminal V distance is 3 lists Position, compares and show that distributed server P and terminal V's is closest.Therefore, dispatch server using distributed server P as The distributed server matched with terminal V.Distributed server can be media server or other types of clothes Business device.
Step 406, service response is sent to terminal;
Dispatch server sends service response to terminal, what the geographical position carried in service response with terminal matched The link information of distributed server.
Link information can be the IP address information or other types of address information of distributed server.
Such as, if dispatch server selection step 405 in coordinate for P (1,1) distributed server P as with terminal phase The distributed server of matching, then carry distributed server P IP address and terminal be sent in service response.
It should be added that, if what is received in step 403 is the DNS request of dns server forwarding, DNS request It is that terminal is sent to dns server, then dispatch server sends DNS responses to dns server in this step 406, by DNS DNS responses are transmitted to terminal by server.The distributed server matched with the geographical position of terminal is carried in DNS responses Link information.
Step 407, the service response for service request is received, service response carries the geographical position phase with terminal The link information for the distributed server matched somebody with somebody;
Terminal receives the service response for service request that dispatch server is sent, and service response is carried and terminal The link information for the distributed server that geographical position matches.Link information can be the IP address letter of distributed server Breath or other types of address information.
It should be added that, if being to be responded DNS by dns server to be transmitted to terminal in a step 406, at this Terminal receives the DNS responses that dns server is sent in step 407, and DNS responses are that dispatch server is sent to dns server DNS responses are transmitted to terminal by dns server.
Step 408, set up and be connected with distributed server according to the link information of the distributed server received.
Terminal obtains the link information of distributed server from the service response for service request received, according to The link information is set up with distributed server and is connected, and terminal can enter row information friendship with distributed server after setting up connection Mutually, distributed server can provide the terminal with service.
Supplementary notes are also needed to, if the geographical position of terminal is changed, such as are moved to from a city Another city.The geographical position of itself that terminal is got can also change, accordingly, the end that dispatch server is got The geographical position at end can also be changed, according to the geographical position after change, and dispatch server, which is searched, to provide service to terminal Distributed server, now, the distributed server of acquisition will may take with original distribution for providing service for terminal Business device is different.
In summary, the service scheduling method that embodiments of the invention are provided, the service request sent by receiving terminal; The geographical position of terminal is obtained according to service request;According to the geographical position of each distributed server prestored inquiry with The distributed server that the geographical position of terminal matches;Service response is sent to terminal, service response is carried and terminal The link information for the distributed server that geographical position matches.Solve artificial default scheduling strategy and there is artificial planning mistake Situation, may be configured to distant server by mistake by some or some IP address, and once occur above-mentioned error, again It can not in time be adjusted, increase network transmission cost, the problem of causing network delay;Having reached can be according to the ground of terminal The distributed server that reason location lookup matches, improves access speed and accuracy, reduces network transmission cost, reduces Network delay, improves the effect of network service quality.
It should be added that, the geographical position of itself is obtained by terminal, and please in service by geographical position carrying In asking, dispatch server can obtain the geographical geographical position of terminal from service request, be searched according to the geographical position of terminal The distributed server matched to the geographical position with terminal, can reach terminal scheduling to the distribution closer to the distance with it On formula server, reach and improved access speed and accuracy, reduced network transmission cost, reduced the effect of network delay Really.
In addition, if terminal there occurs movement, the geographical position of itself that terminal is got can also change, accordingly , the geographical position for the terminal that dispatch server is got can also change, according to the geographical position after change, dispatch service Device is searched can provide the distributed server of service to terminal, reached and adaptively terminal scheduling matches to it in real time Distributed server on effect.
Secondly, scheduled it to by the geographical position of terminal on the distributed server matched, if what is increased newly Distributed server, it is not necessary to programming dispatching strategy again again, dispatch server can also be according to geographical position come to newly-increased point Cloth server is scheduled, and has reached increase network expansibility, reduces the effect of planning complexity.
Fig. 4 C are refer to, in a specific example, terminal obtains the longitude and latitude of itself, the longitude and latitude is carried In DNS request service request is sent to dns server;Dns server is after the IP address of dispatch server is inquired, to the tune Spend server and send the longitude and latitude that terminal is carried in DNS request, the DNS request;Dispatch server is obtained eventually from DNS request The longitude and latitude at end, according to the longitude and latitude of terminal inquire about can and the media server that match of terminal, and by the media server IP address is sent to dns server, and the IP address of media server is sent to terminal by dns server;Terminal Set up and be connected with the media server according to the IP address of media server, set up after connection, terminal just can be with the media Server carries out information exchange, and terminal can receive the service of the media server.
Fig. 5 A are refer to, the method flow diagram of the service scheduling method provided it illustrates another embodiment of the present invention. The present embodiment is main to be applied to implementation environment as shown in Figure 1 with the service scheduling method, and with dispatch server according to terminal The mode in the IP address geographical position of searching in predetermined corresponding relation terminal illustrate.The service scheduling method, bag Include:
Step 501, service request is sent;
Terminal sends service request to dispatch server.
It should be added that, if service request is DNS request, terminal sends DNS request to dns server, by DNS DNS request is transmitted to dispatch server by server.
Dns server is made up of name server and Domain Name Resolver, and name server preserves the dns server institute The corresponding IP address of domain name and domain name of All hosts in a network, Domain Name Resolver be used to translating domain names into for the domain name pair The IP address answered.
Dns server is after the IP address of dispatch server is inquired, according to the IP address of dispatch server to scheduling Server sends DNS request.
Step 502, the service request that receiving terminal is sent;
The service request that dispatch server receiving terminal is sent.
It should be added that, if service request is DNS request, the dispatch service in this step 502 in step 501 Device receives the DNS request of dns server forwarding, and DNS request is that terminal is sent to dns server.
Step 503, the IP address of terminal is obtained from service request;
Dispatch server obtains the IP address of terminal according to service request.
Step 504, the geographical position of terminal is inquired about in predetermined corresponding relation according to the IP address of terminal;
Dispatch server inquires about the geographical position of terminal according to the IP address of terminal in predetermined corresponding relation.Predetermined correspondence Relation is the corresponding relation between the IP address section belonging to different IP addresses and diverse geographic location.
Such as, in predetermined corresponding relation, there is IP address " 202.101.139.188 ", and it is corresponding with the IP address Geographical position (39 ° of 15 ' N, 73 ° of 33 ' E), if the IP address that dispatch server gets terminal is " 202.101.139.188 ", the dispatch server can be searched in predetermined corresponding relation for the IP address " 202.101.139.188 " corresponding geographical position (39 ° of 15 ' N, 73 ° of 33 ' E).
Predetermined corresponding relation is stored in advance on dispatch server.Therefore, when dispatch server with getting the IP of terminal After location, you can geographical position corresponding with the IP address of the terminal is searched in the predetermined corresponding relation stored on dispatch server Put.
Step 505, the geographical position with terminal is inquired about according to the geographical position of each distributed server prestored The distributed server matched;
Dispatch server inquires about the geographical position with terminal according to the geographical position of each distributed server prestored Put the distributed server matched.
Because the server for providing the terminal with service is distributed, the geographical position terminal thing where distributed server First it is not aware that, therefore when terminal initiates service request, dispatch server is needed terminal scheduling to the clothes matched with it It is engaged on device, so that terminal receives the service of the distributed server matched with it.
The geographical position of each distributed server is stored in advance on dispatch server, so that dispatch server being capable of root The distributed server matched according to the geographical position inquiry of each distributed server and the geographical position of terminal.
Dispatch server can be only according to the geographical position of terminal and the inquiry of the geographical position of distributed server and terminal The distributed server matched, can be combined with other conditions to inquire about the distributed server matched with terminal.When full During sufficient following condition, distributed server matches with terminal:The geographical position of distributed server and terminal is nearest and accords with Close predetermined condition.
Predetermined condition includes:The load of the distributed server reaches certain pre- less than predetermined threshold, the quality of channel Threshold value and interference are determined less than at least one of certain threshold value.
Such as, it is assumed that in rectangular coordinate system, if exemplified by the geographical position of server and terminal is nearest in a distributed manner, having point Cloth server P coordinate is P (1,1), and distributed server Q coordinate is Q (3,5), and distributed server U coordinate is U (6,1), terminal V coordinate is V (3,1), then according to distributed server P and terminal V distance is calculated be 2 lists Position, distributed server Q and terminal V distance is 4 units, and distributed server U and terminal V distance is 3 units, than Relatively show that distributed server P and terminal V's is closest.Therefore, dispatch server using distributed server P as with terminal The distributed server that V matches.
Distributed server can be media server or other types of server.
Step 506, service response is sent to terminal;
Dispatch server sends service response to terminal, what the geographical position carried in service response with terminal matched The link information of distributed server.
Link information can be the IP address information or other types of address information of distributed server.
Such as, if dispatch server selection step 505 in coordinate for P (1,1) distributed server P as with terminal phase The distributed server of matching, distributed server P IP address is carried terminal is sent in service response.
It should be added that, if what is received in step 502 is the DNS request of dns server forwarding, in this step Dispatch server sends DNS responses to dns server in 506, and DNS responses are transmitted into terminal by dns server.DNS is responded In carry the link information of the distributed server matched with the geographical position of terminal.
Step 507, the service response for service request is received, service response carries the geographical position phase with terminal The link information for the distributed server matched somebody with somebody;
Terminal receives the service response for service request that dispatch server is sent, and service response is carried and terminal The link information for the distributed server that geographical position matches.Link information can be the IP address letter of distributed server Breath or other types of address information.
Wherein, distributed server is that after dispatch server receives service request, terminal is obtained according to service request Geographical position, it is being inquired according to the geographical position of each distributed server prestored with terminal geographical position phase The distributed server of matching.
It should be added that, if sending DNS responses to dns server in step 506, DNS is rung by dns server Terminal should be transmitted to, then terminal receives the DNS responses that dns server is sent in this step 507, and DNS responses are dispatch services Device is sent to being responded DNS by dns server of dns server and is transmitted to terminal.
Step 508, set up and be connected with distributed server according to the link information of the distributed server received.
Terminal obtains the link information of distributed server from the service response for service request received, according to The link information is set up with distributed server and is connected, and terminal can enter row information friendship with distributed server after setting up connection Mutually, distributed server can provide the terminal with service.
In summary, the service scheduling method that embodiments of the invention are provided, the service request sent by receiving terminal; The geographical position of terminal is obtained according to service request;According to the geographical position of each distributed server prestored inquiry with The distributed server that the geographical position of terminal matches;Service response is sent to terminal, service response is carried and terminal The link information for the distributed server that geographical position matches.Solve artificial default scheduling strategy and there is artificial planning mistake Situation, may be configured to distant server by mistake by some or some IP address, and once occur above-mentioned error, again It can not in time be adjusted, increase network transmission cost, the problem of causing network delay;Having reached can be according to the ground of terminal The distributed server that reason location lookup matches, improves access speed and accuracy, reduces network transmission cost, reduces Network delay, improves the effect of network service quality.
Fig. 5 B are refer to, in a specific example, terminal sends DNS request to dns server, and dns server exists After the IP address for inquiring dispatch server, DNS request is sent to dispatch server;Dispatch server is from the DNS request The IP address of terminal is obtained, the geography of terminal corresponding with the IP address is searched in the storehouse of geographical position according to the IP address of terminal Position;Dispatch server inquires about the media server matched with terminal according to the geographical position of terminal, and by the media services The IP address of device is sent to dns server, and the IP address of media server is sent to terminal by dns server; Terminal is set up with the media server according to the IP address of media server and be connected, sets up after connecting, terminal just can and this Media server carries out information exchange, and terminal can receive the service of the media server.
It is below the device embodiment of the present invention, for the details of wherein not detailed description, may be referred to above-mentioned corresponding Embodiment of the method.
Fig. 6 is refer to, the structural representation of the service dispatch device provided it illustrates one embodiment of the invention.The clothes Business dispatching device can be implemented in combination with all or part as server, the clothes by software, hardware or both Business dispatching device includes:Request receiving module 620, position acquisition module 640, server lookup module 660 and response send mould Block 680;
Request receiving module 620, the service request sent for receiving terminal;
Position acquisition module 640, the service request for being received according to request receiving module 620 obtains the geography of terminal Position;
Server lookup module 660, for the geographical position inquiry according to each distributed server for prestoring with The distributed server that the geographical position for the terminal that position acquisition module 640 is got matches;
Sending module 680 is responded, for sending service response to terminal, service response is carried and server lookup module The link information for the distributed server that the geographical position of 660 terminals inquired matches.
In summary, the service dispatch device that embodiments of the invention are provided, the service request sent by receiving terminal; The geographical position of terminal is obtained according to service request;According to the geographical position of each distributed server prestored inquiry with The distributed server that the geographical position of terminal matches;Service response is sent to terminal, service response is carried and terminal The link information for the distributed server that geographical position matches.Solve artificial default scheduling strategy and there is artificial planning mistake Situation, may be configured to distant server by mistake by some or some IP address, and once occur above-mentioned error, again It can not in time be adjusted, increase network transmission cost, the problem of causing network delay;Having reached can be according to the ground of terminal The distributed server that reason location lookup matches, improves access speed and accuracy, reduces network transmission cost, reduces Network delay, improves the effect of network service quality.
Fig. 7 is refer to, the structural representation of the service dispatch device provided it illustrates another embodiment of the present invention.Should Service dispatch device can be implemented in combination with all or part as terminal, the clothes by software, hardware or both Business dispatching device includes:Request sending module 720 and response receiving module 740;
Request sending module 720, for sending service request;
Receiving module 740 is responded, the service response for receiving the service request sent for request sending module 720, Service response carries the link information of the distributed server matched with the geographical position of terminal;
Wherein, distributed server is that after dispatch server receives service request, terminal is obtained according to service request Geographical position, it is being inquired according to the geographical position of each distributed server prestored with terminal geographical position phase The distributed server of matching.
In summary, the service dispatch device that embodiments of the invention are provided, by sending service request;Receive for clothes The service response of business request, service response carries the connection letter of the distributed server matched with the geographical position of terminal Breath;Wherein, distributed server is the geography for obtaining terminal after dispatch server receives service request according to service request Position inquiring to match with terminal geographical position according to the geographical position of each distributed server prestored Distributed server.Solve artificial default scheduling strategy and there is a situation where that artificial planning is slipped up, may be by some or certain A little IP address are configured to distant server, and once occur above-mentioned error, can not in time be adjusted again, increase net Network transmission cost, the problem of causing network delay;The distribution matched can be searched according to the geographical position of terminal by having reached Server, improves access speed and accuracy, reduces network transmission cost, reduces the effect of network delay.
Fig. 8 is refer to, the structural representation of the service dispatch device provided it illustrates another embodiment of the present invention.Should Service dispatch device includes:Request receiving module 820, position acquisition module 840, server lookup module 860 and response are sent Module 880;
Request receiving module 820, the service request sent for receiving terminal;
Position acquisition module 840, the service request for being received according to request receiving module 820 obtains the geography of terminal Position;
Server lookup module 860, for the geographical position inquiry according to each distributed server for prestoring with The distributed server that the geographical position for the terminal that position acquisition module 840 is got matches;
Sending module 880 is responded, for sending service response to terminal, service response is carried and server lookup module The link information for the distributed server that the geographical position of 860 terminals inquired matches.
Further, position acquisition module 840, including:Position acquisition unit or position enquiring unit;
Position acquisition unit, the geographical position for obtaining terminal from service request, the geographical position of terminal is terminal Carry what is sent in service request after positioning the geographical position of itself;
Position enquiring unit, the IP address for obtaining terminal from service request;According to the IP address of terminal predetermined The geographical position of terminal is inquired about in corresponding relation, predetermined corresponding relation is the IP address section and different geography belonging to different IP addresses Corresponding relation between position.
Further, if service request is DNS request,
Request receiving module 820, the DNS request for receiving dns server forwarding, DNS request is that terminal is sent to DNS Server;
Sending module 880 is responded, for sending DNS responses to dns server, is transmitted to DNS responses by dns server Terminal.
Further, device includes:
Request sending module 810, for sending service request;
Receiving module 830 is responded, the service response for receiving the service request sent for request sending module 810, Service response carries the link information of the distributed server matched with the geographical position of terminal;
Wherein, distributed server is that after dispatch server receives service request, terminal is obtained according to service request Geographical position, it is being inquired according to the geographical position of each distributed server prestored with terminal geographical position phase The distributed server of matching.
Further, if service request carries the geographical position of terminal, service dispatch device, in addition to:
Position locating module 850, the geographical position for positioning terminal itself.
Further, if service request is DNS request,
DNS request, for sending DNS request to dns server, is transmitted to by request sending module 810 by dns server Dispatch server;
Receiving module 830 is responded, the DNS responses for receiving dns server transmission, DNS responses are dispatch server hairs Give being responded DNS by dns server of dns server and be transmitted to terminal.
In summary, the service dispatch device that embodiments of the invention are provided, the service request sent by receiving terminal; The geographical position of terminal is obtained according to service request;According to the geographical position of each distributed server prestored inquiry with The distributed server that the geographical position of terminal matches;Service response is sent to terminal, service response is carried and terminal The link information for the distributed server that geographical position matches.Solve artificial default scheduling strategy and there is artificial planning mistake Situation, may be configured to distant server by mistake by some or some IP address, and once occur above-mentioned error, again It can not in time be adjusted, increase network transmission cost, the problem of causing network delay;Having reached can be according to the ground of terminal The distributed server that reason location lookup matches, improves access speed and accuracy, reduces network transmission cost, reduces Network delay, improves the effect of network service quality.
It should be added that, the geographical position of itself is obtained by terminal, and please in service by geographical position carrying In asking, dispatch server can obtain the geographical geographical position of terminal from service request, be searched according to the geographical position of terminal The distributed server matched to the geographical position with terminal, can reach terminal scheduling to the distribution closer to the distance with it On formula server, reach and improved access speed and accuracy, reduced network transmission cost, reduced the effect of network delay Really.
In addition, if terminal there occurs movement, the geographical position of itself that terminal is got can also change, accordingly , the geographical position for the terminal that dispatch server is got can also change, according to the geographical position after change, dispatch service Device is searched can provide the distributed server of service to terminal, reached and adaptively terminal scheduling matches to it in real time Distributed server on effect.
Secondly, scheduled it to by the geographical position of terminal on the distributed server matched, if what is increased newly Terminal, it is not necessary to programming dispatching strategy again again, dispatch server can also be adjusted according to geographical position to newly-increased terminal Degree, has reached increase network expansibility, reduces the effect of planning complexity.
Fig. 9 is refer to, the structural representation of the dispatch server provided it illustrates one embodiment of the invention.The scheduling Server is used in implementation environment as shown in Figure 1.The dispatch server includes:Processor 920 and memory 940;
Processor 920, the service request sent for receiving terminal;
Processor 920, the geographical position for obtaining terminal according to service request;
Processor 920, for each distributed server for being prestored according to memory 940 geographical position inquiry with The distributed server that the geographical position of terminal matches;
Processor 920, for sending service response to terminal, service response is carried to match with the geographical position of terminal Distributed server link information.
In summary, the dispatch server that embodiments of the invention are provided, the service request sent by receiving terminal;Root The geographical position of terminal is obtained according to service request;According to the inquiry of the geographical position of each distributed server prestored and eventually The distributed server that the geographical position at end matches;Service response is sent to terminal, service response carries the ground with terminal The link information for the distributed server that reason position matches.Solve artificial default scheduling strategy and there is artificial planning error Situation, some or some IP address may be configured to distant server, and once occur above-mentioned error, and nothing Method is adjusted in time, increases network transmission cost, the problem of causing network delay;Having reached can be according to the geography of terminal The distributed server that location lookup matches, improves access speed and accuracy, reduces network transmission cost, reduces The effect of network delay.
Figure 10 is refer to, the structural representation of the dispatch server provided it illustrates another embodiment of the present invention.Should Dispatch server is used in implementation environment as shown in Figure 1.The server includes:Processor 1020, memory 1040, transmitter 1060 and receiver 1080;
Processor 1020, for the service request for controlling the receiving terminal of receiver 1080 to send;
Processor 1020, the geographical position for obtaining terminal according to service request;
Processor 1020, for the geographical position inquiry of each distributed server prestored according to memory 1040 The distributed server matched with the geographical position of terminal;
Processor 1020, for controlling transmitter 1060 to terminal transmission service response, service response is carried and terminal The link information of distributed server that matches of geographical position.
Further,
Processor 1020, the geographical position for obtaining terminal from service request, the geographical position of terminal is that terminal is determined Position carries what is sent in service request behind the geographical position of itself;
Or,
Processor 1020, the IP address for obtaining terminal from service request;According to the IP address of terminal at predetermined pair The geographical position of middle inquiry terminal should be related to, predetermined corresponding relation is the IP address section and different geographical positions belonging to different IP addresses Corresponding relation between putting.
Further, if service request is DNS request,
Processor 1020, for controlling receiver 1080 to receive the DNS request of dns server forwarding, DNS request is terminal It is sent to dns server;
Processor 1020, sends DNS responses, by dns server by DNS for controlling transmitter 1060 to dns server Response is transmitted to terminal.
In summary, the dispatch server that embodiments of the invention are provided, the service request sent by receiving terminal;Root The geographical position of terminal is obtained according to service request;According to the inquiry of the geographical position of each distributed server prestored and eventually The distributed server that the geographical position at end matches;Service response is sent to terminal, service response carries the ground with terminal The link information for the distributed server that reason position matches.Solve artificial default scheduling strategy and there is artificial planning error Situation, some or some IP address may be configured to distant server, and once occur above-mentioned error, and nothing Method is adjusted in time, increases network transmission cost, the problem of causing network delay;Having reached can be according to the geography of terminal The distributed server that location lookup matches, improves access speed and accuracy, reduces network transmission cost, reduces Network delay, improves the effect of network service quality.
It should be added that, the geographical position of itself is obtained by terminal, and please in service by geographical position carrying In asking, dispatch server can obtain the geographical geographical position of terminal from service request, be searched according to the geographical position of terminal The distributed server matched to the geographical position with terminal, can reach terminal scheduling to the distribution closer to the distance with it On formula server, reach and improved access speed and accuracy, reduced network transmission cost, reduced the effect of network delay Really.
In addition, if terminal there occurs movement, the geographical position of itself that terminal is got can also change, accordingly , the geographical position for the terminal that dispatch server is got can also change, according to the geographical position after change, dispatch service Device is searched can provide the distributed server of service to terminal, reached and adaptively terminal scheduling matches to it in real time Distributed server on effect.
Secondly, scheduled it to by the geographical position of terminal on the distributed server matched, if what is increased newly Distributed server, it is not necessary to programming dispatching strategy again again, dispatch server can also be according to geographical position come to newly-increased point Cloth server is scheduled, and has reached increase network expansibility, reduces the effect of planning complexity.
Figure 11 is refer to, the structural representation of the terminal provided it illustrates one embodiment of the invention.The terminal is used for In implementation environment as shown in Figure 1.The terminal includes:Processor 1120 and memory 1140;
Processor 1120, for sending service request;
Processor 1120, for receiving the service response for service request, service response carries the geography with terminal The link information for the distributed server that position matches;
Wherein, distributed server is that after dispatch server receives service request, terminal is obtained according to service request Geographical position, it is being inquired according to the geographical position of each distributed server prestored with terminal geographical position phase The distributed server of matching.
In summary, the terminal that embodiments of the invention are provided, by sending service request;Receive for service request Service response, service response carries the link information of the distributed server matched with the geographical position of terminal;Wherein, divide Cloth server is the geographical position for obtaining terminal after dispatch server receives service request according to service request, according to The distributed clothes matched with the geographical position of terminal that the geographical position of each distributed server prestored is inquired Business device.Solve artificial default scheduling strategy and there is a situation where artificial planning error, may be by some or some IP address Be configured to distant server, and once occur above-mentioned error, can not be adjusted in time again, increase network transmission into This, the problem of causing network delay;The distributed server matched can be searched according to the geographical position of terminal by having reached, be carried High access speed and accuracy, reduce network transmission cost, reduce the effect of network delay.
Figure 12 is refer to, the structural representation of the terminal provided it illustrates another embodiment of the present invention.The terminal is used In implementation environment as shown in Figure 1.The terminal includes:Processor 1220, memory 1240, transmitter 1260 and receiver 1280;
Processor 1120, for controlling transmitter 1260 to send service request;
Processor 1120, for controlling receiver 1280 to receive the service response for service request, service response is carried There is the link information for the distributed server that the geographical position with terminal matches;
Wherein, distributed server is that after dispatch server receives service request, terminal is obtained according to service request Geographical position, it is being inquired according to the geographical position of each distributed server prestored with terminal geographical position phase The distributed server of matching.
Further, if service request carries the geographical position of terminal, before sending service request, processor 1120, it is additionally operable to the geographical position of positioning terminal itself.
Further, if service request is DNS request,
Processor 1120, sends DNS request, by dns server by DNS for controlling transmitter 1260 to dns server Request is transmitted to dispatch server;
Processor 1120, for controlling receiver 1280 to receive the DNS responses that dns server is sent, DNS responses are scheduling Server is sent to being responded DNS by dns server of dns server and is transmitted to terminal.
In summary, the terminal that embodiments of the invention are provided, by sending service request;Receive for service request Service response, service response carries the link information of the distributed server matched with the geographical position of terminal;Wherein, divide Cloth server is the geographical position for obtaining terminal after dispatch server receives service request according to service request, according to The distributed clothes matched with the geographical position of terminal that the geographical position of each distributed server prestored is inquired Business device.Solve artificial default scheduling strategy and there is a situation where artificial planning error, may be by some or some IP address Be configured to distant server, and once occur above-mentioned error, can not be adjusted in time again, increase network transmission into This, the problem of causing network delay;The distributed server matched can be searched according to the geographical position of terminal by having reached, be carried High access speed and accuracy, reduce network transmission cost, reduce the effect of network delay.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (15)

1. a kind of service scheduling method, it is characterised in that for dispatch server, methods described includes:
The service request that receiving terminal is sent;
The geographical position of the terminal is obtained according to the service request, the geographical position of the terminal is latitude and longitude information or big Ground coordinate information;
According to the geographical position of each distributed server prestored, by calculating each distributed server and the end The distributed server that the geographical position of the mode of distance between end, inquiry and the terminal matches, wherein, the scheduling clothes Business device is connected with each distributed server, and when there is newly-increased distributed server, the dispatch server is according to institute The geographical position for stating terminal is scheduled to the newly-increased distributed server;
Service response is sent to the terminal, described in the service response is carried and matched with the geographical position of the terminal The link information of distributed server;
Wherein, the distributed server and the geographical position of the terminal are nearest, and load, the letter of the distributed server At least one of road quality and interference conform to a predetermined condition.
2. according to the method described in claim 1, it is characterised in that the ground that the terminal is obtained according to the service request Position is managed, including:
Obtain the geographical position of the terminal from the service request, the geographical position of the terminal be the terminal positioning from Carry what is sent in the service request behind the geographical position of body;
Or,
The IP address of the terminal is obtained from the service request;According to the IP address of the terminal in predetermined corresponding relation The geographical position of the terminal is inquired about, the predetermined corresponding relation is the IP address section and different geographical positions belonging to different IP addresses Corresponding relation between putting.
3. method according to claim 1 or 2, it is characterised in that if the service request is DNS request, the reception The service request that terminal is sent, including:
The DNS request of dns server forwarding is received, the DNS request is that the terminal is sent to the dns server;
Service response is sent to the terminal, including:
DNS responses are sent to the dns server, DNS responses are transmitted to the terminal by the dns server.
4. a kind of service scheduling method, it is characterised in that methods described includes:
Send service request;
The service response for the service request is received, the service response carries what is matched with the geographical position of terminal The link information of distributed server;
Wherein, the distributed server is after dispatch server receives the service request, according to the service request The geographical position of terminal is obtained, according to the geographical position of each distributed server prestored, is distributed by calculating each The mode of distance between formula server and the terminal, the distributed clothes matched with terminal geographical position that are inquiring Business device, the dispatch server is connected with each distributed server, and when there is newly-increased distributed server, the tune Degree server is scheduled according to the geographical position of the terminal to the newly-increased distributed server, the geography of the terminal Position is latitude and longitude information or geodetic coordinates information;
The distributed server and the geographical position of the terminal are nearest, and load, the channel matter of the distributed server At least one of amount and interference conform to a predetermined condition.
5. method according to claim 4, it is characterised in that if the service request carries the geographical position of the terminal Put, then before the transmission service request, in addition to:
Position the terminal geographical position of itself.
6. the method according to claim 4 or 5, it is characterised in that if the service request is DNS request, the transmission Service request, including:
DNS request is sent to dns server, the DNS request is transmitted to the dispatch server by the dns server;
The service response received for the service request, including:
The DNS responses that the dns server is sent are received, the DNS responses are that the dispatch server is sent to the DNS clothes Being responded the DNS by the dns server of business device is transmitted to the terminal.
7. a kind of service dispatch device, it is characterised in that applied to dispatch server, described device includes:
Request receiving module, the service request sent for receiving terminal;
Position acquisition module, the geographical position for obtaining the terminal according to the service request, the geographical position of the terminal It is set to latitude and longitude information or geodetic coordinates information;
Server lookup module, for the geographical position according to each distributed server prestored, by calculating each The distributed clothes that the geographical position of the mode of distance between distributed server and the terminal, inquiry and the terminal matches Business device, wherein, the dispatch server is connected with each distributed server, and when there is newly-increased distributed server, The dispatch server is scheduled according to the geographical position of the terminal to the newly-increased distributed server;
Sending module is responded, for sending service response to the terminal, the service response carries the ground with the terminal The link information for the distributed server that reason position matches;
Wherein, the distributed server and the geographical position of the terminal are nearest, and load, the letter of the distributed server At least one of road quality and interference conform to a predetermined condition.
8. device according to claim 7, it is characterised in that the position acquisition module, including:Position acquisition unit or Position enquiring unit;
The position acquisition unit, the geographical position for obtaining the terminal from the service request, the ground of the terminal Reason position is to carry behind the terminal positioning geographical position of itself to send in the service request;
The position enquiring unit, the IP address for obtaining the terminal from the service request;According to the terminal IP address inquires about the geographical position of the terminal in predetermined corresponding relation, and the predetermined corresponding relation is belonging to different IP addresses IP address section and diverse geographic location between corresponding relation.
9. the device according to claim 7 or 8, it is characterised in that if the service request is DNS request,
The request receiving module, the DNS request for receiving dns server forwarding, the DNS request is that the terminal is sent To the dns server;
The response sending module, for sending DNS responses to the dns server, by the dns server by the DNS Response is transmitted to the terminal.
10. a kind of service dispatch device, it is characterised in that described device includes:
Request sending module, for sending service request;
Receiving module is responded, for receiving the service response for the service request, the service response is carried and terminal The link information of distributed server that matches of geographical position;
Wherein, the distributed server is after dispatch server receives the service request, according to the service request The geographical position of terminal is obtained, according to the geographical position of each distributed server prestored, is distributed by calculating each The mode of distance between formula server and the terminal, the distributed clothes matched with terminal geographical position that are inquiring Business device, the dispatch server is connected with each distributed server, and when there is newly-increased distributed server, the tune Degree server is scheduled according to the geographical position of the terminal to the newly-increased distributed server, the geography of the terminal Position is latitude and longitude information or geodetic coordinates information;
The distributed server and the geographical position of the terminal are nearest, and load, the channel matter of the distributed server At least one of amount and interference conform to a predetermined condition.
11. device according to claim 10, it is characterised in that if the service request carries the geography of the terminal Position, then the service dispatch device, in addition to:
Position locating module, for positioning the terminal geographical position of itself.
12. the device according to claim 10 or 11, it is characterised in that if the service request is DNS request,
The request sending module, for sending DNS request to dns server, by the dns server by the DNS request It is transmitted to the dispatch server;
The response receiving module, for receiving the DNS responses that the dns server is sent, the DNS responses are the scheduling Server is sent to being responded the DNS by the dns server of the dns server and is transmitted to the terminal.
13. a kind of server, it is characterised in that the server includes the service dispatch dress as described in claim 7 to 9 is any Put.
14. a kind of terminal, it is characterised in that the terminal includes the service dispatch dress as described in claim 10 to 12 is any Put.
15. a kind of service dispatch system, it is characterised in that the service dispatch system includes at least one server and at least one Individual terminal;
The server is the server described in claim 13;
The terminal is the terminal described in claim 14.
CN201310464505.9A 2013-10-08 2013-10-08 Service scheduling method, apparatus and system Active CN103581299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310464505.9A CN103581299B (en) 2013-10-08 2013-10-08 Service scheduling method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310464505.9A CN103581299B (en) 2013-10-08 2013-10-08 Service scheduling method, apparatus and system

Publications (2)

Publication Number Publication Date
CN103581299A CN103581299A (en) 2014-02-12
CN103581299B true CN103581299B (en) 2017-10-17

Family

ID=50052208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310464505.9A Active CN103581299B (en) 2013-10-08 2013-10-08 Service scheduling method, apparatus and system

Country Status (1)

Country Link
CN (1) CN103581299B (en)

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852890B (en) * 2014-02-19 2019-02-05 联想(北京)有限公司 A kind of information processing method, dispatch server and the first electronic equipment
CN104980363A (en) * 2014-04-10 2015-10-14 赵正健 Terminal, method executed by the same, terminal event processing method and control system
CN105656964B (en) * 2014-11-10 2019-06-25 中国移动通信集团公司 The implementation method and device of data-pushing
CN106534240A (en) * 2015-09-11 2017-03-22 中国移动通信集团公司 CDN resource scheduling method, server and client
CN105357584B (en) * 2015-12-11 2020-09-22 Tcl科技集团股份有限公司 User behavior log classification uploading method and system based on smart television
CN105959405B (en) * 2016-06-24 2019-04-05 北京兰云科技有限公司 CDN video scheduling system, method and CDN dispatch server and client
CN111541796B (en) * 2016-09-20 2023-04-18 贵州白山云科技股份有限公司 CDN access flow scheduling method, device, communication system and storage medium
CN106357776B (en) * 2016-09-23 2019-06-28 北京奇虎科技有限公司 A kind of choosing method and device of the transfer resource of flow data
CN106534204B (en) * 2016-12-27 2020-02-07 Tcl集团股份有限公司 Method and system for connecting client and server
CN106790689B (en) * 2017-02-20 2020-08-04 网宿科技股份有限公司 Node recommendation method, server and client based on peer-to-peer network
CN106790768B (en) * 2017-02-27 2019-05-17 维沃移动通信有限公司 A kind of dns server setting method and mobile terminal
CN107493338A (en) * 2017-08-21 2017-12-19 南京慧水软件科技有限公司 A kind of concurrent access method suitable for hydrologic forecast information system
CN107770843B (en) * 2017-10-17 2019-01-04 广东省南方数字电视无线传播有限公司 The method and device of connection resource server
CN109962961A (en) * 2017-12-26 2019-07-02 中国移动通信集团广西有限公司 A kind of reorientation method and system of content distribution network CDN service node
CN109040343B (en) * 2018-09-11 2021-07-23 达闼科技(北京)有限公司 Domain name resolution method and device, computer readable storage medium and electronic equipment
CN109286668A (en) * 2018-09-26 2019-01-29 上海点融信息科技有限责任公司 It is sent for the communication of block chain network, message, message receival method
CN109547547A (en) * 2018-11-23 2019-03-29 北京知道创宇信息技术有限公司 Return source dispatching method, device and its storage medium
CN109802997B (en) * 2018-12-20 2021-02-09 华为技术服务有限公司 Node equipment selection method and related equipment thereof
CN109933732A (en) * 2019-01-25 2019-06-25 北京媒球信息科技有限公司 Information acquisition method, intelligent terminal and storage device based on geographical location
CN115150359A (en) 2019-08-20 2022-10-04 华为技术有限公司 Domain name system query method and communication device
CN112422701B (en) * 2019-08-20 2022-05-24 华为技术有限公司 Domain name system query method and communication device
CN110784506B (en) * 2019-09-05 2021-05-14 腾讯科技(深圳)有限公司 Cloud resource allocation method, device and equipment
CN110661879B (en) * 2019-10-12 2023-03-24 北京奇艺世纪科技有限公司 Node scheduling method, device and system, scheduling server and terminal equipment
CN110856103B (en) * 2019-11-18 2021-11-26 腾讯科技(深圳)有限公司 Scheduling method, communication method and related equipment
CN113364873A (en) * 2021-06-08 2021-09-07 中国联合网络通信集团有限公司 Traffic scheduling method and equipment
CN113938482B (en) * 2021-08-27 2024-01-19 网宿科技股份有限公司 Scheduling method, scheduling system, server and storage medium for content distribution network
CN113973118B (en) * 2021-10-18 2022-09-02 深圳国人无线通信有限公司 Data cloud storage service system and service method based on communication base station

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008019094A2 (en) * 2006-08-04 2008-02-14 Skyhook Wireless, Inc. Systems and methods of automated retrieval of location information from a user device for use with server systems
CN101345659A (en) * 2008-08-27 2009-01-14 杭州华三通信技术有限公司 Network terminal control method and network terminal control system
CN101931999A (en) * 2010-08-31 2010-12-29 深圳市赫迪威信息技术有限公司 Service access method, portal switching server and service access system
CN102682002A (en) * 2011-03-10 2012-09-19 中兴通讯股份有限公司 Method for obtaining payment shopping guide information of mobile terminal and system thereof
CN102760174A (en) * 2012-08-06 2012-10-31 吴建辉 Distributed actual condition search engine based on geographic locations and trading system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206586A1 (en) * 2005-03-09 2006-09-14 Yibei Ling Method, apparatus and system for a location-based uniform resource locator
CN101035358B (en) * 2006-03-10 2011-11-16 华为技术有限公司 Method and system for channel switching in the radio communication system
CN101287011A (en) * 2008-05-26 2008-10-15 蓝汛网络科技(北京)有限公司 Method, system and device for responding service request from user in content distributing network
TW201116035A (en) * 2009-10-30 2011-05-01 Ind Tech Res Inst System and method for matching mobile device users
CN102957744B (en) * 2012-10-26 2016-01-20 北京百度网讯科技有限公司 The method of shunting, system and device are positioned to mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008019094A2 (en) * 2006-08-04 2008-02-14 Skyhook Wireless, Inc. Systems and methods of automated retrieval of location information from a user device for use with server systems
CN101345659A (en) * 2008-08-27 2009-01-14 杭州华三通信技术有限公司 Network terminal control method and network terminal control system
CN101931999A (en) * 2010-08-31 2010-12-29 深圳市赫迪威信息技术有限公司 Service access method, portal switching server and service access system
CN102682002A (en) * 2011-03-10 2012-09-19 中兴通讯股份有限公司 Method for obtaining payment shopping guide information of mobile terminal and system thereof
CN102760174A (en) * 2012-08-06 2012-10-31 吴建辉 Distributed actual condition search engine based on geographic locations and trading system

Also Published As

Publication number Publication date
CN103581299A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
CN103581299B (en) Service scheduling method, apparatus and system
EP3993347A1 (en) Method and device for application migration
CN103166990B (en) P2P peer to peer connection method for building up and system
CN105610632A (en) Virtual network device and related method
CN106131229A (en) The processing method of CDN business, equipment and communication system
CN107431727A (en) Anycast and the flow transmission of the mapping based on terminal user are used in overlay network
CN104160680A (en) Spoofing technique for transparent proxy caching
US20150088995A1 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
CN107135499A (en) Data transmission method, the network equipment and terminal
CN102316416A (en) Access method for terminal and wireless communication network
CN105245629A (en) DHCP-based host communication method and device
CN104348798A (en) Network assigning method and device, scheduling server, and system
CN103595743B (en) A kind of method, apparatus and system of downloading application software
CA2931906C (en) Systems and methods for determining a destination location in a network system
CN101895520A (en) Widget system data sharing method, server and data sharing system
CN102984223A (en) Message sending method and network equipment and system
CN105959188B (en) Method and device for controlling user terminal to be on-line
CN104468138B (en) A kind of implementation method of multimedia conferencing, relevant device and system
CN103973747A (en) Method and device for acquiring content
CN109873855A (en) A kind of resource acquiring method and system based on block chain network
CN103560937A (en) Data accessing method and entry server
CN104780591B (en) Business interoperability implementation method, device, system and relevant device between terminal device
US11316580B2 (en) Communication system, relay server, communication method and program
CN105871972A (en) Video resource distributed cathe method, device and system
CN106375489A (en) Processing method and apparatus for MAC address

Legal Events

Date Code Title Description
C06 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
TR01 Transfer of patent right

Effective date of registration: 20200211

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing

Patentee before: Huawei Technologies Co.,Ltd.

TR01 Transfer of patent right