CN-121125735-B - Communication system and method applied to multi-terminal synchronous collaboration
Abstract
The invention discloses a communication system and a method applied to multi-terminal synchronous collaboration, the system comprises a local direct connection transmission module, an edge buffer and time sequence control module, a differential synchronization module, a real-time cooperation optimization module, a cloud coordination module and a remote terminal. According to the invention, by means of a mechanism combining differential synchronization, edge buffering and time sequence control, real-time cooperation optimization and local direct connection and cloud coordination, high-efficiency transmission and consistency maintenance of multi-terminal operation data are realized, synchronization delay is remarkably reduced, real-time response experience of key operation is improved, consistency results can be generated through a vector clock mechanism under the condition of concurrent conflict, cooperation errors caused by disorder or conflict are avoided, transmission paths are flexibly switched under different network environments, and accuracy and stability of the multi-terminal cooperation results are finally ensured, so that performance, reliability and adaptability of the system are both considered.
Inventors
- SONG PEIXUAN
- Nie Zhenai
- Wang Chuobao
Assignees
- 山东领域电子商务信息服务有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20250925
Claims (9)
- 1. The communication method applied to multi-terminal synchronous collaboration is characterized by comprising the following steps of: S1, acquiring operation data of each terminal through a differential synchronization module, calculating operation difference by combining a double verification mode of weak fingerprints and strong fingerprints based on an operation log and a data block dividing method, and reserving only a change part to form differential data; the specific logic steps are as follows: S101, each terminal adds the local operation to a local operation log in the form of O, and distributes vector clock components for each operation; s102, directly obtaining a current data sequence S through a local operation log, and dividing the data sequence S into a plurality of blocks according to fixed blocks ; S103 for each block Computing weak fingerprints And strong fingerprint The formula used is as follows: =( ) mod M, where p is the radix and M is the large prime number; =SHA256( ); s104, receiving end exchanging fingerprint list The receiving end uses the local corresponding fingerprint set to match, if the receiving end has the same fingerprint set The block is considered to be consistent without transmitting the block data, if the strong fingerprints do not match but the weak fingerprints are equal, further checks are required, if the fingerprints do not match, marking the fingerprints as blocks needing transmission/needing internal difference; s105, performing intra-block difference on the candidate different block pairs; S106, representing the content to be transmitted as a difference set delta, wherein the formula is as follows: wherein ∈{Insert,Delete,Replace}; S107, reversibly compressing the delta and adding necessary metadata to form a differential data packet to be finally transmitted The necessary metadata includes a source version number, a vector clock, a logical timestamp, and a block fingerprint; S2, the edge buffer and time sequence control module writes the differential data in the S1 into a local buffer structure CACHEENTRY, adds a time stamp for the differential data by utilizing a vector clock mechanism, updates the vector clock of each terminal in real time, and ensures the data transmission sequence and consistency among multiple terminals; S3, setting a basic priority by the real-time cooperation optimization module according to the data type, comprehensively considering the urgency degree and timeliness of the data, calculating the comprehensive priority, and enabling the differential data in the cache in the S2 to enter a minimum stack of a scheduling queue according to the priority, so as to ensure the priority transmission of key operations; s4, judging whether the local sub-network IP address segments are in the same local area network or not, detecting a near-field environment through a local area network broadcast or multicast protocol, if the direct connection condition is met, establishing a point-to-point transmission channel through a local direct connection transmission module, directly transmitting differential data, and when the direct connection transmission is unavailable, automatically switching to a cloud coordination module, packaging the differential data into a message packet which can be identified by a cloud, and transmitting the message packet to a target terminal through cloud transfer; S5, the edge buffer and time sequence control module reads the differential data set to be combined from the local buffer, performs partial sequence relation comparison and sequence ordering on the vector clocks of each data packet, and combines data according to time sequence control information; and S6, updating the combined result in the terminal user interface in an instant refreshing way, so that real-time cooperation experience among multiple terminals and multiple users is ensured.
- 2. The communication method for multi-terminal synchronization collaboration according to claim 1, wherein the specific logic steps of S2 are as follows: s201, the edge buffer and time sequence control module receives the differential data generated by the differential synchronization module And will Temporarily storing the data in a local buffer structure CACHEENTRY = ( , Status), wherein status indicates whether the data has been applied in a global coherency order; s202 when the terminal When local differential data is generated, the self vector clock is updated, and the updated vector clock is used for generating the local differential data As a timestamp of the differential data and bound to a differential packet ; S203 when the terminal To other terminals Transmitting differential data In this case, the current vector clock is attached, and packet= When the terminal Received from Differential data of (2) and clock thereof Updating the self vector clock: ; S204, giving two differential data And If each carries a vector clock If it is , [k] [K] and there is a certain j such that [j] [J] Then call it If the two are not comparable, a concurrent operation is indicated.
- 3. The communication method for multi-terminal synchronization collaboration according to claim 1, wherein the specific logic steps of S3 are as follows: s301, setting basic priority according to the type of the differential data Wherein: text/input operation → =1; Voice/video frame → =2; Image/annotation → =3; Non-critical data → =4, The smaller the value, the higher the priority; S302, comprehensively considering differential data The data type, the emergency degree and the timeliness of the system are calculated, and the used formula is that the Priority is% )=f( , )= ; S303, for each piece of differential data By priority level Maximum heap or minimum heap Q inserted into dispatch queue, its Q.push # , ) The largest heap is data with small weight value and high priority, and the top element of the heap always sends the data most preferentially at present; S304, the scheduler continuously fetches the top-of-stack differential data from the queue Q The transmission is performed such that, And if the transmission channel is available, transmitting, otherwise waiting for retry, and dynamically adjusting the queue priority to ensure that data which is not transmitted for a long time is not starved.
- 4. The communication method for multi-terminal synchronization cooperation according to claim 1, wherein in S4, the local area network detection is performed by using a local subnet IP address field to determine whether the local area network is the same, and the determination condition is: LAN_same=(subnet( )=subnet( )); near field environment detection detects nearby terminals using a local area network broadcast or multicast protocol, If the condition is met, local direct connection transmission can be tried; The automatic switching to the cloud coordination module is performed under the switching conditions that UseCloud = ¬ DirectAvailable, and the switching steps are as follows: S401, packaging the differential data delta in the cache into a message packet which can be identified by a cloud: ; s402, sending the send_close through the cloud coordination module ) And the cloud terminal is responsible for forwarding the data to the target terminal after receiving the data.
- 5. The communication method for multi-terminal synchronization collaboration according to claim 1, wherein the specific logic steps of S5 are as follows: s501, reading the data set to be combined from the local cache, wherein d= And comparing the partial sequence relation of the vector clocks of each data packet, if < I.e. all components [k]≤ [K] and at least one is strictly less than, say The operation of (2) occurs in Previously, then apply If (if) || Indicating that concurrent operation exists and entering conflict processing; s502, performing definition conflict judgment, wherein the judgment condition is Conflict% , )=( || ) If two concurrent operations act on the same data object, a conflict is determined; s503, adopting vector clock conflict resolution algorithm to define conflict resolution function and generate consistency result, and using the formula of resolution , ) ; Result=(D\{ , }) ; S504 of applying differential data in accordance with the timing and conflict resolution results, Updating the cache and synchronizing the vector clock, +1, Converging all terminals to the same consistency state for a limited time.
- 6. The communication system applied to multi-terminal synchronous cooperation is used for realizing the method of any one of claims 1-5, and is characterized by comprising a local direct-connection transmission module, an edge buffer and time sequence control module, a differential synchronous module, a real-time cooperation optimizing module, a cloud coordination module and a remote terminal, wherein the local direct-connection transmission module is connected with the differential synchronous module and the real-time cooperation optimizing module, the edge buffer and time sequence control module is connected with the real-time cooperation optimizing module and the differential synchronous module, the differential synchronous module is connected with the cloud coordination module, and the cloud coordination module is connected with the real-time cooperation optimizing module and the remote terminal.
- 7. The communication system for multi-terminal synchronous collaboration according to claim 6, wherein the local Direct connection transmission module is configured to establish a peer-to-peer high-speed transmission channel when multiple terminals are in the same local area network or near field environment, so as to realize low-delay transmission of data, and support one of Wi-Fi Direct, bluetooth Mesh, local area network multicast or peer-to-peer transmission protocol; The edge buffer and time sequence control module is used for locally buffering the received operation data at each terminal and marking the operation sequence based on a vector clock mechanism so as to ensure the data merging consistency among multiple terminals, and the edge buffer and time sequence control module adopts a vector clock algorithm to solve the concurrent editing conflict and generates a unified version through a preset merging rule when the conflict occurs.
- 8. The communication system for multi-terminal synchronization according to claim 6, wherein the differential synchronization module is configured to detect a difference in data between terminals, and transmit an operation difference or a data block difference, so as to reduce a data transmission amount, and calculate differential data in real time based on an operation log record and a data block division manner, so as to avoid transmission of redundant contents; The real-time cooperation optimization module is used for setting priorities for different operations transmitted between terminals, and distributing high-priority transmission channels for text input, voice data or image marking key operations through a priority scheduling queue so as to ensure the instant synchronization of interactive operations and ensure the preferential transmission of the key interactive operations, thereby improving the smoothness of real-time cooperation.
- 9. The communication system for multi-terminal synchronization according to claim 6, wherein the cloud coordination module is configured to, when direct connection between terminals is unavailable, serve as a standby transit node to achieve data synchronization between remote multi-user, automatically switch to a cloud transit mode when detecting that a network between terminals is not reachable, and reestablish a point-to-point transmission channel after resuming direct connection.
Description
Communication system and method applied to multi-terminal synchronous collaboration Technical Field The present invention relates to the field of communications systems, and in particular, to a communications system and method for multi-terminal synchronization collaboration. Background With the rapid development of mobile internet and cloud computing technology, multi-terminal collaboration application is becoming popular, users often have multiple terminal devices at the same time, such as smart phones, tablet computers, notebook computers, desktops and even intelligent wearable devices, and in the scenes of daily office work, remote education, team collaboration, cross-platform entertainment and the like, the users need to realize synchronization and sharing of information among multiple terminals so as to ensure continuity and collaboration of operation; The method mainly relies on a cloud server as a transfer to perform data synchronization, and has the defects that 1, synchronization delay is high, data must be uploaded to a cloud end and then issued to each terminal, the data synchronization delay is large and real-time performance is difficult to guarantee due to network jitter influence, 2, real-time collaboration experience is poor, operation among terminals is difficult to transfer in time under a multi-user collaboration scene, and the problem of 'asynchronism' and 'blocking' are easy to occur to influence user experience and collaboration efficiency. Disclosure of Invention Based on the technical problems in the background art, the invention provides a communication system and a method applied to multi-terminal synchronous collaboration. The invention provides a communication system applied to multi-terminal synchronous collaboration, which comprises a local direct-connection transmission module, an edge buffer and time sequence control module, a differential synchronization module, a real-time collaboration optimization module, a cloud coordination module and a remote terminal, wherein the local direct-connection transmission module is connected with the differential synchronization module and the real-time collaboration optimization module, the edge buffer and time sequence control module is connected with the real-time collaboration optimization module and the differential synchronization module, the differential synchronization module is connected with the cloud coordination module, and the cloud coordination module is connected with the real-time collaboration optimization module and the remote terminal. Preferably, the local Direct connection transmission module is used for establishing a point-to-point high-speed transmission channel when the multiple terminals are in the same local area network or near field environment, realizing low-delay transmission of data, and supporting one of Wi-Fi Direct, bluetooth Mesh, local area network multicast or point-to-point transmission protocol; The edge buffer and time sequence control module is used for locally buffering the received operation data at each terminal and marking the operation sequence based on a vector clock mechanism so as to ensure the data merging consistency among multiple terminals, and the edge buffer and time sequence control module adopts a vector clock algorithm to solve the concurrent editing conflict and generates a unified version through a preset merging rule when the conflict occurs. Preferably, the differential synchronization module is used for detecting the difference of data between terminals, transmitting operation difference or data block difference, thereby reducing data transmission quantity, and calculating differential data in real time based on operation log record and data block division mode, avoiding transmission of redundant content; The real-time cooperation optimization module is used for setting priorities for different operations transmitted between terminals, and distributing high-priority transmission channels for text input, voice data or image marking key operations through a priority scheduling queue so as to ensure the instant synchronization of interactive operations and ensure the preferential transmission of the key interactive operations, thereby improving the smoothness of real-time cooperation. Preferably, the cloud coordination module is used as a standby transfer node to realize data synchronization among remote multi-user when direct connection between terminals is unavailable, automatically switches to a cloud transfer mode when detecting that the network between the terminals is unreachable, and reestablishes a point-to-point transmission channel after direct connection is restored. The invention also provides a communication method applied to multi-terminal synchronous collaboration, which comprises the following steps: s1, acquiring operation data of each terminal through a differential synchronization module, calculating operation difference based on an operation log and a data blo