Summary of the invention
In view of this, in order to solve the problem of the flow process complexity of existence networked devices switching server in prior art, the object of the invention is to propose a kind of method for registering.There is a basic understanding some aspects in order to the embodiment to disclosure, shown below is simple summary.This summarized section is not extensive overview, neither determine key/critical component or describe the protection range of these embodiments.Its sole purpose presents some concepts by simple form, in this, as the preamble of following detailed description.
In some optional embodiments, the described method for registering, for user equipment side, comprising:
The registration request comprising the mark of this equipment and the access information of first server and mark is sent to second server;
Wherein, described first server is the server of the current registration of this equipment;
Receive the accreditation verification comprising the information of described second server that described second server sends, and upgrade the server info that this equipment registers.
In some optional embodiments, the described method for registering, for second server side, comprising:
Receive the registration request comprising the mark of described subscriber equipment and the access information of first server and mark that subscriber equipment sends;
Wherein, described first server is the server of the current registration of described subscriber equipment;
Send a request message to described first server, and receive the log-on message of the described subscriber equipment of described first server feedback; Described request message comprises the mark of described subscriber equipment;
Add the log-on message of described subscriber equipment to this equipment, and send the accreditation verification comprising the information of this equipment to described subscriber equipment.
In some optional embodiments, the described method for registering, for first server side, is characterized in that, comprising:
Receive the request message that second server sends, described request message comprises the mark of subscriber equipment;
After judging that according to the mark of described subscriber equipment described subscriber equipment is the equipment being registered to this equipment, send the log-on message of described subscriber equipment to described second server.
Another object of the present invention proposes a kind of device for registering.
In some optional embodiments, the described device for registering, for user equipment side, comprising:
Transmitting element, for sending the registration request comprising the mark of this equipment and the access information of first server and mark to second server;
Wherein, described first server is the server of the current registration of this equipment;
Updating block, for receiving the accreditation verification comprising the information of described second server that described second server sends, and upgrades the server info that this equipment registers.
In some optional embodiments, the described device for registering, for second server side, comprising:
Receiving element, for receiving the mark comprising described subscriber equipment and the first access information of first server and the registration request of mark that subscriber equipment sends;
Wherein, described first server is the server of the current registration of described subscriber equipment;
Transmitting element, for sending a request message to described first server, and receives the log-on message of the described subscriber equipment of described first server feedback; Described request message comprises the mark of described subscriber equipment;
Adding device, for adding the log-on message of described subscriber equipment to this equipment, and sends the accreditation verification comprising the information of this equipment to described subscriber equipment.
In some optional embodiments, the described device for registering, for first server side, comprising:
First receiving element, for receiving the request message that second server sends, described request message comprises the mark of subscriber equipment;
First transmitting element, after judging that described subscriber equipment is the equipment being registered to this equipment, sends the log-on message of described subscriber equipment to described second server for this equipment according to the mark of described subscriber equipment.
Adopt above-described embodiment, following effect can be reached:
Simplify the flow process of internet of things equipment switching server;
Decrease the operation of internet of things equipment, reduce the running load that internet of things equipment brings because of switching server.
In order to above-mentioned and relevant object, will describe in detail and the feature particularly pointed out in the claims after one or more embodiment comprises.Explanation below and accompanying drawing describe some illustrative aspects in detail, and its instruction is only some modes in the utilizable various mode of principle of each embodiment.Other benefit and novel features become obvious by considering by reference to the accompanying drawings along with detailed description below, and the disclosed embodiments will comprise all these aspects and theirs is equivalent.
Embodiment
The following description and drawings illustrate specific embodiment of the invention scheme fully, to enable those skilled in the art to put into practice them.Other embodiments can comprise structure, logic, electric, process and other change.Embodiment only represents possible change.Unless explicitly requested, otherwise independent parts and function are optional, and the order of operation can change.The part of some embodiments and feature can be included in or replace part and the feature of other embodiments.The scope of embodiment of the present invention comprises the gamut of claims, and all obtainable equivalent of claims.In this article, these embodiments of the present invention can be represented with term " invention " individually or always, this is only used to conveniently, and if in fact disclose the invention more than, be not the scope that automatically will limit this application is any single invention or inventive concept.
Fig. 1 shows the schematic flow sheet of a kind of method for registering of the embodiment of the present invention.
As shown in Figure 1, in some illustrative embodiments, a kind of described method for registering, for user equipment side, comprises following step:
Step S101, sends the registration request comprising the mark of this equipment and the access information of first server and mark to second server;
Wherein, described first server is the server of the current registration of this equipment; Described access information can be IP address (Internet protocol address), MAC Address (hardware address) etc., access information and the mark of described first server is carried in described registration request, exactly in order to inform described second equipment, the relevant information of the first server that this equipment was originally registered, to make the second equipment according to the follow-up corresponding flow process of this information and executing;
Step S102, receives the accreditation verification comprising the information of described second server that described second server sends, and upgrades the server info that this equipment registers;
In some illustrative embodiments, the server info that described this equipment of renewal is registered comprises: the information of deleting the described first server of this device storage, adds the information of described second server;
In this equipment, be provided with the database of the information being specifically designed to the server depositing registration, when after switching server, this equipment by the information deletion of former server, and can add the information of new server;
The content of the information of the registrar that this equipment general records is similar in form, in some illustrative embodiments, the information of described first server and/or the information of second server comprise: type of server, the mark of server, server father node identifies, access information, and access rights; Described access rights are for limiting the authority of this information of access;
Optionally, this equipment also can generate the following information relevant to server: server info creation-time, server info last modification time, server info expired time, accessibility of request etc.;
Add the process of the information of described second server, exactly by the information of the described second server that carries in described accreditation verification (as type of server, the mark of server, server father node identifies, access information, access rights etc.) add process in above-mentioned database to;
Described type of server can be IN (platform node, InfrastructureNode) or MN (intermediate node, MiddleNode);
In some illustrative embodiments, described registration request also carries authentication-tokens, before receiving the accreditation verification of described second server transmission, also comprises in step S102:
Receive the message for authentication that described first server sends, and to described first server feedback acknowledgment after authentication success;
Wherein, the described message for authentication comprises the mark of described second server and described authentication-tokens; Described authentication-tokens can be a character string for authentication preset; Wherein, for the process of authentication, described second server be designated call parameter, described authentication-tokens is optional parameters; If but carried authentication-tokens in registration request, namely illustrate that this equipment needs to carry out authentication according to this authentication-tokens, then authentication-tokens described in authentication process would herein be call parameter;
This equipment receive described for the message of authentication after, whether can be the destination server that this equipment will switch according to the identity validation of described second server, can confirm that whether the authentication-tokens received wrong in addition; After confirmation, then represent authentication success, to described first server feedback acknowledgment.
Fig. 2 shows the schematic flow sheet of a kind of method for registering of the embodiment of the present invention,
As shown in Figure 2, in some illustrative embodiments, a kind of described method for registering, for second server side, comprises following step:
Step S201, receives the mark comprising described subscriber equipment and the first access information of first server and the registration request of mark that subscriber equipment sends;
Wherein, described first server is the server of the current registration of described subscriber equipment; According to described registration request, second server knows that the subscriber equipment be registered in first server needs at this facility registration;
In some illustrative embodiments, after receiving the registration request of described subscriber equipment transmission, also comprise and authentication is carried out to described subscriber equipment, and at the rear triggered step S202 of authentication success;
Suppose this equipment to store a permissions list, described permissions list comprises the mark of multiple subscriber equipment, and the process of authentication can be the mark whether having described subscriber equipment in described permissions list inquiry, if having, and authentication success, triggered step S202; Otherwise then failure, and termination process;
Optionally, described registration request also carries authentication-tokens, and described authentication-tokens can be a character string for authentication preset;
Step S202, sends a request message to described first server, and receives the log-on message of the described subscriber equipment of described first server feedback;
In this process, this equipment is exactly the access information according to described first server, sends the described request message of the log-on message for obtaining subscriber equipment to described first server;
Described request message comprises the mark of this equipment and the mark of described subscriber equipment; Optionally, described request message also may carry the mark of first server and the access information of access information and this equipment; The object of the mark and access information of carrying first server may be carry out authentication for first server according to these information, and the access information carrying this equipment is that the situation in order to prevent first server from cannot only connect according to mark and this equipment of this equipment occurs;
Optionally, if described registration request carries authentication-tokens, then described request message also carries described authentication-tokens, carries out authentication to make described first server according to this authentication-tokens;
After the log-on message (as: mark, access information, type, access rights etc. of subscriber equipment) of described subscriber equipment receiving described first server feedback, triggered step S203;
Step S203, adds the log-on message of described subscriber equipment to this equipment, and sends the accreditation verification comprising the information of this equipment to described subscriber equipment;
Suppose that the log-on message of the subscriber equipment registered all can store in resource tree, then the log-on message of described subscriber equipment is added in resource tree, and to the accreditation verification of described subscriber equipment feedback, described accreditation verification comprises the information of this equipment (as type of server, the mark of server, server father node identifies, access information, the accessibility etc. of request), to make subscriber equipment, the information of this equipment is carried out record and store;
In some illustrative embodiments, before sending a request message to described first server, also comprise:
If this equipment cannot connect according to the first access information of the described first server of carrying in described registration request and described first server, then the mark of described first server is sent to location server, and receive the second access information of the described first server obtaining described location server feedback, to make this equipment by the second access information of described first server, perform the described operation sent a request message to described first server; Described location server is exactly the server of the corresponding access information of each equipment of management, the access information of first server can have multiple, such as IP address or MAC Address or URL address (network address), if the first access information of first server is IP address, and during the appearance mistake of IP address, can other access information be passed through, as the second access information MAC Address and as described in first server connect.
Fig. 3 shows the schematic flow sheet of a kind of method for registering of the embodiment of the present invention,
As shown in Figure 3, in some illustrative embodiments, a kind of described method for registering, for first server side, comprises following step:
Step S301, receive the request message that second server sends, described request message comprises the mark of subscriber equipment;
Wherein, described subscriber equipment is the subscriber equipment being registered to this equipment;
According to described request message, know that described second server needs to obtain the log-on message of described subscriber equipment;
Step S302, sends the log-on message of described subscriber equipment to described second server;
After judging that according to the mark of described subscriber equipment described subscriber equipment is the equipment being registered to this equipment, send the log-on message of described subscriber equipment to described second server;
The log-on message of described subscriber equipment can comprise: the information such as mark, access information, device type, access rights of subscriber equipment;
In some illustrative embodiments, described request message also comprises authentication-tokens, before step S302, also comprises:
Send the mark of described authentication-tokens and described second server to described subscriber equipment;
Receive described subscriber equipment feedback for representing that authentication successfully confirms;
Wherein, described authentication-tokens can be a character string for authentication preset;
In some illustrative embodiments, after sending the log-on message of described subscriber equipment, also comprise: the log-on message of subscriber equipment described in this unit deletion;
Optionally, the process of the log-on message of described subscriber equipment described in this unit deletion also comprises and being deleted by the log-on message of subscriber equipment from register list.
With a specific embodiment, this programme is described below, relates to internet of things equipment (subscriber equipment), server 1 (first server) and server 2 (second server) in this embodiment; As shown in Figure 4, internet of things equipment was originally registered on the server, in follow-up flow process, internet of things equipment is switched on server 2, and internet of things equipment is without the need to carrying out REG/DeREG (registration/nullify) repeatedly in whole process, and detailed process is as follows:
Step S401, internet of things equipment sends registration request to server 1;
The log-on message (information such as mark, access information, type, access rights as equipment) of described registration request belongings networked devices;
Step S402, server 1 sets up registration resource (logistics net equipment);
After server 1 sets up registration resource, the log-on message of the internet of things equipment in described registration request is added in this registration resource;
Step S403, server 1 sends feedback acknowledgment to internet of things equipment;
After succeeding in registration, feedback acknowledgment is sent to described internet of things equipment, inform the registered success of described internet of things equipment, optionally, described feedback acknowledgment carry server 1 information (as type of server, the mark of server, server father node identify, access information, access rights etc.);
Step S404, internet of things equipment sets up server info resource;
Internet of things equipment, after receiving feedback acknowledgment, sets up server info resource, and adds in the server info resource of foundation by the information of server 1; Optionally, in server info resource, the information of the final server 1 stored is except comprising: except the mark of type of server, server, server father node mark, access information, access rights, also comprises that internet of things equipment generates according to server: the parameters such as the accessibility of server info creation-time, server info last modification time, server info expired time, request;
Step S405, internet of things equipment needs to be switched to other server;
If internet of things equipment needs to be registered on server 2, then triggered step S406;
Step S406, internet of things equipment sends registration request to server 2;
Internet of things equipment sends registration request to server 2; Described registration request carries access information and mark ID, the ID etc. of Physical Network equipment of server 1;
Step S407, server 2 carries out authentication;
This step is optional step, after server 2 receives described registration request, carries out authentication to internet of things equipment;
The process of authentication can be mate according to being identified in preset registration rights database of internet of things equipment, if the match is successful, then and authentication success, triggered step S408, otherwise the message then sending failed authentication to internet of things equipment, and stop current process;
Step S408, server 2 asks for the log-on message (ID of server 2, internet of things equipment ID) of internet of things equipment to server 1;
Server 2 sends the request message of the log-on message for obtaining internet of things equipment to server 1; Carry in this request message: the mark of server 1, the access information of server 1, internet of things equipment identifies, the mark of server 2, the access information of server 2; Wherein, the mark of server 2 and internet of things equipment be designated call parameter;
Optionally, if also carry authentication-tokens in described registration request, then also carry this authentication-tokens in described request message, according to this authentication-tokens, authentication is carried out to the request of server 2 to make server 1;
In this step, if server 2 cannot direct connection server 1, then server 2 can also obtain the link information (as IP address or MAC Address etc.) of server 1 by inquiring position server, above-mentioned location server according to the mark of server 1, can inquire the link information of server 1;
Step S409, server 1 carries out authentication by internet of things equipment to server 2;
This step is optional, and server 1 confirms to internet of things equipment after receiving the request message of server 2, comprise: server 1 is by the mark of server 2, authentication-tokens is sent to internet of things equipment, optionally, also comprises the out of Memory such as the mark of server 1; Whether internet of things equipment can be the current destination server needing to switch according to this server of the identity validation of server 2, and in addition, internet of things equipment can verify authentication-tokens; After being authenticated, authenticating result can be fed back to server 1, if authentication success, then triggered step S410, on the contrary then server 1 feeds back the message of failed authentication to server 2, and stops current process;
Step S410, server 1 sends the log-on message of internet of things equipment to server 2;
After authentication success, server 1 sends the log-on message of the internet of things equipment be stored in registration resource to server 2;
Step S411, server 1 deletes the log-on message of internet of things equipment;
Server 1 nullifies the registration of this internet of things equipment on this equipment, and deletes the log-on message of internet of things equipment;
Step S412, the log-on message of internet of things equipment adds in resource tree by server 2;
Suppose to establish resource tree on a server 2, the log-on message of the equipment be registered on this equipment can be stored on this resource tree by server 2, then server 2 adds to the log-on message of the internet of things equipment received in resource tree;
Step S413, server 2 sends to internet of things equipment and confirms feedback, carries the information of server 2;
The information (server father node identifies, access information, access rights etc. for the mark of server 2, type of server) of server 2 is carried in described confirmation;
Step S414, internet of things equipment increases the information of server 2;
The information of the server 2 received is added in the log-on message of the server 2 that internet of things equipment creates by internet of things equipment, suppose that this equipment is with the log-on message of unified form record server, the log-on message of server is except comprising: except the mark of type of server, server, server father node mark, access information, access rights, also comprise the information of the server 2 that this equipment generates, as: server info creation-time, server info last modification time, server info expired time, the accessibility etc. of request;
Step S415, internet of things equipment deletes the information of server 1;
Namely the log-on message of server 1 is deleted.
Fig. 5 shows the structural representation of a kind of device 500 for registering of the embodiment of the present invention,
In some illustrative embodiments, described device 500, for user equipment side, comprising:
Transmitting element 501, for sending the registration request comprising the mark of this equipment and the access information of first server and mark to second server;
Wherein, described first server is the server of the current registration of this equipment;
Updating block 502, for receiving the accreditation verification comprising the information of described second server that described second server sends, and upgrades the server info that this equipment registers;
In some illustrative embodiments, described updating block 502 comprises:
Delete cells 5021, for deleting the information of the described first server of this device storage; With,
Adding device 5022, for adding the information of described second server;
In some illustrative embodiments, the information of described first server and/or the information of second server comprise: type of server, the mark of server, and server father node identifies, access information, and access rights;
In some illustrative embodiments, described registration request also carries authentication-tokens, and described device 500, also comprises:
Authenticating unit 503, before receiving the accreditation verification of described second server transmission, receives the message for authentication that described first server sends for described updating block 502, and to described first server feedback acknowledgment after authentication success;
Wherein, the described message for authentication comprises the mark of described second server and described authentication-tokens.
Fig. 6 shows the structural representation of a kind of device 600 for registering of the embodiment of the present invention,
In some illustrative embodiments, described device 600, for second server side, comprising:
Receiving element 601, for receiving the mark comprising described subscriber equipment and the first access information of first server and the registration request of mark that subscriber equipment sends;
Wherein, described first server is the server of the current registration of described subscriber equipment;
Transmitting element 602, for sending a request message to described first server, and receives the log-on message of the described subscriber equipment of described first server feedback; Described request message comprises the mark of described subscriber equipment;
Adding device 603, for adding the log-on message of described subscriber equipment to this equipment, and sends the accreditation verification comprising the information of this equipment to described subscriber equipment;
In some illustrative embodiments, described device 600, also comprises:
Authenticating unit 604, after receiving the registration request of described subscriber equipment transmission, carries out authentication to described subscriber equipment for described receiving element 601, and the operation that the described transmitting element 602 of triggering sends a request message to described first server after authentication success;
In some illustrative embodiments, described device 600, also comprises:
Query unit 605, before sending a request message to described first server for described transmitting element 602, if this equipment cannot connect according to the first access information of described first server and described first server, then the mark of described first server is sent to location server, and receive the second access information of the described first server of described location server feedback, trigger second access information of described transmitting element 602 by described first server, perform the described operation sent a request message to described first server.
Fig. 7 shows the structural representation of a kind of device 700 for registering of the embodiment of the present invention,
In some illustrative embodiments, described device 700, for first server side, comprising:
First receiving element 701, for receiving the request message that second server sends, described request message comprises the mark of subscriber equipment;
First transmitting element 702, after judging that described subscriber equipment is the equipment being registered to this equipment, sends the log-on message of described subscriber equipment to described second server for this equipment according to the mark of described subscriber equipment;
In some illustrative embodiments, described request message also comprises authentication-tokens, and described device 700, also comprises:
Second transmitting element 703, before sending the information of described subscriber equipment, sends the mark of described authentication-tokens and described second server to described subscriber equipment for described first transmitting element 702;
Second receiving element 704, for receive described subscriber equipment feedback for representing that authentication successfully confirms;
In some illustrative embodiments, described device 700, also comprises:
Nullify unit 705, after sending the log-on message of described subscriber equipment for described first transmitting element 702, delete the log-on message of described subscriber equipment.
Adopt above-described embodiment, following effect can be reached:
Simplify the flow process of internet of things equipment switching server;
Decrease the operation of internet of things equipment, reduce the running load that internet of things equipment brings because of switching server.
Those skilled in the art it is also understood that various illustrative box, module, circuit and the algorithm steps combining embodiment herein and describe all can be embodied as electronic hardware, computer software or its combination.In order to the interchangeability between hardware and software is clearly described, all carry out usually describing around its function to various illustrative parts, frame, module, circuit and step above.Be embodied as hardware as this function or be embodied as software, the design constraint depending on specific application and whole system is applied.Those skilled in the art for each application-specific, can realize described function in the mode of accommodation, but, thisly realize decision-making and should not be construed as and deviate from protection range of the present disclosure.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.