The invention relates to the field of computer network communication, and in particular, to a universal method and device for achieving data roaming.
Data roaming refers to uploading data to save the data to a network server, so that the data may be operated on arbitrarily from anywhere. The data may be a text, a video or any other type of data, or a combination thereof. With data roaming technology, latest application data may be synchronized. The data may be accessible by clients from various devices and networks. A user may conveniently update data which may be stored on one device terminal, and access the updated data on other device terminals by data roaming without a data storage device. This may be referred to as data sharing.
The data roaming technology may have a disadvantage that user data cannot be isolated from each other. After one user uploads the personal data to the data roaming server, data synchronization may be requested by other users without verification. Consequently, a user may modify and utilize the personal roaming data of other users arbitrarily and thus user privacy may not be well protected.
In view of the problems above, a method for data roaming is provided to increase the safety of personal information of a user contained in roaming data.
The method for data roaming may include the following steps.
A client may obtain a data roaming ticket uniquely corresponding to user login information. The client may send a data roaming request including the data roaming ticket to a data roaming server. The data roaming server may verify whether the data roaming request is valid based on the data roaming ticket included in the received data roaming request. The data roaming server may also transmit and/or receive roaming data to and from the client if the data roaming request is valid.
Furthermore, the step of obtaining the data roaming ticket may include logging in to an account management server and sending a roaming ticket application including the user login information to the account management server by the client. Further, validity of a logged-in user may be verified by the account management server based on the received roaming ticket application. The account management server may forward the roaming ticket application to the data roaming server if the logged-in user is verified as valid. The data roaming server, in response, may generate the uniquely corresponding data roaming ticket based on the user login information included in the received roaming ticket application. The data roaming ticket may be forwarded to the client through the account management server, by the data roaming server and received by the client
In another aspect a device for data roaming may include a ticket obtaining unit to obtain a data roaming ticket uniquely corresponding to user login information. A roaming request unit of the device may send a data roaming request including the data roaming ticket to a ticket verification unit. The ticket verification unit may verify whether the data roaming request is valid based on the data roaming ticket included in the received data roaming request. Roaming data transmission is performed between a client and a data roaming server if the data roaming request is valid.
Furthermore, the ticket obtaining unit may include various modules described below.
An application sending module may login to an account management server and send a roaming ticket application including the user login information to a verification forwarding module of the ticket obtaining unit. The verification forwarding module may verify validity of a logged-in user based on the received roaming ticket application. The verification forwarding module may, in turn, forward the roaming ticket application to a ticket generation module if the logged-in user is verified as valid. The ticket generation module may generate the uniquely corresponding data roaming ticket based on the user login information included in the received roaming ticket application and forward the data roaming ticket to a ticket obtaining module through the account management server. The ticket obtaining module may receive the data roaming ticket forwarded by the account management server.
In the method for data roaming provided, validity of the data roaming request of the user may be verified before performing data communication between the client and the data roaming server. Therefore, since other users do not have the data roaming ticket corresponding to the user and they may not obtain the roaming data of the user via data synchronization. Thus, user information may be isolated safely from each other.
The device for data roaming provided in this disclosure includes a ticket obtaining unit and a ticket verification unit. Using, these units, validity of the data roaming request of the user may be verified before performing data communication between the client and the data roaming server. Therefore, since other users do not have the data roaming ticket corresponding to the user, they may not obtain the roaming data of the user by data synchronization. Consequently, user information may be isolated safely from each other, and the safety of the roaming data of the users may be enhanced.
In order to make the purpose, technical solutions and advantages of the method and device for achieving data roaming clearer, embodiments of the method and device are described in further detail below in conjunction with the accompanying drawings. The accompanying drawings and the following description are only some embodiments of the method and device for achieving data roaming and other drawings may be obtained by those skilled in the art based on these without any creative labor.
The above and other technical contents, features and efficacy of the present disclosure will be clearly presented in the following detail illustration in conjunction with embodiments shown in the drawings. By the illustration of the particular embodiments, the efficacy and technology means of the technical solution presented by the present disclosure may be more deeply and specifically understood. However, the drawings are only for reference and illustration, not for limiting the solution. It is to be understood that the following description of examples of implementations are given only for the purpose of illustration and are not to be taken in a limiting sense. The partitioning of examples in function blocks, modules or units shown in the drawings is not to be construed as indicating that these function blocks, modules or units are necessarily implemented as physically separate units. Functional blocks, modules or units shown or described may be implemented as separate units, circuits, chips, functions, modules, or circuit elements. Alternatively, or in addition, one or more functional blocks or units may also be implemented in a common circuit, chip, circuit element or unit.
The embodiments of the invention relate to data communication, which may be implemented by network flow connection, between a client and a data roaming server. There may be more than one clients which may be installed on various device terminals. The data communication may include uploading user data to the data roaming server by the client. The data communication may also include synchronizing user data with other roaming clients by the data roaming server. User verification may be performed before the data communication. The user data stored on the data roaming server may only be synchronized with a roaming device if user verification is successfully completed. For example, after an Instant Messager (IM) user logs in to a client on a computer, the client, in the background, may request to upload a chat record of the user to an IM data roaming server. The IM data roaming server may store the chat record after the user is verified as valid by the IM data roaming server. The user may, at a different time, log in to the IM service through a second client of another computer. The user may request the IM data roaming server to check the chat record stored in the former computer. The IM data roaming server may synchronize the chat record data of the user stored in the server with the second client if data roaming request of the user is verified as valid by the IM data roaming server. With this approach, the data in the chat record may be isolated and the chat record of the user may not be obtained by other users.
In step S101, a client may obtain a data roaming ticket uniquely corresponding to user login information.
In one example of the embodiment, the data roaming ticket may be recognized and confirmed by a data roaming server. In an implementation, the data roaming ticket may uniquely identify the user login information of the client. The user login information may be an account uniquely identifying the user. Accordingly, the data roaming ticket may be a string of sequence codes including the account information. The data roaming server may verify whether a current data roaming request is valid, based on the sequence codes.
In step S102, the client may send the data roaming request including the data roaming ticket to the data roaming server.
According to an example of the embodiment, the client installed on a device terminal may store a communication interface of the data roaming server, and the user may send the data roaming request directly to the data roaming server through a connection network of the device terminal. The device terminal may be any device capable to communicate over the connection network, such as a desktop computer, a tablet, a laptop, a smartphone, a mobile phone, or any other device with network communication enabled.
In step S103, the data roaming server may verify whether the data roaming request is valid, based on the data roaming ticket included in the received data roaming request.
According to an example of the embodiment, whether roaming data of the user may be isolated from other user's data is determined by this step. Since the data roaming ticket may be saved in the data roaming server when the user uploads the roaming data to the server by the client, the data roaming server may determine whether the request is valid. The data roaming server may perform the check by comparing the data roaming ticket saved in the server with the data roaming ticket included in the data roaming request.
In step S104, roaming data transmission may be performed between the client and the data roaming server if the data roaming request is valid. The roaming data transmission may include uploading and synchronization of the data.
In step S105, the data roaming server may provide, to the client, no response or alternatively, may provide a prompt indicating that the data roaming request is invalid in case the data roaming request is invalid.
Thus, according to the embodiment, the data roaming server may verify whether the data roaming request of the client is valid by using the data roaming ticket. Consequently, the security of data roaming may be enhanced.
In step S201, the client may login to an account management server and may send a roaming ticket application, or request. The roaming ticket application may include the user login information to login to the account management server.
According to an example of the embodiment, the account management server may obtain the data roaming ticket resulting from the roaming ticket application. The account management server may verify the validity of the user. The client may be aware of a communication interface of the account management server. In an implementation, the client may automatically connect to the account management server through the communication interface when the user clicks a login button on the client.
In step S202, the account management server may verify the validity of a logged-in user based on the received roaming ticket application.
In an implementation, the account management server may verify whether the logged-in user is valid by using a password associated with a user login account set by the user. The current logged-in user may be verified as a valid user if the password is correct. The current logged-in user is verified as an invalid user if the password is incorrect. In case an invalid logged-in user is detected, the account management server may provide no response or provide a prompt with indication of an invalid user.
In step S203, the account management server may forward the roaming ticket application to the data roaming server if the logged-in user is verified as valid.
According to the embodiment, in order to decrease implementation difficulty and development cost, the account management server and the data roaming server may trust each other. Hence, the data roaming server may not verify whether the roaming ticket application forwarded by the account management server is valid.
In step S204, the data roaming server may generate the data roaming ticket based on and uniquely corresponding to the user login information included in the received roaming ticket application.
According to an implementation of the embodiment, the data roaming server may add the verification information to the received user login information. The data roaming server may package the verification information and the received user login information into the data roaming ticket. The data roaming ticket, thus, uniquely corresponds to the user login information.
In step S205, the data roaming ticket may be forwarded to the client through the account management server.
If, in the example embodiment, the account management server and the data roaming server trust each other, the account management server may forward the data roaming ticket, which is sent by the data roaming server, to the client directly without verifying whether the data roaming ticket is valid.
In step S206, the client may send the data roaming request including the data roaming ticket to the data roaming server.
In step S207, the data roaming server may verify whether the data roaming request is valid based on the data roaming ticket included in the received data roaming request.
In step S208, if the data roaming request is valid, roaming data transmission may be performed between the client and the data roaming server. If, instead, the data roaming request is deemed invalid, the data roaming server may provide no response to the client. Alternatively, the data roaming server may send, to the client, a prompt indicating that the data roaming request is invalid. The roaming data transmission may include uploading and synchronization of the data.
According to the embodiment, the account management server may be provided to verify the validity of the user, and thus the security of data roaming may be further enhanced.
The data roaming server may allocate, to each user, a user network file system for storing user data. The user network file systems may be isolated from each other.
The user network file system may be similar to a local file system. A file in the user network file system may be stored in a root catalogue or a folder in the root catalogue. Here the user network file system of each user may have a root catalogue and the corresponding user may establish a child catalogue or a file in the root catalogue. A relative path may be used to identify and locate the catalogue and the file. A sign of “/” may be used to represent the root catalogue. For example, the path of the file named “Hello.jpg” in the user network file system 1 of
Once a data roaming request is verified as valid by the data roaming server, a client 11 may upload the data to the data roaming server. The data roaming server may, in response, automatically store the uploaded data into the user network file system 1. The data may be stored in the form of catalogue and a relative path may be used to identify and locate the corresponding catalogue and user data. When the user needs to synchronize the roaming data, the data roaming server may automatically check the data in the user network file system 1. The data roaming server may synchronize the data to a client 12 after a data roaming request sent from the client 12 is verified as valid. A user network file system 2 may functions similarly. Once the data roaming server allocates a user network file system for a user, the user network file system may belong to the user. The user may establish catalogues and files in the user network file system. The user may update and obtain the roaming data by accessing files based on the paths. Thus, the expandability and universality of file locating may be ensured.
An important aspect of data transmission between the roaming client and the data roaming server is to perform file operations on data in a user network file system corresponding to user login information. The file operations may include, for example, deleting a file, appending a file, writing a file, reading a file and other file operations. There may be several possible techniques to implement the corresponding operations.
One technique, illustrated by
The LocalDirMgr may be responsible for operations such as to create a catalogue, delete a catalogue, delete a file, or to identify whether a local file is the latest version, and various other such operations.
When a file is to be read by invoking the function of StoreReadFile, the operation may be implemented through the interface of AppDataRoamApi as described further. Firstly, the VirtualDirMgr (from server) may be queried to determine whether the file exists in the data roaming server. The VirtualDirMgr (locally) may also be queried to determine whether the local file is updated to a latest one. Further, the LocaldirMgr may be queried to determine whether the file exists locally. If the file exists locally and is the latest, the file may be read directly and contents transmitted to the user or an upper layer. If the file does not exist locally or if the file saved locally is not the latest, and the file exists in the data roaming server, DownloadFile function in the protocol layer TfsApi may be invoked. The DownloadFile function may pull i.e. retrieve, or download the latest file from the server. Once the file is retrieved successfully, the VirtualDirMgr (locally) may update the timestamp of the file and an identifier showing whether the file is the latest. The LocalDirMgr may, also, store the pulled file locally. The content of the file may then be read and returned to the upper layer or the user.
When other functions in the interface layer AppDataRoamApi are invoked to perform corresponding operations, the corresponding functions in the TfsApi may be directly applicable for interactions with the data roaming server. Once an operation is performed successfully, the VirtualDirMgr and LocalDirMgr may update the information of the file system and update the local file system respectively.
The data roaming according to the former embodiments is implemented with the technique illustrated in
The device for data roaming may include a ticket obtaining unit, a roaming request unit, and a ticket verification unit.
The ticket obtaining unit may obtain a data roaming ticket uniquely corresponding to user login information.
The roaming request unit may send a data roaming request including the data roaming ticket to the ticket verification unit.
The ticket verification unit may verify whether the data roaming request is valid, based on the data roaming ticket included in the received data roaming request. Roaming data transmission may be performed between a client and a data roaming server if the data roaming request is valid.
The ticket obtaining unit may further include an application sending module, a verification forwarding module, a ticket generation module, and a ticket obtaining module.
The application sending module may login to an account management server and send a roaming ticket application including the user login information to the verification forwarding module.
The verification forwarding module may verify the validity of a logged-in user based on received roaming ticket application. The verification forwarding module may, further, forward the roaming ticket application to the ticket generation module if the user is verified as valid.
The ticket generation module may generate the uniquely corresponding data roaming ticket based on the user login information included in the received roaming ticket application. The ticket generation module may, in turn, forward the data roaming ticket to the ticket obtaining module. The forwarding may be done through the account management server.
The ticket obtaining module may receive the data roaming ticket forwarded by the account management server.
The roaming request module may further include a file allocation module.
The file allocation module may allocate a user network file system for each user. The user network file system may to store user data for a corresponding user. The user data in the user network file system may exist in the form of catalogue. The corresponding catalogue and user data may be identified and located using a relative path.
Furthermore, the file allocation module may include an index establishment device.
The index establishment device may establish a virtual file index corresponding to a catalogue structure and a local file index. The local file index may load data saved locally and recently. A local file operation may be performed by comparing the two indexes and invoking a file operation interface function as required. For example, if a file listed in the local index is not the latest version of the file, the latest version of the file may be downloaded from the data roaming server by invoking the corresponding file operation interface. Once the latest file is successfully downloaded, the contents may be read.
The user roaming data may be isolated by the ticket obtaining unit and the ticket verification unit in the foregoing device for data roaming. In addition, user network system structure in the form of a catalogue may be applied in the data roaming server, and the expandability and universality of file locating may be ensured.
Another example device for data roaming is further provided. The device may include a storage to store instructions, and a processor coupled with the storage. The processor may be configured to execute the instructions stored in the storage. The processor may perform operations described in the method embodiments for achieving the data roaming, described earlier. In addition, a machine readable medium is further provided as another embodiment of the disclosure. An instruction set may be stored in the machine readable medium, where operations of the method embodiments for achieving data roaming may be performed by executing the instructions in the instruction set. The instructions may be executed by one or more processors.
Various embodiments described herein can be used alone or in combination with one another. The foregoing detailed description has described only a few of the many possible implementations of the present disclosure. For this reason, this description of example embodiments is intended by way of illustration, and not by way of limitation. Some modifications and equivalents can be made to the technical solution of the present invention by those skilled in the art in light of the technical content disclosed above without deviation from the scope of the present disclosure. Therefore, any simple change, equivalent alternation and modification made to the above embodiments according to the technical principle of the present disclosure without deviation from the scope of the present disclosure all fall within the scope of protection of the technical solution of the present disclosure. The methods, devices, and logic described above may be implemented in many different ways in many different combinations of hardware, software or both hardware and software.
Number | Date | Country | Kind |
---|---|---|---|
201210044064.2 | Feb 2012 | CN | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/CN2013/071666 | 2/19/2013 | WO | 00 | 2/25/2014 |