Disclosure of Invention
The embodiment of the invention provides a method for controlling the user speaking right in an MCPTT system, which is used for reducing the load of an MCPTT server.
In order to achieve the purpose, the invention adopts the following technical scheme.
A method for controlling the user's talk right in an MCPTT system comprises the following steps:
the MCPTT server establishes a user classification and a speaking right group according to an application strategy, different speaking right request authorities are respectively granted to users of different classes, all the users are respectively classified into the speaking right group, and all the users in the same speaking right group belong to the same class;
the MCPTT server sends the class and the speaking right group to which each user belongs to each user, and the terminal of each user carries out speaking right request operation in the belonging speaking right group according to the speaking right request authority corresponding to the class of the belonging user.
Further, the MCPTT server creates a user classification and a talk right group according to an application policy, grants different talk right request authorities to users of different classes, and classifies each user into the talk right group, wherein all users in the same talk right group belong to the same class, including:
the user is attached to the MCPTT group, the group management server of the MCPTT group sends MCPTT group information to the MCPTT server, and the group information comprises an MCPTT group ID, an MCPTT user ID list and user information related to the application strategy and the preferred strategy;
the MCPTT server divides users in the MCPTT group into two types of users and a plurality of speaking right groups according to the received MCPTT group information, one type of users can directly send requests to the speaking right control server when requesting speaking rights and receive authorization responses or refuses, one type of users form M speaking right groups, and M is a positive integer; when requesting the speaking right, the second class users need to send speaking right request information to the group leader of the speaking right group, and receive group leader indication, and the second class users form N speaking right groups, wherein N is a positive integer.
Further, the MCPTT server sends the category and the talk right group to which each user belongs to each user, including:
the MCPTT server sends the class and the speaking right group to which each user belongs to the group management server, and the group management server sends the class and the speaking right group to which each user belongs to each user.
Further, the performing of the speaking right request operation in the belonging speaking right group by the terminal of each user according to the speaking right request authority corresponding to the belonging user category includes:
in the speaking right group formed by each class of users, the group members determine the object of sending the speaking right request message as a speaking right control server according to the user types of the group members, and the user terminals of the group members send the speaking right request message to the speaking right control server;
after receiving the speaking right request message sent by the user terminal of each group member, the speaking right control server arbitrates all the speaking right requests according to the preferred strategy, and respectively sends an arbitration result to the user terminal of each group member, wherein the arbitration result comprises that the speaking right request is accepted and is pre-granted to the speaking right; alternatively, the floor request is denied.
Further, the performing of the speaking right request operation in the belonging speaking right group by the terminal of each user according to the speaking right request authority corresponding to the belonging user category includes:
in the speaking right group formed by each two types of users, the user terminals of the group members search the user ID of the group leader according to the information of the speaking right group and send speaking right request information to the group leader, after the group leader receives the speaking right request information sent by the user terminals of each group member, the group leader arbitrates the speaking right requests of all the group members according to the in-group preference strategy, sends a speaking right request rejection information to the group member whose arbitration result is rejected, and forwards the speaking right request information of the group member whose arbitration result is accepted to the speaking right control server;
after receiving the speaking right request message forwarded by the group leader, the speaking right control server arbitrates all speaking right requests according to a preferred strategy and sends an arbitration result of the group members to the group leader, wherein the arbitration result comprises that the speaking right request is accepted and is pre-granted to the speaking right; or the speaking right request is refused, and the group leader sends the arbitration result of the group member to the user terminal of the group member.
Further, the method further comprises the following steps:
in a multi-MCPTT system comprising slave MCPTT systems and a master MCPTT system, a speaking right control server of each slave MCPTT system selects a user with a pre-granted speaking right through a preferred strategy, and forwards a speaking right request of the user with the pre-granted speaking right to a speaking right control server of the master MCPTT system; the speaking right control server of the main control MCPTT system arbitrates speaking right requests of all users who pre-grant speaking right according to a preferred strategy, and determines the users who finally grant speaking right according to an arbitration result;
if the user who finally grants the speaking right is in the master control MCPTT system, the speaking right control server of the master control MCPTT system directly sends a speaking right granting message to the terminal of the user who finally grants the speaking right, and sends a speaking right request refusing message to the speaking right control servers of all slave MCPTT systems, and the speaking right control servers of all the slave MCPTT systems forward the speaking right request refusing message to the terminal of the user who pre-grants the speaking right;
if the user who finally grants the speaking right is in a certain slave MCPTT system, the speaking right control server of the master MCPTT system sends a speaking right granting message to the speaking right control server of the certain slave MCPTT system, the speaking right control server of the certain slave MCPTT system forwards the speaking right granting message to the terminal of the user who is selected to be granted with the speaking right in advance, the speaking right request rejection message is sent to the speaking right control servers of other slave MCPTT systems, the speaking right control servers of other slave MCPTT systems forwards the speaking right request rejection message to the terminal of the user who is selected to be granted with the speaking right in advance, and the speaking right control server of the master MCPTT system also sends the speaking right request rejection message to the terminal of the user who is selected to be granted with the speaking right in advance.
Further, the preferred strategy includes: the user controls at least one of role, speaking priority and user application scene.
It can be seen from the technical solutions provided by the embodiments of the present invention that, in the embodiments of the present invention, different speaking right request authorities are respectively granted to users of different categories by creating user classifications and speaking right groups, each user is respectively classified into the speaking right groups, the MCPTT server arbitrates the speaking right request of the user based on a preferred strategy, and the MCPTT server only needs to process signaling of the speaking right pre-granted user, so as to effectively reduce the load of the MCPTT server, avoid network congestion, be applicable to a scenario where many users in railway service demand simultaneously issue speaking right requests, and ensure high reliability and low time delay of railway service implementation.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or coupled. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
For the convenience of understanding the embodiments of the present invention, the following description will be further explained by taking several specific embodiments as examples in conjunction with the drawings, and the embodiments are not to be construed as limiting the embodiments of the present invention.
Example one
The embodiment of the invention provides a method for controlling the speaking right of a multi-MCPTT system applicable to LTE-R, aiming at providing a scheme for reducing the load of an MCPTT server and preventing network congestion. In the method, an MCPTT server creates user classification and a speaking right group according to an application strategy, different speaking right request authorities are respectively granted to users of different classes, all the users are respectively classified into the speaking right group, and all the users in the same speaking right group belong to the same class. Then, the MCPTT server sends the class and the speaking right group to which each user belongs to each user, and the terminal of each user carries out speaking right request operation in the belonging speaking right group according to the speaking right request authority corresponding to the belonging user class.
The processing flow of the method for realizing the talk right control of the single-group users in the multi-MCPTT system provided by the embodiment of the invention is shown in figure 1, and comprises the following processing steps:
step 11, the user attaches to a certain MCPTT group, the group management server provides the MCPTT server with own group information, including MCPTT group ID and MCPTT user ID list, and user information related to the application strategy and the preferred strategy.
And step 12, the MCPTT server divides the users in the original group into two types of users and a plurality of talk right groups according to application strategies (such as user control roles, railway sectional application scenes and the like), and respectively grants different talk right request authorities to the users of different types.
When one class of users requests the right of talk, the users can directly send requests to the right of talk control server and receive authorization response or refusal, and one class of users can have M right of talk groups (M is a positive integer); when requesting the right of speech, the second class user needs to send a right of speech request message to the group leader of the right of speech group, and receives an indication, and the second class user can have N right of speech groups (N is a positive integer).
The speaking right groups are divided according to the preferred strategies, such as user control roles, speaking right priority, user application scenes in railway sections and the like. All users in a talk burst belong to the same category.
The speaking right group leader is selected according to the preferred strategy and is responsible for receiving the speaking right request message of the group member, carrying out in-group arbitration according to the preferred strategy, determining the in-group speaking right pre-granted member, forwarding the speaking right request message to the speaking right control server, and simultaneously sending a speaking right refusing message to the refused group member; in the talk burst group, the group leader has the highest talk burst.
The speaking right pre-granting users, i.e. the users who should obtain the speaking right most selected by the preferred strategy arbitration in the speaking right group, and the users who should obtain the speaking right most in the system selected by each MCPTT system speaking right control server according to the preferred strategy arbitration are called speaking right pre-granting users.
The MCPTT server sends the class and the speaking right group to which each user belongs to the group management server, and the group management server sends the class and the speaking right group to which each user belongs to each user.
And step 13, the user receives the user class division and the speaking right group division which are carried out by the MCPTT server according to the preferred strategy, and determines the user class and the speaking right group information of the user.
In the speaking right group formed by each class of users, the group members determine the object of sending the speaking right request message as a speaking right control server according to the class of the users, send the speaking right request message to the group members, and wait for receiving the arbitration result of the speaking right control server according to the preferred strategy;
in the talk right group formed by each two types of users, the group member finds out the user ID of the group leader according to the information of the talk right group, sends the talk right request information to the group leader, and waits for receiving the arbitration result of the group leader according to the preferred strategy, namely, the group leader sends a talk right rejection request to the rejected group member, sends a talk right pre-grant message to the non-rejected group member, and forwards the talk right request message to the talk right control server.
When receiving the speaking right request from the first class user or the speaking right request forwarded by the speaking right group leader of the second class user, the speaking right control server carries out speaking right arbitration according to a preferred strategy (such as speaking right priority and the like), sends a speaking right rejection request to the rejected user, determines the user to which the speaking right is pre-granted, and sends a speaking right pre-granted message to the user.
The processing of the method for controlling the talk right between a master MCPTT system and a slave MCPTT system in the multi-MCPTT system provided by the embodiment of the invention is shown in figure 2, and comprises the following processing steps:
step 1, the speaking right control server of each MCPTT system (shown in figure 1) selects the users with pre-granted speaking right through a preferred strategy.
And step 2, the speaking right control servers of all the slave MCPTT systems forward the speaking right requests of the users with pre-granted speaking rights to the speaking right control server of the master MCPTT system, and the speaking right control server of the master MCPTT system carries out arbitration again according to the preferred strategy.
And 3, the speaking right control server of the main control MCPTT system carries out reauthorization on speaking right requests of all users who pre-grant speaking rights according to the preferred strategy, and determines the users who finally grant speaking rights according to an arbitration result.
And 4, if the user who finally grants the speaking right is in the master control MCPTT system, the speaking right control server of the master control MCPTT system directly sends a speaking right granting message to the terminal of the user who finally grants the speaking right, and sends a speaking right request refusing message to the speaking right control servers of all slave MCPTT systems, and the speaking right control servers of all the slave MCPTT systems forward the speaking right request refusing message to the terminal of the user who pre-grants the speaking right.
And 5, if the user who finally grants the talk right is in a certain slave MCPTT system, the talk right control server of the master MCPTT system sends a talk right granting message to the talk right control server of the certain slave MCPTT system, the talk right control server of the certain slave MCPTT system forwards the talk right granting message to the terminal of the user who is selected to be granted with the talk right in advance, the talk right request rejection message is sent to the talk right control servers of other slave MCPTT systems, the talk right control servers of other slave MCPTT systems forwards the talk right request rejection message to the terminal of the user who is selected to be granted with the talk right in advance, and the talk right control server of the master MCPTT system also sends the talk right request rejection message to the terminal of the user who is selected to be granted with the talk right in advance.
And 6, completing the speaking right granting, and starting speaking by the speaking right participant who obtains the speaking right.
Example two
Fig. 3 is a flowchart of arbitration of a preferred policy in a class ii talk group according to an embodiment of the present invention, where the processing procedure includes:
assume that there are three users in the talk burst, which are the first user, the second user, and the third user. Wherein the first user is a speaking right group leader, and the second user and the third user are group members. The three users respectively initiate speaking right requests by a first speaking right participant, a second speaking right participant and a third speaking right participant of the user terminal. The second talk right participant and the third talk right participant respectively initiate talk right requests to the first talk right participant, and the first talk right participant rejects the talk right requests of the second talk right participant and the third talk right participant. The first speaking right participant sends a speaking right request to the speaking right control server, and the speaking right control server informs the first speaking right participant to obtain the pre-granted speaking right and waits for further notification of the speaking right control server.
Fig. 4 is a flowchart of arbitration of a preferred policy in a class ii talk group according to an embodiment of the present invention, where the processing procedure includes:
assume that there are three users in the talk burst, which are the first user, the second user, and the third user. Wherein the first user is a speaking right group leader, and the second user and the third user are group members. The three users respectively initiate speaking right requests by a first speaking right participant, a second speaking right participant and a third speaking right participant of the user terminal. The second talk right participant and the third talk right participant respectively initiate talk right requests to the first talk right participant, the first talk right participant carries out talk right arbitration according to the priority strategy in the group, and the talk right requests of the third talk right participant are refused. The first talk right participant sends a talk right request of the second talk right participant to the talk right control server, the talk right control server informs the first talk right participant that the second talk right participant obtains the pre-granted talk right, the first talk right participant informs the second talk right participant to obtain the pre-granted talk right, and the further notification of the talk right control server is waited. During this process, the talk burst leader does not initiate a talk burst request.
EXAMPLE III
Fig. 5 is a schematic diagram of a user configuration in a multi-MCPTT system according to an embodiment of the present invention, and fig. 6 is a schematic diagram of an implementation process of a talk right control of a multi-group user in the multi-MCPTT system shown in fig. 5. Assume that there are two MCPTT systems, the first MCPTT system is the master system and the second MCPTT system is the slave system.
The first speaking right group and the second speaking right group both belong to a first MCPTT system, and a speaking right control server in the system is a first speaking right control server. The first talk right participant user and the second talk right participant user belong to a first talk right group and belong to a same class of users; the third speaking right participant user belongs to the second speaking right group, is a class II user, is the group leader of the second speaking right group, and forwards a speaking right request message to the speaking right control server for the in-group speaking right pre-awarding user (the fourth speaking right participant).
The second MCPTT system is similar to the first MCPTT system, and comprises two types of users and a plurality of speaking right groups, wherein the user initiating the speaking right request to the second speaking right control server can be a first type of user or a group leader of the speaking right group consisting of the second type of users, and forwards the speaking right request message pre-granted to the user by the speaking right in the group. For simplicity, it is assumed that only the fifth floor participant in the second MCPTT system initiates the group call request.
In summary, in the embodiments of the present invention, a user classification and a talk right group are created, different talk right request authorities are granted to users of different classes, and each user is divided into talk right groups, an MCPTT server arbitrates the talk right requests of the users based on a preferred policy, and the MCPTT server only needs to process signaling of the talk right pre-granted users, so as to effectively reduce the load of the MCPTT server, avoid network congestion, and be applicable to a scenario where many users in railway service demands issue talk right requests at the same time, thereby ensuring high reliability and low latency of railway service implementation.
Those of ordinary skill in the art will understand that: the figures are merely schematic representations of one embodiment, and the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, they are described in relative terms, as long as they are described in partial descriptions of method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.