A kind of method of client roaming across servers
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method that client is adopting customer end/server mode to carry out realizing in the network of terminal management roaming across servers.
Background technology
Along with the development of information technology, the Internet is widely used in all trades and professions.But while offering convenience, more and more huger network also brings new problem of management and security risk.Emerging various Intranet and terminal management system adopt client/server management mode to achieve the centralized management of wholesale intranet and terminal, substantially increase management cost and operating efficiency, also ensure that the fail safe of network largely.
But management just means restriction, if the client registered on a zone management server wants the management area access network roaming into another zone management server, often need to re-register client or system manager artificially authorizes, not only bothered but also inefficiency.Such as one a lot of compared with the branch company of large enterprises, and different branch companies client registers is on different zone management server, probably like this cause these employees it is network limited time the work of other branch companies temporarily, even affect the normal operation of company.
Summary of the invention
The object of the invention is to a kind of method proposing client roaming across servers, applied range, less demanding to environmental unit, interference is not caused to existing network simultaneously.
For reaching this object, the present invention by the following technical solutions:
A method for client roaming across servers, is characterized in that, comprises the following steps:
The computer of A, installation client is in and adopts customer end/server mode to realize in the network of terminal management;
B, each zone management server are by respective address and management area information real-time report to roam server, and roam server preserves address and the management area information of all zone management server;
C, client judge whether the IP address of this computer changes, and if so, goes to step D, if not, then belong to non-roaming state, with zone management server normal communication;
D, client judge whether the network address of the gateway of this computer access network changes with comparing last time, if so, goes to step E, if not, then belong to non-roaming state, with zone management server normal communication;
E, client are enabled roaming state and are judged;
F, client receive address and the management area information of all zone management server from roam server;
According to the address of zone management server and management area information, G, client judge that this computer current home is in the range of management of which zone management server device, and record the address of this zone management server;
H, client judge that whether current region management server address and last address of recording be consistent, if so, then belong to non-roaming state, with zone 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 adapter client to current region management server;
J, client are from current region management server receiving management strategy Sum fanction, and accept current management service management, roaming completes.
Have employed technical scheme of the present invention, only need to add a roam server in existing client/server management mode network, the trans-regional roaming of client cross-server can be realized.The method does not rely on special hardware or other network equipments, avoids the dependence to equipment and complex environment, and does not affect the normal operation of network.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of client roaming across servers in the specific embodiment of the invention
Embodiment
Technical scheme of the present invention is further illustrated by embodiment below in conjunction with accompanying drawing.
The main thought of technical solution of the present invention is by adding a roam server in the network of client/server management mode, the client of roam server to roaming is carried out authentication and is sent the client of instruction adapter roaming to current zone management server, finally realizes client roaming across servers.
Fig. 1 is the realization flow figure of client roaming across servers in the specific embodiment of the invention.As shown in Figure 1, this flow process comprises the following steps:
The computer of step 101, installation client is in and adopts customer end/server mode to realize in the network of terminal management, has at least 2 zone management server in network.
Step 102, each zone management server are by respective address and management area information real-time report to roam server, and roam server preserves address and the management area information of all zone 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 whether this Computer IP address changes according to the IP address of last time record.If this Computer IP address does not change, then go to step 104, if this Computer IP address change, then go to step 105.
Step 104, client are in non-roaming state, with zone manager normal communication.
The gateway network address of step 105, client records present access network, and judge whether the gateway network address accessed changes.If the network address of gateway does not change, then go to step 104, if gateway network address changes, then go to step 106.
Step 106, client are enabled roaming state and are judged.
Step 107, client receive address and the management area information of all zone management server from roam server.
After client enables roaming state judgement, to address and the management area information of all zone management server of roam server request, roam server carries out authentication according to registered client feature to client, is verified rear client sending zone management server information.
According to the address of zone management server and management area information, step 108, client judge that this computer current home is in the range of management of which zone management server, and record the address of this zone 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 that whether the address of recording with the last time is consistent.If current region manager address is consistent with the address that the last time records, then go to step 104, if current region manager address is different from the address that the last time records, then go to step 110.
Step 111, client roaming-state are determined, and report own identification feature and current region management server address to server.
Client identity feature is sent to current region management server by step 112, roaming management server, by current region management server adapter client.
Step 113, client are from current region management server receiving management strategy Sum fanction, and accept current management service management, roaming completes.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, any people being familiar with this technology is in the technical scope disclosed by the present invention; the change 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.