Summary of the invention
The embodiment of the invention discloses a kind of address of service distribution method, relevant device and system, can manage and divide and according to the loading condition distribution services address of operation system operation system.
The first aspect of the embodiment of the present invention provides a kind of address of service distribution method, and described method comprises:
Send the address of service request message of carried terminal type information and terminal versions information to the address of service distribution server, so that described address of service distribution server is according to described terminal type information, described terminal versions information and business service group's load information of getting from each business service group, calculate the business service group's of least-loaded portal server address, and calculate idle IP address according to described address of service request message; Described business service group comprises portal server and at least one service server;
Receive described IP address and described portal server address that described address of service distribution server sends, and access the indicated portal server in described portal server address based on described IP address.
Further, described address of service distribution server is according to described terminal type information, described terminal versions information and business service group's load information of getting from each business service group, calculate the business service group's of least-loaded portal server address, and calculate idle IP address according to described address of service request message and comprise:
Described address of service distribution server is searched the business service group with described terminal type information and described terminal versions information matches;
Calculate the business service group's of the load factor minimum in the described business service group who finds the address of portal server;
Calculate idle IP address according to described address of service request message.
The second aspect of the embodiment of the present invention provides another kind of address of service distribution method, and described method comprises:
The carried terminal type information that receiving terminal sends and the address of service request message of terminal versions information;
According to described terminal type information, described terminal versions information and business service group's load information of getting from each business service group, calculate the business service group's of least-loaded portal server address, and calculate idle IP address according to described address of service request message; Described business service group comprises portal server and at least one service server;
Send described IP address and described portal server address to terminal, so that described terminal is accessed the indicated portal server in described portal server address based on described IP address.
Further, before the carried terminal type information that described receiving terminal sends and the address of service request message of terminal versions information, described method also comprises:
Regularly from each business service group, obtain business service group load information.
Further, described according to described terminal type information, described terminal versions information and business service group's load information of getting from each business service group, calculate the business service group's of least-loaded portal server address, and calculate idle IP address according to the address of service request message and comprise:
Search the business service group with described terminal type information and described terminal versions information matches;
Calculate the business service group's of the load factor minimum in the described business service group who finds the address of portal server;
Calculate idle IP address according to described address of service request message.
The third aspect of the embodiment of the present invention provides a kind of terminal, and described terminal comprises:
The request message sending module, for sending the address of service request message of carried terminal type information and terminal versions information to the address of service distribution server, so that described address of service distribution server is according to described terminal type information, described terminal versions information and business service group's load information of getting from each business service group, calculate the business service group's of least-loaded portal server address, and calculate idle IP address according to described address of service request message; Described business service group comprises portal server and at least one service server;
The address receiver module, the described IP address and the described portal server address that for receiving described address of service distribution server, send, and access the indicated portal server in described portal server address based on described IP address.
Further, the described request message transmission module specifically for:
Send the address of service request message of carried terminal type information and terminal versions information to the address of service distribution server, so that described address of service distribution server is searched the business service group with described terminal type information and described terminal versions information matches, calculate the address of the portal server in the business service group of the load factor minimum in the described business service group who finds, and calculate idle IP address according to described address of service request message.
Embodiment of the present invention fourth aspect provides a kind of address of service distribution server, and described address of service distribution server comprises:
The request message receiver module, the carried terminal type information sent for receiving terminal and the address of service request message of terminal versions information;
Address calculation module, for according to described terminal type information, described terminal versions information and business service group's load information of getting from each business service group, calculate the business service group's of least-loaded portal server address, and calculate idle IP address according to described address of service request message; Described business service group comprises portal server and at least one service server;
The address sending module, for sending described IP address and described portal server address to terminal, so that described terminal is accessed the indicated portal server in described portal server address based on described IP address.
Further, described address of service distribution server also comprises:
The load information acquisition module, for regularly obtaining business service group load information from each business service group.
Further, described address calculation module comprises:
Search unit, for searching the business service group with described terminal type information and described terminal versions information matches;
The portal address computing unit, for the address of the portal server in the business service group of the load factor minimum of calculating the described business service group who finds;
The IP address calculation, for calculating idle IP address according to described address of service request message.
The 5th aspect of the embodiment of the present invention provides a kind of address of service distribution system, and described system comprises terminal, address of service distribution server and a plurality of business service group, wherein:
The described terminal that described terminal provides for the embodiment of the present invention third aspect;
The described address of service distribution server that described address of service distribution server provides for embodiment of the present invention fourth aspect;
Described business service group comprises portal server and at least one service server.
In the embodiment of the present invention, terminal can send the address of service request message of carried terminal type information and terminal versions information to the address of service distribution server, so that the address of service distribution server is according to terminal type information, terminal versions information and the business service group's load information got from each business service group, calculate the business service group's of least-loaded portal server address, and calculate idle IP address according to the address of service request message, then terminal can receive IP address and the portal server address that the address of service distribution server sends, and based on the indicated portal server of IP address access door server address, thereby can when obtaining the IP address, obtain starting up of terminal the portal server address, realization manages and divides and avoid load equalizer to become performance bottleneck operation system.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of address of service distribution method, relevant device and system, can manage and divide and according to the loading condition distribution services address of operation system operation system.Below be elaborated respectively.
Refer to Fig. 1, Fig. 1 shows the flow chart of a kind of address of service distribution method that the embodiment of the present invention provides.As shown in Figure 1, this address of service distribution method can comprise the following steps.
S101: send the address of service request message of carried terminal type information and terminal versions information to the address of service distribution server, so that the address of service distribution server is according to terminal type information, terminal versions information and business service group's load information of getting from each business service group, calculate the business service group's of least-loaded portal server address, and calculate idle IP address according to the address of service request message;
Particularly, terminal (for example, digital TV terminal or mobile terminal etc.) can agreement+(Dynamic Host Configuration Protocol+ be set by DynamicHost, DHCP+) send broadcast to the address of service distribution server, broadcast can be the address of service request message of carried terminal type information and terminal versions information; After the address of service distribution server receives the address of service request message, at first can search with terminal type information and terminal versions information (for example, hardware version information and software version information) coupling business service group, then can calculate the business service group's of the load factor minimum in the business service group who finds the address of door (Portal) server, and calculate idle IP address according to the address of service request message.It should be noted that, the business service group here comprises Portal server and at least one service server.
S102: receive IP address and Portal server address that the address of service distribution server sends, and based on the indicated Portal server in access Portal server address, IP address;
Particularly, terminal can be resolved the message of carrying IP address and Portal server address received from the address of service distribution server by DHCP+, thereby obtain idle IP address and relative idle Portal server address, then the indicated Portal server in access Portal server address, IP address that terminal can be obtained based on parsing, Portal server carries out respective handling after receiving the access message of terminal, and the related service of service server is asked, after service server carries out the processing of related service, result is returned to terminal.
In the address of service distribution method provided at Fig. 1, terminal sends the address of service request message of carried terminal type information and terminal versions information to the address of service distribution server, so that the address of service distribution server is according to terminal type information, terminal versions information and the business service group's load information got from each business service group, calculate the business service group's of least-loaded Portal server address, and calculate idle IP address according to the address of service request message, then terminal can receive IP address and the Portal server address that the address of service distribution server sends, and based on the indicated Portal server in access Portal server address, IP address, thereby can when obtaining the IP address, obtain starting up of terminal the portal server address, realization manages and divides and avoid load equalizer to become performance bottleneck operation system.
Refer to Fig. 2, Fig. 2 shows the flow chart of the another kind of address of service distribution method that the embodiment of the present invention provides.As shown in Figure 2, this address of service distribution method can comprise the following steps.
S201: the carried terminal type information that receiving terminal sends and the address of service request message of terminal versions information;
Particularly, but the carried terminal type information that address of service distribution server receiving terminal (for example, digital TV terminal or mobile terminal etc.) sends with the form of broadcast by DHCP+ and the address of service request message of terminal versions information.
S202: according to terminal type information, terminal versions information and business service group's load information of getting from each business service group, calculate the business service group's of least-loaded Portal server address, and calculate idle IP address according to the address of service request message;
Particularly, the address of service distribution server can at first search with terminal type information and terminal versions information (for example, hardware version information and software version information) coupling business service group, then can calculate the business service group's of the load factor minimum in the business service group who finds the address of Portal server, and can calculate idle IP address according to the address of service request message.It should be noted that, the business service group here comprises Portal server and at least one service server.
S203: send IP address and Portal server address to terminal, so that terminal is based on the indicated Portal server in access Portal server address, IP address;
Particularly, the address of service distribution server can send carry idle IP address and relative idle Portal server address DHCP+ message message to terminal, terminal can be resolved this message message to obtain IP address and Portal server address by DHCP+, then the indicated Portal server in access Portal server address, IP address obtained based on parsing, Portal server carries out respective handling after receiving the access message of terminal, and the related service of service server is asked, after service server carries out the processing of related service, result is returned to terminal.
In the address of service distribution method provided at Fig. 2, the carried terminal type information that the address of service distribution server sends by receiving terminal and the address of service request message of terminal versions information, and according to terminal type information, terminal versions information and the business service group's load information got from each business service group, calculate the business service group's of least-loaded Portal server address, and calculate idle IP address according to the address of service request message, and send this IP address and Portal server address to terminal, so that terminal is based on the indicated portal server in access Portal server address, IP address, when obtaining the IP address, obtains starting up of terminal the portal server address, realization manages and divides and avoid load equalizer to become performance bottleneck operation system.
Refer to Fig. 3, Fig. 3 shows the flow chart of the another kind of address of service distribution method that the embodiment of the present invention provides.As shown in Figure 3, this address of service distribution method can comprise the following steps.
S301: regularly from each business service group, obtain business service group load information;
Particularly, address of service distribution server regularly each business service group from operation system obtains business service group load information, business service group's load information can comprise, for example, business service group's load factor, current business bundle of services online user number/business service group can bear number of users; Business service group comprises Portal server and at least one service server, and the address of service distribution server can obtain from each business service group's service server business service group load information; In addition, the fixed time interval of address of service distribution server timing acquisition business service group load information can dynamically be adjusted, when the number of concurrent of address of service distribution server is larger, fixed time interval is less, can effectively be controlled at so large and give that address of service is distributed is more reasonable.
S302: the carried terminal type information that receiving terminal sends and the address of service request message of terminal versions information;
Particularly, but the carried terminal type information that address of service distribution server receiving terminal (for example, digital TV terminal or mobile terminal etc.) sends with the form of broadcast by DHCP+ and the address of service request message of terminal versions information.
S303: search the business service group with terminal type information and terminal versions information matches;
In step S303, because different business service groups serves dissimilar and terminal version, therefore the address of service distribution server need at first find with the address of service request message in terminal type information and the business service group of terminal versions information (comprising hardware version information or software version information etc.) coupling, particularly, the address of service distribution server can be determined the COS that terminal need to provide according to terminal type information and terminal versions information, then can be according to terminal type information, the COS that terminal versions information and terminal need to provide finds corresponding business service group.For example, when terminal type is smart mobile phone, when the MSN version on terminal is QQ2013, the address of service distribution server can find can for the QQ2013 version provide service and with the business service group of smart mobile phone coupling.
S304: the address of the business service group's of the load factor minimum in the business service group that calculating finds Portal server;
Particularly, the address of service distribution server can compare the bouquet load factor with business service group terminal type information and terminal versions information matches that find, and the business service group of business load index minimum is made as to relatively idle business service group.
S305: according to the address of service request message, calculate idle IP address;
Particularly, because the address of service request message can be to send by DHCP+, the address of service request message is the DHCP+ message format, so the address of service distribution server can calculate idle IP address according to the address of service request message.
S306: send IP address and Portal server address to terminal, so that terminal is based on the indicated Portal server in access Portal server address, IP address;
Particularly, the address of service distribution server can send carry idle IP address and relative idle Portal server address DHCP+ message message to terminal, terminal can be resolved this message message to obtain IP address and Portal server address by DHCP+, then the indicated Portal server in access Portal server address, IP address obtained based on parsing, Portal server carries out respective handling after receiving the access message of terminal, and the related service of service server is asked, after service server carries out the processing of related service, result is returned to terminal.
In the address of service distribution method provided at Fig. 3, the address of service distribution server can regularly obtain business service group load information from each business service group, the carried terminal type information that receiving terminal sends and the address of service request message of terminal versions information, and according to terminal type information, terminal versions information and the business service group's load information got from each business service group, calculate the business service group's of least-loaded Portal server address, and calculate idle IP address according to the address of service request message, and send this IP address and Portal server address to terminal, so that terminal is based on the indicated portal server in access Portal server address, IP address, thereby can when obtaining the IP address, obtain starting up of terminal the portal server address, realization manages and divides and avoid load equalizer to become performance bottleneck operation system.
Refer to Fig. 4, Fig. 4 shows the structural representation of a kind of terminal that the embodiment of the present invention provides.This terminal 40 can be, for example, and mobile terminal or digital TV terminal etc.As shown in Figure 4, this terminal 40 can comprise request message sending module 401 and address receiver module 402, wherein:
Request message sending module 401, for sending the address of service request message of carried terminal type information and terminal versions information to the address of service distribution server, so that the address of service distribution server is according to terminal type information, terminal versions information and business service group's load information of getting from each business service group, calculate the business service group's of least-loaded portal server address, and calculate idle IP address according to the address of service request message; Particularly, request message sending module 401 can send broadcast to the address of service distribution server by DHCP+, and broadcast can be the address of service request message of carried terminal type information and terminal versions information; After the address of service distribution server receives the address of service request message, at first can search with terminal type information and terminal versions information (for example, hardware version information and software version information) coupling business service group, then can calculate the business service group's of the load factor minimum in the business service group who finds the address of Portal server, and calculate idle IP address according to the address of service request message.It should be noted that, the business service group here comprises Portal server and at least one service server.
Address receiver module 402, the IP address and the Portal server address that for receiving the address of service distribution server, send, and based on the indicated Portal server in access Portal server address, IP address, particularly, address receiver module 402 can be resolved the message of carrying IP address and Portal server address received from the address of service distribution server by DHCP+, thereby obtain idle IP address and relative idle Portal server address, then the indicated Portal server in access Portal server address, IP address that terminal can be obtained based on parsing, Portal server carries out respective handling after receiving the access message of terminal, and the related service of service server is asked, after service server carries out the processing of related service, result is returned to terminal.
Wherein, the terminal that Fig. 4 provides can send the address of service request message of carried terminal type information and terminal versions information to the address of service distribution server, so that the address of service distribution server is according to terminal type information, terminal versions information and the business service group's load information got from each business service group, calculate the business service group's of least-loaded Portal server address, and calculate idle IP address according to the address of service request message, then terminal can receive IP address and the Portal server address that the address of service distribution server sends, and based on the indicated Portal server in access Portal server address, IP address, thereby when obtaining the IP address, obtains starting up of terminal the portal server address, realization manages and divides and avoid load equalizer to become performance bottleneck operation system.
Refer to Fig. 5, Fig. 5 shows the structural representation of a kind of address of service distribution server that the embodiment of the present invention provides.As shown in Figure 5, this terminal 50 can comprise request message receiver module 501, address calculation module 502 and address sending module 503, wherein:
Request message receiver module 501, the carried terminal type information sent for receiving terminal and the address of service request message of terminal versions information; Particularly, but the carried terminal type information that request message receiver module 501 receiving terminals (for example, digital TV terminal or mobile terminal etc.) send with the form of broadcast by DHCP+ and the address of service request message of terminal versions information.
Address calculation module 502, for according to terminal type information, terminal versions information and business service group's load information of getting from each business service group, calculate the business service group's of least-loaded Portal server address, and calculate idle IP address according to the address of service request message; Particularly, address calculation module 502 can at first search with terminal type information and terminal versions information (for example, hardware version information and software version information) coupling business service group, then can calculate the business service group's of the load factor minimum in the business service group who finds the address of Portal server, and can calculate idle IP address according to the address of service request message.It should be noted that, the business service group here comprises Portal server and at least one service server.
Address sending module 503, for sending IP address and Portal server address to terminal, so that terminal is based on the indicated Portal server in access Portal server address, IP address, particularly, address sending module 503 can send carry idle IP address and relative idle Portal server address DHCP+ message message to terminal, terminal can be resolved this message message to obtain IP address and Portal server address by DHCP+, then the indicated Portal server in access Portal server address, IP address obtained based on parsing, Portal server carries out respective handling after receiving the access message of terminal, and the related service of service server is asked, after service server carries out the processing of related service, result is returned to terminal.
Wherein, the carried terminal type information that the address of service distribution server that Fig. 5 provides can send by receiving terminal and the address of service request message of terminal versions information, and according to terminal type information, terminal versions information and the business service group's load information got from each business service group, calculate the business service group's of least-loaded Portal server address, and calculate idle IP address according to the address of service request message, and send this IP address and Portal server address to terminal, so that terminal is based on the indicated portal server in access Portal server address, IP address, thereby can when obtaining the IP address, obtain starting up of terminal the portal server address, realization manages and divides and avoid load equalizer to become performance bottleneck operation system.
Refer to Fig. 6, Fig. 6 shows the structural representation of the another kind of address of service distribution server that the embodiment of the present invention provides.Wherein, the address of service distribution server 60 shown in Fig. 6 is that address of service distribution server 50 as shown in Figure 5 is optimized and obtains.In the address of service distribution server 60 shown in Fig. 6, further comprised load information acquisition module 601, while address calculation module 602 has specifically comprised searches unit 6021, Portal address calculation 6022 and IP address calculation, wherein:
Load information acquisition module 601, for regularly obtaining business service group load information from each business service group; Particularly, load information acquisition module 601 regularly each business service group from operation system obtains business service group load information, business service group's load information can comprise, for example, business service group's load factor, current business bundle of services online user number/business service group can bear number of users; Business service group comprises Portal server and service server, and the address of service distribution server can obtain from each business service group's service server business service group load information; In addition, the fixed time interval of address of service distribution server timing acquisition business service group load information can dynamically be adjusted, when the number of concurrent of address of service distribution server is larger, fixed time interval is less, can effectively be controlled at so large and give that address of service is distributed is more reasonable.
Search unit 6021, for searching the business service group with terminal type information and terminal versions information matches, because different business service groups serves dissimilar and terminal version, therefore the address of service distribution server need at first find with the address of service request message in terminal type information and the business service group of terminal versions information (comprising hardware version information or software version information etc.) coupling, particularly, the address of service distribution server can be determined the COS that terminal need to provide according to terminal type information and terminal versions information, then can be according to terminal type information, the COS that terminal versions information and terminal need to provide finds corresponding business service group.For example, when terminal type is smart mobile phone, when the MSN version on terminal is QQ2013, the address of service distribution server can find can for the QQ2013 version provide service and with the business service group of smart mobile phone coupling.
Portal address calculation 6022, the address of the business service group's of the business service group's who finds for calculating load factor minimum Portal server; Particularly, Portal address calculation 6022 can compare the bouquet load factor with business service group terminal type information and terminal versions information matches that find, and the business service group of business load index minimum is made as to relatively idle business service group.
IP address calculation 6023, for calculating idle IP address according to the address of service request message; Particularly, because the address of service request message can be to send by DHCP+, the address of service request message is the DHCP+ message format, so IP address calculation 6023 can calculate idle IP address according to the address of service request message.
Wherein, the address of service distribution server that Fig. 6 provides can regularly obtain business service group load information from each business service group, the carried terminal type information that receiving terminal sends and the address of service request message of terminal versions information, and according to terminal type information, terminal versions information and the business service group's load information got from each business service group, calculate the business service group's of least-loaded Portal server address, and calculate idle IP address according to the address of service request message, and send this IP address and Portal server address to terminal, so that terminal is based on the indicated portal server in access Portal server address, IP address, thereby can when obtaining the IP address, obtain starting up of terminal the portal server address, realization manages and divides and avoid load equalizer to become performance bottleneck operation system.
Fig. 7 shows the structural representation of the address of service distribution system that the embodiment of the present invention provides.This address of service distribution system comprises terminal 71 and service system 72; Wherein:
Service system 72 comprises address of service distribution server 721, switch 722 and n business service group 7231~723n, and each the business service group in n business service group 7231~723n comprises Portal server (Server) and a plurality of business Server that are connected respectively with Portal Server; Address of service distribution server 721 connects switches 722, and switch 722 connects respectively each the Portal Server in n business service group 7231~723n, and the switch 722 in terminal 71 Connection Service systems 72.
Further, terminal 71 can be terminal 40 as shown in Figure 4.
Further, the address of service distribution server can be address of service distribution server 50 as shown in Figure 5 or address of service distribution server 60 as shown in Figure 6.
Wherein, in the address of service distribution system provided at Fig. 7, the carried terminal type information that the address of service distribution server can send by receiving terminal and the address of service request message of terminal versions information, and according to terminal type information, terminal versions information and the business service group's load information got from each business service group, calculate the business service group's of least-loaded Portal server address, and calculate idle IP address according to the address of service request message, and send this IP address and Portal server address to terminal, so that terminal is based on the indicated portal server in access Portal server address, IP address, thereby can when obtaining the IP address, obtain starting up of terminal the portal server address, realization manages and divides and avoid load equalizer to become performance bottleneck operation system.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the hardware that instruction is relevant to complete by program, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
Above address of service distribution method, relevant device and the system that the embodiment of the present invention is provided is described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention simultaneously.