CN103428070A - Instant group messaging method, session management server and client side - Google Patents

Instant group messaging method, session management server and client side Download PDF

Info

Publication number
CN103428070A
CN103428070A CN2012101540633A CN201210154063A CN103428070A CN 103428070 A CN103428070 A CN 103428070A CN 2012101540633 A CN2012101540633 A CN 2012101540633A CN 201210154063 A CN201210154063 A CN 201210154063A CN 103428070 A CN103428070 A CN 103428070A
Authority
CN
China
Prior art keywords
client
group
management server
licg
clients
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
CN2012101540633A
Other languages
Chinese (zh)
Other versions
CN103428070B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201210154063.3A priority Critical patent/CN103428070B/en
Publication of CN103428070A publication Critical patent/CN103428070A/en
Application granted granted Critical
Publication of CN103428070B publication Critical patent/CN103428070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an instant group messaging method, a session management server and a client side. The instant group messaging method mainly comprises the steps that the client side transmits instant messaging information to client sides which can carry out direct communication in the same group after receiving the instant messaging information, the same operation that the instant messaging information is transmitted to all the client sides which can carry out the direct communication in the same group is carried out by all the other client sides in the group, all the client sides in the group are made to be capable of receiving the instant messaging information, the functions of monitoring and forwarding the instant messaging information of a session management server are transferred to all the client sides in the group successfully, and each client side performs a part of the functions of monitoring and forwarding the instant messaging information. Therefore, the session management server does not need to carry out the monitoring operation and the forwarding operation of the instant messaging information any more, and the data size needs to be processed by the session management server is reduced to a large extent.

Description

Instant colony communication means, session management server and client
Technical field
The application relates to network communication field, relates in particular to a kind of instant colony communication means, session management server and client.
Background technology
The communication of instant colony refers to that a plurality of clients take the Internet as medium, with the instant communication mode communication mode of transmission or shared text message, Multimedia Message mutually.
The communication of instant colony is to realize by user terminal/server framework as shown in Figure 1, in this framework, session management server (Content Management System, CMS) with each client, connect respectively, complete in instant messaging the logging in authentication, receive from the information of client and this information be transmitted to the function such as other clients of client, realize that a certain client communicates by letter with the instant colony between other clients in the group of its place.
Take the framework shown in Fig. 1 as example, suppose that customer end A is the client belonged in same a group to client E, the process that customer end A sends instant communication message to other clients in the group is as follows:
The first step: customer end A sends instant communication message to session management server, wherein carries customer end A place group's group identification and the sign of customer end A.
Second step: session management server, according to the group identification received, is determined each client comprised in corresponding group.
The 3rd step: session management server, according to the sign of the customer end A of initiating instant communication message, each client comprised in the group who determines, is determined the client that needs to receive this instant communication message, and customer end B is to client E.
In this step, session management server receives the client of instant communication message using the client of other except customer end A in the group as needs.
The 4th step: session management server is transmitted to customer end B to client E by instant communication message, has realized that customer end A communicates by letter with the instant colony between other clients in same a group.
In above-mentioned instant colony communication mode, session management server not only need with the group in the client transmission of carrying out control command (as log in authentication, whether client off-line is arranged or have new client to log in the group etc.), the instant communication message that also needs the client to connecting to send is monitored, and instant communication message is transmitted to other clients in the group, owing between session management server needs and client, carrying out in real time the transmitting-receiving of control command and instant communication message, the data volume that session management server need be processed is large, particularly in peak period of instant colony communication service, the actual data volume that need process of session management server is very huge, this will cause the performance of session management server to be a greater impact, even may can't meet business demand in the peak period of instant colony communication service, can only meet business demand by the scale that increases the session management server group.
Summary of the invention
The purpose of the embodiment of the present application is, a kind of instant colony communication means, session management server is provided, reaches client, to solve the excessive problem of data processing amount of session management server in prior art.
A kind of instant colony communication means, described method comprises:
Session management server is determined the CID that participates in the client of session in the group;
Session management server connects allocation plan ICG according to described CID generating network, recorded the annexation between described client in described ICG, and, according to described annexation, the arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group;
Session management server is that arbitrary client generates respectively local network connection allocation plan LICG according to described ICG, and described LICG is handed down to corresponding client, indicate this client to carry out instant colony according to the LICG issued with other clients in the group and communicate by letter, recorded the CID of other clients that can directly communicate with corresponding client in described LICG.
A kind of instant colony communication means, described method comprises:
The client instant communication message;
Client connects definite other clients that can communicate with self of allocation plan LICG according to the local network of this locality storage, and described instant communication message is sent to other definite clients;
Described LICG is that session management server generates and issues according to network connection allocation plan ICG, wherein recorded the identification number CID of other clients that can directly communicate with client, recorded the annexation between all clients that participate in session in the group at client place in described ICG, and, according to described annexation, the arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group.
A kind of session management server, described session management server comprises:
Determination module, participate in the CID of the client of session for determining the group;
Network connects allocation plan ICG generation module, for according to described CID, generating ICG, recorded the annexation between described client in described ICG, and, according to described annexation, the arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group;
Local network connects allocation plan LICG generation module, for being that arbitrary client generates respectively local network and connects allocation plan LICG according to described ICG;
Sending module, for described LICG being handed down to the client of corresponding participation session,, indicate this client to carry out instant colony according to the LICG issued with other clients in the group and communicate by letter, recorded the CID of other clients that can directly communicate with corresponding client in described LICG.
A kind of client, described client comprises:
Receiver module, for receiving instant communication message;
Determination module, connect allocation plan LICG for the local network according to this locality storage and determine other clients that can communicate with self, described LICG is that session management server generates and issues according to network connection allocation plan ICG, wherein recorded the CID of other clients that can directly communicate with client, recorded the annexation between all clients that participate in session in the group at client place in described ICG, and, according to described annexation, the arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group;
Sending module, for being sent to described instant communication message other definite clients.
In the scheme of the embodiment of the present application, client is after receiving instant communication message, send described instant communication message to the client that can carry out direct communication in same a group, in this group, other clients are all carried out the operation that the identical client to carrying out direct communication in same a group sends described instant communication message, make in this group and all can receive described instant communication message except all clients, and then the session management server is monitored and is forwarded being transferred in the group on each client of function success of instant communication message, each client is all born part and is monitored and forward the instant communication message function, session management server does not need to carry out the monitoring of instant communication message again and forwards operation like this, significantly reduce session management server and needed data volume to be processed.
The accompanying drawing explanation
Fig. 1 is instant colony communication system architecture schematic diagram in background technology;
Fig. 2 is instant colony communication means schematic diagram in the embodiment of the present application one;
Fig. 3 is that the network that in the embodiment of the present application one, session management server generates connects the allocation plan schematic diagram;
Fig. 4 is that in the embodiment of the present application one, session management server utilizes the network that binary tree algorithm generates to connect the allocation plan schematic diagram;
Fig. 5 (a)-Fig. 5 (l) is that the local network that in the embodiment of the present application one, session management server is each client configuration in the group connects the allocation plan schematic diagram;
Fig. 6 is that the local network that the embodiment of the present application one session management server regenerates connects the allocation plan schematic diagram;
Fig. 7 is instant colony communication means schematic diagram in the embodiment of the present application two;
Fig. 8 is the instant colony communication means schematic diagram in the embodiment of the present application three;
Fig. 9 is that in the embodiment of the present application three, session management server is that the network that 5 clients generate connects the allocation plan schematic diagram;
The local network that Figure 10 (a)-Figure 10 (e) is 5 client configuration for session management server in the embodiment of the present application three connects the allocation plan schematic diagram;
Figure 11 is instant colony communication system schematic diagram in the embodiment of the present application four;
The structural representation that Figure 12 is session management server in the embodiment of the present application five;
The structural representation that Figure 13 is client in the embodiment of the present application six.
Embodiment
For realizing the application's purpose, the embodiment of the present application has proposed a kind of instant colony communication plan, client is after receiving instant communication message, send described instant communication message to the client that can carry out direct communication in same a group, in this group, other clients are all carried out the operation that the identical client to carrying out direct communication in same a group sends described instant communication message, make in this group and all can receive described instant communication message except all clients, and then the session management server is monitored and is forwarded being transferred in the group on each client of function success of instant communication message, each client is all born part and is monitored and forward the instant communication message function, make session management server need not carry out again the monitoring of instant communication message and forward operation, reduce session management server and needed data volume to be processed, effectively alleviated the session management server data processing load, the performance of having avoided the data volume because processing to cause greatly can't meet the problem of business demand.
To the statistical confirmation of a large amount of instant colony communication, it is more sparse that single member distributes the movable time in colony's session; Most of group members in the group do not produce the state of instant communication message in most of periods of colony's session in receiving only instant communication message; For take the instant colony session that Internet chat is principal mode, average group member number is between 50-200, the member is not high to the instant ageing requirement arrived of other people instant message, reaction and the response time of the instant message that other people are sent, for network delay, exist the difference of the order of magnitude.
The scheme of the embodiment of the present application is utilized the above-mentioned feature of instant colony communication just, and the mode by mutual forwarding messages between the client that participates in colony's session, realize the communication between colony.Although this communication mode can produce network delay, the instant communication message other people sent because of the member in the group ageing less demanding, therefore can not produce considerable influence to the communication of instant colony.That is to say, in the application by client forward instant communication message realize the mode of instant colony communication be meet the communication of instant colony to the ageing requirement that receives and send instant communication message.
It should be noted that, in this application, when describing the computer local operation, client refers to be moved on local computer again, control computer hardware with the mode of agreement agreement and the software of session management server communication, when describing with the concerning of server, client is also the computer physics entity of operation corresponding software.
Scheme below in conjunction with the specific embodiment DETAILED DESCRIPTION The present application.
Embodiment mono-
As shown in Figure 2, it is instant colony communication means schematic diagram in the embodiment of the present application one, and described method comprises:
Step 201: session management server is determined the identification number (Client IDentity, CID) that participates in the client of session in the group.
Session manager can distribute a unique group identification number (ID) to each group of its service, and for each group, determine the CID that participates in the client of session in this group, described CID has recorded the information of this client of energy unique identification, as the information such as IP address of numbering and client.
When the CID of described client is this client login, to session management server, send.
Step 202: session management server connects allocation plan (Internet Configuration Graph according to described CID generating network, ICG), recorded the annexation between described client in described ICG, and, according to described annexation, the arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group.
Suppose that the CID that participates in 12 clients of session in the definite group of session management server is respectively A, B, C, D, E, F, G, H, I, J, K, L, the ICG generated can be for as shown in Figure 3, and the annexation in visible Fig. 3 has guaranteed that the arbitrary client in group all can carry out direct or indirect communicating by letter with other clients except self in the group.
Wherein, generate the difference that ICG can be according to demand and adopt different generating modes, such as the residing network condition of the quantity according to client, each client and the generations such as number of connection that arrange, do not limit concrete generating mode in the application, the arbitrary client in satisfied group all can be carried out direct or indirect communicating by letter with other clients except self in the group according to the annexation in the ICG generated and be got final product.For example, can utilize in the data structure technology algorithm that generates binary tree to generate ICG, above-mentioned 12 clients of take are example, and the binary tree generated can be for as shown in Figure 4.
Preferably, the IP address that session management server can report to it according to client when logining, IP geographical information library according to this locality storage, determine the geographical position of the client of using this IP address, and generate ICG according to definite IP geographical position, make client in the group can carry out the consuming time shorter of direct or indirect signal post's use with other clients except self in the group according to this ICG.
Step 203: session management server is that arbitrary client generates respectively local network connection allocation plan LICG according to described ICG, and described LICG is handed down to corresponding client.
Still the ICG in above Fig. 4 is example, and in this step 203, session management server is that the LICG that 12 clients generate respectively can be as shown in Fig. 5 (a)-Fig. 5 (l).
Step 204: session management server is indicated this client to carry out instant colony according to the LICG issued with other clients in the group and is communicated by letter, and has recorded the CID of other clients that can directly communicate with corresponding client in described LICG.
In the scheme of the embodiment of the present application one, because session management server has issued LICG for the client in the group, LICG and other clients that client in the group all can issue for self according to session management server communicate, and then make the arbitrary instant communication message that the client in this group produces that receives that arbitrary client in the group all can be direct or indirect, the method that is also the present embodiment one had both realized the communication of instant colony, and that has reduced again session management server simultaneously is monitored and forward brought resource consumption to instant communication message.
Consider when carrying out the communication of instant colony, the transmittance process of the instant communication message between client may be lost because of the not good instant communication message that causes of network condition in transmittance process, do not send to corresponding client, perhaps owing to there being client to exit colony's session, this client that exits session just can not be carried out the reception of message and be forwarded operation, just may cause instant communication message can not be sent to some client in the group, therefore, preferably, session management server receives the transmission failure reporting that client reports, described transmission failure reporting is that this client produces when to other clients, sending the instant communication message failure, the CID that comprises message receiver.
Session management server is when receiving quantity for the transmission failure reporting of same CID and reach threshold value, and the client corresponding to this CID processed.
The described client corresponding to CID processed, and can exit colony's session for directly definite this client, and regenerate ICG, and again for each client that participates in session in the group, generate LICG according to the ICG regenerated.
Preferably, session management server to this CID corresponding client processed, specifically comprise:
The client that session management server is corresponding to this CID sends test instruction, and do not receive in tolerable time delay that this client returns reply instruction the time, determine the session in the current group of having neither part nor lot in of this client, and regenerate ICG, and again for each client that participates in session in the group, generate LICG according to the ICG regenerated.
Preferably, session management server is after the client in the group is redistributed LICG, before can be relatively, whether the old LICG of client be identical with the LICG redistributed, the different client for LICG, session management server sends to client by the LICG redistributed, and requires client to upgrade LICG; The identical client for LICG, session management server may not request client to carry out the renewal of LICG.
Consider when there being new client to add in group or group original client while starting to participate in session, do not add in group or group the annexation between the client of other participation sessions in original client and this group owing to recording described new client in original ICG, can't distribute LICG for it according to original ICG, also just cause can not with its place group in other clients carry out instant messaging, therefore preferably, when there being new client to add in group or group original client while starting to participate in session, session management server participates in original client in described new client or described group in the client of session in the group, and regenerate ICG, and be to participate in each client configuration LICG of session in the group again according to newly-generated ICG.
On the basis of upper Fig. 4, if there is new client M to start to participate in session, the ICG that now session management server regenerates can be for shown in Fig. 6.
Embodiment bis-
As shown in Figure 7, it is instant colony communication means in the embodiment of the present application two, and described method comprises:
Step 301: client instant communication message.
Described instant communication message can be that the user inputs this client, can be also that other clients send to described client.
Preferably, local message identification number (the Local Message Identity generated while having carried according to this message of establishment in described instant communication message, LMID) the global message identification number (Global Message Identity, GMID) generated with the CID of the client that creates this message.
Step 302: client judges according to session protocol whether the current instant communication message received is the instant communication message received, if perform step 303; If not, perform step 304.
In this step 302, client can, by the current instant communication message received and the instant communication message received of local storage are compared, judge according to comparative result whether the current instant communication message received is the instant communication message received.
Preferably, client can be by the GMID carried in instant communication message, stacked message queue (the Incoming Message Queue of judgement local maintenance, IMQ) in, whether exist the mode of described GMID to judge whether this locality had received this instant communication message, recorded the CID of the source client of the GMID of the instant communication message received and this instant communication message in described IMQ.
Step 303: client no longer is sent to other clients by the current instant communication message received, and abandons described instant communication message, finishes this instant colony communication process.
It should be noted that, step 302 and step 303 are preferred versions of the present embodiment two, and purpose is to repeat to receive the number of times of a certain instant communication message in order to reduce as much as possible client.
Step 304: the described instant communication message of client stores.
In above-mentioned steps 302, when judgment result is that while receiving this instant communication message, be not limited to and abandon these a kind for the treatment of measures of described instant communication message, also can take to judge whether to forward this instant communication message, if do not forward, perform step 304, if forwarded, no longer forward this instant communication message, can avoid between the client of same instant communication message in the group by undying forwarding.
In order to guarantee that the instant communication message that client is sent can arrive all clients in the group, session management server is LICG summation that each client distributes redundancy often, will cause occurring that client repeats to receive the situation of same instant communication message, in step 302, can whether repeat to the instant communication message received to receive and whether repeat the judgement forwarded, and take corresponding measure, and then avoided repeating to receive, forward the situation of same instant communication message.
The operation of the described instant communication message of this step 304 storage is preferred operations, also can not store described instant communication message in the scheme of the embodiment of the present application, and only store the GMID of described instant communication message and the CID of this instant communication message transmit leg, and these information are placed in the IMQ queue of local maintenance.
It should be noted that, step 304 is preferred versions of the present embodiment two, purpose is the GMID in order to utilize the instant communication message of having stored and the CID that sends this instant communication message, perform step at 302 o'clock in order to judge whether the instant communication message received is to repeat the instant communication message received, and avoids repeating receiving, forwarding instant communication message at every turn in next time.
Step 305: client reads the content of described instant communication message, and it is shown at local output interface.
Step 306: client connects definite other clients that can communicate with self of allocation plan LICG according to the local network of this locality storage.
Described LICG is that session management server generates and issues according to network connection allocation plan ICG, wherein recorded the CID of other clients that can directly communicate with client, recorded the annexation between all clients that participate in session in the group at client place in described ICG, and, according to described annexation, the arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group.
Step 307: client is sent to other definite clients by described instant communication message.
Preferably, in this step 307, client is carried at the CID of self in described instant communication message, and the instant communication message that will carry self CID sends, so that in this group, other clients that receive described instant communication message can be according to the CID carried in described instant communication message, determine that the client that this CID is corresponding has received described instant communication message, no longer is transmitted to by described instant communication message the client that this CID is corresponding.
Step 308: client judges whether successfully to send described instant communication message according to session protocol, if not, performs step 309, if finish this instant messaging process.
Preferably, in this step 308, in client, according to session protocol, judgement is successfully to send described instant communication message, the GMID of described instant communication message and the CID that successfully receives this instant communication message are kept to the message queue of popping (the Outgoing Message Queue of local maintenance, OMQ), in queue, mean that this client has completed the process of transmitting to the instant communication message of current generation.
Step 309: client reports the transmission failure reporting to session management server, the CID that comprises message receiver in described transmission failure reporting.
Consider have in the group that new client adds, the existing client end client that starts to participate in session or originally participated in session in the group exits session, session management server can regenerate ICG, and re-issue LICG according to described ICG, carry out instant colony according to other clients with in this LICG of LICG energy success and communicate by letter for guaranteeing client, preferably, client is when receiving the LICG that session management server issues, according to the CID recorded in the LICG received, between the client corresponding with this CID, carry out connecting test.
Preferably, the LICG that client reconfigures to the session management server, the LICG by it with local storage compares, and determines the client that should connect, and attempts connecting with it.
The above-mentioned client that should connect of determining is in the LICG reconfigured, to have recorded but the client of the CID correspondence that do not have in the LICG of local storage.Only when this client and all equal successful connections of client that should connect, this client just disconnects in the LICG with this locality storage the connection of the client that the CID that do not have in the LICG that has and reconfigure is corresponding.If in the process connected above-mentioned, connection failure occurs, this client sends connection failure reporting to session management server.
Preferably, carried out connecting test between client corresponding to the CID in the LICG it received due to new client, therefore, the client of the CID that comprises described new client in the LICG of each client of described group Central Plains, without with described new client, carrying out connecting test.
Carry out connecting test between the described new client client corresponding with the CID recorded in LICG, specifically comprise:
The first step, new client judges whether to identify between corresponding client and to connect with N in the CID recorded in LICG, if carry out second step; If not, carry out the 3rd step.
In the above-mentioned first step, the CID recorded in the LICG that session management server sends to new client is redundancy, and the quantity that is to say the CID recorded in described LICG is greater than the necessary linking number N that this new client that session management server determines and other clients communicate.Because client corresponding to CID in the LICG that session management server can not guarantee to send to described new client all can successfully connect with described new client.
Second step, new client is deleted other CID except described N sign in LICG.
In above-mentioned second step, client is in attempting the process that the client corresponding with CID in LICG connect, can carry out record to the client of successful connection, when the quantity of the client that can successfully connect reaches the necessary linking number N that this new client that session management server determines and other clients communicate, can not reattempt the client of other CID correspondence in connection LICG.
The 3rd step, new client sends a request message to session management server, and the queued session management server is that this new client is distributed LICG again, and utilizes the LICG redistributed to carry out connecting test.
Preferably, the CID recorded in the LICG that session management server is new client distribution, arranged according to corresponding client transmissions time delay.
New client judges whether to identify between corresponding client and to connect with N in the CID recorded in LICG, specifically comprises:
New client is order from short to long according to propagation delay time, judges whether successively to identify between corresponding client and to connect with N in LICG.
Described new client is after connecting test completes, test result is sent to session management server, and session management server, according to test result, upgrades the ICG of this group, and send an acknowledgement message to this client, confirm that this new client can participate in normal session.
Embodiment tri-
For describing the scheme of the embodiment of the present application two in detail, the present embodiment be take client in the same a group shown in Fig. 8 and the annexation between each client below three be example, illustrates between client it is how to carry out instant messaging.
In the group shown in Fig. 8, each identification number that participates in the client of session is respectively A, B, C, D, E.Between each client, annexation is that ICG in session management server determines, can be for shown in Fig. 9.
Annexation as shown in Figure 9 is known:
The client that can directly communicate with customer end A is customer end B and client C;
The client that can directly communicate with customer end B is customer end A, client C and client D;
The client that can directly communicate with client C is customer end A, customer end B, client D and client E;
The client that can directly communicate with client D is customer end B, client C and client E;
The client that can directly communicate with client E is client C and client D.
Session management server is that the LICG that above-mentioned each client issues also is shown in Figure 10 (a)-Figure 10 (e).
The client of supposing to create instant communication message is customer end A, and what it was determined can be customer end B and client C with the client that communicates in this group, and described instant communication message is sent to customer end B and client C.
Customer end B is transmitted to client C and client D by described instant communication message, and client C is transmitted to client D, client E and customer end B by described instant communication message.
Now, because client C had received the instant communication message from customer end A, therefore, no longer receive the same instant communication message from customer end B; Client D can receive the same instant communication message from customer end B and client C, for fear of repeating reception, client D can receive the instant communication message (as received the instant communication message from customer end B) first arrived, the same instant communication message (as no longer received the instant communication message from client C) arrived after no longer receiving.
After client D, client E receive described instant communication message, client D and client E carry out the transmit operation of instant communication message.
Due to the forwarding operation of not carrying out before client D and client E for this instant communication message, therefore, client D sends to client C and client E(because client D is the described instant communication message obtained from customer end B described instant communication message, so client D no longer sends to customer end B).Because client C and client E have received this instant communication message, therefore, no longer forward this instant communication message.
Client E is similar by described instant communication message client sends downstream process and client D.
So far, in the group, all clients have all received described instant communication message, have realized instant colony communication process.
Embodiment tetra-
As shown in figure 11, be a kind of instant colony communication system schematic diagram of the embodiment of the present application four, described system comprises session management server 11 and at least two clients 12 that participate in session, wherein:
Session management server 11, for determining that the group participates in the CID of the client of session, connect allocation plan ICG according to described CID generating network, and be that arbitrary client generates local network connection allocation plan LICG according to described ICG, and described LICG is handed down to corresponding client, recorded the annexation between described client in described ICG, and according to described annexation, arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group, recorded the CID of other clients that can directly communicate with corresponding client in described LICG.
The client 12 of arbitrary participation session, for receiving instant communication message, and connect definite other clients that can communicate with self of allocation plan LICG according to the local network of this locality storage, and described instant communication message is sent to other definite clients;
The client 12 of described participation session, also for after receiving instant communication message, judge whether the current instant communication message received is the instant communication message received, if, no longer the current instant communication message received is sent to other clients, if not, carry out the operation that the current instant communication message received is sent to other definite clients.
Preferably, the client 12 of described participation session, also, for when successfully not sending instant communication message, report the transmission failure reporting to session management server, the CID that comprises message receiver in described transmission failure reporting;
Described session management server 11, the transmission failure reporting also reported for receiving client, and, when receiving quantity for the transmission failure reporting of same CID and reach threshold value, the client corresponding to this CID processed.
Preferably, described session management server 11, specifically for when receiving quantity for the transmission failure reporting of same CID and reach threshold value, the client corresponding to this CID sends test instruction, and do not receive in tolerable time delay that this client returns reply instruction the time, determine the session in the current group of having neither part nor lot in of this client, and regenerate ICG, and be to participate in each client configuration LICG of session in the group again according to newly-generated ICG.
In Figure 11, between session management server 11 and client, mutual (being also command) of message dots; Between client, mutual (being also transfer of data) of message means with solid line.
Preferably, described session management server 11, also for when having new client to add group or the original client of group to start to participate in session, original client in described new client or described group is participated in to the client of session in the group, and regenerate ICG, and be to participate in each client configuration LICG of session in the group again according to newly-generated ICG;
Preferably, described new client, can identify between corresponding client and connect with N in the CID recorded in LICG specifically for judging whether; If new client is deleted other CID except described N sign in LICG; If not, new client sends a request message to session management server, and the queued session management server is that this new client is distributed LICG again, and utilizes the LICG redistributed to carry out connecting test.
Preferably, described session management server 11, specifically for being the LICG that new client CID allocation is arranged according to corresponding client transmissions time delay;
Described new client, specifically for the order from short to long according to propagation delay time, judge whether successively can be corresponding with N sign in LICG client between connect.
Described client, also, for when receiving the LICG that session management server issues, according to the CID recorded in the LICG received, carry out connecting test between the client corresponding with this CID.
Embodiment five
As shown in figure 12, be the structural representation of a kind of session management server of the embodiment of the present application five, described session management server comprises: determination module 21, ICG generation module 22, LICG generation module 23 and sending module 24.
Determination module 21, participate in the CID of the client of session for determining the group.
ICG generation module 22, for according to described CID, generating ICG, recorded the annexation between described client in described ICG, and, according to described annexation, the arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group;
LICG generation module 23, for being that arbitrary client generates respectively local network and connects allocation plan LICG according to described ICG;
Sending module 24, for described LICG being handed down to the client of corresponding participation session, indicate this client to carry out instant colony according to the LICG issued with other clients in the group and communicate by letter, recorded the CID of other clients that can directly communicate with corresponding client in described LICG.
Preferably, described session management server also comprises:
Receiver module 25, the transmission failure reporting reported for receiving client, described transmission failure reporting is that this client produces when to other clients, sending the instant communication message failure, the CID that comprises message receiver;
Processing module 26, for when receiving quantity for the transmission failure reporting of same CID and reach threshold value, the client corresponding to this CID processed.
Preferably, described processing module 26, specifically for when receiving quantity for the transmission failure reporting of same CID and reach threshold value, the client corresponding to this CID sends test instruction, and do not receive in tolerable time delay that this client returns reply instruction the time, determine the session in the current group of having neither part nor lot in of this client, and trigger described determination module 21.
Preferably, described determination module 21, specifically for when there being new client to add in group or group original client while starting to participate in session, original client in described new client or described group is participated in to the client of session in the group, determine the CID of original client in described new client or described group, and trigger described ICG generation module.
Embodiment six
As shown in figure 13, be a kind of client terminal structure schematic diagram of the embodiment of the present application six, described client comprises: receiver module 31, determination module 32 and sending module 33.Wherein:
Receiver module 31, for receiving instant communication message;
Determination module 32, connect allocation plan LICG for the local network according to this locality storage and determine other clients that can communicate with self, described LICG is that session management server generates and issues according to network connection allocation plan ICG, wherein recorded the CID of other clients that can directly communicate with client, recorded the annexation between all clients that participate in session in the group at client place in described ICG, and according to described annexation, arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group,
Sending module 33, for being sent to described instant communication message other definite clients.
Preferably, described client also comprises:
Whether judge module 34, be the instant communication message received for judging the current instant communication message received, and, when the determination result is NO, trigger described determination module 32.
Preferably, described judge module 34, also for judging whether instant communication message sends successfully, when not sending successfully, trigger described sending module 33;
Described sending module 33, also for reporting the transmission failure reporting, the CID that comprises message receiver in described transmission failure reporting to session management server.
Preferably, described receiver module 31, the LICG also sent for receiving session management server;
Described client also comprises:
Test module 35, for the CID recorded according to described LICG, carry out connecting test between the client corresponding with this CID.
Preferably, described test module 35 specifically comprises:
Judging unit 42, identify between corresponding client and connect for N in the CID that judges whether to record with LICG.
Delete cells 41, for when judgment result is that of judging unit 42 is, delete other CID except described N sign in LICG.
Request unit 43, when at judging unit 42, the determination result is NO, the queued session management server is that this new client is distributed LICG again.
Preferably, described judging unit 42, specifically for the CID recorded in the LICG receiver module receives, be while being arranged according to corresponding client transmissions time delay, the order from short to long according to propagation delay time, judge whether successively can be corresponding with N sign in LICG client between connect.
Those skilled in the art should understand, the application's embodiment can be provided as method, system or computer program.Therefore, the application can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect fully.And the application can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The application describes with reference to flow chart and/or the block diagram of method, equipment (system) and computer program according to the embodiment of the present application.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computer or other programmable data processing device produce for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction be stored in this computer-readable memory produce the manufacture that comprises command device, this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device, make and carry out the sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out on computer or other programmable devices is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
Although described the application's preferred embodiment, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the application's scope.
Obviously, those skilled in the art can carry out various changes and modification and the spirit and scope that do not break away from the application to the application.Like this, if within these of the application are revised and modification belongs to the scope of the application's claim and equivalent technologies thereof, the application also is intended to comprise these changes and modification interior.

Claims (10)

1. an instant colony communication means, is characterized in that, described method comprises:
Session management server is determined the identification number CID that participates in the client of session in the group;
Session management server connects allocation plan ICG according to described CID generating network, recorded the annexation between described client in described ICG, and, according to described annexation, the arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group;
Session management server is that arbitrary client generates respectively local network connection allocation plan LICG according to described ICG, and described LICG is handed down to corresponding client, indicate this client to carry out instant colony according to the LICG issued with other clients in the group and communicate by letter, recorded the CID of other clients that can directly communicate with corresponding client in described LICG.
2. the method for claim 1, is characterized in that, described method also comprises:
Session management server receives the transmission failure reporting that client reports, and described transmission failure reporting is that this client produces when to other clients, sending the instant communication message failure, the CID that comprises message receiver;
Session management server is when receiving quantity for the transmission failure reporting of same CID and reach threshold value, and the client corresponding to this CID processed.
3. method as claimed in claim 2, is characterized in that, session management server to this CID corresponding client processed, specifically comprise:
The client that session management server is corresponding to this CID sends test instruction, and do not receive in tolerable time delay that this client returns reply instruction the time, determine the session in the current group of having neither part nor lot in of this client, and regenerate ICG, and again for each client that participates in session in the group, generate LICG according to the ICG regenerated.
4. the method for claim 1, is characterized in that, described method also comprises:
When there being new client to add in group or group original client while starting to participate in session, session management server participates in original client in described new client or described group in the client of session in the group, and regenerate ICG, and be to participate in each client configuration LICG of session in the group again according to newly-generated ICG.
5. an instant colony communication means, is characterized in that, described method comprises:
The client instant communication message;
Client connects definite other clients that can communicate with self of allocation plan LICG according to the local network of this locality storage, and described instant communication message is sent to other definite clients;
Described LICG is that session management server generates and issues according to network connection allocation plan ICG, wherein recorded the identification number CID of other clients that can directly communicate with client, recorded the annexation between all clients that participate in session in the group at client place in described ICG, and, according to described annexation, the arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group.
6. method as claimed in claim 5, is characterized in that, after receiving instant communication message, described method also comprises:
Client judges whether the current instant communication message received is the instant communication message received;
If no longer the current instant communication message received is sent to other clients;
If not, carry out the operation that the current instant communication message received is sent to other definite clients.
7. method as claimed in claim 5, is characterized in that, described method also comprises:
Client, when successfully not sending instant communication message, reports the transmission failure reporting to session management server, the CID that comprises message receiver in described transmission failure reporting.
8. method as claimed in claim 5, is characterized in that, described method also comprises:
Client, when receiving the LICG that session management server issues, according to the CID recorded in the LICG received, is carried out connecting test between the client corresponding with this CID.
9. a session management server, is characterized in that, described session management server comprises:
Determination module, participate in the identification number CID of the client of session for determining the group;
Network connects allocation plan ICG generation module, for according to described CID, generating ICG, recorded the annexation between described client in described ICG, and, according to described annexation, the arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group;
Local network connects allocation plan LICG generation module, for being that arbitrary client generates respectively local network and connects allocation plan LICG according to described ICG;
Sending module, for described LICG being handed down to the client of corresponding participation session, indicate this client to carry out instant colony according to the LICG issued with other clients in the group and communicate by letter, recorded the CID of other clients that can directly communicate with corresponding client in described LICG.
10. a client, is characterized in that, described client comprises:
Receiver module, for receiving instant communication message;
Determination module, connect allocation plan LICG for the local network according to this locality storage and determine other clients that can communicate with self, described LICG is that session management server generates and issues according to network connection allocation plan ICG, wherein recorded the identification number CID of other clients that can directly communicate with client, recorded the annexation between all clients that participate in session in the group at client place in described ICG, and according to described annexation, arbitrary client in the group all can be carried out direct or indirect communicating by letter with other clients except self in the group,
Sending module, for being sent to described instant communication message other definite clients.
CN201210154063.3A 2012-05-17 2012-05-17 instant group communication method, session management server and client Active CN103428070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210154063.3A CN103428070B (en) 2012-05-17 2012-05-17 instant group communication method, session management server and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210154063.3A CN103428070B (en) 2012-05-17 2012-05-17 instant group communication method, session management server and client

Publications (2)

Publication Number Publication Date
CN103428070A true CN103428070A (en) 2013-12-04
CN103428070B CN103428070B (en) 2016-08-03

Family

ID=49652265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210154063.3A Active CN103428070B (en) 2012-05-17 2012-05-17 instant group communication method, session management server and client

Country Status (1)

Country Link
CN (1) CN103428070B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038407A (en) * 2014-05-27 2014-09-10 小米科技有限责任公司 Instant message management method and device
CN104468541A (en) * 2014-11-27 2015-03-25 南京欣网视讯网络科技有限公司 Safety information transmission method for wireless handheld terminal
CN104717253A (en) * 2013-12-13 2015-06-17 乐视网信息技术(北京)股份有限公司 P2P node connecting method and device
CN107239328A (en) * 2016-03-29 2017-10-10 上海普兰金融服务有限公司 Method for allocating tasks and device
CN112751748A (en) * 2020-12-28 2021-05-04 百果园技术(新加坡)有限公司 Session message management method, device, server and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956386A (en) * 2005-10-26 2007-05-02 腾讯科技(深圳)有限公司 Method for set-up blogger and immediate communication of the blogger based on reciprocity mode
CN101009670A (en) * 2007-01-22 2007-08-01 阿里巴巴公司 A method and system for implementing the group communication based on the instant communication
CN101064695A (en) * 2007-05-16 2007-10-31 杭州看吧科技有限公司 P2P(Peer to Peer) safe connection method
CN101656683A (en) * 2008-08-20 2010-02-24 瞬联软件科技(北京)有限公司 Self-adaptive instant messaging system and method for implementing same
US20100146065A1 (en) * 2008-12-04 2010-06-10 Incesoft Co., Ltd. Method and apparatus for realizing instant messaging between a plurality of members in an instant messenger group

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1956386A (en) * 2005-10-26 2007-05-02 腾讯科技(深圳)有限公司 Method for set-up blogger and immediate communication of the blogger based on reciprocity mode
CN101009670A (en) * 2007-01-22 2007-08-01 阿里巴巴公司 A method and system for implementing the group communication based on the instant communication
CN101064695A (en) * 2007-05-16 2007-10-31 杭州看吧科技有限公司 P2P(Peer to Peer) safe connection method
CN101656683A (en) * 2008-08-20 2010-02-24 瞬联软件科技(北京)有限公司 Self-adaptive instant messaging system and method for implementing same
US20100146065A1 (en) * 2008-12-04 2010-06-10 Incesoft Co., Ltd. Method and apparatus for realizing instant messaging between a plurality of members in an instant messenger group

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717253A (en) * 2013-12-13 2015-06-17 乐视网信息技术(北京)股份有限公司 P2P node connecting method and device
CN104038407A (en) * 2014-05-27 2014-09-10 小米科技有限责任公司 Instant message management method and device
CN104468541A (en) * 2014-11-27 2015-03-25 南京欣网视讯网络科技有限公司 Safety information transmission method for wireless handheld terminal
CN104468541B (en) * 2014-11-27 2018-05-08 南京欣网互联网络科技有限公司 A kind of secure messaging methods of wireless handheld terminal
CN107239328A (en) * 2016-03-29 2017-10-10 上海普兰金融服务有限公司 Method for allocating tasks and device
CN112751748A (en) * 2020-12-28 2021-05-04 百果园技术(新加坡)有限公司 Session message management method, device, server and readable storage medium

Also Published As

Publication number Publication date
CN103428070B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN103428070A (en) Instant group messaging method, session management server and client side
CN104753817A (en) Local analogy method and local analogy system for cloud computing message queue service
CN101420390A (en) Internet instant communication data transmission method, apparatus and system
CN110808948B (en) Remote procedure calling method, device and system
CN108650667B (en) Terminal scheduling method and device
CN102739560A (en) Instant communication method, system thereof and device thereof
CN109391661A (en) The block chain network-building method and system of internet-of-things terminal
CN107872396A (en) Communication means, processing equipment, terminal device and server with overtime control
CN107592215A (en) A kind of method for managing message-oriented middleware
CN103200214A (en) Method and system for processing off-line messages in centralized mode
CN103563314A (en) System and method for passive communication services
CN103516587A (en) Instant communication client terminal disconnection reconnection method and device
CN100596123C (en) Gateway system and message service processing method thereof
CN114553799B (en) Multicast forwarding method, device, equipment and medium based on programmable data plane
CN104901865A (en) Mobile-end instant messaging (IM) signal synchronization method based on global monotonic serial number
CN103167441A (en) Short message issuing method, device and system
CN102056095B (en) Method, system and device for controlling short message transmitting flow rate
WO2024032094A1 (en) Instant messaging system and method
CN101001213B (en) Short message transmission system and method
CN101695049A (en) Method and device for processing businesses in monitoring system
CN103312753A (en) Communication method and device of Internet of things
CN115865334A (en) Quantum key distribution method and device and electronic equipment
CN105188087A (en) Business communication method and system based on short message gateway
CN102769830A (en) Multicast message sending method, multicast message sending device and network device
CN101860544A (en) Transmitting system and method of session initiation protocol message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant