CN104506330A - Message synchronizing method and system - Google Patents

Message synchronizing method and system Download PDF

Info

Publication number
CN104506330A
CN104506330A CN201410710583.7A CN201410710583A CN104506330A CN 104506330 A CN104506330 A CN 104506330A CN 201410710583 A CN201410710583 A CN 201410710583A CN 104506330 A CN104506330 A CN 104506330A
Authority
CN
China
Prior art keywords
multicast
user
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.)
Granted
Application number
CN201410710583.7A
Other languages
Chinese (zh)
Other versions
CN104506330B (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 invention provides a message synchronizing method and system, and aims to solve the problem of delay in message synchronization. The method comprises the following steps: adding into a multicast network by sending an interaction request, and acquiring the multicast address of the multicast network, wherein the multicast network is established for a user set performing message interaction through instant messaging, and a terminal corresponding to each user in the user set is taken as a multicast source node of the multicast network; transmitting data packets to the multicast address through the multicast source nodes, wherein the data packets carries instant messaging messages of the interaction; and synchronizing the data packets which are sequenced according to a positive time sequence from the multicast address of the multicast network through the multicast source nodes, and displaying the instant messaging messages of the interaction in the multicast network according to each data packet. Message synchronization is performed among the multicast source nodes in the multicast network, so that the data packets do not need to be copied and forwarded; the occupation of resources is reduced; and the delay in message synchronization is avoided.

Description

A kind of message synchronization method and system
Technical field
The present invention relates to technical field of multicast, particularly relate 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, allows transmission Word message, file data, voice data and video data that two people or many people use networking instant.
When multi-user carries out instant messaging in same cluster set, instant communicating system can receive the message from each user, owing to needing by these transmission of messages to all users in this set, following system needs, temporally to the prioritisation of messages received, then to feed back to each user.
When in group, user is more, system message to be dealt with is more, and too much message sorts, and not only can cause the burden of system that sorting time also can be caused to receive impact, and then cause the delay of message synchronization.
Summary of the invention
Embodiment of the present invention technical problem to be solved is to provide a kind of message synchronization method, to solve the problem that message synchronization postpones.
Accordingly, the embodiment of the present invention additionally provides a kind of message synchronization system, in order to ensure the implementation and application of said method.
In order to solve the problem, the invention discloses a kind of message synchronization method, comprise: add multicast network by sending interaction request and obtain the multicast address of described multicast network, described multicast network is that the user's set for being carried out interacting message by instant messaging is set up, and in described user set each user's counterpart terminal as a multicast source node of described multicast network; Described multicast source node sends packet to described multicast address, carries mutual instant communication information in described packet; Described multicast source node is the synchronous packet according to time positive sequence sequence from the multicast address of described multicast network in real time, and shows instant communication information mutual in described multicast network according to described each packet.
Optionally, also comprise: multicast network method for building up: the set identification obtaining the user's set being carried out interacting message by instant messaging, and distribute a multicast address for described set identification; Each user's counterpart terminal in described user's set, as a multicast source node, is set up the multicast network based on described multicast address.
Optionally, described by send interaction request add multicast network and obtain the multicast address of described multicast network, comprise: the interaction request sending the set identification comprising user's set, wherein, described interaction request user request adds the described user's set being carried out interacting message by instant messaging; Receive the multicast address that the described user determined according to described set identification gathers corresponding multicast network.
Optionally, described multicast source node is the synchronous packet according to time positive sequence sequence from the multicast address of described multicast network in real time, comprise: described multicast source node reads the data of multicast address described in described multicast network in real time, obtain the packet of the time positive sequence sequence according to the time of reception.
Optionally, describedly show instant communication information mutual in described multicast network according to described each packet, comprising: described multicast source node carries out resolving to described packet and obtains described mutual instant communication information; According to the time positive sequence clooating sequence of described packet, described mutual instant communication information is shown.
Accordingly, the invention also discloses a kind of message synchronization system, described message synchronization system is that multicast network is set up in each user's set carrying out interacting message by instant messaging, and in described user set, each user's counterpart terminal is as a multicast source node of described multicast network; Multicast source node in described message synchronization system comprises: add module, for adding multicast network by sending interaction request and obtain the multicast address of described multicast network; Sending module, for sending packet to described multicast address, carries mutual instant communication information in described packet; Synchronization module, for real-time from the multicast address of described multicast network synchronously according to the packet of time positive sequence sequence; Display module, for showing instant communication information mutual in described multicast network according to described each packet.
Optionally, also comprising: set up module, for obtaining the set identification of the user's set being carried out interacting message by instant messaging, and distributing a multicast address for described set identification; Each user's counterpart terminal in described user's set, as a multicast source node, is set up the multicast network based on described multicast address.
Optionally, described in add module, for sending the interaction request of set identification comprising user's set, wherein, described interaction request user request adds the described user's set being carried out interacting message by instant messaging; Receive the multicast address that the described user determined according to described set identification gathers corresponding multicast network.
Optionally, described synchronization module, reads for the real-time data to multicast address described in described multicast network, obtains the packet of the time positive sequence sequence according to the time of reception.
Optionally, described display module, obtains described mutual instant communication information for carrying out described packet resolving; According to the time positive sequence clooating sequence of described packet, described mutual instant communication information is shown.
Compared with prior art, the embodiment of the present invention comprises following advantage:
The present embodiment is that the user carrying out interacting message by instant messaging gathers and sets up corresponding multicast network and the multicast address configuring described multicast network, in this multicast network, each user's counterpart terminal is as a multicast source node, thus can multicast network be added by sending interaction request and obtain the multicast address of described multicast network, multicast source node sends the packet carrying mutual instant communication information to described multicast address, and in real time from the multicast address of described multicast network synchronously according to the packet of time positive sequence sequence, mutual instant communication information is shown, thus realize the synchronous of instant communication information mutual between each multicast source node in multicast network, in multicast network, packet is without the need to copying forwarding, decrease taking of resource, and decrease due to server orders and the time forwarded, avoid the delay of message synchronization.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of a kind of message synchronization embodiment of the method for the present invention;
Fig. 2 is the flow chart of steps of a kind of message synchronization method 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 the structural representation of a kind of message synchronization system embodiment of the present invention;
Fig. 5 is the structured flowchart of multicast source node in a kind of message synchronization system embodiment of the present invention multicast network.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
One of core idea of the embodiment of the present invention is, proposes a kind of message synchronization method, the problem that message synchronization postpones.The embodiment of the present invention is that the user carrying out interacting message by instant messaging gathers and sets up corresponding multicast network and the multicast address configuring described multicast network, in this multicast network, each user's counterpart terminal is as a multicast source node, thus can multicast network be added by sending interaction request and obtain the multicast address of described multicast network, multicast source node sends the packet carrying mutual instant communication information to described multicast address, and in real time from the multicast address of described multicast network synchronously according to the packet of time positive sequence sequence, mutual instant communication information is shown, thus realize the synchronous of instant communication information mutual between each multicast source node in multicast network, in multicast network, packet is without the need to copying forwarding, decrease taking of resource, and decrease due to server orders and the time forwarded, avoid the delay of message synchronization.
Embodiment one
With reference to Fig. 1, show the flow chart of steps of a kind of message synchronization embodiment of the method for the present invention, specifically can comprise the steps:
Step 102, adds multicast network by sending interaction request and obtains the multicast address of described multicast network.
Multicast (Multicast) technology realizes point-to-point configuration and connects between sender and each recipient.In the embodiment of the present invention, adopt multicasting technology to carry out the synchronous of message between instant communication user, therefore first need the user for being carried out interacting message by instant messaging to gather and set up corresponding multicast network, and configure the multicast address of described multicast network.
Wherein, instant messaging is carried out between at least two users, the present embodiment forms user's set by what carried out interacting message by instant messaging more than two users, and the user namely in this user set can obtain the message that in set, each user sends, thus realizes the synchronous interaction of message.Wherein, set identification can be adopted uniquely to represent user's set, and the user adopting this set identification to carry out instant messaging can share all message in this user set.
Owing to usually there is multiple user set in system, in order to reduce the synchronizing relay of user message in each user set, the embodiment of the present invention sets up a multicast network for each user's set, and distribute a multicast address for each multicast network, wherein, the multicast address of each multicast network is unique, and using each user's counterpart terminal in user's set as a multicast source node of described multicast network, therefore, the sender of the message of this multicast network and message recipient are multicast source node, multicast source node does not limit by region, namely multicast source node can extensively distribute in a network Anywhere, thus each user in user's set can carry out interacting message in this multicast network, multicasting technology is adopted to realize the synchronous of message.
After multicast network has been set up, user will with the user in user's cluster carry out instant messaging carry out interaction message time, the corresponding multicast network of this user's cluster can be added, namely the terminal of each user can send interaction request, this interaction request is used for request and adds access customer set, namely add the corresponding multicast network of access customer set, thus the multicast address of multicast network can be obtained by this interaction request and add multicast network.
Step 104, multicast source node sends packet to described multicast address.
User carries out the packing of mutual instant communication information to be generated packet when instant communication information is mutual, and the packing generation method of packet has a lot, and can also be encrypted, the embodiment of the present invention is not construed as limiting this.Then this multicast source node sends this packet to multicast address, by the transmission address of multicast address as packet.
Step 106, multicast source node is the synchronous packet according to time positive sequence sequence from the multicast address of described multicast network in real time, and shows instant communication information mutual in described multicast network according to described each packet.
After message composition data bag is sent to multicast address by multicast source node, the corresponding physical equipment of this multicast address can receive the packet that in this multicast network, a multicast source node sends, due to when in multicast network, multicast source node is many, the same shorter time period interior (as in 1 second) may receive multiple packet, instant communication information order entanglement mutual during in order to prevent synchronization message, when multicast source node reads data from the multicast address of this multicast network in real time, the time positive sequence of the packet read, namely order from front to back sorts to packet the time
Each multicast source node is after receiving this packet, can resolve packet thus obtain synchronous instant communication information and show, during displaying, message can according to this time positive sequence auto-sequencing, while realizing user message in set and be synchronous, also there will not be the problem of message sequence entanglement.
In sum, corresponding multicast network is set up and the multicast address configuring described multicast network for the user being carried out interacting message by instant messaging is gathered, in this multicast network, each user's counterpart terminal is as a multicast source node, thus can multicast network be added by sending interaction request and obtain the multicast address of described multicast network, multicast source node sends the packet carrying mutual instant communication information to described multicast address, and in real time from the multicast address of described multicast network synchronously according to the packet of time positive sequence sequence, mutual instant communication information is shown, thus realize the synchronous of instant communication information mutual between each multicast source node in multicast network, in multicast network, packet is without the need to copying forwarding, decrease taking of resource, and decrease due to server orders and the time forwarded, avoid the delay of message synchronization.
Embodiment two
On the basis of above-described embodiment, the present embodiment discusses the message synchronization method based on multicasting technology further.
With reference to Fig. 2, show the flow chart of steps of a kind of message synchronization method embodiment of the present invention, specifically can comprise the steps:
Step 202, is obtained the set identification of the user's set being carried out interacting message by instant messaging, and distributes a multicast address for described set identification.
Step 204, as a multicast source node, sets up the multicast network based on described multicast address using each user's counterpart terminal in described user's set.
User can adopt the modes such as the application program of client, webpage or mobile terminal to carry out the interacting message of instant messaging, and in the present embodiment, system support can carry out instant messaging more than two users simultaneously.Therefore, for each user's set in system, the set identification of each user set can be obtained, and distribute a multicast address for each set identification, set up the multicast network based on this multicast address.
Wherein system can be that each user gather the multicast address distributing and fix, i.e. the unique corresponding multicast address of set identification, thus the multicast network that the interaction message that this user gathers correspondence is all built by this multicast address is carried out synchronously.Also interim multicast address can be distributed for user gathers, namely user distributes a multicast address when interacting message is carried out in this user set temporarily, and the use in this user set completes interacting message per family, when no longer carrying out interacting message in Preset Time, delete the corresponding relation of this set identification and multicast address, distribute a multicast address again when user carries out interacting message again in this user set temporarily and build interim multicast network.
In this multicast network, each user's counterpart terminal in user's set is as the multicast source node in this multicast network, this multicast source node as sender and the recipient of message in this multicast network, carries out interacting message for the packet sending and receive in this multicast network simultaneously.In user's set, each user adopts user ID uniquely to represent, then this user ID also uniquely can represent a multicast source node, system can store the relation of user ID and multicast address, and a such as employing tables of data stores the user ID of each multicast source node under a multicast address.
Step 206, sends the interaction request of the set identification comprising user's set.
Step 208, receives the multicast address that the described user determined according to described set identification gathers corresponding multicast network.
After setting up multicast network, user carries out instant messaging to add access customer set, interaction message, interaction request can be sent, this interaction request is used for request and adds this user set, namely add this user by this interaction request and gather corresponding multicast network, the set identification of user's set is comprised in this interaction request, thus can determine that user gathers corresponding multicast network by this set identification, and then determine the multicast address of this multicast network, namely this user can obtain the multicast address of this multicast network and add multicast network, then the terminal of user can as of this multicast network multicast source node, the packet that can synchronously read in multicast address carries out data syn-chronization.
Step 210, multicast source node sends packet to described multicast address.
Step 212, multicast source node reads the data of multicast address described in described multicast network in real time, obtains the packet of the time positive sequence sequence according to the time of reception.
User gathers after corresponding multicast network set up, and in this multicast network, each multicast source node can carry out the synchronous with synchronization message of packet.Therefore user sends message, namely multicast source node by this message packing generate Packet Generation on this multicast address.And synchronization message and multicast source node are from read data packet this multicast address.
Wherein, along with increasing of user in user's set, usually the message that in the same shorter time period, (as 1 second) is mutual also can increase, the packet that sends in this shorter time period can be regarded as and sends simultaneously on ordinary meaning, but the message of user interactions has certain order usually, the order entanglement of interaction message probably causes information to be made mistakes, namely cannot the intention of accurate presentation user, the each packet sent in this shorter time period affects Consumer's Experience, even and if still can distinguish the concrete time of reception.
Therefore, multicast source node in real time reading message above-mentioned from multicast address time, read in the time period (above-mentioned short period section) in moment for this reading moment to upper one, multicast address may receive the packet that in multicast network, each multicast source node sends, thus when multicast source node reading data in real-time, the acquisition packet that puts in order of the time positive sequence (from front to back) of the time of reception of packet can be received according to multicast address, realize the real-time synchronization of multicast source node to data in multicast network.
Step 214, described multicast source node carries out resolving the described mutual instant communication information of acquisition to described packet.
Step 216, shows described mutual instant communication information according to the time positive sequence clooating sequence of described packet.
According to after the packet of the time positive sequence sequence of the time of reception in each multicast source synchronisation of nodes multicast address, can resolve packet and obtain mutual instant communication information, then in the display location such as the page, client of instant messaging, mutual instant communication information be shown.
In the embodiment of the present invention, if get final product the message in real-time synchronization multicast network after having new multicast source node (user) to add in multicast network, and the history interaction message before adding to this multicast source node synchronous, also can read from multicast address.
In the embodiment of the present invention, whether multicast network periodically can detect each multicast source node and survive, if multicast source node has exited this multicast network, as user leaves instant communication client, no longer can receive interaction message.In this multicast network, multicast source node can add at any time or exit, and avoids because a certain multicast source node failure causes this user to gather the problem that cannot continue interaction message, and improves the extensibility of this multicast network.
In the present embodiment, the physical equipment such as switch or router can be adopted to receive the packet be sent on this multicast address, and give each multicast source node in this multicast network by the packet delivery in this multicast address.
Such as, build a multicast network with switch, the multicast address of this multicast network and port are set to: 238.1.1.1:10001, as shown in Figure 3.
In this multicast network, each packet (Packet) sender forms the multicast source of multicast, then comprise n multicast source node in this multicast network, assuming that the Packet that each multicast source node sends is the information of the minimum unit that data transmit, be namely indivisible.
In this multicast network during interaction message, each multicast source node sends Packet to multicast address, when each Packet is sent in multicast network, at this moment each Packet sorts according to its transmitting time, multicast source node, when reading the packet in multicast address, can read the Packet sorted according to the positive sequence of time of reception.
When a new multicast source node R joins this multicast network, this multicast source node R directly can read data from multicast address 238.1.1.1:10001, namely reads each Packet by the sequence of transmitting time positive sequence that each multicast source node in this multicast network is sent to multicast address.
Thus, for each multicast source node added in this multicast network, as node 1, node 2 ... node n, namely it become sender and the recipient of message in this multicast network while adding this multicast network, the packet carrying synchronization message can be read from multicast address 238.1.1.1:10001, the quantity of the Packet therefore received by each multicast source node is the summation of the Packet that in this multicast source node self and this multicast network, other each multicast source nodes send, thus achieves message synchronization based on multicasting technology.
In instant messaging not only for the terminal such as application program of client, mobile terminal in the embodiment of the present invention, can also be applied in the instant messaging of webpage, such as be applied to chat system in show field, thus chat message can respond fast to other users, low delay, and for example be applied to the Commentary Systems (as barrage etc.) of collection of drama, thus the comment of user quasi real time can respond to other users.
To sum up, adopt the sequence of multicasting technology realization to message, saved the time of prioritisation of messages, decrease the message delay problem caused due to algorithm sequence, sort in real time in message and there is in synchro system the advantage of low delay.
Secondly, multicast node server can add at any time and exit multicast network, solves Single Point of Faliure problem and parallel-expansion problem.And the multicasting technology that the present embodiment adopts, does not have particular/special requirement to performances such as the CPU of the physical equipment of multicast source node and multicast address, decreases the wasting of resources to scrap build.
It should be noted that, for embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not by the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action might not be that the embodiment of the present invention is necessary.
Embodiment three
On the basis of above-described embodiment, the present embodiment also discloses a kind of message synchronization system.
With reference to Fig. 4, show the structural representation of a kind of message synchronization system embodiment of the present invention.
This message synchronization system be in system each by instant messaging carry out interacting message user set set up a multicast network (as multicast network 1 ... m), in described user set each user's counterpart terminal as a multicast source node of described multicast network (as the multicast source node m1 in multicast network m ... my).Thus multicasting technology in this message synchronization system, can be adopted to be that message synchronization is carried out in each user set.
With reference to Fig. 5, show the structured flowchart of multicast source node in a kind of message synchronization system embodiment of the present invention multicast network, specifically can comprise as lower module:
Add module 402, for adding multicast network by sending interaction request and obtain the multicast address of described multicast network.
Sending module 404, for sending packet to described multicast address, carries mutual instant communication information in described packet.
Synchronization module 406, for real-time from the multicast address of described multicast network synchronously according to the packet of time positive sequence sequence.
Display module 408, for showing instant communication information mutual in described multicast network according to described each packet.
In sum, corresponding multicast network is set up and the multicast address configuring described multicast network for the user being carried out interacting message by instant messaging is gathered, in this multicast network, each user's counterpart terminal is as a multicast source node, thus can multicast network be added by sending interaction request and obtain the multicast address of described multicast network, multicast source node sends the packet carrying mutual instant communication information to described multicast address, and in real time from the multicast address of described multicast network synchronously according to the packet of time positive sequence sequence, mutual instant communication information is shown, thus realize the synchronous of instant communication information mutual between each multicast source node in multicast network, in multicast network, packet is without the need to copying forwarding, decrease taking of resource, and decrease due to server orders and the time forwarded, avoid the delay of message synchronization.
Optionally, this message synchronization system also comprises: set up module, for obtaining the set identification of the user's set being carried out interacting message by instant messaging, and distributes a multicast address for described set identification; Each user's counterpart terminal in described user's set, as a multicast source node, is set up the multicast network based on described multicast address.
Optionally, add module 402, for sending the interaction request of the set identification comprising user's set, wherein, described interaction request user request adds the described user's set being carried out interacting message by instant messaging; Receive the multicast address that the described user determined according to described set identification gathers corresponding multicast network.
Optionally, synchronization module 406, reads for the real-time data to multicast address described in described multicast network, obtains the packet of the time positive sequence sequence according to the time of reception.
Optionally, display module 408, obtains described mutual instant communication information for carrying out described packet resolving; According to the time positive sequence clooating sequence of described packet, described mutual instant communication information is shown
To sum up, adopt the sequence of multicasting technology realization to message, saved the time of prioritisation of messages, decrease the message delay problem caused due to algorithm sequence, sort in real time in message and there is in synchro system the advantage of low delay.
Secondly, multicast node server can add at any time and exit multicast network, solves Single Point of Faliure problem and parallel-expansion problem.And the multicasting technology that the present embodiment adopts, does not have particular/special requirement to performances such as the CPU of the physical equipment of multicast source node and multicast address, decreases the wasting of resources to scrap build.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Those skilled in the art should understand, the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the embodiment of the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the embodiment of the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The embodiment of the present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, terminal equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminal equipment to produce a machine, making the instruction performed by the processor of computer or other programmable data processing terminal equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing terminal equipment, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment, make to perform sequence of operations step to produce computer implemented process on computer or other programmable terminal equipment, thus the instruction performed on computer or other programmable terminal equipment is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although described the preferred embodiment of the embodiment of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of embodiment of the present invention scope.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the terminal equipment comprising described key element and also there is other identical element.
Above to a kind of message synchronization method provided by the present invention and a kind of message synchronization system, be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a message synchronization method, is characterized in that, comprising:
Add multicast network by sending interaction request and obtain the multicast address of described multicast network, described multicast network is that the user's set for being carried out interacting message by instant messaging is set up, and in described user set each user's counterpart terminal as a multicast source node of described multicast network;
Described multicast source node sends packet to described multicast address, carries mutual instant communication information in described packet;
Described multicast source node is the synchronous packet according to time positive sequence sequence from the multicast address of described multicast network in real time, and shows instant communication information mutual in described multicast network according to described each packet.
2. method according to claim 1, is characterized in that, also comprises: multicast network method for building up:
Obtain the set identification of the user's set being carried out interacting message by instant messaging, and distribute a multicast address for described set identification;
Each user's counterpart terminal in described user's set, as a multicast source node, is set up the multicast network based on described multicast address.
3. method according to claim 2, is characterized in that, described by send interaction request add multicast network and obtain the multicast address of described multicast network, comprising:
Send the interaction request of the set identification comprising user's set, wherein, described interaction request user request adds the described user's set being carried out interacting message by instant messaging;
Receive the multicast address that the described user determined according to described set identification gathers corresponding multicast network.
4. method according to claim 1, is characterized in that, described multicast source node is the synchronous packet according to time positive sequence sequence from the multicast address of described multicast network in real time, comprising:
Described multicast source node reads the data of multicast address described in described multicast network in real time, obtains the packet of the time positive sequence sequence according to the time of reception.
5. method according to claim 1, is characterized in that, describedly shows instant communication information mutual in described multicast network according to described each packet, comprising:
Described multicast source node carries out resolving the described mutual instant communication information of acquisition to described packet;
According to the time positive sequence clooating sequence of described packet, described mutual instant communication information is shown.
6. a message synchronization system, is characterized in that, described message synchronization system is that multicast network is set up in each user's set carrying out interacting message by instant messaging, and in described user set, each user's counterpart terminal is as a multicast source node of described multicast network;
Multicast source node in described message synchronization system comprises:
Add module, for adding multicast network by sending interaction request and obtain the multicast address of described multicast network;
Sending module, for sending packet to described multicast address, carries mutual instant communication information in described packet;
Synchronization module, for real-time from the multicast address of described multicast network synchronously according to the packet of time positive sequence sequence;
Display module, for showing instant communication information mutual in described multicast network according to described each packet.
7. system according to claim 6, is characterized in that, also comprises:
Setting up module, for obtaining the set identification of the user's set being carried out interacting message by instant messaging, and distributing a multicast address for described set identification; Each user's counterpart terminal in described user's set, as a multicast source node, is set up the multicast network based on described multicast address.
8. system according to claim 7, is characterized in that:
Describedly add module, for sending the interaction request of the set identification comprising user's set, wherein, described interaction request user request adds the described user's set being carried out interacting message by instant messaging; Receive the multicast address that the described user determined according to described set identification gathers corresponding multicast network.
9. system according to claim 6, is characterized in that:
Described synchronization module, reads for the real-time data to multicast address described in described multicast network, obtains the packet of the time positive sequence sequence according to the time of reception.
10. system according to claim 6, is characterized in that:
Described display module, obtains described mutual instant communication information for carrying out described packet resolving; According to the time positive sequence clooating sequence of described packet, described mutual instant communication information is shown.
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 true CN104506330A (en) 2015-04-08
CN104506330B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502829A (en) * 2016-10-21 2017-03-15 杭州迪普科技股份有限公司 A kind of data back up method and device
CN107087032A (en) * 2017-05-11 2017-08-22 腾讯科技(深圳)有限公司 Realize the method and apparatus that cluster is set up
WO2018001063A1 (en) * 2016-06-30 2018-01-04 中兴通讯股份有限公司 Method, device and system for transmitting file
CN108923875A (en) * 2018-05-31 2018-11-30 北京五八信息技术有限公司 Method for synchronizing time and device
CN111061684A (en) * 2019-12-31 2020-04-24 成都科来软件有限公司 Data packet file time sequence recovery system
CN111373703A (en) * 2018-07-18 2020-07-03 华为技术有限公司 Message display method and terminal

Citations (4)

* 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
US20100262924A1 (en) * 2009-04-08 2010-10-14 Kalu Onuka Kalu System and method for linking items to a group

Patent Citations (4)

* 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
US20100262924A1 (en) * 2009-04-08 2010-10-14 Kalu Onuka Kalu System and method for linking items to a group

Cited By (9)

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

Also Published As

Publication number Publication date
CN104506330B (en) 2018-08-17

Similar Documents

Publication Publication Date Title
CN104506330A (en) Message synchronizing method and system
US10243833B2 (en) Flow table management method, and related device and system
US20170278003A1 (en) Complex Event Processing Method, Apparatus, and System
CN101778113B (en) Method for detection of RP state in multicast network, device, RP device and multicast system
CN104509073A (en) Discovering ip multicast group memberships in software defined networks
CN102413073A (en) Method and device for sending instant message
CN108347477A (en) Data transmission method for uplink, device and server
CN110582998A (en) Group communication method and device, computer storage medium and computer equipment
CN110719221A (en) Instant messaging method, device, equipment and storage medium
CN104247339A (en) Home network packet delivery
CN113746722B (en) Information processing method, device, equipment and storage medium
JP6241637B2 (en) Method and device for managing multicast group members
CN105450529A (en) Method, equipment and system for transmitting multicast message in manner of crossing two-layer virtual network
CN111935306B (en) Node scheduling method and device
CN102984174B (en) Reliability guarantee method and system in a kind of distribution subscription system
CN106899605B (en) Communication method and device based on STOMP protocol
CN113382065B (en) File downloading method, device, system, equipment and storage medium
CN104243272A (en) Media message pushing method and device
KR20120138546A (en) Apparatus and method for discovery based on priority in distributed network and method for determining discovery backoff time
CN104079663A (en) Distributed type real-time synchronizing network system and data annunciating method thereof
CN108900422B (en) Multicast forwarding method and device and electronic equipment
CN109981694B (en) Synchronization method, server and terminal
CN110581828B (en) Time synchronization method and device for private network cluster terminal
CN101309154B (en) Datagram sending method, sending apparatus and transmission system
CN103368988B (en) resource sharing method, system and device

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