CN104506330B - A kind of message synchronization method and system - Google Patents

A kind of message synchronization method and system Download PDF

Info

Publication number
CN104506330B
CN104506330B CN201410710583.7A CN201410710583A CN104506330B CN 104506330 B CN104506330 B CN 104506330B CN 201410710583 A CN201410710583 A CN 201410710583A CN 104506330 B CN104506330 B CN 104506330B
Authority
CN
China
Prior art keywords
multicast
user
data packet
multicast network
network
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
Application number
CN201410710583.7A
Other languages
Chinese (zh)
Other versions
CN104506330A (en
Inventor
孙豹
乐晓诚
项东涛
刘志红
刘鹏
刘辉
熊伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201410710583.7A priority Critical patent/CN104506330B/en
Publication of CN104506330A publication Critical patent/CN104506330A/en
Application granted granted Critical
Publication of CN104506330B publication Critical patent/CN104506330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of message synchronization method and systems, to solve the problems, such as that message synchronization postpones.The method includes:Multicast network is added by sending interaction request and obtains the multicast address of the multicast network, the multicast network is established to carry out user's set of interacting message by instant messaging, an and each multicast source node of user's counterpart terminal as the multicast network in user set;The multicast source node carries interactive instant communication information to the multicast address transmission data packet in the data packet;The multicast source node synchronizes the data packet to sort according to time positive sequence from the multicast address of the multicast network in real time, and the instant communication information of interaction in the multicast network is shown according to each data packet.The message synchronization between each multicast source node in multicast network, data packet forward without replicating, reduce the occupancy of resource, avoid the delay of message synchronization.

Description

A kind of message synchronization method and system
Technical field
The present invention relates to technical field of multicast, more particularly to a kind of message synchronization method and a kind of message synchronization system.
Background technology
Instant messaging (Instant Messaging) is communication modes the most popular on current network, allow two people or More people use network instant transmission text information, file data, audio data and video data.
When multi-user carries out instant messaging in same cluster set, instant communicating system can be received from each use The message at family is followed system and is needed temporally to receiving due to all users for needing to be transferred to these message in the set Prioritisation of messages, then feed back to each user.
When user is more in group, system message to be dealt with is more, and excessive message is ranked up, and not only can It causes the burden of system to also result in sorting time and receives influence, and then lead to the delay of message synchronization.
Invention content
The embodiment of the present invention is prolonged the technical problem to be solved is that a kind of message synchronization method is provided with solving message synchronization Slow problem.
Correspondingly, the embodiment of the present invention additionally provides a kind of message synchronization system, to ensure the above method realization and Using.
To solve the above-mentioned problems, the invention discloses a kind of message synchronization methods, including:Added by sending interaction request Enter multicast network and obtain the multicast address of the multicast network, the multicast network is to carry out the use of interacting message by instant messaging Family set is established, and an each multicast source section of user's counterpart terminal as the multicast network in user set Point;The multicast source node carries interactive instant messaging to the multicast address transmission data packet, in the data packet and disappears Breath;The multicast source node synchronizes the data packet to sort according to time positive sequence from the multicast address of the multicast network in real time, and The instant communication information of interaction in the multicast network is shown according to each data packet.
Optionally, further include:Multicast network method for building up:Acquisition carries out user's set of interacting message by instant messaging Set identification, and distribute a multicast address for the set identification;Each user's counterpart terminal is made during the user is gathered For a multicast source node, the multicast network based on the multicast address is established.
Optionally, the multicast address for multicast network being added by sending interaction request and obtain the multicast network, including: Send the interaction request of the set identification comprising user's set, wherein the interaction request user asks to be added described by i.e. When communication carry out interacting message user set;It receives the user determined according to the set identification and gathers corresponding multicast network Multicast address.
Optionally, the multicast source node synchronizes from the multicast address of the multicast network sort according to time positive sequence in real time Data packet, including:The multicast source node is in real time read out the data of multicast address described in the multicast network, obtains The data packet to sort according to the time positive sequence of the time of reception.
Optionally, the instant communication information that interaction in the multicast network is shown according to each data packet, including:Institute It states multicast source node and the instant communication information that parsing obtains the interaction is carried out to the data packet;According to the data packet when Between positive sequence clooating sequence the instant communication information of the interaction is shown.
Correspondingly, the invention also discloses a kind of message synchronization system, the message synchronization system is each by instant User's set that communication carries out interacting message establishes multicast network, and each user's counterpart terminal is as described group in user's set Broadcast a multicast source node of net;Multicast source node in the message synchronization system includes:Module is added, is sent for passing through Interaction request is added multicast network and obtains the multicast address of the multicast network;Sending module, for being sent to the multicast address Data packet carries interactive instant communication information in the data packet;Synchronization module, in real time from the group of the multicast network Broadcast the synchronous data packet to sort according to time positive sequence in address;Display module, for showing described group according to each data packet Broadcast the instant communication information of interaction in net.
Optionally, further include:Module is established, the collection for obtaining the user's set for carrying out interacting message by instant messaging Mark is closed, and a multicast address is distributed for the set identification;During the user is gathered each user's counterpart terminal as One multicast source node establishes the multicast network based on the multicast address.
Optionally, the addition module, the interaction request for sending the set identification comprising user's set, wherein institute Interaction request user is stated to ask that the user's set for carrying out interacting message by instant messaging is added;It receives according to the set The determining user of mark gathers the multicast address of corresponding multicast network.
Optionally, the synchronization module, for being read out in real time to the data of multicast address described in the multicast network, Obtain the data packet to sort according to the time positive sequence of the time of reception.
Optionally, the display module, the instant messaging for carrying out the parsing acquisition interaction to the data packet disappear Breath;The instant communication information of the interaction is shown according to the time positive sequence clooating sequence of the data packet.
Compared with prior art, the embodiment of the present invention includes following advantages:
The present embodiment establishes corresponding multicast network and configures institute to carry out user's set of interacting message by instant messaging The multicast address of multicast network is stated, each user's counterpart terminal is sent as a multicast source node to pass through in the multicast network Interaction request can be added multicast network and obtain the multicast address of the multicast network, and multicast source node is sent to the multicast address The data packet of interactive instant communication information is carried, and is synchronized in real time according to the time just from the multicast address of the multicast network The data packet of sequence sequence, is shown interactive instant communication information, to realize in multicast network each multicast source node it Between interaction instant communication information synchronization, data packet is forwarded without replicating in multicast network, reduces the occupancy of resource, and reduce Due to server orders and the time of forwarding, the delay of message synchronization is avoided.
Description of the drawings
Fig. 1 is a kind of step flow chart of message synchronization embodiment of the method for the present invention;
Fig. 2 is a kind of step flow chart of message synchronization method alternative embodiment of the present invention;
Fig. 3 is a kind of multicast network schematic diagram in the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of message synchronization system embodiment of the present invention;
Fig. 5 is the structure diagram of multicast source node in a kind of message synchronization system embodiment multicast network of the present invention.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is described in further detail.
One of the core concepts in the embodiments of the present invention is to provide a kind of message synchronization method, message synchronization delay is asked Topic.The embodiment of the present invention is to be established described in corresponding multicast network and configuration by user's set of instant messaging progress interacting message The multicast address of multicast network, each user's counterpart terminal is handed over as a multicast source node to pass through to send in the multicast network Mutually request can be added multicast network and obtain the multicast address of the multicast network, and multicast source node is taken to multicast address transmission Data packet with interactive instant communication information, and synchronized in real time according to time positive sequence from the multicast address of the multicast network The data packet of sequence is shown interactive instant communication information, to realize in multicast network between each multicast source node The synchronization of interactive instant communication information, data packet is forwarded without replicating in multicast network, reduces the occupancy of resource, and reduce Due to server orders and the time of forwarding, the delay of message synchronization is avoided.
Embodiment one
Referring to Fig.1, the step flow chart for showing a kind of message synchronization embodiment of the method for the present invention, can specifically include Following steps:
Step 102, multicast network is added by sending interaction request and obtains the multicast address of the multicast network.
Multicast (Multicast) technology realizes that point-to-point configuration connects between sender and each recipient.This hair In bright embodiment, the synchronization of message between instant communication user is carried out using multicasting technology, therefore firstly the need of to pass through Instant Messenger User's set that news carry out interacting message establishes corresponding multicast network, and configures the multicast address of the multicast network.
Wherein, instant messaging carries out between at least two users, and the present embodiment will carry out message friendship by instant messaging Mutual more than two user constitutes user's set, i.e. user in user set can obtain what each user in set sent Message, to realize the synchronous interaction of message.Wherein it is possible to user's set uniquely be indicated using set identification, using this The user of set identification progress instant messaging can share all message in user set.
Due to usually there are multiple user's set in system, prolong to reduce synchronizing for user message in each user's set When, the embodiment of the present invention establishes a multicast network for each user set, and distributes a multicast address for each multicast network, Wherein, the multicast address of each multicast network is unique, and during user is gathered each user's counterpart terminal as described group A multicast source node of net is broadcast, therefore, the sender of the message of the multicast network and message recipient are multicast source node, multicast Without geographical restrictions, i.e., multicast source node can be widely distributed in from anywhere in network source node, in user's set Each user interacting message can be carried out in the multicast network, using multicasting technology realize message synchronization.
After the completion of multicast network is established, when user will carry out interaction message with the progress instant messaging of the user in user's cluster, User's cluster can be added and correspond to multicast network, i.e., the terminal of each user can send interaction request, which is used for User's set is added in request, that is, user is added and gathers corresponding multicast network, to obtain multicast network by the interaction request Simultaneously multicast network is added in multicast address.
Step 104, multicast source node is to the multicast address transmission data packet.
Interactive instant communication information can be packaged when carrying out instant communication information interaction and generate data packet, data by user The packing generation method of packet has very much, can also be encrypted, the embodiment of the present invention is not construed as limiting this.Then the multicast source Node sends the data packet to multicast address, i.e., using multicast address as the transmission address of data packet.
Step 106, the synchronization from the multicast address of the multicast network in real time of multicast source node is sorted according to time positive sequence Data packet, and instant communication information interactive in the multicast network is shown according to each data packet.
After message composition data packet is sent to multicast address by multicast source node, which corresponds to physical equipment can be with The data packet that multicast source node is sent is received in the multicast network, it is same due to when multicast source node is more in multicast network Multiple data packets are likely to be received (in such as 1 second) in the shorter period, the instant messaging interacted when synchronization message in order to prevent Message sequence entanglement, multicast source node in real time from the multicast address of the multicast network read data when, the data packet of reading when Between positive sequence, i.e. the sequence of time from front to back is ranked up data packet
Each multicast source node can parse data packet to obtain synchronous after receiving the data packet Instant communication information simultaneously shows, when displaying message can according to the time positive sequence auto-sequencing, realize gather in user message While synchronous, the problem of being also not in message sequence entanglement.
In conclusion to establish corresponding multicast network by user's set of instant messaging progress interacting message and configuring institute The multicast address of multicast network is stated, each user's counterpart terminal is sent as a multicast source node to pass through in the multicast network Interaction request can be added multicast network and obtain the multicast address of the multicast network, and multicast source node is sent to the multicast address The data packet of interactive instant communication information is carried, and is synchronized in real time according to the time just from the multicast address of the multicast network The data packet of sequence sequence, is shown interactive instant communication information, to realize in multicast network each multicast source node it Between interaction instant communication information synchronization, data packet is forwarded without replicating in multicast network, reduces the occupancy of resource, and reduce Due to server orders and the time of forwarding, the delay of message synchronization is avoided.
Embodiment two
On the basis of the above embodiments, the present embodiment is discussed further the message synchronization method based on multicasting technology.
With reference to Fig. 2, a kind of step flow chart of message synchronization method alternative embodiment of the present invention is shown, it specifically can be with Include the following steps:
Step 202, the set identification for the user's set for carrying out interacting message by instant messaging is obtained, and is the set Mark one multicast address of distribution.
Step 204, each user's counterpart terminal is established as a multicast source node and is based on institute in the user being gathered State the multicast network of multicast address.
The message that the modes such as the application program of client, webpage or mobile terminal carry out instant messaging may be used in user Interaction, and system support can be carried out at the same time instant messaging with more than two user in the present embodiment.Therefore, in system Each user's set, can obtain the set identification of each user's set, and distribute a multicast address for each set identification, build Be based on the multicast network of the multicast address.
Wherein system can be that each user gathers the fixed multicast address of distribution, i.e. set identification uniquely corresponds to a group Address is broadcast, is synchronized to which the user gathers the multicast network that corresponding interaction message is built by the multicast address.Also may be used Think that user gathers and distribute interim multicast address, i.e., user distributes a group temporarily when the user gathers progress interacting message Broadcast address, and in the user gathers with interacting message is completed per family, when no longer carrying out interacting message in preset time, delete The correspondence of the set identification and multicast address distributes temporarily again when user carries out interacting message again during the user gathers One multicast address builds interim multicast network.
In the multicast network, each user's counterpart terminal in user's set as the multicast source node in the multicast network, Multicast source node sender and recipients as message in the multicast network simultaneously, for sending and receiving in the multicast network Data packet carries out interacting message.Each user uniquely indicates that then the user identifier can also using user identifier in user's set Uniquely indicate a multicast source node, system can store user identifier and the relationship of multicast address, for example, by using a data Table stores the user identifier of each multicast source node under a multicast address.
Step 206, the interaction request of the set identification comprising user's set is sent.
Step 208, the multicast address that the user determined according to the set identification gathers corresponding multicast network is received.
After establishing multicast network, user gathers progress instant messaging, interaction message to user is added, and can send friendship User set is added for asking in mutually request, the interaction request, i.e., the user is added by the interaction request gathers corresponding group Net is broadcast, the set identification of user's set is included in the interaction request, to determine user's set pair by the set identification The multicast network answered, and then determine the multicast address of the multicast network, i.e., the user can obtain the multicast address of the multicast network and add Enter multicast network, then the terminal of user can synchronize and read in multicast address as a multicast source node of the multicast network Data packet carry out data synchronization.
Step 210, multicast source node is to the multicast address transmission data packet.
Step 212, multicast source node is in real time read out the data of multicast address described in the multicast network, and acquisition is pressed According to the data packet of the time positive sequence sequence of the time of reception.
After the completion of user gathers corresponding multicast network foundation, each multicast source node can carry out the same of data packet in the multicast network Step is with synchronization message.Therefore user sends message, i.e. the message is packaged the data packet generated and is sent to the group by multicast source node It broadcasts on address.And synchronization message, that is, multicast source node is from read data packet on the multicast address.
Wherein, user increases in gathering with user, the message of (such as 1 second) interaction in the usual same shorter period Also can increase, what the data packet sent in the shorter period can be regarded as sending simultaneously on ordinary meaning, but use Usually there is the message of family interaction certain sequence, the sequence entanglement of interaction message to likely result in information error, i.e., can not be just The really intention of statement user, influences user experience, and even if each data packet sent in the shorter period still can be with Distinguish the specific time of reception.
Therefore, multicast source node in real time reading message above-mentioned from multicast address when, for the reading moment to it is upper one read In the period (above-mentioned shorter time period) at moment, it is likely to be received what each multicast source node in multicast network was sent on multicast address Data packet, to which in multicast source node reading data in real-time, the time of reception of data packet can be received according to multicast address Putting in order for time positive sequence (from front to back) obtain data packet, realize multicast source node in multicast network data it is real-time same Step.
Step 214, the multicast source node carries out the instant communication information that parsing obtains the interaction to the data packet.
Step 216, the instant communication information of the interaction is carried out according to the time positive sequence clooating sequence of the data packet Displaying.
It, can after each in multicast source node synchronization multicast address according to the data packet of the time positive sequence sequence of the time of reception Interactive instant communication information is obtained to be parsed to data packet, then in displayings such as the page of instant messaging, clients Interactive instant communication information is shown in position.
In the embodiment of the present invention, if can real-time synchronization multicast after thering is new multicast source node (user) to be added in multicast network Message in net, also, to synchronize the history interaction message before the multicast source node is added, can also be read from multicast address It takes.
In the embodiment of the present invention, multicast network can periodically detect whether each multicast source node survives, if multicast source section Point has exited the multicast network, as user leaves instant communication client, you can no longer receive interaction message.Multicast in the multicast network Source node can be added or exit at any time, avoid causing user set that can not continue to interact due to a certain multicast source node failure The problem of message, and improve the scalability of the multicast network.
In the present embodiment, the physical equipments such as switch or router may be used and receive the number being transmitted on the multicast address According to packet, and by the packet delivery in the multicast address source node is broadcast to each of the multicast network.
For example, building a multicast network with interchanger, set the multicast address of the multicast network and port to: 238.1.1.1:10001, as shown in Figure 3.
Each data packet (Packet) sender constitutes the multicast source of multicast in the multicast network, then includes n in the multicast network A multicast source node, it is assumed that the Packet that each multicast source node is sent is the information of the minimum unit of data transmission, is not It is alienable.
In the multicast network when interaction message, each multicast source node sends Packet to multicast address, when each Packet is sent in multicast network, and at this moment each Packet is sorted according to its sending time, and multicast source node is being read When data packet in multicast address, the Packet of the positive sequence sequence according to receiving time can be read.
When a new multicast source node R is added to the multicast network, which can be directly from multicast address 238.1.1.1:Data are read in 10001, that is, read each multicast source node in the multicast network be sent to multicast address by transmission Each Packet of time positive sequence sequence.
To which for each multicast source node being added in the multicast network, such as node 1, node 2 ... node n is adding The sender and recipients of message in the multicast network are become while entering the multicast network, it can be from multicast address 238.1.1.1: 10001 read the data packet for carrying synchronization message, therefore the quantity of the Packet received by each multicast source node is this The summation for the Packet that each multicast source node of other in multicast source node itself and the multicast network is sent, to be based on multicast skill Art realizes message synchronization.
It is applied not only in the embodiment of the present invention in the instant messagings of terminals such as client, the application program of mobile terminal, also It can be applied in the instant messaging of webpage, such as applied to chat system in show field, to which chat message can be with quick response To other users, low latency is for another example applied to the Commentary Systems (such as barrage) of collection of drama, can be quasi real time to the comment of user Ground responds to other users.
To sum up, the sequence to message is realized using multicasting technology, has saved the time of prioritisation of messages, has reduced due to algorithm Message delay problem caused by sequence sorts and the advantage with low latency in synchronization system in real time in message.
Secondly, multicast node server can be added and exit at any time multicast network, solve the problems, such as Single Point of Faliure and parallel expansion Exhibition problem.And multicasting technology used by the present embodiment, to the CPU etc. of the physical equipment of multicast source node and multicast address Performance does not have particular/special requirement, reduces the wasting of resources to scrap build.
It should be noted that for embodiment of the method, for simple description, therefore it is all expressed as a series of action group It closes, but those skilled in the art should understand that, the embodiment of the present invention is not limited by the described action sequence, because according to According to the embodiment of the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
Embodiment three
On the basis of the above embodiments, the present embodiment also discloses a kind of message synchronization system.
With reference to Fig. 4, a kind of structural schematic diagram of message synchronization system embodiment of the present invention is shown.
The message synchronization system is each to establish one by user's set of instant messaging progress interacting message in system Multicast network (such as multicast network 1 ... m), the user each multicast of user's counterpart terminal as the multicast network in gathering Source node (the multicast source node m1 ... my in such as multicast network m).To which multicasting technology may be used in the message synchronization system Gather for each user and carries out message synchronization.
With reference to Fig. 5, the structural frames of multicast source node in a kind of message synchronization system embodiment multicast network of the present invention are shown Figure, can specifically include following module:
Module 402 is added, for multicast network to be added by transmission interaction request and obtains the multicast address of the multicast network.
Sending module 404, it is interactive instant for the multicast address transmission data packet, being carried in the data packet Communication message.
Synchronization module 406, for the synchronous number to sort according to time positive sequence from the multicast address of the multicast network in real time According to packet.
Display module 408, the instant communication information for showing interaction in the multicast network according to each data packet.
In conclusion to establish corresponding multicast network by user's set of instant messaging progress interacting message and configuring institute The multicast address of multicast network is stated, each user's counterpart terminal is sent as a multicast source node to pass through in the multicast network Interaction request can be added multicast network and obtain the multicast address of the multicast network, and multicast source node is sent to the multicast address The data packet of interactive instant communication information is carried, and is synchronized in real time according to the time just from the multicast address of the multicast network The data packet of sequence sequence, is shown interactive instant communication information, to realize in multicast network each multicast source node it Between interaction instant communication information synchronization, data packet is forwarded without replicating in multicast network, reduces the occupancy of resource, and reduce Due to server orders and the time of forwarding, the delay of message synchronization is avoided.
Optionally, which further includes:Module is established, interacting message is carried out by instant messaging for obtaining User set set identification, and for the set identification distribute a multicast address;It is each used during the user is gathered Family counterpart terminal establishes the multicast network based on the multicast address as a multicast source node.
Optionally, module 402 is added, the interaction request for sending the set identification comprising user's set, wherein described Interaction request user asks that the user's set for carrying out interacting message by instant messaging is added;It receives and is marked according to the set Know the multicast address that the determining user gathers corresponding multicast network.
Optionally, synchronization module 406, for being read out in real time to the data of multicast address described in the multicast network, Obtain the data packet to sort according to the time positive sequence of the time of reception
Optionally, display module 408, the instant messaging for carrying out the parsing acquisition interaction to the data packet disappear Breath;The instant communication information of the interaction is shown according to the time positive sequence clooating sequence of the data packet
To sum up, the sequence to message is realized using multicasting technology, has saved the time of prioritisation of messages, has reduced due to algorithm Message delay problem caused by sequence sorts and the advantage with low latency in synchronization system in real time in message.
Secondly, multicast node server can be added and exit at any time multicast network, solve the problems, such as Single Point of Faliure and parallel expansion Exhibition problem.And multicasting technology used by the present embodiment, to the CPU etc. of the physical equipment of multicast source node and multicast address Performance does not have particular/special requirement, reduces the wasting of resources to scrap build.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description Place illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction generates for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device of specified function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments In computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows And/or in one box of block diagram or multiple boxes specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
Above to a kind of message synchronization method provided by the present invention and a kind of message synchronization system, detailed Jie has been carried out It continues, principle and implementation of the present invention are described for specific case used herein, and the explanation of above example is only It is the method and its core concept for being used to help understand the present invention;Meanwhile for those of ordinary skill in the art, according to this hair Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is limitation of the present invention.

Claims (8)

1. a kind of message synchronization method, which is characterized in that including:
Multicast network is added by sending interaction request and obtains the multicast address of the multicast network, the multicast network is for by i.e. When communication carry out user's set of interacting message and established, and described in each user's counterpart terminal is used as in user set One multicast source node of multicast network;
The multicast source node carries interactive instant messaging to the multicast address transmission data packet, in the data packet and disappears Breath;
The multicast source node synchronizes the data packet to sort according to time positive sequence from the multicast address of the multicast network in real time, and The instant communication information of interaction in the multicast network is shown according to each data packet, wherein described according to described in the displaying of each data packet In multicast network the step of the instant communication information of interaction, including:The multicast source node carries out parsing acquisition to the data packet The instant communication information of the interaction;Disappear to the instant messaging of the interaction according to the time positive sequence clooating sequence of the data packet Breath is shown.
2. according to the method described in claim 1, it is characterized in that, further including:Multicast network method for building up:
The set identification for the user's set for carrying out interacting message by instant messaging is obtained, and one is distributed for the set identification Multicast address;
Each user's counterpart terminal is established as a multicast source node based on the multicast address during the user is gathered Multicast network.
3. according to the method described in claim 2, it is characterized in that, described by sending interaction request addition multicast network and obtaining The multicast address of the multicast network, including:
Send the interaction request of the set identification comprising user's set, wherein the interaction request is described logical for asking to be added Cross user's set that instant messaging carries out interacting message;
Receive the multicast address that the user determined according to the set identification gathers corresponding multicast network.
4. according to the method described in claim 1, it is characterized in that, the multicast source node is in real time from the multicast of the multicast network The synchronous data packet to sort according to time positive sequence in address, including:
The multicast source node is in real time read out the data of multicast address described in the multicast network, when obtaining according to receiving The data packet of the time positive sequence sequence at quarter.
5. a kind of message synchronization system, which is characterized in that the message synchronization system is each to carry out message by instant messaging Interactive user's set establishes multicast network, the user each group of user's counterpart terminal as the multicast network in gathering Broadcast source node;
Multicast source node in the message synchronization system includes:
Module is added, for multicast network to be added by transmission interaction request and obtains the multicast address of the multicast network;
Sending module disappears for carrying interactive instant messaging to the multicast address transmission data packet, in the data packet Breath;
Synchronization module, for the synchronous data packet to sort according to time positive sequence from the multicast address of the multicast network in real time;
Display module, for carrying out the instant communication information that parsing obtains the interaction to the data packet;According to the data The time positive sequence clooating sequence of packet is shown the instant communication information of the interaction.
6. system according to claim 5, which is characterized in that further include:
Module is established, the set identification for obtaining the user's set for carrying out interacting message by instant messaging, and be the collection Close mark one multicast address of distribution;Each user's counterpart terminal is built as a multicast source node during the user is gathered Be based on the multicast network of the multicast address.
7. system according to claim 6, it is characterised in that:
The addition module, the interaction request for sending the set identification comprising user's set, wherein the interaction request is used The user for carrying out interacting message by instant messaging is added in request to gather;Receive the institute determined according to the set identification State the multicast address that user gathers corresponding multicast network.
8. system according to claim 5, it is characterised in that:
The synchronization module is obtained according to connecing for being read out in real time to the data of multicast address described in the multicast network The data packet for the time positive sequence sequence that time receiving carves.
CN201410710583.7A 2014-11-28 2014-11-28 A kind of message synchronization method and system Active CN104506330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410710583.7A CN104506330B (en) 2014-11-28 2014-11-28 A kind of message synchronization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410710583.7A CN104506330B (en) 2014-11-28 2014-11-28 A kind of message synchronization method and system

Publications (2)

Publication Number Publication Date
CN104506330A CN104506330A (en) 2015-04-08
CN104506330B true CN104506330B (en) 2018-08-17

Family

ID=52948045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410710583.7A Active CN104506330B (en) 2014-11-28 2014-11-28 A kind of message synchronization method and system

Country Status (1)

Country Link
CN (1) CN104506330B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566321B (en) * 2016-06-30 2021-06-15 中兴通讯股份有限公司 File sending method, device and system
CN106502829A (en) * 2016-10-21 2017-03-15 杭州迪普科技股份有限公司 A kind of data back up method and device
CN107087032B (en) * 2017-05-11 2018-09-11 腾讯科技(深圳)有限公司 Realize the method and apparatus that cluster is set up
CN108923875B (en) * 2018-05-31 2020-11-06 北京五八信息技术有限公司 Time synchronization method and device
US11310177B2 (en) 2018-07-18 2022-04-19 Huawei Technologies Co., Ltd. Message display method and terminal
CN111061684B (en) * 2019-12-31 2023-04-07 科来网络技术股份有限公司 Data packet file time sequence recovery system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964475A (en) * 2006-12-06 2007-05-16 杭州华为三康技术有限公司 A realization method for video conference, control device and user terminal
CN101039284A (en) * 2006-03-16 2007-09-19 腾讯科技(深圳)有限公司 Method for transmitting instant message to group
CN101448201A (en) * 2007-11-30 2009-06-03 华为技术有限公司 Method, apparatus and system for establishing broadcast or multicast bearer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100262924A1 (en) * 2009-04-08 2010-10-14 Kalu Onuka Kalu System and method for linking items to a group

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039284A (en) * 2006-03-16 2007-09-19 腾讯科技(深圳)有限公司 Method for transmitting instant message to group
CN1964475A (en) * 2006-12-06 2007-05-16 杭州华为三康技术有限公司 A realization method for video conference, control device and user terminal
CN101448201A (en) * 2007-11-30 2009-06-03 华为技术有限公司 Method, apparatus and system for establishing broadcast or multicast bearer

Also Published As

Publication number Publication date
CN104506330A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN104506330B (en) A kind of message synchronization method and system
KR101595526B1 (en) Synchronous transmission system and method for contents
CN102075417B (en) Multicast cutting method, protocol independent multicast router
US10171523B2 (en) Multi-tier push service control architecture for large scale conference over ICN
CN103209360B (en) A kind of shared method and apparatus of multi-party video
WO2018095096A1 (en) Method, device and system for processing overlay comment message and apparatus thereof
CN107612809A (en) A kind of multicast list synchronous method and equipment
US10097447B2 (en) Method, apparatus, and system for transmitting data
US9402056B2 (en) Collaboration extension system
WO2023061060A1 (en) Audio and video code stream scheduling method, system, medium and electronic apparatus
WO2015096802A1 (en) Method, device, and server for message transmission
CN102333280B (en) A kind of method, system and the Service Process Server of business cipher key renewal
CN104580013A (en) Network communication method and system capable of realizing fast access point selection
EP2892196A1 (en) Method, network node and system for implementing point-to-miltipoint multicast
TWI484792B (en) Efficient host management protocol on multicast capable router
CN110769019B (en) Session processing method, device, system, storage medium and computing equipment
US20140348164A1 (en) Maintaining a multicast forwarding table and a pim router
CN104079663A (en) Distributed type real-time synchronizing network system and data annunciating method thereof
US20220368743A1 (en) System and Method for Asynchronous User-Centric Context-Based Shared Viewing of Multimedia
CN115277649A (en) Method and device for collaboratively editing document in multimedia conference scene
EP4315819A1 (en) Method and system for integrating video content in a video conference session
Bartczak et al. Lightweight PIM—a new multicast routing protocol
CN107370716B (en) Multicast information processing method and device
CN110392285B (en) Media stream processing method and device
Chen et al. F. Live: Towards interactive live broadcast FTV experience

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant