CN103428070B - instant group communication method, session management server and client - Google Patents

instant group communication method, session management server and client Download PDF

Info

Publication number
CN103428070B
CN103428070B CN201210154063.3A CN201210154063A CN103428070B CN 103428070 B CN103428070 B CN 103428070B CN 201210154063 A CN201210154063 A CN 201210154063A CN 103428070 B CN103428070 B CN 103428070B
Authority
CN
China
Prior art keywords
client
group
management server
session management
licg
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210154063.3A
Other languages
Chinese (zh)
Other versions
CN103428070A (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

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

nullThis application provides a kind of instant group communication method、Session management server and client,Main contents are: client is after receiving instant communication message,The client that can directly communicate in same a group sends described instant communication message,In this group, other clients are performed both by the identical client that can directly communicate in same a group and send the operation of described instant communication message,Make in this group except all clients all can receive described instant communication message,And then session management server monitored and forwards the function of instant communication message to be successfully transferred in group in each client,Each client all undertakes part and monitors and forward instant communication message function,So session management server need not carry out the monitoring of instant communication message again and forward operation,Largely decrease session management server and need data volume to be processed.

Description

Instant group communication method, session management server and client
Technical field
The application relates to network communication field, particularly relates to a kind of instant group communication method, session management server and client.
Background technology
Instant group communication refers to that multiple client, with the Internet as medium, transmits mutually with instant communication mode or share the communication mode of text message, Multimedia Message.
Instant group communication is to be realized by user terminal/server framework as shown in Figure 1, in this framework, session management server (ContentManagementSystem, CMS) it is connected with the foundation of each client respectively, complete client is logged in by instant messaging authentication, receive from the information of client and forward that information to the functions such as other clients, it is achieved the instant group communication between other clients in a certain client and its place group.
As a example by the framework shown in Fig. 1, it is assumed that customer end A to client E is belonging to the client in same a group, the process that customer end A other clients in group send instant communication message is as follows:
The first step: customer end A sends instant communication message to session management server, wherein carries the group identification of customer end A place group and the mark of customer end A.
Second step: session management server, according to the group identification received, determines each client comprised in the group of correspondence.
3rd step: session management server, according to the mark of the customer end A initiating instant communication message, each client comprised, determines the client needing to receive this instant communication message in the group determined, i.e. customer end B is to client E.
In this step, session management server using the client of other in addition to customer end A in group as need receive instant communication message client.
4th step: instant communication message is transmitted to customer end B to client E by session management server, it is achieved that customer end A and with the instant group communication between other clients in a group.
nullIn above-mentioned instant group communication mode,Session management server not only needs the transmission being controlled instruction with the client in group (such as to log in authentication、Whether there is client off-line in Qun or have new client to log in),The instant communication message also needing to send the client connected is monitored,And other clients that instant communication message is transmitted in group,Owing to session management server needs to be controlled in real time instruction and the transmitting-receiving of instant communication message between client,The data volume that session management server need to process is big,Particularly in the peak period of instant group communication business,The data volume that session management server reality need to process is the hugest,This will cause the performance of session management server to be a greater impact,Possibly even cannot meet business demand the peak period in instant group communication business,Business demand can only be met by the scale increasing session management server group.
Summary of the invention
The purpose of the embodiment of the present application is, it is provided that a kind of instant group communication method, session management server and client, to solve the problem that in prior art, the data processing amount of session management server is excessive.
A kind of instant group communication method, described method includes:
Session management server determines the CID of the client participating in session in group;
Session management server generates network according to described CID and connects configuration figure ICG, described ICG have recorded the annexation between described client, and according to described annexation, any client in group all can carry out direct or indirect communication with other clients in addition to self in group;
Session management server is that any client generates local network connection configuration figure LICG respectively according to described ICG, and described LICG is handed down to corresponding client, indicate this client to carry out instant group communication according to the LICG issued with other clients in group, described LICG have recorded the CID of other clients that directly can communicate with corresponding client.
A kind of instant group communication method, described method includes:
Client receives instant communication message;
Client connects configuration figure LICG according to locally stored local network and determines other clients that can communicate with self, and sends described instant communication message to other clients determined;
Described LICG is that session management server generates according to network connection configuration figure ICG and issues, wherein have recorded the identification number CID of other clients that directly can communicate with client, described ICG have recorded the annexation between all clients participating in session in the group at client place, and according to described annexation, any client in group all can carry out direct or indirect communication with other clients in addition to self in group.
A kind of session management server, described session management server includes:
Determine module, for determining the CID of the client participating in session in group;
Network connects configuration figure ICG generation module, for generating ICG according to described CID, have recorded the annexation between described client in described ICG, and according to described annexation, any client in group all can carry out direct or indirect communication with other clients in addition to self in group;
Local network connects configuration figure LICG generation module, and being used for according to described ICG is that any client generates local network connection configuration figure LICG respectively;
Sending module, for described LICG is handed down to participate in accordingly the client of session,, indicate this client to carry out instant group communication according to the LICG issued with other clients in group, described LICG have recorded the CID of other clients that directly can communicate with corresponding client.
A kind of client, described client includes:
Receiver module, is used for receiving instant communication message;
Determine module, other clients that can communicate are determined with self for connecting configuration figure LICG according to locally stored local network, described LICG is that session management server generates according to network connection configuration figure ICG and issues, wherein have recorded the CID of other clients that directly can communicate with client, described ICG have recorded the annexation between all clients participating in session in the group at client place, and according to described annexation, any client in group all can carry out direct or indirect communication with other clients in addition to self in group;
Sending module, for sending described instant communication message to other clients determined.
In the scheme of the embodiment of the present application, client is after receiving instant communication message, the client that can directly communicate in same a group sends described instant communication message, in this group, other clients are performed both by the identical client that can directly communicate in same a group and send the operation of described instant communication message, make in this group except all clients all can receive described instant communication message, and then session management server monitored and forwards the function of instant communication message to be successfully transferred in group in each client, each client all undertakes part and monitors and forward instant communication message function, so session management server need not carry out the monitoring of instant communication message again and forward operation, session management server is greatly reduced and needs data volume to be processed.
Accompanying drawing explanation
Fig. 1 is instant group communication system architecture schematic diagram in background technology;
Fig. 2 is instant group communication method 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 configuration figure schematic diagram;
Fig. 4 is that the network that in the embodiment of the present application one, session management server utilizes binary tree algorithm to generate connects configuration figure schematic diagram;
Fig. 5 (a)-Fig. 5 (l) is that in the embodiment of the present application one, session management server is that in group, the local network of each client configuration connects configuration figure schematic diagram;
Fig. 6 is that the local network that the embodiment of the present application one session management server regenerates connects configuration figure schematic diagram;
Fig. 7 is instant group communication method schematic diagram in the embodiment of the present application two;
Fig. 8 is the instant group communication method 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 configuration figure schematic diagram;
Figure 10 (a)-Figure 10 (e) is that in the embodiment of the present application three, session management server is the local network connection configuration figure schematic diagram of 5 client configurations;
Figure 11 is instant group communication system schematic in the embodiment of the present application four;
Figure 12 is the structural representation of session management server in the embodiment of the present application five;
Figure 13 is the structural representation of client in the embodiment of the present application six.
Detailed description of the invention
nullFor realizing the purpose of the application,The embodiment of the present application proposes a kind of instant group communication scheme,Client is after receiving instant communication message,The client that can directly communicate in same a group sends described instant communication message,In this group, other clients are performed both by the identical client that can directly communicate in same a group and send the operation of described instant communication message,Make in this group except all clients all can receive described instant communication message,And then session management server monitored and forwards the function of instant communication message to be successfully transferred in group in each client,Each client all undertakes part and monitors and forward instant communication message function,Make session management server need not carry out the monitoring of instant communication message again and forward operation,Decrease session management server and need data volume to be processed,It is effectively reduced session management server data processing load,Avoid the problem that performance that is that cause cannot meet business demand because the data volume of process is big.
Statistical confirmation to a large amount of instant group communication, single member Annual distribution ratio of activity in colony's session is sparse;Most of group members in Qun most of periods of colony's session be in only receive instant communication message and do not produce the state of instant communication message;For the instant colony session with Internet chat as principal mode, average group member number is between 50-200, the ageing requirement that other people instant message is arrived by member immediately is the highest, reaction and response time to the instant message that other people send, for network delay, there is the difference of the order of magnitude.
The scheme of the embodiment of the present application utilizes the features described above of instant group communication just, by the way of mutually forwarding message between the client participating in colony's session, realizes the communication between colony.Although this communication mode can produce network delay, but because of ageing less demanding to the instant communication message that other people send of the member in group, therefore instant group communication will not be produced considerable influence.It is to say, in the application by client forward instant communication message realize instant group communication by the way of be meet instant group communication to receive and send instant communication message ageing requirement.
It should be noted that, in this application, when describing computer local operation, client refers to run on the local computer, control computer hardware in the way of protocol conventions with the software of session management server communication, when describing the relation with server, client is also the computer physical entity running corresponding software.
The scheme of the application is described in detail below in conjunction with specific embodiment.
Embodiment one
As in figure 2 it is shown, it is instant group communication method schematic diagram in the embodiment of the present application one, described method includes:
Step 201: session management server determines the identification number (ClientIDentity, CID) of the client participating in session in group.
One unique group identification number (ID) of each group of distribution that it can be serviced by session manager, and for each group, determine that the CID of the client participating in session in this group, described CID have recorded the information that can uniquely identify this client, such as the information such as IP address of numbering and client.
When the CID of described client is the login of this client, send to session management server.
Step 202: session management server generates network according to described CID and connects configuration figure (InternetConfigurationGraph, ICG), described ICG have recorded the annexation between described client, and according to described annexation, any client in group all can carry out direct or indirect communication with other clients in addition to self in group.
The CID of 12 clients assuming session management server to determine in group to participate in session is respectively A, B, C, D, E, F, G, H, I, J, K, L, the ICG then generated can be as it is shown on figure 3, any client that annexation in visible Fig. 3 ensure that in group all can carry out direct or indirect communication with other clients in addition to self in group.
Wherein, generate ICG can difference according to demand and use different generating modes, such as generate according to the connection quantity etc. of the network condition residing for the quantity of client, each client and setting, the application does not limit concrete generating mode, meets any client in group and all can carry out direct or indirect communication with other clients in addition to self in group according to the annexation in the ICG generated.For example, it is possible to utilize the algorithm generating binary tree in data structure techniques to generate ICG, as a example by above-mentioned 12 clients, then the binary tree generated can be as shown in Figure 4.
Preferably, the IP address that session management server can report to it when logging according to client, according to locally stored IP geographical information library, determine the geographical position of the client using this IP address, and generating ICG according to the IP geographical position that determines so that the client in group can be the shortest with what other clients except self in addition in group carried out that direct or indirect communication used according to this ICG.
Step 203: session management server is that any client generates local network connection configuration figure LICG respectively according to described ICG, and described LICG is handed down to corresponding client.
Still as a example by the ICG in figure 4 above, in this step 203, session management server is that LICG that 12 clients generate respectively can be as shown in Fig. 5 (a)-Fig. 5 (l).
Step 204: session management server indicates this client to carry out instant group communication according to the LICG issued with other clients in group, have recorded the CID of other clients that directly can communicate with corresponding client in described LICG.
In the scheme of the embodiment of the present application one, owing to session management server is that the client in group has issued LICG, client in Qun can be all that the LICG self issued communicates with other clients according to session management server, and then make arbitrary instant communication message that in group, any client client receiving in this group that all energy is direct or indirect produces, namely the method for the present embodiment one had both achieved instant group communication, decrease again instant communication message being monitored and forwarding brought resource consumption of session management server simultaneously.
In view of when carrying out instant group communication, the transmittance process of the instant communication message between client may cause instant communication message to be lost in transmittance process because network condition is the best, it is not sent to corresponding client, or owing to there being client to exit colony's session, this client exiting session cannot carry out the reception of message and forward operation, it is possible to some client that instant communication message can not be sent in group can be caused, therefore, preferably, session management server receives the transmission failure reporting that client reports, described transmission failure reporting is that this client produces when sending instant communication message failure to other clients, comprise the CID of message receiver.
The client that this CID is corresponding, when receiving the quantity sending failure reporting for same CID and reaching threshold value, is processed by session management server.
Described the client that CID is corresponding is processed, can be directly to determine that this client has exited colony's session, and regenerate ICG, and again generate LICG for group participates in each client of session according to the ICG regenerated.
Preferably, the client that this CID is corresponding is processed by session management server, specifically includes:
Session management server sends test instruction to client corresponding for this CID, and when being not received by the response instruction of this client return in tolerable time delay, determine that this client currently has neither part nor lot in the session in group, and regenerate ICG, and according to the ICG regenerated again for group participates in each client generation LICG of session.
Preferably, session management server is after the client in group redistributes LICG, the LICG that before can comparing, client is old is the most identical with the LICG redistributed, for the client that LICG is different, the LICG redistributed is sent to client by session management server, it is desirable to client updates LICG;For the client that LICG is identical, session management server may not request client to carry out the renewal of LICG.
In view of when have new client to add in group or group, original client begins participating in session time, add in group or group that in original client and this group, other participate in the annexation between the client of sessions owing to original ICG not recording described new client, cannot be that it distributes LICG according to original ICG, also result in and can not carry out instant messaging with other clients in the group at its place, therefore preferably, when when there being new client to add, in group or group, original client begins participating in session, session management server using original client in described new client or described group as the client participating in session in group, and regenerate ICG, and according to newly-generated ICG again for group participates in each client configuration LICG of session.
On the basis of figure 4 above, if there being new client M to begin participating in session, the ICG that now session management server regenerates can be for shown in Fig. 6.
Embodiment two
As it is shown in fig. 7, it is instant group communication method in the embodiment of the present application two, described method includes:
Step 301: client receives instant communication message.
Described instant communication message can be that user inputs this client, it is also possible to is that other clients are sent to described client.
Preferably, described instant communication message carry according to the local message identification number (LocalMessageIdentity generated when creating this message, LMID) the global message identification number (GlobalMessageIdentity, GMID) that the CID with the client creating this message generates.
Step 302: according to session protocol, client judges whether the instant communication message being currently received is the instant communication message received, the most then perform step 303;If it is not, then perform step 304.
In this step 302, according to comparative result, client can judge whether the instant communication message being currently received is the instant communication message received by being compared with the locally stored instant communication message received by the instant communication message being currently received.
Preferably, client can be by the GMID carried in instant communication message, judge the stacked message queue (IncomingMessageQueue of local maintenance, IMQ) the most there is the mode of described GMID in judge that this locality had received this instant communication message the most, described IMQ have recorded the GMID of the instant communication message having been received by and the CID of the source client of this instant communication message.
Step 303: the instant communication message being currently received no longer is sent to other clients by client, abandons described instant communication message, terminates this instant group communication process.
It should be noted that the preferred version that step 302 and step 303 are the present embodiment two repeats to receive the number of times of a certain instant communication message in order to reduce client as far as possible.
Step 304: client stores described instant communication message.
In above-mentioned steps 302, when judged result was for receiving this instant communication message, it is not limited to abandon these a kind for the treatment of measures of described instant communication message, can also take to judge whether this instant communication message the most forwarded over, if not having forwarded over, then perform step 304, if the most forwarded over, the most no longer forward this instant communication message, can avoid between same instant communication message client in group by undying forwarding.
In order to ensure that the instant communication message that client sends can arrive all clients in group, session management server be each client distribution LICG summation be often redundancy, may result in the situation occurring that client repeats to receive same instant communication message, in step 302, whether the instant communication message received can be repeated the judgement receiving and whether repeating to forward, and take corresponding measure, and then avoid the situation repeating to receive, forward same instant communication message.
It is preferred operations that this step 304 stores the operation of described instant communication message, the scheme of the embodiment of the present application can not also store described instant communication message, and only store the GMID and the CID of this instant communication message sender of described instant communication message, and these information are placed in the IMQ queue of local maintenance.
It should be noted that, step 304 is the preferred version of the present embodiment two, purpose is to utilize the GMID of the instant communication message stored and sending the CID of this instant communication message, when next time performs step 302 in order to judge whether the instant communication message received is the instant communication message repeating to receive every time, it is to avoid repeat to receive, forward instant communication message.
Step 305: client reads the content of described instant communication message, shows it at local output interface.
Step 306: client connects configuration figure LICG according to locally stored local network and determines other clients that can communicate with self.
Described LICG is that session management server generates according to network connection configuration figure ICG and issues, wherein have recorded the CID of other clients that directly can communicate with client, described ICG have recorded the annexation between all clients participating in session in the group at client place, and according to described annexation, any client in group all can carry out direct or indirect communication with other clients in addition to self in group.
Step 307: described instant communication message is sent to other clients determined by client.
Preferably, in this step 307, the CID of self is carried in described instant communication message by client, and the instant communication message carrying self CID is sent, so that other clients receiving described instant communication message can be according to the CID carried in described instant communication message in this group, determine that client corresponding for this CID has been received that described instant communication message, no longer described instant communication message is transmitted to client corresponding to this CID.
Step 308: client judges whether to be successfully transmitted described instant communication message according to session protocol, if it is not, then perform step 309, the most then terminates this instant messaging process.
Preferably, in this step 308, judge it is to be successfully transmitted described instant communication message in client according to session protocol, by the GMID of described instant communication message and be properly received the CID of this instant communication message and be saved in the message queue (OutgoingMessageQueue that pops of local maintenance, OMQ), in queue, represent that this client has completed the transmission process to the instant communication message being currently generated.
Step 309: client reports transmission failure reporting to session management server, comprises the CID of message receiver in described transmission failure reporting.
The client beginning participating in session or original participation session in view of the existing client end when there being new client to add in group, in group exits session, session management server can regenerate ICG, and re-issue LICG according to described ICG, for guaranteeing that client other clients successfully and in this LICG can carry out instant group communication according to LICG, preferably, client is when receiving the LICG that session management server issues, according to the CID of record in the LICG received, between the client corresponding with this CID, it is attached test.
Preferably, client receives the LICG that session management server reconfigures, and it is compared with locally stored LICG, determines the client that should set up connection, and attempts setting up connection therewith.
The above-mentioned client that should set up connection determined is to have recorded in the LICG reconfigured but No. CID corresponding client not having in locally stored LICG.Only when this client with all should set up the client being connected be all connected with successfully time, this client just disconnects the connection of the client corresponding for CID not having in the LICG reconfigured with having in locally stored LICG.If during above-mentioned foundation connects, connection failure occurs, then this client sends connection failure reporting to session management server.
Preferably, owing to new client has carried out connecting test between the client corresponding for CID in its LICG received, therefore, the LICG of each client in described group Central Plains comprises the client of the CID of described new client, it is not necessary to be attached test with described new client.
Described new client with LICG is attached between corresponding for the CID client of record test, specifically include:
The first step, new client judges whether to set up connection between the client corresponding with the N number of mark in the CID of record in LICG, the most then performs second step;If it is not, then perform the 3rd step.
In the above-mentioned first step, the CID that session management server records in the LICG that new client sends is redundancy, say, that the necessary linking number N that in described LICG, the quantity of the CID of record communicates with other clients more than this new client that session management server determines.Because session management server is it cannot be guaranteed that all can be successfully established with described new client to the client corresponding for CID in the LICG of described new client transmission and be connected.
Second step, other CID in addition to described N number of mark in LICG are deleted by new client.
In above-mentioned second step, client is during attempting the client foundation connection corresponding with the CID in LICG, the client of successful connection can be carried out record, when the quantity of client of connection can be successfully established reaches the necessary linking number N that this new client that session management server determines communicates with other clients, can be no longer attempt to connect other No. CID corresponding client in LICG.
3rd step, new client sends request message to session management server, and queued session management server is that this new client distributes LICG again, and utilizes the LICG redistributed to perform connecting test.
Preferably, session management server is the CID recorded in the LICG of new client distribution, is to carry out arranging according to corresponding client transmissions time delay.
New client judges whether to set up between the client that energy is corresponding with the N number of mark in the CID of record in LICG to connect, and specifically includes:
New client according to propagation delay time order from short to long, judge whether successively can be corresponding with the N number of mark in LICG client between set up connection.
Described new client is after connecting test completes, test result is sent to session management server, and session management server, according to test result, updates the ICG of this group, and send an acknowledgement message to this client, confirm that this new client can participate in normal session.
Embodiment three
For describing the scheme of the embodiment of the present application two in detail, as a example by the annexation between the present embodiment less than three client and each client in the same a group shown in Fig. 8, illustrate it is how to carry out instant messaging between client.
In the group shown in Fig. 8, the identification number of each client participating in session is respectively A, B, C, D, E.Between each client, annexation is to be determined by the ICG in session management server, can be for shown in Fig. 9.
Annexation as shown in Figure 9 understands:
The client that directly can communicate with customer end A is customer end B and client C;
The client that directly can communicate with customer end B is customer end A, client C and client D;
The client that directly can communicate with client C is customer end A, customer end B, client D and client E;
The client that directly can communicate with client D is customer end B, client C and client E;
The client that directly can 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).
Assume that the client creating instant communication message is customer end A, then what it 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.
Described instant communication message is transmitted to client C and client D by customer end B, and described instant communication message is transmitted to client D, client E and customer end B by client C.
Now, received the instant communication message from customer end A due to client C, therefore, no longer received 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, in order to avoid repeating to receive, 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 transmission operation of instant communication message.
Owing to being not carried out operating for the forwarding of this instant communication message before client D and client E, therefore, client D described instant communication message is sent to client C and client E(due to client D be the described instant communication message obtained at customer end B, therefore client D no longer to customer end B send).Owing to client C and client E have received this instant communication message, therefore, no longer forward this instant communication message.
The process that described instant communication message downstream client is sent by client E is similar with client D.
So far, in group, all clients have received described instant communication message, it is achieved that instant group communication process.
Embodiment four
As shown in figure 11, for a kind of instant group communication system schematic of the embodiment of the present application four, described system includes that session management server 11 and at least two participate in the client 12 of session, wherein:
Session management server 11, for determining the CID of the client participating in session in group, generate network according to described CID and connect configuration figure ICG, and according to described ICG be any client generate local network connect configuration figure LICG, and described LICG is handed down to corresponding client, described ICG have recorded the annexation between described client, and according to described annexation, any client in Qun all can carry out direct or indirect communication with other clients in addition to self in group, described LICG have recorded the CID of other clients that directly can communicate with corresponding client.
The client 12 of arbitrary participation session, is used for receiving instant communication message, and determines, according to locally stored local network connection configuration figure LICG, other clients that can communicate with self, and send described instant communication message to other clients determined;
The client 12 of described participation session, it is additionally operable to after receiving instant communication message, judge whether the instant communication message being currently received is the instant communication message received, if, the most no longer the instant communication message being currently received is sent to other clients, if it is not, then perform the instant communication message being currently received is sent the operation to other clients determined.
Preferably, the client 12 of described participation session, it is additionally operable to when not being successfully transmitted instant communication message, reports transmission failure reporting to session management server, described transmission failure reporting comprises the CID of message receiver;
Described session management server 11, is additionally operable to receive the transmission failure reporting that client reports, and when receiving the quantity sending failure reporting for same CID and reaching threshold value, processes the client that this CID is corresponding.
Preferably, described session management server 11, specifically for when receiving the quantity sending failure reporting for same CID and reaching threshold value, client corresponding for this CID is sent test instruction, and when being not received by the response instruction of this client return in tolerable time delay, determine that this client currently has neither part nor lot in the session in group, and regenerate ICG, and according to newly-generated ICG again for group participates in each client configuration LICG of session.
In fig. 11, between session management server 11 and client, mutual (namely the instruction transmission) of message is represented by dashed line;Between client, mutual (namely the data transmission) of message is indicated by the solid line.
Preferably, described session management server 11, be additionally operable to have new client to add in group or group, original client begins participating in session time, using original client in described new client or described group as the client participating in session in group, and regenerate ICG, and according to newly-generated ICG again for group participates in each client configuration LICG of session;
Preferably, described new client, specifically for judging whether to set up connection between the client corresponding with the N number of mark in the CID of record in LICG;The most then other CID in addition to described N number of mark in LICG are deleted by new client;If it is not, then new client sends request message to session management server, queued session management server is that this new client distributes LICG again, and utilizes the LICG redistributed to perform connecting test.
Preferably, described session management server 11, specifically for the LICG arranged according to corresponding client transmissions time delay for new client distribution CID;
Described new client, specifically for according to propagation delay time order from short to long, judge whether successively can be corresponding with the N number of mark in LICG client between set up connection.
Described client, is additionally operable to when receiving the LICG that session management server issues, and according to the CID of record in the LICG received, is attached test between the client corresponding with this CID.
Embodiment five
As shown in figure 12, for the structural representation of a kind of session management server of the embodiment of the present application five, described session management server comprises determining that module 21, ICG generation module 22, LICG generation module 23 and sending module 24.
Determine module 21, for determining the CID of the client participating in session in group.
ICG generation module 22, for generating ICG according to described CID, have recorded the annexation between described client in described ICG, and according to described annexation, any client in group all can carry out direct or indirect communication with other clients in addition to self in group;
LICG generation module 23, being used for according to described ICG is that any client generates local network connection configuration figure LICG respectively;
Sending module 24, for described LICG is handed down to participate in accordingly the client of session,, indicate this client to carry out instant group communication according to the LICG issued with other clients in group, described LICG have recorded the CID of other clients that directly can communicate with corresponding client.
Preferably, described session management server also includes:
Receiver module 25, for receiving the transmission failure reporting that client reports, described transmission failure reporting is that this client produces when sending instant communication message failure to other clients, comprises the CID of message receiver;
Processing module 26, for when receiving the quantity sending failure reporting for same CID and reaching threshold value, processing the client that this CID is corresponding.
Preferably, described processing module 26, specifically for when receiving the quantity sending failure reporting for same CID and reaching threshold value, client corresponding for this CID is sent test instruction, and when being not received by the response instruction of this client return in tolerable time delay, determine that this client currently has neither part nor lot in the session in group, and trigger and described determine module 21.
Preferably, described determine module 21, specifically for when have new client to add in group or group, original client begins participating in session time, using original client in described new client or described group as the client participating in session in 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, for a kind of client terminal structure schematic diagram of the embodiment of the present application six, described client includes: receiver module 31, determine module 32 and sending module 33.Wherein:
Receiver module 31, is used for receiving instant communication message;
Determine module 32, other clients that can communicate are determined with self for connecting configuration figure LICG according to locally stored local network, described LICG is that session management server generates according to network connection configuration figure ICG and issues, wherein have recorded the CID of other clients that directly can communicate with client, described ICG have recorded the annexation between all clients participating in session in the group at client place, and according to described annexation, any client in group all can carry out direct or indirect communication with other clients in addition to self in group;
Sending module 33, for sending described instant communication message to other clients determined.
Preferably, described client also includes:
Judge module 34, for judging whether the instant communication message that is currently received is the instant communication message received, and when judged result is no, triggers and described determines module 32.
Preferably, described judge module 34, it is additionally operable to judge whether instant communication message sends successfully, when not sending successful, triggers described sending module 33;
Described sending module 33, is additionally operable to report transmission failure reporting to session management server, comprises the CID of message receiver in described transmission failure reporting.
Preferably, described receiver module 31, it is additionally operable to receive the LICG that session management server sends;
Described client also includes:
Test module 35, for according to the CID of record in described LICG, being attached test between the client corresponding with this CID.
Preferably, described test module 35 specifically includes:
Judging unit 42, connects for judging whether to set up between the client that energy is corresponding with the N number of mark in the CID of record in LICG.
Delete unit 41, for when the judged result of judging unit 42 is for being, other CID in addition to described N number of mark in LICG are deleted.
Request unit 43, for when the judged result of judging unit 42 is no, queued session management server is that this new client distributes LICG again.
Preferably, described judging unit 42, when being to arrange according to corresponding client transmissions time delay specifically for the CID of record in the LICG that receiver module receives, according to propagation delay time order from short to long, judge whether successively to set up connection between the client corresponding with the N number of mark in LICG.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or computer program.Therefore, the form of the embodiment in terms of the application can use complete hardware embodiment, complete software implementation or combine software and hardware.And, the application can use the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The application is with reference to describing according to method, equipment (system) and the flow chart of computer program and/or the block diagram of the embodiment of the present application.It should be understood that can be by the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces the manufacture including command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to perform sequence of operations step on computer or other programmable devices to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides the step of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame for realization.
Although having been described for the preferred embodiment of the application, but those skilled in the art once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the application scope.
Obviously, those skilled in the art can carry out various change and modification without deviating from spirit and scope to the application.So, if these amendments of the application and modification belong within the scope of the application claim and equivalent technologies thereof, then the application is also intended to comprise these change and modification.

Claims (10)

1. an instant group communication method, it is characterised in that described method includes:
Session management server determines the identification number CID of the client participating in session in group;
Session management server generates network according to described CID and connects configuration figure ICG, described ICG have recorded the annexation between described client, and according to described annexation, any client in Qun all can carry out direct or indirect communication with other clients in addition to self in group, and described ICG is that session management server generates according to the IP geographical position of client;
Session management server is that any client generates local network connection configuration figure LICG respectively according to described ICG, and described LICG is handed down to corresponding client, indicate this client to carry out instant group communication according to the LICG issued with other clients in group, described LICG have recorded the CID of other clients that directly can communicate with corresponding client.
2. the method for claim 1, it is characterised in that described method also includes:
Session management server receives the transmission failure reporting that client reports, and described transmission failure reporting is that this client produces when sending instant communication message failure to other clients, comprises the CID of message receiver;
The client that this CID is corresponding, when receiving the quantity sending failure reporting for same CID and reaching threshold value, is processed by session management server.
3. method as claimed in claim 2, it is characterised in that the client that this CID is corresponding is processed by session management server, specifically includes:
Session management server sends test instruction to client corresponding for this CID, and when being not received by the response instruction of this client return in tolerable time delay, determine that this client currently has neither part nor lot in the session in group, and regenerate ICG, and according to the ICG regenerated again for group participates in each client generation LICG of session.
4. the method for claim 1, it is characterised in that described method also includes:
When there being new client to add, in group or group, original client begins participating in session, session management server using original client in described new client or described group as the client participating in session in group, and regenerate ICG, and according to newly-generated ICG again for group participates in each client configuration LICG of session.
5. an instant group communication method, it is characterised in that described method includes:
Client receives instant communication message;
Client connects configuration figure LICG according to locally stored local network and determines other clients that can communicate with self, and sends described instant communication message to other clients determined;
Described LICG is that session management server generates according to network connection configuration figure ICG and issues, wherein have recorded the identification number CID of other clients that directly can communicate with client, described ICG have recorded the annexation between all clients participating in session in the group at client place, and according to described annexation, any client in Qun all can carry out direct or indirect communication with other clients in addition to self in group, and described ICG is that session management server generates according to the IP geographical position of client.
6. method as claimed in claim 5, it is characterised in that after receiving instant communication message, described method also includes:
Client judges whether the instant communication message being currently received is the instant communication message received;
The most no longer the instant communication message being currently received is sent to other clients;
If it is not, perform the instant communication message being currently received is sent the operation to other clients determined.
7. method as claimed in claim 5, it is characterised in that described method also includes:
Client, when not being successfully transmitted instant communication message, reports transmission failure reporting to session management server, comprises the CID of message receiver in described transmission failure reporting.
8. method as claimed in claim 5, it is characterised in that described method also includes:
Client, when receiving the LICG that session management server issues, according to the CID of record in the LICG received, is attached test between the client corresponding with this CID.
9. a session management server, it is characterised in that described session management server includes:
Determine module, for determining the identification number CID of the client participating in session in group;
Network connects configuration figure ICG generation module, for generating ICG according to described CID, described ICG have recorded the annexation between described client, and according to described annexation, any client in Qun all can carry out direct or indirect communication with other clients in addition to self in group, and described ICG is that session management server generates according to the IP geographical position of client;
Local network connects configuration figure LICG generation module, and being used for according to described ICG is that any client generates local network connection configuration figure LICG respectively;
Sending module, for described LICG is handed down to participate in accordingly the client of session, indicate this client to carry out instant group communication according to the LICG issued with other clients in group, described LICG have recorded the CID of other clients that directly can communicate with corresponding client.
10. a client, it is characterised in that described client includes:
Receiver module, is used for receiving instant communication message;
Determine module, other clients that can communicate are determined with self for connecting configuration figure LICG according to locally stored local network, described LICG is that session management server generates according to network connection configuration figure ICG and issues, wherein have recorded the identification number CID of other clients that directly can communicate with client, described ICG have recorded the annexation between all clients participating in session in the group at client place, and according to described annexation, any client in Qun all can carry out direct or indirect communication with other clients in addition to self in group, described ICG is that session management server generates according to the IP geographical position of client;
Sending module, for sending described instant communication message to other clients determined.
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 CN103428070A (en) 2013-12-04
CN103428070B true 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)

Families Citing this family (5)

* 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
CN104468541B (en) * 2014-11-27 2018-05-08 南京欣网互联网络科技有限公司 A kind of secure messaging methods of wireless handheld terminal
CN107239328B (en) * 2016-03-29 2020-06-09 上海普兰金融服务有限公司 Task allocation method and device
CN112751748B (en) * 2020-12-28 2023-04-18 百果园技术(新加坡)有限公司 Session message management method, device, server and readable storage medium

Citations (4)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753475B (en) * 2008-12-04 2015-02-25 上海智臻网络科技有限公司 Method and device for realizing real-time communication among a plurality of members in real-time communication group

Patent Citations (4)

* 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

Also Published As

Publication number Publication date
CN103428070A (en) 2013-12-04

Similar Documents

Publication Publication Date Title
CN106850188B (en) A kind of data transmission system based on multichannel isomery one-way transmission path
CN103428070B (en) instant group communication method, session management server and client
CN105704166B (en) Robot system, realization method thereof, client, server and game system
CN110809054B (en) Data transmission method, device, equipment and storage medium
CN103795762A (en) Reverse agent test system and method
US20190320009A1 (en) End-to-end file transmission method and system thereof
CN106254377A (en) Support soft load-balancing method and the system of the connection of magnanimity length
CN107592215A (en) A kind of method for managing message-oriented middleware
CN103516587A (en) Instant communication client terminal disconnection reconnection method and device
CN109728981A (en) A kind of cloud platform fault monitoring method and device
CN103200214A (en) Method and system for processing off-line messages in centralized mode
CN108156040A (en) A kind of central control node in distribution cloud storage system
WO2012159537A1 (en) Instant messaging system and method for sharing user information
WO2024032094A1 (en) Instant messaging system and method
CN109194729A (en) A kind of information communication system and method
WO2012159535A1 (en) Instant messaging system and method for sharing user information
CN108712247A (en) Server account cipher management method, system and server
CN108600004B (en) Video server configuration management method and system
CN109688011B (en) Agent selection method and device based on OpenStack
CN105721274A (en) Method and device for integrating variety of instant messaging
CN104243473A (en) Data transmission method and device
CN102769830A (en) Multicast message sending method, multicast message sending device and network device
Zhang et al. Pangolin: speeding up concurrent messaging for cloud-based social gaming
CN103795507A (en) Instruction timeout retransmission method and instruction timeout retransmission system of EPON system
JP3727466B2 (en) Network evaluation method, apparatus for implementing the same, and medium on which processing program is recorded

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