Embodiment
Owing in the current network agreement, do not formulate strategy session information that DRA deletion preserves in advance and be the flow process of the corresponding relation between the PCRF of this strategy session Connection Service.DRA is according to the each business of initiating of user, buffer memory the strategy session information of user's related service.Current DRA does not have the information deletion flow process, possibly cause service-user after professional a period of time, the strategy session message of DRA possibility buffer memory a large number of users, and the problem that specifically causes is following:
1, the user's of DRA buffer memory strategy session information surpasses DRA internal memory setting, directly causes user's strategy that can't receive communication service network and charge information, thereby can't set up communication service with communication network.
2, DRA maybe be because the pleonasm information of buffer memory; To the functional entity of implementation strategy control law to the association that makes a mistake of PCRF request for allocation; Cause the user to receive the strategy and the charge information of wrong communication service network, cause and communication network between communication service can't normally set up.
3, DRA can't realize the renewal of the operating state of PCRF in its institute's management domain, thereby can not implement management to PCRF in the territory effectively, and what PCRF can't satisfy in the territory reaches the dynamic load leveling demand according to the traffic amount.
Therefore; The embodiment of the invention provides a kind of deleting strategy session method; Flow process in order to the corresponding relation between the PCRF that sets up strategy session information that DRA deletion preserves in advance and tactful Connection Service; Thereby make DRA useless strategy session information and the connection relation information of deletion in time, avoid invalid redundant information, improve telecommunication service quality the adverse effect that normal strategy connects.
Below in conjunction with accompanying drawing and embodiment, specific embodiments of the invention describes in further detail:
The embodiment of the invention one, the deleting strategy session method that provides a kind of PCRF initiatively to initiate is convenient explanation, adopts session connection to terminate fully respectively and session connection branch two kinds of situation of termination describe:
It is pointed out that in the session connection to comprise a plurality of branches, as shown in Figure 2; In concrete practice process; One or more branches that a session connection can occur interrupt, and still have one or more branches to keep situation about connecting simultaneously, cause session connection not terminate fully; Have only when all branches of a session connection all interrupt, this session connection is just interrupted fully.
As shown in Figure 3, connect the schematic flow sheet of the deleting strategy session method that PCRF initiatively initiates under the situation of termination fully for strategy session, may further comprise the steps:
Whether the strategy session connection that step S301, determination strategy are carried out inter-entity terminates.
Customer end A is in roaming state; All set up tactful the connection with the V-PCRF in visit territory with H-PCRF in the territory, local; And corresponding session information and connection strategy information have been preserved through V-DRA and H-DRA; Through judging, the policy control session between customer end A and V-PCRF and the H-PCRF now terminates fully.
Step S302, V-PCRF send the instruction of the corresponding conversation strategy of deletion strategy session connection to V-DRA.
The corresponding V-PCRF of customer end A discharges according to the policy information judges strategy session that belongs to the territory fully; So; The strategy that directly sends administrative messag notice V-DRA deletion preservation in advance connects the corresponding relation of the PCRF that is connected with this strategy of service, promptly deletes the corresponding relation between customer end A and the V-PCRF.
Step S303, V-PCRF receive the response of this conversation strategy of V-DRA deletion.
The strategy that the V-DRA deletion is preserved in advance connects the corresponding relation of the PCRF that is connected with this strategy of service.And really return acknowledge message Ack and give V-PCRF.
Step S304, H-PCRF send the instruction of the corresponding conversation strategy of deletion strategy session connection to H-DRA;
The H-PCRF that service strategy connects in the territory, local of customer end A correspondence discharges according to the policy information judges strategy session in territory, place fully; So; H-PCRF sends administrative messag notice H-DRA and deletes the corresponding relation that the strategy of preserving in advance connects the PCRF that is connected with this strategy of service, promptly deletes the corresponding relation between customer end A and the H-PCRF.
Step S305, H-PCRF receive the response of this conversation strategy of H-DRA deletion.
The strategy that the H-DRA deletion is preserved in advance connects the corresponding relation of the PCRF that is connected with this strategy of service, and really returns acknowledge message Ack and give H-PCRF.
It is pointed out that between above-mentioned steps S302-S303 and the S304-S305 does not have precedence relationship, and promptly V-PCRF and H-PCRF are the conversation strategy deletion work of carrying out corresponding DRA simultaneously, and the variation of order does not influence the protection range of the embodiment of the invention.
As shown in Figure 4, be the session connection schematic flow sheet of the deleting strategy session method initiatively initiated of PCRF under the situation of termination fully not, may further comprise the steps:
Whether the strategy session connection that step S401, determination strategy are carried out inter-entity terminates.
Customer end A is in roaming state; All set up tactful the connection with the V-PCRF in visit territory with H-PCRF in the territory, local, and preserved corresponding session information and connection strategy information, the warp judgement through V-DRA and H-DRA; Now customer end A with visit the territory in policy control session termination between the V-PCRF that is connected of service strategy; And and the termination not of the policy control session between the H-PCRF in the territory, local, i.e. the termination of session connection branch between customer end A and the V-PCRF, and and the termination not of the session connection branch between the H-PCRF; Judge that in view of the above the strategy session of customer end A connects not termination fully.
Step S402, V-PCRF send the instruction of deletion and this branch's corresponding strategy session information to V-DRA;
The H-PCRF that service strategy is connected in the corresponding V-PCRF of customer end A and the territory, local is according to release fully of the policy information judges strategy session that belongs to the territory; So; V-PCRF sends administrative messag notice V-DRA and does not change the corresponding relation that the strategy of preserving in advance connects the PCRF that is connected with this strategy of service; But selectively removing partial strategy session information, such as, the policy control session related information between deletion customer end A and the V-PCRF.
Step S403, V-PCRF receive the response of this this branch's corresponding strategy session information of V-DRA deletion.
The corresponding relation of the V-PCRF that the strategy connection that the indication of carrying in the administrative messag of V-DRA according to the V-PCRF transmission, deletion, renewal or reservation are preserved in advance is connected with this strategy of service, and return acknowledge message Ack to V-PCRF.
Step S404, H-PCRF send the instruction of processing policy session information to H-DRA;
The H-PCRF that service strategy is connected in the corresponding V-PCRF of customer end A and the territory, local is according to release fully of the policy information judges strategy session that belongs to the territory; So H-PCRF sends administrative messag notice H-DRA and does not change the corresponding relation that the strategy of preserving in advance connects the PCRF that is connected with this strategy of service, and; Because the policy control session between customer end A and the H-PCRF is termination not; So, need not to delete the policy control session related information between customer end A and the H-PCRF, but if desired; Can upgrade like the session information relevant what wherein change with V-PCRF.
Step S405, H-PCRF receive the response of H-DRA processing policy session information.
The indication of carrying in the administrative messag that H-DRA sends according to H-PCRF is upgraded or is kept the corresponding relation that the strategy of preserving in advance connects the H-PCRF that is connected with this strategy of service, and returns acknowledge message Ack to H-PCRF.
It is to be noted; There is not precedence relationship between above-mentioned steps S402-S403 and the S404-S405; Be that V-PCRF and H-PCRF are strategy session strategy deletion or the work of renewal of carrying out corresponding DRA simultaneously, the variation of order does not influence the protection range of the embodiment of the invention.
In conjunction with concrete true scene, the session delet method that the PCRF that the embodiment of the invention one is provided initiatively initiates can specify through following two embodiment:
As shown in Figure 5, be the embodiment of the invention two, the session delet method that the PCRF under a kind of non-roaming state initiatively initiates may further comprise the steps:
In non-roaming state 3GPP, be connected with the GTP agreement between S-GW and the P-GW.Interactive information on the GTP agreement comprises serves the ID that strategy connects, PDN sign, and IP address.
Step S501, termination strategy connect.
Strategy connects corresponding P-GW and accomplishes strategy through the S5 interface and connect and terminate in S-GW and the territory.
Step S502 is connected termination with strategy session between the PCRF.
Between the PCRF that this strategy of service is connected in P-GW and the territory through S7 interface completion policy control session termination.
Step S503, judge that whether fully PCRF is connected termination with strategy session between the terminal.
Whether PCRF discharges according to the policy information judges PCC strategy session in territory, place fully.
If the PCC strategy session discharges fully, the strategy that notice DRA deletion is preserved in advance connects the corresponding relation of the PCRF that is connected with this strategy of service.
If the PCC strategy session does not discharge (also having other strategy session branches) fully; For example, shown in Fig. 2, there are two to terminate in three branches that initiate at the terminal; And have one still to be held, think that then the PCC strategy session that initiate at this terminal does not discharge fully.The strategy that DRA does not then delete original preservation connects the corresponding relation of the PCRF that is connected with this strategy of service, but the strategy that the optional notice DRA deletion/renewal of PCRF is preserved in advance connection and partial content during the corresponding relation of serving the PCRF that this strategy is connected is tabulated.
Step S504, PCRF send administrative messag to DRA.
PCRF sends the PCRF administrative messag to DRA, carries ID in this message, PDN sign and IP address information.Content during the strategy connection that this message indication DRA deletes all or deletion/updated portion are preserved is in advance tabulated with the corresponding relation of PCRF.PCRF also can select different message to indicate the deletion of DRA or the action of deletion/renewal.
Step S505, PCRF receive the operational feedback of DRA.
The strategy that the indication deletion/renewal of carrying in the administrative messag of DRA according to the PCRF transmission is preserved in advance connects the corresponding relation of the PCRF that is connected with this strategy of service.And return acknowledge message and give PCRF.
As shown in Figure 6, be the embodiment of the invention three, the session delet method that the PCRF under a kind of roaming state initiatively initiates may further comprise the steps:
In roaming state 3GPP, be connected with the PMIP agreement between S-GW and the P-GW.And S-GW be positioned at the visit territory, P-GW is positioned at the territory, local.Interactive information on the PMIP agreement comprises serves the ID that strategy connects, PDN sign, and IP address.
The V-PCRF that this strategy of service is connected in step S601, S-GW and the visit territory is through S7c interface completion policy control session termination.
The V-PCRF in step S602, visit territory accomplishes the policy control session termination with the corresponding H-PCRF that this strategy of service in the territory, local connects.
The H-PCRF that service strategy is connected in step S603, corresponding V-PCRF and the territory, local is according to the release fully of policy information judges strategy session in territory, place.Notice V-DRA (H-DRA) does not change the corresponding relation that the strategy of preserving in advance connects the PCRF that is connected with this strategy of service.The partial content during but the corresponding relation that can indicate the DRA deletion strategy to connect the PCRF that is connected with this strategy of service is tabulated is such as information such as CoA.
Step S604, V-PCRF (H-PCRF) send the PCRF administrative messag to V-DRA (H-DRA), carry ID in this message, PDN sign, IP address (HoA, CoA) information.
The strategy that the indication renewal/reservation of carrying in step S605, the administrative messag of V-DRA (H-DRA) according to the PCRF transmission is preserved in advance connects the corresponding relation of the PCRF that is connected with this strategy of service.And return acknowledge message and give V-PCRF (H-PCRF).
The H-PCRF that this strategy of service is connected in step S606, P-GW and the territory, local is through S7 interface completion policy control session termination.
Step S607, H-PCRF judges strategy session discharge fully.
Step S608, H-PCRF send the PCRF administrative messag to H-DRA, carry the indication strategy session in this message and discharge information of successful.Carry ID in this message, the PDN sign, the IP address (HoA, CoA) information..
The strategy that the indication deletion of carrying in step S609, the administrative messag of H-DRA according to the H-PCRF transmission is preserved in advance connects the corresponding relation of the PCRF that is connected with this strategy of service.And return acknowledge message and give H-PCRF.
The V-PCRF in the visit territory that step S610, this strategy of H-PCRF and service are connected accomplishes the policy control session termination through the S9 interface.
Step S611, V-PCRF judges strategy session discharge fully.
Step S612, V-PCRF send the PCRF administrative messag to V-DRA, carry the indication strategy session in this message and discharge information of successful.Carry ID in this message, PDN sign, IP address (HoA, CoA) information.
The strategy that the indication deletion of carrying in step S613, the administrative messag of V-DRA according to the V-PCRF transmission is preserved in advance connects the corresponding relation of the PCRF that is connected with this strategy of service.And return acknowledge message and give V-PCRF.
The above embodiment of the invention two all is to describe with the embodiment under 3GPP with the embodiment of the invention three; But need further be pointed out that; The protection range of the embodiment of the invention is not limited in 3GPP, and the embodiment of the invention can realize equally under other procotols, in view of the above; Under other procotols, the technical scheme that realizes according to the technological thought that the embodiment of the invention provided also should belong to protection scope of the present invention.
As shown in Figure 7, be the embodiment of the invention four, the session delet method that the PCRF among a kind of Non-3GPP under the non-roaming state initiatively initiates may further comprise the steps:
In non-roaming N state on-3GPP, be connected with the CMIP agreement between the Access-GW in the territory, local that coexists and the P-GW.Interactive information on the CMIP agreement comprises serves the ID that strategy connects, PDN sign, and IP address.
Strategy connects corresponding PCRF through S7 interface completion policy control session termination in step S701, P-GW and the territory.
Step S702, PCRF partly discharge according to the policy information judges strategy session in territory, place.
Step S703, PCRF send the PCRF administrative messag to DRA, carry the indication strategy session in this message and partly discharge.And in message, carry ID, PDN sign, IP address (HoA, CoA) information.
The strategy that the indication deletion of carrying in step S704, the administrative messag of DRA according to the PCRF transmission is preserved in advance connects the corresponding relation of the PCRF that is connected with this strategy of service, and returns acknowledge message to PCRF.
Because be that strategy session partly discharges, so, only deletion and the corresponding PCRF corresponding relation of strategy session that has discharged, and the corresponding PCRF corresponding relation of strategy session that does not discharge still is retained.
It is pointed out that if the judges strategy session discharges fully among the step S702, then need corresponding whole session informations and the conversation strategy of this strategy session of deletion among the step S704.
The PCRF that this strategy of service is connected in step S705, Access-GW and the territory is through S7a interface completion policy control session termination.
Step S706, corresponding PCRF discharge according to the policy information judges strategy session that belongs to the territory fully.Notice DRA does not change the corresponding relation that the strategy of preserving in advance connects the PCRF that is connected with this strategy of service.But can selectively removing partial strategy session information, such as with the policy control session related information.
Step S707, PCRF send the PCRF administrative messag to DRA, carry ID in this message, PDN sign, IP address (HoA, CoA) information.
The corresponding relation of the PCRF that the strategy connection that the indication of carrying in step S708, the administrative messag of DRA according to the PCRF transmission, deletion, renewal or reservation are preserved in advance is connected with this strategy of service.And return acknowledge message and give PCRF.
Because be that strategy session partly discharges, so, only deletion and the corresponding PCRF corresponding relation of strategy session that has discharged, and the corresponding PCRF corresponding relation of strategy session that does not discharge still is retained.
It is pointed out that if the judges strategy session discharges fully among the step S706, then need corresponding whole session informations and the conversation strategy of this strategy session of deletion among the step S708.
For the above-mentioned embodiment of the invention one to four, through the embodiment of the invention five a kind of PCRF is provided also, be used to realize above-mentioned session delet method, as shown in Figure 8, comprising:
Session status judge module 1, whether the strategy session connection that is used for determination strategy execution inter-entity terminates, or whether the branch that the strategy session of determination strategy execution inter-entity connects terminates;
Delete instruction sending module 2; Be used for when the 1 determination strategy session connection of session status judge module terminates; Send the instruction of deletion strategy session connection corresponding strategy session information to DRA; Or when the branch in the strategy session connection of session status judge module determination strategy execution inter-entity terminates, the instruction of sending the deletion session information corresponding to DRA with branch;
Response message receiver module 3 is used to receive the response of the corresponding session information of DRA deletion strategy session information or branch.
Wherein, delete instruction sending module 2 also comprises:
Identification information adds submodule 21, is used for the instruction at deletion strategy session connection corresponding strategy session information, or adds ID, PDN sign and IP address information in the instruction of deletion branch corresponding strategy session information.
As shown in Figure 9, be the embodiment of the invention six, the structural representation of a kind of DRA comprises:
Delete instruction receiver module 1 is used to receive the instruction of deletion strategy session connection corresponding strategy session information, or the instruction of deletion branch corresponding strategy session information;
Session information matching module 2; ID, PDN sign and IP address information in the strategy session information among the ID of the instruction that is used for delete instruction receiver module 1 is received, PDN sign and IP address information and the DRA carried out related, confirms to instruct pairing strategy session information;
Session information removing module 3 is used for the matching result according to session information matching module 2, deletion strategy session connection corresponding strategy session information, or deletion branch corresponding strategy session information;
Deletion is feedback module 4 as a result, is used to feed back the result of deletion strategy session information.
Wherein, session information matching module 2 also comprises:
Identification information recognin module 21 is used for discerning ID, PDN sign and the IP address information of the instruction that delete instruction receiver module 1 received.
Shown in figure 10, be the embodiment of the invention seven, a kind of DRA detects the method for carrying out the session deletion automatically according to life cycle, may further comprise the steps:
Step S1001, generate the index information of session connection in chronological order.
Foundation according to session connection generates index information in proper order.
Step S1002, according to index information, send the instruction of the state that inquiry session connects to PCRF.
Notify corresponding PCRF successively according to the index information of time-sequencing, inquire about the corresponding session of current retrieving information and whether discharge success in the tabulation the inside.
DRA regularly inquires about the duration of the strategy session message of storage automatically according to the timer of configuration.And the notice PCRF corresponding above the strategy session message of timer regulation duration removes to inquire about this strategy session and connects whether discharge success.The PCRF Query Information comprises ID, PDN sign, and IP address.
The strategy session connection status feedback of step S1003, reception PCRF feedback.
Whether the corresponding PCRF notice strategy session that DRA inquired about connection in replying message discharges.
Step S1004, the state that connects when the PCRF feeding back conversation when terminating, the conversation strategy of deletion current sessions connection.
Whether the PCRF of correspondence notifies the tactful connection session that DRA inquired about to discharge in replying message, the corresponding relation of the PCRF that indication deletion, renewal of carrying in the response message of DRA according to the PCRF transmission or the strategy connection that keeps preservation in advance are connected with this strategy of service.If do not receive the response message of the PCRF of step S1003, repeating step S1002 then.If repeating step S1002 (such as 7 times) repeatedly, PCRF never reply and reply.Then DRA is defaulted as PCRF and breaks down the tactful link information of this PCRF service that automatic deletion is preserved in tabulation.
For realizing the invention described above embodiment seven, through the embodiment of the invention eight, a kind of DRA is provided, shown in figure 11, comprising:
Timer module 1 is used to detect the lasting duration that the strategy session of current storage connects, the life cycle that is connected with the strategy session that current storage is set;
Session status enquiry module 2 is used for after timer module 1 detects lasting duration that the strategy session of current storage connects and surpasses the life cycle that timer module 1 is provided with, sending the instruction of the strategy session connection status of the current storage of inquiry to PCRF;
Conversation strategy update module 3 is used for the state according to the strategy session connection of PCRF feedback, deletes or upgrade the strategy session information of the strategy session connection of current storage.
Wherein, timer module 1 specifically comprises:
Continue duration detection sub-module 11, be used to detect the lasting duration that the strategy session of current storage connects;
Life cycle is provided with submodule 12, is used to be provided with the life cycle that the strategy session of current storage connects.
Shown in figure 12; Be the embodiment of the invention nine; A kind of DRA detects the method carry out the session deletion according to the sequence number mutation, when DRA sends management request message, carries out sequence number at PCRF and detects, if DRA detects the sequence number generation abnormal change (PCRF restarts) of the administrative messag that PCRF reports; Then the automatic strategy of preserving in advance of deleting of DRA connects corresponding relation with it, specifically may further comprise the steps:
Step S1201, PCRF send administrative messag to DRA.Whether comprise the session of notice DRA subscriber policy in this message discharges fully.
Step S1202, DRA detect the sequence number generation abnormal change that carries in the administrative messag of PCRF transmission, the deletion session information.
DRA detects the administrative messag that PCRF reports.If detect the sequence number generation abnormal change that PCRF reports administrative messag.The PCRF that then decision plan session connection administrative messag is corresponding is restarted, and judges that further the strategy session information before this PCRF terminates fully, and DRA deletes the strategy of preserving in advance automatically and connects corresponding relation with it.
Step S1203, return the response message that management accomplishes and give PCRF.
For realizing the invention described above embodiment nine, through the embodiment of the invention ten, a kind of DRA is provided, shown in figure 13, comprising:
Administrative messag receiver module 1 is used to receive the session connection administrative messag that comprises sequence number that PCRF sends;
When session status judge module 2, the sequence number generation mutation of the session connection administrative messag that is used for receiving when administrative messag receiver module 1, the PCRF that decision plan session connection administrative messag is corresponding is restarted;
Deleting strategy session module 3 is used for when session status judge module 2 judges that PCRF is restarted, corresponding strategy session information before deletion is restarted with PCRF;
Deletion is feedback module 4 as a result, is used to feed back the result of deletion strategy session information.
Wherein, administrative messag receiver module 1 also comprises:
Sequence number recognin module 11 is used for discerning the sequence number that session connection administrative messag that PCRF sends comprises whether mutation takes place.
Need be pointed out that further that under other procotols, the technical scheme about the session deletion that method produced of using the embodiment of the invention also should belong to protection scope of the present invention.Of the embodiment of the invention 11, a kind of method of in the WIMAX network, carrying out the session deletion is provided, shown in figure 14 by DRA management A-PCEF and C-PCEF and PDF/PCRF corresponding relation in the present embodiment, may further comprise the steps:
Step S1401, A-PCEF connect corresponding PDF/PCRF with strategy and accomplish the tactful termination that connects of ASN through the R3-PCC interface.
Accomplish the CSN strategy through R3-PCC between the PDF/PCRF that step S1402, this strategy of C-PCEF and service are connected and connect termination.
Whether step S1403, PDF/PCRF discharge according to the policy information judges dynamic QoS strategy session in territory, place fully.If user's dynamic QoS strategy session discharges fully, the strategy that notice DRA deletion is preserved in advance connects the corresponding relation of the PCRF that is connected with this strategy of service.If user's dynamic QoS strategy session does not discharge (also having other strategy session branches) fully; DRA does not then delete in advance the corresponding relation that the strategy of preserving connects the PCRF that is connected with this strategy of service, but tactful in advance connection that optional notice DRA deletion/renewals of PCRF preserved and partial content during the corresponding relation of serving the PCRF that this strategy is connected is tabulated.
Step S1404, PCRF send the PCRF administrative messag to DRA, carry ID in this message, information such as PDN sign and IP address.Content during the strategy connection that this message indication DRA deletes all or deletion/updated portion are preserved is in advance tabulated with the corresponding relation of PCRF.PCRF also can select different message to indicate the deletion of DRA or the action of deletion/renewal.
The strategy that the indication deletion/renewal of carrying in step S1405, the administrative messag of DRA according to the PCRF transmission is preserved in advance connects the corresponding relation of the PCRF that is connected with this strategy of service, and returns acknowledge message and give PCRF.
For the administrative messag described in the above embodiment of the present invention one to 11 can be a kind of message that is provided with separately; Also can be the instruction of the corresponding conversation strategy of the deletion strategy session connection described in the embodiment of the invention one, or deletion be connected the instruction of branch's corresponding strategy session information with strategy session.
The technical scheme of the embodiment of the invention has the following advantages; Because adopted through detecting strategy session connection situation and found out useless strategy session information and the method for deleting; Thereby; Make DRA can in time delete useless strategy session information and connection relation information, reached the redundant information of avoiding invalid, improve the effect of telecommunication service quality the adverse effect that normal strategy connects.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprise some instructions with so that a station terminal equipment (can be mobile phone, personal computer; Server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be looked protection scope of the present invention.