CN104735076A - Grouping aggregation method, client-side and server - Google Patents

Grouping aggregation method, client-side and server Download PDF

Info

Publication number
CN104735076A
CN104735076A CN201510150354.9A CN201510150354A CN104735076A CN 104735076 A CN104735076 A CN 104735076A CN 201510150354 A CN201510150354 A CN 201510150354A CN 104735076 A CN104735076 A CN 104735076A
Authority
CN
China
Prior art keywords
information
group
request message
user
server
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.)
Pending
Application number
CN201510150354.9A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510150354.9A priority Critical patent/CN104735076A/en
Publication of CN104735076A publication Critical patent/CN104735076A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a grouping aggregation method, a client-side and a server, wherein the method is applied to the client-side. The method comprises the steps of receiving first operation; responding to the first operation, and generating first information and personal authority information which corresponds to the first information, wherein the first information and the personal authority information are used for joining or quitting a first group; packaging the first information and the personal authority information into a first request message, wherein the first request message is in a message type of being sent periodically for satisfying preset strategy; sending the first request message for requesting to joint or quit the first group.

Description

A kind of packet aggregation method, client and server
Technical field
The present invention relates to network communication technology field, particularly relate to a kind of packet aggregation method, client and server.
Background technology
In the application scenarios of mobile Internet, user according to the group adding or exit an opening of the freedoms of information such as the hobby of self, social circle, geographical position, can flock together and carries out doings rapidly.
In prior art, the packet aggregation process of user is: send grouping with user orientation server and join request or divide into groups to exit request, and server receives after grouping that user sends joins request or divide into groups to exit request, carries out packet transaction; After user adds grouping, server is broadcasted in user's propelling movement group; So, the grouping solving group member is safeguarded.
But, present inventor is in the process realizing the embodiment of the present application technical scheme, at least find to there is following technical problem in correlation technique: 1) because mobile Internet network is unstable, when the grouping that user sends joins request or request of exiting of dividing into groups occurs packet loss, server then can not receive user's request, not only affect the experience of user, and affect the consistency of server and user data; 2) time for guaranteeing that server occurs abnormal, not affecting the business of user, the grouping information of user need be backed up in server, cause Disaster Tolerant Scheme complicated; 3) group capacity of group is limited, is not suitable for the grouping scene at more than hundred general-purpose families.
Summary of the invention
In view of this, the embodiment of the present invention is expected to provide a kind of packet aggregation method, client and server, when the grouping that can send user joins request or request of exiting of dividing into groups occurs packet loss, continue to receive user's request, simplify Disaster Tolerant Scheme, support that tens user capacities are to the grouping scene of millions of user capacity.
The embodiment of the present invention provides a kind of packet aggregation method, and described method comprises: receive the first operation;
Respond described first operation, generate the first information and the personal authority information corresponding with the described first information, the described first information and described personal authority information are used for adding or exit the first group;
The described first information and described personal authority Information encapsulation are entered in the first request message;
Described first request message is meet preset strategy with the type of message periodically sent;
Send described first request message, to ask to add or exit described first group.
In above-mentioned implementation, described preset strategy comprises: the strategy often reaching the scheduled time or periodically send according to predeterminated frequency.
In above-mentioned implementation, described method also comprises: all users in described first group receive message in grouping; In described grouping, message makes user add by server according to the described first information and described personal authority information or exits described first group, and after upgrading the current Packet State of user, Trigger message pushes and obtains.
In above-mentioned implementation, the described generation first information, comprising: to server for authentication to obtain the grouping authority information adding or exit described first group, authentication is by the rear generation first information and the personal authority information corresponding with the described first information.
The embodiment of the present invention also provides a kind of client, and described client comprises: the first receiving element, the first response unit, the first generation unit, encapsulation unit and the first transmitting element; Wherein,
Described first receiving element, for receiving the first operation;
Described first response unit, for responding described first operation;
Described first generation unit, for generating the first information and the personal authority information corresponding with the described first information; The described first information and described personal authority information are used for adding or exit the first group;
Described encapsulation unit, for entering in the first request message by the described first information and described personal authority Information encapsulation; Described first request message is meet preset strategy with the type of message periodically sent;
Described first transmitting element, for sending described first request message, to ask to add or exit described first group.
In above-mentioned implementation, described preset strategy comprises: the strategy often reaching the scheduled time or periodically send according to predeterminated frequency.
In above-mentioned implementation, described client also comprises: the second receiving element, for receiving message in the grouping in the first group; In described grouping, message to be added according to the described first information and described personal authority information by server or exits described first group, and after upgrading the current Packet State of user, Trigger message pushes and obtains.
In above-mentioned implementation, described first generation unit, specifically for adding or exit the grouping authority information of described first group with acquisition to server for authentication, authentication is by the rear generation first information and the personal authority information corresponding with the described first information.
The embodiment of the present invention also provides another kind of packet aggregation method, and described method comprises:
Receive the first request message;
Detect that described first request message is meet preset strategy with the type of message periodically sent;
From described first request message, parse the first information and the personal authority information corresponding with the described first information, the described first information and described personal authority information are used for adding or exit the first group;
Obtain the second local information, the described first information and described second information are compared, obtains comparison result; The information content of described second information is different from the described first information;
Judge that user asks to change the current Packet State of user according to described comparison result, according to the described first information and described personal authority information, user added or exit described first group, upgrading the Packet State that user is current.
In above-mentioned implementation, described preset strategy comprises: the strategy often reaching the scheduled time or periodically send according to predeterminated frequency.
In above-mentioned implementation, described method also comprises: server makes user add described first group according to the described first information and described personal authority information, after upgrading the current Packet State of user, Trigger message pushes message in grouping to all users in described first group.
In above-mentioned implementation, describedly according to the described first information and described personal authority information, user added or exit described first group, comprising:
According to the authorization code identification prestored, whether the first request message is processed, and obtains recognition result; Judge that described first request message can be processed according to described recognition result, make user add the first group or exit the first group according to the described first information and described personal authority information.
The embodiment of the present invention also provides a kind of server, and described server comprises: the second receiving element, detecting unit, resolution unit, comparing unit and processing unit; Wherein,
Described second receiving element, for receiving the first request message;
Whether described detecting unit is meet preset strategy with the type of message periodically sent for detecting described first request message;
Described resolution unit, for detecting that at described detecting unit described first request message is when meeting preset strategy with the type of message periodically sent, from described first request message, parse the first information and the personal authority information corresponding with the described first information, described first solicited message is used for adding or exit the first group;
Described comparing unit, for obtaining the second local information, comparing the described first information and described second information, obtaining comparison result; The information content of described second information is different from the described first information;
Described processing unit, for judging that according to described comparison result user asks to change the current Packet State of user, making user add according to the described first information and described personal authority information or exiting described first group, upgrading the Packet State that user is current.
In above-mentioned implementation, described preset strategy comprises: the strategy often reaching the scheduled time or periodically send according to predeterminated frequency.
In above-mentioned implementation, described server also comprises push unit, for making user add described first group at processing unit according to the described first information and described personal authority information, after upgrading the current Packet State of user, Trigger message pushes message in grouping to all users in described first group.
In above-mentioned implementation, whether described processing unit, processed specifically for the first request message according to the authorization code identification prestored, obtained recognition result; Judge that described first request message can be processed according to described recognition result, make user add the first group or exit the first group.
The packet aggregation method that the embodiment of the present invention provides, described client receives the first operation; Respond described first operation, generate the first information and the personal authority information corresponding with the described first information, the described first information and described personal authority information are used for adding or exit the first group; The described first information and described personal authority Information encapsulation are entered in the first request message; Described first request message is meet preset strategy with the type of message periodically sent; Send described first request message, to ask to add or exit described first group.
Adopt the embodiment of the present invention, 1) the first request message sent due to client meets preset strategy with the type of message periodically sent, add with request or exit described first group, the impact of user's request is not can not receive by server, because it is periodically send that the type of message of the first request message determines this message, so, even if server can not receive specifically, next time also can receive, and can not affect the consistency of data; 2) first information can be specially grouping information, that is, grouping information is created by client, along with the first request message periodically sends to server, instead of create and backup at server, thus server verifies without the need to backup groupings information, Disaster Tolerant Scheme is made to become simple and easy to do; 3) server is without the need to backing up a large amount of grouping informations, and grouping information creates and backup in client, do not hold quantitative limitation, go for the grouping scene at more than hundred general-purpose families by server stores.
Accompanying drawing explanation
Fig. 1 is the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention one;
Fig. 2 is the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention two;
Fig. 3 is the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention three;
Fig. 4 is the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention four;
Fig. 5 is applied to the handling process schematic diagram of server side for packet aggregation method described in the embodiment of the present invention five;
Fig. 6 is the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention six;
Fig. 7 is the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention seven;
Fig. 8 is the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention eight;
Fig. 9 is the interaction process schematic flow sheet of packet aggregation method described in the embodiment of the present invention nine;
Figure 10 is the composition structural representation of client described in the embodiment of the present invention one;
Figure 11 is the composition structural representation of client described in the embodiment of the present invention two;
Figure 12 is the composition structural representation of server described in the embodiment of the present invention one;
Figure 13 is the composition structural representation of server described in the embodiment of the present invention two;
Figure 14 is the composition structural representation of packet aggregation system described in the embodiment of the present invention;
Figure 15 is the embody rule scene schematic diagram of the application embodiment of the present invention;
Figure 16 is the system composition structural representation of the application scenarios realizing the embodiment of the present invention;
The hardware configuration schematic diagram that Figure 17 is server described in the embodiment of the present invention.
Embodiment
Embodiment of the method one
The embodiment of the present invention one provides a kind of packet aggregation method, and described method is applied to client, and the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention one, as shown in Figure 1, comprises the following steps:
Step 101, receives the first operation, responds described first operation, generates the first information and the personal authority information corresponding with the described first information;
Here, described first operation comprises user and inputs the first group number of adding or user and input the first group identification (ID, Identity) of adding or user and input the first group name of adding or user chooses other user names adding the first group;
Wherein, generate the first information and the personal authority information corresponding with the described first information, comprise: user end to server request mandate adds to obtain or exit the grouping authority information of described first group, after server passes through the request authentication that client sends, client generates the first information and the personal authority information corresponding with the described first information; Described server, when carrying out authentication to the request of client, can be specially service server, and the described first information and described personal authority information are used for client and add or exit the first group; When described server carries out authentication to the request that client sends, also can generate an authentication code.
In the embodiment of the present invention, described client adds the first group and comprises: client by adding the first group without Packet State, client switches to the first group by second group's state, client adds the second group again by second group's state; That is, client can be in separately first group's state, also can be in the first group and second group's state simultaneously, certainly, also can be in plural multiple groups state simultaneously; When user's request adds multiple group, in the first request message, request simultaneously can add multiple group, also can send multiple request message, in each request message, request adds a group.
Step 102, enters in the first request message by the described first information and described personal authority Information encapsulation;
Particularly, the described first information and described personal authority Information encapsulation can enter in the first request message according to the strategy preset by client;
Here, described default strategy comprises: encapsulate the information such as the mode of described first request message and the password of described first request message of encapsulation;
The described first information is the information of mark first group, comprising: the first group number, the first group ID or the first group name etc.; Described personal authority information is that server judges whether user has the information of the authority adding or exit the first group;
Described first request message is meet preset strategy with the type of message periodically sent, and namely often reaches described first request message of scheduled time transmission, or send described first request message according to the frequency period preset in regular hour section; In actual applications, described first request message can be the heartbeat packet that user sends to access server.
Step 103, sends described first request message;
Particularly, user end to server sends described first request message, to ask to add or exit described first group; Here, when described server performs the function of reception first request message, access server can be specially.
In the embodiment of the present invention, described access server can be multiple, or the type of cluster server, and support that tens user capacities are to the grouping scene of millions of user capacity, i.e. the parallel expansion of Service supportive, has stronger adaptability; Simultaneously, when the first access server breaks down, described client sends described first request message to the first access server, can not receive the response message of described first access server transmission within the time of agreement after, described client sends described first request message to the second access server; So, make the embodiment of the present invention have stronger fault tolerant mechanism, when server sends fault, can abnormal self-healing be carried out.
By embodiment of the present invention step 102 and step 103 known, described first request message is just sent because described client often reaches the scheduled time, or described client sends described first request message according to the frequency period preset in regular hour section, make break down because of mobile Internet cause described first request message packet loss time, without the need to backing up described first request message at server side, described client can again send described first request message within predetermined time or frequency, simplify the Disaster Recovery Strategy of server side, improve the stability of packet aggregation system.
Embodiment of the method two
The embodiment of the present invention two provides a kind of packet aggregation method, and described method is applied to client, and the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention two, as shown in Figure 2, comprises the following steps:
Step 201, client receives the first operation, responds described first operation, generates the first information and the personal authority information corresponding with the described first information;
Here, described first operation comprises user and inputs the first group number of adding or user and input the first group ID of adding or user and input the first group name of adding or user chooses the user name adding the first group;
Wherein, generate the first information and the personal authority information corresponding with the described first information, comprise: user end to server request mandate adds to obtain or exit the grouping authority information of described first group, after server passes through the request authentication that client sends, client generates the first information and the personal authority information corresponding with the described first information; Described server, when carrying out authentication to the request of client, can be specially service server, and the described first information and described personal authority information are used for client and add or exit the first group; When described server carries out authentication to the request that client sends, also can generate an authentication code;
In the embodiment of the present invention, described client adds the first group and comprises: client by adding the first group without Packet State, client switches to the first group by second group's state, client adds the second group again by second group's state; That is, client can be in separately first group's state, also can be in the first group and second group's state simultaneously, certainly, also can be in plural multiple groups state simultaneously; When user's request adds multiple group, in the first request message, request simultaneously can add multiple group, also can send multiple request message, in each request message, request adds a group.
Step 202, enters in the first request message by the described first information and described personal authority Information encapsulation;
Particularly, the described first information and described personal authority Information encapsulation can enter in the first request message according to the strategy preset by client;
Here, described default strategy comprises: encapsulate the information such as the mode of described first request message and the password of described first request message of encapsulation;
The described first information is the information of mark first group, comprising: the first group number, the first group ID or the first group name etc.; Described personal authority information is that server judges whether user has the information of the authority adding or exit the first group;
Described first request message is meet preset strategy with the type of message periodically sent, and namely often reaches described first request message of scheduled time transmission, or send described first request message according to the frequency period preset in regular hour section; In actual applications, described first request message can be the heartbeat packet that user sends to access server.
Step 203, sends described first request message;
Particularly, user end to server sends described first request message, to ask to add or exit described first group; Wherein, when described server performs the function of reception first request message, access server can be specially.
Here, described access server can be multiple, or the type of cluster server, and support that tens user capacities are to the grouping scene of millions of user capacity, i.e. the parallel expansion of Service supportive, has stronger adaptability; Simultaneously, when the first access server breaks down, described client sends described first request message to the first access server, can not receive the response message of described first access server transmission within the time of agreement after, described client sends described first request message to the second access server; So, make the embodiment of the present invention have stronger fault tolerant mechanism, when server sends fault, can abnormal self-healing be carried out.
Step 204, client receives message in grouping;
Here, after in described grouping, message makes user add by server according to the described first information and described personal authority information or exits described first group, upgrades the current Packet State of user, Trigger message pushes and obtains; Message in described grouping is the message in described first group.
By inventive embodiments step 202 and step 203 known, described first request message is just sent because described client often reaches the scheduled time, or described client sends described first request message according to the frequency period preset in regular hour section, make break down because of mobile Internet cause described first request message packet loss time, without the need to backing up described first request message at server side, described client can again send described first request message within predetermined time or frequency, simplify the Disaster Recovery Strategy of server side, improve the stability of packet aggregation system.
Embodiment of the method three
Client is in A group state, and when asking to switch to B group by A group, the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention three, as shown in Figure 3, comprises the following steps:
Step 301, client receives the first operation, responds described first operation, generates the first information and the personal authority information corresponding with the described first information;
Here, described first is operating as user inputs B group number, after described client receives the B group number of user's input, to service server request mandate to obtain the grouping authority information adding B group, service server is after to client, adding of sending, B group appeal authentication passed through, described client just obtains the grouping authority adding B group, and client generates the first information and the personal authority information corresponding with the described first information; When described service server carries out authentication to the request that client sends, also can generate an authentication code;
Wherein, the described first information is B group number, and described personal authority information is the personal authority signature adding B group.
Step 302, the described first information and described personal authority Information encapsulation enter in the first solicited message by client;
Particularly, B group number and the personal authority adding B group are signed according in the packaged type of arranging and described first request message of encapsulation cipher seal loading by client, ask to add B group; Meanwhile, A group number and the personal authority exiting A group are signed according in the packaged type of arranging and described first request message of encapsulation cipher seal loading by client, ask to exit A group.
Wherein, described first request message is meet preset strategy with the type of message periodically sent, and namely often reaches described first request message of scheduled time transmission, or send described first request message according to the frequency period preset in regular hour section; In the embodiment of the present invention, described first request message is the heartbeat packet that user sends to access server.
Step 303, client sends described first request message to access server, and request adds B group and exits A group;
Here, described access server can be multiple, or the type of cluster server, when the first access server breaks down, described client sends described first request message to the first access server, can not receive the response message of described first access server transmission within the time of agreement after, described client sends described first request message to the second access server, until described client receives a certain access server send response message; So, make the embodiment of the present invention have stronger fault tolerant mechanism, when server sends fault, can abnormal self-healing be carried out.
Step 304, client receives B inner group message;
Here, after in described grouping, message can make user add B group according to the described first information and described personal authority information by server, exits A group, after upgrading the Packet State of user, Trigger message pushes and obtains; In the embodiment of the present invention, user only can receive the message in B group.
By embodiment of the present invention step 302 and step 303 known, because client periodically sends heartbeat packet to access server, the request of carrying in described heartbeat packet adds B group and exits the information of A group, make when client is lost to first heartbeat packet that access server sends, client can continue to send second heartbeat packet to access server according to the strategy preset, request adds B group and exits A group, without the need to adding B group in server side backup described request and exit the information of A group, simplify the Disaster Recovery Strategy of server side, improve the stability of packet aggregation system.
Embodiment of the method four
Client is in C group state, and when C group is exited in request, the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention four, as shown in Figure 4, comprises the following steps:
Step 401, client receives the first operation, responds described first operation, generates the first information and the personal authority information corresponding with the described first information;
Here, described first is operating as user inputs C group number, after described client receives the C group number of user's input, to service server request mandate to obtain the grouping authority information exiting C group, service server is after to exiting of sending of client, C group appeal authentication passes through, described client just obtains the grouping authority exiting C group, and client generates the first information and the personal authority information corresponding with the described first information; When described service server carries out authentication to the request that client sends, also can generate an authentication code;
Wherein, the described first information is C group number, and described personal authority information is exit the personal authority signature of C group.
Step 402, the described first information and described personal authority Information encapsulation enter in the first solicited message by client;
Particularly, C group number and the personal authority exiting C group are signed according in the packaged type of arranging and described first request message of encapsulation cipher seal loading by client, ask to exit C group;
Wherein, described first request message is meet preset strategy with the type of message periodically sent, and namely often reaches described first request message of scheduled time transmission, or send described first request message according to the frequency period preset in regular hour section; In the embodiment of the present invention, described first request message is the heartbeat packet that user sends to access server.
Step 403, client sends described first request message to access server, and C group is exited in request;
Here, described access server can be multiple, or the type of cluster server, when the first access server breaks down, described client sends described first request message to the first access server, can not receive the response message of described first access server transmission within the time of agreement after, described client sends described first request message to the second access server, until described client receives a certain access server send response message; So, make the embodiment of the present invention have stronger fault tolerant mechanism, when server sends fault, can abnormal self-healing be carried out.
Step 404, client no longer receives C inner group message;
Here, in described grouping, message can make user exit C group according to the described first information and described personal authority information by server, and after upgrading the Packet State of user, Trigger message pushes and obtains; In the embodiment of the present invention, user no longer receives the message in C group.
By embodiment of the present invention step 402 and step 403 known, because client periodically sends heartbeat packet to access server, the information of C group is exited in the request of carrying in described heartbeat packet, make when client is lost to first heartbeat packet that access server sends, client can continue to send second heartbeat packet to access server according to the strategy preset, C group is exited in request, without the need to exiting the information of C group in server side backup described request, simplify the Disaster Recovery Strategy of server side, improve the stability of packet aggregation system.
Embodiment of the method five
Based on said method embodiment one to four, in the preferred implementation of the embodiment of the present invention, packet aggregation method described in the embodiment of the present invention five is applied to the handling process schematic diagram of server side, as shown in Figure 5, comprises the following steps:
Step 501, receives the first request message;
Particularly, access server receives the first request message that client sends;
Here, described access server can be multiple, or the type of cluster server, and support that tens user capacities are to the grouping scene of millions of user capacity, i.e. the parallel expansion of Service supportive, has stronger adaptability; Meanwhile, when the first access server breaks down, described second access server can continue described first request message accepting the transmission of described client; So, make the embodiment of the present invention have stronger fault tolerant mechanism, when server sends fault, can abnormal self-healing be carried out.
Step 502, detects that described first request message is meet preset strategy with the type of message periodically sent;
Particularly, access server detects that described first request message is meet preset strategy with the type of message periodically sent;
Here, described preset strategy comprises: often reach the scheduled time or in certain hour section according to the strategy that predeterminated frequency periodically sends; In actual applications, described first request message can be the heartbeat packet that user sends to access server.
Step 503, parses the first information and the personal authority information corresponding with the described first information from described first request message;
Particularly, access server parses the first information and described personal authority information according to the strategy preset from described first request message;
Here, described default strategy comprises: encapsulate the information such as the mode of described first request message and the password of described first request message of encapsulation;
The described first information is the information of mark first group, comprising: the first group number, the first group ID or the first group name etc.; Described personal authority information is that access server judges whether user has the information of the authority adding or exit the first group;
Step 504, obtains the second local information, the described first information and described second information is compared, obtain comparison result;
Here, the Packet State of user before described second information is used to indicate and receives described first request message, the information content of described second information is different from the described first information, and the partial information of the described first information that described second information can store for server self or other information of associating with the described first information etc. are any can judge the information of user grouping state in described second information with being associated between the described first information.
According to described comparison result, step 505, judges that user asks to change the current Packet State of user, according to the described first information and described personal authority information, user is added or exit described first group, upgrading the Packet State that user is current;
Particularly, described second information instruction user grouping state for being in the second group, the described first information is mark when adding the information of the first group, and described access server judges the Packet State that user asks change current namely to switch to the first group by the second group; Or the user grouping state of described second information instruction is for being in the first group, the described first information is mark when exiting the information of the first group, and described access server judges the Packet State that user asks change current namely to switch to the first group by the second group; Or the user grouping state of described second information instruction is for being in the first group, the described first information is mark when exiting the first group, and described access server judges the Packet State that user asks change current namely to exit the first group; Described access server sends request according to the described first information, described personal authority information and existing grouping dynamic equalization logic the message adding or exit the first group to packet aggregation server; After packet aggregation server receives the request that described access server sends, to add according to the authorized identification codes identification request prestored or whether the message that exits the first group is processed, obtain recognition result; When judging that described request adds or the message that exits the first group can be processed according to described recognition result, send the grouping information of user to grouping management server, add by user or exit the first group; Described user adds or exits the first group by grouping management server;
Here, the authorization code prestored described in acquisition when to be service server carry out authentication to the grouping request that client sends.
By embodiment of the present invention step 501 and step 502 known, often reach the scheduled time just send described first request message because server can receive client, or described client sends described first request message according to the frequency period preset in regular hour section, make break down because of mobile Internet cause described first request message packet loss time, described client can again send described first request message within predetermined time or frequency, after server side receives described first request message again, described first request message at every turn sent due to client all can comprise the grouping information of user, server can continue to perform step 503-505 according to described first request message, without the need to backing up described first request message at server side, simplify the Disaster Recovery Strategy of server side, improve the stability of packet aggregation system.
Embodiment of the method six
The embodiment of the present invention six provides a kind of packet aggregation method, and described method is applied to server, and the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention six, as shown in Figure 6, comprises the following steps:
Step 601, receives the first request message;
Particularly, access server receives the first request message that client sends;
Here, described access server can be multiple, or the type of cluster server, and support that tens user capacities are to the grouping scene of millions of user capacity, i.e. the parallel expansion of Service supportive, has stronger adaptability; Meanwhile, when the first access server breaks down, described second access server can continue described first request message accepting the transmission of described client; So, make the embodiment of the present invention have stronger fault tolerant mechanism, when server sends fault, can abnormal self-healing be carried out.
Step 602, detects that described first request message is meet preset strategy with the type of message periodically sent;
Here, described preset strategy comprises: often reach the scheduled time or in certain hour section according to the strategy that predeterminated frequency periodically sends; In actual applications, described first request message can be the heartbeat packet that user sends to access server.
Step 603, parses the first information and the personal authority information corresponding with the described first information from described first request message;
Particularly, access server parses the first information and described personal authority information according to the strategy preset from described first request message;
Here, described default strategy comprises: encapsulate the information such as the mode of described first request message and the password of described first request message of encapsulation;
The described first information is the information of mark first group, comprising: the first group number, the first group ID or the first group name etc.; Described personal authority information is that access server judges whether user has the information of the authority adding or exit the first group;
Step 604, obtains the second local information, the described first information and described second information is compared, obtain comparison result;
Here, the Packet State of user before described second information is used to indicate and receives described first request message, the information content of described second information is different from the described first information, and the partial information of the described first information that described second information can store for server self or other information of associating with the described first information etc. are any can judge the information of user grouping state in described second information with being associated between the described first information.
According to described comparison result, step 605, judges that user asks to change the current Packet State of user, according to the described first information and described personal authority information, user is added or exit described first group, upgrading the Packet State that user is current;
Particularly, described second information instruction user grouping state for being in the second group, the described first information is mark when adding the information of the first group, and described access server judges the Packet State that user asks change current namely to switch to the first group by the second group; Or the user grouping state of described second information instruction is for being in the first group, the described first information is mark when exiting the information of the first group, and described access server judges the Packet State that user asks change current namely to switch to the first group by the second group; Or the user grouping state of described second information instruction is for being in the first group, the described first information is mark when exiting the first group, and described access server judges the Packet State that user asks change current namely to exit the first group; Described access server sends request according to the described first information, described personal authority information and existing grouping dynamic equalization logic the message adding or exit the first group to packet aggregation server; After packet aggregation server receives the request that described access server sends, to add according to the authorized identification codes identification request prestored or whether the message that exits the first group is processed, obtain recognition result; When judging that described request adds or the message that exits the first group can be processed according to described recognition result, send the grouping information of user to grouping management server, add by user or exit the first group; Described user adds or exits the first group by grouping management server;
Here, the authorization code prestored described in acquisition when to be service server carry out authentication to the grouping request that client sends.
Step 606, server is after making user add described first group, and Trigger message pushes message in grouping to all users in described first group.
By embodiment of the present invention step 601 and step 602 known, often reach the scheduled time just send described first request message because server can receive client, or described client sends described first request message according to the frequency period preset in regular hour section, make break down because of mobile Internet cause described first request message packet loss time, described client can again send described first request message within predetermined time or frequency, after server side receives described first request message again, described first request message at every turn sent due to client all can comprise the grouping information of user, server can continue to perform step 603-606 according to described first request message, without the need to backing up described first request message at server side, simplify the Disaster Recovery Strategy of server side, improve the stability of packet aggregation system.
Embodiment of the method seven
When client-requested switches to B group by A group, the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention seven, as shown in Figure 7, comprises the following steps:
Step 701, access server receives the first request message;
Particularly, access server receives the first request message that client sends;
Here, described access server can be multiple, or the type of cluster server, and support that tens user capacities are to the grouping scene of millions of user capacity, i.e. the parallel expansion of Service supportive, has stronger adaptability; Meanwhile, when the first access server breaks down, described second access server can continue described first request message accepting the transmission of described client; So, make the embodiment of the present invention have stronger fault tolerant mechanism, when server sends fault, can abnormal self-healing be carried out.
Step 702, access server detects that described first request message is meet preset strategy with the type of message periodically sent;
Here, described preset strategy comprises: often reach the scheduled time or in certain hour section according to the strategy that predeterminated frequency periodically sends; In the embodiment of the present invention, described first request message is the heartbeat packet that user sends to access server.
Step 703, access server parses the first information and the personal authority information corresponding with the described first information from described first request message;
Particularly, access server according to preset strategy parse from described first request message access server parse B group number, add the personal authority of B group signature, A group number and exit A group personal authority signature;
Here, described default strategy comprises: encapsulate the information such as the mode of described first request message and the password of described first request message of encapsulation.
Step 704, obtains the second local information, the described first information and described second information is compared, obtain comparison result;
Here, the Packet State of user before described second information is used to indicate and receives described first request message, the information content of described second information is different from the described first information, and the partial information of the described first information that described second information can store for server self or other information of associating with the described first information etc. are any can judge the information of user grouping state in described second information with being associated between the described first information;
In the embodiment of the present invention, described second information is: user is in A group.
According to described comparison result, step 705, judges that user asks to change the current Packet State of user, makes user add B group and exit B group, upgrade the Packet State that user is current according to the described first information and described personal authority information;
Particularly, described second information instruction user grouping state for being in A group, described first solicited message request adds B group, exits A group; Described access server judges that user asks to change current Packet State, namely switches to B group by A group; Described access server to send request to packet aggregation server according to existing grouping dynamic equalization logic and adds B group and the message exiting A group; After packet aggregation server receives the request that described access server sends, add B group according to the authorized identification codes identification request prestored and whether the message exiting A group is processed, obtain recognition result; Judge that described request adds B group according to described recognition result and the message exiting A group can be processed time, send the grouping information of user to grouping management server, add B group by user and exit A group; Described user is added B group and exits A group by grouping management server;
Here, the authorization code prestored described in acquisition when to be service server carry out authentication to the grouping request that client sends.
Step 706, server triggers message pushes message in grouping to all users in described B group.
By embodiment of the present invention step 701 and step 702 known, often reach the scheduled time just send described first request message because server can receive client, or described client sends described first request message according to the frequency period preset in regular hour section, make break down because of mobile Internet cause described first request message packet loss time, described client can again send described first request message within predetermined time or frequency, after server side receives described first request message again, described first request message at every turn sent due to client all can comprise the grouping information of user, server can continue to perform step 703-706 according to described first request message, without the need to backing up described first request message at server side, simplify the Disaster Recovery Strategy of server side, improve the stability of packet aggregation system.
Embodiment of the method eight
Client is in C group state, and when C group is exited in request, the handling process schematic diagram of packet aggregation method described in the embodiment of the present invention eight, as shown in Figure 8, comprises the following steps:
Step 801, access server receives the first request message;
Particularly, access server receives the first request message that client sends;
Here, described access server can be multiple, or the type of cluster server, and support that tens user capacities are to the grouping scene of millions of user capacity, i.e. the parallel expansion of Service supportive, has stronger adaptability; Meanwhile, when the first access server breaks down, described second access server can continue described first request message accepting the transmission of described client; So, make the embodiment of the present invention have stronger fault tolerant mechanism, when server sends fault, can abnormal self-healing be carried out.
Step 802, access server detects that described first request message is meet preset strategy with the type of message periodically sent;
Here, described preset strategy comprises: often reach the scheduled time or in certain hour section according to the strategy that predeterminated frequency periodically sends; In the embodiment of the present invention, described first request message is the heartbeat packet that user sends to access server.
Step 803, access server parses the first information and the personal authority information corresponding with the described first information from described first request message;
Particularly, access server parses access server according to the strategy preset and parses C group number and the personal authority signature exiting C group from described first request message;
Here, described default strategy comprises: encapsulate the information such as the mode of described first request message and the password of described first request message of encapsulation.
Step 804, access server obtains the second local information, the described first information and described second information is compared, obtains comparison result;
Here, the Packet State of user before described second information is used to indicate and receives described first request message, the information content of described second information is different from the described first information, and the partial information of the described first information that described second information can store for server self or other information of associating with the described first information etc. are any can judge the information of user grouping state in described second information with being associated between the described first information;
In the embodiment of the present invention, described second information is: user is in C group.
According to described comparison result, step 805, judges that user asks to change the current Packet State of user, makes user exit C group, upgrade the Packet State that user is current according to the described first information and described personal authority information;
Particularly, described second information instruction user grouping state for being in C group, C group is exited in described first solicited message request; Described access server judges that user asks to change current Packet State, is namely exited by C group; Described access server sends request according to existing grouping dynamic equalization logic the message exiting C group to packet aggregation server; After packet aggregation server receives the request of described access server transmission, whether the message exiting C group according to the authorized identification codes identification request prestored is processed, and obtains recognition result; When judging that described request adds or the message that exits the first group can be processed according to described recognition result, send the grouping information of user to grouping management server, exit C group by user; Described user is exited C group by grouping management server;
Here, the authorization code prestored described in acquisition when to be service server carry out authentication to the grouping request that client sends.
After user exits C group, server no longer pushes C inner group message to described user.
By embodiment of the present invention step 801 and step 802 known, often reach the scheduled time just send described first request message because server can receive client, or described client sends described first request message according to the frequency period preset in regular hour section, make break down because of mobile Internet cause described first request message packet loss time, described client can again send described first request message within predetermined time or frequency, after server side receives described first request message again, described first request message at every turn sent due to client all can comprise the grouping information of user, server can continue to perform step 803-805 according to described first request message, without the need to backing up described first request message at server side, simplify the Disaster Recovery Strategy of server side, improve the stability of packet aggregation system.
Embodiment of the method nine
The interaction process schematic flow sheet of packet aggregation method described in the embodiment of the present invention nine, as shown in Figure 9, comprises the following steps:
Step 901, client receives the first operation, responds described first operation, generates the first information and the personal authority information corresponding with the described first information;
Here, described first is operating as user inputs D group number, after described client receives the D group number of user's input, to service server request mandate to obtain the grouping authority information adding B group, service server is after to client, adding of sending, D group appeal authentication passed through, described client just obtains the grouping authority adding D group, and client generates the first information and the personal authority information corresponding with the described first information; When described service server carries out authentication to the request that client sends, also can generate an authentication code;
Wherein, the described first information is D group number, and described personal authority information is the personal authority signature adding D group.
Step 902, the described first information and described personal authority Information encapsulation enter in the first solicited message by client;
Particularly, D group number and the personal authority adding D group are signed according in the packaged type of arranging and described first request message of encapsulation cipher seal loading by client, ask to add D group.
Wherein, described first request message is meet preset strategy with the type of message periodically sent, and namely often reaches described first request message of scheduled time transmission, or send described first request message according to the frequency period preset in regular hour section; In the embodiment of the present invention, described first request message is the heartbeat packet that user sends to access server.
Step 903, user end to server sends described first request message, and request adds D group;
Here, client sends described first request message to access server.
Step 904, server does not receive described first request message.
Step 905, user end to server sends described first request message, and request adds D group;
Particularly, client reaches the scheduled time and continues to send described first request message or send described first request message according to predetermined frequency period to access server.
Step 906, server receives described first request message;
It should be noted that, the function that server described in the present embodiment step 903 to 906 performs, all can be realized by access server, described access server can be multiple, or the type of cluster server, support that tens user capacities are to the grouping scene of millions of user capacity, i.e. the parallel expansion of Service supportive, has stronger adaptability; Meanwhile, when the first access server breaks down, described second access server can continue described first request message accepting the transmission of described client; So, make the embodiment of the present invention have stronger fault tolerant mechanism, when server sends fault, can abnormal self-healing be carried out.
Step 907, server detects that described first request message is meet preset strategy with the type of message periodically sent;
Here, described preset strategy comprises: often reach the scheduled time or in certain hour section according to the strategy that predeterminated frequency periodically sends; When described server performs measuring ability, can be realized by access server; In the embodiment of the present invention, described first request message is the heartbeat packet that user sends to access server.
Step 908, server parses the first information and the personal authority information corresponding with the described first information from described first request message;
Particularly, access server parses D group number according to the strategy preset and exits the personal authority signature of D group from described first request message.
Step 909, server obtains the second information that this user stores in this locality, the described first information and described second information is compared, obtains comparison result;
Here, the Packet State of user before described second information is used to indicate and receives described first request message, the information content of described second information is different from the described first information, and the partial information of the described first information that described second information can store for server self or other information of associating with the described first information etc. are any can judge the information of user grouping state in described second information with being associated between the described first information;
In the embodiment of the present invention, described second information is: user is in D group.
Step 910, according to described comparison result, server judges that user asks to change the current Packet State of user, make user exit D group, upgrade the Packet State that user is current according to the described first information and described personal authority information;
Particularly, described second information instruction user grouping state for being in D group, D group is exited in described first solicited message request; Described access server judges that user asks to change current Packet State, namely exits D group; Described access server sends the message exiting D group to packet aggregation server according to existing grouping dynamic equalization logic; After packet aggregation server receives the request of described access server transmission, whether the message exiting D group according to the authorized identification codes identification request prestored is processed, and obtains recognition result; When judging that the message that described request exits D group can be processed according to described recognition result, send the grouping information of user to grouping management server, exit D group by user; Described user is exited D group by grouping management server; Server no longer sends D inner group message to this user;
Here, the authorization code prestored described in acquisition when to be service server carry out authentication to the grouping request that client sends.
Known to step 905 by embodiment of the present invention step 903, when access server does not receive the first request message of client transmission, often reach scheduled time client and just again send described first request message, or described client sends described first request message according to the frequency period preset in regular hour section, make break down because of mobile Internet cause described first request message packet loss time, described client can again send described first request message within predetermined time or frequency, after access server side receives described first request message again, described first request message at every turn sent due to client all can comprise the grouping information of user, server can continue to perform step 906-910 according to described first request message, without the need to backing up described first request message at server side, simplify the Disaster Recovery Strategy of server side, improve the stability of packet aggregation system.
Client embodiment one
For realizing above-mentioned packet aggregation method, the embodiment of the present invention also provides a kind of client, the composition structure of described client, as shown in Figure 10, comprising: the first receiving element 11, first response unit 12, first generation unit 13, encapsulation unit 14 and the first transmitting element 15; Wherein,
Described first receiving element 11, for receiving the first operation;
Described first response unit 12, for responding described first operation;
Described first generation unit 13, for generating the first information and the personal authority information corresponding with the described first information; The described first information and described personal authority information are used for adding or exit the first group;
Described encapsulation unit 14, for entering in the first request message by the described first information and described personal authority Information encapsulation; Described first request message is meet preset strategy with the type of message periodically sent;
Described first transmitting element 15, for sending described first request message, to ask to add or exit described first group.
In the present invention one preferred implementation, described preset strategy comprises: the strategy often reaching the scheduled time or periodically send according to predeterminated frequency.
Described first generation unit 13, specifically for adding or exit the grouping authority information of described first group with acquisition to server for authentication, authentication is by the rear generation first information and the personal authority information corresponding with the described first information.
In the present invention one preferred implementation, described first operation comprises user and inputs the first group number of adding or user and input the first group ID of adding or user and input the first group name of adding or user chooses other user names adding the first group.
In the present invention one preferred implementation, described client adds the first group and comprises: client by adding the first group without Packet State, client switches to the first group by second group's state, client adds the second group again by second group's state; That is, client can be in separately first group's state, also can be in the first group and second group's state simultaneously, certainly, also can be in plural multiple groups state simultaneously; When user's request adds multiple group, in the first request message, request simultaneously can add multiple group, also can send multiple request message, in each request message, request adds a group.
In the present invention one preferred implementation, described first request message is meet preset strategy with the type of message periodically sent, namely often reach described first request message of scheduled time transmission, or send described first request message according to the frequency period preset in regular hour section; In actual applications, described first request message can be the heartbeat packet that user sends to access server.
Client embodiment one
For realizing above-mentioned packet aggregation method, the embodiment of the present invention also provides a kind of client, the composition structure of described client, as shown in figure 11, comprising: the first receiving element 11, first response unit 12, first generation unit 13, encapsulation unit 14, first transmitting element 15 and the second receiving element 16; Wherein,
Described first receiving element 11, for receiving the first operation;
Described first response unit 12, for responding described first operation;
Described first generation unit 13, for generating the first information and the personal authority information corresponding with the described first information; The described first information and described personal authority information are used for adding or exit the first group;
Described encapsulation unit 14, for entering in the first request message by the described first information and described personal authority Information encapsulation; Described first request message is meet preset strategy with the type of message periodically sent;
Described first transmitting element 15, for sending described first request message, to ask to add or exit described first group.
Second receiving element 16, for receiving message in the grouping in the first group;
In described grouping, message to be added according to the described first information and described personal authority information by server or exits described first group, and after upgrading the current Packet State of user, Trigger message pushes and obtains.
Server example one
For realizing above-mentioned packet aggregation method, the embodiment of the present invention also provides a kind of server, and the composition structure of described server, as shown in figure 12, comprising: the second receiving element 21, detecting unit 22, resolution unit 23, comparing unit 24 and processing unit 25; Wherein,
Described second receiving element 21, for receiving the first request message;
Whether described detecting unit 22 is meet preset strategy with the type of message periodically sent for detecting described first request message;
Described resolution unit 23, for detecting that at described detecting unit described first request message is when meeting preset strategy with the type of message periodically sent, from described first request message, parse the first information and the personal authority information corresponding with the described first information, described first solicited message is used for adding or exit the first group;
Described comparing unit 24, for obtaining the second local information, comparing the described first information and described second information, obtaining comparison result; The information content of described second information is different from the described first information;
Described processing unit 25, for judging that according to described comparison result user asks to change the current Packet State of user, making user add according to the described first information and described personal authority information or exiting described first group, upgrading the Packet State that user is current.
In the embodiment of the present invention, the function that described second receiving element 21, detecting unit 22, resolution unit 23 and comparing unit 24 perform can be realized by access server; The function that described processing unit 25 performs can be realized by packet aggregation server.
In the present invention one preferred implementation, described preset strategy comprises: the strategy often reaching the scheduled time or periodically send according to predeterminated frequency.
In the present invention one preferred implementation, whether described processing unit 25, processed specifically for the first request message according to the authorization code identification prestored, obtained recognition result; Judge that described first request message can be processed according to described recognition result, make user add the first group or exit the first group.
In the present invention one preferred implementation, described access server can be multiple, or the type of cluster server, and support that tens user capacities are to the grouping scene of millions of user capacity, i.e. the parallel expansion of Service supportive, has stronger adaptability; Meanwhile, when the first access server breaks down, described second access server can continue described first request message accepting the transmission of described client; So, make the embodiment of the present invention have stronger fault tolerant mechanism, when server sends fault, can abnormal self-healing be carried out.
In the present invention one preferred implementation, described default strategy comprises: encapsulate the information such as the mode of described first request message and the password of described first request message of encapsulation; The described first information is the information of mark first group, comprising: the first group number, the first group ID or the first group name etc.; Described personal authority information is that access server judges whether user has the information of the authority adding or exit the first group.
In the present invention one preferred implementation, the Packet State of user before described second information is used to indicate and receives described first request message, the information content of described second information is different from the described first information, and the partial information of the described first information that described second information can store for server self or other information of associating with the described first information etc. are any can judge the information of user grouping state in described second information with being associated between the described first information.
In the present invention one preferred implementation, described second information instruction user grouping state for being in the second group, the described first information is that mark is when adding the information of the first group, described access server judges that user asks to change current Packet State, namely switches to the first group by the second group; Or the user grouping state of described second information instruction is for being in the first group, the described first information is mark when exiting the information of the first group, and described access server judges the Packet State that user asks change current namely to switch to the first group by the second group; Or the user grouping state of described second information instruction is for being in the first group, the described first information is mark when exiting the first group, and described access server judges the Packet State that user asks change current namely to exit the first group; Described access server sends request according to the described first information, described personal authority information and existing grouping dynamic equalization logic the message adding or exit the first group to packet aggregation server; After packet aggregation server receives the request that described access server sends, to add according to the authorized identification codes identification request prestored or whether the message that exits the first group is processed, obtain recognition result; When judging that described request adds or the message that exits the first group can be processed according to described recognition result, send the grouping information of user to grouping management server, add by user or exit the first group; Described user adds or exits the first group by grouping management server.
In the embodiment of the present invention, often reach the scheduled time just send described first request message because access server can receive client, or described client sends described first request message according to the frequency period preset in regular hour section, make break down because of mobile Internet cause described first request message packet loss time, described client can again send described first request message within predetermined time or frequency, after access server side receives described first request message again, described first request message at every turn sent due to client all can comprise the grouping information of user, therefore access server can be compared according to described first request message and the second local message, obtain comparison result, when the information content of described second information is different from the described first information, according to described comparison result, described access server judges that user asks to change the current Packet State of user, according to the described first information and described personal authority information, user added or exit described first group, upgrading the Packet State that user is current, without the need at described first request message of server side backup, simplify the Disaster Recovery Strategy of server side, improve the stability of packet aggregation system.
Server example two
For realizing above-mentioned packet aggregation method, the embodiment of the present invention also provides a kind of server, the composition structure of described server, as shown in figure 13, comprising: the second receiving element 21, detecting unit 22, resolution unit 23, comparing unit 24, processing unit 25 and push unit 26; Wherein,
Described second receiving element 21, for receiving the first request message;
Whether described detecting unit 22 is meet preset strategy with the type of message periodically sent for detecting described first request message;
Described resolution unit 23, for detecting that at described detecting unit described first request message is when meeting preset strategy with the type of message periodically sent, from described first request message, parse the first information and the personal authority information corresponding with the described first information, described first solicited message is used for adding or exit the first group;
Described comparing unit 24, for obtaining the second local information, comparing the described first information and described second information, obtaining comparison result; The information content of described second information is different from the described first information;
Described processing unit 25, for judging that according to described comparison result user asks to change the current Packet State of user, making user add according to the described first information and described personal authority information or exiting described first group, upgrading the Packet State that user is current.
Described push unit 26, for making user add described first group at processing unit according to the described first information and described personal authority information, after upgrading the current Packet State of user, Trigger message pushes message in grouping to all users in described first group.
In the embodiment of the present invention, the function that described second receiving element 21, detecting unit 22, resolution unit 23 and comparing unit 24 perform can be realized by access server; The function that described processing unit 25 performs can be realized by packet aggregation server; The function that described push unit 26 performs can be realized by grouping management server.
For realizing above-mentioned packet aggregation method, the embodiment of the present invention also provides a kind of packet aggregation system, and the composition structure of described packet aggregation system, as shown in figure 14, comprising: client 31 and server 32; Wherein,
Described client 31, for performing the function of client executing described in the above-mentioned Figure 10 of the embodiment of the present invention;
Described server 32, for performing the function that server described in the above-mentioned Figure 12 of the embodiment of the present invention performs.
The concrete scene of the application embodiment of the present invention
The mutual detailed process schematic diagram of packet aggregation method described in the embodiment of the present invention, as shown in figure 15, comprises the following steps:
Step 1001, client sends to service server and adds grouping request, the request of service server to user is authorized and is generated an authorization code, and client obtains and adds grouping authority, and generation grouping information and the personal authority corresponding with described grouping information are signed.
Step 1002, described grouping information and described personal authority signature are encapsulated into heartbeat packet by client, and described heartbeat packet is sent to access server.
Step 1003, after described access server receives heartbeat packet, resolve described heartbeat packet, the Packet State of the described user grouping information in described heartbeat packet and self stored is compared, judge that user asks to change the current Packet State of user, send to packet aggregation server and add grouping request;
Here, if described access server does not receive heartbeat packet, then can continue when client sends next heartbeat packet to perform step 1003.
Step 1004, packet aggregation server carries out authentication according to the authorization code that described service server generates to described request, after authentication is passed through, user is added grouping after receiving described grouping request;
Here, if user is first add this grouping, grouping information is sent to grouping management server by packet aggregation server.
Step 1005, after user adds grouping, receives message in grouping.
Step 1006, client sends the request exiting grouping information to access server.
Step 1007, after described access server receives described request, sends to packet aggregation server and exits request.
Step 1008, described packet aggregation server performs and exits operation, makes user exit grouping;
Here, after user exits grouping, no longer receive message in grouping.
After execution above-mentioned steps, business side sends request to grouping management server, completes broadcasting service;
Wherein, the request that described business side sends comprises chatting service, gift giving service etc.
Realize the system composition structural representation of above-mentioned application scenarios, as shown in figure 16, comprising: grouping management server 211, grouping service 212, access server 213 and client 214; Described client comprises: the electronic equipments such as mobile terminal, panel computer, laptop computer.
Here, it should be added that, server involved in above-described embodiment can be this electronic equipment of PC, can also be as PAD, panel computer, can also be intelligent mobile terminal as this in mobile phone at this mancarried electronic aid of laptop computer, is not limited to description here; Server at least comprises the database for storing data and the processor for data processing, or comprises the storage medium be arranged in server or the storage medium independently arranged.
Wherein, for the processor for data processing, when performing process, microprocessor, central processing unit (CPU can be adopted, Central Processing Unit), digital signal processor (DSP, DigitalSingnal Processor) or programmable logic array (FPGA, Field-Programmable Gate Array) realization; For storage medium, comprise operational order, this operational order can be computer-executable code, realizes each step in the invention described above embodiment information processing method flow process by described operational order.
Described server 32 as hardware entities an example as shown in figure 17.Described device comprises processor 111, storage medium 112 and at least one external communication interface 113; Described processor 111, storage medium 112 and external communication interface 113 are all connected by bus 114.
Here it is to be noted: the description relating to server entry above, it is similar for describing with said method, and the beneficial effect with method describes, and does not repeat.For the ins and outs do not disclosed in server of the present invention, please refer to the description of the inventive method embodiment.
In several embodiments that the application provides, should be understood that disclosed equipment and method can realize by another way.Apparatus embodiments described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, maybe can be integrated into another system, or some features can be ignored, or do not perform.In addition, the coupling each other of shown or discussed each part or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location; Both can be positioned at a place, also can be distributed in multiple network element; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can all be integrated in a processing unit, also can be each unit individually as a unit, also can two or more unit in a unit integrated; Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: movable storage device, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. various can be program code stored medium.
Or, if the above-mentioned integrated unit of the present invention using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprises some instructions and performs all or part of of method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server or the network equipment etc.).And aforesaid storage medium comprises: movable storage device, ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (16)

1. a packet aggregation method, is characterized in that, described method comprises:
Receive the first operation;
Respond described first operation, generate the first information and the personal authority information corresponding with the described first information, the described first information and described personal authority information are used for adding or exit the first group;
The described first information and described personal authority Information encapsulation are entered in the first request message;
Described first request message is meet preset strategy with the type of message periodically sent;
Send described first request message, to ask to add or exit described first group.
2. method according to claim 1, is characterized in that, described preset strategy comprises: the strategy often reaching the scheduled time or periodically send according to predeterminated frequency.
3. method according to claim 1 and 2, is characterized in that, described method also comprises: all users in described first group receive message in grouping;
In described grouping, message makes user add by server according to the described first information and described personal authority information or exits described first group, and after upgrading the current Packet State of user, Trigger message pushes and obtains.
4. method according to claim 1 and 2, it is characterized in that, the described generation first information, comprise: to server for authentication to obtain the grouping authority information adding or exit described first group, authentication is by the rear generation first information and the personal authority information corresponding with the described first information.
5. a client, is characterized in that, described client comprises: the first receiving element, the first response unit, the first generation unit, encapsulation unit and the first transmitting element; Wherein,
Described first receiving element, for receiving the first operation;
Described first response unit, for responding described first operation;
Described first generation unit, for generating the first information and the personal authority information corresponding with the described first information; The described first information and described personal authority information are used for adding or exit the first group;
Described encapsulation unit, for entering in the first request message by the described first information and described personal authority Information encapsulation; Described first request message is meet preset strategy with the type of message periodically sent;
Described first transmitting element, for sending described first request message, to ask to add or exit described first group.
6. client according to claim 5, it is characterized in that, described preset strategy comprises: the strategy often reaching the scheduled time or periodically send according to predeterminated frequency.
7. client according to claim 5 or 6, is characterized in that, described client also comprises: the second receiving element, for receiving message in the grouping in the first group;
In described grouping, message to be added according to the described first information and described personal authority information by server or exits described first group, and after upgrading the current Packet State of user, Trigger message pushes and obtains.
8. client according to claim 6 or 7, it is characterized in that, described first generation unit, specifically for adding or exit the grouping authority information of described first group with acquisition to server for authentication, authentication is by the rear generation first information and the personal authority information corresponding with the described first information.
9. a packet aggregation method, is characterized in that, described method comprises:
Receive the first request message;
Detect that described first request message is meet preset strategy with the type of message periodically sent;
From described first request message, parse the first information and the personal authority information corresponding with the described first information, the described first information and described personal authority information are used for adding or exit the first group;
Obtain the second local information, the described first information and described second information are compared, obtains comparison result; The information content of described second information is different from the described first information;
Judge that user asks to change the current Packet State of user according to described comparison result, according to the described first information and described personal authority information, user added or exit described first group, upgrading the Packet State that user is current.
10. method according to claim 9, is characterized in that, described preset strategy comprises: the strategy often reaching the scheduled time or periodically send according to predeterminated frequency.
11. methods according to claim 9 or 10, it is characterized in that, described method also comprises: server makes user add described first group according to the described first information and described personal authority information, after upgrading the current Packet State of user, Trigger message pushes message in grouping to all users in described first group.
12. methods according to claim 9 or 10, is characterized in that, describedly according to the described first information and described personal authority information, user are added or exit described first group, comprising:
According to the authorization code identification prestored, whether the first request message is processed, and obtains recognition result;
Judge that described first request message can be processed according to described recognition result, make user add the first group or exit the first group according to the described first information and described personal authority information.
13. 1 kinds of servers, is characterized in that, described server comprises: the second receiving element, detecting unit, resolution unit, comparing unit and processing unit; Wherein,
Described second receiving element, for receiving the first request message;
Whether described detecting unit is meet preset strategy with the type of message periodically sent for detecting described first request message;
Described resolution unit, for detecting that at described detecting unit described first request message is when meeting preset strategy with the type of message periodically sent, from described first request message, parse the first information and the personal authority information corresponding with the described first information, described first solicited message is used for adding or exit the first group;
Described comparing unit, for obtaining the second local information, comparing the described first information and described second information, obtaining comparison result; The information content of described second information is different from the described first information;
Described processing unit, for judging that according to described comparison result user asks to change the current Packet State of user, making user add according to the described first information and described personal authority information or exiting described first group, upgrading the Packet State that user is current.
14., according to server described in claim 13, is characterized in that, described preset strategy comprises: the strategy often reaching the scheduled time or periodically send according to predeterminated frequency.
15. according to claim 13 or 14 server, it is characterized in that, described server also comprises push unit, for making user add described first group at processing unit according to the described first information and described personal authority information, after upgrading the current Packet State of user, Trigger message pushes message in grouping to all users in described first group.
16. according to claim 13 or 14 server, it is characterized in that, described processing unit, specifically for whether being processed according to the first request message described in the authorization code identification that prestores, obtaining recognition result;
Judge that described first request message can be processed according to described recognition result, make user add the first group or exit the first group.
CN201510150354.9A 2015-03-31 2015-03-31 Grouping aggregation method, client-side and server Pending CN104735076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510150354.9A CN104735076A (en) 2015-03-31 2015-03-31 Grouping aggregation method, client-side and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510150354.9A CN104735076A (en) 2015-03-31 2015-03-31 Grouping aggregation method, client-side and server

Publications (1)

Publication Number Publication Date
CN104735076A true CN104735076A (en) 2015-06-24

Family

ID=53458511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510150354.9A Pending CN104735076A (en) 2015-03-31 2015-03-31 Grouping aggregation method, client-side and server

Country Status (1)

Country Link
CN (1) CN104735076A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254084A (en) * 2016-03-07 2016-12-21 上海驴徒电子商务有限公司 Group chat paradigmatic system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1149919A (en) * 1995-03-30 1997-05-14 摩托罗拉公司 Method and system for remote precedure call via unreliable communication channel using multiple retransmission timer
CN1482771A (en) * 2002-09-09 2004-03-17 腾讯科技(深圳)有限公司 Method for implementing network communication by identifying one user group with one number
CN101304361A (en) * 2007-05-09 2008-11-12 索尼株式会社 Communication system, information management device and method, and information processing device and method
CN103345361A (en) * 2013-06-26 2013-10-09 腾讯科技(北京)有限公司 Group joining method and relevant devices and systems
CN103731435A (en) * 2014-01-22 2014-04-16 南京恒知讯科技有限公司 Method and system for implementing social networking group member identity verification mechanism

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1149919A (en) * 1995-03-30 1997-05-14 摩托罗拉公司 Method and system for remote precedure call via unreliable communication channel using multiple retransmission timer
CN1482771A (en) * 2002-09-09 2004-03-17 腾讯科技(深圳)有限公司 Method for implementing network communication by identifying one user group with one number
CN101304361A (en) * 2007-05-09 2008-11-12 索尼株式会社 Communication system, information management device and method, and information processing device and method
CN103345361A (en) * 2013-06-26 2013-10-09 腾讯科技(北京)有限公司 Group joining method and relevant devices and systems
CN103731435A (en) * 2014-01-22 2014-04-16 南京恒知讯科技有限公司 Method and system for implementing social networking group member identity verification mechanism

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254084A (en) * 2016-03-07 2016-12-21 上海驴徒电子商务有限公司 Group chat paradigmatic system

Similar Documents

Publication Publication Date Title
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
CN110120970B (en) Data processing method and device based on Internet of vehicles and gateway system
CN112714158B (en) Transaction processing method, relay network, cross-link gateway, system, medium and equipment
CN104994466A (en) Multiple playing device bluetooth connection control method and device and music playing system
CN103414589A (en) Method and device for managing resource information
CN111586629A (en) Vehicle remote diagnosis method in ZigBee mode and related device
CN111614548A (en) Message pushing method and device, computer equipment and storage medium
CN110582998A (en) Group communication method and device, computer storage medium and computer equipment
CN113904847A (en) Cloud platform binding method, system, equipment and medium of Internet of things card
EP3128715B1 (en) Resource creation method and apparatus
EP4030776A1 (en) Method and apparatus for triggering vomci function from olt to send omci messages
EP3833153B1 (en) Network connection methods and devices
CN114489690A (en) Distributed system deployment method and device, electronic equipment and storage medium
CN113791792A (en) Application calling information acquisition method and device and storage medium
CN104735076A (en) Grouping aggregation method, client-side and server
US20230198648A1 (en) Time synchronization method, device and apparatus, and storage medium
CN111404897A (en) Message distribution method and device, storage medium and electronic equipment
CN110134461B (en) Universal processing method and device for data interaction
US20170169239A1 (en) Method for file synchronization, the receiver equipment and systems
US20180219727A1 (en) Method and apparatus for terminal configuration management
CN109544161B (en) Block chain data processing method, system and equipment and serial number generation method
CN112995095A (en) Data processing method, device and computer readable storage medium
CN114157725B (en) Method, device, server, electronic equipment and storage medium for equipment linkage
CN110971716A (en) Address configuration method, device, system and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150624

RJ01 Rejection of invention patent application after publication