Summary of the invention
Technical problem to be solved by this invention is to provide end side and the synchronous method of network side maintenance group information in a kind of trunked communication system, with the consistency of the group information of end side and network side correspondence in the maintenance group system.
The invention provides end side and the synchronous method of network side maintenance group information in a kind of trunked communication system, comprise the steps:
Communication terminal generates a random number, and calculates by the group information of this random number and each group according to the group information of end side storage, the verification of generation end side with;
Communication terminal is with described random number and end side verification and be sent to network side;
Network side is according to the random number received, and the group information that successfully upgrades by identical algorithms and network side calculates, the verification of generation network side with;
Network side is with the end side verification that receives with the network side verification that calculates with compare;
When comparative result is inconsistent, all group informations of having stored of network side notice terminal deletion, and initiate the renewal of all group informations of this terminal attaching.
Wherein, in the described comparison step, when comparative result is consistent, more comprise the steps:
Whether the network side inspection also has the group information that needs renewal;
If have, then initiate group updating, if do not have, then do not initiate group updating.
In described generation random number and end side verification and the step, if end side is not stored any group information, then random number of Sheng Chenging and verification and be zero; If end side stores group information, then the random number of Sheng Chenging is the non-zero random number.The random number and the end side verification of receiving when network side and when all being zero further comprises the steps:
When terminal when network side is the group member of one or more groups, initiate group information updating by network side; Otherwise do not initiate group information updating.
Described network side is during without any group information, the group information of having stored on all terminals of network side notice terminal deletion.
The present invention has overcome the corresponding conforming shortcoming of all group informations of this terminal of all group informations and network side that can't definitely guarantee end side in the existing group system, increased the method for the group information updating of a kind of verification comparison method and correspondence, guaranteed that end side and network side group information are synchronous in the trunked communication system, guaranteed the integrality and the correctness of end side group information.
Embodiment
Figure 1 shows that end side and network side in the trunked communication system of the present invention keep the flow chart of the synchronous method of group information, comprise the steps:
Communication terminal generates a random number, and calculates by the group information of this random number and each group according to the group information of end side storage, generates end side verification and (step 101);
Communication terminal is with described random number and end side verification and be sent to network side (step 102);
Network side is according to the random number of receiving, the group information that successfully upgrades by identical algorithms and network side calculates, and generates network side verification and (step 103);
Network side is with the end side verification that receives with the network side verification that calculates with compare (step 104);
When comparative result is inconsistent, all group informations of having stored of network side notice terminal deletion, and initiate the renewal (step 105) of all group informations of this terminal attaching.
In the describedcomparison step 104, when comparative result is consistent, more comprise the steps:
Whether the network side inspection also has the group information that needs renewal;
If have, then initiate group updating, if do not have, then do not initiate group updating.
Described generation random number and end side verification andstep 101 in, if end side is not stored any group information, then random number of Sheng Chenging and verification and be zero; If end side stores group information, then the random number of Sheng Chenging is the non-zero random number.The random number and the end side verification of receiving when network side and when all being zero further comprises the steps:
When terminal when network side is the group member of one or more groups, initiate group information updating by network side; Otherwise do not initiate group information updating.
Described network side is during without any group information, the group information of having stored on all terminals of network side notice terminal deletion.
Figure 2 shows that and realize an exemplary group system network frame figure required for the present invention.Wherein, trunking dispatching subsystem is called the dispatch service subsystem again, and trunking dispatching subsystem comprises cluster authentication server (comprising group registration database, security server, deployment position server) and trunking dispatch server (claiming colony dispatching control centre again).Trunking dispatching subsystem and switching subsystem are respectively by IP (Internet Protocol, Internet protocol) network and Signaling System Number 7 net link with base station sub-system, base station sub-system comprises BSC (base station controller), BTS (base station transceiver), DC (dispatching client) and PCF (Packet Control Function) equipment, also the function of dispatching client and grouping control can be integrated in base station controller.
Terminal among Fig. 2 all is a wireless terminal.Wherein, terminal is after producing random number and calculating end side verification and A, random number and end side verification and A be placed in the location update message send to base station sub-system by the technology of eating dishes without rice or wine, base station sub-system sends to trunking dispatching subsystem with this location update message by carrier network, is that the authentication server in the trunking dispatching subsystem is handled this location update message at last.Network side verification and B that the random number that authentication server is received according to random number of receiving and utilization calculates determine whether group information updating and initiate concrete group information updating.The position update response information that authentication server sends, various group information updating message etc. all are to arrive colony terminal by dispatch server at last to base station sub-system, are handled by terminal.Location update message that terminal is sent and group information updating results messages all are through eating dishes without rice or wine base station sub-system, arrive trunking dispatching subsystem at last, being handled by authentication server.
Among the present invention terminal produce random number and calculation check and and these two values are sent to the message that authentication server can adopt various ways, common has:
1. utilize existing message in the group system, as location update message etc.;
2. design a new information separately, carry in the message verification and, random number and authentication association attributes, described authentication association attributes be terminal provide can prove it oneself is the information of legal terminal, IMSI (International Mobile SubscriberIdentity such as wireless terminal, IMSI International Mobile Subscriber Identity) and ESN (Electronic Serial Number, electronics string number) etc.
Among the present invention terminal produce random number and calculation check and and these two values are sent to the trigger condition of authentication server or mode can have multiplely, common has:
1. when starting shooting operation on the terminal;
2. the terminal timing then, be set to 10 hours such as group's information synchronization timer on the terminal, so when timer then, promptly apart from produced last time the random number calculation check and time in the moment when being 10 hours, terminal produce once more verification and and calculation check and;
The time of She Dinging then, such as the time of setting be every day 12 noon and every afternoons 5 point, if terminal utilize clock on the terminal to judge to have arrived 12 noon or afternoons 5 point, so just produce the random number calculation check and;
4. user's operating terminal triggers.
Each colony terminal has a plurality of group informations among the present invention in authentication server, and each group information all has updating mark, and updating mark has two values, and they are: successfully upgrade and need and upgrade.The group of success renewal is meant the up-to-date information of having stored this group on the terminal, and the group that needs to upgrade is meant recently just increase, deletion or modification, terminal is also done corresponding increase to corresponding group, deletion or modification action.
After authentication server is received the random number and end side verification and A that terminal is sent among the present invention, have multiple processing mode according to the different situations of random number and end side verification and A.They are:
1. if random number and end side verification and A are zero, illustrate so on the terminal without any group information, if this moment authentication server on this terminal do not belong to yet any group so authentication server can not initiate group information updating, otherwise authentication server will be initiated group information updating, with all group information updatings of terminal attaching on terminal;
If 2. have at least among random number and end side verification and the A one non-vanishing, have 3 kinds of situations this moment:
A. this terminal is without any group on the authentication server, and authentication server can be notified all group informations that terminal deletion has been stored so;
B. this terminal has some groups on the authentication server, the network side verification and the B that group and random number calculate that successfully upgrade of terminal correspondence equals end side verification and A on the authentication server, if counterpart terminal has the group that needs renewal on the authentication server at this moment, the group updating that so just will need to upgrade is to terminal, otherwise authentication server is not initiated group information updating;
C. this terminal has some groups on the authentication server, the verification and the B that group and random number calculate that successfully upgrade of terminal correspondence is not equal to verification and A on the authentication server, and authentication server was changed to the updating mark of all ownership groups of counterpart terminal and needed to upgrade this moment.Authentication server is initiated group information updating then, and these group information updatings are arrived terminal.
The inconsistent situation of group information of group information and network side counterpart terminal has multiplely on the terminal, and Fig. 3, Fig. 4 and Fig. 5 have illustrated several typical situations respectively.Terminal produce random number and the verification of computing terminal side and and also have mode such as top having stated that these two values send to authentication server multiple, Fig. 3 here adopts the mode of start position renewal among Fig. 4 and Fig. 5.
Fig. 3 is that an exemplary realization wireless terminal that utilizes the present invention to carry out has been stored some group informations, and this terminal is having the end side under some group information situations to keep and the synchronous flow chart of authentication server group information on the authentication server, concrete steps are as follows:
(step 301) communication terminal is when start, be checked through and oneself stored some group informations, produce the random number of a non-zero, group information with each group of random number and storage calculates verification and A then, in sending to the location update request message of authentication server, carry random number and verification and A, execution instep 302;
(step 302) authentication server upgrades response message to the end side loopback location, calculate verification and B with being masked as each group information that success upgrades in the random number received and the network side simultaneously, judge whether verification and A equal verification and B, when unequal, it is inequality to illustrate that the group information stored on the terminal and authentication server are masked as the group information that successfully upgrades, execution instep 304, otherwise execution instep 303;
That (step 303) authentication server takes out terminal attaching and the group information of respective flag for needing to upgrade, if got group information, execution instep 305, otherwise do not need to upgrade;
All groups and take out all group informations of terminal attaching, execution instep 305 on (step 304) authentication server notice terminal deletion terminal;
The group information that (step 305) authentication server will need to upgrade is formed one or more group updating messages and is sent to terminal, execution instep 306;
(step 306) authentication server receives one or more group information updating results messages of sending from terminal, take out and indicate the group that success is upgraded in the message, authentication server is masked as these groups and upgrades, be failure if upgrade the result, corresponding group then is set to be masked as and to need to upgrade, after handling all renewal results messages, more new technological process finishes.
Fig. 4 is that the end side group information that an exemplary realization wireless terminal utilizing the present invention to carry out is not stored under any group information situation keeps and the synchronous flow chart of network side, and implementation step is as follows:
(step 401) communication terminal was checked through oneself and does not store any group information in when start, in location update request message, carry all be zero random number and verification and, execution instep 402;
(step 402) authentication server is put to upgrade to the terminal return and is replied, and takes out all group informations of terminal attaching simultaneously, has judged whether group information, if execution instep 403 is arranged, otherwise the flow process end does not need to upgrade;
The group information that (step 403) authentication server will need to upgrade is formed one or more group updating messages and is sent to terminal, execution instep 404;
(step 404) authentication server receives one or more group information updating results messages of sending from terminal, take out and indicate the group that success is upgraded in the message, authentication server is masked as these groups and upgrades, be failure if upgrade the result, corresponding group then is set to be masked as and to need to upgrade, after handling all renewal results messages, more new technological process finishes.
Fig. 5 is that an exemplary realization wireless terminal has been stored group information, but actual this terminal keeps and the synchronous flow chart of authentication server group information without any the end side under the group information situation at authentication server, and implementation step is as follows:
(step 501) communication terminal is when start, be checked through and oneself stored some group informations, produce the random number of a non-zero, then the group information of each group of random number and storage is calculated verification and, in location update request message, carry random number and verification and A, execution instep 502;
(step 502) authentication server sends position update response information to end side, and the while authentication server is judged terminal and do not belonged to any group at network side, the group information of storing on all terminals of notice terminal deletion, execution instep 503;
(step 503) authentication server is received the message that the deletion of sending from terminal is finished, and more new technological process finishes.
Listed several wireless terminals above and come the whether consistent inspection of triggering terminal side with group information on the authentication server by in existing start location update message, increasing random number and verification and attribute.Can adopt the mode that regularly sends a self-defined message every day for catv terminal, regularly refer to the definite moment that system or terminal are set described every day, as every mornings 8 point to authentication server.Described self-defined message refer to carry in the message verification and, the self-defining message of random number and authentication association attributes.
May in above-mentioned flow process, increase interacting message to the particular case of terminal place group or specific system.
In sum, the invention provides a kind of end side and network side in trunked communication system, realized and keep the synchronous method of group information, effectively guaranteed group's information integrity and correctness on the terminal.