Background technology
In 3-G (Generation Three mobile communication system), system resource is very valuable.The leakage of system resource not only can influence the performance of mobile communications network, even can cause the collapse of system.
Radio network controller in the 3-G (Generation Three mobile communication system) (RNC, Radio NetworkController) can distribute continually usually and discharge example resource, to realize subscriber equipment (UE, access UserEquipment) and release.
Traditional UE example resource testing mechanism is to realize by the two-way keepalive mechanism between case process, and promptly the case process both sides just send a keep-alive message at set intervals at interval mutually, to notify existing of the other side's local terminal example.As shown in Figure 1, keep-alive mainly comprises between the example that exists in the system:
(1) keep-alive between case process A and the case process B;
(2) keep-alive between case process C and the case process B;
(3) keep-alive between case process D and the case process B.
This keepalive mechanism example resource under normal circumstances can not occur and hang dead phenomenon, and this is to guarantee with regard to discharging self automatically by the keep-alive message (being that keep-alive is lost) that local terminal does not receive square end.But present this mechanism has just been made following a kind of hypothesis: even if occurred unusually, case process still can fully be released.And in fact; this keepalive mechanism is for a kind of abnormal conditions that occur and reckon without: even if judge that keep-alive having occurred loses; and also done releasing operation; and because some unknown causes cause not dischargeing case process in the middle of dispose procedure; so that example resource can not get normal release for a long time, is in ossified state, resource promptly occurs and hangs dead phenomenon (resource leakage); system can't detect this, thereby also just can't do further abnormality processing.Therefore, be necessary to provide a kind of mechanism to diagnose, find the dead situation of above-mentioned example resource extension, and can assist operating personnel to carry out releasing operation the dead case process of resource extension occurring.
Summary of the invention
Technical problem to be solved by this invention provides a kind of detection system and method for exception example resource, be intended to that there is exception example in the system of detecting and reports when system is under the abnormal conditions still effectively, in time handle for operating personnel, thus the stable operation of assurance communication network.
In order to solve the problems of the technologies described above, a kind of system that exception example resource is detected provided by the invention is applicable in the radio network controller (RNC) that this system comprises RNS and operation and maintenance sub system; RNS comprises a user equipment (UE) example control module, is used for creating and discharging the UE example; Operation and maintenance sub system contains the UE example detection module that is connected with UE example control module, is used to carry out the order that the UE example was created and discharged to UE example control module; Wherein:
UE example detection module is built-in with registration table, is used for creating and discharging the global identifier GID that the UE example procedure is preserved sign UE example, and preserves the item of information of UE example;
UE example detection module also is built-in with timer, is used for being created with dispose procedure at the UE example regularly detecting UE example item of information, creates overtime exception example to detect.
Further, UE example item of information comprises the creation-time of UE example;
The timing cycle of timer is set during the module initialization of UE example detection, start fixed cycle operator simultaneously, scanning UE example item of information when timer overflows is if the difference of the sweep time of UE example and its creation-time judges then that more than or equal to a set time section UE example is an exception example.
Further, the built-in timer of UE example detection module is reset the startup fixed cycle operator automatically when overflowing, or when overflowing by UE example detection module with its replacement and start fixed cycle operator.
Further, timer is one group of timing unit, and UE example item of information comprises that by UE example detection module be the identification number of the timing unit of UE example allocation;
UE example detection module is provided with a set time section when distributing timing unit be timing cycle, starts fixed cycle operator simultaneously; When timing unit overflowed, inquiring by the pairing UE example of the identification number of this timing unit that overflows in UE example item of information was exception example.
Further, the fixed cycle operator of UE example detection module termination timing unit when discharging the UE example.
In order to solve the problems of the technologies described above, a kind of detection method to exception example resource provided by the invention is applicable to that in the radio network controller (RNC), this detection method comprises step:
In the registration table of operation and maintenance sub system, increase user equipment (UE) example item of information;
RNS is created and is discharged in the process of UE example, and the GID of sign UE example is preserved or discharged to operation and maintenance sub system in registration table, and adds or deletion UE example item of information;
Creating and discharging in the process of UE example, operation and maintenance sub system regularly detects UE example item of information, when detecting when creating overtime exception example, takes to report the requisite measure of notice or suppressing exception example immediately.
Further, UE example item of information comprises the creation-time of UE example, operation and maintenance sub system periodically scans UE example item of information, if the difference of the sweep time of discovery UE example and its creation-time judges then that more than or equal to a set time section UE example is an exception example.
Further, it is the identification number of the timing unit of its distribution that the example item of information is included in when creating the UE example, operation and maintenance sub system is made as a set time section timing cycle of timing unit, when timing unit regularly overflowed, inquiring by the pairing UE example of the identification number of this timing unit that overflows in UE example item of information was exception example.
Further, operation and maintenance sub system starts fixed cycle operator when being UE example allocation timing unit, termination timing operation when the UE example discharges.
The present invention is based on the global identifier (GID, Global ID) of preserving sign UE among the RNC, increase recording of informations such as example creation-times, thereby reach the purpose that exception example resource is detected.And policy-flexible of the present invention is realized simple; Simultaneously, can not do any change to the existing mobile communication business basic procedure of realizing.
Embodiment
The detection system of exception example resource provided by the invention is applicable in the radio network controller (RNC) that this system comprises RNS and operation and maintenance sub system; RNS comprises UE example control module, is used for creating or discharging each UE example; Operation and maintenance sub system contains the UE example detection module that is connected with described UE example control module, is used to carry out the order that UE example control module is created and discharged; UE example detection module is built-in with registration table and timer, and in establishment of UE example and dispose procedure, the GID of sign UE example is preserved or discharged to this UE example detection module in registration table, and adds therein or deletion example item of information.UE example detection module detects the example resource information of creating in the registration table according to the fixed cycle operator of this timer, exist when detecting the exception example resource of creating overtime (difference that is detection time and example creation-time surpasses the certain hour section), then take to report measures necessary such as notice or suppressing exception example immediately.
The present invention may further comprise the steps the detection method of exception example resource:
In the registration table of operation and maintenance sub system, increase UE example item of information;
RNS is created and is discharged in the process of UE example, and the GID of sign UE example is preserved or discharged to operation and maintenance sub system in registration table; And creating and discharging in the process of UE example resource, add or deletion UE example item of information;
In above-mentioned establishment with discharge in the process of UE example, operation and maintenance sub system regularly detects UE example item of information, when detecting when creating overtime exception example, takes to report the requisite measure of notice or suppressing exception example immediately.
Below by specific embodiments and the drawings technique scheme of the present invention is described in detail.
Embodiment 1
Present embodiment is an example with TD-RNC (radio network controller of TD-SCDMA), will be used for TD-RNC the system principle diagram that exception example resource detects is illustrated among Fig. 2.
As seen from Figure 2, this system comprises RNS 100 and operation and maintenance sub system 200; Wherein: RNS 100 comprises UE example control module 110, is used for creating or discharging each UE example 120; Operation and maintenance sub system 200 contains the UE example detection module 210 that is connected with described UE example control module 110, is used to carry out the order that UE example control module is created and discharged; UE example detection module 210 is built-in with registration table internal memory 2101 and timer 2 102.
Example create and dispose procedure in, UE example detection module 210 is except preserving in the registration table or discharging the GID of sign UE example, also adds or deletes UE example item of information, is used to write down information such as UE example creation-time.
UE example detection module 210 is provided with the timing cycle of timer 2 102 when initialization.Before UE example control module 110 is created the UE example, start timer 2 102 fixed cycle operators earlier.Can be reset the startup fixed cycle operator automatically when timer 2 102 overflows, or by described UE example detection module with its replacement and start fixed cycle operator.
Creating and deleting in the UE example procedure, when timer 2 102 regularly overflows, UE example detection module 210 just removes to scan the UE example item of information in the registration table, whether inquiry exists is created overtime UE example, the difference that is current sweep time and example creation-time surpasses the certain hour section, for example 48 hours; Have such exception example if detect, then take measures necessary immediately, for example report and notify the attendant to handle, or the notice associated process discharges exception example or deletion.
The interaction diagrams of the detection method of the above-mentioned exception example resource of present embodiment specifically may further comprise the steps as shown in Figure 3:
Step S301: example detection module (being UE example detection module) power-up initializing, distribute the registration table memory field, the cycle detection time cycle to the scanning registration table is set simultaneously;
Step S302: when operation flow began, example control module (being UE example control module) was to example detection module application GID, example detection module assignment GID, and in registration table, preserve GID item information;
Step S303: the example control module is created the UE example resource as required, and the example detection module is information such as record instance creation-time in registration table;
Step S304: when operation flow finished, the example control module discharged example, corresponding example information in the example detection module deletion registration table;
Step S305: the example control module discharges corresponding GID information in the example detection module registration table;
Step S306: in above-mentioned example establishment and dispose procedure, the example detection module periodically scans registration table, creates overtime exception example existence if detect to have in the registration table, then takes operations necessary as reporting notice or suppressing exception example etc.
Embodiment 2
The difference of present embodiment and embodiment 1 only is: the timer 2 102 of the UE example detection module 210 among Fig. 2 also can be made up of one group of timing unit, as the timing unit group 2102 ' among Fig. 4; Wherein each timing unit is created and is provided with at a UE example, can be set to the timing cycle of timing unit the overtime time limit.When UE example control module 110 is created a UE example, for it distributes a timing unit, its identification number is recorded in the corresponding UE example of the registration table item of information, and starts its fixed cycle operator by UE example detection module 210; When UE example control module 110 discharges this UE example, stop the fixed cycle operator of this timing unit by UE example detection module 210.If system is not released because of abnormal cause causes this UE example, this timing unit will be operated until it always and overflow so; Just trigger UE example detection module 210 identification numbers when overflowing automatically and inquire corresponding UE example, thereby confirm this exception example according to this timing unit that writes down in the registration table.
Do like this is to be that cost exchanges the software processes burden that alleviates UE example control module 110 for the hardware resource; Perhaps, be that the fixed cycle operator that is simplified to timing unit is handled in the scan round of UE example detection module 210.Because the establishment and the dispose procedure of most of after all UE examples belong to normal condition, and the situation of generation exception example may be a minority.So, only need start normally regularly and the simple operations of termination timing by timing unit for this most applications; And just need be by the processing of overflowing of timing unit for abnormal conditions.The present invention can specifically formulate its strategy according to the ratio of concrete normal condition and abnormal conditions.
The interaction diagrams of the detection method of the above-mentioned exception example resource of present embodiment specifically may further comprise the steps as shown in Figure 5:
Step S401: example detection module (being UE example detection module) power-up initializing, distribute the registration table memory field;
Step S402: when operation flow began, example control module (being UE example control module) was to example detection module application GID, example detection module assignment GID, and in registration table, preserve GID item information;
Step S403: the example control module is created the UE example resource as required, the example detection module is distributed a timing unit for it, the overtime time limit is provided with the timing cycle of this timing unit, and in registration table, writes down this timing unit identification number information in the corresponding UE example item of information; Start this timing unit fixed cycle operator then;
Step S404: when operation flow finished, the example control module discharged example, and the example detection module is deleted corresponding example information in the registration table, and stopped the operation of this timing unit;
Step S405: the example control module discharges corresponding GID information in the example detection module registration table;
Step S404 ': in above-mentioned example establishment and dispose procedure, if system is not released because of abnormal cause causes this UE example, thereby the timing unit that is assigned with can be operated until it always and overflows, trigger example detection module inquiry and registration table, thereby inquire corresponding exception example according to this timing unit identification number in the registration table, then take operations necessary as reporting notice or suppressing exception example etc.
The present invention is not restricted to any specific hardware and software combination.Should be understood that the variation in these concrete enforcements is very clearly for a person skilled in the art, do not break away from protection scope of the present invention.
The present invention is based on the GID that preserves sign UE among the RNC, increase recording of informations such as example creation-times, thereby reach the purpose that detects exception example resource effectively.And policy-flexible of the present invention is realized simply, is applicable to that the exception example of all kinds of mobile communcations systems detects processing.
The above is a preferred embodiment of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improve or the like, all should be included within protection scope of the present invention.