CN106850556A - service access method, device and equipment - Google Patents

service access method, device and equipment Download PDF

Info

Publication number
CN106850556A
CN106850556A CN201611199816.7A CN201611199816A CN106850556A CN 106850556 A CN106850556 A CN 106850556A CN 201611199816 A CN201611199816 A CN 201611199816A CN 106850556 A CN106850556 A CN 106850556A
Authority
CN
China
Prior art keywords
server
information
terminal device
access
network
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
CN201611199816.7A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611199816.7A priority Critical patent/CN106850556A/en
Publication of CN106850556A publication Critical patent/CN106850556A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure is directed to a kind of service access method, device and equipment, its method includes:The access request message for access service that receiving terminal apparatus send;According to the access request message, the first network environmental information of the terminal device is obtained;The first network environmental information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;According to the second network environment information of each server for prestoring, it is determined that the second server matched with the first network environmental information of the terminal device;Second network environment information includes the positional information of the server and/or Internet service provider's information of the server;Access response message is sent to the terminal device, the link information of the second server is carried in the access response message, the link information is used to indicate the terminal device to access the service that the second server is provided.The disclosure can improve the speed of terminal device access service.

Description

Service access method, device and equipment
Technical field
This disclosure relates to the communications field, more particularly to service access method, device and equipment.
Background technology
With the fast development of science and technology, the species of service is more and more diversified, for example do shopping, communicate etc., Er Qieyue Carry out more user's selections by terminal device access service, to obtain more information.
In correlation technique, a service is often possible to be provided by multiple distributed servers, and terminal device is being serviced Access when, it will usually randomly send access request to some distributed server, the distributed server receiving After access request, responded to terminal device backward reference.
The content of the invention
To overcome problem present in correlation technique, the disclosure to provide a kind of service access method, device and equipment.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of service access method, first server is applied to, it is described Method includes:
The access request message for access service that receiving terminal apparatus send;
According to the access request message, the first network environmental information of the terminal device is obtained;The first network Environmental information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;
According to the second network environment information of each server for prestoring, it is determined that the first network with the terminal device The second server that environmental information matches;The positional information of second network environment information including the server and/or Internet service provider's information of the server;
Access response message is sent to the terminal device, the second server is carried in the access response message Link information, the link information is used to indicate the terminal device to access the service that the second server is provided.
Because first server according to the first network environmental information of the terminal device for getting and can be prestored Second network environment information of each server, determines the second service matched with the first network environmental information of terminal device Device, the access for making terminal device be serviced by the link information of the second server, it is possible thereby to improve terminal device visit Ask the speed of service.
Alternatively, if the first network environmental information includes the positional information of the terminal device, second network Environmental information includes the positional information of the server;
Second network environment information of each server that the basis is prestored, it is determined that with the terminal device first The second server that network environment information matches, including:
According to the positional information of each server for prestoring, determine between each server and the terminal device away from From;
By the server closest with the terminal device, it is defined as the second server.
Due to the server closest with terminal device is defined as into second server, so that terminal device is by the clothes The access that business device is serviced, it is possible thereby to reduce the time delay of network transmission, improves the speed of service access.
Alternatively, if Internet service provider's information of the first network environmental information including the terminal device, described the Two network environment informations include Internet service provider's information of the server;
Second network environment information of each server that the basis is prestored, it is determined that with the terminal device first The second server that network environment information matches, including:
According to Internet service provider's information of each server for prestoring, will believe with the Internet service provider of the terminal device Breath identical server, is defined as the second server.
Due to the Internet service provider's information identical server with terminal device is defined as into second server, so that terminal The access that equipment is serviced by the server, it is possible thereby to improve the speed of service access.
Alternatively, if the first network environmental information includes the positional information of the terminal device;
It is described that the first network environmental information of the terminal device is obtained according to the access request message, including:
The positional information of the terminal device is obtained from the access request message;
Or,
Obtain the network protocol IP address of the terminal device according to the access request message, and according to prestoring IP address and the corresponding relation of positional information, obtain the corresponding positional information of the IP address.
Due to can directly obtain the positional information of terminal device from access request message, it is also possible to according to access request IP address in message, obtains the positional information of terminal device, it is possible thereby to improve obtain the flexible of terminal device positional information Property.
Alternatively, if the first network environmental information includes Internet service provider's information of the terminal device;
It is described that the first network environmental information of the terminal device is obtained according to the access request message, including:
Internet service provider's information of the terminal device is obtained from the access request message;
Or,
Obtain the IP address of the terminal device according to the access request message, and according to the IP address for prestoring with The corresponding relation of Internet service provider's information, obtains the corresponding Internet service provider's information of the IP address.
Due to can directly obtain Internet service provider's information of terminal device from access request message, it is also possible to according to visit The IP address in request message is asked, Internet service provider's information of terminal device is obtained, it is possible thereby to improve obtain terminal device The flexibility of Internet service provider's information.
Alternatively, methods described also includes:
The notification message that dispatch server sends is received, the second network of the 3rd server is carried in the notification message Environmental information;
According to the notification message, the second network environment information of the 3rd server is updated.
Due to by according to the notification message for receiving, the second network environment letter of each server that can upgrade in time Breath, it is possible thereby to improve the reliability of system.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of service access method, terminal device, the side are applied to Method includes:
The access request message for access service is sent to first server;
The access response message that the first server sends is received, is carried in the access response message and the end The link information of the second server that the first network environmental information of end equipment matches;Wherein, the second server It is the first server after the access request message is received, according to the second network of each server for prestoring Environmental information, the server matched with terminal device first network environmental information that is determining;The first network Environmental information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;Described second Network environment information includes the positional information of the server and/or Internet service provider's information of the server;
Link information according to the second server accesses the service.
Because first server according to the first network environmental information of the terminal device for getting and can be prestored Second network environment information of each server, determines the second service matched with the first network environmental information of terminal device Device, the access for making terminal device be serviced by the link information of the second server, it is possible thereby to improve terminal device visit Ask the speed of service.
Alternatively, it is described that the service is accessed according to the link information of the second server, including:
Judge whether the second server is identical with the first server;
If the second server is identical with the first server, the link information according to the first server is visited Ask the service;
If the second server is differed with the first server, according to the link information of the second server Information is reloaded, to access the service.
Due to can be determined by first server match with the first network environmental information of terminal device The access that the link information of two servers is serviced, it is possible thereby to improve the speed of terminal device access service.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of service access apparatus, including:
First receiver module, is configured as the access request message for access service of receiving terminal apparatus transmission;
Acquisition module, is configured as the access request message received according to first receiver module, obtains institute State the first network environmental information of terminal device;The first network environmental information includes the positional information of the terminal device And/or Internet service provider's information of the terminal device;
Determining module, is configured as according to the second network environment information of each server for prestoring, it is determined that with it is described The second server that the first network environmental information of the terminal device that acquisition module gets matches;Second network Environmental information includes the positional information of the server and/or Internet service provider's information of the server;
Sending module, is configured as sending access response message to the terminal device, is taken in the access response message The link information of the second server determined with the determining module, the link information is used to indicate the terminal Equipment accesses the service that the second server is provided.
Alternatively, if the first network environmental information includes the positional information of the terminal device, second network Environmental information includes the positional information of the server;
The determining module includes:
First determination sub-module, is configured as the positional information according to each server for prestoring, and determines each server The distance between with the terminal device;
Second determination sub-module, is configured as the server closest with the terminal device, is defined as described Two servers.
Alternatively, if Internet service provider's information of the first network environmental information including the terminal device, described the Two network environment informations include Internet service provider's information of the server;
The determining module includes:
3rd determination sub-module, is configured as the Internet service provider's information according to each server for prestoring, will be with institute Internet service provider's information identical server of terminal device is stated, is defined as the second server.
Alternatively, if the first network environmental information includes the positional information of the terminal device;
The acquisition module includes:
First acquisition submodule, is configured as being obtained from the access request message position letter of the terminal device Breath;
Or,
Second acquisition submodule, is configured as being obtained according to the access request message procotol of the terminal device IP address, and according to the IP address for prestoring and the corresponding relation of positional information, obtain the corresponding position letter of the IP address Breath.
Alternatively, if the first network environmental information includes Internet service provider's information of the terminal device;
The acquisition module includes:
3rd acquisition submodule, is configured as being obtained from the access request message network service of the terminal device Business's information;
Or,
4th acquisition submodule, is configured as being obtained according to the access request message IP address of the terminal device, And according to the IP address for prestoring and the corresponding relation of Internet service provider's information, obtain the corresponding network service of the IP address Business's information.
Alternatively, described device also includes:
Second receiver module, is configured as receiving the notification message that dispatch server sends, and is carried in the notification message There is the second network environment information of the 3rd server;
Update module, is configured as the notification message received according to second receiver module, updates described the Second network environment information of three servers.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of service access apparatus, including:
Sending module, is configured as sending the access request message for access service to first server;
Receiver module, is configured as receiving the access response message that the first server sends, and the access response disappears The link information of the second server matched with the first network environmental information of the terminal device is carried in breath;Its In, the second server be the first server after the access request message is received, according to what is prestored Second network environment information of each server, the clothes matched with terminal device first network environmental information that are determining Business device;The first network environmental information includes the network clothes of the positional information of the terminal device and/or the terminal device Business business's information;Second network environment information includes the network clothes of the positional information of the server and/or the server Business business's information;
Access modules, are configured as accessing the service according to the link information of the second server.
Alternatively, the access modules include:
Judging submodule, is configured as judging whether the second server is identical with the first server;
First accesses submodule, is configured as judging the second server with described first in the judging submodule When server is identical, the link information according to the first server accesses the service;
Second accesses submodule, is configured as judging the second server with described first in the judging submodule When server is differed, the link information according to the second server reloads information, to access the service.
A kind of the 5th aspect according to the embodiment of the present disclosure, there is provided server, including:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The access request message for access service that receiving terminal apparatus send;
According to the access request message, the first network environmental information of the terminal device is obtained;The first network Environmental information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;
According to the second network environment information of each server for prestoring, it is determined that the first network with the terminal device The second server that environmental information matches;The positional information of second network environment information including the server and/or Internet service provider's information of the server;
Access response message is sent to the terminal device, the second server is carried in the access response message Link information, the link information is used to indicate the terminal device to access the service that the second server is provided.
A kind of the 6th aspect according to the embodiment of the present disclosure, there is provided terminal device, including:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The access request message for access service is sent to first server;
The access response message that the first server sends is received, is carried in the access response message and the end The link information of the second server that the first network environmental information of end equipment matches;Wherein, the second server It is the first server after the access request message is received, according to the second network of each server for prestoring Environmental information, the server matched with terminal device first network environmental information that is determining;The first network Environmental information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;Described second Network environment information includes the positional information of the server and/or Internet service provider's information of the server;
Link information according to the second server accesses the service.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The access request message for access service sent by receiving terminal apparatus, according to access request message, is obtained The first network environmental information of terminal device is taken, further according to the second network environment information of each server for prestoring, it is determined that The second server matched with the first network environmental information of terminal device, access response message is sent to terminal device, should The link information of second server is carried in access response message, wherein, link information is used for instruction terminal equipment and accesses the The service that two servers are provided, first network environmental information includes the positional information of terminal device and/or the network of terminal device Service provider's information, the second network environment information includes the positional information of server and/or Internet service provider's information of server.By Can be according to the first network environmental information of the terminal device for getting and each server for prestoring in first server Second network environment information, determines the second server matched with the first network environmental information of terminal device, makes terminal Equipment can access the service of second server offer, it is possible thereby to improve the speed of terminal device access service.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows and meets implementation of the invention Example, and be used to explain principle of the invention together with specification.
The system construction drawing of the service access method that Fig. 1 is provided for the embodiment of the present disclosure;
Fig. 2 is a kind of flow chart of the service access method according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of the service access method according to another exemplary embodiment;
Fig. 4 is a kind of flow chart of the service access method according to further example embodiment;
Fig. 5 is a kind of flow chart of the service access method according to another exemplary embodiment;
Fig. 6 is a kind of flow chart of the service access method according to another exemplary embodiment;
Fig. 7 is a kind of signaling diagram of the service access method according to another exemplary embodiment;
Fig. 8 is a kind of block diagram of the service access apparatus according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of the service access apparatus according to another exemplary embodiment;
Figure 10 is a kind of block diagram of the service access apparatus according to further example embodiment;
Figure 11 is a kind of block diagram of the service access apparatus according to another exemplary embodiment;
Figure 12 is a kind of block diagram of the service access apparatus according to another exemplary embodiment;
Figure 13 is a kind of block diagram of the service access apparatus according to another exemplary embodiment;
Figure 14 is a kind of block diagram of the service access apparatus according to another exemplary embodiment;
Figure 15 is a kind of block diagram of the service access apparatus according to another exemplary embodiment;
Figure 16 is a kind of block diagram of the entity of the server according to an exemplary embodiment;
Figure 17 is a kind of block diagram of the entity of the terminal device according to an exemplary embodiment;
Figure 18 is a kind of block diagram for service access apparatus according to an exemplary embodiment;
Figure 19 is a kind of block diagram for service access apparatus according to an exemplary embodiment.
By above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These accompanying drawings It is not intended to limit the scope that the disclosure is conceived by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent and the consistent all implementation methods of the present invention.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
The system construction drawing of the service access method that Fig. 1 is provided for the embodiment of the present disclosure, as shown in figure 1, the system includes At least one terminal device 11, at least one distributed server 12 and at least one dispatch server 13, wherein, terminal device 11 for example can be mobile phone, panel computer or computer etc., and distributed server 12 is can be for terminal device 11 provides service Server, can be connected with terminal device 11 by wireless or cable network, dispatch server 13 be control centre, have Manage the function of distributed server 12.
Fig. 2 is a kind of flow chart of the service access method according to an exemplary embodiment, as shown in Fig. 2 this reality Apply the service access method that example is related to be mainly with first server, the first server is distributed server.In Fig. 1 On the basis of shown system architecture, the service access method is comprised the following steps.
In the step s 21, the access request message for access service that receiving terminal apparatus send.
In step S22, according to access request message, the first network environmental information of terminal device, first net are obtained Network environmental information includes the positional information of terminal device and/or Internet service provider's information of terminal device.
In the disclosed embodiments, when terminal device needs to access certain service, can be sent to first server and visited Request message is asked, the first server can obtain the first network ring of terminal device after access request message is received Environment information, wherein, the first network environmental information of terminal device can only include the positional information of terminal device, it is also possible to only wrap Internet service provider's information of terminal device is included, the positional information and Internet service provider's information of terminal device can also be included.In addition, Internet service provider's information of terminal device can including China Mobile, China Telecom or operator's informaiton etc. CHINAUNICOM, Can be including the network provider information such as China Netcom or China Railway Telecom.
In step S23, according to the second network environment information of each server for prestoring, it is determined that with terminal device The second server that first network environmental information matches, the positional information of second network environment information including server and/ Or Internet service provider's information of server.
In the disclosed embodiments, the second network environment information of each server only can be believed the position including each server Breath, it is also possible to the only Internet service provider's information including each server, can also include positional information and the network clothes of each server Business business's information.In addition, Internet service provider's information of server can be transported including China Mobile, China Telecom or CHINAUNICOM etc. Battalion's business's information, it is also possible to including the network provider information such as China Netcom or China Railway Telecom.Due to advance in first server Be stored with the second network environment information of each server, therefore, when first server gets the first network ring of terminal device After environment information, the second network environment information of the first network environmental information of terminal device and each server can will be carried out Matching, and determine the second server matched with the first network environmental information of terminal device.
In step s 24, access response message is sent to terminal device, second service is carried in the access response message The link information of device, the link information is used for instruction terminal equipment and accesses the service that second server is provided.
Because service is typically all distributed deployment, for example can be in northeast, certain is all disposed in East China, North China, the region such as southwest Individual service, when there is terminal device Trans-Provincial/Municipal, such as when terminal device moves to East China by the Northeast, in related skill In art, terminal device will likely may proceed to access the service of the Northeast, so, will result in premises equipment requests response slow Slowly, the situation of poor-performing, so as to cause the speed of terminal device access service slower.If in addition, the network clothes of terminal device When Internet service provider's type of business business and server is differed, it is also possible to cause the speed of terminal device access service slower.
For this problem, in the disclosed embodiments, first server is in the access request sent by terminal device Message is got after the first network environmental information of terminal device, by according to the second network rings of each server for prestoring Environment information, it is determined that the second server matched with the first network environmental information of terminal device, and by the second server Link information is sent to terminal device, terminal device after the link information for receiving the second server, will determine that this Whether two servers are identical with first server, if identical with first server, continue to access the clothes according to first server Business, if being differed with second server, will reload current connection logic, to access the clothes according to second server Business.Because first server is according to the positional information and/or Internet service provider's information of terminal device, determine and terminal device The second server of positional information and/or Internet service provider's information match, is made terminal device be accessed by second server and taken Business, it is possible thereby to avoid what terminal device in correlation technique was differed by distant server and/or Internet service provider The phenomenon of server access service, thus the speed of service access can be improved.
In addition, it is necessary to illustrate, terminal device, can preferentially to last true when the service is accessed next time The second server made sends access request message, to reach the purpose of quick access service.
The service access method of the present embodiment, the access request for access service sent by receiving terminal apparatus is disappeared Breath, according to access request message, obtains the first network environmental information of terminal device, further according to each server for prestoring Second network environment information, it is determined that the second server matched with the first network environmental information of terminal device, then to terminal Equipment sends access response message, and the link information of second server is carried in the access response message, wherein, connection letter Cease and access the service that second server is provided for instruction terminal equipment, first network environmental information includes the position of terminal device Internet service provider's information of information and/or terminal device, the second network environment information includes the positional information and/or clothes of server Internet service provider's information of business device.Because first server can be according to the first network environmental information of the terminal device for getting With the second network environment information of each server for prestoring, the first network environmental information phase with terminal device is determined The second server matched somebody with somebody, allows terminal device to access the service of second server offer, it is possible thereby to improve terminal device The speed of access service.
Fig. 3 is a kind of flow chart of the service access method according to another exemplary embodiment, and the present embodiment is related to Service access method be used for first server in, the present embodiment on the basis of embodiment illustrated in fig. 2, in first network environment Information includes the positional information of terminal device, when the second network environment information includes the positional information of server, how according to pre- Second network environment information of each server for first storing, it is determined that match with the first network environmental information of terminal device The embodiment of two servers, elaborates.On the basis of the system architecture shown in Fig. 1, as shown in figure 3, the service access Method may include steps of.
In step S31, the access request message for access service that receiving terminal apparatus send.
In step s 32, according to access request message, the positional information of terminal device is obtained.
In step S33, according to the positional information of each server for prestoring, determine between each server and terminal device Distance.
In the disclosed embodiments, due to being previously stored with the positional information of each server in first server, because This, when first server is after the positional information for getting terminal device, will calculate between each server and terminal device Distance.
In step S34, by the server closest with terminal device, it is defined as second server.
In the disclosed embodiments, first server is after the distance between each server and terminal device is calculated, By the server closest with terminal device, it is defined as second server.For example, if terminal device passes through first service Device accesses the service of certain shopping application, and provides the server distribution of the service in Beijing, Shanghai and Shenzhen, it is assumed that terminal sets Standby positional information is Hebei, and the server in Shanghai is first server, when first server receives terminal device Send carry the access request message of positional information after, by calculate respectively three between server and terminal device away from From, and determine the server closest with Hebei to be distributed in Pekinese's server, therefore, first server will point Cloth is defined as second server in Pekinese's server.
In step S35, access response message is sent to terminal device, second server is carried in the access response message Link information, the link information be used for instruction terminal equipment access second server provide service.
In the present embodiment, first server is after the second server closest with terminal device is determined, meeting The link information of the second server is carried terminal device is sent in access response message, terminal device will according to this The link information of two servers, accesses the service that second server is provided.For example:First server will be distributed over Pekinese's service The link information of device is sent to terminal device, and terminal device finds the server with backward reference response message by comparing First server is different, then will be by being distributed in Pekinese's server, and access is distributed in the service that Pekinese's server is provided, this Sample, the access that terminal device can be serviced by the server closest with it, it is possible thereby to improve service access Efficiency.
The service access method of the present embodiment, the access request for access service sent by receiving terminal apparatus is disappeared Breath, according to access request message, obtains the first network environmental information of terminal device, further according to each server for prestoring Second network environment information, it is determined that the second server matched with the first network environmental information of terminal device, sets to terminal Preparation send access response message, and the link information of second server is carried in the access response message, wherein, the link information The service that second server is provided is accessed for instruction terminal equipment, first network environmental information includes that the position of terminal device is believed Internet service provider's information of breath and/or terminal device, the second network environment information includes positional information and/or the service of server Internet service provider's information of device.Due to first server can according to the first network environmental information of the terminal device for getting and Second network environment information of each server for prestoring, determines and matches with the first network environmental information of terminal device Second server, allow terminal device access the second server offer service, it is possible thereby to improve terminal device visit Ask the speed of service.Further, since the server closest with terminal device is defined as second server, so that terminal sets The standby access serviced by the server, it is possible thereby to reduce the time delay of network transmission, improves the speed of service access.
Fig. 4 is a kind of flow chart of the service access method according to further example embodiment, and the present embodiment is related to Service access method be used for first server in, the present embodiment on the basis of embodiment illustrated in fig. 2, in first network environment Information includes Internet service provider's information of terminal device, and the second network environment information includes Internet service provider's information of server When, how according to the second network environment information of each server for prestoring, it is determined that the first network environment with terminal device The embodiment of the second server of information match, elaborates.On the basis of the system architecture shown in Fig. 1, such as Fig. 4 institutes Show, the service access method may include steps of.
In step S41, the access request message for access service that receiving terminal apparatus send.
In step S42, according to access request message, Internet service provider's information of terminal device is obtained.
In step S43, according to Internet service provider's information of each server for prestoring, will be taken with the network of terminal device Business business's information identical server, is defined as second server.
In the disclosed embodiments, due to Internet service provider's information of each server that is stored with first server, example Such as China Mobile, CHINAUNICOM or China Netcom, when first server is getting Internet service provider's information of terminal device Afterwards, the Internet service provider's information identical server with terminal device is defined as second server.For example, if terminal Equipment accesses the service of certain shopping application by first server, and provides the server distribution of the service in Beijing, Shanghai And Shenzhen, and it is distributed in the service of server and UNICOM Internet service provider of Pekinese's server including mobile network service business Device, being distributed in the server in Shanghai includes the server of telecommunication network services business, and the server for being distributed in Shenzhen includes mobile network Network service provider and the server of Internet service provider of Netcom, it is assumed that the Internet service provider of terminal device is telecommunications, and in Shanghai Server is first server, due to Internet service provider's information of the Servers-all that is stored with first server, therefore, first Server will carry out the matching of Internet service provider's information, that is, the server that will be distributed over the telecommunication network services business in Shanghai is defined as Second server.
If it should be noted that when having multiple with Internet service provider's information identical server of terminal device, will be from this Determine a server as second server in multiple servers at random.
If in addition, during in the absence of Internet service provider's information identical server with terminal device, will be random from other nets A server is specified in the server of network service provider as second server.
In step S44, access response message is sent to terminal device, second server is carried in the access response message Link information, the link information be used for instruction terminal equipment access second server provide service.
In the present embodiment, first server is taken with the Internet service provider information identical second of terminal device determining After business device, the link information of the second server can be carried and terminal device is sent in access response message, terminal sets For by according to the link information access service of the second server.For example:First server will be distributed over the server in Shanghai Link information is sent to terminal device, and terminal device finds the first of the server and backward reference response message by comparing Server is identical, then will continue through the server access service for being distributed in Shanghai, so, terminal device can by with its The access that Internet service provider's information identical server is serviced, it is possible thereby to improve the efficiency of service access.
The service access method of the present embodiment, the access request for access service sent by receiving terminal apparatus is disappeared Breath, according to access request message, obtains the first network environmental information of terminal device, further according to each server for prestoring Second network environment information, it is determined that the second server matched with the first network environmental information of terminal device, sets to terminal Preparation send access response message, and the link information of second server is carried in the access response message, wherein, the link information The service that second server is provided is accessed for instruction terminal equipment, first network environmental information includes that the position of terminal device is believed Internet service provider's information of breath and/or terminal device, the second network environment information includes positional information and/or the service of server Internet service provider's information of device.Due to first server can according to the first network environmental information of the terminal device for getting and Second network environment information of each server for prestoring, determines and matches with the first network environmental information of terminal device Second server, allow terminal device access the second server offer service, it is possible thereby to improve terminal device visit Ask the speed of service.Further, since the Internet service provider's information identical server with terminal device is defined as into second service Device, so that the access that terminal device is serviced by the server, it is possible thereby to improve the speed of service access.
Needs are illustrated, if positional information and terminal device of the first network environmental information including terminal device Internet service provider's information, the second network environment information includes the positional information of server and Internet service provider's information of server When, then according to the second network environment information of each server for prestoring, it is determined that believing with the first network environment of terminal device The second server of manner of breathing matching, including:Will be closest with terminal device, and with Internet service provider's information phase of terminal device Same server, is defined as second server.Because second server is closest with terminal device, and with the net of terminal device Network service provider information is identical, then terminal device will be greatly improved by the speed of the second server access service.
In addition, if it is determined that closest with terminal device, but in the absence of the Internet service provider's information phase with terminal device With server when, will from the server closest with terminal device randomly choose a server, as second service Device.For example:If terminal device accesses the service of certain shopping application by first server, and provides the server point of the service Cloth is distributed in Pekinese's server and includes mobile network service business server and UNICOM network clothes in Beijing, Shanghai and Shenzhen Business business's server, the server for being distributed in Shanghai includes Internet service provider of Netcom server, and the server for being distributed in Shenzhen includes Mobile network service business server and Internet service provider of Tie Tong server, it is assumed that the positional information of terminal device is Shenzhen, and net Network service provider is telecommunications, then first server will randomly choose a server from two servers for being distributed in Shenzhen, As second server.
Alternatively, on the basis of the system architecture shown in Fig. 1, if first network environmental information includes the position of terminal device Confidence ceases, then according to access request message, the positional information for obtaining terminal device can include the following two kinds mode:
The first:The positional information of terminal device is obtained from access request message.
Wherein, the positional information of the terminal device is that terminal device is being accessed by being carried after the positional information for gathering itself Sent in request message.Specifically, the positional information of itself can be gathered by the position sensor on terminal device, and will The positional information for collecting carries and first server is sent in access request message, and so, first server passes through parsing, The positional information of terminal device can be directly got from access request message.
Second:Procotol (the Internet Protocol of terminal device are obtained according to access request message;Referred to as: IP) address, and according to the IP address for prestoring and the corresponding relation of positional information, obtain the corresponding positional information of IP address.
Specifically, if terminal device cannot gather the positional information of itself, first server can also be by terminal device The IP address carried in the access request message of transmission obtains the positional information of terminal device.In actual applications, first service Device will get terminal after the access request message for receiving terminal device transmission from the heading of the access request message The corresponding IP address information of equipment.Due to being previously stored with the corresponding relation of IP address and positional information in first server, Now, by according to the IP address for getting and the corresponding relation for prestoring, the corresponding positional information of IP address is obtained.Citing comes Say, if in the corresponding relation for prestoring, there is IP address " 113.140.249.181 ", and position corresponding with the IP address Confidence ceases (37 ° of 20 ' N, 70 ° of 15 ' E), if the IP address that first server gets terminal device is " 113.140.249.181 ", then can will find and the IP address in the corresponding relation for prestoring " 113.140.249.181 " corresponding positional information (37 ° of 20 ' N, 70 ° of 15 ' E).
The service access method of the present embodiment, can directly obtain the position letter of terminal device from access request message Breath, it is also possible to the IP address in access request message, obtains the positional information of terminal device, it is possible thereby to improve acquisition eventually The flexibility of end equipment positional information.
Alternatively, on the basis of the system architecture shown in Fig. 1, if first network environmental information includes the net of terminal device Network service provider information, then according to access request message, the Internet service provider's information for obtaining terminal device can include the following two kinds Mode:
The first:Internet service provider's information of terminal device is obtained from access request message.
Wherein, if terminal device detects the network for itself being used for data network, the data network will be may determine that The type of network, that is, judge it is mobile network, UNICOM's network or communication network, such that it is able to know its Internet service provider's information, Wherein, if the network for using is mobile network, its Internet service provider's information is illustrated for China Mobile, if the network for using is UNICOM's network, then illustrate that its Internet service provider's information, for CHINAUNICOM, if the network for using is communication network, illustrates its Internet service provider's information is China Telecom etc..Terminal device takes the network after the Internet service provider's information for judging it Business business information carries and first server is sent in access request message, and so, first server is by parsing, you can directly Internet service provider's information of terminal device is got from access request message.
Second:Obtain the IP address of terminal device according to access request message, and according to the IP address that prestores with The corresponding relation of Internet service provider's information, obtains the corresponding Internet service provider's information of IP address.
Specifically, if terminal device detects the network for itself being used for wireless network, due to access request message In carry the IP address of terminal device, the network that first server will obtain terminal device by the IP address for carrying takes Business business's information.In actual applications, first server, will be from the visit after the access request message for receiving terminal device transmission The corresponding IP address information of terminal device is got in the heading for asking request message.Due to being prestored in first server There is the corresponding relation of IP address and Internet service provider's information, now, by according to the IP address for getting and the correspondence for prestoring Relation, obtains the corresponding Internet service provider's information of IP address.For example, if in the corresponding relation for prestoring, there is IP ground Location " 113.140.249.184 ", and information China Telecom of Internet service provider corresponding with the IP address, if first server is obtained The IP address of terminal device is got for " 113.140.249.184 ", then be able to will be found in the corresponding relation for prestoring Internet service provider's information China Telecom corresponding with the IP address " 113.140.249.184 ".
The service access method of the present embodiment, can directly obtain the network service of terminal device from access request message Business's information, it is also possible to the IP address in access request message, obtains Internet service provider's information of terminal device, it is possible thereby to Improve the flexibility of the Internet service provider's information for obtaining terminal device.
Fig. 5 is a kind of flow chart of the service access method according to another exemplary embodiment, and the present embodiment is related to Service access method be used for first server in, the present embodiment on the basis of embodiment illustrated in fig. 2, to the 3rd server After second network environment information changes, the embodiment how to be updated elaborates.In the system knot shown in Fig. 1 On the basis of structure, as shown in figure 5, the service access method may include steps of.
In step s 51, the notification message that dispatch server sends is received, the 3rd server is carried in the notification message The second network environment information.
In the disclosed embodiments, dispatch server is control centre, and it is used to manage distributed server, such as management the One server, second server and the 3rd server etc., wherein dispatch server for can be a server, or by Some server groups into server cluster, can also be a cloud computing service center, it is specific for dispatch server Form, this is not restricted for the present embodiment.In addition, the 3rd server is distributed server, its can for first server or Second server, or other distributed servers in addition to first server or second server.
Because each distributed server is required for exposing a configuration interface for inside, so that dispatch server is called, Therefore, if the second network environment information of the 3rd server there occurs change, dispatch server will be to all of distribution Server is sent a notification message, and the second network environment letter after the 3rd server changes is carried in the notification message Breath, for example:Carry the positional information and/or Internet service provider's information after the 3rd server changes.
In step S52, according to notification message, the second network environment information of the 3rd server is updated.
In the disclosed embodiments, first server incite somebody to action this after the notification message for receiving dispatch server transmission Second network environment information of the 3rd server of ground storage is updated to the second network environment information carried in notification message.
The service access method of the present embodiment, due to by the way that according to the notification message for receiving, each can be upgraded in time Second network environment information of server, it is possible thereby to improve the reliability of system.
Fig. 6 is a kind of flow chart of the service access method according to another exemplary embodiment, as shown in fig. 6, this The service access method that embodiment is related to is mainly with the terminal device.On the basis of the system architecture shown in Fig. 1, the clothes Business access method is comprised the following steps.
In step S61, the access request message for access service is sent to first server.
In the disclosed embodiments, when terminal device needs to access certain service, can be sent to first server and visited Request message is asked, the first server can obtain the first network ring of terminal device after access request message is received Environment information, wherein, the first network environmental information of terminal device can only include the positional information of terminal device, it is also possible to only wrap Internet service provider's information of terminal device is included, the positional information of terminal device and the Internet service provider of terminal device can also be included Information.In addition, Internet service provider's information of terminal device can be runed including China Mobile, China Telecom or CHINAUNICOM etc. Business's information, it is also possible to including the network provider information such as China Netcom or China Railway Telecom.
In step S62, receive first server send access response message, carried in the access response message with The link information of the second server that the first network environmental information of terminal device matches;Wherein, the second server is the One server after access request message is received, according to the second network environment information of each server for prestoring, really The server matched with terminal device first network environmental information that is making, first network environmental information includes terminal device Positional information and/or terminal device Internet service provider's information, the positional information of the second network environment information including server And/or Internet service provider's information of server.
In the disclosed embodiments, the second network environment information of each server only can be believed the position including each server Breath, it is also possible to the only Internet service provider's information including each server, can also include the positional information of each server and each service Internet service provider's information of device.Due to being previously stored with the second network environment information of each server in first server, because This, after the first network environmental information that first server gets terminal device, by can be to the first net of terminal device Second network environment information of network environmental information and each server is matched, it is possible thereby to determine first with terminal device The second server that network environment information matches, and the link information of the second server is sent to terminal device.
In step S63, the link information access service according to second server.
In the disclosed embodiments, terminal device, will be according to after the link information for receiving the second server The access that the link information of two servers is serviced.The positional information according to terminal device and/or end due to first server Internet service provider's information of end equipment, determines and believes with the positional information of terminal device and/or the Internet service provider of terminal device The second server of manner of breathing matching, makes terminal device by second server access service, it is possible thereby in avoiding correlation technique The phenomenon that terminal device is serviced by the server access that distant server and/or Internet service provider's information are differed, The speed of service access can thus be improved.
The service access method of the present embodiment, is disappeared by the access request sent to first server for access service Breath, and the access response message of first server transmission is received, the first net with terminal device is carried in access response message The link information of the second server that network environmental information matches;Wherein, second server is that first server is receiving visiting After asking request message, according to the second network environment information of each server for prestoring, determine with terminal device The server that first network environmental information matches, further according to the link information access service of second server, wherein, this first Network environment information includes the positional information of terminal device and/or Internet service provider's information of terminal device, the second network environment Information includes the positional information of server and/or Internet service provider's information of server.Because first server can be according to obtaining Second network environment information of the first network environmental information of the terminal device got and each server for prestoring, determines The second server matched with the first network environmental information of terminal device, makes terminal device pass through the company of the second server The access that the information of connecing is serviced, it is possible thereby to improve the speed of terminal device access service.
Alternatively, on the basis of above-described embodiment, the link information access service according to second server, including:Sentence Whether disconnected second server is identical with first server, if second server is identical with first server, according to first service The link information access service of device;If second server is differed with first server, the connection letter according to second server Breath reloads information, with access service.
Specifically, terminal device is after the link information for receiving second server, will determine that the second server with Whether first server is identical, if identical with first server, continues to access the service according to first server, if with second Server is differed, then current connection logic will be reloaded according to second server, to access the service.
In addition, it is necessary to illustrate, terminal device, can preferentially to last true when the service is accessed next time The second server made sends access request message, to reach the purpose of quick access service.
The service access method of the present embodiment, due to can be determined by first server with terminal device first The access that the link information of the second server that network environment information matches is serviced, it is possible thereby to improve terminal device visit Ask the speed of service.
The implementation process of service access method is the foregoing described, the process can be realized by service access apparatus, below The built-in function and structure of the device will be illustrated.
Fig. 7 is a kind of signaling diagram of the service access method according to another exemplary embodiment, as shown in fig. 7, this Include the positional information of terminal device in embodiment with first network environmental information, the second network environment information includes server Illustrated as a example by positional information, on the basis of the system architecture shown in Fig. 1, the service access method is comprised the following steps.
In step S71, terminal device sends the access request message for access service to first server.
In step S72, first server obtains the first network environment letter of terminal device according to access request message Breath.
Wherein, first network environmental information includes the positional information of terminal device and/or the Internet service provider of terminal device Information.
In step S73, according to the second network environment information of each server for prestoring, it is determined that with terminal device The second server that first network environmental information matches.
Wherein, the second network environment information includes the positional information of server and/or Internet service provider's information of server.
In step S74, first server sends access response message to terminal device.
Wherein, the link information of second server is carried in the access response message.
In step S75, link information access service of the terminal device according to second server.
On the step in above-described embodiment, its specific implementation can be found in above-mentioned Fig. 1 to phase in embodiment illustrated in fig. 6 The record of step is closed, explanation will be not set forth in detail herein.
Fig. 8 is a kind of block diagram of the service access apparatus according to an exemplary embodiment, as shown in figure 8, the service Access mechanism includes the first receiver module 11, acquisition module 12, determining module 13 and sending module 14.
First receiver module 11 is configured as the access request message for access service of receiving terminal apparatus transmission;
Acquisition module 12 is configured as the access request message received according to first receiver module 11, obtains The first network environmental information of the terminal device;The first network environmental information includes the positional information of the terminal device And/or Internet service provider's information of the terminal device;
Determining module 13 is configured as according to the second network environment information of each server for prestoring, it is determined that with it is described The second server that the first network environmental information of the terminal device that acquisition module 12 gets matches;Second net Network environmental information includes the positional information of the server and/or Internet service provider's information of the server;
Sending module 14 is configured as sending access response message to the terminal device, is taken in the access response message The link information of the second server determined with the determining module 13, the link information is used to indicate the end End equipment accesses the service that the second server is provided.
The service access apparatus of the present embodiment, the access request for access service sent by receiving terminal apparatus is disappeared Breath, according to access request message, obtains the first network environmental information of terminal device, further according to each server for prestoring Second network environment information, it is determined that the second server matched with the first network environmental information of terminal device, sets to terminal Preparation send access response message, and the link information of second server is carried in the access response message, wherein, the link information The service that second server is provided is accessed for instruction terminal equipment, first network environmental information includes that the position of terminal device is believed Internet service provider's information of breath and/or terminal device, the second network environment information includes positional information and/or the service of server Internet service provider's information of device.Due to first server can according to the first network environmental information of the terminal device for getting and Second network environment information of each server for prestoring, determines and matches with the first network environmental information of terminal device Second server, allow terminal device access the second server offer service, it is possible thereby to improve terminal device visit Ask the speed of service.
Wherein, as shown in figure 9, Fig. 9 is a kind of block diagram of the service access apparatus according to another exemplary embodiment, It is described if the first network environmental information includes the positional information of the terminal device on the basis of embodiment illustrated in fig. 8 Second network environment information includes the positional information of the server;The determining module 13 includes:First determination sub-module 131 With the second determination sub-module 132.
First determination sub-module 131 is configured as the positional information according to each server for prestoring, and determines each service The distance between device and described terminal device;
Second determination sub-module 132 is configured as the server closest with the terminal device, is defined as described Second server.
Wherein, as shown in Figure 10, Figure 10 is a kind of frame of the service access apparatus according to further example embodiment Figure, on the basis of embodiment illustrated in fig. 8, if the first network environmental information includes the Internet service provider of the terminal device Information, second network environment information includes Internet service provider's information of the server;The determining module 13 includes:The Three determination sub-modules 133.
3rd determination sub-module, is configured as the Internet service provider's information according to each server for prestoring, will be with institute Internet service provider's information identical server of terminal device is stated, is defined as the second server.
Wherein, as shown in figure 11, Figure 11 is a kind of frame of the service access apparatus according to another exemplary embodiment Figure, on the basis of embodiment illustrated in fig. 8, if the first network environmental information includes the positional information of the terminal device; The acquisition module 12 includes:First acquisition submodule 121, or the second acquisition submodule 122.
First acquisition submodule 121 is configured as being obtained from the access request message position letter of the terminal device Breath;
Or,
Second acquisition submodule 122 is configured as being obtained according to the access request message network association of the terminal device View IP address, and according to the IP address for prestoring and the corresponding relation of positional information, obtain the corresponding position of the IP address Information.
Wherein, as shown in figure 12, Figure 12 is a kind of frame of the service access apparatus according to another exemplary embodiment Figure, on the basis of embodiment illustrated in fig. 8, if the first network environmental information includes the Internet service provider of the terminal device Information;The acquisition module 12 includes:3rd acquisition submodule 123, or the 4th acquisition submodule 124.
3rd acquisition submodule 123 is configured as being obtained from the access request message network clothes of the terminal device Business business's information;
Or,
4th acquisition submodule 124 is configured as being obtained according to the access request message IP ground of the terminal device Location, and according to the IP address for prestoring and the corresponding relation of Internet service provider's information, obtain the corresponding network of the IP address Service provider's information.
Wherein, as shown in figure 13, Figure 13 is a kind of frame of the service access apparatus according to another exemplary embodiment Figure, on the basis of embodiment illustrated in fig. 8, described device also includes:Second receiver module 15 and update module 16.
Second receiver module 15 is configured as receiving the notification message that dispatch server sends, and is carried in the notification message There is the second network environment information of the 3rd server;
Update module 16 is configured as the notification message received according to second receiver module 15, updates described Second network environment information of the 3rd server.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 14 is a kind of block diagram of the service access apparatus according to another exemplary embodiment, as shown in figure 14, should Service access apparatus include sending module 21, receiver module 22 and access modules 23.
Sending module 21 is configured as sending the access request message for access service to first server;
Receiver module 22 is configured as receiving the access response message that the first server sends, and the access response disappears The link information of the second server matched with the first network environmental information of the terminal device is carried in breath;Its In, the second server be the first server after the access request message is received, according to what is prestored Second network environment information of each server, the clothes matched with terminal device first network environmental information that are determining Business device;The first network environmental information includes the network clothes of the positional information of the terminal device and/or the terminal device Business business's information;Second network environment information includes the network clothes of the positional information of the server and/or the server Business business's information;
Access modules 23 are configured as accessing the service according to the link information of the second server.
The service access apparatus of the present embodiment, are disappeared by the access request sent to first server for access service Breath, and the access response message of first server transmission is received, the first net with terminal device is carried in access response message The link information of the second server that network environmental information matches;Wherein, second server is that first server is receiving visiting After asking request message, according to the second network environment information of each server for prestoring, determine with terminal device The server that first network environmental information matches, further according to the link information access service of second server, wherein, the first net Network environmental information includes the positional information of terminal device and/or Internet service provider's information of terminal device;Second network environment is believed Breath includes Internet service provider's information of the positional information of server and/or server.Because first server can be according to acquisition To terminal device first network environmental information and the second network environment information of each server for prestoring, determine with The second server that the first network environmental information of terminal device matches, makes terminal device pass through the connection of the second server The access that information is serviced, it is possible thereby to improve the speed of terminal device access service.
Wherein, as shown in figure 15, Figure 15 is a kind of frame of the service access apparatus according to another exemplary embodiment Figure, on the basis of embodiment illustrated in fig. 14, the access modules 23 include:Judging submodule 231, first accesses submodule 232 and second access submodule 233.
Judging submodule 231 is configured as judging whether the second server is identical with the first server;
First access submodule 232 is configured as judging the second server and institute in the judging submodule 231 State first server it is identical when, link information according to the first server accesses the service;
Second access submodule 233 is configured as judging the second server and institute in the judging submodule 231 When stating first server and differing, the link information according to the second server reloads information, to access the service.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Inner function module and the structural representation of server are the foregoing described, Figure 16 is shown according to an exemplary embodiment A kind of server entity block diagram, reference picture 16, the server can be implemented as:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The access request message for access service that receiving terminal apparatus send;
According to the access request message, the first network environmental information of the terminal device is obtained;The first network Environmental information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;
According to the second network environment information of each server for prestoring, it is determined that the first network with the terminal device The second server that environmental information matches;The positional information of second network environment information including the server and/or Internet service provider's information of the server;
Access response message is sent to the terminal device, the second server is carried in the access response message Link information, the link information is used to indicate the terminal device to access the service that the second server is provided.
Inner function module and the structural representation of terminal device are the foregoing described, Figure 17 is shown according to an exemplary embodiment A kind of block diagram of the entity of the terminal device for going out, reference picture 17, terminal device can be implemented as:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The access request message for access service is sent to first server;
The access response message that the first server sends is received, is carried in the access response message and the end The link information of the second server that the first network environmental information of end equipment matches;Wherein, the second server It is the first server after the access request message is received, according to the second network of each server for prestoring Environmental information, the server matched with terminal device first network environmental information that is determining;The first network Environmental information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;Described second Network environment information includes the positional information of the server and/or Internet service provider's information of the server;
Link information according to the second server accesses the service.
Figure 18 is a kind of block diagram for service access apparatus according to an exemplary embodiment.For example, device 1900 may be provided in a server.Reference picture 18, device 1900 include processing assembly 1922, its further include one or Multiple processors, and the memory resource as representated by memory 1932, can be by the execution of processing assembly 1922 for storing Instruction, such as application program.In memory 1932 store application program can include it is one or more each Corresponding to one group of module of instruction.Additionally, processing assembly 1922 is configured as execute instruction, to perform following methods:
The access request message for access service that receiving terminal apparatus send;
According to the access request message, the first network environmental information of the terminal device is obtained;The first network Environmental information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;
According to the second network environment information of each server for prestoring, it is determined that the first network with the terminal device The second server that environmental information matches;The positional information of second network environment information including the server and/or Internet service provider's information of the server;
Access response message is sent to the terminal device, the second server is carried in the access response message Link information, the link information is used to indicate the terminal device to access the service that the second server is provided.
Wherein, if the first network environmental information includes the positional information of the terminal device, second network rings Environment information includes the positional information of the server;
Second network environment information of each server that the basis is prestored, it is determined that with the terminal device first The second server that network environment information matches, including:
According to the positional information of each server for prestoring, determine between each server and the terminal device away from From;
By the server closest with the terminal device, it is defined as the second server.
Wherein, if the first network environmental information includes Internet service provider's information of the terminal device, described second Network environment information includes Internet service provider's information of the server;
Second network environment information of each server that the basis is prestored, it is determined that with the terminal device first The second server that network environment information matches, including:
According to Internet service provider's information of each server for prestoring, will believe with the Internet service provider of the terminal device Breath identical server, is defined as the second server.
Wherein, if the first network environmental information includes the positional information of the terminal device;
It is described that the first network environmental information of the terminal device is obtained according to the access request message, including:
The positional information of the terminal device is obtained from the access request message;
Or,
Obtain the network protocol IP address of the terminal device according to the access request message, and according to prestoring IP address and the corresponding relation of positional information, obtain the corresponding positional information of the IP address.
Wherein, if the first network environmental information includes Internet service provider's information of the terminal device;
It is described that the first network environmental information of the terminal device is obtained according to the access request message, including:
The Internet service provider's information belonging to the terminal device is obtained from the access request message;
Or,
Obtain the IP address of the terminal device according to the access request message, and according to the IP address for prestoring with The corresponding relation of Internet service provider's information, obtains the corresponding Internet service provider's information of the IP address.
Wherein, methods described also includes:
The notification message that dispatch server sends is received, the second network of the 3rd server is carried in the notification message Environmental information;
According to the notification message, the second network environment information of the 3rd server is updated.
Device 1900 can also include that a power supply module 1926 is configured as the power management of performs device 1900, one Wired or wireless network interface 1950 is configured as device 1900 being connected to network, and input and output (I/O) interface 1958.Device 1900 can operate the operating system in memory 1932, such as Windows ServerTM, Mac based on storage OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Figure 19 is a kind of block diagram for service access apparatus according to an exemplary embodiment.For example, device 1000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Reference picture 19, device 1000 can include following one or more assemblies:Processing assembly 1002, memory 1004, Power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of input/output (I/O), sensor cluster 1014, and communication component 1016.
The integrated operation of the usual control device 1000 of processing assembly 1002, such as with display, call, data communication, Camera operation and the associated operation of record operation.Processing assembly 1002 can include one or more processors 1020 to perform Instruction, to complete all or part of step of above-mentioned method.Additionally, processing assembly 1002 can include one or more moulds Block, is easy to the interaction between processing assembly 1002 and other assemblies.For example, processing assembly 1002 can include multi-media module, To facilitate the interaction between multimedia groupware 1008 and processing assembly 1002.
Memory 1004 is configured as storing various types of data supporting the operation in device 1000.These data Instruction of the example including any application program or method for being operated on device 1000, contact data, telephone book data, Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they Combination realizes, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1006 provides electric power for the various assemblies of device 1000.Power supply module 1006 can include power management System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 1000.
One touch-control of output interface of offer that multimedia groupware 1008 is included between described device 1000 and user shows Display screen.In certain embodiments, touching display screen can include liquid crystal display (LCD) and touch panel (TP).Touch panel Including one or more touch sensors with the gesture on sensing touch, slip and touch panel.The touch sensor can be with The not only border of sensing touch or sliding action, but also the detection duration related to the touch or slide and pressure Power.In certain embodiments, multimedia groupware 1008 includes a front camera and/or rear camera.When device 1000 In operator scheme, such as screening-mode or during video mode, front camera and/or rear camera can receive many of outside Media data.Each front camera and rear camera can be a fixed optical lens systems or with focal length and light Learn zoom capabilities.
Audio-frequency assembly 1010 is configured as output and/or input audio signal.For example, audio-frequency assembly 1010 includes a wheat Gram wind (MIC), when device 1000 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The audio signal for being received can be further stored in memory 1004 or via communication Component 1016 sends.In certain embodiments, audio-frequency assembly 1010 also includes a loudspeaker, for exports audio signal.
I/O interfaces 1012 are that interface, above-mentioned peripheral interface module are provided between processing assembly 1002 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor cluster 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented Estimate.For example, sensor cluster 1014 can detect the opening/closed mode of device 1000, the relative positioning of component, such as institute Display and keypad that component is device 1000 are stated, sensor cluster 1014 can be with detection means 1000 or device 1,000 1 The position of individual component changes, and user is presence or absence of with what device 1000 was contacted, the orientation of device 1000 or acceleration/deceleration and dress Put 1000 temperature change.Sensor cluster 1014 can include proximity transducer, be configured to without any physics The presence of object nearby is detected during contact.Sensor cluster 1014 can also include optical sensor, and such as CMOS or ccd image are sensed Device, for being used in imaging applications.In certain embodiments, the sensor cluster 1014 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress Putting 1000 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.It is exemplary at one In embodiment, communication component 1016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1016 also includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realization, for performing above-mentioned document display method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 1004 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 1020 of device 1000.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the treatment of device 1000 When device is performed so that device 1000 is able to carry out following methods:
The access request message for access service is sent to first server;
The access response message that the first server sends is received, is carried in the access response message and the end The link information of the second server that the first network environmental information of end equipment matches;Wherein, the second server It is the first server after the access request message is received, according to the second network of each server for prestoring Environmental information, the server matched with terminal device first network environmental information that is determining;The first network Environmental information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;Described second Network environment information includes the positional information of the server and/or Internet service provider's information of the server;
Link information according to the second server accesses the service.
Wherein, it is described that the service is accessed according to the link information of the second server, including:
Judge whether the second server is identical with the first server;
If the second server is identical with the first server, the link information according to the first server is visited Ask the service;
If the second server is differed with the first server, according to the link information of the second server Information is reloaded, to access the service.
Those skilled in the art considering specification and after putting into practice invention disclosed herein, will readily occur to it is of the invention its Its embodiment.The application is intended to any modification of the invention, purposes or adaptations, these modifications, purposes or Person's adaptations follow general principle of the invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claims are pointed out.
It should be appreciated that the invention is not limited in the precision architecture being described above and be shown in the drawings, and And can without departing from the scope carry out various modifications and changes.The scope of the present invention is only limited by appending claims System.

Claims (18)

1. a kind of service access method, it is characterised in that be applied to first server, methods described includes:
The access request message for access service that receiving terminal apparatus send;
According to the access request message, the first network environmental information of the terminal device is obtained;The first network environment Information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;
According to the second network environment information of each server for prestoring, it is determined that the first network environment with the terminal device The second server of information match;The positional information of second network environment information including the server and/or described Internet service provider's information of server;
Access response message is sent to the terminal device, the company of the second server is carried in the access response message Information is connect, the link information is used to indicate the terminal device to access the service that the second server is provided.
2. method according to claim 1, it is characterised in that if the first network environmental information sets including the terminal Standby positional information, second network environment information includes the positional information of the server;
Second network environment information of each server that the basis is prestored, it is determined that the first network with the terminal device The second server that environmental information matches, including:
According to the positional information of each server for prestoring, the distance between each server and described terminal device are determined;
By the server closest with the terminal device, it is defined as the second server.
3. method according to claim 1, it is characterised in that if the first network environmental information sets including the terminal Standby Internet service provider's information, second network environment information includes Internet service provider's information of the server;
Second network environment information of each server that the basis is prestored, it is determined that the first network with the terminal device The second server that environmental information matches, including:
According to Internet service provider's information of each server for prestoring, by the Internet service provider's information phase with the terminal device Same server, is defined as the second server.
4. method according to claim 1, it is characterised in that if the first network environmental information sets including the terminal Standby positional information;
It is described that the first network environmental information of the terminal device is obtained according to the access request message, including:
The positional information of the terminal device is obtained from the access request message;
Or,
The network protocol IP address of the terminal device is obtained according to the access request message, and according to the IP ground for prestoring Location and the corresponding relation of positional information, obtain the corresponding positional information of the IP address.
5. method according to claim 1, it is characterised in that if the first network environmental information sets including the terminal Standby Internet service provider's information;
It is described that the first network environmental information of the terminal device is obtained according to the access request message, including:
Internet service provider's information of the terminal device is obtained from the access request message;
Or,
The IP address of the terminal device is obtained according to the access request message, and according to the IP address and network for prestoring The corresponding relation of service provider's information, obtains the corresponding Internet service provider's information of the IP address.
6. method according to claim 1, it is characterised in that methods described also includes:
The notification message that dispatch server sends is received, the second network environment of the 3rd server is carried in the notification message Information;
According to the notification message, the second network environment information of the 3rd server is updated.
7. a kind of service access method, it is characterised in that be applied to terminal device, methods described includes:
The access request message for access service is sent to first server;
The access response message that the first server sends is received, is carried in the access response message and is set with the terminal The link information of the second server that standby first network environmental information matches;Wherein, the second server is institute First server is stated after the access request message is received, according to the second network environment of each server for prestoring Information, the server matched with terminal device first network environmental information that is determining;The first network environment Information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;Second network Environmental information includes the positional information of the server and/or Internet service provider's information of the server;
Link information according to the second server accesses the service.
8. method according to claim 7, it is characterised in that described to be accessed according to the link information of the second server The service, including:
Judge whether the second server is identical with the first server;
If the second server is identical with the first server, the link information according to the first server accesses institute State service;
If the second server is differed with the first server, the link information according to the second server is again Load information, to access the service.
9. a kind of service access apparatus, it is characterised in that including:
First receiver module, is configured as the access request message for access service of receiving terminal apparatus transmission;
Acquisition module, is configured as the access request message received according to first receiver module, obtains the end The first network environmental information of end equipment;The positional information of the first network environmental information including the terminal device and/or Internet service provider's information of the terminal device;
Determining module, is configured as according to the second network environment information of each server for prestoring, it is determined that with the acquisition The second server that the first network environmental information of the terminal device that module gets matches;Second network environment Information includes the positional information of the server and/or Internet service provider's information of the server;
Sending module, is configured as sending access response message to the terminal device, is carried in the access response message The link information of the second server that the determining module is determined, the link information is used to indicate the terminal device Access the service that the second server is provided.
10. device according to claim 9, it is characterised in that if the first network environmental information includes the terminal The positional information of equipment, second network environment information includes the positional information of the server;
The determining module includes:
First determination sub-module, is configured as the positional information according to each server for prestoring, and determines each server and institute State the distance between terminal device;
Second determination sub-module, is configured as the server closest with the terminal device, is defined as second clothes Business device.
11. devices according to claim 9, it is characterised in that if the first network environmental information includes the terminal Internet service provider's information of equipment, second network environment information includes Internet service provider's information of the server;
The determining module includes:
3rd determination sub-module, is configured as the Internet service provider's information according to each server for prestoring, will be with the end Internet service provider's information identical server of end equipment, is defined as the second server.
12. devices according to claim 9, it is characterised in that if the first network environmental information includes the terminal The positional information of equipment;
The acquisition module includes:
First acquisition submodule, is configured as being obtained from the access request message positional information of the terminal device;
Or,
Second acquisition submodule, is configured as being obtained according to the access request message procotol IP ground of the terminal device Location, and according to the IP address for prestoring and the corresponding relation of positional information, obtain the corresponding positional information of the IP address.
13. devices according to claim 9, it is characterised in that if the first network environmental information includes the terminal Internet service provider's information of equipment;
The acquisition module includes:
3rd acquisition submodule, is configured as being obtained from the access request message Internet service provider's letter of the terminal device Breath;
Or,
4th acquisition submodule, is configured as being obtained according to the access request message IP address of the terminal device, and root According to the IP address for prestoring and the corresponding relation of Internet service provider's information, the corresponding Internet service provider's letter of the IP address is obtained Breath.
14. devices according to claim 9, it is characterised in that described device also includes:
Second receiver module, is configured as receiving the notification message that dispatch server sends, and the is carried in the notification message Second network environment information of three servers;
Update module, is configured as the notification message received according to second receiver module, updates the 3rd clothes Second network environment information of business device.
A kind of 15. service access apparatus, it is characterised in that including:
Sending module, is configured as sending the access request message for access service to first server;
Receiver module, is configured as receiving the access response message that the first server sends, in the access response message Carry the link information of the second server matched with the first network environmental information of the terminal device;Wherein, The second server be the first server after the access request message is received, according to each clothes for prestoring Second network environment information of business device, the service matched with terminal device first network environmental information that is determining Device;The first network environmental information includes the positional information of the terminal device and/or the network service of the terminal device Business's information;Second network environment information includes the positional information of the server and/or the network service of the server Business's information;
Access modules, are configured as accessing the service according to the link information of the second server.
16. devices according to claim 15, it is characterised in that the access modules include:
Judging submodule, is configured as judging whether the second server is identical with the first server;
First accesses submodule, is configured as judging the second server with the first service in the judging submodule When device is identical, the link information according to the first server accesses the service;
Second accesses submodule, is configured as judging the second server with the first service in the judging submodule When device is differed, the link information according to the second server reloads information, to access the service.
A kind of 17. servers, it is characterised in that including:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The access request message for access service that receiving terminal apparatus send;
According to the access request message, the first network environmental information of the terminal device is obtained;The first network environment Information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;
According to the second network environment information of each server for prestoring, it is determined that the first network environment with the terminal device The second server of information match;The positional information of second network environment information including the server and/or described Internet service provider's information of server;
Access response message is sent to the terminal device, the company of the second server is carried in the access response message Information is connect, the link information is used to indicate the terminal device to access the service that the second server is provided.
A kind of 18. terminal devices, it is characterised in that including:
Processor;
It is configured as storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
The access request message for access service is sent to first server;
The access response message that the first server sends is received, is carried in the access response message and is set with the terminal The link information of the second server that standby first network environmental information matches;Wherein, the second server is institute First server is stated after the access request message is received, according to the second network environment of each server for prestoring Information, the server matched with terminal device first network environmental information that is determining;The first network environment Information includes the positional information of the terminal device and/or Internet service provider's information of the terminal device;Second network Environmental information includes the positional information of the server and/or Internet service provider's information of the server;
Link information according to the second server accesses the service.
CN201611199816.7A 2016-12-22 2016-12-22 service access method, device and equipment Pending CN106850556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611199816.7A CN106850556A (en) 2016-12-22 2016-12-22 service access method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611199816.7A CN106850556A (en) 2016-12-22 2016-12-22 service access method, device and equipment

Publications (1)

Publication Number Publication Date
CN106850556A true CN106850556A (en) 2017-06-13

Family

ID=59135314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611199816.7A Pending CN106850556A (en) 2016-12-22 2016-12-22 service access method, device and equipment

Country Status (1)

Country Link
CN (1) CN106850556A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911722A (en) * 2017-10-31 2018-04-13 链家网(北京)科技有限公司 A kind of content distributing network dispatching method and device
WO2021189846A1 (en) * 2020-09-22 2021-09-30 平安科技(深圳)有限公司 Communication method for internet of things, central server of internet of things, device and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729591A (en) * 2008-10-29 2010-06-09 中国移动通信集团公司 User guide device, system and method
CN101425969B (en) * 2008-11-25 2010-12-08 华为技术有限公司 Scheduling method, apparatus and system
CN101938504A (en) * 2009-06-30 2011-01-05 深圳市融创天下科技发展有限公司 Cluster server intelligent dispatching method and system
CN101989951A (en) * 2010-10-28 2011-03-23 北京瑞汛世纪科技有限公司 Method, system and equipment for selecting service node
CN103874018A (en) * 2014-02-21 2014-06-18 小米科技有限责任公司 Access point information sharing method and device
CN104935670A (en) * 2015-06-30 2015-09-23 北京奇虎科技有限公司 Method, distribution server and system for mobile terminal to access network
US20150310026A1 (en) * 2014-04-29 2015-10-29 International Business Machines Corporation Accessing logical storage in a storage cluster

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729591A (en) * 2008-10-29 2010-06-09 中国移动通信集团公司 User guide device, system and method
CN101425969B (en) * 2008-11-25 2010-12-08 华为技术有限公司 Scheduling method, apparatus and system
CN101938504A (en) * 2009-06-30 2011-01-05 深圳市融创天下科技发展有限公司 Cluster server intelligent dispatching method and system
CN101989951A (en) * 2010-10-28 2011-03-23 北京瑞汛世纪科技有限公司 Method, system and equipment for selecting service node
CN103874018A (en) * 2014-02-21 2014-06-18 小米科技有限责任公司 Access point information sharing method and device
US20150310026A1 (en) * 2014-04-29 2015-10-29 International Business Machines Corporation Accessing logical storage in a storage cluster
CN104935670A (en) * 2015-06-30 2015-09-23 北京奇虎科技有限公司 Method, distribution server and system for mobile terminal to access network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911722A (en) * 2017-10-31 2018-04-13 链家网(北京)科技有限公司 A kind of content distributing network dispatching method and device
CN107911722B (en) * 2017-10-31 2020-06-16 贝壳找房(北京)科技有限公司 Content distribution network scheduling method and device, electronic equipment and computer readable storage medium
WO2021189846A1 (en) * 2020-09-22 2021-09-30 平安科技(深圳)有限公司 Communication method for internet of things, central server of internet of things, device and medium

Similar Documents

Publication Publication Date Title
EP2975821B1 (en) Network connection method and apparatus
CN105847430B (en) Mix application page data access method and device
CN104780155B (en) Apparatus bound method and device
CN104580637B (en) Telephone number labeling method, terminal and Cloud Server
CN106921560A (en) Voice communication method, apparatus and system
CN106126685B (en) Page loading method and device
CN104462570B (en) Web page contents acquisition methods and device
CN109005096B (en) Application interaction method and device
CN105183513A (en) Application recommendation method and apparatus
KR101810514B1 (en) Methods, devices, program and recording medium for calling based on cloud card
CN107730847A (en) Sharing articles finding method and device
CN108833585A (en) Information interacting method, device and storage medium
CN106454998A (en) Wireless local area network access method and apparatus, and terminal
CN108600529A (en) Information interacting method, device and computer readable storage medium
CN107220059A (en) The display methods and device of application interface
CN106792892A (en) The access control method and device of application program
CN107105339A (en) A kind of methods, devices and systems for playing live video
CN105657690A (en) Method and device for processing mobile terminal setting information
JP6634434B2 (en) Device labeling method, apparatus, program, and recording medium
CN106850556A (en) service access method, device and equipment
CN107944928A (en) The distribution method and device of certificate code
CN110221813A (en) Data connection establishing method, device, storage medium and the electronic equipment of application
CN104486390B (en) The method and device of data sharing
CN107070816A (en) Recognition methods, device and the mobile terminal of application
CN103929677B (en) The method and apparatus that multimedia file is played

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170613