CN103812900A - Data synchronization method, device and system - Google Patents
Data synchronization method, device and system Download PDFInfo
- Publication number
- CN103812900A CN103812900A CN201210453271.3A CN201210453271A CN103812900A CN 103812900 A CN103812900 A CN 103812900A CN 201210453271 A CN201210453271 A CN 201210453271A CN 103812900 A CN103812900 A CN 103812900A
- Authority
- CN
- China
- Prior art keywords
- user data
- data synchronization
- user
- proxy server
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000001360 synchronised effect Effects 0.000 claims abstract description 60
- 230000008569 process Effects 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 claims 6
- 238000010586 diagram Methods 0.000 description 10
- 230000004044 response Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 229920001690 polydopamine Polymers 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种数据同步方法、装置及系统,包括:用户数据同步代理服务器接收已登录本服务器的用户终端发送的数据同步请求后,获取其中携带的用户信息和待同步的用户数据;所述用户数据同步代理服务器根据获取到的用户信息,查询与所述用户信息绑定的其它已登录本服务器的用户终端;所述用户数据同步代理服务器将获取到的待同步用户数据发送给查询到的用户终端,通过在现有的数据同步的体系架构的基础之上添加代理服务器,实现多个终端间的数据同步。
The invention discloses a data synchronization method, device and system, comprising: after a user data synchronization proxy server receives a data synchronization request sent by a user terminal that has logged into the server, obtains the user information carried therein and the user data to be synchronized; The user data synchronization proxy server queries other user terminals bound to the user information that have logged into the server according to the obtained user information; the user data synchronization proxy server sends the acquired user data to be synchronized to the querying The user terminal, by adding a proxy server on the basis of the existing data synchronization architecture, realizes data synchronization between multiple terminals.
Description
技术领域 technical field
本发明涉及通信技术领域,尤其涉及一种数据同步方法、装置及系统。 The present invention relates to the field of communication technology, in particular to a data synchronization method, device and system.
背景技术 Background technique
随着移动互联网的快速发展和智能终端的广泛普及,人们的需求也在不断的增加,对于智能终端的功能性要求也随之不断的提高。由于智能终端越来越多样化的存在,如PC机、笔记本电脑、智能手机、PDA、智能电视等,人们对于智能终端间的数据同步,也产生了很大的需求。 With the rapid development of the mobile Internet and the widespread popularization of smart terminals, people's needs are also increasing, and the functional requirements for smart terminals are also continuously improving. Due to the increasingly diverse existence of intelligent terminals, such as PCs, notebook computers, smart phones, PDAs, and smart TVs, people have a great demand for data synchronization between intelligent terminals.
在现有技术中,比较主流的数据同步方法有两类,一类是以PC为中心的,如图1所示,将各智能终端连接到PC上,通过PC来完成各智能终端间的数据同步;另一类是以云服务器为中心的,如图2所示,云服务器可为用户提供在网络中存储个人数据(如通信录、邮件、照片、日历、文件等)的服务,并实现用户多个智能终端上的个人数据进行同步。 In the prior art, there are two mainstream data synchronization methods, one is PC-centric, as shown in Figure 1, each smart terminal is connected to the PC, and the PC is used to complete the data synchronization between the smart terminals. Synchronization; the other is centered on the cloud server, as shown in Figure 2, the cloud server can provide users with the service of storing personal data (such as address books, emails, photos, calendars, files, etc.) in the network, and realize Synchronize personal data on multiple smart terminals of the user.
然而,对于通过PC进行数据同步的方法而言,由于数据同步需要使用数据线将智能终端与PC进行连接,这就在无形之中对数据的同步进行了限制,操作起来也比较麻烦;同样地,通过云服务器进行数据同步,虽然摆脱了数据线的束缚,解决了使用便利性的问题,但是,由于所有的数据均需要通过云服务器的中转才能实现数据同步,当需要同步大量数据时,会受网络接入速度的限制,导致同步速度很慢。 However, for the method of data synchronization through PC, since data synchronization requires the use of data lines to connect the smart terminal to the PC, this invisibly restricts data synchronization and is cumbersome to operate; , data synchronization through the cloud server, although it gets rid of the shackles of the data line and solves the problem of convenience, but because all the data needs to be transferred through the cloud server to achieve data synchronization, when a large amount of data needs to be synchronized, it will Due to the limitation of network access speed, the synchronization speed is very slow.
发明内容 Contents of the invention
本发明实施例的目的在于提供一种数据同步方法、装置及系统,通过在现有的数据同步的体系架构的基础之上添加代理服务器,实现多个终端间的数据同步。 The purpose of the embodiments of the present invention is to provide a data synchronization method, device and system, by adding a proxy server on the basis of the existing data synchronization architecture, to realize data synchronization between multiple terminals.
为了达到上述目的,本发明实施例提供了一种用户数据同步方法,包括: In order to achieve the above purpose, an embodiment of the present invention provides a user data synchronization method, including:
用户数据同步代理服务器接收已登录本服务器的用户终端发送的数据同步请求后,获取其中携带的用户信息和待同步的用户数据; After the user data synchronization proxy server receives the data synchronization request sent by the user terminal that has logged into the server, it obtains the user information carried therein and the user data to be synchronized;
所述用户数据同步代理服务器根据获取到的用户信息,查询与所述用户信息绑定的其它已登录本服务器的用户终端; The user data synchronization proxy server queries other user terminals bound to the user information that have logged into the server according to the obtained user information;
所述用户数据同步代理服务器将获取到的待同步用户数据发送给查询到的用户终端。 The user data synchronization proxy server sends the acquired user data to be synchronized to the queried user terminal.
本发明实施例提供了一种用户数据同步代理服务器,包括: The embodiment of the present invention provides a user data synchronization proxy server, including:
第一接口模块,用于接收已登录本服务器的用户终端发送的数据同步请求; The first interface module is configured to receive a data synchronization request sent by a user terminal that has logged into the server;
同步对象确定模块,用于获取所述第一接口模块接收到的数据同步请求中携带的用户信息和待同步的用户数据,根据获取到的用户信息,查询与所述用户信息绑定的其它已登录本服务器的用户终端; The synchronization object determination module is configured to obtain the user information carried in the data synchronization request received by the first interface module and the user data to be synchronized, and query other existing users bound to the user information according to the obtained user information. Log in to the user terminal of this server;
同步模块,用于将获取到的待同步用户数据,通过第一接口模块发送给所述同步对象确定模块查询到的用户终端。 The synchronization module is configured to send the acquired user data to be synchronized to the user terminal queried by the synchronization object determination module through the first interface module.
本发明实施例提供了一种用户数据同步系统,该系统包括:用户数据同步服务器,以及用户数据同步代理服务器; An embodiment of the present invention provides a user data synchronization system, the system comprising: a user data synchronization server, and a user data synchronization proxy server;
所述用户数据同步代理服务器,用于接收已登录本服务器的用户终端发送的数据同步请求后,获取其中携带的用户信息和待同步的用户数据,根据获取到的用户信息,查询与所述用户信息绑定的其它已登录本服务器的用户终端,将获取到的待同步用户数据发送给查询到的用户终端;以及,用于接收所述用户数据同步服务器发送的数据同步请求后,获取其中携带的用户信息和待同步的用户数据,根据获取到的用户信息,查询与所述用户信息绑定的已登录本服务器的用户终端,将获取到的待同步用户数据发送给查询到的用户终端; The user data synchronization proxy server is configured to receive the data synchronization request sent by the user terminal that has logged into the server, obtain the user information carried therein and the user data to be synchronized, and query the information related to the user according to the obtained user information. Other user terminals that have logged in to the server that are bound by information send the acquired user data to be synchronized to the inquired user terminal; and, after receiving the data synchronization request sent by the user data synchronization server, obtain the User information and user data to be synchronized, according to the obtained user information, query the user terminal bound to the user information that has logged in to the server, and send the obtained user data to be synchronized to the queried user terminal;
所述用户数据同步服务器,用于向所述用户数据同步代理服务器发送数据同步请求。 The user data synchronization server is configured to send a data synchronization request to the user data synchronization proxy server.
与现有技术相比,本发明实施例所提出的技术方案具有以下优点: Compared with the prior art, the technical solution proposed by the embodiment of the present invention has the following advantages:
本发明的上述实施例,用户数据同步代理服务器接收已登录本服务器的用户终端发送的数据同步请求后,获取其中携带的用户信息和待同步的用户数据;所述用户数据同步代理服务器根据获取到的用户信息,查询与所述用户信息绑定的其它已登录本服务器的用户终端;所述用户数据同步代理服务器将获取到的待同步用户数据发送给查询到的用户终端,通过在现有的数据同步的体系架构的基础之上添加代理服务器,实现多个终端间的数据同步。 In the above embodiments of the present invention, after the user data synchronization proxy server receives the data synchronization request sent by the user terminal that has logged into the server, it obtains the user information carried therein and the user data to be synchronized; user information, and query other user terminals that have logged into the server that are bound to the user information; the user data synchronization proxy server sends the acquired user data to be synchronized to the queried user terminal through On the basis of the data synchronization architecture, a proxy server is added to realize data synchronization between multiple terminals.
附图说明 Description of drawings
图1是现有技术中以PC为中心的数据同步示意图; Fig. 1 is a schematic diagram of PC-centric data synchronization in the prior art;
图2是现有技术中以云为中心的数据同步示意图; Fig. 2 is a schematic diagram of cloud-centric data synchronization in the prior art;
图3是本发明实施例提供的系统架构图; FIG. 3 is a system architecture diagram provided by an embodiment of the present invention;
图4是本发明实施例提供的用户终端登录的流程示意图; FIG. 4 is a schematic flow diagram of user terminal login provided by an embodiment of the present invention;
图5是本发明实施例一提供的用户终端进行数据同步的流程示意图;
FIG. 5 is a schematic flow diagram of data synchronization performed by a user terminal according to
图6是本发明实施例二提供的用户终端进行数据同步的流程示意图; FIG. 6 is a schematic flow diagram of data synchronization performed by a user terminal according to Embodiment 2 of the present invention;
图7是本发明实施例提供的用户终端进行数据同步的装置图。 FIG. 7 is a diagram of an apparatus for performing data synchronization by a user terminal according to an embodiment of the present invention.
具体实施方式 Detailed ways
下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。 The following will clearly and completely describe the technical solution of the present invention in conjunction with the accompanying drawings of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
参见图3,为本发明实施例的系统架构图,该系统架构中,在用户数据同步服务器和用户终端之间设置有用户数据同步代理服务器(以下简称代理服务器),代理服务器与用户数据同步服务器通过Internet连接,与用户终端通过局域网连接,如WiFi(Wireless Fidelity,基于IEEE 802.11b标准的无线局域网)或以太网等。 Referring to Fig. 3, it is a system architecture diagram of an embodiment of the present invention. In the system architecture, a user data synchronization proxy server (hereinafter referred to as the proxy server) is set between the user data synchronization server and the user terminal, and the proxy server and the user data synchronization server Connect to the user terminal through the Internet through a local area network, such as WiFi (Wireless Fidelity, a wireless local area network based on the IEEE 802.11b standard) or Ethernet.
该代理服务器可以代理用户数据同步服务器,为用户终端提供用户终端间的用户数据同步服务,代理服务器还可以与用户数据同步服务器进行用户数据的同步,进而实现用户终端、代理服务器与用户数据同步服务器间的用户数据同步。 The proxy server can act as a proxy for the user data synchronization server to provide user terminals with user data synchronization services between user terminals. The proxy server can also synchronize user data with the user data synchronization server, thereby realizing user terminals, proxy servers and user data synchronization servers. User data synchronization between.
优选的,代理服务器可以与家庭网关设备(如无线路由器、机顶盒)合设,比如可通过对现有家庭网关设备进行改进,在其中增加用户数据同步代理功能,从而使家庭网关设备实现上述代理服务器的用户数据同步代理功能。 Preferably, the proxy server can be set up together with the home gateway device (such as a wireless router, a set-top box). For example, the existing home gateway device can be improved, and the user data synchronization proxy function can be added in it, so that the home gateway device can realize the above-mentioned proxy server The user data synchronization proxy function of .
用户终端通过代理服务器进行用户数据同步之前,首先要安装数据同步代理客户端,并在该代理服务器上进行数据同步服务注册。代理服务器还可在用户数据同步服务器上进行注册,以便与用户数据同步服务器进行用户数据同步。 Before the user terminal performs user data synchronization through the proxy server, it must first install the data synchronization proxy client, and register the data synchronization service on the proxy server. The proxy server can also register with the user data synchronization server, so as to perform user data synchronization with the user data synchronization server.
以下内容中所涉及到的用户终端的处理操作,在不特别说明的情况下,通常由用户终端上安装的用户数据同步客户端实现。 The processing operations of the user terminal involved in the following content are usually implemented by the user data synchronization client installed on the user terminal unless otherwise specified.
用户终端向代理服务器的注册过程可采用现有技术实现,比如:用户终端通过其数据同步客户端向代理服务器发起注册请求,以便在代理服务器上建立用户数据同步服务帐户(包括用户名,还可包括密码),并将用户信息(如手机号码)、用户终端信息(如IP地址、设备标识)提供给代理服务器。需要进行用户数据同步的所有用户终端,其用户数据同步服务帐户需要与用户信息进行绑定,从而使用户数据在绑定有相同用户信息的用户终端之间进行同步。所绑定的用户信息在用户设备进行用户数据同步服务注册时设置。优选的,同一用户的手机、PDA等用户终端,在进行用户数据同步服务注册时,提交该用户的手机号码作为绑定信息。当然,也可以将注册的用户名作为绑定信息。 The registration process of the user terminal to the proxy server can be realized by using existing technologies, such as: the user terminal initiates a registration request to the proxy server through its data synchronization client, so that the user data synchronization service account (including user name, and including passwords), and provide user information (such as mobile phone number) and user terminal information (such as IP address, device identification) to the proxy server. For all user terminals that need to synchronize user data, their user data synchronization service accounts need to be bound with user information, so that user data can be synchronized among user terminals bound with the same user information. The bound user information is set when the user equipment registers for the user data synchronization service. Preferably, when a user terminal such as a mobile phone or a PDA of the same user submits the user's mobile phone number as the binding information when registering for the user data synchronization service. Of course, the registered user name can also be used as the binding information.
代理服务器向用户数据同步服务器的注册过程可采用现有技术实现。代理服务器的注册过程通常发生在代理服务器连接到网络后进行设备初始化的过程。 The registration process of the proxy server to the user data synchronization server can be realized by using the existing technology. The registration process of the proxy server usually occurs in the process of initializing the device after the proxy server is connected to the network.
用户终端在通过代理服务器进行用户数据同步之前,首先要登录代理服务器。为了提高安全性,代理服务器可对用户终端发送的用户数据同步服务登录请求进行鉴权,比如对用户终端提交的用户名和密码进行鉴权,并在鉴权通过后才允许其使用数据同步服务;否则,不允许其使用数据同步服务。 Before the user terminal performs user data synchronization through the proxy server, it first needs to log in to the proxy server. In order to improve security, the proxy server can authenticate the user data synchronization service login request sent by the user terminal, such as authenticating the user name and password submitted by the user terminal, and allow it to use the data synchronization service after the authentication is passed; Otherwise, it is not allowed to use the data synchronization service.
参见图4,为本发明实施例提供的用户终端进行用户数据同步服务登录的流程示意图,该流程可包括: Referring to FIG. 4 , it is a schematic flow diagram of a user terminal performing user data synchronization service login provided by an embodiment of the present invention. The flow may include:
步骤401,用户终端向代理服务器发送数据同步服务登录请求。
该步骤中,用户可通过操纵其用户终端,向代理服务器发送数据同步服务登录请求。比如,通过打开代理服务器登录界面,输入用户名、密码等帐户信息进行登录。数据同步登录请求消息中携带有用户终端的相关信息,比如用户终端的IP地址、标识等。 In this step, the user can send a data synchronization service login request to the proxy server by manipulating the user terminal. For example, by opening the proxy server login interface, and entering account information such as user name and password to log in. The data synchronization login request message carries relevant information of the user terminal, such as the IP address and identification of the user terminal.
步骤402,代理服务器接收到该登录请求后,进行登录处理。
In
该步骤中,代理服务器接收到数据同步服务登录请求后,对该登录请求进行鉴权,比如对该登录请求中携带的用户名和密码进行验证。如果对登录请求验证通过,则允许该用户终端登录;如果对登录请求未验证通过(比如用户名或密码输入错误),则拒绝该用户终端登录。 In this step, after receiving the data synchronization service login request, the proxy server authenticates the login request, for example, verifies the user name and password carried in the login request. If the login request is verified, the user terminal is allowed to log in; if the login request is not verified (for example, the user name or password is entered incorrectly), the user terminal is refused to log in.
步骤403,代理服务器向用户终端返回数据同步服务登录响应。
该步骤中,如果代理服务器允许该用户终端登录,则返回登录成功响应消息,如果代理服务器拒绝该用户终端登录,则返回登录失败响应消息。 In this step, if the proxy server allows the user terminal to log in, a login success response message is returned, and if the proxy server rejects the user terminal login, a login failure response message is returned.
进一步的,用户终端接收到登录失败响应消息后,可向用户数据同步服务器发送数据同步服务器登录请求,以请求登录到用户数据同步代理服务器。这种情况通常发生在用户终端因还未在代理服务器上注册,因而其用户数据同步服务登录请求被拒绝的情况下。 Further, after receiving the login failure response message, the user terminal may send a data synchronization server login request to the user data synchronization server, so as to request to log in to the user data synchronization proxy server. This situation usually occurs when the user terminal is not yet registered on the proxy server, and thus its user data synchronization service login request is rejected.
进一步的,代理服务器还可以在局域网内发送广播信号,使接收到该广播信号的用户终端可自动发起用户数据同步登录,该自动登录过程可包括:用户终端监听所在局域网内的广播信息,代理服务器发送的广播信息可包括代理服务器的IP地址、注册服务的端口号,支持的数据类型(通讯录,信息,照片,文件…)等;当用户终端监听到有代理服务器发送的广播信息后,向该代理服务器发送数据同步服务登录请求,其后续处理同前所述,在此不再赘述。 Further, the proxy server can also send a broadcast signal in the local area network, so that the user terminal receiving the broadcast signal can automatically initiate synchronous login of user data. The automatic login process can include: the user terminal monitors the broadcast information in the local area network, and the proxy server The broadcast information sent may include the IP address of the proxy server, the port number of the registration service, supported data types (address book, information, photos, files, etc.); when the user terminal listens to the broadcast information sent by the proxy server, it sends The proxy server sends a data synchronization service login request, and its subsequent processing is the same as that described above, and will not be repeated here.
代理服务器、用户数据同步服务器为成功登录本服务器的用户终端提供用户数据同步服务。 The proxy server and user data synchronization server provide user data synchronization services for user terminals that successfully log in to the server.
为了更清楚的对本发明实施例提供的用户数据同步流程进行描述,下面结合几个具体应用场景进行详细描述。 In order to describe the user data synchronization process provided by the embodiment of the present invention more clearly, the following describes in detail in conjunction with several specific application scenarios.
实施例一 Embodiment one
实施例一的应用场景为:终端A和终端B在同一个局域网内,终端A和终端B已经登录该局域网中的代理服务器,并且终端A和终端B的用户数据同步服务帐户绑定相同的用户信息,比如,终端A为某用户的手机,终端B为相同用户的PDA,其用户数据同步服务帐户均与该用户的手机号绑定。
The application scenario of
步骤501,终端A向代理服务器发送用户数据同步请求,其中携带待同步的用户数据以及终端A的用户数据同步服务帐户信息。 Step 501, terminal A sends a user data synchronization request to the proxy server, which carries user data to be synchronized and terminal A's user data synchronization service account information.
该步骤中,当终端A上的用户数据发生变化后,终端A可自行向代理服务器发送用户数据同步请求。当然,用户数据同步请求也可以是由用户在终端A上进行操作而主动发起的。其中,终端A上的用户数据出现变化的情况多种多样,比如,用户通过终端A的键盘或屏幕操作修改终端A上的通讯录后,将导致通讯录发生变化,再比如,用户通过将终端A与PC机连接导入个人相册时,将导致个人相册发生变化。需要进行同步的用户数据通常需要事先指定,终端A一旦发现需要进行同步的用户数据发生变化,则向代理服务器发生数据同步请求。 In this step, when the user data on terminal A changes, terminal A may send a user data synchronization request to the proxy server by itself. Of course, the user data synchronization request may also be actively initiated by the user operating on the terminal A. Among them, the user data on terminal A changes in various situations. For example, after the user modifies the address book on terminal A through the keyboard or screen operation of terminal A, the address book will change. When A is connected to a PC and imported into the personal photo album, it will cause the personal photo album to change. The user data to be synchronized usually needs to be specified in advance. Once the terminal A finds that the user data to be synchronized has changed, it will send a data synchronization request to the proxy server.
终端A所发送的用户数据同步请求中还可携带有自身的相关信息,比如自己的IP地址或终端标识等信息。 The user data synchronization request sent by terminal A may also carry its own related information, such as its own IP address or terminal identification.
步骤502,代理服务器接收到该用户数据同步请求消息后,确定出需要同步的目标终端为终端B。 Step 502, after receiving the user data synchronization request message, the proxy server determines that the target terminal to be synchronized is terminal B.
该步骤中,代理服务器查询终端A的用户数据同步服务帐户以及与该帐户绑定的用户信息,发现终端B的用户数据同步服务帐户也与该用户信息进行了绑定,且终端B已经登录到代理服务器,因此确定终端B为用户数据同步的目标终端。 In this step, the proxy server queries the user data synchronization service account of terminal A and the user information bound to the account, and finds that the user data synchronization service account of terminal B is also bound to the user information, and terminal B has logged in to The proxy server therefore determines that terminal B is the target terminal for user data synchronization.
步骤503,代理服务器向终端B发送用户数据同步请求,其中携带从终端A发送的数据同步请求中提取出的待同步的用户数据,以使终端B更新本地的相应用户数据。 Step 503, the proxy server sends a user data synchronization request to terminal B, which carries the user data to be synchronized extracted from the data synchronization request sent by terminal A, so that terminal B updates the corresponding local user data.
步骤504,终端B完成用户数据更新后,向代理服务器返回成功响应消息。 Step 504, after the terminal B finishes updating the user data, it returns a success response message to the proxy server.
步骤505,代理服务器接收到终端B返回的成功响应消息后,向终端A返回成功响应消息。 Step 505: After receiving the successful response message returned by terminal B, the proxy server returns a successful response message to terminal A.
以上步骤504~505为可选步骤。 The above steps 504-505 are optional steps.
进一步的,代理服务器在接收到终端A的数据同步请求后,还可缓存其中携带的待同步的用户数据,该用户数据可以以终端A所登录的用户数据同步服务帐户信息作为索引;代理服务器还可将缓存的用户数据发送给用户数据同步服务器,从而针对相应用户的用户数据同步服务帐户,实现代理服务器和用户数据同步服务器上的用户数据同步。 Further, after the proxy server receives the data synchronization request from terminal A, it can also cache the user data to be synchronized, and the user data can be indexed by the user data synchronization service account information logged in by terminal A; The cached user data can be sent to the user data synchronization server, so as to realize the user data synchronization on the proxy server and the user data synchronization server with respect to the user data synchronization service account of the corresponding user.
上述流程中,终端A所发送的用户数据同步请求中,也可以携带终端A的用户数据同步服务帐户所绑定的用户信息,以替代终端A的用户数据同步服务帐户信息。这样,代理服务器就可以直接根据该请求中携带的用户信息,将同样与该用户信息所绑定的其它已登录的用户终端,确定为用户数据同步的目标终端。 In the above process, the user data synchronization request sent by terminal A may also carry the user information bound to the user data synchronization service account of terminal A to replace the user data synchronization service account information of terminal A. In this way, the proxy server can directly determine other logged-in user terminals that are also bound to the user information as target terminals for user data synchronization according to the user information carried in the request.
以上是以终端A已经登录到代理服务器为例描述的。如果终端A上的用户数据发生变化,但当前还未登录代理服务器,则终端A可执行登录过程,在登录到代理服务器后再向代理服务器发起用户数据同步请求。 The above is described by taking terminal A already logged in to the proxy server as an example. If the user data on terminal A changes, but the proxy server is not currently logged in, terminal A can perform a login process, and then initiate a user data synchronization request to the proxy server after logging in to the proxy server.
在本实施例中,当某用户终端上的用户数据发生变化后,通过在所在局域网内接入代理服务器,实现与绑定到同一用户的其它终端间的用户数据同步,相比于现有技术中通过网络服务器的中转来实现用户数据的同步,本实施例的方法不会受到网络接入速度的限制,提高了用户数据同步的效率。 In this embodiment, when the user data on a certain user terminal changes, the user data synchronization with other terminals bound to the same user is realized by accessing the proxy server in the local area network. Compared with the prior art The synchronization of user data is realized through the transfer of the network server, and the method of this embodiment is not limited by the speed of network access, which improves the efficiency of user data synchronization.
实施例二 Embodiment two
实施例二的应用场景为:终端A已经登录代理服务器,终端B虽然在代理服务器上进行了用户数据同步服务注册,但由于不在代理服务器所在局域网内(或是其它原因)而无法登录代理服务器,因此终端B登录到用户数据同步服务器。并且终端A和终端B的用户数据同步服务帐户绑定相同的用户信息。 The application scenario of Embodiment 2 is: terminal A has logged in to the proxy server, although terminal B has registered for the user data synchronization service on the proxy server, but cannot log in to the proxy server because it is not in the local area network where the proxy server is located (or for other reasons), Therefore terminal B logs into the user data synchronization server. And the user data synchronization service accounts of terminal A and terminal B are bound to the same user information.
步骤601,终端B向用户数据同步服务器发送数据同步请求,其中携带待同步的用户数据以及终端B的用户数据同步服务帐户信息,还可携带终端B所注册的代理服务器的相关信息(如代理服务器的地址或标识)。 Step 601, Terminal B sends a data synchronization request to the user data synchronization server, which carries the user data to be synchronized and the user data synchronization service account information of Terminal B, and may also carry information about the proxy server registered by Terminal B (such as the proxy server address or identification).
该步骤中,当终端B上的用户数据发生变化后,终端B可自行向用户数据同步服务器发送用户数据同步请求。当然,用户数据同步请求也可以是由用户在终端B上进行操作而主动发起的。 In this step, when the user data on terminal B changes, terminal B can send a user data synchronization request to the user data synchronization server by itself. Of course, the user data synchronization request may also be actively initiated by the user operating on the terminal B.
步骤602,用户数据同步服务器接收到该数据同步请求消息后,存储从终端B发送的数据同步请求中提取出的待同步用户数据,并向代理服务器发送用户数据同步请求,其中携带该待同步的用户数据以及终端B的用户数据同步服务帐户信息。 Step 602: After receiving the data synchronization request message, the user data synchronization server stores the user data to be synchronized extracted from the data synchronization request sent by terminal B, and sends the user data synchronization request to the proxy server, which contains the data to be synchronized User data and user data synchronization service account information of terminal B.
该步骤中,用户数据同步服务器可根据接收到的请求消息中携带的终端B所注册的代理服务器的相关信息,向终端B所注册的代理服务器发送用户数据同步请求。 In this step, the user data synchronization server may send a user data synchronization request to the proxy server registered with terminal B according to the relevant information of the proxy server registered with terminal B carried in the received request message.
进一步的,用户数据同步服务器在向代理服务器发送的用户数据同步请求后,可向终端B返回成功响应消息。 Further, the user data synchronization server may return a success response message to terminal B after sending the user data synchronization request to the proxy server.
步骤603,代理服务器接收到用户数据同步服务器发送的用户数据同步请求后,确定出需要同步的目标终端为终端A。 In step 603, the proxy server determines that the target terminal to be synchronized is terminal A after receiving the user data synchronization request sent by the user data synchronization server.
该步骤中,代理服务器查询终端B的用户数据同步服务帐户以及与该帐户绑定的用户信息,发现终端A的用户数据同步服务帐户也与该用户信息进行了绑定,且终端A已经登录到代理服务器,因此确定终端A为用户数据同步的目标终端。 In this step, the proxy server queries the user data synchronization service account of terminal B and the user information bound to the account, and finds that the user data synchronization service account of terminal A is also bound to the user information, and terminal A has logged in to The proxy server therefore determines that terminal A is the target terminal for user data synchronization.
步骤604,代理服务器向终端A发送数据同步请求,其中携带了待同步的用户数据(该待同步的用户数据是从用户数据同步服务器所发送的用户数据同步请求中获取到的),以使终端A更新本地的相应用户数据。 Step 604, the proxy server sends a data synchronization request to terminal A, which carries the user data to be synchronized (the user data to be synchronized is obtained from the user data synchronization request sent by the user data synchronization server), so that the terminal A A updates the corresponding local user data.
步骤605,终端A完成数据更新后,向代理服务器返回成功响应消息。 Step 605, after the terminal A finishes updating the data, it returns a success response message to the proxy server.
以上步骤605为可选步骤。 The above step 605 is an optional step.
在本实施例中,当某用户终端上的用户数据发生变化后,通过将该变化数据更新到代理服务器,实现与同一用户绑定的用户终端间的用户数据的及时更新,从而节省了终端同步等待的时间,提高了用户数据同步的效率。 In this embodiment, when the user data on a certain user terminal changes, the user data between the user terminals bound to the same user can be updated in time by updating the changed data to the proxy server, thereby saving terminal synchronization. The waiting time improves the efficiency of user data synchronization.
基于相同的技术构思,本发明实施例还提供了一种用户数据同步代理服务器,该用户数据同步代理服务器可设置于用户家庭网络。如图7所示,该用户数据同步代理服务器可包括: Based on the same technical idea, the embodiment of the present invention also provides a user data synchronization proxy server, which can be set in the user's home network. As shown in Figure 7, the user data synchronization proxy server may include:
第一接口模块701,用于接收已登录本服务器的用户终端发送的数据同步请求;
The
同步对象确定模块702,用于获取第一接口模块701接收到的数据同步请求中携带的用户信息和待同步的用户数据,根据获取到的用户信息,查询与所述用户信息绑定的其它已登录本服务器的用户终端;
The synchronization
同步模块703,用于将获取到的待同步用户数据,通过第一接口模块701发送给同步对象确定模块702查询到的用户终端。
The synchronization module 703 is configured to send the acquired user data to be synchronized to the user terminal queried by the synchronization
上述数据同步代理服务器还包括:缓存模块704和第二接口模块705。其中:
The data synchronization proxy server further includes: a
缓存模块704,用于在所述同步对象确定模块702获取到所述数据同步请求中携带的待同步的用户数据之后,缓存所述待同步的用户数据;相应的,同步模块703还可通过第二接口模块705向用户数据同步服务器发送数据同步请求,其中携带所述待同步的用户数据以及所述用户信息。
The
第二接口模块705还可接收到用户数据同步服务器发送的用户数据同步请求;相应的,同步对象确定模块702还用于,获取第二接口模块705接收到的用户数据同步请求中携带的用户信息和待同步的用户数据,根据获取到的用户信息,查询与所述用户信息绑定的已登录本服务器的用户终端。
The
上述数据同步代理服务器还包括:登录处理模块706,用于接收用户终端发送的用户数据同步服务登录请求,对所述帐户信息进行验证,并在验证通过后,对所述用户数据同步服务登录请求进行处理;其中,所述用户数据同步服务登录请求是所述用户设备在接收到所述用户数据代理服务器广播的信号后发送的。
The above data synchronization proxy server also includes: a
基于相同的技术构思,本发明实施例还提供了一种用户数据同步系统,该系统包括:用户数据同步服务器,以及如图7所示的用户数据同步代理服务器。其中,用户数据同步服务器下可连接多个用户数据同步代理服务器,各用户数据同步代理服务器处于不同的家庭用户网络。用户数据同步服务器和用户数据同步代理服务器的主要功能如下: Based on the same technical idea, an embodiment of the present invention also provides a user data synchronization system, which includes: a user data synchronization server, and a user data synchronization proxy server as shown in FIG. 7 . Wherein, multiple user data synchronization proxy servers may be connected to the user data synchronization server, and each user data synchronization proxy server is located in a different home user network. The main functions of the user data synchronization server and the user data synchronization proxy server are as follows:
所述用户数据同步代理服务器,用于接收已登录本服务器的用户终端发送的数据同步请求后,获取其中携带的用户信息和待同步的用户数据,根据获取到的用户信息,查询与所述用户信息绑定的其它已登录本服务器的用户终端,将获取到的待同步用户数据发送给查询到的用户终端;以及,用于接收所述用户数据同步服务器发送的数据同步请求后,获取其中携带的用户信息和待同步的用户数据,根据获取到的用户信息,查询与所述用户信息绑定的已登录本服务器的用户终端,将获取到的待同步用户数据发送给查询到的用户终端; The user data synchronization proxy server is configured to receive the data synchronization request sent by the user terminal that has logged into the server, obtain the user information carried therein and the user data to be synchronized, and query the information related to the user according to the obtained user information. Other user terminals that have logged in to the server that are bound by information send the acquired user data to be synchronized to the inquired user terminal; and, after receiving the data synchronization request sent by the user data synchronization server, obtain the User information and user data to be synchronized, according to the obtained user information, query the user terminal bound to the user information that has logged in to the server, and send the obtained user data to be synchronized to the queried user terminal;
所述用户数据同步服务器,用于向所述用户数据同步代理服务器发送数据同步请求。 The user data synchronization server is configured to send a data synchronization request to the user data synchronization proxy server.
所述用户数据同步代理服务器还用于,在获取到用户终端发送的所述数据同步请求中携带的待同步的用户数据之后,缓存所述待同步的用户数据,并向所述用户数据同步服务器发送数据同步请求,其中携带所述待同步的用户数据以及所述用户信息; The user data synchronization proxy server is further configured to, after obtaining the user data to be synchronized carried in the data synchronization request sent by the user terminal, cache the user data to be synchronized, and send the user data to the user data synchronization server sending a data synchronization request, which carries the user data to be synchronized and the user information;
所述用户数据同步服务器还用于,接收到所述用户数据同步代理服务器发送的用户数据同步请求后,获取其中携带的用户信息和待同步的用户数据,根据获取到的用户信息,查询与所述用户信息绑定的已登录本服务器的用户终端,将获取到的待同步用户数据发送给查询到的用户终端。 The user data synchronization server is further configured to, after receiving the user data synchronization request sent by the user data synchronization proxy server, obtain the user information carried therein and the user data to be synchronized, and query the information related to the obtained user data according to the obtained user information. The user terminal that has logged in to the server bound to the above user information sends the obtained user data to be synchronized to the queried user terminal.
综上所述,本发明实施例中,用户数据同步代理服务器接收已登录本服务器的用户终端发送的数据同步请求后,获取其中携带的用户信息和待同步的用户数据;所述用户数据同步代理服务器根据获取到的用户信息,查询与所述用户信息绑定的其它已登录本服务器的用户终端;所述用户数据同步代理服务器将获取到的待同步用户数据发送给查询到的用户终端,通过在现有的数据同步的体系架构的基础之上添加代理服务器,实现多个终端间的数据同步。 To sum up, in the embodiment of the present invention, after the user data synchronization proxy server receives the data synchronization request sent by the user terminal that has logged into the server, it obtains the user information carried therein and the user data to be synchronized; the user data synchronization proxy server According to the obtained user information, the server queries other user terminals bound to the user information that have already logged into the server; the user data synchronization proxy server sends the obtained user data to be synchronized to the queried user terminal, through A proxy server is added on the basis of the existing data synchronization architecture to realize data synchronization between multiple terminals.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a A computer device (which may be a personal computer, a server, or a network device, etc.) executes the methods described in various embodiments of the present invention.
本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。 Those skilled in the art can understand that the drawing is only a schematic diagram of a preferred embodiment, and the modules or processes in the drawing are not necessarily necessary for implementing the present invention.
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。 Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description in the embodiment, or can be located in one or more devices different from the embodiment according to corresponding changes. The modules in the above embodiments can be combined into one module, and can also be further split into multiple sub-modules.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。 The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
以上公开的仅为本发明的几个具体实施例,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。 The above disclosures are only a few specific embodiments of the present invention, however, the present invention is not limited thereto, and any changes conceivable by those skilled in the art shall fall within the protection scope of the present invention.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210453271.3A CN103812900A (en) | 2012-11-13 | 2012-11-13 | Data synchronization method, device and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210453271.3A CN103812900A (en) | 2012-11-13 | 2012-11-13 | Data synchronization method, device and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN103812900A true CN103812900A (en) | 2014-05-21 |
Family
ID=50709098
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210453271.3A Pending CN103812900A (en) | 2012-11-13 | 2012-11-13 | Data synchronization method, device and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103812900A (en) |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104080077A (en) * | 2014-07-17 | 2014-10-01 | 中国联合网络通信集团有限公司 | Data synchronization method and device based on smart cards |
| CN104883621A (en) * | 2015-05-14 | 2015-09-02 | 无锡华海天和信息科技有限公司 | Method for synchronizing contacts for smart phone and smart set top box |
| CN107172224A (en) * | 2017-07-29 | 2017-09-15 | 安徽云帮邦网络技术有限公司 | A kind of cloud data downloading system |
| CN107645597A (en) * | 2017-09-19 | 2018-01-30 | 上海闻泰信息技术有限公司 | The synchronous method and terminal of application program |
| CN107948291A (en) * | 2017-11-28 | 2018-04-20 | 西安万像电子科技有限公司 | Control method, the device and system of terminal |
| CN108566290A (en) * | 2018-02-07 | 2018-09-21 | 平安科技(深圳)有限公司 | service configuration management method, system, storage medium and server |
| CN108959504A (en) * | 2018-06-27 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of file system teledata synchronization realizing method and system |
| CN112437142A (en) * | 2020-11-13 | 2021-03-02 | 杭州米络星科技(集团)有限公司 | Data synchronization system and method for multiple data centers |
| CN115955487A (en) * | 2022-11-09 | 2023-04-11 | 卡斯柯信号有限公司 | A CTC station multi-terminal synchronous login method and system |
| CN116033011A (en) * | 2023-03-31 | 2023-04-28 | 新云网科技集团股份有限公司 | Data communication method, device, equipment and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1194755A (en) * | 1995-08-31 | 1998-09-30 | 摩托罗拉公司 | System and method for state synchronization of multiple pagers |
| US20060013368A1 (en) * | 2001-01-12 | 2006-01-19 | Labaw Christopher D | Apparatus and method for providing a unified messaging integration tool |
| CN1976275A (en) * | 2006-12-15 | 2007-06-06 | 深圳市戴文科技有限公司 | Data synchronizing system and method |
| CN101188543A (en) * | 2006-11-24 | 2008-05-28 | 村田机械株式会社 | Relay server, relay communication system and communication device |
| CN101257375A (en) * | 2006-12-31 | 2008-09-03 | 华为技术有限公司 | Method and device for realizing message synchronization of multiple terminals |
| CN202004792U (en) * | 2011-04-06 | 2011-10-05 | 苏州阔地网络科技有限公司 | Server |
| CN102368770A (en) * | 2011-10-20 | 2012-03-07 | 江西省南城县网信电子有限公司 | Multimedia resource sharing system based on home network |
-
2012
- 2012-11-13 CN CN201210453271.3A patent/CN103812900A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1194755A (en) * | 1995-08-31 | 1998-09-30 | 摩托罗拉公司 | System and method for state synchronization of multiple pagers |
| US20060013368A1 (en) * | 2001-01-12 | 2006-01-19 | Labaw Christopher D | Apparatus and method for providing a unified messaging integration tool |
| CN101188543A (en) * | 2006-11-24 | 2008-05-28 | 村田机械株式会社 | Relay server, relay communication system and communication device |
| CN1976275A (en) * | 2006-12-15 | 2007-06-06 | 深圳市戴文科技有限公司 | Data synchronizing system and method |
| CN101257375A (en) * | 2006-12-31 | 2008-09-03 | 华为技术有限公司 | Method and device for realizing message synchronization of multiple terminals |
| CN202004792U (en) * | 2011-04-06 | 2011-10-05 | 苏州阔地网络科技有限公司 | Server |
| CN102368770A (en) * | 2011-10-20 | 2012-03-07 | 江西省南城县网信电子有限公司 | Multimedia resource sharing system based on home network |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104080077A (en) * | 2014-07-17 | 2014-10-01 | 中国联合网络通信集团有限公司 | Data synchronization method and device based on smart cards |
| CN104080077B (en) * | 2014-07-17 | 2017-09-22 | 中国联合网络通信集团有限公司 | Method of data synchronization and device based on smart card |
| CN104883621A (en) * | 2015-05-14 | 2015-09-02 | 无锡华海天和信息科技有限公司 | Method for synchronizing contacts for smart phone and smart set top box |
| CN107172224A (en) * | 2017-07-29 | 2017-09-15 | 安徽云帮邦网络技术有限公司 | A kind of cloud data downloading system |
| CN107645597A (en) * | 2017-09-19 | 2018-01-30 | 上海闻泰信息技术有限公司 | The synchronous method and terminal of application program |
| CN107948291B (en) * | 2017-11-28 | 2021-06-01 | 西安万像电子科技有限公司 | Terminal control method, device and system |
| CN107948291A (en) * | 2017-11-28 | 2018-04-20 | 西安万像电子科技有限公司 | Control method, the device and system of terminal |
| CN108566290A (en) * | 2018-02-07 | 2018-09-21 | 平安科技(深圳)有限公司 | service configuration management method, system, storage medium and server |
| CN108959504A (en) * | 2018-06-27 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of file system teledata synchronization realizing method and system |
| CN108959504B (en) * | 2018-06-27 | 2021-11-26 | 郑州云海信息技术有限公司 | Method and system for realizing remote data synchronization of file system |
| CN112437142A (en) * | 2020-11-13 | 2021-03-02 | 杭州米络星科技(集团)有限公司 | Data synchronization system and method for multiple data centers |
| CN112437142B (en) * | 2020-11-13 | 2022-05-31 | 杭州米络星科技(集团)有限公司 | Data synchronization system and method for multiple data centers |
| CN115955487A (en) * | 2022-11-09 | 2023-04-11 | 卡斯柯信号有限公司 | A CTC station multi-terminal synchronous login method and system |
| CN116033011A (en) * | 2023-03-31 | 2023-04-28 | 新云网科技集团股份有限公司 | Data communication method, device, equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103812900A (en) | Data synchronization method, device and system | |
| CN104767715B (en) | Access control method and equipment | |
| EP2633667B1 (en) | System and method for on the fly protocol conversion in obtaining policy enforcement information | |
| CN103581184B (en) | The method and system of mobile terminal accessing corporate intranet server | |
| JP5239341B2 (en) | Gateway, relay method and program | |
| US20210234835A1 (en) | Private cloud routing server connection mechanism for use in a private communication architecture | |
| CN103329091B (en) | Cross access login controller | |
| WO2017024791A1 (en) | Authorization processing method and device | |
| KR102645768B1 (en) | System for managing multiple identity and method thereof | |
| CN102082775A (en) | Method, device and system for managing subscriber identity | |
| WO2017024842A1 (en) | Internet access authentication method, client, computer storage medium | |
| CN105450582A (en) | Business processing method, terminal, server and system | |
| US11683292B2 (en) | Private cloud routing server connection mechanism for use in a private communication architecture | |
| CN105392137A (en) | Household WIFI embezzlement preventing method, wireless router and terminal equipment | |
| WO2015184410A1 (en) | Domain trusted video network | |
| CN105306485B (en) | Network access authentication method, certificate server and its place Verification System | |
| CN103561063B (en) | A kind of method of Register top box and terminal | |
| US20190028460A1 (en) | Low-overhead single sign on | |
| CN106453349A (en) | An account number login method and apparatus | |
| CN110856145A (en) | IOT device and user binding method, device and medium based on near field authentication | |
| CN102404738B (en) | Method, system and authentication server for accessing and exiting WLAN network | |
| US11575667B1 (en) | System and method for secure communications | |
| CN103024049A (en) | System capable of achieving browser data synchronization | |
| CN107770203B (en) | Service request forwarding method, device and system | |
| TWI546688B (en) | Method for processing url and associated server and non-transitory computer readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140521 |
|
| RJ01 | Rejection of invention patent application after publication |