CN110493319B - Data synchronization method, system and device - Google Patents
Data synchronization method, system and device Download PDFInfo
- Publication number
- CN110493319B CN110493319B CN201910666803.3A CN201910666803A CN110493319B CN 110493319 B CN110493319 B CN 110493319B CN 201910666803 A CN201910666803 A CN 201910666803A CN 110493319 B CN110493319 B CN 110493319B
- Authority
- CN
- China
- Prior art keywords
- user information
- server
- target
- identifier
- type
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000011664 signaling Effects 0.000 claims description 23
- 230000001360 synchronised effect Effects 0.000 claims description 19
- 238000003860 storage Methods 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 19
- 238000004590 computer program Methods 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 13
- 230000015654 memory Effects 0.000 description 12
- 230000006855 networking Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 7
- 230000008901 benefit Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011144 upstream manufacturing Methods 0.000 description 2
- 206010035148 Plague Diseases 0.000 description 1
- 241000700605 Viruses Species 0.000 description 1
- 241000607479 Yersinia pestis Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000002155 anti-virotic effect Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
发明涉及通信领域,特别是涉及数据同步方法、系统及装置。The invention relates to the field of communication, in particular to a data synchronization method, system and device.
背景技术Background technique
视联网是网络发展的重要里程碑,是互联网的更高级形态,是一个实时网络,能够实现目前互联网无法实现的全网高清视频实时传输,将众多互联网应用推向高清视频化,高清面对面。Video networking is an important milestone in network development, a more advanced form of the Internet, and a real-time network that can realize the real-time transmission of high-definition video across the entire network that cannot be achieved by the Internet at present, and push many Internet applications to high-definition video, high-definition face-to-face.
为了对视联网业务提供支撑与管理,基于视联网开发了较多的系统客户端,例如包括视联网会议管理系统(会管客户端)、视联网监控联网管理调度系统(调度客户端)、多媒体体信息发布管理系统(管理客户端)等多个系统客户端。In order to provide support and management for the Internet of Things business, many system clients have been developed based on the Internet of Things, such as the Internet of Things conference management system (conference management client), the Internet of Things monitoring and management system (scheduling client), multimedia Multiple system clients such as the body information release management system (management client).
然而目前,用户在一个系统注册成功后,只能使用在该系统的用户信息登录该系统进行业务,如果该用户要使用其他系统,则需要在其他系统再次注册。例如,用户在会管客户端注册成功后,该用户只能使用在会管客户端的用户信息登录会管客户端,而不能使用该用户信息登录到例如调度客户端、管理客户端等其他客户端。从而导致多个系统之间不能共享一个用户的用户信息、需要用户在每个系统上都要分别注册的问题。However, at present, after a user successfully registers in a system, he can only use the user information in the system to log in to the system to perform services. If the user wants to use another system, he needs to register again in the other system. For example, after a user successfully registers on the management client, the user can only use the user information on the management client to log in to the management client, but cannot use the user information to log in to other clients such as scheduling client, management client, etc. . As a result, the user information of a user cannot be shared among multiple systems, and the user needs to register separately on each system.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种数据同步方法、系统及装置。In view of the above problems, the embodiments of the present invention are proposed in order to provide a data synchronization method, system and apparatus that overcome the above problems or at least partially solve the above problems.
为了解决上述问题,本发明实施例公开了一种数据同步方法,应用于包括客户端、与所述客户端对应的第一服务器、以及至少一个第二服务器的系统;包括:In order to solve the above problem, an embodiment of the present invention discloses a data synchronization method, which is applied to a system including a client, a first server corresponding to the client, and at least one second server; including:
所述客户端获取用户在所述客户端上输入的用户信息;The client obtains user information input by the user on the client;
所述客户端向所述第一服务器发送所述用户信息;sending, by the client, the user information to the first server;
所述第一服务器接收所述用户信息,生成与所述用户信息关联的类型标识,并存储所述用户信息和所述类型标识;The first server receives the user information, generates a type identifier associated with the user information, and stores the user information and the type identifier;
所述第一服务器向所述至少一个第二服务器中的目标服务器发送所述用户信息和所述类型标识;The first server sends the user information and the type identifier to a target server in the at least one second server;
所述目标服务器接收所述用户信息和所述类型标识,并判断所述类型标识是否为注册类型;The target server receives the user information and the type identifier, and determines whether the type identifier is a registration type;
在所述类型标识为注册类型的情况下,所述目标服务器存储所述用户信息,以与所述第一服务器中存储的所述用户信息保持同步。If the type is identified as a registered type, the target server stores the user information to keep synchronization with the user information stored in the first server.
本发明实施例还公开了一种数据同步方法,执行于目标服务器,包括:The embodiment of the present invention also discloses a data synchronization method, which is executed on the target server and includes:
接收第一服务器发送的用户信息和与所述用户信息关联的类型标识,并判断所述类型标识是否为注册类型;其中,所述用户信息为所述第一服务器接收的与所述第一服务器对应的客户端发送的信息,所述客户端发送的所述用户信息为所述客户端获取的用户在所述客户端上输入的用户信息,所述目标服务器为所述第一服务器从至少一个第二服务器中确定的服务器,所述类型标识为所述第一服务器生成的与所述用户信息关联的类型标识;Receive the user information sent by the first server and the type identifier associated with the user information, and determine whether the type identifier is a registered type; wherein, the user information is received by the first server and is associated with the first server. Corresponding information sent by the client, the user information sent by the client is the user information obtained by the client and input by the user on the client, and the target server is the first server from at least one The server determined in the second server, the type identifier is the type identifier associated with the user information generated by the first server;
在所述类型标识为注册类型的情况下,存储所述用户信息,以与所述第一服务器中存储的所述用户信息保持同步。If the type is identified as a registered type, the user information is stored to keep synchronized with the user information stored in the first server.
本发明实施例还公开了一种数据同步方法,执行于第一服务器,包括:The embodiment of the present invention also discloses a data synchronization method, which is executed on the first server and includes:
接收客户端发送的用户信息,生成与所述用户信息关联的类型标识,并存储所述用户信息和所述类型标识,其中,所述用户信息为所述客户端获取的用户在所述客户端上输入的用户信息;Receive the user information sent by the client, generate a type identifier associated with the user information, and store the user information and the type identifier, where the user information is obtained by the client User information entered on;
向至少一个第二服务器中的目标服务器发送所述用户信息和所述类型标识,以使所述目标服务器接收所述用户信息和所述类型标识,并判断所述类型标识是否为注册类型;在所述类型标识为注册类型的情况下,使所述目标服务器存储所述用户信息,以与所述第一服务器中存储的所述用户信息保持同步。Send the user information and the type identification to a target server in at least one second server, so that the target server receives the user information and the type identification, and judges whether the type identification is a registered type; In the case that the type identifier is a registration type, the target server is made to store the user information to keep synchronization with the user information stored in the first server.
本发明实施例还公开了一种数据同步系统,包括:The embodiment of the present invention also discloses a data synchronization system, comprising:
客户端,用于获取用户在所述客户端上进行注册的用户信息;a client, for obtaining user information that the user registers on the client;
所述客户端,还用于向第一服务器发送所述用户信息;The client is further configured to send the user information to the first server;
所述第一服务器,用于接收所述用户信息,生成与所述用户信息关联的类型标识,并存储所述用户信息和所述类型标识;the first server, configured to receive the user information, generate a type identifier associated with the user information, and store the user information and the type identifier;
所述第一服务器,还用于向所述至少一个第二服务器中的目标服务器发送所述用户信息和所述类型标识;The first server is further configured to send the user information and the type identifier to a target server in the at least one second server;
所述目标服务器,用于接收所述用户信息和所述类型标识,并判断所述类型标识是否为注册类型;The target server, for receiving the user information and the type identification, and judging whether the type identification is a registration type;
所述目标服务器,还用于在所述类型标识为注册类型的情况下,存储所述用户信息,以与所述第一服务器中存储的所述用户信息保持同步。The target server is further configured to store the user information in the case that the type identification is a registered type, so as to keep synchronization with the user information stored in the first server.
本发明实施例还公开了一种数据同步装置,设置于目标服务器,包括:The embodiment of the present invention also discloses a data synchronization device, which is set on the target server and includes:
接收模块,用于接收第一服务器发送的用户信息和与所述用户信息关联的类型标识,并判断所述类型标识是否为注册类型;其中,所述用户信息为所述第一服务器接收的与所述第一服务器对应的客户端发送的信息,所述客户端发送的所述用户信息为所述客户端获取的用户在所述客户端上输入的用户信息,所述目标服务器为所述第一服务器从至少一个第二服务器中确定的服务器,所述类型标识为所述第一服务器生成的与所述用户信息关联的类型标识;The receiving module is configured to receive the user information sent by the first server and the type identifier associated with the user information, and determine whether the type identifier is a registered type; wherein, the user information is received by the first server. Information sent by the client corresponding to the first server, the user information sent by the client is the user information obtained by the client and input by the user on the client, and the target server is the first A server determined by a server from at least one second server, and the type identifier is a type identifier associated with the user information generated by the first server;
存储模块,用于若所述目标服务器未存储有与所述用户信息中的标识匹配的第一目标标识,则存储所述用户信息,以与所述第一服务器中存储的所述用户信息保持同步。A storage module, configured to store the user information if the target server does not store a first target identifier that matches the identifier in the user information, to keep the user information stored in the first server Synchronize.
本发明实施例还公开了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述所述的数据同步方法。An embodiment of the present invention further discloses a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the data synchronization method described above is implemented.
本发明实施例还公开了一种数据同步装置,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述所述的数据同步方法。An embodiment of the present invention further discloses a data synchronization device, comprising a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is implemented when executed by the processor The data synchronization method described above.
本发明实施例包括以下优点:The embodiments of the present invention include the following advantages:
本发明实施中,接收第一服务器发送的用户信息和与用户信息关联的类型标识,并判断类型标识是否为注册类型;用户信息为第一服务器接收的与第一服务器对应的客户端发送的信息,客户端发送的用户信息为客户端获取的用户在客户端上输入的用户信息,目标服务器为第一服务器从至少一个第二服务器中确定的服务器,类型标识为第一服务器生成的与用户信息关联的类型标识;在类型标识为注册类型的情况下,存储用户信息。从而实现用户只需在该客户端进行一次注册,第一服务器即可以将用户信息同步到目标服务器,无需用户在目标服务器对应的客户端重新注册用户信息即可以登录到目标服务器对应的客户端。In the implementation of the present invention, the user information sent by the first server and the type identifier associated with the user information are received, and whether the type identifier is a registered type is determined; the user information is received by the first server and sent by the client corresponding to the first server. , the user information sent by the client is the user information obtained by the client and input by the user on the client, the target server is the server determined by the first server from at least one second server, and the type identifier is the user information generated by the first server and the user information. The associated type identifier; if the type identifier is a registered type, user information is stored. Therefore, the user only needs to register on the client once, the first server can synchronize the user information to the target server, and the user can log in to the client corresponding to the target server without re-registering the user information on the client corresponding to the target server.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:
图1是本发明的一种视联网的组网示意图;Fig. 1 is the networking schematic diagram of a kind of video network of the present invention;
图2是本发明的一种节点服务器的硬件结构示意图;2 is a schematic diagram of the hardware structure of a node server of the present invention;
图3是本发明的一种接入交换机的硬件结构示意图;3 is a schematic diagram of a hardware structure of an access switch of the present invention;
图4是本发明的一种以太网协转网关的硬件结构示意图;4 is a schematic diagram of the hardware structure of an Ethernet protocol conversion gateway of the present invention;
图5为本发明实施例提供的一种数据同步系统的架构图;5 is an architectural diagram of a data synchronization system provided by an embodiment of the present invention;
图6为本发明实施例提供的一种数据同步方法的步骤流程图;6 is a flowchart of steps of a data synchronization method provided by an embodiment of the present invention;
图7为本发明实施例提供的一种数据同步方法的信令流程图;FIG. 7 is a signaling flowchart of a data synchronization method provided by an embodiment of the present invention;
图8为本发明实施例提供的一种数据同步系统的结构示意图;8 is a schematic structural diagram of a data synchronization system according to an embodiment of the present invention;
图9为本发明实施例提供的一种数据同步装置的结构示意图;9 is a schematic structural diagram of a data synchronization apparatus according to an embodiment of the present invention;
图10为本发明实施例提供的另一种数据同步装置的结构示意图。FIG. 10 is a schematic structural diagram of another data synchronization apparatus provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.
应当理解,此处所描述的具体实施例仅用以解释本发明,仅仅是本发明一部分实施例,而不是全部的实施例,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, only a part of the embodiments of the present invention, but not all of the embodiments, and are not used to limit the present invention.
视联网是网络发展的重要里程碑,是一个实时网络,能够实现高清视频实时传输,将众多互联网应用推向高清视频化,高清面对面。Video networking is an important milestone in network development. It is a real-time network that can realize real-time transmission of high-definition video, and push many Internet applications to high-definition video, high-definition face-to-face.
视联网采用实时高清视频交换技术,可以在一个网络平台上将所需的服务,如高清视频会议、视频监控、智能化监控分析、应急指挥、数字广播电视、延时电视、网络教学、现场直播、VOD点播、电视邮件、个性录制(PVR)、内网(自办)频道、智能化视频播控、信息发布等数十种视频、语音、图片、文字、通讯、数据等服务全部整合在一个系统平台,通过电视或电脑实现高清品质视频播放。Video networking adopts real-time high-definition video switching technology, which can provide required services on a network platform, such as high-definition video conferencing, video surveillance, intelligent monitoring and analysis, emergency command, digital broadcast TV, delayed TV, online teaching, live broadcast , VOD on demand, TV mail, personal recording (PVR), intranet (self-organized) channels, intelligent video broadcast control, information release and other dozens of video, voice, picture, text, communication, data and other services are all integrated into one The system platform can realize high-definition video playback through TV or computer.
为使本领域技术人员更好地理解本发明实施例,以下对视联网进行介绍:In order to make those skilled in the art better understand the embodiments of the present invention, video networking is introduced as follows:
视联网所应用的部分技术如下所述:Some of the technologies used in the Internet of Things are as follows:
网络技术(Network Technology)Network Technology
视联网的网络技术创新改良了传统以太网(Ethernet),以面对网络上潜在的巨大视频流量。不同于单纯的网络分组包交换(Packet Switching)或网络电路交换(CircuitSwitching),视联网技术采用Packet Switching满足Streaming需求。视联网技术具备分组交换的灵活、简单和低价,同时具备电路交换的品质和安全保证,实现了全网交换式虚拟电路,以及数据格式的无缝连接。The network technology innovation of the video network improves the traditional Ethernet (Ethernet) to face the potentially huge video traffic on the network. Different from pure network packet switching (Packet Switching) or network circuit switching (Circuit Switching), the Internet of View technology adopts Packet Switching to meet the requirements of Streaming. The Internet of Things technology has the flexibility, simplicity and low price of packet switching, and at the same time has the quality and security assurance of circuit switching, and realizes the entire network of switched virtual circuits and seamless connection of data formats.
交换技术(Switching Technology)Switching Technology
视联网采用以太网的异步和包交换两个优点,在全兼容的前提下消除了以太网缺陷,具备全网端到端无缝连接,直通用户终端,直接承载IP数据包。用户数据在全网范围内不需任何格式转换。视联网是以太网的更高级形态,是一个实时交换平台,能够实现目前互联网无法实现的全网大规模高清视频实时传输,将众多网络视频应用推向高清化、统一化。The Internet of Things adopts the asynchronous and packet switching advantages of Ethernet, and eliminates the defects of Ethernet under the premise of full compatibility. User data does not need any format conversion in the whole network. Video networking is a more advanced form of Ethernet. It is a real-time switching platform that can realize the real-time transmission of large-scale high-definition video across the entire network that cannot be achieved by the Internet, and push many network video applications to high-definition and unified.
服务器技术(Server Technology)Server Technology
视联网和统一视频平台上的服务器技术不同于传统意义上的服务器,它的流媒体传输是建立在面向连接的基础上,其数据处理能力与流量、通讯时间无关,单个网络层就能够包含信令及数据传输。对于语音和视频业务来说,视联网和统一视频平台流媒体处理的复杂度比数据处理简单许多,效率比传统服务器大大提高了百倍以上。The server technology on the video networking and unified video platform is different from the server in the traditional sense. Its streaming media transmission is based on connection-oriented, and its data processing capability has nothing to do with traffic and communication time. A single network layer can contain information. command and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than data processing, and the efficiency is greatly improved by more than 100 times compared to traditional servers.
储存器技术(Storage Technology)Storage Technology
统一视频平台的超高速储存器技术为了适应超大容量和超大流量的媒体内容而采用了最先进的实时操作系统,将服务器指令中的节目信息映射到具体的硬盘空间,媒体内容不再经过服务器,瞬间直接送达到用户终端,用户等待一般时间小于0.2秒。最优化的扇区分布大大减少了硬盘磁头寻道的机械运动,资源消耗仅占同等级IP互联网的20%,但产生大于传统硬盘阵列3倍的并发流量,综合效率提升10倍以上。The ultra-high-speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content of large capacity and large flow, and maps the program information in the server instruction to the specific hard disk space, and the media content no longer passes through the server. It is directly delivered to the user terminal in an instant, and the general waiting time of the user is less than 0.2 seconds. The optimized sector distribution greatly reduces the mechanical movement of the hard disk head seeking, and the resource consumption only accounts for 20% of the same level of IP Internet, but it generates 3 times more concurrent traffic than traditional hard disk arrays, and the overall efficiency is increased by more than 10 times.
网络安全技术(Network Security Technology)Network Security Technology
视联网的结构性设计通过每次服务单独许可制、设备与用户数据完全隔离等方式从结构上彻底根除了困扰互联网的网络安全问题,一般不需要杀毒程序、防火墙,杜绝了黑客与病毒的攻击,为用户提供结构性的无忧安全网络。The structural design of the Internet of Things completely eliminates the network security problems that plague the Internet through separate licensing for each service and complete isolation of equipment and user data. Generally, anti-virus programs and firewalls are not required, and hackers and viruses are prevented from attacking. , to provide users with a structured worry-free safety network.
服务创新技术(Service Innovation Technology)Service Innovation Technology
统一视频平台将业务与传输融合在一起,不论是单个用户、私网用户还是一个网络的总合,都不过是一次自动连接。用户终端、机顶盒或PC直接连到统一视频平台,获得丰富多彩的各种形态的多媒体视频服务。统一视频平台采用“菜谱式”配表模式来替代传统的复杂应用编程,可以使用非常少的代码即可实现复杂的应用,实现“无限量”的新业务创新。The unified video platform integrates services and transmission. Whether it is a single user, a private network user, or the aggregate of a network, it is just an automatic connection. User terminals, set-top boxes or PCs are directly connected to the unified video platform to obtain a variety of multimedia video services in various forms. The unified video platform adopts the "recipe-style" table matching mode to replace the traditional complex application programming. It can realize complex applications with very little code, and realize "unlimited" new business innovation.
视联网的组网如下所述:The networking of the Internet of Things is as follows:
视联网是一种集中控制的网络结构,该网络可以是树型网、星型网、环状网等等类型,但在此基础上网络中需要有集中控制节点来控制整个网络。The Internet of Things is a centralized control network structure. The network can be a tree network, a star network, a ring network, etc., but on this basis, a centralized control node is required in the network to control the entire network.
如图1所示,视联网分为接入网和城域网两部分。As shown in Figure 1, the Internet of Things is divided into two parts: the access network and the metropolitan area network.
接入网部分的设备主要可以分为3类:节点服务器,接入交换机,终端(包括各种机顶盒、编码板、存储器等)。节点服务器与接入交换机相连,接入交换机可以与多个终端相连,并可以连接以太网。The equipment in the access network part can be mainly divided into three categories: node server, access switch, and terminal (including various set-top boxes, coding boards, memory, etc.). The node server is connected to the access switch, and the access switch can be connected to multiple terminals and can be connected to Ethernet.
其中,节点服务器是接入网中起集中控制功能的节点,可控制接入交换机和终端。节点服务器可直接与接入交换机相连,也可以直接与终端相连。The node server is a node in the access network that functions as a centralized control, and can control access switches and terminals. The node server can be directly connected to the access switch, or it can be directly connected to the terminal.
类似的,城域网部分的设备也可以分为3类:城域服务器,节点交换机,节点服务器。城域服务器与节点交换机相连,节点交换机可以与多个节点服务器相连。Similarly, the equipment in the metropolitan area network can also be divided into three categories: metropolitan area server, node switch, and node server. The metropolitan area server is connected with the node switch, and the node switch can be connected with multiple node servers.
其中,节点服务器即为接入网部分的节点服务器,即节点服务器既属于接入网部分,又属于城域网部分。The node server is the node server of the access network part, that is, the node server belongs to both the access network part and the metropolitan area network part.
城域服务器是城域网中起集中控制功能的节点,可控制节点交换机和节点服务器。城域服务器可直接连接节点交换机,也可直接连接节点服务器。The metropolitan area server is a node with centralized control function in the metropolitan area network, which can control the node switch and the node server. The metropolitan area server can be directly connected to the node switch or directly connected to the node server.
由此可见,整个视联网络是一种分层集中控制的网络结构,而节点服务器和城域服务器下控制的网络可以是树型、星型、环状等各种结构。It can be seen that the entire VisionLink network is a network structure controlled by layers and centralized, and the network controlled by the node server and the metro server can be tree, star, ring and other structures.
形象地称,接入网部分可以组成统一视频平台(虚线圈中部分),多个统一视频平台可以组成视联网;每个统一视频平台可以通过城域以及广域视联网互联互通。Figuratively, the access network part can form a unified video platform (the part in the dashed circle), and multiple unified video platforms can form a video network; each unified video platform can be interconnected through the metro and wide-area video networks.
视联网设备分类Classification of Internet-connected devices
1.1本发明实施例的视联网中的设备主要可以分为3类:服务器,交换机(包括以太网网关),终端(包括各种机顶盒,编码板,存储器等)。视联网整体上可以分为城域网(或者国家网、全球网等)和接入网。1.1 The devices in the video networking according to the embodiment of the present invention can be mainly divided into three categories: servers, switches (including Ethernet gateways), and terminals (including various set-top boxes, coding boards, memories, etc.). As a whole, the Internet of Views can be divided into a metropolitan area network (or a national network, a global network, etc.) and an access network.
1.2其中接入网部分的设备主要可以分为3类:节点服务器,接入交换机(包括以太网网关),终端(包括各种机顶盒,编码板,存储器等)。1.2 The equipment in the access network part can be mainly divided into three categories: node server, access switch (including Ethernet gateway), terminal (including various set-top boxes, coding boards, memory, etc.).
各接入网设备的具体硬件结构为:The specific hardware structure of each access network device is as follows:
节点服务器:Node server:
如图2所示,主要包括网络接口模块201、交换引擎模块202、CPU模块203、磁盘阵列模块204;As shown in FIG. 2 , it mainly includes a
其中,网络接口模块201,CPU模块203、磁盘阵列模块204进来的包均进入交换引擎模块202;交换引擎模块202对进来的包进行查地址表205的操作,从而获得包的导向信息;并根据包的导向信息把该包存入对应的包缓存器206的队列;如果包缓存器206的队列接近满,则丢弃;交换引擎模202轮询所有包缓存器队列,如果满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零。磁盘阵列模块204主要实现对硬盘的控制,包括对硬盘的初始化、读写等操作;CPU模块203主要负责与接入交换机、终端(图中未示出)之间的协议处理,对地址表205(包括下行协议包地址表、上行协议包地址表、数据包地址表)的配置,以及,对磁盘阵列模块204的配置。Among them, the incoming packets from the
接入交换机:Access switch:
如图3所示,主要包括网络接口模块(下行网络接口模块301、上行网络接口模块302)、交换引擎模块303和CPU模块304;As shown in FIG. 3 , it mainly includes a network interface module (downlink
其中,下行网络接口模块301进来的包(上行数据)进入包检测模块305;包检测模块305检测包的目地地址(DA)、源地址(SA)、数据包类型及包长度是否符合要求,如果符合,则分配相应的流标识符(stream-id),并进入交换引擎模块303,否则丢弃;上行网络接口模块302进来的包(下行数据)进入交换引擎模块303;CPU模块204进来的数据包进入交换引擎模块303;交换引擎模块303对进来的包进行查地址表306的操作,从而获得包的导向信息;如果进入交换引擎模块303的包是下行网络接口往上行网络接口去的,则结合流标识符(stream-id)把该包存入对应的包缓存器307的队列;如果该包缓存器307的队列接近满,则丢弃;如果进入交换引擎模块303的包不是下行网络接口往上行网络接口去的,则根据包的导向信息,把该数据包存入对应的包缓存器307的队列;如果该包缓存器307的队列接近满,则丢弃。Wherein, the incoming packet (uplink data) from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the destination address (DA), source address (SA), data packet type and packet length of the packet meet the requirements, if If it matches, the corresponding stream identifier (stream-id) is allocated and entered into the switching engine module 303, otherwise it is discarded; the incoming packet (downlink data) from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet from the CPU module 204 Enter the switching engine module 303; the switching engine module 303 performs the operation of looking up the address table 306 for the incoming packet, thereby obtaining the orientation information of the packet; if the packet entering the switching engine module 303 is from the downlink network interface to the uplink network interface, then combine The stream identifier (stream-id) stores the packet into the queue of the corresponding packet buffer 307; if the queue of the packet buffer 307 is close to full, it is discarded; if the packet entering the switching engine module 303 is not the downstream network interface, it is upstream If the data packet goes to the network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the direction information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
交换引擎模块303轮询所有包缓存器队列,在本发明实施例中分两种情形:The switching
如果该队列是下行网络接口往上行网络接口去的,则满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零;3)获得码率控制模块产生的令牌;If the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port sending buffer is not full; 2) The queue packet counter is greater than zero; 3) The token generated by the rate control module is obtained ;
如果该队列不是下行网络接口往上行网络接口去的,则满足以下条件进行转发:1)该端口发送缓存未满;2)该队列包计数器大于零。If the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the sending buffer of the port is not full; 2) the packet counter of the queue is greater than zero.
码率控制模块308是由CPU模块304来配置的,在可编程的间隔内对所有下行网络接口往上行网络接口去的包缓存器队列产生令牌,用以控制上行转发的码率。The
CPU模块304主要负责与节点服务器之间的协议处理,对地址表306的配置,以及,对码率控制模块308的配置。The
以太网协转网关: Ethernet protocol conversion gateway :
如图4所示,主要包括网络接口模块(下行网络接口模块401、上行网络接口模块402)、交换引擎模块403、CPU模块404、包检测模块405、码率控制模块408、地址表406、包缓存器407和MAC添加模块409、MAC删除模块410。As shown in Figure 4, it mainly includes a network interface module (downlink
其中,下行网络接口模块401进来的数据包进入包检测模块405;包检测模块405检测数据包的以太网MAC DA、以太网MAC SA、以太网length or frame type、视联网目地地址DA、视联网源地址SA、视联网数据包类型及包长度是否符合要求,如果符合则分配相应的流标识符(stream-id);然后,由MAC删除模块410减去MAC DA、MAC SA、length or frame type(2byte),并进入相应的接收缓存,否则丢弃;Among them, the data packets coming from the downlink
下行网络接口模块401检测该端口的发送缓存,如果有包则根据包的视联网目地地址DA获知对应的终端的以太网MAC DA,添加终端的以太网MAC DA、以太网协转网关的MACSA、以太网length or frame type,并发送。The downlink
以太网协转网关中其他模块的功能与接入交换机类似。The functions of other modules in the Ethernet protocol conversion gateway are similar to that of the access switch.
终端:terminal:
主要包括网络接口模块、业务处理模块和CPU模块;例如,机顶盒主要包括网络接口模块、视音频编解码引擎模块、CPU模块;编码板主要包括网络接口模块、视音频编码引擎模块、CPU模块;存储器主要包括网络接口模块、CPU模块和磁盘阵列模块。Mainly includes network interface module, service processing module and CPU module; for example, set-top box mainly includes network interface module, video and audio codec engine module, CPU module; encoding board mainly includes network interface module, video and audio encoding engine module, CPU module; memory It mainly includes network interface module, CPU module and disk array module.
1.3城域网部分的设备主要可以分为2类:节点服务器,节点交换机,城域服务器。其中,节点交换机主要包括网络接口模块、交换引擎模块和CPU模块;城域服务器主要包括网络接口模块、交换引擎模块和CPU模块构成。1.3 The equipment in the metropolitan area network can be mainly divided into two categories: node server, node switch, and metropolitan area server. Among them, the node switch mainly includes a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly includes a network interface module, a switching engine module and a CPU module.
2、视联网数据包定义2. Definition of Internet Data Packets
2.1接入网数据包定义2.1 Definition of Access Network Data Packets
接入网的数据包主要包括以下几部分:目的地址(DA)、源地址(SA)、保留字节、payload(PDU)、CRC。The data packet of the access network mainly includes the following parts: destination address (DA), source address (SA), reserved bytes, payload (PDU), and CRC.
如下表所示,接入网的数据包主要包括以下几部分:As shown in the table below, the data packets of the access network mainly include the following parts:
其中:in:
目的地址(DA)由8个字节(byte)组成,第一个字节表示数据包的类型(例如各种协议包、组播数据包、单播数据包等),最多有256种可能,第二字节到第六字节为城域网地址,第七、第八字节为接入网地址;The destination address (DA) consists of 8 bytes (byte), the first byte indicates the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are up to 256 possibilities, The second to sixth bytes are the metropolitan area network address, and the seventh and eighth bytes are the access network address;
源地址(SA)也是由8个字节(byte)组成,定义与目的地址(DA)相同;The source address (SA) is also composed of 8 bytes (byte), and the definition is the same as the destination address (DA);
保留字节由2个字节组成;Reserved bytes consist of 2 bytes;
payload部分根据不同的数据报的类型有不同的长度,如果是各种协议包的话是64个字节,如果是单组播数据包话是32+1024=1056个字节,当然并不仅仅限于以上2种;The payload part has different lengths according to different types of datagrams. If it is a variety of protocol packets, it is 64 bytes. If it is a single multicast data packet, it is 32+1024=1056 bytes. Of course, it is not limited to Above 2 kinds;
CRC有4个字节组成,其计算方法遵循标准的以太网CRC算法。The CRC consists of 4 bytes, and its calculation method follows the standard Ethernet CRC algorithm.
2.2城域网数据包定义2.2 MAN Data Packet Definition
城域网的拓扑是图型,两个设备之间可能有2种、甚至2种以上的连接,即节点交换机和节点服务器、节点交换机和节点交换机、节点交换机和节点服务器之间都可能超过2种连接。但是,城域网设备的城域网地址却是唯一的,为了精确描述城域网设备之间的连接关系,在本发明实施例中引入参数:标签,来唯一描述一个城域网设备。The topology of the metropolitan area network is a graph. There may be two or even more than two connections between two devices, that is, there may be more than two connections between node switches and node servers, between node switches and node switches, and between node switches and node servers. kind of connection. However, the metropolitan area network address of the metropolitan area network equipment is unique. In order to accurately describe the connection relationship between the metropolitan area network equipment, a parameter: label is introduced in the embodiment of the present invention to uniquely describe a metropolitan area network equipment.
本说明书中标签的定义和MPLS(Multi-Protocol Label Switch,多协议标签交换)的标签的定义类似,假设设备A和设备B之间有两个连接,那么数据包从设备A到设备B就有2个标签,数据包从设备B到设备A也有2个标签。标签分入标签、出标签,假设数据包进入设备A的标签(入标签)是0x0000,这个数据包离开设备A时的标签(出标签)可能就变成了0x0001。城域网的入网流程是集中控制下的入网过程,也就意味着城域网的地址分配、标签分配都是由城域服务器主导的,节点交换机、节点服务器都是被动的执行而已,这一点与MPLS的标签分配是不同的,MPLS的标签分配是交换机、服务器互相协商的结果。The definition of labels in this specification is similar to the definition of MPLS (Multi-Protocol Label Switch, Multi-Protocol Label Switch) labels. Assuming that there are two connections between device A and device B, the data packets from device A to device B have 2 labels, packets from device B to device A also have 2 labels. Labels are divided into incoming labels and outgoing labels. Assuming that the label (incoming label) of the data packet entering device A is 0x0000, the label (outgoing label) of the data packet when it leaves device A may become 0x0001. The network access process of the metropolitan area network is a network access process under centralized control, which means that the address allocation and label allocation of the metropolitan area network are dominated by the metropolitan area server, and the node switches and node servers are all passively executed. Different from MPLS label assignment, MPLS label assignment is the result of mutual negotiation between switches and servers.
如下表所示,城域网的数据包主要包括以下几部分:As shown in the table below, the data packets of the metropolitan area network mainly include the following parts:
即目的地址(DA)、源地址(SA)、保留字节(Reserved)、标签、payload(PDU)、CRC。其中,标签的格式可以参考如下定义:标签是32bit,其中高16bit保留,只用低16bit,它的位置是在数据包的保留字节和payload之间。Namely destination address (DA), source address (SA), reserved bytes (Reserved), label, payload (PDU), CRC. Among them, the format of the label can refer to the following definition: the label is 32 bits, of which the upper 16 bits are reserved, and only the lower 16 bits are used, and its position is between the reserved bytes of the data packet and the payload.
本实施例提供一种数据同步方法,该数据同步方法应用于包括客户端、与客户端对应的第一服务器、以及至少一个第二服务器的系统。第一服务器可以为流媒体服务器、会管服务器、运维服务器、调度服务器等视联网服务器中的任意一个服务器。本实施例中以两个第二服务器为例进行介绍,两个第二服务器为上述的视联网服务器中除第一服务器之外的任意两个不同的视联网服务器。参照图5,图5为本发明实施例提供的一种数据同步系统的架构图,例如,客户端为流媒体客户端501、第一服务器为流媒体服务器502,一个第二服务器为会管服务器503、另一个第二服务器为调度服务器504。基于图5所示的数据同步系统的架构图,本实施例提供了一种数据同步方法,该方法包括:This embodiment provides a data synchronization method, which is applied to a system including a client, a first server corresponding to the client, and at least one second server. The first server may be any one of video network servers, such as a streaming media server, a management server, an operation and maintenance server, and a scheduling server. In this embodiment, two second servers are used as an example for introduction, and the two second servers are any two different Internet of View servers other than the first server in the above-mentioned Internet of View servers. Referring to FIG. 5, FIG. 5 is an architecture diagram of a data synchronization system provided by an embodiment of the present invention. For example, the client is a
客户端获取用户在客户端上进行注册的用户信息;客户端向第一服务器发送用户信息;第一服务器接收用户信息,并存储用户信息;第一服务器向至少一个第二服务器中的目标服务器发送用户信息;目标服务器接收用户信息,生成与用户信息关联的类型标识,并存储用户信息和类型标识;第一服务器向至少一个第二服务器中的目标服务器发送用户信息和类型标识;目标服务器接收用户信息和类型标识,并判断类型标识是否为注册类型;在类型标识为注册类型的情况下,目标服务器存储用户信息,以与第一服务器中存储的用户信息保持同步。The client obtains the user information registered by the user on the client; the client sends the user information to the first server; the first server receives the user information and stores the user information; the first server sends the user information to the target server in the at least one second server user information; the target server receives the user information, generates a type identifier associated with the user information, and stores the user information and type identifier; the first server sends the user information and type identifier to the target server in at least one second server; the target server receives the user information information and type identifier, and determine whether the type identifier is a registered type; if the type identifier is a registered type, the target server stores the user information to keep synchronization with the user information stored in the first server.
用户通过客户端输入用户信息以进行注册时,如果客户端为流媒体客户端,用户可以打开流媒体客户端提供的注册界面,在注册界面上输入用户信息进行注册。用户输入用户信息完成后,点击注册按钮,流媒体客户端可以获取到用户输入的用户信息,并向第一服务器发送用户信息(如果客户端为流媒体客户端,第一服务器则为流媒体服务器;如果客户端为会管客户端,则第一服务器为会管服务器)。When the user enters user information through the client for registration, if the client is a streaming media client, the user can open the registration interface provided by the streaming media client, and enter the user information on the registration interface to register. After the user enters the user information, click the register button, the streaming media client can obtain the user information input by the user, and send the user information to the first server (if the client is a streaming media client, the first server is a streaming media server. ; if the client is a managed client, the first server is a managed server).
第一服务器接收到用户信息后,如果用户点击的是注册按钮,则第一服务器可以确定接收到用户信息的类型标识为注册类型,从而生成的与用户信息关联的类型标识为注册类型。之后第一服务器存储用户信息和类型标识,并将用户信息和类型标识发送给至少一个第二服务器中的目标服务器。需要说明的是,例如,第一服务器可以先将用户信息和类型标识发送给一个第二服务器,发送完成后再向另一个服务器发送用户信息和类型标识;也可以同时向两个第二服务器分别发送用户信息和类型标识。如果先向一个第二服务器发送,则目标服务器为两个第二服务器中的一个服务器;如果同时向两个第二服务器发送用户信息,则目标服务器为该两个第二服务器。After the first server receives the user information, if the user clicks the registration button, the first server can determine that the type identifier of the received user information is the registration type, so that the generated type identifier associated with the user information is the registration type. Afterwards, the first server stores the user information and the type identifier, and sends the user information and the type identifier to the target server in the at least one second server. It should be noted that, for example, the first server may first send the user information and the type identifier to a second server, and then send the user information and the type identifier to the other server after the sending; Send user information and type identification. If it is sent to one second server first, the target server is one of the two second servers; if the user information is sent to two second servers at the same time, the target server is the two second servers.
目标服务器接收到用户信息和类型标识后,可以根据类型标识判断用户信息是否为注册类型,在用户信息为注册类型的情况下,可以直接存储用户信息,以与第一服务器中存储的用户信息保持同步。从而实现用户只需在一个客户端进行注册后,与该客户端对应的第一服务器即可以将该用户输入的用户信息同步到除第一服务器之外的其他服务器(例如,如果目标服务器为会管服务器和调度服务器,则可以将用户在流媒体客户端注册的用户信息同步到会管服务器和调度服务器)。After receiving the user information and the type identifier, the target server can judge whether the user information is a registered type according to the type identifier, and in the case that the user information is a registered type, the user information can be directly stored to keep the user information stored in the first server. Synchronize. Therefore, after the user only needs to register at one client, the first server corresponding to the client can synchronize the user information input by the user to other servers (for example, if the target server is a meeting server) The management server and the scheduling server can synchronize the user information registered by the user in the streaming media client to the management server and the scheduling server).
需要说明的是,在类型标识不为注册类型的情况下,判断目标服务器是否存储有与注册信息中的标识匹配的第一目标标识;在目标服务器存储有与注册信息中的标识匹配的第一目标标识的情况下,采用用户信息更新与第一目标标识关联的目标用户信息,以与第一服务器中存储的用户信息保持同步。也在类型标识不为注册类型的情况下(例如类型标识为更新类型,即需要更新用户信息),目标服务器需要判断本地是否存储有与用户信息中的标识匹配的第一目标标识,在目标服务器存储有与注册信息中的标识匹配的第一目标标识的情况下,在目标服务器采用用户信息更新与第一目标标识关联的目标用户信息,以与第一服务器中存储的用户信息保持同步。从而实现如果用户在客户端曾经注册过用户信息时,如果用户在客户端修改用户曾经注册的用户信息,第一服务器同样可以把用户修改后的用户信息同步到目标服务器。It should be noted that, in the case where the type identifier is not a registered type, it is determined whether the target server stores a first target identifier that matches the identifier in the registration information; the target server stores a first target identifier that matches the identifier in the registration information. In the case of the target identifier, the user information is used to update the target user information associated with the first target identifier to keep synchronization with the user information stored in the first server. In the case where the type identifier is not a registered type (for example, the type identifier is an update type, that is, the user information needs to be updated), the target server needs to determine whether the first target identifier that matches the identifier in the user information is stored locally. When the first target identifier matching the identifier in the registration information is stored, the target server uses the user information to update the target user information associated with the first target identifier to keep synchronization with the user information stored in the first server. Therefore, if the user has registered user information on the client, if the user modifies the user information registered by the user on the client, the first server can also synchronize the modified user information to the target server.
可以理解的是,如果用户在与会管服务器器对应的会管客户端点击注册按钮以注册用户信息时,会管服务器(此种情况下会管服务器为第一服务器)可以从会管客户端获取用户信息并将用户信息同步到流媒体服务器和调度服务器(如果流媒体服务器和调度服务器为目标服务器);如果用户在与调度服务器器对应的调度客户端点击注册按钮以注册用户信息时,调度服务器(调度服务器为第一服务器)可以从调度客户端获取用户信息并将用户信息同步到流媒体服务器和会管服务器(如果流媒体服务器和会管服务器为目标服务器)。It is understandable that if the user clicks the register button on the management client corresponding to the management server to register user information, the management server (in this case, the management server is the first server) can obtain the information from the management client. User information and synchronize the user information to the streaming media server and the scheduling server (if the streaming media server and the scheduling server are the target servers); if the user clicks the register button on the scheduling client corresponding to the scheduling server to register the user information, the scheduling server (The scheduling server is the first server) can obtain user information from the scheduling client and synchronize the user information to the streaming media server and the managed server (if the streaming media server and the managed server are target servers).
下面举例介绍第一服务器把用户修改后的用户信息同步到目标服务器的过程。例如:用户可以登录客户端点击修改按钮以修改之前注册的用户信息,在用户点击修改按钮后可以弹出一个界面,供用户输入新的用户信息,新的用户信息的标识需要与之前注册的用户信息的标识保持一致,用户信息的标识用于唯一识别一条用户信息,其他用户信息可以修改,例如修改用户的住址、年龄等信息。输入新的用户信息后,用户点击更新按钮,则客户端可以获取到新的用户信息,并生成与该新的用户信息关联的类型标识,并将新的用户信息和与该新的用户信息关联的类型标识发送给第一服务器,此种情况下,生成的类型标识为更新类型。即第一服务器接收到客户端发送的类型标识为更新类型的情况下,第一服务器判断第一服务器中是否存储有与新的用户信息的标识匹配的标识,如果存储有与新的用户信息的标识匹配的标识,则采用新的用户信息更新之前存储的用户信息,并将新的用户信息和与新的用户信息关联的类型标识发送给目标服务器。目标服务器接收的类型标识为更新类型,同样,目标服务器判断目标服务器中是否存储有与新的用户信息的标识匹配的第一目标标识,如果存储有与新的用户信息的标识匹配的第一目标标识,则采用新的用户信息更新之前存储的与第一目标标识关联的用户信息。The following example describes the process of the first server synchronizing the user information modified by the user to the target server. For example, the user can log in to the client and click the Modify button to modify the previously registered user information. After the user clicks the Modify button, an interface will pop up for the user to input new user information. The identifier of the new user information needs to be the same as the previously registered user information. The identifier of the user information is used to uniquely identify a piece of user information, and other user information can be modified, such as modifying the user's address, age and other information. After inputting new user information, the user clicks the update button, the client can obtain the new user information, generate a type identifier associated with the new user information, and associate the new user information with the new user information The type identifier is sent to the first server. In this case, the generated type identifier is the update type. That is, when the first server receives the type identifier sent by the client as an update type, the first server determines whether the first server stores an identifier matching the identifier of the new user information, and if there is an identifier that matches the identifier of the new user information If the identifier matches the identifier, the previously stored user information is updated with the new user information, and the new user information and the type identifier associated with the new user information are sent to the target server. The type identifier received by the target server is an update type. Likewise, the target server determines whether the target server stores a first target identifier that matches the identifier of the new user information, and if the first target identifier that matches the identifier of the new user information is stored ID, the previously stored user information associated with the first target ID is updated with the new user information.
为了详细介绍本发明实施例,下面结合图6进行介绍。参照图6,图6为本发明实施例提供的一种数据同步方法的步骤流程图,本实施例提供的数据同步方法执行于目标服务器,该方法包括如下步骤:In order to introduce the embodiment of the present invention in detail, the following description is made with reference to FIG. 6 . Referring to FIG. 6, FIG. 6 is a flowchart of steps of a data synchronization method provided by an embodiment of the present invention. The data synchronization method provided by this embodiment is executed on a target server, and the method includes the following steps:
步骤601、接收第一服务器发送的用户信息和与用户信息关联的类型标识,并判断类型标识是否为注册类型。Step 601: Receive user information and a type identifier associated with the user information sent by the first server, and determine whether the type identifier is a registered type.
其中,用户信息为第一服务器接收的与第一服务器对应的客户端发送的信息,客户端发送的用户信息为客户端获取的用户在客户端上输入的用户信息,目标服务器为第一服务器从至少一个第二服务器中确定的服务器,类型标识为第一服务器生成的与用户信息关联的类型标识。The user information is the information received by the first server and sent by the client corresponding to the first server, the user information sent by the client is the user information obtained by the client and input by the user on the client, and the target server is the first server from For at least one server determined in the second server, the type identifier is the type identifier associated with the user information generated by the first server.
类型标识可以为注册类型或更新类型。例如用户新注册用户信息的情况下,生成的类型标识为注册类型。用户更新用户曾经注册过的用户信息的情况下,生成的类型标识为更新类型。The type ID can be a registration type or an update type. For example, when a user newly registers user information, the generated type identifier is the registration type. When the user updates the user information that the user once registered, the generated type is identified as the update type.
步骤602、在类型标识为注册类型的情况下,存储用户信息,以与第一服务器中存储的用户信息保持同步。Step 602: In the case that the type identifier is a registered type, store the user information to keep synchronization with the user information stored in the first server.
本实施例提供的数据同步方法,由于目标服务器接收到用户信息和类型标识后,可以根据类型标识判断用户信息是否为注册类型,在用户信息为注册类型的情况下,可以直接存储用户信息,以与第一服务器中存储的用户信息保持同步。从而实现用户只需在一个客户端进行注册后,与该客户端对应的第一服务器即可以将该用户输入的用户信息同步到除第一服务器之外的其他服务器(例如,如果目标服务器为会管服务器和调度服务器,则可以将用户在流媒体客户端注册的用户信息同步到会管服务器和调度服务器)。In the data synchronization method provided in this embodiment, after receiving the user information and the type identifier, the target server can determine whether the user information is of the registered type according to the type identifier, and in the case that the user information is of the registered type, the user information can be stored directly to Keeping synchronization with the user information stored in the first server. Therefore, after the user only needs to register at one client, the first server corresponding to the client can synchronize the user information input by the user to other servers (for example, if the target server is a meeting server) The management server and the scheduling server can synchronize the user information registered by the user in the streaming media client to the management server and the scheduling server).
参照图7,图7为本发明实施例提供的一种数据同步方法的信令流程图,该方法包括如下步骤:Referring to FIG. 7, FIG. 7 is a signaling flowchart of a data synchronization method provided by an embodiment of the present invention, and the method includes the following steps:
步骤701、客户端获取用户在客户端上输入的用户信息。Step 701: The client obtains user information input by the user on the client.
步骤702、客户端向第一服务器发送用户信息。Step 702: The client sends user information to the first server.
步骤703、第一服务器接收用户信息,生成与用户信息关联的类型标识,并存储用户信息和类型标识。Step 703: The first server receives the user information, generates a type identifier associated with the user information, and stores the user information and the type identifier.
步骤704、第一服务器向至少一个第二服务器中的目标服务器发送用户信息和类型标识。Step 704: The first server sends the user information and the type identifier to the target server in the at least one second server.
步骤705、目标服务器接收用户信息和类型标识,并判断类型标识是否为注册类型。Step 705: The target server receives the user information and the type identifier, and determines whether the type identifier is a registered type.
步骤706、在类型标识为注册类型的情况下,目标服务器存储用户信息,以与第一服务器中存储的用户信息保持同步。Step 706: In the case that the type identifier is a registered type, the target server stores the user information to keep synchronization with the user information stored in the first server.
需要说明的是,在类型标识不为注册类型的情况下,判断目标服务器是否存储有与注册信息中的标识匹配的第一目标标识;在目标服务器存储有与注册信息中的标识匹配的第一目标标识的情况下,采用用户信息更新与第一目标标识关联的目标用户信息,以与第一服务器中存储的用户信息保持同步。具体过程可以参照图5所示实施例,为避免重复,此处不再详细介绍。It should be noted that, in the case where the type identifier is not a registered type, it is determined whether the target server stores a first target identifier that matches the identifier in the registration information; the target server stores a first target identifier that matches the identifier in the registration information. In the case of the target identifier, the user information is used to update the target user information associated with the first target identifier to keep synchronization with the user information stored in the first server. For the specific process, reference may be made to the embodiment shown in FIG. 5 , which is not described in detail here to avoid repetition.
步骤707、目标服务器生成用户信息的状态码并存储状态码,并向第一服务器发送状态码,状态码用于表示用户信息的同步状态。Step 707: The target server generates a status code of the user information, stores the status code, and sends the status code to the first server, where the status code is used to indicate the synchronization state of the user information.
相应的,第一服务器可以接收目标服务器发送的状态码,并保存状态码。第一服务器保存状态码后,客户端从第一服务器获取状态码,可以根据状态码,显示用户信息的同步状态。Correspondingly, the first server may receive the status code sent by the target server, and store the status code. After the first server saves the state code, the client obtains the state code from the first server, and can display the synchronization state of the user information according to the state code.
在状态码表示的用户信息的同步状态为同步失败状态的情况下,可以指行步骤708。需要说明的是,以客户端为流媒体客户端为例,运维工作人员可以登录到流媒体客户端,进入用户管理界面,选择需要同步的用户信息。运维工作人员可以选择一条用户信息或者多条用户信息,选择后,可以点击同步按钮(通过点击同步按钮向目标服务器发送同步数据信令)将选择的一条或者多条用户信息同步到目标服务器。第一服务器也可以按照预设时间进行同步,例如预设时间为每天的凌晨三点,第一服务器可以在预设时间自动向目标服务器发送同步数据信令,也即第一服务器可以根据每条用户信息的状态码,筛选出未同步到目标服务器的用户信息或者之前同步失败的用户信息,并在预设时间执行同步操作。If the synchronization state of the user information indicated by the status code is a synchronization failure state, step 708 may be executed. It should be noted that, taking the client as the streaming media client as an example, the operation and maintenance staff can log in to the streaming media client, enter the user management interface, and select the user information to be synchronized. The operation and maintenance staff can select one or more pieces of user information. After selecting, they can click the sync button (by clicking the sync button to send synchronization data signaling to the target server) to synchronize the selected one or more pieces of user information to the target server. The first server can also synchronize according to a preset time, for example, the preset time is 3:00 am every day, and the first server can automatically send synchronization data signaling to the target server at the preset time, that is, the first server can automatically send synchronization data signaling to the target server according to each The status code of the user information, filter out the user information that has not been synchronized to the target server or the user information that failed to be synchronized before, and perform the synchronization operation at the preset time.
步骤708、第一服务器向目标服务器发送同步数据信令,同步数据信令包括用户信息。Step 708: The first server sends synchronization data signaling to the target server, where the synchronization data signaling includes user information.
需要说明的是,同步数据信令中可以包括一条用户信息或多条用户信息。本实施例中以同步数据信令中包括的一条用户信息为例。例如,在步骤706中,如果目标服务器未成功存储用户信息,则该用户信息的状态码表示的该用户信信息的同步状态为同步失败状态。在本步骤中,第一服务器可以将包含该条用户信息的同步数据信令发送给目标服务器,以再次执行同步操作。It should be noted that the synchronization data signaling may include one piece of user information or multiple pieces of user information. In this embodiment, a piece of user information included in the synchronization data signaling is taken as an example. For example, in
步骤709、目标服务器响应于同步数据信令,将目标服务器中存储的用户信息列表中的每个第一用户信息的第一标识与用户信息中的标识匹配,以获得目标用户信息列表,目标用户信息列表包括从用户信息列表中获得的与用户信息的标识不同的第一目标标识;Step 709: In response to the synchronization data signaling, the target server matches the first identifier of each first user information in the user information list stored in the target server with the identifier in the user information to obtain the target user information list, the target user information. The information list includes a first target identification obtained from the user information list that is different from the identification of the user information;
步骤710、目标服务器向第一服务器发送目标用户信息列表。Step 710: The target server sends the target user information list to the first server.
针对步骤709和步骤710。例如,用户信息的标识为用户名,以用户名为唯一标识。目标服务器收到的用户信息的标识为zhangsan,用户信息列表中的用户名包括lisi123、zhaoping、wanggang445三个用户名,由于zhangsan与三个用户名中任意一个都不相同,则目标用户信息列表包括这三个用户名,这三个用户名中的每个用户名为第一目标标识。目标服务器会将包括这三个用户名的目标用户信息列表发送给第一服务器。For
需要说明的是,如果在目标服务器中存储有与用户信息中的标识匹配的标识的情况下,则目标服务器将与用户信息中的标识不同的第一目标标识发送给第一服务器。例如用户信息列表中的用户名包括zhangsan、zhaoping、wanggang445三个用户名,则目标服务器中存储的第一目标标识为zhangsan,目标服务器只需要将包括zhaoping、wanggang445两个用户名的目标用户信息列表发送给第一服务器,也即zhaoping、wanggang445两个用户名都与zhangsan这个用户名不同,目标用户信息列表包括zhaoping、wanggang445两个第一目标标识。It should be noted that, if an identifier matching the identifier in the user information is stored in the target server, the target server sends the first target identifier different from the identifier in the user information to the first server. For example, the user names in the user information list include three user names: zhangsan, zhaoping, and wanggang445, then the first target identifier stored in the target server is zhangsan, and the target server only needs to list the target user information including the two user names of zhaoping and wanggang445. Sent to the first server, that is, the two user names of zhaoping and wanggang445 are different from the user name of zhangsan, and the target user information list includes two first target identifiers of zhaoping and wanggang445.
步骤711、第一服务器接收目标服务器发送的目标用户信息列表,并将第一服务器中存储的第二用户信息中的第二标识与每个第一目标标识匹配,以从每个第一目标标识中获得与第二标识不同的第二目标标识。Step 711: The first server receives the target user information list sent by the target server, and matches the second identifier in the second user information stored in the first server with each first target identifier, so as to obtain the information from each first target identifier. A second target identification different from the second identification is obtained.
以第一服务器中存储的第二用户信息中的第二标识包括zhangsan、zhaowu145,目标用户信息列表包括zhaoping、wanggang445两个第一目标标识为例,每个第一目标标识都与第二标识不同,因此,从每个第一目标标识中获得的与第二标识不同的第二目标标识包括zhaoping、wanggang445。Taking the second identifiers in the second user information stored in the first server including zhangsan and zhaowu145, and the target user information list including two first target identifiers of zhaoping and wanggang445 as examples, each first target identifier is different from the second identifier. , therefore, the second target identifications obtained from each first target identification that are different from the second identifications include zhaoping and wanggang445.
步骤712、第一服务器将与第二目标标识关联的第一用户信息同步到第一服务器。Step 712: The first server synchronizes the first user information associated with the second target identifier to the first server.
结合步骤711中举例介绍,第一服务器将zhaoping、wanggang445同步到第一服务器中。若第一服务器将zhaoping、wanggang445同步成功,则可以在步骤713中将与zhaoping关联的第一用户信息的状态码发送给目标服务器、以及将与wanggang445关联的第一用户信息的状态码发送给目标服务器。With reference to the example introduced in
步骤713、第一服务器向目标服务器发送与第二目标标识关联的第一用户信息的状态码。Step 713: The first server sends the status code of the first user information associated with the second target identifier to the target server.
步骤714、目标服务器接收第一服务器发送的与第二目标标识关联的第一用户信息的状态码,并根据与第二目标标识关联的第一用户信息的状态码,更新与第二目标标识关联的第一用户信息的同步状态。Step 714: The target server receives the status code of the first user information associated with the second target identification sent by the first server, and updates the status code associated with the second target identification according to the status code of the first user information associated with the second target identification. The synchronization status of the first user information.
本实施例提供的数据同步方法,可以将用户在一个客户端输入的注册信息通过与该客户端对应的服务器同步到与该服务器通信连接的其他服务器,从而实现用户只需要在一个客户端进行注册即可使用在该客户端注册的用户信息登录其他服务器各自对应的客户端,因此无需用户在每个系统上单独注册。并且,在目标服务器未成功同步第一服务器发送的用户信息的情况下,第一服务器可以向目标服务器器发送包含该用户信息的同步数据信令,从而使目标服务器不仅可以再次存储该用户信息,以和第一服务器中的用户信息保持同步,而且可以将目标服务器中的第一标识与用户信息中的标识匹配,以获得目标用户信息列表,并向第一服务器发送目标信息列表。第一服务器将第一服务器中存储的第二标识与目标信息列表中的每个第一目标标识匹配,以从每个第一目标标识中获得与第二标识不同的第二目标标识,第一服务器将与第二目标标识关联的第一用户信息同步到第一服务器。从而使第一服务器和目标服务器中的数据保持同步。也即第一服务器中保存的用户信息和目标服务器中保存的用户信息相同。The data synchronization method provided by this embodiment can synchronize the registration information input by a user on a client to other servers that are communicatively connected to the server through the server corresponding to the client, so that the user only needs to register on one client You can use the user information registered on the client to log in to the corresponding clients of other servers, so users do not need to register separately on each system. And, in the case where the target server fails to synchronize the user information sent by the first server, the first server can send the synchronization data signaling containing the user information to the target server, so that the target server can not only store the user information again, It is synchronized with the user information in the first server, and the first identifier in the target server can be matched with the identifier in the user information to obtain the target user information list, and send the target information list to the first server. The first server matches the second identification stored in the first server with each first target identification in the target information list to obtain a second target identification different from the second identification from each first target identification, the first The server synchronizes the first user information associated with the second target identifier to the first server. Thus, the data in the first server and the target server are kept synchronized. That is, the user information stored in the first server is the same as the user information stored in the target server.
图8为本发明实施例提供的一种数据同步系统的结构示意图,该数据同步系统包括:8 is a schematic structural diagram of a data synchronization system according to an embodiment of the present invention, where the data synchronization system includes:
客户端801用于获取用户在客户端上进行注册的用户信息;客户端801还用于向第一服务器发送用户信息;第一服务器802用于接收用户信息,生成与用户信息关联的类型标识,并存储用户信息和类型标识;第一服务器802还用于向至少一个第二服务器中的目标服务器发送用户信息和类型标识;目标服务器803用于接收用户信息和类型标识,并判断类型标识是否为注册类型;目标服务器,还用于在类型标识为注册类型的情况下,存储用户信息,以与第一服务器中存储的用户信息保持同步。The
本实施例提供的数据同步系统,可以实现用户只需要在一个客户端输入用户信息进行注册,即可以将用户信息从第一服务器同步到目标服务器,无需用户在目标服务器对应的客户端再次注册,即可以使用该用户信息登录到目标服务器对应的客户端。The data synchronization system provided in this embodiment can realize that the user only needs to input user information on one client to register, that is, the user information can be synchronized from the first server to the target server, without the need for the user to register again on the client corresponding to the target server, That is, you can use the user information to log in to the client corresponding to the target server.
图9为本发明实施例提供的一种数据同步装置的结构示意图,该数据同步装置通常以硬件和/或软件的方式来实现。该数据同步装置900包括如下模块:接收模块901和存储模块902。FIG. 9 is a schematic structural diagram of a data synchronization apparatus according to an embodiment of the present invention. The data synchronization apparatus is usually implemented in hardware and/or software. The
接收模块901用于接收第一服务器发送的用户信息和与用户信息关联的类型标识,并判断类型标识是否为注册类型;其中,用户信息为第一服务器接收的与第一服务器对应的客户端发送的信息,客户端发送的用户信息为客户端获取的用户在客户端上输入的用户信息,目标服务器为第一服务器从至少一个第二服务器中确定的服务器,类型标识为第一服务器生成的与用户信息关联的类型标识;存储模块902用于若目标服务器未存储有与用户信息中的标识匹配的第一目标标识,则存储用户信息,以与第一服务器中存储的用户信息保持同步。The receiving
本实施例提供数据同步装置,可以将第一服务器注册的用户信息同步到目标服务器,以实现用户只需要在一个客户端输入用户信息进行注册,即可以将用户信息从第一服务器同步到目标服务器,无需用户在目标服务器对应的客户端再次注册,即可以使用该用户信息登录到目标服务器对应的客户端。This embodiment provides a data synchronization device, which can synchronize the user information registered by the first server to the target server, so that the user only needs to input user information on one client for registration, that is, the user information can be synchronized from the first server to the target server. , the user can use the user information to log in to the client terminal corresponding to the target server without re-registering at the client terminal corresponding to the target server.
可选的,还可以包括:Optionally, it can also include:
判断模块,用于在类型标识不为注册类型的情况下,判断目标服务器是否存储有与注册信息中的标识匹配的第一目标标识;a judging module for judging whether the target server stores a first target identifier that matches the identifier in the registration information when the type identifier is not a registered type;
更新模块,用于在目标服务器存储有与注册信息中的标识匹配的第一目标标识的情况下,采用用户信息更新与第一目标标识关联的目标用户信息,以与第一服务器中存储的用户信息保持同步。The updating module is used to update the target user information associated with the first target identifier by using user information to match the user information stored in the first server when the target server stores a first target identifier that matches the identifier in the registration information. Information stays in sync.
可选的,还可以包括:Optionally, it can also include:
发送模块,用于生成用户信息的状态码并存储状态码,并向第一服务器发送状态码,状态码用于表示用户信息的同步状态,以使第一服务器接收目标服务器发送的状态码,并保存状态码。The sending module is used to generate the status code of the user information and store the status code, and send the status code to the first server, the status code is used to indicate the synchronization state of the user information, so that the first server receives the status code sent by the target server, and sends the status code to the first server. Save the status code.
可选的,还可以包括:Optionally, it can also include:
接收模块901还用于在状态码表示的用户信息的同步状态为同步失败状态的情况下,接收第一服务器发送的同步数据信令,同步数据信令包括用户信息;响应于同步数据信令,将目标服务器中存储的用户信息列表中的每个第一用户信息的第一标识与用户信息的标识匹配,以获得目标用户信息列表,目标用户信息列表包括从用户信息列表中获得的与用户信息的标识不同的第一目标标识;The receiving
发送模块,还用于向第一服务器发送目标用户信息列表。The sending module is further configured to send the target user information list to the first server.
图10为本发明实施例提供的另一种数据同步装置的结构示意图,该数据同步装置通常以硬件和/或软件的方式来实现。该数据同步装置1000包括如下模块:接收模块1001和发送模块1002。FIG. 10 is a schematic structural diagram of another data synchronization apparatus provided by an embodiment of the present invention. The data synchronization apparatus is usually implemented in hardware and/or software. The
接收模块1001用于接收客户端发送的用户信息,生成与用户信息关联的类型标识,并存储用户信息和类型标识,其中,用户信息为客户端获取的用户在客户端上输入的用户信息;The
发送模块1002用于向至少一个第二服务器中的目标服务器发送用户信息和类型标识,以使目标服务器接收用户信息和类型标识,并判断类型标识是否为注册类型;在类型标识为注册类型的情况下,使目标服务器存储用户信息,以与第一服务器中存储的用户信息保持同步。The sending
可选的,接收模块1001还用于接收目标服务器发送的用户信息的状态码,并保存状态码,状态码用于表示用户信息的同步状态;Optionally, the
发送模块1002还用于在状态码表示的用户信息的同步状态为同步失败状态的情况下,向目标服务器发送同步数据信令,同步数据信令包括用户信息。The sending
可选的,接收模块1001还用于接收目标服务器发送的用户信息列表,并将第一服务器中存储的第二用户信息中的第二标识与每个第一标识匹配,以从每个第一标识中获得与第二标识不同的第二目标标识;其中,用户信息列表包括至少一个第一用户信息各自的第一标识;将与第二目标标识关联的第一用户信息同步到第一服务器;Optionally, the
发送模块1002还用于向目标服务器发送与第二目标标识关联的第一用户信息的状态码,以使目标服务器接收与第二目标标识关联的第一用户信息的状态码,并根据与第二目标标识关联的第一用户信息的状态码,更新与第二目标标识关联的第一用户信息的同步状态。The sending
另外,本发明实施例还提供一种数据同步装置,该数据同步装置包括处理器,存储器以及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述实施例的数据同步方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。In addition, an embodiment of the present invention also provides a data synchronization device, the data synchronization device includes a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor to implement the above implementation Each process of the data synchronization method embodiment of the example, and can achieve the same technical effect, in order to avoid repetition, it is not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述的数据同步方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,的计算机可读存储介质,可以为只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned data synchronization method embodiment can be achieved, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here. The computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.
对于产品实施例而言,由于其应用了上述装置实施例的技术方案,所以描述地比较简单,相关指出参见装置实施例的部分说明即可。For the product embodiments, since the technical solutions of the above-mentioned device embodiments are applied, the description is relatively simple, and reference may be made to the partial descriptions of the device embodiments for related points.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other.
本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It should be understood by those skilled in the art that the embodiments of the embodiments of the present invention may be provided as a method, an apparatus, or a computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, CD-ROM, optical storage, and the like.
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present invention are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal equipment to produce a machine that causes the instructions to be executed by the processor of the computer or other programmable data processing terminal equipment Means are created for implementing the functions specified in the flow or flows of the flowcharts and/or the blocks or blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture comprising instruction means, the The instruction means implement the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operational steps are performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby executing on the computer or other programmable terminal equipment The instructions executed on the above provide steps for implementing the functions specified in the flowchart or blocks and/or the block or blocks of the block diagrams.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Although preferred embodiments of the embodiments of the present invention have been described, additional changes and modifications to these embodiments may be made by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications that fall within the scope of the embodiments of the present invention.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or terminal device comprising a list of elements includes not only those elements, but also a non-exclusive list of elements. other elements, or also include elements inherent to such a process, method, article or terminal equipment. Without further limitation, an element defined by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.
以上对本发明所提供的一种数据同步方法和一种数据同步装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。A data synchronization method and a data synchronization device provided by the present invention have been introduced in detail above. The principles and implementations of the present invention are described with specific examples in this paper. The descriptions of the above embodiments are only used to help Understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In conclusion, the contents of this description should not be understood to limit the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910666803.3A CN110493319B (en) | 2019-07-23 | 2019-07-23 | Data synchronization method, system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910666803.3A CN110493319B (en) | 2019-07-23 | 2019-07-23 | Data synchronization method, system and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110493319A CN110493319A (en) | 2019-11-22 |
CN110493319B true CN110493319B (en) | 2022-07-12 |
Family
ID=68548082
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910666803.3A Active CN110493319B (en) | 2019-07-23 | 2019-07-23 | Data synchronization method, system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110493319B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112272171A (en) * | 2020-10-20 | 2021-01-26 | 侯亦兵 | Mobile internet cross-platform user management method and device |
CN115396451A (en) * | 2022-06-29 | 2022-11-25 | 金茂云科技服务(北京)有限公司 | Data synchronization method, system, device, electronic equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109842482A (en) * | 2019-01-14 | 2019-06-04 | 深圳市科联智通科技有限公司 | A kind of information synchronization method, system and terminal device |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101478485B (en) * | 2009-01-19 | 2012-04-04 | 成都市华为赛门铁克科技有限公司 | LAN access control method and gateway device |
CN103237019B (en) * | 2013-04-03 | 2016-08-31 | 中国科学院合肥物质科学研究院 | A kind of cloud service accesses gateway system and method |
CN105659558B (en) * | 2013-09-20 | 2018-08-31 | 甲骨文国际公司 | Computer implemented method, authorization server and computer-readable memory |
US20150134818A1 (en) * | 2013-11-13 | 2015-05-14 | CubeITz Ltd | Data sharing method and data sharing gateway configuration |
US20160021212A1 (en) * | 2014-07-16 | 2016-01-21 | Xiaomi Inc. | Method, server and client device for updating service registration |
GB2530726B (en) * | 2014-09-25 | 2016-11-02 | Ibm | Distributed single sign-on |
CN104751348B (en) * | 2015-01-08 | 2018-12-04 | 吴锦锋 | A kind of e-commerce system based on social networks |
CN105376263A (en) * | 2015-12-24 | 2016-03-02 | 青岛洪锦电子商务有限公司 | Unified management method for multi-system data |
CN107040560B (en) * | 2016-02-04 | 2020-09-08 | 阿里巴巴集团控股有限公司 | Service processing method and device based on service platform |
CN105827597A (en) * | 2016-03-10 | 2016-08-03 | 浙江创亿光电设备有限公司 | Method for managing internet account number and password |
CN107547491B (en) * | 2016-08-03 | 2018-09-14 | 深圳前海风车科技服务有限公司 | Investment platform register method and device |
CN106357609B (en) * | 2016-08-22 | 2019-09-20 | 深圳市先河系统技术有限公司 | A kind of method and system, public network server and private clound equipment creating user |
CN107301196A (en) * | 2017-05-03 | 2017-10-27 | 北京小度信息科技有限公司 | Method of data synchronization, device, equipment and monitoring server |
CN107911377A (en) * | 2017-11-29 | 2018-04-13 | 四川九鼎智远知识产权运营有限公司 | A kind of account management method for multi-application platform |
CN108564339B (en) * | 2018-03-29 | 2023-05-12 | 平安科技(深圳)有限公司 | Account management method, device, terminal equipment and storage medium |
CN109271776A (en) * | 2018-10-22 | 2019-01-25 | 努比亚技术有限公司 | Micro services system single-point logging method, server and computer readable storage medium |
CN109951475A (en) * | 2019-03-15 | 2019-06-28 | 东莞市大易产业链服务有限公司 | Multi-platform user account information synchronous method and system, server |
-
2019
- 2019-07-23 CN CN201910666803.3A patent/CN110493319B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109842482A (en) * | 2019-01-14 | 2019-06-04 | 深圳市科联智通科技有限公司 | A kind of information synchronization method, system and terminal device |
Non-Patent Citations (2)
Title |
---|
"OAuth-SSO: A Framework to Secure the OAuth-Based SSO Service for Packaged Web Applications";Nazmul Hossain等;《IEEE》;20180906;全文 * |
"一种安全的单点登录系统口令同步方案";张秋余等;《计算机工程》;20120114;第37卷(第17期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110493319A (en) | 2019-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110022228A (en) | Server switching method, device, system and readable storage medium storing program for executing | |
CN110602266B (en) | Method and system for domain name resolution | |
CN109768963B (en) | Conference opening method and system based on video network | |
CN110049271A (en) | A kind of view networking conferencing information methods of exhibiting and device | |
CN110545395B (en) | A kind of video networking conference switching method and device | |
CN109040656B (en) | Video conference processing method and system | |
CN110557319B (en) | Message processing method and device based on video network | |
CN110224988B (en) | Image data processing method, system and device and storage medium | |
CN110493319B (en) | Data synchronization method, system and device | |
CN109005378B (en) | Video conference processing method and system | |
CN110557370B (en) | A method, system, electronic device and storage medium for pamir synchronization terminal information | |
CN110557608B (en) | Resource monitoring method, device and computer readable storage medium | |
CN110809023B (en) | Communication connection establishing method and device based on video networking | |
CN110166363B (en) | A kind of multicast link monitoring method and device | |
CN110677392A (en) | A video data transmission method and device | |
CN110891156A (en) | Conference entering method and device of monitoring camera | |
CN110022500A (en) | A kind of loss treating method and device | |
CN110784683B (en) | A management method, device and storage medium for monitoring resources | |
CN110557611B (en) | Information synchronization method, device and storage medium | |
CN110636110B (en) | Method and device for monitoring data flow regulation | |
CN110674147B (en) | Data processing method, device and computer readable storage medium | |
CN110808896B (en) | Data transmission method, device, electronic device and storage medium | |
CN110830185B (en) | Data transmission method and device | |
CN110120937B (en) | Resource acquisition method, system, device and computer readable storage medium | |
CN111541858A (en) | A kind of audio and video recording method, system and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 33rd Floor, No.1 Huasheng Road, Yuzhong District, Chongqing 400013 Patentee after: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd. Country or region after: China Address before: 100000 Beijing Dongcheng District Qinglong Hutong 1 Song Hua Building A1103-1113 Patentee before: VISIONVERA INFORMATION TECHNOLOGY Co.,Ltd. Country or region before: China |