A kind of method of client cross-server roaming
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of client and adopting customer end/server mode to carry out realizing in the network of terminal management the method for cross-server roaming.
Background technology
Along with the development of information technology, the Internet has been widely used in all trades and professions.Yet when offering convenience, more and more huger network has also brought new problem of management and security risk.Emerging various Intranets and terminal management system adopt the client/server management mode to realize the centralized management of wholesale intranet and terminal, have improved management cost and operating efficiency greatly, have also guaranteed the fail safe of network largely.
Yet management just means restriction, if the client of registering on a district management server wants to roam into the management area access network of another district management server, often need to re-register client or the system manager artificially authorizes, not only bothered but also inefficiency.A lot of such as a family than the branch company of large enterprises, and different branch companies client has been registered on the different district management servers, probably like this cause these employees it is network limited time the work of other branch companies temporarily, even influence the normal operation of company.
Summary of the invention
The objective of the invention is to propose a kind of method of client cross-server roaming, applied range, less demanding to environmental unit, existing network is not caused interference simultaneously.
For reaching this purpose, the present invention by the following technical solutions:
A kind of method of client cross-server roaming is characterized in that, may further comprise the steps:
The computer of A, installation client is in the network that adopts customer end/server mode to realize terminal management;
B, each district management server are given roam server with separately address and management area information real-time report, and roam server is preserved the address and the management area information of All Ranges management server;
C, client judge whether the IP address of this computer changes, if, go to step D, if not, then belong to non-roaming state, with district management server normal communication;
D, client judge whether the same inferior the comparing in the network address of the gateway of this computer access network changes, if, go to step e, if not, then belong to non-roaming state, with district management server normal communication;
E, client are enabled roaming state and are judged;
F, client receive the address and the management area information of all district management servers from roam server;
G, client are judged the current range of management that belongs to which district management server device of this computer according to the address and the management area information of district management server, and the address of writing down this district management server;
H, client judge whether current region management server address is consistent with the address of last record, if, then belong to non-roaming state, with district management server normal communication, if not, then go to step I;
I, client determine that this computer is in roaming state, and report roam server, and roam server sends instruction to the current region management server and takes over client;
J, client are accepted current management service management from current region management server receiving management strategy and rule, and roaming is finished.
Adopt technical scheme of the present invention, only need in existing client/server management mode network, add a roam server, can realize the trans-regional roaming of client cross-server.This method does not rely on special hardware or other network equipments, has avoided the dependence to equipment and complex environment, and does not influence the normal operation of network.
Description of drawings
Fig. 1 is the realization flow figure of client cross-server roaming in the specific embodiment of the invention
Embodiment
Further specify technical scheme of the present invention below in conjunction with accompanying drawing and by embodiment.
The main thought of technical solution of the present invention is by add a roam server in the network of client/server management mode, roam server carries out authentication and sends the client that roaming is taken in instruction to current district management server the client of roaming, finally realizes the roaming of client cross-server.
Fig. 1 is the realization flow figure of client cross-server roaming in the specific embodiment of the invention.As shown in Figure 1, this flow process may further comprise the steps:
The computer of step 101, installation client is in the network that adopts customer end/server mode to realize terminal management, and at least 2 district management servers are arranged in the network.
Step 102, each district management server are given roam server with separately address and management area information real-time report, and roam server is preserved the address and the management area information of All Ranges management server.
The IP address of step 103, this computer of client records, and judge whether this Computer IP address changes.
The IP address of this computer of client records, and judge according to the IP address of last time record whether this Computer IP address changes.If this Computer IP address does not change, then go to step 104, if this Computer IP address change then goes to step 105.
Step 104, client are in non-roaming state, with the zone manager normal communication.
The gateway network address of step 105, the current access network of client records, and judge whether the gateway network address of inserting changes.If the network address of gateway does not change, then go to step 104, if the gateway network address changes, then go to step 106.
Step 106, client are enabled roaming state and are judged.
Step 107, client receive the address and the management area information of all district management servers from roam server.
After client is enabled the roaming state judgement, address and management area information to roam server request All Ranges management server, roam server carries out authentication according to the registered client feature to client, and checking is by client sending zone, back management server information.
Step 108, client are judged the current range of management that belongs to which district management server of this computer according to the address and the management area information of district management server, and the address of writing down this district management server.
The address of step 109, client records current region management server.
Step 110, client judge whether current region management server address changes.
The address of client records current region management server, and judge whether consistent with the address of last record.If current region manager address is consistent with the address of last record, then go to step 104, if current region manager address is different with the address of last record, then go to step 110.
Step 111, client roaming state are determined, and are reported self identity characteristic and current region management server address to server.
Step 112, roaming management server send to the current region management server with the client identity feature, take over client by the current region management server.
Step 113, client are accepted current management service management from current region management server receiving management strategy and rule, and roaming is finished.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.