A kind of distribution method of Session Resources
Technical field
The present invention relates to code division multiple access CDMA 1X EV-DO network technology, be meant a kind of distribution method of Session Resources especially.
Background technology
CDMA 1X EV-DO (Evolution Data Optimized) standard originates from high-speed data (HDR) technology of high pass (Qualcomm) company the earliest, it can support high-speed radio grouped data (HRPD) business, is in an effective enhancements that provides aspect the data service to the CDMA2000 network.Calendar year 2001, CDMA 1X EV-DO technology is received as a branch of CDMA2000 family to be one of IMT-2000 standard.
In CDMA EV-DO network, access terminal and realize communication by setting up session (Session) between (AT) and the Access Network (AN).Different with the session in the IP network, the state that is meant between a kind of AT and the AN is we can say in the session of EV-DO, if have session between AT and the AN, illustrate that then both sides have kept the configuration of institute's operation parameter in the agreement of consulting and the agreement separately, these agreements and corresponding configuration are the prerequisites of intercommunication.That is to say, only when opening session (Open Session), just can communicate between AT and the AN, and then the AT service that could use AN to provide.And after in case the session between AT and the AN sets up, will keep always, after AT moves out the scope of subnet (Subnet) or do not work for a long time, just remove this session.All there is corresponding Session Resources to preserve the session information of this AT to each AT among the AN.Because Session Resources is limited among the AN, use up back (wherein some resource is hung unusually) at Session Resources, will cause follow-up AT not set up session with this AN, thereby can not access network.Therefore how the Session Resources of reasonable distribution system, the utilization rate that improves Session Resources counts for much.
Existing protocol has been stipulated a kind of method that activates detection, and this method activates the detection timer by being provided with one, regularly the session of having set up is detected, and does not have to discharge this Session Resources under the situation of action message when detecting this session.Specifically, the activation of AT and AN detects by activating request (Keep Alive Request) and activating response (Keep Alive Response) and determine whether AT is to activate, detect timer then when activating, AN can send to AT and activate request message, if AT returns the activation response message, then AN keeps the session information of this AT, activate response if AT does not return, and illustrates that then AT is not in the service area of this AN.Then AN will discharge corresponding to the Session Resources of this AT, uses so that distribute to other AT.Because activate detecting need be by the messaging of eating dishes without rice or wine, therefore congested for fear of interface-free resources, causes AT normally to insert difficulty, the timing length that all will activate the detection timer usually is provided with longly (the default configuration duration is 54 hours).Yet so will occur: finish in case all Session Resources are occupied, and these Session Resources take the configuration duration that duration all surpasses activation detection timer, and then follow-up AT will can't obtain the service of DO network because there not being the available sessions resource this moment.And under extreme case, if get back under this AN at set intervals and information interaction arranged at all AT that set up Session Resources under certain AN, and the time interval between twice information interaction is less than activating the configuration duration that detects timer, then the Session Resources of this AN will can not get discharging all the time, and cause the new AT that inserts to set up session with this AN because of there not being available Session Resources under this AN, the success rate that causes on the one hand setting up between new AT that inserts and the AN session is lower, then causes the instream factor of system session resource lower on the other hand.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of distribution method of Session Resources, improve the new AT that inserts and set up the success rate of session and the instream factor of AN net Session Resources.
In order to achieve the above object, the invention provides a kind of distribution method of Session Resources, the method comprising the steps of:
A, Access Network AN side judge that system is current and whether have enough available sessions resources after request is set up in the session that receives access terminal AT; If then be this AT assign sessions resource; Otherwise, execution in step b;
B, from occupied Session Resources the release portion Session Resources, the resource after utilize discharging then is this AT assign sessions resource.
In said method, before step a, comprising: system reserves Session Resources to AT, and the available sessions resource described in the step a is the Session Resources that system reserves to AT.
In said method, this method comprises and sets in advance available sessions monitoring resource timer, and the described step of reserving Session Resources to AT comprises:
Whether a01, the available sessions monitoring resource timer that judge to be provided be overtime, if, execution in step a02 then; Otherwise, return step a01;
A02, judge that whether current available sessions number of resources is greater than the minimum available sessions number of resources of the system that sets in advance, if then return step a01; Otherwise execution in step a03;
A03, from occupied Session Resources, discharge at least one Session Resources.
In said method, described at least one Session Resources is for once discharging the Session Resources number.
In said method, described from occupied Session Resources the release portion Session Resources be to discharge activity time not all greater than the Session Resources of not activity time of residue Session Resources.
In sum, the present invention is when the available sessions resource that system is not enough to use for the new AT that inserts, the release portion Session Resources uses for the new AT that inserts from all occupied Session Resources of system, and make to obtain till the current time, the not activity time of the Session Resources that discharges from all occupied Session Resources of system is all greater than the not activity time that remains Session Resources.Thereby the AT that has guaranteed new access has available Session Resources and AN to set up session all the time, both improved the utilization rate that AN nets limited Session Resources, improved the success rate of setting up session between the AT of new access and the AN again, thus the balance of maximum possible the relation of system resource allocation and service efficiency.
Description of drawings
Fig. 1 is the flow chart of a specific embodiment method of the present invention.
Fig. 2 is the flow chart of the process of the present invention's reservation.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Core concept of the present invention is: Access Network AN side is judged that system is current and whether is had enough available sessions resources, if then distribute existing Session Resources after the session that the receives access terminal AT request of setting up; Otherwise release portion Session Resources from existing all the occupied Session Resources of this AN is distributed to AT and is used.
Describe the present invention in detail below by a specific embodiment.
Since when AN when request is set up in the session that receives AT, there is no available Session Resources and distribute to this AT and use and the judgement system is current, at this moment, just need from the existing Session Resources that takies, discharge Session Resources, distribute to this AT use then.Also can adopt the Session Resources that is kept some by AN in advance this moment, thereby all there is the available sessions resource of some in the assurance system always, and the AT that distributes to new access uses.The method flow diagram of present embodiment specifically comprises the steps: as shown in Figure 1
Step 101:AN side is judged that system is current and whether is had enough available sessions resources, if then distribute existing Session Resources after the session that the receives AT request of setting up; Otherwise, execution in step 102;
Step 102: release portion Session Resources from occupied Session Resources, utilizing the resource after discharging then is this AT assign sessions resource.
Before step 101, the Session Resources of the some that can be kept in advance by AN uses for the new AT that inserts.Fig. 2 is the new AT that the inserts method flow diagram of preserving sessions resource in advance that is of the present invention, at this in advance in the method for preserving sessions resource, at first in system, set in advance an available sessions monitoring resource timer, and for it is provided with a timing length, this method comprises the steps: specifically
Step 201: whether the available sessions monitoring resource timer that monitoring is provided with is overtime, if then execution in step 202; Otherwise, return step 201.
Step 202: read the current available sessions number of resources of AN, judge that whether this available sessions number of resources is more than or equal to the minimum available sessions number of resources that is provided with, if then return step 201; Otherwise, execution in step 203.
Step 203: from all occupied Session Resources of AN, discharge by force and once discharge several Session Resources of Session Resources, return step 201 then and continue monitoring.
The minimum available sessions number of resources that in this flow process, is provided with, once discharge being provided with of all Session Resources numbers among Session Resources number and the AN and must satisfy following the relation: all the Session Resources numbers among (minimum available sessions number of resources+once discharge Session Resources number)<AN.
In addition, for the reasonability that guarantees that Session Resources distributes, the step that the described AN of step 102 or step 203 discharges the Session Resources of some can be: the release portion Session Resources uses for AT from all occupied Session Resources, and make to obtain till the current time, the not activity time of all Session Resources of release is all greater than the not activity time that remains Session Resources.
Describe the step of the Session Resources of the some that AN keeps in advance in detail below by example.The all available sessions number of resources of supposing the system are 10, and minimum available sessions number of resources is 3, and once discharging the Session Resources number is 5.And the variation of the current available sessions number of resources of AN is as follows, when distributing a Session Resources, then the available sessions number of resources is subtracted 1, and when discharging a Session Resources, then the available sessions number of resources is added 1.Therefore current available sessions number of resources is a variable.In above-mentioned steps 202, just carry out and read the current available sessions number of resources of AN like this, whether judge this available sessions number of resources more than or equal to 3, if, then return step 201, otherwise, execution in step 203.And in above-mentioned steps 203, carry out and seek 5 the longest Session Resources of updated time, it is discharged by force, return step 201 then and continue monitoring.
In addition, for each Session Resources that takies, calculate it not the method for activity time be: write down the last movable moment of this session, the initial foundation of i.e. this session constantly, perhaps follow-up receives that according to activating testing process activation responds the moment of upgrading, then can according to write down movable at last constantly, calculate the not activity time of each session till system's current time.
In a word, the above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.